2df70f0aba5761e0d21d1549c83f357022a809f2
[gcc.git] / gcc / ChangeLog
1 2011-07-20 Richard Guenther <rguenther@suse.de>
2
3 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
4 against already removed statements.
5 (forward_propagate_into_comparison): Remove dead defining stmts.
6 (forward_propagate_into_gimple_cond): Likewise.
7 (forward_propagate_into_cond): Simplify.
8 (ssa_forward_propagate_and_combine): Handle changed cfg from
9 forward_propagate_into_comparison.
10 * tree-ssa-phiopt.c (conditional_replacement): Use proper
11 locations for newly built statements.
12
13 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
14
15 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
16
17 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18
19 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
20 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
21
22 2011-07-20 Richard Guenther <rguenther@suse.de>
23
24 PR middle-end/18908
25 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
26 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
27 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
28
29 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
30
31 * config/frv/frv.c (frv_register_move_cost): Define explicitly
32 costs for subclasses of GR_REGS.
33
34 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
35
36 PR target/49780
37 * config/i386/predicates.md (no_seg_addres_operand): No more special.
38 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
39 of DImode hard registers in base.
40 (ix86_legitimate_address_p): Allow SImode and DImode base and index
41 registers.
42
43 2011-07-20 Richard Guenther <rguenther@suse.de>
44
45 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
46 (unify_nodes): Deal with that.
47 (solve_graph): Likewise.
48
49 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
50
51 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
52 canonicalize left operand from ZERO_EXTEND to AND.
53
54 2011-07-20 Anatoly Sokolov <aesok@post.ru>
55
56 * target.def (class_max_nregs): New hook.
57 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
58 * doc/tm.texi: Regenerate.
59 * targhooks.c (default_class_max_nregs): New function.
60 * targhooks.h (default_class_max_nregs): Declare.
61 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
62 x_ira_reg_class_min_nregs arrays to unsigned char.
63 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
64 hook instead of CLASS_MAX_NREGS macro.
65 * reginfo.c (restore_register_info): Ditto.
66 * ira-conflicts.c (process_regs_for_copy): Use
67 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
68 Change type rclass and aclass vars to reg_class_t.
69 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
70 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
71 reg_class_t.
72 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
73 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
74
75 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
76 * config/i386/i386.c (ix86_class_max_nregs): New function.
77 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
78 instead of CLASS_MAX_NREGS macro.
79 (TARGET_CLASS_MAX_NREGS): Define.
80 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
81 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
82 * config/avr/avr.c (class_max_nregs): Remove function.
83 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
84 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
85 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
86 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
87 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
88 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
89 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
90 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
91 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
92 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
93 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
94 * config/score/score.h (CLASS_MAX_NREGS): Remove.
95 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
96 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
97 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
98
99 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
100
101 * cif-code.def (OVERWRITABLE): Fix typo and move around.
102 (TARGET_OPTIMIZATION_MISMATCH): Delete.
103 (EH_PERSONALITY): Fix typo.
104 (NON_CALL_EXCEPTIONS): Fix message.
105 (OPTIMIZATION_MISMATCH): Adjust message.
106 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
107
108 2011-07-19 Ian Lance Taylor <iant@google.com>
109
110 * doc/install.texi (Configuration): Document
111 --enable-build-poststage1-with-cxx.
112
113 2011-07-19 Robert Millan <rmh@gnu.org>
114
115 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
116 (GLIBC_DYNAMIC_LINKER): Remove.
117
118 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
119 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
120 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
121 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
122 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
123 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
124
125 * config/mips/linux.h: Remove everything except for ...
126 (GLIBC_DYNAMIC_LINKER): ... this macro.
127
128 * config/mips/linux64.h: Remove everything except for ...
129 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
130 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
131 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
132 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
133 (GNU_USER_LINK_EMULATIONN32): New macros.
134
135 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
136 Use the new headers.
137
138 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
139
140 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
141 Add offset_known_p and size_known_p fields.
142 (MEM_OFFSET_KNOWN_P): Update accordingly.
143 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
144 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
145 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
146 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
147 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
148 (init_emit_regs): Likewise.
149
150 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
151
152 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
153 (MEM_OFFSET): Change from returning an rtx to returning a
154 HOST_WIDE_INT.
155 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
156 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
157 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
158 (clear_mem_offset): Declare.
159 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
160 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
161 MEM_OFFSET to get a HOST_WIDE_INT offset.
162 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
163 (adjust_offset_for_component_ref): Take a bool "known_p"
164 parameter and a HOST_WIDE_INT "offset" parameter.
165 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
166 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
167 than an rtx. Use clear_mem_offset to clear the offset.
168 * cfgcleanup.c (merge_memattrs): Likewise.
169 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
170 * function.c (assign_parm_find_stack_rtl): Likewise.
171 (assign_parm_setup_stack): Likewise.
172 * print-rtl.c (print_rtx): Likewise.
173 * reload.c (find_reloads_subreg_address): Likewise.
174 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
175 * var-tracking.c (INT_MEM_OFFSET): Likewise.
176 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
177 (get_mem_align_offset): Likewise.
178 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
179 (clear_mem_offset): New function.
180 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
181 offset rather than an rtx. Assume both the expressio and offset
182 are available.
183 (r10k_needs_protection_p_1): Update accordingly, checking the
184 expression and offset availability here instead.
185
186 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
187
188 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
189 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
190 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
191 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
192 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
193 (clear_mem_size): Declare.
194 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
195 (clear_mem_size): New function.
196 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
197 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
198 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
199 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
200 to clear the size.
201 (nonoverlapping_memrefs_p): Likewise.
202 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
203 (expand_builtin_init_trampoline): Likewise.
204 * calls.c (compute_argument_addresses): Likewise.
205 * cfgcleanup.c (merge_memattrs): Likewise.
206 * dce.c (find_call_stack_args): Likewise.
207 * dse.c (record_store, scan_insn): Likewise.
208 * dwarf2out.c (dw_sra_loc_expr): Likewise.
209 * expr.c (emit_block_move_hints): Likewise.
210 * function.c (assign_parm_find_stack_rtl): Likewise.
211 * print-rtl.c (print_rtx): Likewise.
212 * reload.c (find_reloads_subreg_address): Likewise.
213 * rtlanal.c (may_trap_p_1): Likewise.
214 * var-tracking.c (track_expr_p): Likewise.
215 * varasm.c (assemble_trampoline_template): Likewise.
216 * config/arm/arm.c (arm_print_operand): Likewise.
217 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
218 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
219 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
220 (expand_constant_setmem_prologue): Likewise.
221 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
222 * config/rs6000/rs6000.c (expand_block_move): Likewise.
223 (adjacent_mem_locations): Likewise.
224 * config/s390/s390.c (s390_expand_setmem): Likewise.
225 (s390_expand_insv): Likewise.
226 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
227 (*extendqi<mode>2_short_displ): Likewise.
228 * config/sh/sh.c (expand_block_move): Likewise.
229 * config/sh/sh.md (extv, extzv): Likewise.
230
231 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
232
233 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
234 (mem_attrs_htab_eq): ...here.
235 (find_mem_attrs): Replace with...
236 (set_mem_attrs): ...this function. Take a mem_attrs structure
237 rather than individual fields.
238 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
239 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
240 (set_mem_size, change_address, adjust_address_1, offset_address)
241 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
242 Update accordingly.
243
244 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
245
246 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
247 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
248 Provide a dummy definition of MEM_ADDR_SPACE for generators.
249 (target_rtl): Add x_mode_mem_attrs.
250 (mode_mem_attrs): New macro.
251 (get_mem_attrs): New function.
252 * emit-rtl.c (get_mem_attrs): Rename to...
253 (find_mem_attrs): ...this.
254 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
255 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
256 (set_mem_size, change_address, adjust_address_1, offset_address)
257 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
258 Update accordingly.
259 (init_emit_regs): Initialize mode_mem_attrs.
260
261 2011-07-19 Richard Guenther <rguenther@suse.de>
262
263 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
264 TRUTH_*_EXPR handling.
265 * tree-ssa-operands.c (get_expr_operands): Likewise.
266 * tree-ssa-pre.c (fully_constant_expression): Likewise.
267 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
268 Likewise.
269 (is_and_or_or): Likewise.
270 (is_norm_cond_subset_of): Likewise.
271
272 2011-07-19 Richard Guenther <rguenther@suse.de>
273
274 * tree.h (fold_build_pointer_plus_loc): New helper function.
275 (fold_build_pointer_plus_hwi_loc): Likewise.
276 (fold_build_pointer_plus): Define.
277 (fold_build_pointer_plus_hwi): Likewise.
278 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
279 (fold_builtin_memory_op): Likewise.
280 (fold_builtin_stpcpy): Likewise.
281 (fold_builtin_memchr): Likewise.
282 (fold_builtin_strstr): Likewise.
283 (fold_builtin_strchr): Likewise.
284 (fold_builtin_strrchr): Likewise.
285 (fold_builtin_strpbrk): Likewise.
286 (fold_builtin_strcat): Likewise.
287 (expand_builtin_memory_chk): Likewise.
288 (fold_builtin_memory_chk): Likewise.
289 * c-typeck.c (build_unary_op): Likewise.
290 * cgraphunit.c (thunk_adjust): Likewise.
291 * fold-const.c (build_range_check): Likewise.
292 (fold_binary_loc): Likewise.
293 * omp-low.c (extract_omp_for_data): Likewise.
294 (expand_omp_for_generic): Likewise.
295 (expand_omp_for_static_nochunk): Likewise.
296 (expand_omp_for_static_chunk): Likewise.
297 * tree-affine.c (add_elt_to_tree): Likewise.
298 * tree-data-ref.c (split_constant_offset_1): Likewise.
299 * tree-loop-distribution.c (generate_memset_zero): Likewise.
300 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
301 * tree-predcom.c (ref_at_iteration): Likewise.
302 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
303 (add_to_parts): Likewise.
304 (create_mem_ref): Likewise.
305 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
306 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
307 (number_of_iterations_le): Likewise.
308 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
309 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
310 (vect_create_addr_base_for_vector_ref): Likewise.
311 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
312 (vect_create_cond_for_alias_checks): Likewise.
313 * tree-vrp.c (extract_range_from_assert): Likewise.
314 * config/alpha/alpha.c (alpha_va_start): Likewise.
315 (alpha_gimplify_va_arg_1): Likewise.
316 * config/i386/i386.c (ix86_va_start): Likewise.
317 (ix86_gimplify_va_arg): Likewise.
318 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
319 * config/mep/mep.c (mep_expand_va_start): Likewise.
320 (mep_gimplify_va_arg_expr): Likewise.
321 * config/mips/mips.c (mips_va_start): Likewise.
322 (mips_gimplify_va_arg_expr): Likewise.
323 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
324 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
325 (rs6000_gimplify_va_arg): Likewise.
326 * config/s390/s390.c (s390_va_start): Likewise.
327 (s390_gimplify_va_arg): Likewise.
328 * config/sh/sh.c (sh_va_start): Likewise.
329 (sh_gimplify_va_arg_expr): Likewise.
330 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
331 * config/spu/spu.c (spu_va_start): Likewise.
332 (spu_gimplify_va_arg_expr): Likewise.
333 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
334 Likewise.
335 (xstormy16_gimplify_va_arg_expr): Likewise.
336 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
337 (xtensa_gimplify_va_arg_expr): Likewise.
338
339 2011-07-19 Richard Guenther <rguenther@suse.de>
340
341 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
342 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
343 handling.
344
345 PR middle-end/18908
346 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
347 result of BIT_*_EXPR to bitfield precision.
348
349 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
350
351 PR tree-optimization/49742
352 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
353 as a potential write.
354
355 2011-07-19 Richard Guenther <rguenther@suse.de>
356
357 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
358 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
359 (forward_propagate_comparison): Simplify, remove obsolete code.
360
361 2011-07-19 Richard Guenther <rguenther@suse.de>
362
363 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
364 BIT_XOR_EXPR, same as the RTL expander does.
365 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
366 (verify_gimple_assign_unary): Likewise.
367 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
368 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
369 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
370
371 2011-07-19 Jakub Jelinek <jakub@redhat.com>
372
373 PR tree-optimization/49768
374 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
375 if offset is smaller than bitoffset, but offset+size is bigger
376 than bitoffset.
377
378 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
379
380 PR tree-optimization/49771
381 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
382 zero step, set segment length to the size of the data-ref's type.
383
384 2011-07-18 Martin Jambor <mjambor@suse.cz>
385
386 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
387 comments.
388 (ipcp_values_pool): Declare.
389 (ipcp_sources_pool): Likewise.
390 (ipcp_lattice): Changed to forward declaration.
391 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
392 cannot_devirtualize.
393 (ipa_node_params): New fields descriptors, lattices, known_vals,
394 clone_for_all_contexts and node dead, removed fields params and
395 count_scale.
396 (ipa_set_param_count): Removed.
397 (ipa_get_param_count): Made to work with descriptors vector.
398 (ipa_get_param): Updated.
399 (ipa_param_cannot_devirtualize_p): Removed.
400 (ipa_param_types_vec_empty): Likewise.
401 (ipa_set_param_used): New function.
402 (ipa_get_param_used): Updated to use descriptors vector.
403 (ipa_func_list): Removed.
404 (ipa_init_func_list): Removed declaration.
405 (ipa_push_func_to_list_1): Likewise.
406 (ipa_pop_func_from_list): Likewise.
407 (ipa_push_func_to_list): Removed.
408 (ipa_lattice_from_jfunc): Remove declaration.
409 (ipa_get_jf_pass_through_result): Declare.
410 (ipa_get_jf_ancestor_result): Likewise.
411 (ipa_value_from_jfunc): Likewise.
412 (ipa_get_lattice): Update.
413 (ipa_lat_is_single_const): New function.
414 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
415 (ipa_init_func_list): Likewise.
416 (ipa_pop_func_from_list): Likewise.
417 (ipa_get_param_decl_index): Fix coding style.
418 (count_formal_params): Removed.
419 (count_formal_params_1): Renamed to count_formal_params.
420 (ipa_populate_param_decls): Update to use descriptors vector.
421 (ipa_initialize_node_params): Likewise.
422 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
423 (ipa_analyze_params_uses): Likewise.
424 (ipa_free_node_params_substructures): Likewise and free also lattices
425 and known values.
426 (duplicate_array): Removed.
427 (ipa_edge_duplication_hook): Add the new edge to the list of edge
428 clones.
429 (ipa_node_duplication_hook): Update to use new lattices.
430 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
431 (ipa_free_all_structures_after_iinln): Likewise.
432 (ipa_write_node_info): Update to use new lattices.
433 (ipa_read_node_info): Likewise.
434 (ipa_get_jf_pass_through_result): New function.
435 (ipa_get_jf_ancestor_result): Likewise.
436 (ipa_value_from_jfunc): Likewise.
437 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
438 * ipa-cp.c: Reimplemented.
439 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
440 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
441 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
442 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
443 * doc/invoke.texi (devirt-type-list-size): Removed description.
444 (ipa-cp-value-list-size): Added description.
445
446 2011-07-18 Richard Henderson <rth@redhat.com>
447
448 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
449 before calling create_basic_block.
450
451 2011-07-18 Jakub Jelinek <jakub@redhat.com>
452
453 PR middle-end/49675
454 * tree.c (build_common_builtin_nodes): Register
455 __builtin_return_address, __cyg_profile_func_enter
456 and __cyg_profile_func_exit.
457
458 2011-07-18 Richard Henderson <rth@redhat.com>
459
460 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
461 (add_labels_and_missing_jumps): ... here.
462 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
463
464 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
465
466 PR target/47744
467 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
468 of DImode hard registers in PLUS address chains.
469
470 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
471
472 PR bootstrap/49769
473 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
474 (alpha*-*-freebsd*): Likewise.
475 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
476 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
477 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
478 crtprec80.o, crtfastmath.o to extra_parts for all targets.
479 (ia64*-*-elf*): Remove extra_parts.
480 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
481 (sparc64-*-linux*): Likewise.
482 (sparc64-*-freebsd*): Likewise.
483
484 Revert:
485 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
486 (ia64*-*-linux*): Likewise.
487 (mips64*-*-linux*): Likewise.
488 (mips*-*-linux*): Likewise.
489
490 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
491
492 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
493
494 2011-07-18 Richard Guenther <rguenther@suse.de>
495
496 * gimplify.c (gimplify_expr): Use input_location, not saved_location
497 when building new trees.
498
499 2011-07-18 Richard Guenther <rguenther@suse.de>
500
501 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
502 expansion result to bitfield precision if required.
503
504 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
505
506 * config.gcc (i[3456x]86-*-netware*): Remove.
507
508 * gthr-nks.h: Remove.
509 * configure.ac (enable_threads): Remove nks.
510 * configure: Regenerate.
511
512 * config/i386/i386.c (ix86_encode_section_info): Remove netware
513 reference.
514 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
515 <netware.h> reference.
516
517 * config/i386/netware-libgcc.c,
518 gcc/config/i386/netware-libgcc.def,
519 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
520 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
521 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
522 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
523
524 * doc/extend.texi (Function Attributes,
525 callee_pop_aggregate_return): Remove i?86-netware reference.
526 * doc/install.texi (Configuration, --enable-threads): Remove nks.
527
528 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
529
530 PR target/49746
531 Revert:
532 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
533
534 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
535 patterns.
536
537 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
538
539 PR middle-end/49732
540 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
541
542 2011-07-16 Matthias Klose <doko@ubuntu.com>
543
544 * doc/install.texi: Document --enable-static-libjava.
545
546 2011-07-15 Richard Henderson <rth@redhat.com>
547
548 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
549 Replace all three arguments by returning a VEC of edges.
550 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
551 pointers and counts.
552 (fix_edges_for_rarely_executed_code): Merge ...
553 (rest_of_handle_partition_blocks): ... into...
554 (partition_hot_cold_basic_blocks): ... here. Return todo items if
555 any work was performed.
556 (pass_partition_blocks): Clear todo_flags_finish.
557
558 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
559 Jakub Jelinek <jakub@redhat.com>
560 Jonathan Wakely <jwakely.gcc@gmail.com>
561
562 PR libstdc++/49745
563 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
564 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
565
566 2011-07-15 Jason Merrill <jason@redhat.com>
567
568 PR testsuite/49741
569 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
570 rather than --tool_opts.
571
572 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
573
574 * doc/plugins.texi (Building GCC plugins): gengtype needs its
575 corresponding gtype.state.
576
577 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
578
579 PR target/49723
580 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
581
582 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
583
584 PR target/48220
585 * doc/md.texi (Standard Names): Document window_save.
586 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
587 expand_debug_expr and expand_debug_source_expr. If the target has
588 a window_save instruction, adjust the ENTRY_VALUE_EXP.
589 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
590 SSA_NAME_VAR is a parameter.
591 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
592 * var-tracking.c (parm_reg_t): New type and associated vector type.
593 (windowed_parm_regs): New variable.
594 (adjust_insn): If the target has a window_save instruction and this
595 is the instruction, make its effect on parameter registers explicit.
596 (next_non_note_insn_var_location): New function.
597 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
598 (vt_add_function_parameter): If the target has a window_save insn,
599 adjust the incoming RTL and record that in windowed_parm_regs.
600 (vt_finalize): Free windowed_parm_regs.
601
602 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
603
604 * doc/invoke.texi (C6X Options): New section.
605 * doc/md.texi (TI C6X family): New section.
606 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
607 tic6x-*-uclinux.
608 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
609 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
610 Provide C6X definitions.
611 * config/c6x/c6x.md: New file.
612 * config/c6x/constraints.md: New file.
613 * config/c6x/predicates.md: New file.
614 * config/c6x/c6x-sched.md.in: New file.
615 * config/c6x/c6x-sched.md: New file.
616 * config/c6x/gensched.sh: New file.
617 * config/c6x/c6x-mult.md.in: New file.
618 * config/c6x/genmult.sh: New file.
619 * config/c6x/c6x-mult.md: New file.
620 * config/c6x/sync.md: New file.
621 * config/c6x/c6x-protos.h: New file.
622 * config/c6x/sfp-machine.h: New file.
623 * config/c6x/c6x.c: New file.
624 * config/c6x/c6x.h: New file.
625 * config/c6x/crti.s: New file.
626 * config/c6x/crtn.s: New file.
627 * config/c6x/lib1funcs.asm: New file.
628 * config/c6x/c6x-modes.def: New file.
629 * config/c6x/genopt.sh: New file.
630 * config/c6x/c6x.opt: New file.
631 * config/c6x/c6x-tables.opt: New file.
632 * config/c6x/c6x-opts.h: New file.
633 * config/c6x/c6x-isas.def: New file.
634 * config/c6x/elf.h: New file.
635 * config/c6x/elf-common.h: New file.
636 * config/c6x/uclinux-elf.h: New file.
637 * config/c6x/t-c6x: New file.
638 * config/c6x/t-c6x-elf: New file.
639 * config/c6x/t-c6x-uclinux: New file.
640 * config/c6x/t-c6x-softfp: New file.
641 * config/c6x/gtd.c: New file.
642 * config/c6x/gtf.c: New file.
643 * config/c6x/ltd.c: New file.
644 * config/c6x/ltf.c: New file.
645 * config/c6x/ged.c: New file.
646 * config/c6x/gef.c: New file.
647 * config/c6x/led.c: New file.
648 * config/c6x/lef.c: New file.
649 * config/c6x/eqd.c: New file.
650 * config/c6x/eqf.c: New file.
651 * config/c6x/libgcc-c6xeabi.ver: New file.
652
653 Revert
654 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
655 PR rtl-optimization/11320
656 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
657 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
658 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
659 current_sched_info->compute_jump_reg_dependencies. Record which
660 registers are used and which registers are set by the jump.
661 Clear deps->reg_conditional_sets after a barrier.
662 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
663 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
664 (init_deps): Initialize reg_conditional_sets.
665 (free_deps): Clear reg_conditional_sets.
666 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
667 Mark registers live on entry of the fallthrough block and conditionally
668 set as set by the jump. Mark registers live on entry of non-fallthrough
669 blocks as used by the jump.
670 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
671 Mark new parameters as unused.
672
673 2011-07-14 Andrew Pinski <pinskia@gmail.com>
674
675 PR tree-opt/49309
676 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
677 Use fold_build2_loc instead of build2.
678 Use the correct type for the new tree.
679
680 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
681
682 PR rtl-optimization/11320
683 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
684 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
685
686 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
687
688 PR target/49487
689 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
690 of REG.
691 (*rotw<mode>): Use const_int_operand for operand2.
692 Use match_scatch for operand3.
693 (*rotb<mode>): Ditto
694 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
695
696 2011-07-14 Richard Guenther <rguenther@suse.de>
697
698 PR tree-optimization/49651
699 * tree-ssa-structalias.c (get_constraint_for_1): Properly
700 handle dereferences with subvariables.
701
702 2011-07-14 Richard Guenther <rguenther@suse.de>
703
704 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
705 (fold_stmt_1): Do it here directly on gimple and as a first thing.
706
707 2011-07-14 Richard Guenther <rguenther@suse.de>
708
709 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
710 not bool_var when folding bool_var != 1 or bool_var == 0.
711
712 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
713
714 * haifa-sched.c (schedule_insns): Remove outdated comment.
715 (schedule_block): When computing a known value for TODO_SPEC,
716 just set it rather than using logical operations.
717 (try_ready): Likewise. Use a local variable rather than a
718 pointer to TODO_SPEC. Reorder an if statement to move the
719 easy case to the then block.
720 * sched-deps.c (dep_spec_p): New static function.
721 (update_dep): Use it to decide whether to call
722 change_spec_dep_to_hard.
723 (get_back_and_forw_lists): Use it.
724 (sd_resolve_dep): Likewise.
725 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
726 (haifa_note_mem_dep): Likewise.
727 (check_dep): Likewise.
728 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
729 (sched_free_deps): Free in two passes.
730
731 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
732
733 PR middle-end/49736
734 * expr.c (all_zeros_p): Undo bogus part of last change.
735
736 2011-07-14 Matthias Klose <doko@ubuntu.com>
737
738 * doc/extend.texi (optimize attribute): Fix typo.
739
740 2011-07-14 Richard Guenther <rguenther@suse.de>
741
742 * gimplify.c (gimplify_expr): Only do required conversions.
743
744 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
745
746 PR target/43746
747 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
748 i.e. use default_elf_select_section.
749 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
750 (READONLY_DATA_SECTION_ASM_OP): Remove.
751 (TARGET_ASM_NAMED_SECTION): Move from here...
752 * config/avr/avr.c: ...to here.
753 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
754 (avr_asm_named_section): Make static.
755
756 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
757
758 PR bootstrap/49739
759 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
760 and crtfastmath.o for Linux/x86.
761
762 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
763
764 * haifa-sched.c: Include "hashtab.h"
765 (sched_no_dce): New global variable.
766 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
767 SHADOW_P): New macros.
768 (last_clock_var, cycle_issued_insns): Move declarations.
769 (must_backtrack): New static variable.
770 (struct delay_pair): New structure.
771 (delay_htab, delay_htab_i2): New static variables.
772 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
773 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
774 functions.
775 (dep_cost_1): If delay pairs exist, try to look up the insns and
776 use the correct pair delay if we find them.
777 (rank-for_schedule): Tweak priority for insns that must be scheduled
778 soon to avoid backtracking.
779 (queue_insn): Detect conditions which force backtracking.
780 (ready_add): Likewise.
781 (struct sched_block_state): Add member shadows_only_p.
782 (struct haifa_save_data): New structure.
783 (backtrack_queue): New static variable.
784 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
785 unschedule_insns_until, restore_last_backtrack_point,
786 free_topmost_backtrack_point, free_backtrack_queue,
787 estimate_insn_tick, estimate_shadow_tick): New functions.
788 (prune_ready_list): New arg shadows_only_p. All callers changed.
789 If true, remove everything that isn't SHADOW_P. Look up delay
790 pairs and estimate ticks to avoid scheduling the first insn too early.
791 (verify_shadows): New function.
792 (schedule_block): Add machinery to enable backtracking.
793 (sched_init): Take sched_no_dce into account when setting
794 DF_LR_RUN_DCE.
795 (free_delay_pairs): New function.
796 (init_h_i_d): Initialize INSN_EXACT_TICK.
797 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
798 * sched-deps.c (sd_unresolve_dep): New function.
799 * sched-int. (struct haifa_sched_info): New fields save_state
800 and restore_state.
801 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
802 feeds_backtrack_insn and shadow_p.
803 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
804 (sched_no_dce): Declare variable.
805 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
806 sd_unresolve_dep): Declare functions.
807 * modulo-sched.c (sms_sched_info): Clear the two new fields.
808 * sched-rgn.c (rgn_const_sched_info): Likewise.
809 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
810 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
811 (ebb_sched_info): Add them for the two new fields.
812 (add_deps_for_risky_insns): Call add_delay_dependencies.
813
814 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
815
816 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
817 Rename -mr11.
818 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
819 (rs6000_call_indirect_aix): Ditto.
820 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
821 (call_indirect_aix<ptrsize>_internal): Ditto.
822 (call_indirect_aix<ptrsize>_nor11): Ditto.
823 (call_indirect_aix<ptrsize>_internal2): Ditto.
824 (call_value_indirect_aix<ptrsize>): Ditto.
825 (call_value_indirect_aix<ptrsize>_internal): Ditto.
826 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
827 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
828 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
829
830 2011-07-13 Jason Merrill <jason@redhat.com>
831
832 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
833
834 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
835
836 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
837 * config/spu/spu.md ("clrsb<mode>2"): New expander.
838
839 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
840
841 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
842 * configure: Regenerate.
843
844 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
845
846 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
847 (asm_file_start): Remove.
848 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
849 free_bb_for_insn around code that modifies insns before
850 restarting df analysis.
851
852 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
853
854 PR target/49541
855 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
856 (LINK_SPEC): ... here.
857
858 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
859
860 * haifa-sched.c (struct sched_block_state): New.
861 (schedule_block): Move some local variables into such a structure.
862
863 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
864
865 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
866 * config/i386/t-crtpc: Remove.
867 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
868 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
869 tmake_file.
870 (x86_64-*-darwin*): Likewise.
871 (i[34567]86-*-linux*): Likewise.
872 (x86_64-*-linux*): Likewise.
873
874 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
875 Handle -mpc32, -mpc64, -mpc80.
876
877 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
878
879 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
880 * config/alpha/t-crtfm: Remove.
881 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
882 * config/i386/t-crtfm: Remove.
883 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
884 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
885 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
886 * config/sparc/t-crtfm: Remove.
887
888 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
889 (alpha*-*-freebsd*): Likewise.
890 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
891 (x86_64-*-darwin*): Likewise.
892 (i[34567]86-*-linux*): Likewise.
893 (x86_64-*-linux*): Likewise.
894 (x86_64-*-mingw*): Likewise.
895 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
896 (ia64*-*-freebsd*): Likewise.
897 (ia64*-*-linux*): Likewise.
898 (mips64*-*-linux*): Likewise.
899 (mips*-*-linux*): Likewise.
900 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
901 (sparc64-*-linux*): Likewise.
902 (sparc64-*-freebsd*): Likewise.
903
904 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
905
906 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
907 * config/darwin-crt3.c: Move to ../libgcc/config.
908 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
909 ($(T)crt3$(objext)): Remove.
910 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
911 ($(T)crt2$(objext)): Remove.
912 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
913 (powerpc64-*-darwin*): Likewise.
914
915 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
916
917 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
918
919 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
920 (addsi_1_zext): This.
921
922 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
923
924 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
925 * doc/tm.texi: Regenerate.
926 * target.def (mergeable_rodata_prefix): New defhookpod.
927 * varasm.c (mergeable_string_section, mergeable_constant_section):
928 Use it. Allocate name with alloca.
929
930 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
931
932 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
933
934 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
935
936 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
937 overlap check.
938
939 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
940
941 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
942 (count_type_elements): Delete.
943 (complete_ctor_at_level_p): Declare.
944 * expr.c (flexible_array_member_p): New function, split out from...
945 (count_type_elements): ...here. Make static. Replace allow_flexarr
946 parameter with for_ctor_p. When for_ctor_p is true, return the
947 number of elements that should appear in the top-level constructor,
948 otherwise return an estimate of the number of scalars.
949 (categorize_ctor_elements): Replace p_must_clear with p_complete.
950 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
951 (complete_ctor_at_level_p): New function, borrowing union logic
952 from old categorize_ctor_elements_1.
953 (mostly_zeros_p): Return true if the constructor is not complete.
954 (all_zeros_p): Update call to categorize_ctor_elements.
955 * gimplify.c (gimplify_init_constructor): Update call to
956 categorize_ctor_elements. Don't call count_type_elements.
957 Unconditionally prevent clearing for variable-sized types,
958 otherwise rely on categorize_ctor_elements to detect
959 incomplete initializers.
960
961 2011-07-13 Richard Guenther <rguenther@suse.de>
962
963 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
964 the final type is integral.
965
966 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
967
968 * sched-int.h (struct _dep): Add member cost.
969 (DEP_COST, UNKNOWN_DEP_COST): New macros.
970 * sched-deps.c (init_dep_1): Initialize DEP_COST.
971 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
972 (sched_change_pattern): Reset it for dependent insns.
973
974 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
975
976 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
977 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
978 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
979 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
980 (CRT0_S, MCRT0_S): Remove.
981 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
982 Remove.
983 (s-crt0): Remove.
984 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
985
986 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
987
988 * cse.c (insert_with_costs): Put semi-colon after empty loop body
989 on the next line.
990 * emit-rtl.c (push_to_sequence): Likewise.
991 * haifa-sched.c (max_issue): Likewise.
992 * matrix-reorg.c (add_allocation_site): Likewise.
993 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
994 * reload.c (alternative_allows_const_pool_ref): Likewise.
995 * sched-rgn.c (rgn_add_block): Likewise.
996 (rgn_fix_recovery_cfg): Likewise.
997 * tree.c (attribute_list_contained): Likewise.
998
999 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
1000
1001 * config/i386/i386.c: Tidy processor feature bitmasks.
1002 (m_P4_NOCONA): New.
1003
1004 2011-07-12 Andrew Pinski <pinskia@gmail.com>
1005
1006 PR rtl-opt/49474
1007 * cprop.c (find_implicit_sets): Correct the condition.
1008
1009 2011-07-12 Richard Henderson <rth@redhat.com>
1010
1011 PR target/49713
1012 * dwarf2out.h (dwarf_frame_regnum): Remove.
1013 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
1014 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
1015 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
1016 (execute_dwarf2_frame): Initialize them.
1017 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
1018 users of the macros with the variables.
1019 (expand_builtin_dwarf_sp_column): Revert last change.
1020 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
1021 result of DWARF_FRAME_REGNUM into a local variable.
1022
1023 2011-07-12 Richard Henderson <rth@redhat.com>
1024
1025 PR target/49714
1026 * config/i386/i386.c (x86_output_mi_thunk): Use
1027 machopic_indirect_call_target instead of machopic_indirection_name
1028 directly.
1029
1030 2011-07-12 Laurent GUERBY <laurent@guerby.net>
1031 Eric Botcazou <ebotcazou@adacore.com>
1032
1033 * prefix.h: Wrap up in extern "C" block.
1034
1035 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
1036
1037 AMD bdver2 Enablement
1038 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
1039 (case ${target}): Add bdver2.
1040 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1041 -march=native recognize bdver2 processors.
1042 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1043 bdver2 def_and_undef
1044 * config/i386/i386.c (struct processor_costs bdver2_cost): New
1045 bdver2 cost table.
1046 (m_BDVER2): New definition.
1047 (m_AMD_MULTIPLE): Includes m_BDVER2.
1048 (initial_ix86_tune_features): Add bdver2 tuning.
1049 (processor_target_table): Add bdver2 entry.
1050 (static const char *const cpu_names): Add bdver2 entry.
1051 (ix86_option_override_internal): Add bdver2 instruction sets.
1052 (ix86_issue_rate): Add bdver2.
1053 (ix86_adjust_cost): Add bdver2.
1054 (has_dispatch): Add bdver2.
1055 * config/i386/i386.h (TARGET_BDVER2): New definition.
1056 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
1057 (enum processor_type): Add PROCESSOR_BDVER2.
1058 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
1059 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
1060 description.
1061
1062 2011-07-12 Richard Henderson <rth@redhat.com>
1063
1064 PR target/49714
1065 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
1066 destination address in memory on some paths.
1067
1068 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
1069
1070 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
1071 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
1072 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
1073 * function.c (locate_and_pad_parm): Take it into account.
1074 * target.def (function_arg_round_boundary): New hook.
1075 * targhooks.c (default_function_arg_round_boundary): New function.
1076 * targhooks.h (default_function_arg_round_boundary): Declare.
1077 * doc/tm.texi: Regenerate.
1078
1079 2011-07-12 Richard Guenther <rguenther@suse.de>
1080
1081 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
1082 Do not perform no-op changes.
1083
1084 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
1085
1086 * config/arm/predicates.md (neon_struct_operand): Make a normal
1087 predicate.
1088 (neon_struct_or_register_operand): New predicate.
1089 * config/arm/neon.md (movmisalign<mode>): Replace predicates
1090 with neon_struct_or_register_operand.
1091 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
1092 neon_struct_operand instead of memory_operand.
1093
1094 2011-07-12 Martin Jambor <mjambor@suse.cz>
1095
1096 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
1097 * cgraph.c (cgraph_get_node_or_alias): Removed.
1098 (change_decl_assembler_name): Changed all calls to
1099 cgraph_get_node_or_alias to a call to cgraph_get_node.
1100 (cgraph_make_decl_local): Likewise.
1101 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
1102 * varasm.c (default_binds_local_p_1): Likewise.
1103 (decl_binds_to_current_def_p): Likewise.
1104
1105 2011-07-12 Jakub Jelinek <jakub@redhat.com>
1106
1107 PR tree-optimization/49712
1108 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
1109
1110 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
1111
1112 * genautomata.c (add_arc): Return void. All callers changed.
1113 (make_automaton): Remove dead code.
1114
1115 2011-07-11 Richard Henderson <rth@redhat.com>
1116
1117 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
1118 (DW_FRAME_POINTER_REGNUM): New.
1119 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
1120 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
1121 (dwf_regno): New.
1122 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
1123 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
1124 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
1125 Use it.
1126 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
1127 * dwarf2out.h (dwarf_frame_regnum): New.
1128 (struct cfa_loc): Document the domain of the reg member.
1129
1130 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
1131
1132 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
1133 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
1134
1135 2011-07-11 Jakub Jelinek <jakub@redhat.com>
1136
1137 PR debug/49676
1138 * dwarf2out.c (int_shift_loc_descriptor): New function.
1139 (int_loc_descriptor): If shorter, emit i as
1140 (i >> shift), shift, DW_OP_shl for suitable shift value.
1141 Similarly, try to optimize large negative values using
1142 DW_OP_neg of a positive value if shorter.
1143 (size_of_int_shift_loc_descriptor): New function.
1144 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
1145 changes.
1146 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
1147 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
1148 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
1149 is shorter.
1150 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
1151 addend as added DW_OP_plus if it is shorter.
1152
1153 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1154
1155 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
1156 (DTORS_SECTION_ASM_OP): Define.
1157
1158 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1159
1160 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
1161 * config/t-dfprules: Move to ../libgcc/config.
1162 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1163 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1164 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
1165 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
1166 Likewise.
1167 (i[34567]86-*-cygwin*): Likewise.
1168 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
1169 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
1170 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
1171 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
1172 D64PBIT_FUNCS, D128PBIT_FUNCS.
1173
1174 2011-07-11 Richard Guenther <rguenther@suse.de>
1175
1176 * tree-vrp.c (simplify_conversion_using_ranges): Manually
1177 translate the source value-range through the conversion chain.
1178
1179 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
1180
1181 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
1182
1183 2011-07-11 Arthur Loiret <aloiret@debian.org>
1184
1185 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
1186 a bi-arch compiler defaulting to 31-bit. In this case:
1187 (tmake_file): Add s390/t-linux64.
1188 * doc/install.texi: Add s390-linux to the list of targets supporting
1189 --enable-targets=all.
1190
1191 2011-07-11 Arthur Loiret <aloiret@debian.org>
1192 Matthias Klose <doko@debian.org>
1193
1194 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
1195 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
1196 (tm_file): Add mips/linux64.h.
1197 (tmake_file): Add mips/t-linux64.
1198 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1199 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
1200 instead of hardcoded mabi=n32.
1201 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1202 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1203 convention.
1204
1205 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1206
1207 * passes.c (init_optimization_passes): Add invariant motion pass
1208 after induction variable optimization.
1209
1210 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
1211
1212 PR target/39633
1213 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
1214 offsets 1..5 set cc0 in a usable way.
1215
1216 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
1217
1218 * tree.h (call_expr_arg): Remove.
1219 (call_expr_argp): Likewise.
1220
1221 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
1222
1223 * config/sparc/sparc.md (save_register_window_1): Rename to...
1224 (window_save): ...this.
1225 * config/sparc/sparc.c (emit_save_register_window): Rename to...
1226 (emit_window_save): ...this.
1227 (sparc_expand_prologue): Adjust to above renaming.
1228
1229 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
1230
1231 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
1232 of movabs for x32.
1233
1234 2011-07-10 Richard Henderson <rth@redhat.com>
1235
1236 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
1237 run final, instead of emitting text directly.
1238
1239 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
1240
1241 * config/i386/i386.c (ix86_option_override_internal): Turn on
1242 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
1243 small PIC models for TARGET_X32.
1244
1245 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
1246
1247 PR target/49684
1248 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
1249 $(LIBGCC2_CFLAGS).
1250
1251 PR bootstrap/49680
1252 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
1253 stray notes and debug insns by using prev_nonnote_nondebug_insn
1254 instead of PREV_INSN.
1255
1256 2011-07-09 Richard Henderson <rth@redhat.com>
1257
1258 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
1259 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
1260 * dwarf2out.c: ... here.
1261 (output_all_cfis): Remove.
1262 (dwarf2out_switch_text_section): Use output_cfis directly.
1263 (size_of_locs): Export.
1264 (output_loc_sequence, output_loc_sequence_raw): Export.
1265 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
1266 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
1267 output_cfa_loc_raw): Move to ...
1268 * dwarfcfi.c: ... here.
1269 * dwarf2out.h: Update decls.
1270
1271 2011-07-09 Richard Henderson <rth@redhat.com>
1272
1273 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
1274 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
1275 * dwarf2cfi.c: ... here.
1276 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
1277 (DWARF_ROUND, DWARF_CIE_ID): Remove.
1278 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
1279 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
1280 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
1281
1282 2011-07-09 Richard Henderson <rth@redhat.com>
1283
1284 * dwarf2cfi.c (cie_return_save): New.
1285 (queue_reg_save): Use compare_reg_or_pc.
1286 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
1287 (dwarf2out_frame_debug_expr): Likewise.
1288 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
1289 (initial_return_save): Likewise.
1290 (execute_dwarf2_frame): Save and restore initial return save from
1291 the cie to the fde.
1292 * config/mips/mips.c (mips_frame_set): Remove special case for
1293 DWARF_FRAME_RETURN_COLUMN.
1294
1295 2011-07-09 Richard Henderson <rth@redhat.com>
1296
1297 * dwarf2cfi.c (lookup_cfa): Remove.
1298 (execute_dwarf2_frame): Assert queues are empty on entry.
1299 Setup initial cfa directly, not via lookup_cfa.
1300 Don't clear args_size state here.
1301
1302 2011-07-09 Richard Henderson <rth@redhat.com>
1303
1304 * dwarf2cfi.c (add_cfi_vec): New.
1305 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
1306 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
1307 (execute_dwarf2_frame): Set add_cfi_vec.
1308
1309 2011-07-09 Richard Henderson <rth@redhat.com>
1310
1311 * defaults.h (ASM_COMMENT_START): Move here...
1312 * dwarf2asm.c: ... from here.
1313 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
1314 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
1315 * varasm.c: Likewise.
1316
1317 2011-07-09 Richard Henderson <rth@redhat.com>
1318
1319 PR debug/49686
1320 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
1321 (create_cfi_notes): ... do it here instead.
1322
1323 2011-07-09 Jakub Jelinek <jakub@redhat.com>
1324
1325 PR debug/49676
1326 * dwarf2out.c (size_of_int_loc_descriptor): New function.
1327 (address_of_int_loc_descriptor): Use it.
1328 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
1329
1330 2011-07-09 Richard Henderson <rth@redhat.com>
1331
1332 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
1333 (prologue, epilogue): New.
1334 (return, *rts): New.
1335 (blockage, setd, seti): New.
1336 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
1337 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
1338 (pdp11_saved_regno): New.
1339 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
1340 generate rtl instead of text.
1341 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
1342 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
1343 * config/pdp11/pdp11-protos.h: Update.
1344
1345 2011-07-09 Richard Henderson <rth@redhat.com>
1346
1347 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
1348 try to insert an rtl prologue here.
1349 (rs6000_output_function_epilogue): Similarly.
1350 * config/rs6000/rs6000.md (prologue): Emit a barrier to
1351 satisfy !TARGET_SCHED_PROLOG.
1352 (epilogue, sibcall_epilogue): Likewise.
1353
1354 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
1355
1356 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
1357 (FP_REG_P): Delete.
1358 (IN_OR_GLOBAL_P): Likewise.
1359
1360 2011-07-08 Jason Merrill <jason@redhat.com>
1361
1362 PR c++/45437
1363 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
1364 compound assignment.
1365
1366 * cgraph.c (cgraph_add_to_same_comdat_group): New.
1367 * cgraph.h: Declare it.
1368 * ipa.c (function_and_variable_visibility): Make sure thunks
1369 have the right visibility.
1370
1371 2011-07-08 Richard Henderson <rth@redhat.com>
1372
1373 PR bootstrap/49680
1374 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
1375 any tablejump vector.
1376
1377 PR bootstrap/49680
1378 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
1379 end of the prologue.
1380
1381 2011-07-08 Jakub Jelinek <jakub@redhat.com>
1382
1383 PR target/49621
1384 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
1385 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
1386 * config/rs6000/vector.md (vector_select_<mode>,
1387 vector_select_<mode>_uns): Change second operand of NE to
1388 CONST0_RTX (<MODE>mode) instead of const0_rtx.
1389 * config/rs6000/altivec.md (*altivec_vsel<mode>,
1390 *altivec_vsel<mode>_uns): Expect second operand of NE to be
1391 zero_constant of the corresponding vector mode.
1392 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
1393 Likewise.
1394
1395 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
1396
1397 * graphite-dependences.c (build_alias_set_powerset): Remove
1398 continue from loop, add one more assert.
1399
1400 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
1401
1402 PR target/46779
1403 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
1404 In particular, allow 8-bit values in r28 and r29.
1405 (avr_hard_regno_scratch_ok): Disallow any register that might be
1406 part of the frame pointer.
1407 (avr_hard_regno_rename_ok): Same.
1408 (avr_legitimate_address_p): Don't allow SUBREGs.
1409
1410 2011-07-08 Julian Brown <julian@codesourcery.com>
1411
1412 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
1413 big-endian mode.
1414 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
1415 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
1416 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
1417 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
1418 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
1419 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
1420 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
1421 registers in big-endian mode.
1422
1423 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
1424
1425 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
1426 in terms of another.
1427 (write_attr_value): Write a cast if necessary.
1428
1429 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
1430 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
1431 (REG_WORDS_BIG_ENDIAN): Document.
1432 * doc/tm.texi: Regenerate.
1433 * reload.c (operands_match_p): Take it into account.
1434 (reload_adjust_reg_for_mode): Likewise.
1435 * rtlanal.c (subreg_get_info): Likewise.
1436
1437 2011-07-08 Richard Guenther <rguenther@suse.de>
1438
1439 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
1440 folding.
1441
1442 2011-07-08 Kai Tietz <ktietz@redhat.com>
1443
1444 * fold-const.c (fold_truth_andor): Factored out truth_andor
1445 label from fold_binary as function.
1446 (fold_binary_loc): Replace truth_andor lable
1447 by function fold_truth_andor.
1448
1449 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
1450
1451 PR middle-end/49519
1452 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
1453 check if address is stored in register. If so - give up.
1454 (check_sibcall_argument_overlap_1): Do not perform check of
1455 overlapping when it is call to address.
1456
1457 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
1458
1459 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
1460 of magic '31'.
1461
1462 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
1463
1464 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
1465 GET_MODE_BITSIZE where appropriate.
1466 (widen_leading, expand_parity, expand_ctz, expand_ffs,
1467 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
1468 expand_float, expand_fix): Likewise.
1469 * expr.c (convert_move, convert_modes, expand_expr_real_2,
1470 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
1471 * stor-layout.c (get_mode_bounds): Likewise.
1472 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
1473 Likewise.
1474 * convert.c (convert_to_integer): Likewise.
1475 * expmed.c (expand_shift_1): Likewise.
1476
1477 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
1478 a bitsize.
1479
1480 * optabs.c (expand_binop): Tighten conditions for doubleword
1481 expansions.
1482 (widen_bswap): Assert that mode bitsize and precision are the same.
1483 * stor-layout.c (get_best_mode): Skip modes that have lower
1484 precision than bitsize.
1485 * recog.c (simplify_while_replacing): Assert that bitsize and
1486 precision are the same.
1487
1488 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1489
1490 * Makefile.in (LIBGCOV): Remove.
1491 (libgcc.mvars): Remove LIBGCOV.
1492 * libgov.c: Move to ../libgcc.
1493
1494 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1495
1496 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
1497
1498 2011-07-08 Martin Jambor <mjambor@suse.cz>
1499
1500 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
1501 is too big for total scalarization.
1502
1503 2011-07-07 Richard Henderson <rth@redhat.com>
1504
1505 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
1506 (DBX_DEBUGGING_INFO): Undef.
1507
1508 2011-07-07 Richard Henderson <rth@redhat.com>
1509
1510 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
1511 Handle some opcodes specially for debugging.
1512 * print-rtl.c: Include dwarf2out.h
1513 (print_rtx): Handle NOTE_INSN_CFI.
1514 * Makefile.in (print-rtl.o): Update.
1515
1516 2011-07-07 Richard Henderson <rth@redhat.com>
1517
1518 * tree-pass.h (pass_dwarf2_frame): Declare.
1519 * passes.c (init_optimization_passes): Add it.
1520 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
1521 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
1522 make static, do not call add_cfis_to_fde.
1523 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
1524 dwarf2out_frame_init): Merge into...
1525 (execute_dwarf2_frame): ... here. New function.
1526 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
1527 saved_do_cfi_asm to a tri-state variable.
1528 (gate_dwarf2_frame, pass_dwarf2_frame): New.
1529 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
1530 if it has yet to be done. Don't call dwarf2cfi_function_init.
1531 * dwarf2out.h, debug.h: Update decls.
1532 * final.c (final_start_function): Don't call
1533 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
1534 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
1535 * toplev.c (lang_dependent_init): Likewise.
1536
1537 2011-07-07 Richard Henderson <rth@redhat.com>
1538
1539 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
1540 FDE_TABLE_INCREMENT): Replace with...
1541 (fde_vec): ... this, a new vector.
1542 (current_fde): Remove. Replace all users with cfun->fde.
1543 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
1544 (size_of_aranges, dwarf2out_finish): Likewise.
1545 (dwarf2out_alloc_current_fde): Break out from ...
1546 (dwarf2out_begin_prologue): ... here.
1547 (dwarf2out_frame_init): Remove.
1548 * dwarf2cfi.c: Update all users of current_fde.
1549 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
1550 * dwarf2out.h: Update decls.
1551 (dw_fde_node): Add fde_index member.
1552 * function.h (struct function): Add fde member.
1553
1554 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1555 Richard Henderson <rth@redhat.com>
1556
1557 * dwarf2cfi.c (add_cfi): Remove.
1558 (dwarf2out_cfi_label): Remove force argument. Only generate the
1559 label name.
1560 (add_fde_cfi): Simplify the different code paths.
1561 (add_cie_cfi): New.
1562 (old_cfa, old_cfa_remember): New.
1563 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
1564 (last_reg_save_label): Remove.
1565 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
1566 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1567 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1568 dwarf2out_frame_debug_cfa_expression,
1569 dwarf2out_frame_debug_cfa_restore,
1570 dwarf2out_frame_debug_cfa_window_save,
1571 dwarf2out_frame_debug_expr): Remove label parameter.
1572 (cfi_label_required_p, add_cfis_to_fde): New.
1573 (dwarf2out_frame_debug_after_prologue): New.
1574 (dwarf2cfi_frame_init): Initialize old_cfa.
1575 (dwarf2out_frame_debug_restore_state): Likewise.
1576 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
1577 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
1578 * final.c (final_start_function): Call
1579 dwarf2out_frame_debug_after_prologue.
1580
1581 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1582 Richard Henderson <rth@redhat.com>
1583
1584 * dwarf2cfi.c (cfi_insn): New.
1585 (dwarf2out_cfi_label): Don't emit cfi label here.
1586 (add_fde_cfi): Create a NOTE_INSN_CFI.
1587 (dwarf2out_frame_debug): Setup cfi_insn.
1588 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
1589 (dwarf2out_cfi_begin_epilogue): Make static.
1590 (dwarf2out_frame_debug_restore_state): Make static.
1591 * dwarf2out.c (output_cfi_directive): Make static.
1592 (dwarf2out_emit_cfi): New.
1593 * dwarf2out.h: Update.
1594 * final.c (final): Remove CFI notes.
1595 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
1596 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
1597 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
1598 * insn-notes.def (NOTE_INSN_CFI): New.
1599 (NOTE_INSN_CFI_LABEL): New.
1600 * rtl.h (union rtunion_def): Add rt_cfi member.
1601 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
1602
1603 2011-07-07 Richard Henderson <rth@redhat.com>
1604
1605 * dwarf2cfi.c: New file.
1606 * Makefile.in (OBJS): Add it.
1607 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
1608 * gengtype.c (open_base_files): Include dwarf2out.h.
1609 * coretypes.h (enum var_init_status): Move from ...
1610 * rtl.h: ... here.
1611 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
1612 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
1613 expand_builtin_dwarf_sp_column, init_return_column_size,
1614 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
1615 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
1616 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
1617 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
1618 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
1619 compute_barrier_args_size, dwarf2out_args_size,
1620 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
1621 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
1622 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
1623 queue_reg_save, dwarf2out_flush_queued_reg_saves,
1624 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
1625 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1626 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1627 dwarf2out_frame_debug_cfa_expression,
1628 dwarf2out_frame_debug_cfa_restore,
1629 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
1630 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
1631 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
1632 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
1633 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
1634 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
1635 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
1636 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
1637 dw_loc_descr_node): Move to dwarf2out.h.
1638 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
1639 mem_loc_descriptor): Export.
1640 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
1641 (dwarf2out_frame_init): Extract CIE generation code to
1642 dwarf2cfi_frame_init.
1643
1644 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
1645
1646 PR target/49660
1647 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
1648 MASK_V8PLUS, remove commented out flag and reorder.
1649
1650 2011-07-07 Jakub Jelinek <jakub@redhat.com>
1651
1652 PR c/49644
1653 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
1654 one non-complex and one complex argument, call c_save_expr on both
1655 operands.
1656
1657 2011-07-07 Martin Jambor <mjambor@suse.cz>
1658
1659 PR middle-end/49495
1660 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
1661 (verify_cgraph_node): Some functinality moved to
1662 verify_edge_corresponds_to_fndecl, call it.
1663
1664 2011-07-07 Joseph Myers <joseph@codesourcery.com>
1665
1666 * config.gcc (*local*): Remove.
1667 * doc/install-old.texi: Don't mention local configurations.
1668
1669 2011-07-07 Jakub Jelinek <jakub@redhat.com>
1670
1671 PR debug/49522
1672 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
1673 referencing debug insns that have been reset.
1674 (dead_debug_insert_before): Don't assert reg is non-NULL,
1675 instead return immediately if it is NULL.
1676
1677 2011-07-07 Joseph Myers <joseph@codesourcery.com>
1678
1679 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
1680
1681 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1682
1683 * hw-doloop.c: New file.
1684 * hw-doloop.h: New file.
1685 * Makefile.in (OBJS): Add hw-doloop.o.
1686 (hw-doloop.o): New rule.
1687 ($(obj_out_file)): Add hw-doloop.h dependency.
1688 * config/bfin/bfin.c: Include "hw-doloop.h".
1689 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
1690 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
1691 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
1692 type changed to hwloop_info. Return bool, true if the loop was
1693 successfully optimized. Remove code that was moved to
1694 hw-doloop.c, and adjust other parts.
1695 (hwloop_fail): New static function, containing parts that used
1696 to be in bfin_optimize_loop.
1697 (bfin_discover_loop, bfin_discover_loops, free_loops,
1698 bfin_reorder_loops): Remove.
1699 (hwloop_pattern_reg): New static function.
1700 (bfin_doloop_hooks): New variable.
1701 (bfin_reorg_loops): Remove most code, call reorg_loops.
1702 * config/bfin/bfin.md (doloop_end splitter): Also enable if
1703 loop counter is a memory_operand.
1704
1705 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
1706
1707 * config.gcc: Support --with-multilib-list for x86 Linux targets.
1708
1709 * configure.ac: Mention x86-64 for --with-multilib-list.
1710 * configure: Regenerated.
1711
1712 * config/i386/gnu-user64.h (SPEC_64): Support x32.
1713 (SPEC_32): Likewise.
1714 (ASM_SPEC): Likewise.
1715 (LINK_SPEC): Likewise.
1716 (TARGET_THREAD_SSP_OFFSET): Likewise.
1717 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
1718 (SPEC_X32): New.
1719
1720 * config/i386/i386.h (TARGET_X32): New.
1721 (TARGET_LP64): New.
1722 (LONG_TYPE_SIZE): Likewise.
1723 (POINTER_SIZE): Likewise.
1724 (POINTERS_EXTEND_UNSIGNED): Likewise.
1725 (OPT_ARCH64): Support x32.
1726 (OPT_ARCH32): Likewise.
1727
1728 * config/i386/i386.opt (mx32): New.
1729
1730 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
1731 (GLIBC_DYNAMIC_LINKERX32): Likewise.
1732 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
1733 (GLIBC_DYNAMIC_LINKERX32): Likewise.
1734
1735 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
1736 (BIONIC_DYNAMIC_LINKERX32): Likewise.
1737 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
1738
1739 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
1740
1741 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
1742
1743 * doc/invoke.texi: Document -mx32.
1744
1745 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
1746
1747 * doc/invoke.texi (mwords-little-endian): Deprecate.
1748 * config/arm/arm.opt (mwords-little-endian): Likewise.
1749 * config/arm/arm.c (arm_option_override): Warn about the deprecation
1750 of -mwords-little-endian.
1751
1752 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
1753
1754 * reload1.c (choose_reload_regs): Use mode sizes to check whether
1755 an old reload register completely defines the required value.
1756
1757 2011-07-07 Richard Guenther <rguenther@suse.de>
1758
1759 * fold-const.c (fold_unary_loc): Do not strip sign-changes
1760 for NEGATE_EXPR.
1761
1762 2011-07-07 Richard Guenther <rguenther@suse.de>
1763
1764 * tree-vrp.c (simplify_conversion_using_ranges): New function.
1765 (simplify_stmt_using_ranges): Call it.
1766
1767 2011-07-07 Kai Tietz <ktietz@redhat.com>
1768
1769 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
1770 (lookup_logical_inverted_value): Likewise.
1771 (simplify_bitwise_binary_1): Likewise.
1772 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
1773
1774 2011-07-07 Joseph Myers <joseph@codesourcery.com>
1775
1776 * gcc.c (%[Spec]): Don't document.
1777 (struct spec_list): Update comment.
1778 (do_spec_1): Don't handle %[Spec].
1779 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
1780
1781 2011-07-07 Joseph Myers <joseph@codesourcery.com>
1782
1783 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
1784 default based on TARGET_ASM_NAMED_SECTION.
1785 * common/common-target.def (have_named_sections): Default to true.
1786 * common/config/default-common.c: Don't include tm.h.
1787 * common/config/picochip/picochip-common.c
1788 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
1789 * common/config/m32c/m32c-common.c: Remove.
1790 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
1791 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1792 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1793 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1794 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1795 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1796 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1797
1798 2011-07-07 Jakub Jelinek <jakub@redhat.com>
1799
1800 PR middle-end/49640
1801 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
1802 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
1803
1804 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1805
1806 PR libmudflap/49550
1807 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
1808
1809 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1810
1811 PR target/39150
1812 * configure.ac (gcc_cv_as_hidden): Also accept
1813 x86_64-*-solaris2.1[0-9]*.
1814 (gcc_cv_as_cfi_directive): Likewise.
1815 (gcc_cv_as_comdat_group_group): Likewise.
1816 (set_have_as_tls): Likewise.
1817 * configure: Regenerate.
1818 * config.gcc (i[34567]86-*-solaris2*): Also handle
1819 x86_64-*-solaris2.1[0-9]*.
1820 * config.host (i[34567]86-*-solaris2*): Likewise.
1821 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
1822 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
1823 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
1824 (TARGET_LD_EMULATION): Use it.
1825 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
1826 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
1827 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
1828 (ASM_CPU64_DEFAULT_SPEC): Define.
1829 (ASM_CPU_SPEC): Use %(asm_cpu_default).
1830 (ASM_SPEC): Redefine.
1831 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
1832 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
1833 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
1834 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
1835 configuration.
1836 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
1837
1838 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1839
1840 * config/sol2.h (ASM_SPEC): Split into ...
1841 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
1842 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
1843 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
1844 (ASM_SPEC): Use ASM_SPEC_BASE.
1845 * config/sparc/sol2.h (ASM_SPEC): Redefine.
1846
1847 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
1848
1849 * config/avr/avr.md (*reload_insi): Change predicate #1 to
1850 const_int_operand. Ditto for peep2 producing this insn.
1851 Add argument to output_reload_insisf call.
1852 (*movsi,*movsf): Add argument to output_movsisf call.
1853 (*reload_insf): New insn and new peep2 to produce it.
1854 * config/avr/avr-protos.h (output_movsisf): Change prototype.
1855 (output_reload_insisf): Change prototype.
1856 * config/avr/avr.c (avr_asm_len): New function.
1857 (output_reload_insisf): Rewrite.
1858 (output_movsisf): Change prototype. output_reload_insisf for
1859 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
1860 (adjust_insn_length): Add argument to output_movsisf and
1861 output_reload_insisf call.
1862
1863 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1864
1865 * emit-rtl.c (paradoxical_subreg_p): New function.
1866 * rtl.h (paradoxical_subreg_p): Declare.
1867 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
1868 apply_distributive_law, simplify_comparison, simplify_set): Use it.
1869 * cse.c (record_jump_cond, cse_insn): Likewise.
1870 * expr.c (force_operand): Likewise.
1871 * rtlanal.c (num_sign_bit_copies1): Likewise.
1872 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
1873 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
1874 (push_reload): Use precision to check for paradoxical subregs.
1875 * expmed.c (extract_bit_field_1): Likewise.
1876
1877 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
1878 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
1879 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
1880 simplify_set, simplify_logical, expand_compound_operation,
1881 make_extraction, force_to_mode, if_then_else_cond, extended_count,
1882 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
1883 record_value_for_reg): Likewise.
1884 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
1885 * simplify-rtx. c (simplify_unary_operation_1,
1886 simplify_binary_operation_1, simplify_const_relational_operation):
1887 Likewise.
1888
1889 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
1890 instead of GET_MODE_BITSIZE where appropriate.
1891 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
1892 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
1893 init_num_sign_bit_copies_in_rep): Likewise.
1894 * cse.c (fold_rtx, cse_insn): Likewise.
1895 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
1896 * simplify-rtx.c (simplify_unary_operation_1,
1897 simplify_const_unary_operation, simplify_binary_operation_1,
1898 simplify_const_binary_operation, simplify_ternary_operation,
1899 simplify_const_relational_operation, simplify_subreg): Likewise.
1900 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
1901 simplify_if_then_else, simplify_set, expand_compound_operation,
1902 expand_field_assignment, make_extraction, if_then_else_cond,
1903 make_compound_operation, force_to_mode, make_field_assignment,
1904 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
1905 extended_count, try_widen_shift_mode, simplify_shift_const_1,
1906 simplify_comparison, record_promoted_value, simplify_compare_const,
1907 record_dead_and_set_regs_1): Likewise.
1908
1909 Revert:
1910 * simplify-rtx.c (simplify_const_binary_operation): Use the
1911 shift_truncation_mask hook instead of performing modulo by width.
1912 Compare against mode precision, not bitsize.
1913 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
1914 Use shift_truncation_mask instead of constructing the value manually.
1915
1916 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1917
1918 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
1919 declaration.
1920 (rs6000_save_toc_in_prologue_p): Ditto.
1921
1922 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
1923 up the static chain (r11) during indirect function calls.
1924 (-msave-toc-indirect): New undocumented debug switch.
1925
1926 * config/rs6000/rs6000.c (struct machine_function): Add
1927 save_toc_in_prologue field to note whether the prologue needs to
1928 save the TOC value in the reserved stack location.
1929 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
1930 to save the TOC in the prologue, do so.
1931 (rs6000_trampoline_init): Don't allow creating AIX style
1932 trampolines if -mno-r11 is in effect.
1933 (rs6000_call_indirect_aix): New function to create AIX style
1934 indirect calls, adding support for -mno-r11 to suppress loading
1935 the static chain, and saving the TOC in the prologue instead of
1936 the call body.
1937 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
1938 TOC in the prologue.
1939
1940 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
1941 register numbers.
1942 (TOC_REGNUM): Ditto.
1943 (STATIC_CHAIN_REGNUM): Ditto.
1944 (ARG_POINTER_REGNUM): Ditto.
1945 (SFP_REGNO): Delete, unused.
1946 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
1947 function descriptor offsets.
1948 (TOC_SAVE_OFFSET_64BIT): Ditto.
1949 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
1950 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
1951 (AIX_FUNC_DESC_SC_32BIT): Ditto.
1952 (AIX_FUNC_DESC_SC_64BIT): Ditto.
1953 (ptrload): New mode attribute for the appropriate load of a pointer.
1954 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
1955 (call_indirect_aix64): Ditto.
1956 (call_value_indirect_aix32): Ditto.
1957 (call_value_indirect_aix64): Ditto.
1958 (call_indirect_nonlocal_aix32_internal): Ditto.
1959 (call_indirect_nonlocal_aix32): Ditto.
1960 (call_indirect_nonlocal_aix64_internal): Ditto.
1961 (call_indirect_nonlocal_aix64): Ditto.
1962 (call): Rewrite AIX indirect function calls. Add support for
1963 eliminating the static chain, and for moving the save of the TOC
1964 to the function prologue.
1965 (call_value): Ditto.
1966 (call_indirect_aix<ptrsize>): Ditto.
1967 (call_indirect_aix<ptrsize>_internal): Ditto.
1968 (call_indirect_aix<ptrsize>_internal2): Ditto.
1969 (call_indirect_aix<ptrsize>_nor11): Ditto.
1970 (call_value_indirect_aix<ptrsize>): Ditto.
1971 (call_value_indirect_aix<ptrsize>_internal): Ditto.
1972 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
1973 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
1974 (call_nonlocal_aix32): Relocate in the rs6000.md file.
1975 (call_nonlocal_aix64): Ditto.
1976
1977 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
1978 -mno-r11 documentation.
1979
1980 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
1981
1982 PR other/49658
1983 * doc/extend.texi (Compound Literals): Fix typo.
1984
1985 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
1986
1987 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
1988
1989 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
1990
1991 * configure.ac (plugin-version.h): Generate
1992 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
1993 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
1994 macros.
1995
1996 * configure: Regenerate.
1997
1998 * doc/plugins.texi (Building GCC plugins): Mention
1999 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
2000
2001 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2002
2003 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
2004 * combine.c (make_extraction, gen_lowpart_or_truncate,
2005 apply_distributive_law, simplify_comparison,
2006 reg_truncated_to_mode, record_truncated_value): Use it.
2007 * cse.c (notreg_cost): Likewise.
2008 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
2009 * expr.c (convert_move, convert_modes): Likewise.
2010 * optabs.c (expand_binop, expand_unop): Likewise.
2011 * postreload.c (move2add_last_label): Likewise.
2012 * regmove.c (optimize_reg_copy_3): Likewise.
2013 * rtlhooks.c (gen_lowpart_general): Likewise.
2014 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2015
2016 2011-07-06 Joseph Myers <joseph@codesourcery.com>
2017
2018 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
2019
2020 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2021
2022 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
2023 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
2024 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
2025 (simplify_const_unary_operation, simplify_binary_operation_1,
2026 simplify_const_binary_operation, simplify_const_relational_operation):
2027 Use them. Use GET_MODE_MASK for masking and sign-extensions.
2028 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
2029 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
2030 simplify_shift_const_1, simplify_comparison): Likewise.
2031 * expr.c (convert_modes): Likewise.
2032 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
2033 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2034 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
2035
2036 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
2037
2038 2011-07-06 Richard Guenther <rguenther@suse.de>
2039
2040 PR tree-optimization/49645
2041 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
2042 register variables.
2043 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
2044 in type qualification here ...
2045 (copy_reference_ops_from_ref): ... not here.
2046 (vn_reference_lookup_3): ... or here.
2047 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
2048 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
2049
2050 2011-07-06 Ian Lance Taylor <iant@google.com>
2051
2052 * doc/install.texi (Configuration): It's
2053 --enable-gnu-indirect-function, not --enable-indirect-function.
2054
2055 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2056
2057 * simplify-rtx.c (simplify_const_binary_operation): Use the
2058 shift_truncation_mask hook instead of performing modulo by width.
2059 Compare against mode precision, not bitsize.
2060 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
2061 Use shift_truncation_mask instead of constructing the value manually.
2062
2063 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
2064
2065 PR middle-end/47383
2066 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
2067 address computation and convert to address_mode if needed.
2068
2069 2011-07-06 Richard Guenther <rguenther@suse.de>
2070
2071 * tree.c (build_common_tree_nodes_2): Merge with
2072 build_common_tree_nodes.
2073 * tree.h (build_common_tree_nodes): Adjust prototype.
2074 (build_common_tree_nodes_2): Remove.
2075 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
2076 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
2077
2078 2011-07-05 Jakub Jelinek <jakub@redhat.com>
2079
2080 PR tree-optimization/49618
2081 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
2082 t recurse on the decl.
2083 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
2084 return true if expr isn't known to be defined in current
2085 TU or some other LTO partition.
2086
2087 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2088
2089 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
2090 override CASE_VALUES_THRESHOLD.
2091
2092 * stmt.c (toplevel): Include params.h.
2093 (case_values_threshold): Use the --param case-values-threshold
2094 value if non-zero, otherwise use machine dependent value.
2095 (expand_case): Use case_values_threshold.
2096
2097 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
2098
2099 * doc/invoke.texi (--param case-values-threshold): Document.
2100
2101 2011-07-05 Richard Henderson <rth@redhat.com>
2102
2103 * dwarf2out.c (dwarf2out_cfi_label): Make static.
2104 (dwarf2out_flush_queued_reg_saves): Make static.
2105 (dwarf2out_reg_save): Remove.
2106 (dwarf2out_return_save): Remove.
2107 (dwarf2out_return_reg): Remove.
2108 (dwarf2out_reg_save_reg): Remove.
2109 (dwarf2out_def_cfa): Merge into ...
2110 (dwarf2out_frame_init): ... here.
2111 * dwarf2out.h, tree.h: Remove declarations as necessary.
2112
2113 2011-07-05 Richard Henderson <rth@redhat.com>
2114
2115 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
2116 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2117 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
2118 the alloc insn.
2119
2120 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
2121 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
2122 (process_epilogue): Don't call dwarf2out_def_cfa.
2123
2124 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
2125 indicate the return address save.
2126 (process_cfa_register): Likewise.
2127
2128 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
2129 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
2130
2131 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
2132 for ar.pfs save at alloc insn.
2133
2134 2011-07-05 Richard Henderson <rth@redhat.com>
2135
2136 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
2137 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2138 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
2139 stack pointer save.
2140 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
2141 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
2142 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
2143 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
2144
2145 2011-07-05 Richard Henderson <rth@redhat.com>
2146
2147 * config/vax/vax.md (define_c_enum unspecv): New. Define the
2148 VUNSPEC_* constants here instead of via define_constants.
2149 (VUNSPEC_PEM): New constant.
2150 (procedure_entry_mask): New insn.
2151 (prologue): New expander.
2152 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
2153 (vax_expand_prologue): Rename from vax_output_function_prologue;
2154 emit rtl instead of text.
2155 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
2156 (print_operand): Add 'x' prefix.
2157
2158 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
2159
2160 PR middle-end/47715
2161 * calls.c (precompute_register_parameters): Promote the function
2162 argument before checking non-legitimate constant.
2163
2164 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2165
2166 PR tree-optimization/47654
2167 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
2168 (lst_do_strip_mine_loop): Return an int.
2169 (lst_do_strip_mine): Same.
2170 (scop_do_strip_mine): Same.
2171 (scop_do_block): Loop blocking should strip-mine at least two loops.
2172 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
2173 (scop_do_interchange): Same.
2174 * graphite-poly.h (scop_do_interchange): Update declaration.
2175 (scop_do_strip_mine): Same.
2176
2177 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2178
2179 * graphite-clast-to-gimple.c (precision_for_value): Removed.
2180 (precision_for_interval): Removed.
2181 (gcc_type_for_interval): Use mpz_sizeinbase.
2182
2183 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2184
2185 * graphite-ppl.h (value_max): Correct computation of max.
2186
2187 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2188
2189 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
2190
2191 2011-07-05 Richard Guenther <rguenther@suse.de>
2192
2193 * c-decl.c (c_init_decl_processing): Defer building common
2194 tree nodes to c_common_nodes_and_builtins.
2195
2196 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
2197
2198 PR tree-optimization/49580
2199 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
2200 the loop's number of iterations.
2201 * tree-parloops.c (transform_to_exit_first_loop): Add the
2202 handling of the loop's number of iterations before the call
2203 to gimple_duplicate_sese_tail.
2204 Insert the stmt caclculating the new rhs of the loop's
2205 condition stmt to the preheader instead of iters_bb.
2206
2207 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
2208
2209 PR rtl-optimization/47449
2210 * fwprop.c (forward_propagate_subreg): Don't propagate hard
2211 register nor zero/sign extended hard register.
2212
2213 2011-07-05 Richard Guenther <rguenther@suse.de>
2214
2215 PR tree-optimization/49518
2216 PR tree-optimization/49628
2217 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
2218 irrelevant and invariant data-references.
2219 (vect_analyze_data_ref_access): For invariant loads clear the
2220 group association.
2221
2222 2011-07-04 Jakub Jelinek <jakub@redhat.com>
2223
2224 PR rtl-optimization/49619
2225 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
2226 pass VOIDmode as op0_mode to recursive call, and return temp even
2227 when different from tor, just if it is not IOR of the original
2228 PLUS arguments.
2229
2230 PR rtl-optimization/49472
2231 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
2232 negating MULT, negate the second operand instead of first.
2233 (simplify_binary_operation_1) <case MULT>: If one operand is
2234 a NEG and the other is MULT, don't attempt to optimize by negation
2235 of the MULT operand if it only moves the NEG operation around.
2236
2237 PR debug/49602
2238 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
2239 get_current_def return value if it can't be trusted to be
2240 the current value of the variable in the current bb.
2241
2242 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
2243
2244 PR target/49600
2245 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
2246 general register to memory for !TARGET_INTER_UNIT_MOVES.
2247
2248 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
2249
2250 PR target/44643
2251 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
2252 instead of TREE_READONLY.
2253
2254 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
2255
2256 * doc/extend.texi (AVR Built-in Functions): Update documentation
2257 of __builtin_avr_fmul*.
2258 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
2259 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
2260 * config/avr/avr.md (fmul): Rename to fmul_insn.
2261 (fmuls): Rename to fmuls_insn.
2262 (fmulsu): Rename to fmulsu_insn.
2263 (fmul,fmuls,fmulsu): New expander.
2264 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
2265 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
2266 * config/avr/libgcc.S (__fmul): New function.
2267 (__fmuls): New function.
2268 (__fmulsu,__fmulsu_exit): New function.
2269
2270 2011-07-04 Richard Guenther <rguenther@suse.de>
2271
2272 PR tree-optimization/49615
2273 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
2274 basic-block index check.
2275
2276 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
2277
2278 * longlong.h (count_leading_zeros, count_trailing_zeros,
2279 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
2280 resp. 64.
2281
2282 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
2283
2284 PR tree-optimization/49610
2285 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
2286 a basic block.
2287
2288 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
2289 Olivier Hainque <hainque@adacore.com>
2290 Nicolas Setton <setton@adacore.com>
2291
2292 * tree.h (TYPE_ARTIFICIAL): New flag.
2293 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
2294 the DIE of the type if it is artificial.
2295 (gen_array_type_die): Likewise.
2296 (gen_enumeration_type_die): Likewise.
2297 (gen_struct_or_union_type_die): Likewise.
2298 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
2299 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
2300
2301 2011-07-01 Jakub Jelinek <jakub@redhat.com>
2302
2303 * tree-object-size.c (pass_through_call): Handle
2304 BUILT_IN_ASSUME_ALIGNED.
2305
2306 2011-07-01 Martin Jambor <mjambor@suse.cz>
2307
2308 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
2309
2310 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
2311
2312 PR middle-end/48016
2313 * explow.c (update_nonlocal_goto_save_area): Use proper mode
2314 for stack save area.
2315 * function.c (expand_function_start): Likewise.
2316
2317 2011-07-01 Richard Guenther <rguenther@suse.de>
2318
2319 PR middle-end/49596
2320 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
2321 may have unknown refs.
2322
2323 2011-07-01 Kai Tietz <ktietz@redhat.com>
2324
2325 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
2326
2327 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2328
2329 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
2330 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
2331 (Specific, mips-sgi-irix6): Likewise.
2332
2333 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2334
2335 PR libmudflap/49549
2336 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
2337
2338 2011-07-01 Jakub Jelinek <jakub@redhat.com>
2339
2340 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
2341 [idx]= and [idx1 ... idx2]= before initializers if needed for
2342 array initializers.
2343
2344 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
2345
2346 * config.gcc (score-*-elf): Remove score7.o.
2347 * config/score/t-score-elf: Likewise.
2348 * config/score/score.c: Merge score7 to score.c and
2349 remove forwarding functions.
2350 * config/score/score7.c: Deleted.
2351 * config/score/score7.h: Deleted.
2352
2353 2011-07-01 Richard Guenther <rguenther@suse.de>
2354
2355 PR tree-optimization/49603
2356 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
2357
2358 2011-06-30 Martin Jambor <mjambor@suse.cz>
2359
2360 * tree-sra.c (struct access): Rename total_scalarization to
2361 grp_total_scalarization
2362 (completely_scalarize_var): New function.
2363 (sort_and_splice_var_accesses): Set total_scalarization in the
2364 representative access.
2365 (analyze_access_subtree): Propagate total scalarization accross the
2366 tree, no holes in totally scalarized trees, simplify coverage
2367 computation.
2368 (analyze_all_variable_accesses): Call completely_scalarize_var instead
2369 of completely_scalarize_record.
2370
2371 2011-06-30 Richard Henderson <rth@redhat.com>
2372
2373 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
2374 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
2375 * config/i386/i386.c: Don't include dwarf2out.h.
2376 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
2377 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
2378 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
2379 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
2380 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
2381
2382 2011-06-30 Richard Henderson <rth@redhat.com>
2383
2384 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
2385 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
2386 * final.c (final_scan_insn): Look for it, and invoke
2387 dwarf2out_frame_debug before the insn if found.
2388
2389 2011-06-30 Richard Henderson <rth@redhat.com>
2390
2391 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
2392 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
2393
2394 2011-06-30 Richard Henderson <rth@redhat.com>
2395
2396 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
2397 Define a vector of this type.
2398 (regs_saved_in_regs): Use a VEC.
2399 (num_regs_saved_in_regs): Remove.
2400 (compare_reg_or_pc): New.
2401 (record_reg_saved_in_reg): Split out from...
2402 (dwarf2out_flush_queued_reg_saves): ... here.
2403 (clobbers_queued_reg_save): Update for VEC.
2404 (reg_saved_in): Likewise.
2405 (dwarf2out_frame_debug_init): Likewise.
2406 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
2407 (dwarf2out_frame_debug_cfa_register): Likewise.
2408
2409 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
2410
2411 PR tree-optimization/49572
2412 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
2413 type of the RHS instead of that of the LHS for the expression type.
2414
2415 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
2416
2417 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
2418 unconditionally.
2419
2420 2011-06-30 Richard Guenther <rguenther@suse.de>
2421
2422 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
2423 * tree-ssa-structalias.c (create_variable_info_for): Do not
2424 add initial constraints for non-var-decls. Properly handle
2425 globals in other ltrans partitions.
2426 (intra_create_variable_infos): Manually create constraints for
2427 the fake no-alias parameter.
2428 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
2429 and assert there are no clones.
2430
2431 2011-06-30 Richard Guenther <rguenther@suse.de>
2432
2433 PR tree-optimization/46787
2434 * tree-data-ref.c (dr_address_invariant_p): Remove.
2435 (find_data_references_in_stmt): Invariant accesses are ok now.
2436 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
2437 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
2438 invariant loads.
2439
2440 2011-06-30 Martin Jambor <mjambor@suse.cz>
2441
2442 PR tree-optimization/49094
2443 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
2444 (build_accesses_from_assign): Use it.
2445
2446 2011-06-30 Jakub Jelinek <jakub@redhat.com>
2447
2448 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2449 handling of BUILT_IN_ASSUME_ALIGNED.
2450
2451 PR debug/49364
2452 * dwarf2out.c (output_abbrev_section): Don't return early
2453 if abbrev_die_table_in_use is 1.
2454 (dwarf2out_finish): Instead don't call output_abbrev_section
2455 nor emit abbrev_section_label in that case.
2456
2457 2011-06-30 Nick Clifton <nickc@redhat.com>
2458
2459 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
2460 for the V850E.
2461
2462 2011-06-30 Jakub Jelinek <jakub@redhat.com>
2463
2464 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2465 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
2466
2467 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
2468
2469 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2470 both pattern and original statements if necessary.
2471 (vect_transform_loop): Likewise.
2472 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
2473 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
2474 Mark the pattern statement only if the original statement doesn't
2475 have its own uses.
2476 (process_use): Call vect_mark_relevant with additional parameter.
2477 (vect_mark_stmts_to_be_vectorized): Likewise.
2478 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
2479 (vect_analyze_stmt): Handle both pattern and original statements
2480 if necessary.
2481 (vect_transform_stmt): Don't store vectorized pattern statement
2482 in the original statement.
2483 (vect_is_simple_use_1): Use related pattern statement only if the
2484 original statement is irrelevant.
2485 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
2486
2487 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
2488
2489 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
2490 option.
2491 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
2492 entry.
2493 (TARGET_AVX128_OPTIMAL): New definition.
2494 * config/i386/i386.c (initial_ix86_tune_features): Initialize
2495 X86_TUNE_AVX128_OPTIMAL entry.
2496 (ix86_option_override_internal): Enable the generation
2497 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
2498 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
2499 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
2500
2501 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
2502
2503 PR tree-optimization/49539
2504 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
2505 names by means of stmt_references_abnormal_ssa_name.
2506 (associate_plusminus): Call can_propagate_from before propagating
2507 from definition statements.
2508 (ssa_forward_propagate_and_combine): Remove superfluous newline.
2509
2510 2011-06-29 Richard Guenther <rguenther@suse.de>
2511
2512 * doc/invoke.texi: Document -scev dump modifier.
2513 * tree-pass.h (TDF_SCEV): New dump flag.
2514 * tree-dump.c (dump_option_value_in): Add scev.
2515 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
2516 * tree-scalar-evolution.c: Likewise.
2517
2518 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
2519
2520 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
2521 (cxa_type_match): Correct declaration.
2522 (__gnu_unwind_pr_common): Reconstruct additional indirection
2523 when __cxa_type_match returns succeeded_with_ptr_to_base.
2524
2525 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2526
2527 PR rtl-optimization/49114
2528 * reload.c (struct replacement): Remove SUBREG_LOC member.
2529 (push_reload): Do not set it.
2530 (push_replacement): Likewise.
2531 (subst_reload): Remove dead code.
2532 (copy_replacements): Remove assertion.
2533 (copy_replacements_1): Do not handle SUBREG_LOC.
2534 (move_replacements): Likewise.
2535 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
2536 Detect subregs via recursive descent instead of via SUBREG_LOC.
2537
2538 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
2539
2540 * config/avr/avr.c (avr_encode_section_info): Dispatch to
2541 default_encode_section_info.
2542
2543 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
2544
2545 PR tree-optimization/49545
2546 * builtins.c (get_object_alignment_1): Update function comment.
2547 Do not use DECL_ALIGN for functions, but test
2548 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
2549 * fold-const.c (get_pointer_modulus_and_residue): Don't check
2550 for functions here.
2551 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
2552
2553 2011-06-29 Jakub Jelinek <jakub@redhat.com>
2554
2555 PR debug/49567
2556 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
2557 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
2558
2559 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
2560
2561 PR target/34734
2562 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
2563 about uninitialized data attributed 'progmem' from here...
2564 (avr_encode_section_info): ...to this new function.
2565 (TARGET_ENCODE_SECTION_INFO): New define.
2566 (avr_section_type_flags): For data in ".progmem.data", remove
2567 section flag SECTION_WRITE.
2568
2569 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
2570
2571 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
2572 _xmulhisi3_exit.
2573 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
2574 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
2575 (__umulhisi3): Ditto.
2576 * config/avr/avr.md (mulhisi3): New insn expender.
2577 (umulhisi3): New insn expender.
2578 (*mulhisi3_call): New insn.
2579 (*umulhisi3_call): New insn.
2580
2581 2011-06-28 Joseph Myers <joseph@codesourcery.com>
2582
2583 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
2584
2585 2011-06-28 Richard Henderson <rth@redhat.com>
2586
2587 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
2588 all code and arguments that handled pushes. Update all callers.
2589
2590 2011-06-28 Richard Henderson <rth@redhat.com>
2591
2592 * config/arm/arm.c (arm_output_function_prologue): Don't call
2593 thumb1_output_function_prologue.
2594 (arm_expand_prologue): Avoid dead store.
2595 (number_of_first_bit_set): Use ctz_hwi.
2596 (thumb1_emit_multi_reg_push): New.
2597 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
2598 to emit the entire prologue as rtl.
2599 (thumb1_output_interwork): Split out from
2600 thumb1_output_function_prologue.
2601 (thumb1_output_function_prologue): Remove.
2602 (arm_attr_length_push_multi): Handle thumb1.
2603 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
2604 (prologue_thumb1_interwork): New.
2605 (*push_multi): Allow thumb1; use push_mult_memory_operand.
2606 * config/arm/predicates.md (push_mult_memory_operand): New.
2607
2608 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
2609
2610 * config/sparc/sync.md (*stbar): Delete.
2611 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
2612
2613 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
2614
2615 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
2616
2617 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2618
2619 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
2620 (TARGET_64BIT_DEFAULT): Define.
2621 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
2622 of tm_file.
2623 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
2624
2625 2011-06-28 Joseph Myers <joseph@codesourcery.com>
2626
2627 * common.opt (in_lto_p): New Variable entry.
2628 * flags.h (in_lto_p): Move to common.opt.
2629 * gcc.c: Include params.h.
2630 (set_option_handlers): Also use common_handle_option and
2631 target_handle_option.
2632 (main): Call global_init_params, finish_params and init_options_struct.
2633 * opts.c (debug_type_names): Move from toplev.c.
2634 (print_filtered_help): Access quiet_flag through opts pointer.
2635 (common_handle_option): Return early in the driver for some options.
2636 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
2637 opts pointer.
2638 * toplev.c (in_lto_p): Move to common.opt.
2639 (debug_type_names): Move to opts.c.
2640 * Makefile.in (OBJS): Remove opts.o.
2641 (OBJS-libcommon-target): Add opts.o.
2642 (gcc.o): Update dependencies.
2643
2644 2011-06-28 Kai Tietz <ktietz@redhat.com>
2645
2646 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
2647
2648 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2649
2650 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
2651 with '=' constraint modifier.
2652 (*divdf3_vfp): Likewise.
2653 ("*mulsf3_vfp"): Likewise.
2654 ("*muldf3_vfp"): Likewise.
2655 ("*mulsf3negsf_vfp"): Likewise.
2656 ("*muldf3negdf_vfp"): Likewise.
2657
2658 2011-06-28 Nick Clifton <nickc@redhat.com>
2659
2660 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
2661 relaxation when performing an incremental link.
2662
2663 2011-06-28 Kai Tietz <ktietz@redhat.com>
2664
2665 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
2666 within BB from last to first.
2667
2668 2011-06-28 Joseph Myers <joseph@codesourcery.com>
2669
2670 * genattr-common.c: New. Based on genattr.c.
2671 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
2672 (MOSTLYCLEANFILES): Add insn-attr-common.h.
2673 (opts.o): Update dependencies.
2674 (.PRECIOUS): Add insn-attr-common.h.
2675 (simple_rtl_generated_h): Add insn-attr-common.h.
2676 (build/genattr-common.o): New.
2677 (genprogrtl): Add attr-common.
2678 * genattr.c (main): Include insn-attr-common.h. Don't generate
2679 definitions of DELAY_SLOTS or INSN_SCHEDULING.
2680 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
2681
2682 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
2683
2684 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
2685 avr-*-* and avr-*-rtems* targets.
2686
2687 * config/avr/elf.h: New file.
2688 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
2689 (TARGET_ASM_SELECT_SECTION): Define.
2690 (INIT_SECTION_ASM_OP): Undefine.
2691 (FINI_SECTION_ASM_OP): Undefine.
2692 (READONLY_DATA_SECTION_ASM_OP): Undefine.
2693 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
2694 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
2695 * config/avr/avr.h:
2696 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
2697 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
2698 (MAX_OFILE_ALIGNMENT): Move to elf.h.
2699 (STRING_LIMIT): Move to elf.h.
2700 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
2701 (ASM_DECLARE_OBJECT_NAME): Remove.
2702 (ESCAPES): Remove.
2703 (ASM_OUTPUT_SKIP): Remove.
2704 (DWARF2_DEBUGGING_INFO): Remove.
2705 (OBJECT_FORMAT_ELF): Remove.
2706 (USER_LABEL_PREFIX): Remove.
2707 (ASM_OUTPUT_EXTERNAL): Remove.
2708 (ASM_OUTPUT_ASCII): Remove.
2709 (TYPE_ASM_OP): Remove.
2710 (SIZE_ASM_OP): Remove.
2711 (WEAK_ASM_OP): Remove.
2712 (STRING_ASM_OP): Remove.
2713 (SET_ASM_OP): Remove.
2714 (ASM_WEAKEN_LABEL): Remove.
2715 (TYPE_OPERAND_FMT): Remove.
2716 (ASM_DECLARE_FUNCTION_SIZE): Remove.
2717 (ASM_FINISH_DECLARE_OBJECT): Remove.
2718 (NO_DOLLAR_IN_LABEL): Remove.
2719 (ASM_GENERATE_INTERNAL_LABEL): Remove.
2720 (ASM_OUTPUT_CASE_LABEL): Remove.
2721 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
2722 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
2723 (gas_output_ascii): Remove.
2724 (gas_output_limited_string): Remove.
2725 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
2726 * config/avr/avr-protos.h
2727 (gas_output_ascii): Remove prototye.
2728 (gas_output_limited_string): Remove prototype.
2729
2730 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
2731
2732 PR target/48637
2733 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
2734 asm operands.
2735
2736 2011-06-27 Jan Hubicka <jh@suse.cz>
2737
2738 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
2739 node instead of references in node.
2740
2741 2011-06-27 Richard Henderson <rth@redhat.com>
2742
2743 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
2744 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
2745 inside ifdef.
2746
2747 2011-06-27 Jakub Jelinek <jakub@redhat.com>
2748
2749 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
2750
2751 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
2752 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
2753 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
2754 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
2755 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
2756 (evaluate_stmt, execute_fold_all_builtins): Handle
2757 BUILT_IN_ASSUME_ALIGNED.
2758 * tree-ssa-dce.c (propagate_necessity): Likewise.
2759 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2760 call_may_clobber_ref_p_1): Likewise.
2761 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
2762 (expand_builtin_assume_aligned): New function.
2763 * doc/extend.texi (__builtin_assume_aligned): Document.
2764
2765 PR debug/49544
2766 * cselib.c (promote_debug_loc): If cselib_preserve_constants
2767 and l has two DEBUG_INSN owned locs instead of just one, adjust
2768 the second location's setting_insn too.
2769
2770 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2771
2772 PR libmudflap/38738
2773 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
2774
2775 2011-06-27 Nick Clifton <nickc@redhat.com>
2776
2777 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
2778 bit position of highest bit set into a count of the high zero bits.
2779
2780 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2781
2782 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
2783
2784 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2785
2786 PR lto/48492
2787 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
2788 to a NULL parent.
2789
2790 2011-06-27 Richard Guenther <rguenther@suse.de>
2791
2792 PR tree-optimization/49394
2793 * passes.c (execute_one_pass): Restore current_pass after
2794 applying IPA transforms.
2795
2796 2011-06-27 Kai Tietz <ktietz@redhat.com>
2797
2798 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
2799 out of type precision after operation.
2800 (find_bswap): Take for limit value the integer auto-promotion
2801 into account.
2802
2803 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2804
2805 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
2806 forward scan as well.
2807
2808 2011-06-27 Tristan Gingold <gingold@adacore.com>
2809
2810 PR target/44241
2811 * config/vms/vms-protos.h: New file.
2812 * config/vms/vms-crtlmap.map: New file.
2813 * config/vms/vms.c: New file.
2814 * config/vms/make-crtlmap.awk: New file.
2815 * config/vms/vms-crtl.h: File removed.
2816 * config/vms/vms-crtl-64.h: File removed.
2817 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
2818 * config/alpha/vms64.h: Do not include vms-crtl-64.h
2819 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
2820 clear some builtins on VMS. Calls vms_patch_builtins.
2821 (avms_asm_output_external): Remove.
2822 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
2823 (struct crtl_name_spec): Remove
2824 (DO_CTRL_NAMES): Remove.
2825 * config/ia64/vms.h (struct crtl_name_spec): Remove
2826 (DO_CTRL_NAMES): Remove.
2827 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
2828 clear some builtins on VMS. Calls vms_patch_builtins.
2829 (ia64_asm_output_external): Remove DO_CRTL_NAME.
2830 * config/ia64/vms64.h: Do not include vms-crtl-64.h
2831 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
2832
2833 2011-06-27 Tristan Gingold <gingold@adacore.com>
2834
2835 * config/alpha/alpha.c (alpha_end_function): Always generate .end
2836 directive on VMS.
2837
2838 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2839
2840 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
2841 the function receives nonlocal gotos.
2842
2843 2011-06-27 Richard Guenther <rguenther@suse.de>
2844
2845 PR tree-optimization/49536
2846 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
2847 For non-scalar inner types use a scalar type according to
2848 the scalar inner mode.
2849
2850 2011-06-27 Richard Guenther <rguenther@suse.de>
2851
2852 PR tree-optimization/49365
2853 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
2854
2855 2011-06-27 Richard Guenther <rguenther@suse.de>
2856
2857 PR tree-optimization/49169
2858 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
2859 the alignment of function decls.
2860
2861 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
2862
2863 PR target/47997
2864 * config/darwin.c (darwin_mergeable_string_section): Place string
2865 constants in '.cstring' rather than '.const' when CF/NSStrings are
2866 active.
2867
2868 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
2869
2870 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
2871 (emit_save_register_window): Likewise.
2872 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
2873 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
2874 Swap back %o7/%i7 in register naming.
2875
2876 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
2877
2878 PR driver/49371
2879 * config/darwin.c (darwin_override_options): Improve warning when
2880 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
2881 is given with fpie/fPIE.
2882 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
2883 * config/darwin9.h (PIE_SPEC): New.
2884
2885 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
2886
2887 * timevar.c (timevar_print): Increase width for display of timevar
2888 name.
2889
2890 2011-06-24 Jakub Jelinek <jakub@redhat.com>
2891
2892 PR c++/46400
2893 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
2894 instead of TYPE_CHAIN for chain_next for types.
2895
2896 2011-06-24 Richard Henderson <rth@redhat.com>
2897
2898 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
2899 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
2900 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
2901 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
2902 (sparc_flat_expand_prologue): Emit individual instructions
2903 instead of one of the above.
2904
2905 2011-06-24 Easwaran Raman <eraman@google.com>
2906
2907 PR rtl-optimization/49429
2908 PR target/49454
2909 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
2910 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
2911 used to copy y into x.
2912 * calls.c (initialize_argument_information): Mark
2913 an argument addressable if it is passed by invisible reference.
2914 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
2915 if it is passed by reference.
2916
2917 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
2918
2919 PR rtl-optimization/49504
2920 * rtlanal.c (nonzero_bits1): Properly handle addition or
2921 subtraction of a pointer in Pmode if pointers extend unsigned.
2922 (num_sign_bit_copies1): Likewise.
2923
2924 2011-06-24 Martin Jambor <mjambor@suse.cz>
2925
2926 PR tree-optimizations/49516
2927 * tree-sra.c (sra_modify_assign): Choose the safe path for
2928 aggregate copies if we also did scalar replacements.
2929
2930 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2931
2932 PR target/49335
2933 * config/arm/predicates.md (add_operator): New.
2934 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
2935
2936 2011-06-24 Andi Kleen <ak@linux.intel.com>
2937
2938 * tree-sra.c (type_internals_preclude_sra_p): Add msg
2939 parameter. Split up ifs and report reason in *msg.
2940 (reject): Add.
2941 (find_var_candiate): Add msg variable.
2942 Split up ifs and report reason to reject.
2943 (find_param_candidates): Add msg variable.
2944 Pass msg to type_internals_preclude_sra_p.
2945
2946 2011-06-23 Jeff Law <law@redhat.com>
2947
2948 PR middle-end/48770
2949 * reload.h (reload): Change to return a bool.
2950 * ira.c (ira): If requested by reload, run a fast DCE pass after
2951 reload has completed. Fix comment typo.
2952 * reload1.c (need_dce): New file scoped static.
2953 (reload): Set reload_completed here. Return whether or not a DCE
2954 pass after reload is needed.
2955 (delete_dead_insn): Set need_dce as needed.
2956
2957 PR middle-end/49465
2958 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
2959 to detect threading through joiner block. If there was already
2960 an edge to the new target, then do not change the PHI nodes.
2961
2962 2011-06-23 Jakub Jelinek <jakub@redhat.com>
2963
2964 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
2965 get_pointer_alignment to see if base isn't sufficiently aligned.
2966
2967 2011-06-23 Jan Hubicka <jh@suse.cz>
2968
2969 PR tree-optimize/49373
2970 * tree-pass.h (all_late_ipa_passes): Declare.
2971 * cgraphunit.c (init_lowered_empty_function): Fix properties.
2972 (cgraph_optimize): Execute late passes; remove unreachable funcions
2973 after materialization.
2974 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
2975 LTOing.
2976 * passes.c (all_late_ipa_passes): Declare.
2977 (dump_passes, register_pass): Handle late ipa passes.
2978 (init_optimization_passes): Move ipa_pta to late passes; schedule
2979 fixup_cfg at beggining of all_passes.
2980 (apply_ipa_transforms): New function.
2981 (execute_one_pass): When doing simple ipa pass, apply all transforms.
2982
2983 2011-06-23 Joseph Myers <joseph@codesourcery.com>
2984
2985 * params.c: Include common/common-target.h. Don't include tm.h.
2986 (lang_independent_params): Move from toplev.c.
2987 (global_init_params): New.
2988 * params.h (global_init_params): Declare.
2989 * target.def (default_params): Move to common-target.def.
2990 * toplev.c (lang_independent_options): Remove.
2991 (lang_independent_params): Move to params.c.
2992 (general_init): Use global_init_params.
2993 * common/common-target.def (option_default_params): Move from
2994 target.def.
2995 * common/config/ia64/ia64-common.c: Include params.h.
2996 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
2997 from ia64.c.
2998 * common/config/rs6000/rs6000-common.c: Include params.h.
2999 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3000 from rs6000.c.
3001 * common/config/sh/sh-common.c: Include params.h.
3002 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3003 from sh.c.
3004 * common/config/spu/spu-common.c: Include params.h.
3005 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3006 from spu.c.
3007 * config/ia64/ia64.c (ia64_option_default_params,
3008 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
3009 * config/rs6000/rs6000.c (rs6000_option_default_params,
3010 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
3011 * config/sh/sh.c (sh_option_default_params,
3012 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
3013 * config/spu/spu.c (spu_option_default_params,
3014 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
3015 * Makefile.in (OBJS): Remove params.o.
3016 (OBJS-libcommon-target): Add params.o.
3017 (params.o, $(common_out_object_file)): Update dependencies.
3018 * doc/tm.texi: Regenerate.
3019
3020 2011-06-23 Alan Modra <amodra@gmail.com>
3021
3022 PR bootstrap/49383
3023 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
3024 invocation for 2011-06-09 changes.
3025
3026 2011-06-22 Jakub Jelinek <jakub@redhat.com>
3027
3028 PR libgomp/49490
3029 * omp-low.c (expand_omp_for_static_nochunk): Only
3030 use n ceil/ nthreads size for the first n % nthreads threads in the
3031 team instead of all threads except for the last few ones which
3032 get less work or none at all.
3033
3034 PR debug/49496
3035 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
3036 uses.
3037
3038 2011-06-22 Richard Guenther <rguenther@suse.de>
3039
3040 PR tree-optimization/49493
3041 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
3042 Refer to the alias target of variables.
3043 (associate_varinfo_to_alias_1): Remove.
3044 (ipa_pta_execute): Do not associate aliases with anything.
3045 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
3046 (cgraph_function_node): Likewise.
3047 (cgraph_function_or_thunk_node): Likewise.
3048 (varpool_variable_node): Likewise.
3049
3050 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
3051
3052 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
3053 * config.gcc (arm*-*-linux*): Default to gnu tls.
3054 (arm*-*-*): Add --with-tls option.
3055 (all_defaults): Add 'tls'.
3056
3057 2011-06-22 Richard Henderson <rth@redhat.com>
3058
3059 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
3060 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3061 (dwarf2out_frame_debug_cfa_window_save): Rename from
3062 dwarf2out_window_save; make static.
3063 * tree.h (dwarf2out_window_save): Don't declare.
3064
3065 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
3066 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3067 (emit_save_register_window): Rename from gen_save_register_window;
3068 emit the insn and add REG_CFA_* notes.
3069 (sparc_expand_prologue): Update to match.
3070 * config/sparc/sparc.md (save_register_window_1): Simplify from
3071 save_register_window<P:mode>.
3072
3073 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
3074
3075 PR target/49497
3076 * config/i386/i386.md (*lea_general_2): Always allow SImode.
3077 (*lea_general_2_zext): Likewise.
3078 (imul to lea peepholes): Use const359_operand and check
3079 TARGET_PARTIAL_REG_STALL.
3080
3081 * config/i386/predicates.md (const359_operand): New.
3082
3083 2011-06-22 Michael Matz <matz@suse.de>
3084
3085 * cgraphunit.c (assemble_thunk): Use correct return type.
3086
3087 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
3088 Dmitry Melnik <dm@ispras.ru>
3089
3090 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
3091 (neon_output_shift_immediate): Ditto.
3092 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
3093 prototype.
3094 (neon_output_shift_immediate): Ditto.
3095 * config/arm/neon.md (vashl<mode>3): Modified constraint.
3096 (vashr<mode>3_imm): New insn pattern.
3097 (vlshr<mode>3_imm): Ditto.
3098 (vashr<mode>3): Modified constraint.
3099 (vlshr<mode>3): Ditto.
3100 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
3101 predicate.
3102 (imm_for_neon_rshift_operand): Ditto.
3103 (imm_lshift_or_reg_neon): Ditto.
3104 (imm_rshift_or_reg_neon): Ditto.
3105
3106 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
3107
3108 2011-06-22 Jakub Jelinek <jakub@redhat.com>
3109
3110 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
3111 builtin calls even if likelyvalue is not CONSTANT.
3112 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
3113 Return get_value_for_expr of first operand
3114 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
3115 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3116 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
3117 their non-checking counterparts.
3118 (call_may_clobber_ref_p_1): Likewise.
3119 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
3120 like their non-checking counterparts.
3121 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3122 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
3123 like their non-checking counterparts.
3124 (find_func_clobbers): Likewise.
3125 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
3126 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
3127
3128 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
3129 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
3130 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
3131 of base type reference as argument.
3132 (resolve_addr_in_expr): Likewise. Fix keep computation.
3133 (convert_descriptor_to_signed): Renamed to...
3134 (convert_descriptor_to_mode): ... this. For wider types convert to
3135 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
3136 (typed_binop): New function.
3137 (scompare_loc_descriptor, ucompare_loc_descriptor,
3138 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
3139 default to unsigned type instead of signed.
3140
3141 PR debug/47858
3142 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
3143 (gimple_build_debug_source_bind_stat): New prototype.
3144 (gimple_build_debug_source_bind): Define.
3145 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
3146 gimple_debug_source_bind_get_value,
3147 gimple_debug_source_bind_get_value_ptr,
3148 gimple_debug_source_bind_set_var,
3149 gimple_debug_source_bind_set_value): New inlines.
3150 * gimple.c (gimple_build_debug_source_bind_stat): New function.
3151 * gimple-pretty-print.c (dump_gimple_debug): Handle
3152 GIMPLE_DEBUG_SOURCE_BIND.
3153 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
3154 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3155 * tree-parloops.c (eliminate_local_variables,
3156 separate_decls_in_region): Likewise.
3157 (separate_decls_in_region_debug): Renamed from
3158 separate_decls_in_region_debug_bind. Handle
3159 gimple_debug_source_bind_p.
3160 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
3161 prototypes.
3162 (DECL_HAS_DEBUG_ARGS_P): Define.
3163 (struct tree_function_decl): Add has_debug_args_flag field.
3164 * tree.c (debug_args_for_decl): New variable.
3165 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
3166 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
3167 (rewrite_debug_stmt_uses): New function.
3168 (rewrite_stmt): Use it to rewrite debug stmt uses.
3169 * rtl.def (DEBUG_PARAMETER_REF): New.
3170 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
3171 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
3172 DEBUG_PARAMETER_REF.
3173 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
3174 * print-rtl.c (print_rtx): Likewise.
3175 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
3176 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
3177 debug stmts in the first bb.
3178 * tree-inline.c (remap_ssa_name): If remapping default def
3179 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
3180 a source bind debug stmt.
3181 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
3182 (maybe_move_debug_stmts_to_successors): Likewise.
3183 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
3184 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
3185 debug args vector from old_decl to new_decl.
3186 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
3187 or modified parameters, add debug bind stmts before call
3188 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
3189 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
3190 on DECL_DEBUG_EXPRs from debug args vector.
3191 (expand_debug_source_expr): New function.
3192 (expand_debug_locations): Use it for source bind insns.
3193 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
3194 * var-tracking.c (prepare_call_arguments): Add debug args
3195 to call_arguments if any.
3196 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
3197 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
3198 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
3199 (get_ref_die_offset, parameter_ref_descriptor): New functions.
3200 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
3201 (gen_subprogram_die): Handle parameters identified by
3202 DEBUG_PARAMETER_REF.
3203
3204 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
3205
3206 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
3207 * doc/install.texi (Configuration): Document --with-tls.
3208 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
3209 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
3210 (arm_tls_descseq_addr): New.
3211 (legitimize_tls_address): Add tlsdesc support.
3212 (arm_cannot_copy_insn_p): Check for tlscall.
3213 (arm_emit_tls_decoration): Likewise.
3214 * config/arm/arm.h (TARGET_GNU2_TLS): New.
3215 (OPTION_DEFAULT_SPECS): Add with-tls support.
3216 * config/arm/arm.md (R1_REGNUM): Define.
3217 (tlscall): New.
3218 * config/arm/arm.opt (tls_type): New enumeration type and values.
3219 (mtls-dialect): New switch.
3220 * config/arm/arm-opts.h (enum tls_type): New.
3221
3222 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
3223
3224 * attribs.c (register_attribute): Added assert to check that all
3225 attribute specs are registered with a name that is not empty and
3226 does not start with '_'.
3227 (decl_attributes): Avoid the lookup of the "naked" attribute spec
3228 if the function has no attributes.
3229 * tree.c (is_attribute_with_length_p): Removed.
3230 (is_attribute_p): Removed.
3231 (private_is_attribute_p): New.
3232 (private_lookup_attribute): New.
3233 (lookup_attribute): Removed.
3234 (lookup_ident_attribute): New.
3235 (remove_attribute): Require the first argument to be in the form
3236 'text', not '__text__'. Updated asserts.
3237 (merge_attributes): Use lookup_ident_attributes instead of
3238 lookup_attribute.
3239 (merge_dllimport_decl_attributes): Use remove_attribute.
3240 (attribute_list_contained): Likewise.
3241 (attribute_list_equal): Immediately return 1 if the arguments are
3242 identical pointers.
3243 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
3244 'int'. Require the first argument to be in the form 'text', not
3245 '__text__'. Require the second argument to be an identifier.
3246 (lookup_attribute): Made inline. Require the first argument to be
3247 in the form 'text', not '__text__'.
3248 (private_is_attribute_p, private_lookup_attribute): New.
3249 Updated comments.
3250
3251 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
3252
3253 * builtins.c: Add sync_ or SYNC__ to builtin names.
3254 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
3255 * omp-low.c: Add sync_ or SYNC__ to builtin names.
3256
3257 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
3258
3259 PR target/33049
3260 * config/avr/avr.md (extzv): New expander.
3261 (*extzv): New insn.
3262 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
3263 * config/avr/constraints.md (C04): New constraint.
3264 * doc/md.texi (Machine Constraints): Document it.
3265
3266 2011-06-21 Jakub Jelinek <jakub@redhat.com>
3267
3268 PR middle-end/49489
3269 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
3270 unsignedp argument instead of 1 for clrsb_optab.
3271 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
3272 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
3273 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
3274 * optabs.c (widen_leading): Call widen_operand and expand_unop
3275 with 0 as unsignedp argument instead of 1 for clrsb_optab.
3276 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
3277
3278 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
3279
3280 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
3281
3282 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
3283
3284 * gensupport.c (add_define_attr): New static function.
3285 (is_predicable): Allow multi-alternative lists for the "predicable"
3286 attribute.
3287 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
3288 (process_one_cond_exec): Call alter_attrs_for_insn.
3289 * doc/md.texi (Defining Attributes): Mention some standard names.
3290 (Conditional Execution): Update documentation for "predicable".
3291
3292 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
3293 __builtin_clrsbll): Document.
3294 * doc/rtl.texi (clrsb): New entry.
3295 * optabs.c (widen_leading): Renamed from widen_clz. New argument
3296 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
3297 (expand_unop): Handle clrsb_optab.
3298 (init_optabs): Initialize it.
3299 * optabs.h (enum optab_index): New entry OTI_clrsb.
3300 (clrsb_optab): Define.
3301 * genopinit.c (optabs): Add an entry for it.
3302 * builtins.c (expand_builtin): Handle clrsb builtin functions.
3303 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
3304 BUILT_IN_CLRSBLL): New.
3305 * rtl.def (CLRSB): New code.
3306 * dwarf2out.c (mem_loc_descriptor): Handle it.
3307 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3308 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
3309 and popcount.
3310 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
3311 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
3312 (__ctzDI2): Move declaration.
3313 * config/bfin/bfin.md (clrsbsi2): New expander.
3314 (signbitssi2): Use the CLRSB rtx.
3315 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
3316 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
3317
3318 2011-06-21 Richard Guenther <rguenther@suse.de>
3319
3320 * ipa-inline-transform.c (inline_transform): Fix previous change.
3321
3322 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
3323
3324 PR tree-optimization/49478
3325 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
3326 with constant operand.
3327
3328 2011-06-21 Richard Guenther <rguenther@suse.de>
3329
3330 * ipa-inline-transform.c (inline_transform): Fix typo.
3331
3332 2011-06-21 Richard Guenther <rguenther@suse.de>
3333
3334 PR tree-optimization/49483
3335 * tree-vect-stmts.c (vectorizable_assignment): Also handle
3336 VIEW_CONVERT_EXPR conversions.
3337
3338 2011-06-21 Joseph Myers <joseph@codesourcery.com>
3339
3340 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
3341 * config/avr/avr-tables.opt: New file (generated).
3342 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
3343 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
3344 avr-mcus.def.
3345 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
3346 (avr_option_override): Don't process -mmcu= argument here. Set
3347 avr_current_device using avr_mcu_index.
3348 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
3349 * config/avr/avr.opt (mmcu=): Use Enum.
3350 * config/avr/t-avr (avr-devices.o): Update dependencies.
3351 ($(srcdir)/config/avr/avr-tables.opt): New.
3352 * target.def (help): Remove.
3353 * doc/tm.texi.in (TARGET_HELP): Remove.
3354 * doc/tm.texi: Regenerate.
3355 * opts.c: Don't include target.h.
3356 (common_handle_option): Don't call targetm.help.
3357 * system.h (TARGET_HELP): Poison.
3358 * Makefile.in (opts.o): Update dependencies.
3359
3360 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3361
3362 * config/usegld.h: New file.
3363 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
3364 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
3365 (LIB_SPEC): Likewise. Search /lib.
3366 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
3367 (RDYNAMIC_SPEC): Handle GNU ld.
3368 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
3369 Define.
3370 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
3371 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
3372 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
3373 (STACK_CHECK_STATIC_BUILTIN): Define.
3374 * config/sol2.opt (compat-bsd): Remove.
3375 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
3376 * config/sol2-bi.h: New file.
3377 * config/sol2-gld.h: Remove.
3378 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
3379 (NO_DBX_BNSYM_ENSYM): Remove.
3380 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3381 (STACK_CHECK_STATIC_BUILTIN): Remove.
3382 Test USE_GLD instead of TARGET_GNU_LD.
3383 * config/i386/sol2-10.h: Rename to ...
3384 * config/i386/sol2-bi.h .. this.
3385 (SUBTARGET_EXTRA_SPECS): Redefine.
3386 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
3387 (MULTILIB_DEFAULTS): Remove.
3388 (DEFAULT_ARCH32_P): Define.
3389 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
3390 (ARCH64_SUBDIR): Define.
3391 Test USE_GLD instead of TARGET_GNU_LD.
3392 (I386_EMULATION): Rename to ...
3393 (ARCH32_EMULATION): ... this.
3394 (X86_64_EMULATION): Rename to ...
3395 (ARCH64_EMULATION): ... this.
3396 (TARGET_LD_EMULATION): Remove.
3397 (LINK_ARCH_SPEC): Remove.
3398 * config/i386/sol2-gas.h: Remove.
3399 * config/i386/t-sol2-10: Rename to ...
3400 * config/i386/t-sol2-64: ... this.
3401 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
3402 (AS_SPARC64_FLAG): Define.
3403 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
3404 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
3405 depending on TARGET_CPU_DEFAULT.
3406 (CPP_CPU_SPEC): Redefine.
3407 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
3408 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
3409 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
3410 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
3411 ASM_ARCH_DEFAULT_SPEC): Redefine.
3412 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
3413 LINK_ARCH_DEFAULT_SPEC.
3414 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
3415 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
3416 (ARCH64_SUBDIR): Define.
3417 (LINK_ARCH64_SPEC): Redefine.
3418 (CC1_SPEC): Redefine.
3419 (OPTION_DEFAULT_SPECS): Redefine.
3420 (MULTILIB_DEFAULTS): Define.
3421 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
3422 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
3423 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
3424 (NO_DBX_BNSYM_ENSYM): Remove.
3425 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3426 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
3427 (TARGET_ASM_NAMED_SECTION): Likewise.
3428 (STACK_CHECK_STATIC_BUILTIN): Remove.
3429 * config/sparc/sol2-bi.h: Remove.
3430 * config/sparc/sol2-gas-bi.h: Remove.
3431 * config/sparc/sol2-gas.h: Remove.
3432 * config/sparc/sol2-gld-bi.h: Remove.
3433 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
3434 common parts ...
3435 (*-*-solaris2*): ... here.
3436
3437 2011-06-21 Christian Bruel <christian.bruel@st.com>
3438
3439 PR other/43564
3440 * ipa-inline.c (can_inline_edge_p): Check
3441 !DECL_DISREGARD_INLINE_LIMITS.
3442
3443 2011-06-21 Christian Bruel <christian.bruel@st.com>
3444
3445 PR middle-end/49139
3446 * cgraphunit.c (process_function_and_variable_attributes): warn when
3447 always_inline functions that are not inline.
3448 * ipa-inline-transform.c (inline_transform): Always call
3449 optimize_inline.
3450 * tree-inline.c (tree_inlinable_function_p): Use error instead
3451 of sorry.
3452 (expand_call_inline): Likewise.
3453
3454 2011-06-21 Jakub Jelinek <jakub@redhat.com>
3455
3456 * Makefile.in (dg_target_exps): Set.
3457 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
3458 instead of 7, try to divide it more evenly.
3459
3460 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
3461
3462 PR target/49089
3463 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
3464 (avx256_split_unaligned_store): New definition.
3465 (ix86_option_override_internal): Enable avx256 unaligned load/store
3466 splitting only when avx256_split_unaligned_load/store is set.
3467
3468 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
3469
3470 * regrename.c (scan_rtx_reg): Handle the case where we write to an
3471 open chain in a smaller mode without failing the entire block.
3472
3473 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
3474
3475 PR middle-end/47725
3476 * combine.c (cant_combine_insn_p): Don't check zero/sign
3477 extended hard registers.
3478
3479 2011-06-21 Alan Modra <amodra@gmail.com>
3480
3481 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
3482 CONST high part large-toc address.
3483 (rs6000_tls_referenced_p): Make static.
3484 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
3485
3486 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
3487
3488 PR middle-end/47725
3489 * combine.c (cant_combine_insn_p): Check zero/sign extended
3490 hard registers.
3491
3492 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3493
3494 PR target/49385
3495 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
3496 one of the operands is a register.
3497
3498 2011-06-20 Kai Tietz <ktietz@redhat.com>
3499
3500 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
3501 operations in combination with binary and.
3502
3503 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
3504
3505 * regrename.c (do_replace): Don't update notes.
3506
3507 2011-06-20 Alan Modra <amodra@gmail.com>
3508
3509 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
3510 of toc-relative address in CONST.
3511 (rs6000_delegitimize_address): Recognize changed address.
3512 (rs6000_legitimize_reload_address): Likewise.
3513 (rs6000_emit_move): Don't force these constants to memory.
3514 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
3515 toc-relative address in CONST.
3516 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
3517 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
3518
3519 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
3520
3521 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
3522 (count_trailing_zeros): Likewise.
3523
3524 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
3525
3526 PR other/49325
3527 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
3528 .init_array can be used with .ctors on targets.
3529 * configure: Regenerated.
3530
3531 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
3532
3533 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
3534 if the element type is volatile.
3535
3536 2011-06-18 Jan Hubicka <jh@suse.cz>
3537
3538 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
3539 extra name aliases.
3540 (lto_symtab_resolve_can_prevail_p): Likewise.
3541 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
3542 * cgraphbuild.c (record_reference): Remove extra body alias code.
3543 (mark_load): Likewise.
3544 (mark_store): Likewise.
3545 * cgraph.h (varpool_node): Remove extra_name filed;
3546 add alias_of and extraname_alias.
3547 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
3548 (varpool_alias_aliased_node): New inline function.
3549 (varpool_variable_node): New function.
3550 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
3551 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
3552 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
3553 (input_varpool_node): Likewise.
3554 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
3555 (varpool_externally_visible_p): Remove extra body alias code.
3556 (function_and_variable_visibility): Likewise.
3557 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
3558 (ipa_pta_execute): Use it.
3559 * varpool.c (varpool_remove_node): Remove extra name alias code.
3560 (varpool_mark_needed_node): Likewise.
3561 (varpool_analyze_pending_decls): Analyze aliases.
3562 (assemble_aliases): New functoin.
3563 (varpool_assemble_decl): Use it.
3564 (varpool_create_variable_alias): New function.
3565 (varpool_extra_name_alias): Rewrite.
3566 (varpool_for_node_and_aliases): New function.
3567
3568 2011-06-18 Jakub Jelinek <jakub@redhat.com>
3569
3570 PR target/49411
3571 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
3572 last_arg_constant and last argument doesn't match its predicate,
3573 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
3574 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
3575 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
3576 spelling of error message.
3577 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
3578 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
3579 const_0_to_255_operand instead of const_int_operand.
3580
3581 Revert:
3582 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3583
3584 * config/i386/sse.md (blendbits): Remove mode attribute.
3585 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3586 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3587 Check integer value of operand 3 in insn constraint.
3588
3589 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
3590
3591 PR rtl-optimization/48542
3592 * reload.c (find_equiv_reg): Stop looking when finding a
3593 setjmp-type call.
3594 * reload1.c (reload_as_needed): Invalidate all reload
3595 registers when crossing a setjmp-type call.
3596
3597 2011-06-16 Jeff Law <law@redhat.com>
3598
3599 * tree-ssa-threadupdate.c (struct redirection_data): New field
3600 intermediate_edge.
3601 (THREAD_TARGET2): Define.
3602 (redirection_data_eq): Also check that the intermediate edge is equal.
3603 (lookup_redirection_data): Drop useless argument. Extract the
3604 outgoing_edge and intermediate edge from E. Callers updated.
3605 (copy_phi_args, update_destination_phis): New functions.
3606 (fix_duplicate_block_edges): Likewise.
3607 (create_edge_and_update_destination_phis): Duplicate all the edges
3608 hung off e->aux. Use copy_phi_args.
3609 (create_duplicates): Use fix_duplicate_block_edges.
3610 (fixup_template_block): Likewise.
3611 (redirect_edges): If necessary, redirect the joiner block's incoming
3612 edge to the duplicate of the joiner block.
3613 (thread_block): Don't muck up loops when threading through a joiner
3614 block.
3615 (thread_through_loop_header): Handle threading through a joiner block.
3616 (mark_threaded_blocks, register_jump_thread): Likewise.
3617 * tree-flow.h (register_jump_thread): Add new argument. Callers
3618 updated.
3619 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
3620 (thread_across_edge): Handle threading through a joiner block.
3621
3622 2011-06-16 Martin Jambor <mjambor@suse.cz>
3623
3624 PR tree-optimization/49343
3625 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
3626 calculate offset, provide 2nd operand for the new COMPONENT_REF.
3627
3628 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
3629
3630 * config/darwin-protos.h (machopic_select_rtx_section): Move to
3631 inside RTX_CODE ifdef.
3632
3633 2011-06-16 Tom de Vries <tom@codesourcery.com>
3634
3635 PR target/45098
3636 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
3637 Disallow NULL pointer for pointer arithmetic.
3638
3639 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3640
3641 PR target/49398
3642 Revert.
3643 2011-06-10 Wei Guozhi <carrot@google.com>
3644
3645 PR target/45335
3646 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
3647 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
3648 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
3649 related peephole2.
3650 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
3651 related peephole2.
3652 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
3653 (arm_legitimate_ldrd_p): New prototype.
3654 (arm_output_ldrd): New prototype.
3655 * config/arm/arm.c (arm_check_ldrd_operands): New function.
3656 (arm_legitimate_ldrd_p): New function.
3657 (arm_output_ldrd): New function.
3658
3659 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
3660
3661 PR middle-end/46500
3662 * doc/tm.texi.in: Update Copyright date.
3663 * doc/tm.texi: Regenerate.
3664 * targhooks.c (default_setup_incoming_varargs): Replace
3665 CUMULATIVE_ARGS* argument type with cumulative_args_t.
3666 (default_pretend_outgoing_varargs_named): Likewise.
3667 (hook_pass_by_reference_must_pass_in_stack): Likewise.
3668 (hook_callee_copies_named): Likewise.
3669 (default_function_arg_advance): Likewise.
3670 (default_function_arg): Likewise.
3671 (default_function_incoming_arg): Likewise.
3672 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
3673 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
3674 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
3675 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
3676 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
3677 * targhooks.h (default_setup_incoming_varargs): Likewise.
3678 (default_pretend_outgoing_varargs_named): Likewise.
3679 (hook_pass_by_reference_must_pass_in_stack): Likewise.
3680 (hook_callee_copies_named): Likewise.
3681 (default_function_arg_advance): Likewise.
3682 (default_function_arg): Likewise.
3683 (default_function_incoming_arg): Likewise.
3684 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
3685 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
3686 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
3687 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
3688 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
3689 * target.def (pass_by_reference): Likewise.
3690 (setup_incoming_varargs, strict_argument_naming): Likewise.
3691 (pretend_outgoing_varargs_named, callee_copies): Likewise.
3692 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
3693 (function_incoming_arg): Likewise.
3694 * target.h: Don't include "tm.h" .
3695 (cumulative_args_t): New typedef.
3696 [GCC_TM_H] (get_cumulative_args): New static inline function.
3697 [GCC_TM_H] (pack_cumulative_args): Likewise.
3698 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
3699 argument type with cumulative_args_t.
3700 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
3701 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
3702 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
3703 (frv_arg_partial_bytes, frv_function_arg): Likewise.
3704 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
3705 (frv_function_arg_1): Likewise.
3706 * config/s390/s390.c (s390_pass_by_reference): Likewise.
3707 (s390_function_arg_advance, s390_function_arg): Likewise.
3708 * config/m32c/m32c.c (m32c_function_arg): Likewise.
3709 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
3710 (m32c_strict_argument_naming): Likewise.
3711 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
3712 (spu_function_arg_advance): Likewise.
3713 (spu_setup_incoming_varargs): Likewise. Make static.
3714 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
3715 Remove prototype.
3716 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
3717 CUMULATIVE_ARGS* argument type with cumulative_args_t.
3718 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
3719 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
3720 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
3721 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
3722 (mep_pass_by_reference, mep_function_arg): Likewise.
3723 (mep_function_arg_advance): Likewise.
3724 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
3725 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
3726 (m32r_function_arg, m32r_function_arg_advance): Likewise.
3727 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
3728 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
3729 (ix86_function_arg, ix86_pass_by_reference): Likewise.
3730 (ix86_setup_incoming_varargs): Likewise.
3731 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
3732 (sh_strict_argument_naming): Likewise.
3733 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
3734 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
3735 (sh_function_arg_advance, sh_function_arg): Likewise.
3736 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
3737 (pdp11_function_arg_advance): Likewise.
3738 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
3739 Likewise.
3740 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
3741 * config/avr/avr.c (avr_function_arg): Likewise.
3742 (avr_function_arg_advance): Likewise.
3743 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
3744 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
3745 (xtensa_function_arg_1): Likewise.
3746 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
3747 Likewise.
3748 (xstormy16_function_arg): Likewise.
3749 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
3750 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
3751 (fr30_function_arg_advance): Likewise.
3752 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
3753 (lm32_function_arg, lm32_function_arg_advance): Likewise.
3754 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
3755 (moxie_function_arg, moxie_function_arg_advance): Likewise.
3756 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
3757 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
3758 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
3759 (cris_function_arg, cris_function_incoming_arg): Likewise.
3760 (cris_function_arg_advance, cris_function_arg_1): Likewise.
3761 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
3762 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
3763 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
3764 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
3765 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
3766 (mn10300_arg_partial_bytes): Likewise.
3767 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
3768 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
3769 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
3770 (ia64_function_arg_1): Likewise.
3771 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
3772 (m68k_function_arg): Likewise.
3773 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
3774 (rs6000_function_arg, setup_incoming_varargs): Likewise.
3775 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
3776 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
3777 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
3778 (picochip_arg_advance): Likewise.
3779 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
3780 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
3781 (mcore_function_arg_advance): Likewise.
3782 * config/score/score.c (score_pass_by_reference): Likewise.
3783 (score_function_arg_advance): Likewise.
3784 (score_arg_partial_bytes): Likewise. Make static.
3785 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
3786 * config/arm/arm.c (arm_arg_partial_bytes): Replace
3787 CUMULATIVE_ARGS* argument type with cumulative_args_t.
3788 (arm_function_arg, arm_function_arg_advance): Likewise.
3789 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
3790 * config/pa/pa.c (pa_pass_by_reference): Likewise.
3791 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
3792 (pa_function_arg): Likewise.
3793 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
3794 (mips_function_arg, mips_function_arg_advance): Likewise.
3795 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
3796 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
3797 * config/vax/vax.c (vax_function_arg): Likewise.
3798 (vax_function_arg_advance): Likewise.
3799 * config/h8300/h8300.c (h8300_function_arg): Likewise.
3800 (h8300_function_arg_advance): Likewise.
3801 * config/v850/v850.c (v850_pass_by_reference): Likewise.
3802 (v850_strict_argument_naming, v850_function_arg): Likewise.
3803 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
3804 (v850_setup_incoming_varargs): Likewise.
3805 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
3806 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
3807 (mmix_function_arg, mmix_pass_by_reference): Likewise.
3808 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
3809 with const void *.
3810 * config/bfin/bfin.c (setup_incoming_varargs): Replace
3811 CUMULATIVE_ARGS* argument type with cumulative_args_t.
3812 (bfin_function_arg_advance, bfin_function_arg): Likewise.
3813 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
3814 * calls.c (emit_call_1): Change type of args_so_far to
3815 cumulative_args_t. Changed all callers.
3816 (initialize_argument_information): Likewise.
3817 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
3818 * dse.c (get_call_args): Likewise.
3819 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
3820 * function.c (pass_by_reference, reference_callee_copied): Likewise.
3821 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
3822 New member args_so_far_v. Changed all users.
3823 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
3824 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
3825 * config/mips/mips.c (mips_output_args_xfer): Likewise.
3826 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
3827 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3828 * config/microblaze/microblaze.c (microblaze_expand_prologue):
3829 Likewise.
3830 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
3831 m32r_pass_by_reference.
3832
3833 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
3834
3835 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
3836 argument to be a VEC of statements.
3837 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
3838 assert that pattern statements have to have their vector type set.
3839 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
3840 Change the first argument to be a VEC of statements. Update
3841 documentation.
3842 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
3843 (vect_handle_widen_mult_by_const): New function.
3844 (vect_recog_widen_mult_pattern): Change the first argument to be a
3845 VEC of statements. Update documentation. Check that the constant is
3846 INTEGER_CST. Support multiplication by a constant that fits an
3847 intermediate type - call vect_handle_widen_mult_by_const.
3848 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
3849 call. Handle additional pattern statements if necessary.
3850
3851 2011-06-16 Nick Clifton <nickc@redhat.com>
3852
3853 PR target/49427
3854 * config.gcc: Set cpu_type to v850 for any V850 architecture.
3855 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
3856 md_file, extra_modes, out_file and extra_options are these are all
3857 deduced from cpu_type.
3858
3859 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
3860
3861 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
3862 truncation mask to 63.
3863
3864 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
3865
3866 PR target/49313
3867 PR target/29524
3868 * longlong.h: Add AVR support:
3869 (count_leading_zeros): New macro.
3870 (count_trailing_zeros): New macro.
3871 (COUNT_LEADING_ZEROS_0): New macro.
3872 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
3873 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
3874 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
3875 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
3876 (LIB2FUNCS_EXCLUDE): Add _clz.
3877 * config/avr/libgcc.S (XCALL): Move up in file.
3878 (XJMP): New C Macro.
3879 (DEFUN): New asm macro.
3880 (ENDF): New asm macro.
3881 (__ffssi2): New function.
3882 (__ffshi2): New function.
3883 (__loop_ffsqi2): New function.
3884 (__ctzsi2): New function.
3885 (__ctzhi2): New function.
3886 (__clzdi2): New function.
3887 (__clzsi2): New function.
3888 (__clzhi2): New function.
3889 (__paritydi2): New function.
3890 (__paritysi2): New function.
3891 (__parityhi2): New function.
3892 (__parityqi2): New function.
3893 (__popcounthi2): New function.
3894 (__popcountsi2): New function.
3895 (__popcountdi2): New function.
3896 (__popcountqi2): New function.
3897 (__bswapsi2): New function.
3898 (__bswapdi2): New function.
3899 (__ashldi3): New function.
3900 (__ashrdi3): New function.
3901 (__lshrdi3): New function.
3902 Fix suspicous lines.
3903
3904 2011-06-16 Richard Guenther <rguenther@suse.de>
3905
3906 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
3907 the same as x != 0.
3908 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
3909 to (bool) X & 1.
3910 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
3911 equality compares against zero for the lower bit.
3912
3913 2011-06-16 Jakub Jelinek <jakub@redhat.com>
3914
3915 PR tree-optimization/49419
3916 * tree-vrp.c (execute_vrp): Call init_range_assertions
3917 before estimate_numbers_of_iterations, call
3918 free_number_of_iterations_estimates before calling
3919 remove_range_assertions.
3920
3921 2011-06-16 Revital Eres <revital.eres@linaro.org>
3922
3923 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
3924 (struct partial_schedule): Add rows_length field.
3925 (verify_partial_schedule): Check rows_length.
3926 (ps_insert_empty_row): Handle rows_length.
3927 (create_partial_schedule): Likewise.
3928 (free_partial_schedule): Likewise.
3929 (reset_partial_schedule): Likewise.
3930 (create_ps_insn): Remove rest_count argument.
3931 (remove_node_from_ps): Update rows_length.
3932 (add_node_to_ps): Update rows_length and call create_ps_insn
3933 without passing row_rest_count.
3934 (rotate_partial_schedule): Update rows_length.
3935
3936 2011-06-16 Revital Eres <revital.eres@linaro.org>
3937
3938 * ddg.c (add_intra_loop_mem_dep): New function.
3939 (build_intra_loop_deps): Call it.
3940
3941 2011-06-13 Jeff Law <law@redhat.com>
3942
3943 * df-problems.c (df_lr_local_compute): Manually CSE
3944 PIC_OFFSET_TABLE_REGNUM.
3945 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
3946 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
3947
3948 2011-06-13 Jan Hubicka <jh@suse.cz>
3949
3950 * cgraphunit.c (handle_alias_pairs): New function.
3951 (cgraph_finalize_compilation_unit): Use it.
3952 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
3953 as externally visible.
3954
3955 2011-06-15 Richard Guenther <rguenther@suse.de>
3956
3957 * expr.c (expand_expr_real_2): Reduce all integral types to
3958 bitfield precision.
3959 (expand_expr_real_1): Likewise.
3960
3961 2011-06-15 Martin Jambor <mjambor@suse.cz>
3962
3963 PR tree-optimization/48613
3964 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
3965 ipa_node_params_vector is NULL.
3966
3967 2011-06-15 Jakub Jelinek <jakub@redhat.com>
3968
3969 PR debug/49382
3970 * dwarf2out.c (dw_loc_list_node): Add force field.
3971 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
3972 location in the list, even if it is modified before first real insn.
3973 (output_loc_list): Emit empty ranges with force flag set.
3974 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
3975
3976 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
3977
3978 PR target/49349
3979 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
3980 (fence_to_rewind). Use it to notice when bookkeeping will be placed
3981 above a fence. Update comments.
3982 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
3983 placed just above it. Do not allow NULL place_to_insert.
3984
3985 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
3986
3987 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
3988 (slpeel_tree_peel_loop_to_edge): Don't call
3989 remove_dead_stmts_from_loop.
3990 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
3991 remove irrelevant pattern statements. For irrelevant statements
3992 check if it is the last statement of a detected pattern, use
3993 corresponding pattern statement instead.
3994 (destroy_loop_vec_info): No need to remove pattern statements,
3995 only free stmt_vec_info.
3996 (vect_transform_loop): For irrelevant statements check if it is
3997 the last statement of a detected pattern, use corresponding
3998 pattern statement instead.
3999 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
4000 pattern statements. Set basic block for the new statement.
4001 (vect_pattern_recog): Update documentation.
4002 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
4003 operands of pattern statements.
4004 (vectorizable_call): Fix printing. In case of a pattern statement
4005 use the lhs of the original statement when creating a dummy
4006 statement to replace the original call.
4007 (vect_analyze_stmt): For irrelevant statements check if it is
4008 the last statement of a detected pattern, use corresponding
4009 pattern statement instead.
4010 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
4011 statements use gsi of the original statement.
4012
4013 2011-06-14 Joseph Myers <joseph@codesourcery.com>
4014
4015 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
4016 common/common-target-def.h.
4017 * target.def (default_target_flags, handle_option,
4018 supports_split_stack, optimization_table, init_struct,
4019 except_unwind_info, unwind_tables_default, have_named_sections):
4020 Move to common/common-target.def.
4021 * target.h (enum opt_levels, struct default_options): Move to
4022 common/common-target.h.
4023 * targhooks.c (default_except_unwind_info,
4024 dwarf2_except_unwind_info, sjlj_except_unwind_info,
4025 default_target_handle_option, empty_optimization_table): Move to
4026 common/common-targhooks.c.
4027 * targhooks.h (default_except_unwind_info,
4028 dwarf2_except_unwind_info, sjlj_except_unwind_info,
4029 default_target_handle_option, empty_optimization_table): Move to
4030 common/common-targhooks.h.
4031 * common/common-target-def.h: Include common/common-targhooks.h.
4032 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
4033 defined.
4034 * common/common-target.def (handle_option, option_init_struct,
4035 option_optimization_table, default_target_flags,
4036 except_unwind_info, supports_split_stack, unwind_tables_default,
4037 have_named_sections): Move from target.def.
4038 (HOOK_PREFIX): Undefine at end of file.
4039 * common/common-target.h: Include input.h.
4040 (enum opt_levels, struct default_options): Move from target.h.
4041 * common/common-targhooks.c, common/common-targhooks.h: New.
4042 * config.gcc (target_has_targetm_common): Default to yes.
4043 (moxie*): Set target_has_targetm_common=no.
4044 (hppa*-*-*): Don't set target_has_targetm_common=yes.
4045 * doc/tm.texi: Regenerate.
4046 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
4047 (C_TARGET_DEF_H): Add common/common-targhooks.h.
4048 (GCC_OBJS): Remove vec.o.
4049 (OBJS): Remove hooks.o and vec.o.
4050 (OBJS-libcommon-target): Add vec.o, hooks.o and
4051 common/common-targhooks.o.
4052 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
4053 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
4054 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
4055 cfglayout.o, $(out_object_file), $(common_out_object_file)):
4056 Update dependencies.
4057 (common/common-targhooks.o): New.
4058 * common/config/default-common.c: Include tm.h. Add FIXME comment.
4059 * common/config/pa/pa-common.c: Include more headers. Take
4060 copyright dates from pa.c.
4061 (pa_option_optimization_table, pa_handle_option,
4062 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
4063 TARGET_HANDLE_OPTION): Move from pa.c.
4064 * common/config/alpha/alpha-common.c,
4065 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
4066 common/config/bfin/bfin-common.c,
4067 common/config/cris/cris-common.c,
4068 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
4069 common/config/h8300/h8300-common.c,
4070 common/config/i386/i386-common.c,
4071 common/config/ia64/ia64-common.c,
4072 common/config/iq2000/iq2000-common.c,
4073 common/config/lm32/lm32-common.c,
4074 common/config/m32c/m32c-common.c,
4075 common/config/m32r/m32r-common.c,
4076 common/config/m68k/m68k-common.c,
4077 common/config/mcore/mcore-common.c,
4078 common/config/mep/mep-common.c,
4079 common/config/microblaze/microblaze-common.c,
4080 common/config/mips/mips-common.c,
4081 common/config/mmix/mmix-common.c,
4082 common/config/mn10300/mn10300-common.c,
4083 common/config/pdp11/pdp11-common.c,
4084 common/config/picochip/picochip-common.c,
4085 common/config/rs6000/rs6000-common.c,
4086 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
4087 common/config/score/score-common.c, common/config/sh/sh-common.c,
4088 common/config/sparc/sparc-common.c,
4089 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
4090 common/config/vax/vax-common.c,
4091 common/config/xstormy16/xstormy16-common.c,
4092 common/config/xtensa/xtensa-common.c: New.
4093 * config/alpha/alpha.c: Include common/common-target.h.
4094 (alpha_option_optimization_table, alpha_handle_option,
4095 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4096 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
4097 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
4098 * config/arm/arm.c (arm_option_optimization_table,
4099 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4100 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
4101 arm-common.c.
4102 * config/avr/avr.c (avr_option_optimization_table,
4103 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4104 to avr-common.c.
4105 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
4106 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
4107 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
4108 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
4109 * config/cris/cris.c (cris_option_optimization_table,
4110 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4111 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
4112 cris-common.c.
4113 * config/fr30/fr30.c (fr30_option_optimization_table,
4114 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
4115 to fr30-common.c.
4116 * config/frv/frv.c (frv_option_optimization_table,
4117 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
4118 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
4119 * config/h8300/h8300.c (h8300_option_optimization_table,
4120 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4121 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
4122 * config/i386/i386-protos.h (ix86_handle_option): Declare.
4123 * config/i386/i386.c: Include common/common-target.h.
4124 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
4125 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
4126 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
4127 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
4128 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
4129 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
4130 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
4131 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
4132 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
4133 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
4134 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
4135 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
4136 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
4137 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
4138 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
4139 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
4140 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
4141 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
4142 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
4143 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
4144 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
4145 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
4146 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
4147 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
4148 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
4149 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
4150 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
4151 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
4152 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
4153 ix86_option_optimization_table, ix86_option_init_struct,
4154 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
4155 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4156 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
4157 i386-common.c.
4158 * config/i386/t-i386 (i386.o): Update dependencies.
4159 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
4160 * config/ia64/ia64.c (ia64_option_optimization_table,
4161 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4162 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4163 ia64_handle_option): Move to ia64-common.c.
4164 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
4165 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
4166 * config/lm32/lm32.c (lm32_option_optimization_table,
4167 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4168 to lm32-common.c.
4169 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
4170 m32c-common.c.
4171 * config/m32r/m32r.c (m32r_option_optimization_table,
4172 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4173 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4174 m32r_handle_option): Move to m32r-common.c.
4175 (m32r_memory_move_cost): Remove comment referring to
4176 TARGET_HANDLE_OPTION.
4177 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
4178 Move to m68k-common.c.
4179 * config/mcore/mcore.c (mcore_option_optimization_table,
4180 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4181 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
4182 * config/mep/mep.c (mep_option_optimization_table,
4183 mep_handle_option, TARGET_HANDLE_OPTION,
4184 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
4185 Move to mep-common.c.
4186 * config/microblaze/microblaze.c
4187 (microblaze_option_optimization_table,
4188 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4189 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
4190 * config/mips/mips.c (mips_handle_option,
4191 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4192 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
4193 mips-common.c.
4194 * config/mmix/mmix.c (mmix_option_optimization_table,
4195 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4196 Move to mmix-common.c.
4197 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
4198 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
4199 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4200 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
4201 * config/pa/pa.c: Include common/common-target.h.
4202 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4203 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4204 pa_handle_option): Move to pa-common.c.
4205 (pa_option_override): Use targetm_common.except_unwind_info.
4206 (pa_asm_output_mi_thunk, pa_function_section): Use
4207 targetm_common.have_named_sections.
4208 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
4209 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4210 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4211 pdp11_handle_option, pdp11_option_init_struct): Move to
4212 pdp11-common.c.
4213 * config/picochip/picochip.c (picochip_option_optimization_table,
4214 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
4215 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
4216 * config/rs6000/rs6000.c: Include common/common-target.h.
4217 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
4218 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
4219 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
4220 rs6000_handle_option): Move to rs6000-common.c.
4221 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
4222 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
4223 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4224 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
4225 * config/s390/s390.c (processor_flags_table,
4226 s390_option_optimization_table, s390_option_init_struct,
4227 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
4228 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4229 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
4230 * config/s390/s390.h (processor_flags_table): Declare.
4231 * config/score/score.c (score_option_optimization_table,
4232 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4233 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
4234 score_handle_option): Move to score-common.c.
4235 * config/sh/sh.c (sh_option_optimization_table,
4236 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4237 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4238 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
4239 * config/sparc/sparc.c: Include common/common-target.h.
4240 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4241 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
4242 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
4243 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
4244 spu_option_init_struct): Move to spu-common.c.
4245 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
4246 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
4247 * config/v850/v850.c (small_memory_physical_max,
4248 v850_handle_memory_optionn v850_handle_option,
4249 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4250 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
4251 v850-common.c.
4252 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
4253 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
4254 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4255 Move to xtensa-common.c.
4256 * cfglayout.c: Include common/common-target.h.
4257 (fixup_reorder_chain): Use targetm_common.have_named_sections.
4258 * cfgrtl.c: Include common/common-target.h.
4259 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
4260 targetm_common.have_named_sections.
4261 * dbxout.c: Include common/common-target.h.
4262 (dbxout_function_end): Use targetm_common.have_named_sections.
4263 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
4264 targetm_common.except_unwind_info.
4265 * dwarf2out.c: Include common/common-target.h.
4266 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
4267 dwarf2out_begin_prologue, dwarf2out_frame_init,
4268 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
4269 targetm_common.except_unwind_info.
4270 * except.c: Include common/common-target.h.
4271 (init_eh, finish_eh_generation,
4272 output_one_function_exception_table): Use
4273 targetm_common.except_unwind_info.
4274 (switch_to_exception_section): Use targetm_common.have_named_sections.
4275 * explow.c: Include common/common-target.h.
4276 * expr.c: Include common/common-target.h.
4277 (build_personality_function): Use targetm_common.except_unwind_info.
4278 * function.c: Include common/common-target.h.
4279 (expand_function_end): Use targetm_common.except_unwind_info.
4280 * haifa-sched.c: Include common/common-target.h.
4281 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
4282 * lto-opts.c: Include common/common-target.h instead of target.h.
4283 (lto_reissue_options): Use targetm_common.handle_option.
4284 * opts.c: Include common/common-target.h.
4285 (target_handle_option): Use targetm_common.handle_option.
4286 (init_options_struct): Update comment referring to
4287 targetm.target_option.optimization. Use
4288 targetm_common.default_target_flags,
4289 targetm_common.unwind_tables_default and
4290 targetm_common.option_init_struct.
4291 (default_options_optimization): Use
4292 targetm_common.option_optimization_table.
4293 (finish_options): Use targetm_common.except_unwind_info,
4294 targetm_common.unwind_tables_default,
4295 targetm_common.have_named_sections and
4296 targetm_common.supports_split_stack.
4297 * toplev.c: Include common/common-target.h.
4298 (process_options): Use targetm_common.have_named_sections.
4299 * tree-tailcall.c: Include common/common-target.h.
4300 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
4301 * tree.c: Include common/common-target.h.
4302 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
4303 * varasm.c: Include common/common-target.h.
4304 (resolve_unique_section, hot_function_section,
4305 default_function_section): Use targetm_common.have_named_sections.
4306
4307 2011-06-14 Easwaran Raman <eraman@google.com>
4308
4309 PR rtl-optimization/44194
4310 * dse.c: Include tree-flow.h
4311 (insn_info): Add new field non_frame_wild_read.
4312 (group_info): Add new fields escaped_n and escaped_p.
4313 (kill_on_calls): New variable.
4314 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
4315 (dse_step0): Initialize kill_on_calls.
4316 (can_escape): New function.
4317 (set_usage_bits): Add additional parameter; record information
4318 about escaped locations.
4319 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
4320 (dse_step2_nospill): Set kill_on_calls based on
4321 group->escaped_n and group->escaped_n.
4322 (add_wild_read): Refactor into...
4323 (reset_active_stores): ... New function, and
4324 (free_read_records): ... New function.
4325 (add_non_frame_wild_read): New function.
4326 (scan_insn): Call add_non_frame_wild_read on non-const calls.
4327 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
4328 (dse_step5_nospill): Call scan_reads_nospill for instructions
4329 marked as non_frame_wild_read.
4330 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
4331
4332 2011-06-14 Joseph Myers <joseph@codesourcery.com>
4333
4334 * common/common-target-def.h, common/common-target.def,
4335 common/common-target.h, common/config/default-common.c,
4336 common/config/pa/pa-common.c: New files.
4337 * Makefile.in (common_out_file, common_out_object_file,
4338 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
4339 (OBJS-libcommon-target): Include $(common_out_object_file).
4340 (prefix.o): Update dependencies.
4341 ($(common_out_object_file), common/common-target-hooks-def.h,
4342 s-common-target-hooks-def-h): New.
4343 (s-tm-texi): Also check timestamp on common-target.def.
4344 (build/genhooks.o): Update dependencies.
4345 * config.gcc (common_out_file, target_has_targetm_common): Define.
4346 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
4347 TARGET_ALWAYS_STRIP_DOTDOT.
4348 * configure.ac (common_out_object_file): Define.
4349 (common_out_file, common_out_object_file): Substitute.
4350 (common): Create directory.
4351 * configure: Regenerate.
4352 * doc/tm.texi.in (targetm_common): Document.
4353 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
4354 * doc/tm.texi: Regenerate.
4355 * genhooks.c (hook_array): Also include common/common-target.def.
4356 * prefix.c (tm.h): Don't include.
4357 (common/common-target.h): Include.
4358 (ALWAYS_STRIP_DOTDOT): Don't define.
4359 (update_path): Use targetm_common.always_strip_dotdot instead of
4360 ALWAYS_STRIP_DOTDOT.
4361 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
4362
4363 2011-06-14 David Li <davidxl@google.com>
4364
4365 * passes.c (execute_function_todo): Remove TODO_dump_func.
4366 (execute_one_pass): Remove TODO_dump_func.
4367 (execute_function_dump): New function.
4368 * tree-vrp.c: Remove TODO_dump_func.
4369 * regrename.c: Remove TODO_dump_func.
4370 * fwprop.c: Remove TODO_dump_func.
4371 * tree-into-ssa.c: Remove TODO_dump_func.
4372 * tree-complex.c: Remove TODO_dump_func.
4373 * tracer.c: Remove TODO_dump_func.
4374 * tree-loop-distribution.c: Remove TODO_dump_func.
4375 * postreload-gcse.c: Remove TODO_dump_func.
4376 * postreload.c: Remove TODO_dump_func.
4377 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
4378 * tree-tailcall.c: Remove TODO_dump_func.
4379 * ipa-cp.c: Remove TODO_dump_func.
4380 * final.c: Remove TODO_dump_func.
4381 * tree-emutls.c: Remove TODO_dump_func.
4382 * omp-low.c: Remove TODO_dump_func.
4383 * tree-ssa-dse.c: Remove TODO_dump_func.
4384 * tree-ssa-uncprop.c: Remove TODO_dump_func.
4385 * auto-inc-dec.c: Remove TODO_dump_func.
4386 * reorg.c: Remove TODO_dump_func.
4387 * tree-ssa-copyrename.c: Remove TODO_dump_func.
4388 * tree-ssa-ccp.c: Remove TODO_dump_func.
4389 * compare-elim.c: Remove TODO_dump_func.
4390 * mode-switching.c: Remove TODO_dump_func.
4391 * modulo-sched.c: Remove TODO_dump_func.
4392 * tree-call-cdce.c: Remove TODO_dump_func.
4393 * cse.c: Remove TODO_dump_func.
4394 * web.c: Remove TODO_dump_func.
4395 * tree-stdarg.c: Remove TODO_dump_func.
4396 * lto-streamer-out.c: Remove TODO_dump_func.
4397 * tree-ssa-math-opts.c: Remove TODO_dump_func.
4398 * tree-ssa-dom.c: Remove TODO_dump_func.
4399 * tree-nrv.c: Remove TODO_dump_func.
4400 * loop-init.c: Remove TODO_dump_func.
4401 * gimple-low.c: Remove TODO_dump_func.
4402 * ipa-inline.c: Remove TODO_dump_func.
4403 * tree-ssa-sink.c: Remove TODO_dump_func.
4404 * jump.c: Remove TODO_dump_func.
4405 * ifcvt.c: Remove TODO_dump_func.
4406 * tree-ssa-loop.c: Remove TODO_dump_func.
4407 * recog.c: Remove TODO_dump_func.
4408 * dse.c: Remove TODO_dump_func.
4409 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
4410 * matrix-reorg.c: Remove TODO_dump_func.
4411 * tree-eh.c: Remove TODO_dump_func.
4412 * regmove.c: Remove TODO_dump_func.
4413 * function.c: Remove TODO_dump_func.
4414 * tree-vectorizer.c: Remove TODO_dump_func.
4415 * ipa-split.c: Remove TODO_dump_func.
4416 * gcse.c: Remove TODO_dump_func.
4417 * tree-if-conv.c: Remove TODO_dump_func.
4418 * init-regs.c: Remove TODO_dump_func.
4419 * tree-ssa-phiopt.c: Remove TODO_dump_func.
4420 * implicit-zee.c: Remove TODO_dump_func.
4421 * lower-subreg.c: Remove TODO_dump_func.
4422 * bt-load.c: Remove TODO_dump_func.
4423 * tree-dfa.c: Remove TODO_dump_func.
4424 * except.c: Remove TODO_dump_func.
4425 * emit-rtl.c: Remove TODO_dump_func.
4426 * store-motion.c: Remove TODO_dump_func.
4427 * cfgexpand.c: Remove TODO_dump_func.
4428 * tree-cfgcleanup.c: Remove TODO_dump_func.
4429 * cfgcleanup.c: Remove TODO_dump_func.
4430 * tree-ssa-pre.c: Remove TODO_dump_func.
4431 * tree-sra.c: Remove TODO_dump_func.
4432 * tree-mudflap.c: Remove TODO_dump_func.
4433 * tree-ssa-copy.c: Remove TODO_dump_func.
4434 * cfglayout.c: Remove TODO_dump_func.
4435 * tree-ssa-forwprop.c: Remove TODO_dump_func.
4436 * tree-ssa-dce.c: Remove TODO_dump_func.
4437 * ira.c: Remove TODO_dump_func.
4438 * tree-ssa.c: Remove TODO_dump_func.
4439 * integrate.c: Remove TODO_dump_func.
4440 * tree-optimize.c: Remove TODO_dump_func.
4441 * tree-ssa-phiprop.c: Remove TODO_dump_func.
4442 * tree-object-size.c: Remove TODO_dump_func.
4443 * combine.c: Remove TODO_dump_func.
4444 * bb-reorder.c: Remove TODO_dump_func.
4445 * cprop.c: Remove TODO_dump_func.
4446 * var-tracking.c: Remove TODO_dump_func.
4447 * tree-profile.c: Remove TODO_dump_func.
4448 * tree-vect-generic.c: Remove TODO_dump_func.
4449 * reg-stack.c: Remove TODO_dump_func.
4450 * sched-rgn.c: Remove TODO_dump_func.
4451 * tree-ssa-structalias.c: Remove TODO_dump_func.
4452 * tree-switch-conversion.c: Remove TODO_dump_func.
4453 * tree-cfg.c: Remove TODO_dump_func.
4454 * tree-ssa-reassoc.c: Remove TODO_dump_func.
4455 * combine-stack-adj.c: Remove TODO_dump_func.
4456 * dce.c: Remove TODO_dump_func.
4457 * tree-ssanames.c: Remove TODO_dump_func.
4458 * regcprop.c: Remove TODO_dump_func.
4459
4460 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
4461
4462 PR middle-end/47364
4463 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
4464 and properly handle result not in Pmode.
4465
4466 2011-06-14 Robert Millan <rmh@gnu.org>
4467
4468 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
4469 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
4470 `config/linux.h'.
4471
4472 * config/i386/kfreebsd-gnu64.h: New file.
4473 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
4474 with `i386/kfreebsd-gnu64.h'.
4475
4476 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
4477 (GNU_USER_LINK_EMULATION64): New macros.
4478 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
4479 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
4480 of hardcoding `elf_i386' and `elf_x86_64'.
4481
4482 2011-06-14 Nick Clifton <nickc@redhat.com>
4483
4484 PR target/49403
4485 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
4486
4487 PR target/49402
4488 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
4489
4490 2011-06-14 Jakub Jelinek <jakub@redhat.com>
4491
4492 PR fortran/49103
4493 * tree.h (DECL_NONSHAREABLE): Define.
4494 (struct tree_decl_common): Change decl_common_unused to
4495 decl_nonshareable_flag.
4496 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
4497 Ignore vars with DECL_NONSHAREABLE bit set.
4498 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
4499 on stores to automatic aggregate vars.
4500
4501 PR rtl-optimization/49390
4502 Revert:
4503 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
4504
4505 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
4506 MEM_ALIAS_SET.
4507
4508 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
4509 Tom de Vries <tom@codesourcery.com>
4510
4511 PR target/45098
4512 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
4513 Document changed semantics.
4514 (max_stmt_executions, max_stmt_executions_int): Declare.
4515 * tree-data-ref.c (estimated_loop_iterations)
4516 (estimated_loop_iterations_int): Move functions...
4517 * tree-ssa-loop-niter.c (estimated_loop_iterations)
4518 (estimated_loop_iterations_int): here.
4519 (record_estimate): Change nb_iterations_upper_bound and
4520 nb_iterations_estimate semantics.
4521 (max_stmt_executions, max_stmt_executions_int): New function.
4522 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
4523 (max_stmt_executions_tree): this.
4524 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
4525 estimated_loop_iterations_tree.
4526 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
4527 max_stmt_executions_int instead of estimated_loop_iterations_int.
4528 * predict.c (predict_loops): Idem.
4529 * tree-parloops.c (parallelize_loops): Idem.
4530 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
4531 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
4532 (init_omega_for_ddr_1): Idem.
4533 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
4534 (loop_prefetch_arrays): Idem
4535 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
4536 max_stmt_executions instead of estimated_loop_iterations.
4537 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
4538 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
4539 instead of nb_iterations_upper_bound.
4540
4541 2011-06-13 Jan Hubicka <jh@suse.cz>
4542
4543 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
4544
4545 2011-06-14 Richard Henderson <rth@redhat.com>
4546
4547 PR debug/48459
4548 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
4549 (based_loc_descr): Assert it's true.
4550 (compute_frame_pointer_to_fb_displacement): Set it, rather than
4551 aborting immediately.
4552
4553 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
4554 Mingfeng Wu <mingfeng@faraday-tech.com>
4555
4556 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
4557
4558 2011-06-13 Jan Hubicka <jh@suse.cz>
4559
4560 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
4561
4562 2011-06-13 Jan Hubicka <jh@suse.cz>
4563
4564 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
4565 similarly to DECL_COMDAT.
4566 * cgraphunit.c (cgraph_analyze_function): Likewise.
4567 * ipa.c (function_and_variable_visibility): Likewise.
4568
4569 2011-06-13 Jan Hubicka <jh@suse.cz>
4570
4571 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
4572 BINFO_VIRTUALS when streaming for ltrans unit.
4573
4574 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
4575
4576 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
4577 (movdi_internal64): Same.
4578
4579 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
4580
4581 PR target/44618
4582 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
4583 a set of similar patterns, where the MATCH_OPERAND for the function
4584 argument is replaced with individual references to hardware registers.
4585 (save_fpregs_<mode>): Ditto
4586 (restore_gpregs_<mode>): Ditto
4587 (return_and_restore_gpregs_<mode>): Ditto
4588 (return_and_restore_fpregs_<mode>): Ditto
4589 (return_and_restore_fpregs_aix_<mode>): Ditto
4590
4591 2011-06-13 Jan Hubicka <jh@suse.cz>
4592
4593 * ipa-utils.c (postorder_stack): New structure.
4594 (ipa_reverse_postorder): Handle aliases.
4595
4596 2011-06-13 Jan Hubicka <jh@suse.cz>
4597
4598 * ipa-inline.c (reset_edge_caches): Walk aliases.
4599 (update_caller_keys): Do not test inlinability of aliases.
4600 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
4601 (do_estimate_growth): Fix typo.
4602
4603 2011-06-13 Jan Hubicka <jh@suse.cz>
4604
4605 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
4606 (can_remove_node_now_p): ... here; handle same comdat groups.
4607 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
4608 (inline_call): Update use of can_remove_node_now_p.
4609
4610 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4611
4612 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
4613 condition to disallow non-identical memory locations.
4614 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
4615 preference to bit manipulation instructions.
4616
4617 2011-06-13 Jan Hubicka <jh@suse.cz>
4618
4619 * cgraph.c (cgraph_for_node_thunks_and_aliases,
4620 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
4621 (nonremovable_p): New function.
4622 (cgraph_can_remove_if_no_direct_calls_p): New function.
4623 (used_from_object_file_p): New functoin.
4624 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
4625 references from aliases.
4626 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
4627 * ipa-inline.c (check_caller_edge): New function.
4628 (want_inline_function_called_once_p): Use it; accept aliases called
4629 once, too.
4630 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
4631
4632 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4633
4634 PR target/48454
4635 * config/arm/neon.md (vec_pack_trunc): Set the lengths
4636 correctly for the case with Quad vectors.
4637
4638 2011-06-13 Jakub Jelinek <jakub@redhat.com>
4639 Ira Rosen <ira.rosen@linaro.org>
4640
4641 PR tree-optimization/49352
4642 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
4643 all, make sure loop_use_stmt after the loop is a def stmt of a used
4644 SSA_NAME that is the only one defined inside of the loop. Don't
4645 check for COND_EXPR and GIMPLE_BINARY_RHS.
4646 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
4647 check_reduction is true.
4648
4649 2011-06-11 Jan Hubicka <jh@suse.cz>
4650
4651 PR middle-end/49373
4652 * ipa.c (cgraph_externally_visible_p): Check resolution info.
4653
4654 2011-06-11 Jan Hubicka <jh@suse.cz>
4655
4656 PR middle-end/48836
4657 * ipa-inline-transform.c: Include tree-pass.h
4658 (inline_transform): Set TODO_update_ssa_only_virtuals.
4659 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
4660
4661 2011-06-11 Jan Hubicka <jh@suse.cz>
4662
4663 PR middle-end/49378
4664 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
4665 aliases and thunks.
4666
4667 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
4668
4669 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
4670 Take number of iterations to peel into account for equally frequent
4671 misalignment values.
4672
4673 2011-06-11 Jan Hubicka <jh@suse.cz>
4674
4675 * lto-streamer-out.c (produce_symtab): Stream out the newly
4676 represented aliases.
4677
4678 2011-06-11 Jan Hubicka <jh@suse.cz>
4679
4680 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
4681 varying args.
4682 (ipa_update_after_lto_read): Likewise.
4683 (ipa_write_node_info): Do not sream call_with_var_arguments.
4684 (ipa_read_node_info): Likewise.
4685
4686 2011-06-11 Jan Hubicka <jh@suse.cz>
4687
4688 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
4689
4690 2011-06-11 Jan Hubicka <jh@suse.cz>
4691
4692 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
4693 (lto_symtab_resolve_can_prevail_p): Likewise.
4694 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
4695 * cgraph.c (same_body_aliases_done): New global var.
4696 (cgraph_same_body_alias_1): Rename to ...
4697 (cgraph_create_function_alias): ... this one; reorg to new
4698 representation.
4699 (cgraph_same_body_alias): Use cgraph_create_function_alias;
4700 record references when asked to.
4701 (cgraph_add_thunk): Fix formating.
4702 (cgraph_get_node): Kill same body alias code.
4703 (cgraph_node_for_asm): Likewise.
4704 (cgraph_remove_same_body_alias): Remove.
4705 (cgraph_remove_node): Kill same body alias code.
4706 (cgraph_mark_address_taken_node): Mark also the aliased function
4707 as having address taken.
4708 (dump_cgraph_node): Dump same body aliases.
4709 (cgraph_for_node_thunks_and_aliases): Update for new alias
4710 representation.
4711 (cgraph_for_node_and_aliases): Likewise.
4712 * cgraph.h (same_body): Kll pointer.
4713 (same_body_alias): Update comment.
4714 (same_body_aliases_done): Declare.
4715 (cgraph_remove_same_body_alias): Remove declaration.
4716 (cgraph_create_function_alias): Declare.
4717 (cgraph_process_same_body_aliases): Declare.
4718 (cgraph_function_with_gimple_body_p): Check for alias.
4719 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
4720 (cgraph_alias_aliased_node): New function.
4721 (cgraph_function_node): Update for new aliases.
4722 (cgraph_function_or_thunk_node): Likewise.
4723 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
4724 (inline_call): Remove dead aliases.
4725 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
4726 name hack for same body aliases.
4727 (clone_of_p): Look through aliases.
4728 (verify_cgraph_node): Verify aliases.
4729 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
4730 (cgraph_process_same_body_aliases): New function.
4731 (process_function_and_variable_attributes): Disable weakref warning on
4732 alias.
4733 (cgraph_analyze_functions): Handle aliases.
4734 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
4735 (assemble_thunks): Rename to ...
4736 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
4737 (cgraph_expand_function): Remove alias output code.
4738 (cgraph_output_in_order): Skip aliases.
4739 (cgraph_preserve_function_body_p): Aliases don't need preserving.
4740 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
4741 (ipa_record_reference): Do not assert on alias references.
4742 (ipa_ref_has_aliases_p): New function.
4743 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
4744 (ipa_ref_has_aliases_p): Declare.
4745 * lto-cgraph.c (lto_output_node): Handle aliases.
4746 (input_node): Likewise.
4747 * lto-streamer-out.c (lto_output): Skip aliases.
4748 (produce_symtab): Kill same_body_alias code.
4749 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
4750 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
4751 * ipa-inline.c (update_caller_keys): Walk aliases.
4752 (inline_small_functions): Fix thinko in previous patch.
4753 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
4754 (function_and_variable_visibility): Do not walk same body aliases.
4755 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
4756 (ipa_pta_execute): Use it.
4757
4758 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
4759
4760 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
4761 (*vec_dupv2df): Rename from vec_dupv2df.
4762 (vec_dupv2df): New expander.
4763
4764 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
4765
4766 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
4767
4768 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
4769
4770 * config/i386/i386.md: Use default value in "isa" attribute.
4771 * config/i386/sse.md: Ditto.
4772 * config/i386/mmx.md: Ditto.
4773
4774 2011-06-10 Wei Guozhi <carrot@google.com>
4775
4776 PR target/45335
4777 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
4778 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
4779 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
4780 related peephole2.
4781 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
4782 related peephole2.
4783 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
4784 (arm_legitimate_ldrd_p): New prototype.
4785 (arm_output_ldrd): New prototype.
4786 * config/arm/arm.c (arm_check_ldrd_operands): New function.
4787 (arm_legitimate_ldrd_p): New function.
4788 (arm_output_ldrd): New function.
4789
4790 2011-06-10 David Li <davidxl@google.com>
4791
4792 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
4793 * passes.c (passr_eq): New function.
4794 (create_pass_tab): New function.
4795 (pass_traverse): New function.
4796 (dump_one_pass): New function.
4797 (dump_pass_list): New function.
4798 (dump_passes): New function.
4799
4800 2011-06-10 Jan Hubicka <jh@suse.cz>
4801
4802 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
4803 setting the nothrow flag.
4804 * ipa-reference.c (propagate): Skip aliases.
4805 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
4806 (propagate_nothrow): Skip aliases; do not update cgraph.
4807 (local_pure_const): Do not update cgraph.
4808 * tree-profile.c (tree_profiling): Do fixup_cfg.
4809
4810 2011-06-10 Jan Hubicka <jh@suse.cz>
4811
4812 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
4813 (cgraph_local_node_p): ... here; handle aliases.
4814 (has_addr_references_p): Break out from ...;
4815 (cgraph_remove_unreachable_nodes) ... here.
4816
4817 2011-06-10 Jan Hubicka <jh@suse.cz>
4818
4819 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
4820 * common.opt (flag_inline_functions_called_once): Do not
4821 initialize to 1.
4822
4823 2011-06-10 Jan Hubicka <jh@suse.cz>
4824
4825 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
4826 (ipcp_initialize_node_lattices): Do not deal with aliases;
4827 Do not try to propagate through thunks.
4828 (ipcp_change_tops_to_bottom): Do not deal with aliases.
4829
4830 2011-06-10 Jan Hubicka <jh@suse.cz>
4831
4832 * ipa-prop.c (ipa_write_node_info): Stream jump functions
4833 for indirect calls.
4834 (ipa_read_node_info): Likewise.
4835
4836 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4837
4838 PR lto/49302
4839 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
4840 (build_and_insert_call): Likewise.
4841 (build_and_insert_ref): New.
4842 (gimple_expand_builtin_pow): Minor cleanup.
4843 (gimple_expand_builtin_cabs): New.
4844 (execute_cse_sincos): Add case for BUILT_IN_CABS.
4845
4846 2011-06-10 Jan Hubicka <jh@suse.cz>
4847
4848 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
4849 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
4850 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
4851 (ipcp_propagate_stage): Skip aliases when propagating.
4852 (ipcp_need_redirect_p): Skip aliases.
4853 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
4854 collect_callers_of_node.
4855 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
4856 for aliases.
4857 (ipa_compute_jump_functions): Look through aliases.
4858
4859 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4860
4861 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
4862
4863 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
4864
4865 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
4866 Adjust comments.
4867 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
4868
4869 2011-06-10 Jan Hubicka <jh@suse.cz>
4870
4871 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
4872 Update call of gimple_get_virt_method_for_binfo.
4873 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
4874 refuse_thunks parameter.
4875 (gimple_fold_call): Update.
4876 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
4877
4878 2011-06-10 Jan Hubicka <jh@suse.cz>
4879
4880 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
4881 (not_all_callers_have_enough_arguments_p): ... this one; turn into
4882 worker for cgraph_for_node_and_aliases.
4883 (convert_callers_for_node): Break out from ...
4884 (convert_callers): ... here.
4885 (modify_function): Use collect_callers_of_node.
4886 (ipa_early_sra): Use cgraph_for_node_and_aliases.
4887
4888 2011-06-10 Richard Guenther <rguenther@suse.de>
4889
4890 PR tree-optimization/49361
4891 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
4892 when not already in gimple form.
4893
4894 2011-06-10 Richard Guenther <rguenther@suse.de>
4895
4896 PR bootstrap/49344
4897 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
4898 FOR_EACH_PHI_OR_STMT_USE.
4899
4900 2011-06-10 Jan Hubicka <jh@suse.cz>
4901
4902 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
4903 (clone_inlined_nodes): ... here.
4904 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
4905 to real destination prior inlining.
4906 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
4907 can_early_inline_edge_p, want_early_inline_function_p,
4908 want_early_inline_function_p, want_inline_small_function_p,
4909 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
4910 edge_badness, update_all_callee_keys, lookup_recursive_calls,
4911 add_new_edges_to_heap, inline_small_functions, flatten_function,
4912 inline_always_inline_functions, early_inline_small_functions): Use
4913 cgraph_function_or_thunk_node.
4914 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
4915 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
4916 (do_estimate_edge_growth_1): Break out from ...
4917 (do_estimate_growth) ... here; walk aliases.
4918 (inline_generate_summary): Skip aliases.
4919
4920 2011-06-10 Richard Guenther <rguenther@suse.de>
4921
4922 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
4923 forward when combining, visit inserted stmts when a stmt was changed.
4924
4925 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
4926
4927 * tree.h (error_operand_p): Add.
4928 * dbxout.c (dbxout_type_fields): Use the latter.
4929 * c-decl.c (add_stmt): Likewise.
4930 * gimplify.c (omp_add_variable, omp_notice_variable,
4931 gimplify_scan_omp_clauses): Likewise.
4932
4933 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
4934
4935 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
4936 when a value is actually passed in regs.
4937
4938 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
4939 Laurent Rougé <laurent.rouge@menta.fr>
4940
4941 * doc/invoke.texi (SPARC options): Add -mflat.
4942 * config/sparc/sparc.opt: Likewise.
4943 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
4944 (sparc_flat_expand_prologue): Declare.
4945 (sparc_flat_expand_epilogue): Likewise.
4946 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
4947 (CPP_ENDIAN_SPEC): Replace with...
4948 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
4949 (CPP_SPEC): Adjust to above change.
4950 (EXTRA_SPECS): Likewise.
4951 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
4952 (INCOMING_REGNO): Likewise.
4953 (OUTGOING_REGNO): Likewise.
4954 (LOCAL_REGNO): Likewise.
4955 (SETUP_FRAME_ADDRESSES): Likewise.
4956 (FIXED_REGISTERS): Set 0 for %fp.
4957 (CALL_USED_REGISTERS): Likewise.
4958 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
4959 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
4960 (RETURN_ADDR_REGNUM): Define.
4961 (RETURN_ADDR_RTX): Use it.
4962 (INCOMING_RETURN_ADDR_REGNUM): Define.
4963 (INCOMING_RETURN_ADDR_RTX): Use it.
4964 (DWARF_FRAME_RETURN_COLUMN): Likewise.
4965 (EH_RETURN_REGNUM): Define.
4966 (EH_RETURN_STACKADJ_RTX): Use it.
4967 (EH_RETURN_HANDLER_RTX): Delete.
4968 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
4969 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
4970 Delete.
4971 (struct machine_function): Add frame_size, apparent_frame_size,
4972 frame_base_reg, frame_base_offset, n_global_fp_regs and
4973 save_local_in_regs_p fields.
4974 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
4975 sparc_frame_base_offset, sparc_n_global_fp_regs,
4976 sparc_save_local_in_regs_p): New macros.
4977 (sparc_option_override): Error out if -fcall-saved-REG is specified
4978 for Out registers.
4979 (eligible_for_restore_insn): Fix formatting.
4980 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
4981 (eligible_for_sibcall_delay): Likewise.
4982 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
4983 (sparc_legitimate_address_p): Adjust to above change.
4984 (save_global_or_fp_reg_p): New predicate.
4985 (return_addr_reg_needed_p): Likewise.
4986 (save_local_or_in_reg_p): Likewise.
4987 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
4988 (SORR_SAVE, SORR_RESTORE): Delete.
4989 (sorr_pred_t): New typedef.
4990 (sorr_act_t): New enum.
4991 (save_or_restore_regs): Rename to...
4992 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
4993 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
4994 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
4995 mechanism. Add CFI information for double-word saves in 32-bit mode.
4996 (emit_adjust_base_to_offset): New function extracted from...
4997 (emit_save_or_restore_regs): ...this. Rename the rest to...
4998 (emit_save_or_restore_regs_global_fp_regs): ...this.
4999 (emit_save_or_restore_regs_local_in_regs): New function.
5000 (gen_create_flat_frame_[123]): New functions.
5001 (sparc_expand_prologue): Use SIZE local variable. Adjust.
5002 (sparc_flat_expand_prologue): New function.
5003 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
5004 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
5005 (sparc_flat_expand_epilogue): New function.
5006 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
5007 (output_return): Likewise.
5008 (output_sibcall): Likewise.
5009 (sparc_output_mi_thunk): Likewise.
5010 (sparc_frame_pointer_required): Likewise.
5011 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
5012 function optimization.
5013 * config/sparc/sparc.md (flat): New attribute.
5014 (prologue): Add TARGET_FLAT handling.
5015 (save_register_window): Disable if TARGET_FLAT.
5016 (create_flat_frame_[123]): New patterns.
5017 (epilogue): Add TARGET_FLAT handling.
5018 (sibcall_epilogue): Likewise.
5019 (eh_return): New expander.
5020 (eh_return_internal): New insn and splitter.
5021 (return_internal): Add TARGET_FLAT handling.
5022 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
5023 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
5024 (nonlocal_goto): Add TARGET_FLAT handling.
5025 * config/sparc/t-elf: Add -mflat multilib.
5026 * config/sparc/t-leon: Likewise.
5027
5028 2011-06-10 Jan Hubicka <jh@suse.cz>
5029
5030 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
5031 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
5032 (self_recursive_p): Use cgraph_function_node.
5033 (propagate_pure_const): Likewise.
5034 (propagate_nothrow): Likewise.
5035 * ipa-reference.c (ipa_reference_get_not_read_global): Use
5036 cgraph_function_node.
5037 (propagate_bits): Likewise.
5038 (propagate): Likewise.
5039
5040 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5041 Richard Earnshaw <rearnsha@arm.com>
5042
5043 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
5044 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
5045 (*thumb2_movdi_vfp): Delete.
5046 (*arm_movdi_vfp_cortexa8): Delete.
5047 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
5048 (*movdi_vfp_cortexa8): Likewise.
5049
5050 2011-06-10 Richard Guenther <rguenther@suse.de>
5051
5052 * stor-layout.c (initialize_sizetypes): Give names to all
5053 sizetype kinds.
5054
5055 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
5056
5057 PR tree-optimization/49318
5058 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
5059 irrelevant pattern statements.
5060
5061 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
5062
5063 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
5064
5065 PR bootstrap/49354
5066 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
5067 to last assignment.
5068
5069 2011-06-09 Jan Hubicka <jh@suse.cz>
5070
5071 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
5072 do not recompute reachable flag.
5073 (cgraph_finalize_function, cgraph_analyze_functions): Set
5074 redefined_extern_inline here.
5075
5076 2011-06-09 Jan Hubicka <jh@suse.cz>
5077
5078 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
5079 (cgraph_only_called_directly_p): ... this one; bring offline.
5080 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5081 varpool_used_from_object_file_p): Drop names from the declaratoin.
5082 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
5083 collect_callers_of_node): New.
5084 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
5085 (cgraph_edge_recursive_p): Use cgraph_function_node.
5086 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
5087 (cgraph_node_cannot_be_local_p_1): Break out from ...
5088 (cgraph_node_can_be_local_p): ... here; walk aliases.
5089 (cgraph_for_node_thunks_and_aliases): New function.
5090 (cgraph_for_node_and_aliases): New function.
5091 (cgraph_make_node_local_1): Break out from ...
5092 (cgraph_make_node_local) ... here; use
5093 cgraph_for_node_thunks_and_aliases.
5094 (cgraph_set_nothrow_flag_1): Break out from ...
5095 (cgraph_set_nothrow_flag) ... here;
5096 use cgraph_for_node_thunks_and_aliases.
5097 (cgraph_set_const_flag_1): Break out from ...
5098 (cgraph_set_const_flag) ... here;
5099 use cgraph_for_node_thunks_and_aliases.
5100 (cgraph_set_pure_flag_1): Break out from ...
5101 (cgraph_set_pure_flag) ... here;
5102 use cgraph_for_node_thunks_and_aliases.
5103 (cgraph_propagate_frequency_1): Break out from ...
5104 (cgraph_propagate_frequency) ... here; use
5105 cgraph_for_node_thunks_and_aliases.
5106 (cgraph_used_from_object_file_p): Do not care about aliases.
5107 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
5108 New functions.
5109 (collect_callers_of_node_1, collect_callers_of_node): New functions.
5110
5111 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
5112
5113 PR rtl-optimization/49154
5114 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
5115 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
5116 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
5117 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
5118 * config/cris/cris.h (cris_register_move_cost): Remove
5119 !TARGET_V32 code. Tweak comments.
5120
5121 2011-06-09 Jan Hubicka <jh@suse.cz>
5122
5123 * cgraphbuild.c (record_eh_tables): Mark personality function as having
5124 address taken.
5125
5126 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
5127
5128 PR rtl-optimization/49154
5129 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
5130 is a matching slot in the hashtable, assign it to classes_ptr.
5131
5132 PR rtl-optimization/49154
5133 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
5134 register classes.
5135 * doc/tm.texi: Regenerate.
5136
5137 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
5138
5139 PR target/49307
5140 * config/sh/sh.md (UNSPEC_CHKADD): New.
5141 (chk_guard_add): New define_insn_and_split.
5142 (symGOT_load): Use chk_guard_add instead of blockage.
5143
5144 2011-06-09 Kai Tietz <ktietz@redhat.com>
5145
5146 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
5147
5148 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
5149
5150 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
5151
5152 2011-06-09 Wei Guozhi <carrot@google.com>
5153
5154 PR target/46975
5155 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
5156 (peephole2 for conditional move): Generate 16 bit instructions.
5157
5158 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
5159
5160 * config/i386/i386.md (*movdi_internal_rex64): Merge
5161 alternatives 6 and 8.
5162
5163 2011-06-09 David Li <davidxl@google.com>
5164
5165 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5166 * passes.c (passr_eq): New function.
5167 (create_pass_tab): New function.
5168 (pass_traverse): New function.
5169 (dump_one_pass): New function.
5170 (dump_pass_list): New function.
5171 (dump_passes): New function.
5172
5173 2011-06-09 David Li <davidxl@google.com>
5174
5175 * tree-complex.c (tree_lower_complex): Gate cleanup.
5176 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
5177 (execute_optimize_stdarg): Ditto.
5178 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
5179 (execute_cleanup_eh_1): Ditto.
5180 (execute_cleanup_eh): Ditto.
5181 * gcse.c (gate_rtl_pre): Ditto.
5182 (execute_rtl_pre): Ditto.
5183 * except.c (finish_eh_generation): Ditto.
5184 (convert_to_eh_region_ranges): Ditto.
5185 * cprop.c (one_cprop_pass): Ditto.
5186
5187 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
5188
5189 PR target/48673
5190 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
5191 in all basic blocks.
5192
5193 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5194
5195 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
5196 (HAVE_ENABLE_EXECUTE_STACK): Define.
5197 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
5198 (HAVE_ENABLE_EXECUTE_STACK): Define.
5199 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
5200 (HAVE_ENABLE_EXECUTE_STACK): Define.
5201 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
5202 (ENABLE_EXECUTE_STACK): Remove.
5203 (HAVE_ENABLE_EXECUTE_STACK): Define.
5204 [IN_LIBGCC2]: Don't include <windows.h>.
5205 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5206 (HAVE_ENABLE_EXECUTE_STACK): Define.
5207 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
5208 (HAVE_ENABLE_EXECUTE_STACK): Define.
5209 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
5210 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
5211 (HAVE_ENABLE_EXECUTE_STACK): Define.
5212 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
5213 (HAVE_ENABLE_EXECUTE_STACK): Define.
5214 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
5215 (HAVE_ENABLE_EXECUTE_STACK): Define.
5216 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5217 (HAVE_ENABLE_EXECUTE_STACK): Define.
5218 * config/alpha/alpha.c (alpha_trampoline_init): Test
5219 HAVE_ENABLE_EXECUTE_STACK.
5220 * config/i386/i386.c (ix86_trampoline_init): Likewise.
5221 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5222 (sparc64_initialize_trampoline): Likewise.
5223 * libgcc2.c [L_enable_execute_stack]: Remove.
5224 * system.h (ENABLE_EXECUTE_STACK): Poison.
5225 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
5226 * doc/tm.texi: Regenerate.
5227 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
5228
5229 2011-06-09 Jakub Jelinek <jakub@redhat.com>
5230
5231 PR middle-end/49308
5232 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
5233 variable. After resetting and rescanning insn continue with previous
5234 statement.
5235
5236 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5237
5238 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
5239 (gcc_cv_ld_hidden): Likewise.
5240 * configure: Regenerate.
5241 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
5242 (ix86_stack_protect_fail): Mark unused.
5243 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
5244 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
5245 [TARGET_MACHO]: Don't define.
5246 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
5247 (TARGET_STACK_PROTECT_FAIL): Likewise.
5248 (rs6000_stack_protect_fail): Mark unused.
5249 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
5250 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
5251
5252 2011-06-08 Andi Kleen <ak@linux.intel.com>
5253
5254 * varasm.c (get_section): Print location of other conflict
5255 for section conflicts.
5256
5257 2011-06-08 Andi Kleen <ak@linux.intel.com>
5258
5259 * config/i386/driver-i386.c (host_detect_local_cpu):
5260 Add model 0x2d Intel CPU.
5261
5262 2011-06-08 Andi Kleen <ak@linux.intel.com>
5263
5264 * reginfo.c (global_regs_decl): Add.
5265 (globalize_reg): Add decl parameter. Compute location. Pass location
5266 to warnings and add inform. Store decl in global_regs_decl.
5267 * rtl.h (globalize_reg): Update prototype.
5268 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
5269
5270 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
5271
5272 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
5273
5274 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
5275
5276 PR target/49305
5277 * config/sh/predicates.md (general_movsrc_operand): Check
5278 mode for memory with indexed address for QI and HImode.
5279 (general_movdst_operand): Likewise.
5280
5281 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
5282
5283 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
5284
5285 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
5286
5287 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
5288 (num_ssa_operands): Likewise.
5289 (op_iter_init_phiuse): Forward-declare.
5290 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
5291
5292 2011-06-08 Nick Clifton <nickc@redhat.com>
5293
5294 * doc/invoke.texi (ARM Options): Update description of
5295 -mthumb-interwork.
5296
5297 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
5298
5299 * config/i386/driver-i386.c (host_detect_local_cpu): Support
5300 unknown Intel family 0x6 CPUs.
5301
5302 2011-06-08 Martin Jambor <mjambor@suse.cz>
5303
5304 * tree-sra.c (mark_rw_status): Removed.
5305 (analyze_access_subtree): New parameter parent instead of
5306 mark_read and mark_write, propagate from that.
5307
5308 2011-06-08 Julian Brown <julian@codesourcery.com>
5309
5310 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
5311 for double-precision helper functions in hard-float mode if only
5312 single-precision arithmetic is supported in hardware.
5313
5314 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
5315
5316 PR rtl-optimization/49303
5317 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
5318 code_motion_path_driver returned 0 or 1.
5319 (sel_region_finish): Clear h_d_i_d.
5320
5321 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
5322
5323 * config/sh/sh.c (prepare_move_operands): Set pic register
5324 appropriately for global and local dynamic tls models even
5325 if flag_pic is unset.
5326
5327 2011-06-07 Jason Merrill <jason@redhat.com>
5328
5329 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
5330
5331 2011-06-07 Xinliang David Li <davidxl@google.com>
5332 * passes.c (enable_disable_pass): Handle assembler name.
5333 (is_pass_explicitly_enabled_or_disabled): Ditto.
5334
5335 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5336
5337 PR tree-optimization/48497
5338 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
5339
5340 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5341
5342 PR tree-optimization/46728
5343 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
5344 to use gimple_val_nonnegative_real_p.
5345 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
5346 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
5347
5348 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
5349
5350 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
5351
5352 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
5353
5354 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
5355 constant vectors.
5356
5357 2011-06-07 Richard Guenther <rguenther@suse.de>
5358
5359 * stor-layout.c (initialize_sizetypes): Initialize all
5360 sizetypes based on target definitions.
5361 (set_sizetype): Remove.
5362 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
5363 * tree.h (set_sizetype): Remove.
5364
5365 2011-06-07 Nick Clifton <nickc@redhat.com>
5366
5367 * config.gcc: Unify V850 architecture options and add support for
5368 newer V850 architectures.
5369 * config/v850/t-v850e: Delete.
5370
5371 2011-06-07 Richard Guenther <rguenther@suse.de>
5372
5373 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
5374 Call set_sizetype from here.
5375
5376 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
5377
5378 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
5379 (*maddhisi4tb, *maddhisi4tt): New define_insns.
5380
5381 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
5382 Andrew Stubbs <ams@codesourcery.com>
5383
5384 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
5385 multiplies.
5386 * doc/md.texi (Canonicalization of Instructions): Document widening
5387 multiply canonicalization.
5388
5389 2011-06-07 Jakub Jelinek <jakub@redhat.com>
5390
5391 PR gcov-profile/49299
5392 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
5393
5394 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
5395
5396 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
5397 a pointer.
5398 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
5399 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
5400 vect_recog_pow_pattern): Likewise.
5401 (vect_pattern_recog_1): Remove declaration.
5402 (widened_name_p): Remove declaration. Add new argument to specify
5403 whether to check that both types are either signed or unsigned.
5404 (vect_recog_widen_mult_pattern): Update documentation. Handle
5405 unsigned patterns and multiplication by constants.
5406 (vect_pattern_recog_1): Update vect_recog_func references. Use
5407 statement information from the statement returned from pattern
5408 detection functions.
5409 (vect_pattern_recog): Update vect_recog_func reference.
5410 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
5411 multiplication by a constant use the type of the other operand.
5412
5413 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
5414
5415 PR rtl-optimization/49145
5416 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
5417
5418 2011-06-06 Jakub Jelinek <jakub@redhat.com>
5419
5420 PR debug/49262
5421 * dwarf2out.c (native_encode_initializer): Decrement count in each
5422 iteration.
5423
5424 PR debug/49294
5425 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
5426 non-MODE_INT modes.
5427
5428 PR c++/49264
5429 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
5430 if stmt folded into nothing.
5431 * tree-inline.c (fold_marked_statements): If a builtin at the end of
5432 a bb folded into nothing, just update cgraph edges and move to next bb.
5433 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
5434 to be NULL. Don't compute count and frequency if new_call is NULL.
5435
5436 2011-06-04 Diego Novillo <dnovillo@google.com>
5437
5438 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
5439 (cgraph.o): Likewise.
5440 (cgraphunit.o): Likewise.
5441 * cgraphunit.c: Include lto-streamer.h
5442 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
5443 if LTO is enabled.
5444 * lto-streamer-in.c (unpack_value_fields): Call
5445 streamer_hooks.unpack_value_fields if set.
5446 (lto_materialize_tree): For unhandled nodes, first try to
5447 call lto_streamer_hooks.alloc_tree, if it exists.
5448 (lto_input_ts_decl_common_tree_pointers): Move reading of
5449 DECL_INITIAL to lto_streamer_read_tree.
5450 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
5451 (lto_streamer_read_tree): New.
5452 (lto_reader_init): Rename from lto_init_reader.
5453 Move initialization code to lto/lto.c.
5454 * lto-streamer-out.c (pack_value_fields): Call
5455 streamer_hooks.pack_value_fields if set.
5456 (lto_output_tree_ref): For tree nodes that are not normally indexable,
5457 call streamer_hooks.indexable_with_decls_p before giving up.
5458 (lto_output_ts_decl_common_tree_pointers): Move handling
5459 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
5460 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
5461 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
5462 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
5463 (lto_streamer_write_tree): New.
5464 (lto_output): Call lto_streamer_init directly.
5465 (lto_writer_init): Remove.
5466 * lto-streamer.c (streamer_hooks): New.
5467 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
5468 instead of lto_preload_common_nodes.
5469 (lto_is_streamable): Move from lto-streamer.h
5470 (lto_streamer_hooks_init): New.
5471 (streamer_hooks): New.
5472 (streamer_hooks_init): New.
5473 * lto-streamer.h (struct output_block): Forward declare.
5474 (struct lto_input_block): Likewise.
5475 (struct data_in): Likewise.
5476 (struct bitpack_d): Likewise.
5477 (struct streamer_hooks): Declare.
5478 (streamer_hooks): Declare.
5479 (lto_streamer_hooks_init): Declare.
5480 (lto_streamer_write_tree): Declare.
5481 (lto_streamer_read_tree): Declare.
5482 (streamer_hooks_init): Declare.
5483 (lto_is_streamable): Move to lto-streamer.c
5484
5485 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5486
5487 * longlong.h (smul_ppmm): The resulting register pair contains the
5488 higher order word first.
5489
5490 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5491
5492 PR tree-optimization/46728
5493 * builtins.c (powi_table): Remove.
5494 (powi_lookup_cost): Remove.
5495 (powi_cost): Remove.
5496 (expand_powi_1): Remove.
5497 (expand_powi): Remove.
5498 (expand_builtin_pow_root): Remove.
5499 (expand_builtin_pow): Remove.
5500 (expand_builtin_powi): Eliminate handling of constant exponent.
5501 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
5502
5503 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
5504
5505 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
5506
5507 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
5508
5509 * dce.c (reset_unmarked_insns_debug_uses): New.
5510 (delete_unmarked_insns): Skip debug insns.
5511 (prescan_insns_for_dce): Likewise.
5512 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
5513 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
5514 active reg can be found.
5515 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
5516 (convert_regs_1): Use it.
5517
5518 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
5519
5520 * tree-pretty-print.c (dump_function_header): Add flags.
5521 Don't dump decl_uid with nouid.
5522 * tree-pretty-print.h (dump_function_header): Adjust.
5523 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
5524 * passes.c (pass_init_dump_file): Pass dump_flags on.
5525 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
5526
5527 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
5528
5529 PR bootstrap/49270
5530 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
5531
5532 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
5533
5534 PR tree-optimization/49243
5535 * calls.c (setjmp_call_p): Also check if fndecl has the
5536 returns_twice attribute.
5537
5538 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5539
5540 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
5541 -ffast-math etc.
5542
5543 2011-06-06 Richard Henderson <rth@redhat.com>
5544 Georg-Johann Lay <avr@gjlay.de>
5545
5546 PR target/42210
5547 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
5548 New predicates.
5549 * config/avr/avr.md ("insv"): New insn expander.
5550 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
5551 "*insv.not.io", "*insv.reg"): New insns.
5552
5553 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
5554
5555 PR target/49285
5556 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
5557 to nonimmediate_operand from memory_operand for the operand that is to
5558 be forced to memory by the expander. Lose the constraints.
5559
5560 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
5561
5562 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
5563 EH return when delayed branches are disabled.
5564
5565 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
5566
5567 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
5568 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
5569 calculation.
5570 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
5571 Simplify MODE_V1DF and MODE_V2SF handling.
5572 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
5573 Simplify MODE_SF handling.
5574
5575 2011-06-04 Jan Hubicka <jh@suse.cz>
5576
5577 PR tree-optimization/48893
5578 PR tree-optimization/49091
5579 PR tree-optimization/49179
5580 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
5581 Bounds check.
5582
5583 2011-06-04 Jan Hubicka <jh@suse.cz>
5584
5585 PR lto/48954
5586 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
5587 bitmaps.
5588
5589 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
5590
5591 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
5592
5593 2011-06-04 Jakub Jelinek <jakub@redhat.com>
5594
5595 PR target/49281
5596 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
5597 to be strictly smaller than 1 << shiftcount.
5598
5599 2011-06-04 Jan Hubicka <jh@suse.cz>
5600
5601 PR tree-optimize/48929
5602 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
5603 of empty predicate.
5604
5605 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
5606
5607 PR debug/48333
5608 * calls.c (emit_call_1): Prefer the __builtin declaration of
5609 builtin functions.
5610
5611 2011-06-03 Diego Novillo <dnovillo@google.com>
5612
5613 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
5614 (lto_input_tree_pointers): Likewise.
5615 * lto-streamer-out.c (pack_value_fields): Likewise.
5616 (lto_output_tree_pointers): Likewise.
5617 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
5618 and OPTIMIZATION_NODE.
5619
5620 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5621
5622 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
5623 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
5624 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
5625 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
5626 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
5627 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
5628 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
5629 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
5630 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
5631 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
5632 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
5633 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
5634 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
5635 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
5636 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
5637 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
5638 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
5639 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
5640 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
5641 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
5642 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
5643 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
5644 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
5645 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
5646 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
5647 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
5648 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
5649 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
5650 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
5651 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
5652 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
5653 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
5654 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
5655 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
5656 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
5657 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
5658 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
5659 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
5660 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
5661 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
5662 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
5663 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
5664 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
5665 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
5666 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
5667 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
5668 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
5669 * system.h (MD_UNWIND_SUPPORT): Poison.
5670 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
5671 * doc/tm.texi: Regenerate.
5672 * unwind-dw2.c: Include md-unwind-support.h instead of
5673 MD_UNWIND_SUPPORT.
5674 * config/ia64/unwind-ia64.c: Likewise.
5675 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
5676
5677 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
5678
5679 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
5680
5681 2011-06-03 Richard Henderson <rth@redhat.com>
5682 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5683
5684 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
5685 (sigill_hdlr): Correct insn, insn size.
5686 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
5687
5688 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5689
5690 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
5691 t-slibgcc-dummy.
5692 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
5693 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
5694 * config/mips/t-iris: Remove.
5695 * config/mips/t-irix6: New file.
5696 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
5697
5698 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5699
5700 * Makefile.in (LIB2ADDEHDEP): Remove.
5701 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
5702 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
5703 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
5704 * config/t-darwin (LIB2ADDEHDEP): Remove.
5705 * config/t-freebsd (LIB2ADDEHDEP): Remove.
5706 * config/t-linux (LIB2ADDEHDEP): Remove.
5707
5708 2011-06-03 Diego Novillo <dnovillo@google.com>
5709
5710 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
5711 (lto_register_var_decl_in_symtab): Likewise.
5712 (lto_register_function_decl_in_symtab): Likewise.
5713 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
5714 logic to uniquify_nodes.
5715
5716 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5717
5718 * config/alpha/t-osf5: Remove.
5719 * config/alpha/t-osf-pthread: Remove.
5720 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
5721 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
5722
5723 2011-06-03 Julian Brown <julian@codesourcery.com>
5724
5725 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
5726 (strongarm1110): Use strongarm tuning.
5727 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
5728 * config/arm/arm.c (arm_strongarm_tune): New.
5729 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
5730 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
5731 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
5732 setting, using previous defaults or 1 for Cortex-A5.
5733 (arm_option_override): Set max_insns_skipped from current tuning.
5734
5735 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
5736
5737 * doc/install.texi (Options specification): Document --with-specs.
5738
5739 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5740
5741 * config/arm/neon.md (orndi3_neon): Actually split it.
5742
5743 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
5744
5745 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
5746 * var-tracking.c (reverse_op): Limite recurse depth to 5.
5747
5748 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
5749
5750 PR debug/47590
5751 * target.def (delay_sched2, delay_vartrack): New.
5752 * doc/tm.texi.in: Update.
5753 * doc/tm.texi: Rebuild.
5754 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
5755 * var-tracking.c (gate_handle_var_tracking): Likewise.
5756 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
5757 (bfin_flag_var_tracking): Drop.
5758 (output_file_start): Don't save and override flag_var_tracking.
5759 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
5760 (bfin_reorg): Test original variables.
5761 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5762 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
5763 (ia64_flag_var_tracking): Drop.
5764 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5765 (ia64_file_start): Don't save and override flag_var_tracking.
5766 (ia64_override_options_after_change): Ditto
5767 flag_schedule_insns_after_reload.
5768 (ia64_reorg): Test original variables.
5769 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
5770 (picochip_flag_var_tracking): Drop.
5771 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5772 (picochip_option_override): Don't save and override
5773 flag_schedule_insns_after_reload.
5774 (picochip_asm_file_start): Ditto flag_var_tracking.
5775 (picochip_reorg): Test original variables.
5776 * config/spu/spu.c (spu_flag_var_tracking): Drop.
5777 (TARGET_DELAY_VARTRACK): Define.
5778 (spu_var_tracking): New.
5779 (spu_machine_dependent_reorg): Call it.
5780 (asm_file_start): Don't save and override flag_var_tracking.
5781
5782 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
5783
5784 PR target/49163
5785 * config/sh/predicates.md (general_movsrc_operand): Return 0
5786 for memory and memory subreg of which address is an invalid
5787 indexed address for QI and HImode.
5788 (general_movdst_operand): Likewise.
5789
5790 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
5791
5792 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
5793 edges only, when there is a non-local label in the function.
5794 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
5795
5796 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
5797
5798 * config/i386/constraints.md (Y3): New register constraint.
5799 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
5800 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
5801 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
5802 *sse2_interleave_lowv2df.
5803
5804 2011-06-02 Julian Brown <julian@codesourcery.com>
5805
5806 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
5807 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
5808 (arm_cortex_a5_tune): New.
5809
5810 2011-06-02 Julian Brown <julian@codesourcery.com>
5811
5812 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
5813 * config/arm/arm.c (arm_default_branch_cost): New.
5814 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
5815 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
5816 (arm_fa726_tune): Set branch_cost field using
5817 arm_default_branch_cost.
5818 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
5819 current_tune structure.
5820 * dojump.c (tm_p.h): Include file.
5821
5822 2011-06-02 Julian Brown <julian@codesourcery.com>
5823
5824 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
5825 tuning.
5826 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
5827 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
5828 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
5829 field.
5830 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
5831 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
5832 (arm_fa726te_tune): Add prefer_constant_pool setting.
5833 (arm_v6t2_tune, arm_cortex_tune): New.
5834 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
5835 prefer_constant_pool setting.
5836
5837 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
5838
5839 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
5840 switch statement.
5841 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
5842 (*movdf_internal) <case 6,7,8>: Ditto.
5843
5844 * config/i386/constraints.md (Y4): New register constraint.
5845 * config/i386/sse.md (vec_set<mode>_0): Merge with
5846 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
5847 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
5848 *vec_extractv2di_1_sse.
5849 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
5850 and *vec_concatv2di_rex64_sse.
5851
5852 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
5853
5854 PR target/48807
5855 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
5856 of cgraph_local_info for null before attempting to use it.
5857
5858 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
5859
5860 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
5861 (current_function_dynamic_alloc_count): Delete.
5862 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
5863 (expand_builtin_nonlocal_goto): Remove obsolete comment.
5864 (expand_builtin_update_setjmp_buf): Remove dead code.
5865 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
5866 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
5867 support.
5868 * function.c (instantiate_virtual_regs): Likewise.
5869 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
5870 for a block with a single abnormal incoming edge.
5871 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
5872 (SETJMP_VIA_SAVE_AREA): Delete.
5873 * config/sparc/sparc-protos.h (load_got_register): Declare.
5874 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
5875 (load_got_register): Make global.
5876 (sparc_frame_pointer_required): Add 'static'.
5877 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
5878 (sparc_builtin_setjmp_frame_value): New function.
5879 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
5880 (save_stack_nonlocal): New expander.
5881 (restore_stack_nonlocal): Likewise.
5882 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
5883 (nonlocal_goto_internal): New insn.
5884 (goto_handler_and_restore): Delete.
5885 (builtin_setjmp_setup): Likewise.
5886 (do_builtin_setjmp_setup): Likewise.
5887 (setjmp): Likewise.
5888 (builtin_setjmp_receiver): New expander.
5889
5890 2011-06-01 David Li <davidxl@google.com>
5891
5892 PR middle-end/49261
5893 * tree-pretty-print.c (dump_function_header): Format cleanup.
5894
5895 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
5896
5897 PR target/49238
5898 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
5899 needed when original operands are used for msw_skip comparison.
5900
5901 2011-06-01 Jakub Jelinek <jakub@redhat.com>
5902
5903 PR debug/49250
5904 * var-tracking.c (add_uses, add_stores): Don't call
5905 cselib_subst_to_values on ENTRY_VALUE.
5906
5907 2011-06-01 Diego Novillo <dnovillo@google.com>
5908
5909 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
5910 output_record_start with LTO_null instead of output_zero.
5911 (lto_output_ts_binfo_tree_pointers): Likewise.
5912 (lto_output_tree): Likewise.
5913 (output_eh_try_list): Likewise.
5914 (output_eh_region): Likewise.
5915 (output_eh_lp): Likewise.
5916 (output_eh_regions): Likewise.
5917 (output_bb): Likewise.
5918 (output_function): Likewise.
5919 (output_unreferenced_globals): Likewise.
5920 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
5921 instead of NUM_TREE_CODES.
5922 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
5923 (lto_output_int_in_range): Change << to >> when shifting VAL.
5924
5925 2011-06-01 Diego Novillo <dnovillo@google.com>
5926
5927 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
5928 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
5929
5930 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5931
5932 PR target/45074
5933 * optabs.h (valid_multiword_target_p): Declare.
5934 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
5935 doing multi-word operations.
5936 * optabs.c (expand_binop): Likewise.
5937 (expand_doubleword_bswap): Likewise.
5938 (expand_absneg_bit): Likewise.
5939 (expand_unop): Likewise.
5940 (expand_copysign_bit): Likewise.
5941 (multiword_target_p): New function.
5942
5943 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
5944
5945 PR rtl-optimization/48830
5946 PR rtl-optimization/48808
5947 PR rtl-optimization/48792
5948 * reload.c (push_reload): Check contains_reg_of_mode.
5949 * reload1.c (strip_paradoxical_subreg): New function.
5950 (gen_reload_chain_without_interm_reg_p): Use it to handle
5951 paradoxical subregs.
5952 (emit_output_reload_insns, gen_reload): Likewise.
5953
5954 2011-06-01 David Li <davidxl@google.com>
5955
5956 * predict.c : Change pass name
5957 * ipa.c: Ditto.
5958 * dce.c: Ditto.
5959 * tree-profile.c: Ditto.
5960 * except.c: Ditto.
5961
5962 2011-06-01 David Li <davidxl@google.com>
5963
5964 * tree-pretty-print.c (dump_function_header): New function.
5965 * final.c (rest_of_clean_state): Use header dumper.
5966 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
5967 * passes.c (pass_init_dump_file): Use header dumper.
5968
5969 2011-06-01 Jakub Jelinek <jakub@redhat.com>
5970
5971 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
5972 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
5973 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
5974 New functions.
5975 (mem_loc_descriptor): Use them.
5976
5977 * var-tracking.c (create_entry_value): New function.
5978 (vt_add_function_parameter): Use it.
5979
5980 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5981
5982 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
5983 Include <signal.h>, <ucontext.h>.
5984 (sigill_caught): Define.
5985 (sigill_hdlr): New function.
5986 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
5987 insns can be executed.
5988 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
5989 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
5990
5991 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5992
5993 * config/t-slibgcc-darwin: Move to ...
5994 * config/t-slibgcc-dummy: ... this. Clarify comments.
5995 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
5996 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
5997 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
5998 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
5999 Remove i386/t-crtstuff from tmake_file.
6000 (i[34567]86-*-solaris2*): Remove t-svr4,
6001 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
6002 t-slibgcc-dummy.
6003 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
6004 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
6005 sparc/t-crtfm from tmake_file.
6006 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
6007 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
6008 Remove extra_parts.
6009 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
6010 * config/i386/t-nwld (SHLIB_LINK): Remove.
6011 * config/i386/t-rtems-i386: Rename to ...
6012 * config/i386/t-rtems: ... this.
6013 ($(T)crti.o, $(T)crtn.o): Remove.
6014 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
6015 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
6016 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
6017 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
6018 EXTRA_MULTILIB_PARTS): Remove.
6019 * config/sparc/t-sol2-64: Likewise.
6020 * config/sparc/t-sol2: Remove.
6021 * config/sparc/t-crtin: Remove.
6022 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
6023 * config/i386/gmon-sol2.c: Remove.
6024 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
6025 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
6026 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
6027 * config/i386/sol2-gc1.asm: Remove.
6028 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
6029 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
6030 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
6031 * config/t-slibgcc-sld: Remove.
6032
6033 2011-06-01 Jakub Jelinek <jakub@redhat.com>
6034
6035 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
6036 base_type_for_mode with op_mode instead of mode.
6037
6038 2011-06-01 Paul Brook <paul@cpodesourcery.com>
6039
6040 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
6041 Cortex-A15.
6042 * config/arm/arm-tune.md: Regenerate.
6043 * config/arm/arm-tables.opt: Regenerate.
6044 * config/arm/arm.c (FL_DIV): Rename...
6045 (FL_THUMB_DIV): ... to this.
6046 (FL_ARM_DIV): Define.
6047 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
6048 (arm_arch_hwdiv): Remove.
6049 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
6050 (arm_issue_rate): Add cortexr5.
6051 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
6052 __ARM_ARCH_EXT_IDIV__.
6053 (TARGET_IDIV): Define.
6054 (arm_arch_hwdiv): Remove.
6055 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
6056 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
6057 (divsi3, udivsi3): New patterns.
6058 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
6059 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
6060
6061 2011-06-01 Martin Jambor <mjambor@suse.cz>
6062
6063 * ipa-utils.c (ipa_dfs_info): New field scc_no.
6064 * ipa-utils.c (searchc): Set scc_no.
6065
6066 2011-06-01 Martin Jambor <mjambor@suse.cz>
6067
6068 * ipa-utils.c (searchc_env): New field allow_overwritable.
6069 (searchc): do not ignore edges to overwritable nodes if indicated
6070 by env->allow_overwritable.
6071 (ipa_reduced_postorder): Set env.allow_overwritable.
6072
6073 2011-06-01 Richard Guenther <rguenther@suse.de>
6074
6075 * tree.c (free_lang_data): Do not reset boolean_type_node nor
6076 char_type_node.
6077 * lto-streamer.c (lto_record_common_node): Take node pointer,
6078 do not register types.
6079 (lto_preload_common_nodes): Explicitly skip preloading nodes
6080 that differ between frontends.
6081
6082 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
6083
6084 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
6085 NON_FLOAT_REGS.
6086
6087 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
6088
6089 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
6090 parameter value for dump. Dump cost on outermost call only.
6091 (rs6000_memory_move_cost): Dump cost on outermost call only.
6092
6093 2011-05-31 Jakub Jelinek <jakub@redhat.com>
6094
6095 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
6096 DW_OP_GNU_convert ops.
6097
6098 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
6099 cselib_preserve_constants.
6100 (cselib_lookup_1): If cselib_preserve_constants,
6101 a new VALUE is being created for REG and there is a VALUE for the
6102 same register in wider mode, add another loc with lowpart SUBREG of
6103 the wider VALUE.
6104 (cselib_subst_to_values): Handle ENTRY_VALUE.
6105 * var-tracking.c (replace_expr_with_values): Return NULL for
6106 ENTRY_VALUE too.
6107 * dwarf2out.c (convert_descriptor_to_signed): New function.
6108 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
6109 instead of two shifts.
6110 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
6111 the right mode if needed.
6112 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
6113 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
6114 convert_descriptor_to_signed.
6115 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
6116 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
6117
6118 PR target/48688
6119 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
6120
6121 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
6122
6123 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
6124 of X87MODEI12 and SWI48x instead of SSEMODEI24.
6125 (SWI248x): New mode iterator, rename from X87MODEI.
6126 (X87MODEI): Remove mode iterator.
6127 (X87MODEI12): Ditto.
6128 (SSEMODEI24): Ditto.
6129
6130 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6131
6132 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
6133 * doc/invoke.texi: Document max-vartrack-expr-depth.
6134 * var-tracking.c (EXPR_DEPTH): New.
6135 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
6136
6137 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6138
6139 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
6140 * config/i386/sse.md: Add n to negated FMA pattern names.
6141
6142 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6143
6144 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
6145
6146 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6147
6148 * gengtype-state.c (read_state_params_structs): Initialize previous.
6149
6150 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
6151
6152 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
6153 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
6154
6155 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
6156
6157 * config/i386/i386.md (*movtf_internal): Avoid allocating general
6158 registers. Penalize F*r->o alternative to prevent partial memory
6159 stalls. Slightly penalize *roF->*r alternative. Generate SSE
6160 CONST_DOUBLE immediates when optimizing function for size. Do not move
6161 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6162 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
6163 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
6164 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
6165 alternatives.
6166 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
6167
6168 (fp_register_operand splitters): Use fp_register_operand
6169 constraint. Do not use FP_REG_P in insn condition.
6170 (any_fp_register_operand splitters): Use any_fp_register_operand
6171 constraint. Do not use ANY_FP_REG_P in insn condition.
6172
6173 2011-05-31 Jan Hubicka <jh@suse.cz>
6174
6175 * cgraph.h (cgraph_inline_failed_t): Give enum a name
6176 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
6177 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
6178 (lto_output_edge): Use output_enum and var_len_unsigned.
6179 (lto_output_varpool_node): Likewise.
6180 (input_overwrite_node): Do not take resolution parameter;
6181 extract it from a bitpack.
6182 (input_node): Do not read resolution; use input_enum and
6183 var_len_unsigned.
6184 (input_varpool_node): Likewise.
6185 (input_edge): Likewise.
6186 (input_cgraph_1): Likewise.
6187
6188 2011-05-31 Richard Guenther <rguenther@suse.de>
6189
6190 * gimple.c (gimple_register_canonical_type): Do not register
6191 any types via gimple_register_type.
6192
6193 2011-05-31 Jan Hubicka <jh@suse.cz>
6194
6195 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
6196 of thunks.
6197
6198 2011-05-31 Jakub Jelinek <jakub@redhat.com>
6199
6200 PR rtl-optimization/49235
6201 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
6202 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
6203
6204 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
6205
6206 PR tree-optimization/49093
6207 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
6208 data references.
6209
6210 2011-05-31 Dodji Seketeli <dodji@redhat.com>
6211
6212 PR debug/49047
6213 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6214 for concrete functions containing the code of cloned functions.
6215
6216 2011-05-31 Richard Guenther <rguenther@suse.de>
6217
6218 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
6219 to ...
6220 (forward_propagate_into_comparison_1): ... this.
6221 (forward_propagate_comparison): Rename to ...
6222 (forward_propagate_into_comparison): ... this. Split out
6223 real forward propagation code to ...
6224 (forward_propagate_comparison): ... this.
6225 (forward_propagate_into_gimple_cond): Remove looping.
6226 (forward_propagate_into_cond): Likewise.
6227 (simplify_not_neg_expr): Return whether we have done something.
6228 (simplify_gimple_switch): Likewise.
6229 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
6230 (ssa_forward_propagate_and_combine): ... this. Re-structure
6231 to do a forward forward-propagation walk on BBs and a backward
6232 stmt combining walk on BBs. Consistently re-scan changed statements.
6233 (pass_forwprop): Adjust.
6234
6235 2011-05-30 Ian Lance Taylor <iant@google.com>
6236
6237 * godump.c (go_format_type): Correct length of name added to
6238 obstack for anonymous field.
6239
6240 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
6241
6242 PR target/49186
6243 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
6244 part of the second operand is 0.
6245
6246 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
6247
6248 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
6249 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
6250 to memory for !TARGET_MEMORY_MISMATCH_STALL.
6251 (*movdf_internal_rex64): Do not penalize F->r alternative.
6252 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
6253 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
6254 when optimizing function for size. Do not move CONST_DOUBLEs
6255 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6256 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
6257 SUBREGs. Do not check for MEM_P operands in the insn condition,
6258 check for ANY_FP_REGNO_P instead.
6259 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
6260 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
6261 function for speed.
6262 * config/i386/i386.c (ix86_option_override_internal): Do not
6263 set TARGET_INTEGER_DFMODE_MOVES here.
6264
6265 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
6266
6267 PR target/49168
6268 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
6269
6270 2011-05-30 Jakub Jelinek <jakub@redhat.com>
6271
6272 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
6273 DW_TAG_rvalue_reference_type even for
6274 -gdwarf-4 -fno-debug-types-section.
6275
6276 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6277
6278 PR tree-optimization/46728
6279 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
6280 (build_and_insert_binop): New.
6281 (gimple_expand_builtin_pow): Reorder args for
6282 build_and_insert_call; use build_and_insert_binop; add more
6283 optimizations for fractional exponents.
6284
6285 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
6286
6287 PR bootstrap/49190
6288
6289 Revert:
6290 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6291
6292 * tree.h (struct tree_identifier): Inherit from tree_typed, not
6293 tree_common.
6294 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6295 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6296 TS_BASE instead of TS_COMMON.
6297 * varasm.c (assemble_name): Remove assert.
6298
6299 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
6300
6301 * config.gcc: Keep obselete list sorted.
6302
6303 2011-05-30 Jakub Jelinek <jakub@redhat.com>
6304 Eric Botcazou <ebotcazou@adacore.com>
6305
6306 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
6307 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
6308 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
6309 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
6310 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
6311
6312 2011-05-30 Richard Guenther <rguenther@suse.de>
6313
6314 * gimple.c (gimple_types_compatible_p_1): Compare record
6315 and union type members properly.
6316
6317 2011-05-30 Richard Guenther <rguenther@suse.de>
6318
6319 PR tree-optimization/49210
6320 * ipa-split.c (split_function): Care for the case where the call
6321 result is not trivially convertible to the result holding variable.
6322
6323 2011-05-30 Richard Guenther <rguenther@suse.de>
6324
6325 PR tree-optimization/49218
6326 * tree-vrp.c (adjust_range_with_scev): Properly check whether
6327 overflow occured.
6328
6329 2011-05-30 Richard Guenther <rguenther@suse.de>
6330
6331 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
6332 New function split out from ...
6333 (forward_propagate_into_gimple_cond): ... here. Adjust.
6334 (forward_propagate_into_cond): Likewise.
6335 (forward_propagate_comparison): Also propagate into
6336 comparisons on assignment RHS. Change return value to
6337 behave similar to forward_propagate_into_cond.
6338 (tree_ssa_forward_propagate_single_use_vars): Handle
6339 strict-overflow warnings properly for forward_propagate_comparison.
6340
6341 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6342
6343 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
6344 from plugin linker.
6345 * configure: Regenerate.
6346
6347 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
6348
6349 PR tree-optimization/49199
6350 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
6351 non-reduction operands are either defined in the loop or by induction.
6352
6353 2011-05-29 Xinliang David Li <davidxl@google.com>
6354
6355 * opts-global.c (handle_common_deferred_options): Handle new options.
6356 * passes.c (register_one_dump_file): Call register_pass_name.
6357 (execute_one_pass): Check explicit enable/disable flag.
6358 (passr_hash): New function.
6359 (passr_eq): Ditto.
6360 (register_pass_name): Ditto.
6361 (get_pass_by_name): Ditto.
6362 (pass_hash): Ditto.
6363 (pass_eq): Ditto.
6364 (enable_pass): Ditto.
6365 (disable_pass): Ditto.
6366 (is_pass_explicitly_enabled_or_disabled): Ditto.
6367
6368 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
6369
6370 * config/i386/i386.md (*movoi_internal_avx): Use
6371 standard_sse_constant_opcode for alternative 0.
6372 (*movti_internal_sse): Ditto.
6373 (*movti_internal_rex64): Use standard_sse_constant_opcode for
6374 alternative 2.
6375 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
6376 sselog1 type moves.
6377 (*movsi_internal): Ditto.
6378 (*movdi_internal): Ditto. Add ssecvt type moves.
6379
6380 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
6381
6382 PR target/48830
6383 * rtlanal.c (simplify_subreg_regno): Adjust comment.
6384
6385 2011-05-29 Jakub Jelinek <jakub@redhat.com>
6386
6387 PR rtl-optimization/49095
6388 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
6389 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
6390
6391 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
6392
6393 PR target/43995
6394 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
6395 recurse_p argument. Only follow register copies if it is set,
6396 and prevent mips_find_pic_call_symbol from recursing.
6397 (mips_find_pic_call_symbol): Add a recurse_p argument.
6398 Pass it to mips_pic_call_symbol_from_set.
6399 (mips_annotate_pic_calls): Update accordingly.
6400
6401 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
6402
6403 * emit-rtl.c (try_split): Use a loop to search for
6404 NOTE_INSN_CALL_ARG_LOCATIONs.
6405
6406 2011-05-29 Richard Guenther <rguenther@suse.de>
6407
6408 PR tree-optimization/49217
6409 * ipa-pure-const.c (propagate_pure_const): Fix typos.
6410
6411 2011-05-28 Jan Hubicka <jh@suse.cz>
6412
6413 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
6414 length.
6415 (string_slot_free): Remove
6416 (create_output_block): Initialize obstack.
6417 (destroy_output_block): Free obstack.
6418 (lto_string_index): Add PERSISTENT parameter; do not duplicate
6419 the string unless it needs to be added into the hash.
6420 (lto_output_string_with_length): Add persistent attribute;
6421 handle NULL strings.
6422 (lto_output_string): Add PERSISTENT parameter.
6423 (output_string_cst, output_identifier): Simplify.
6424 (lto_output_location_bitpack): Update.
6425 (lto_output_builtin_tree): Update.
6426 * lto-streamer.h (struct output_block): Add obstack.
6427 (lto_output_string, lto_output_string_with_length): Remove
6428 declarations; functions are static now.
6429
6430 2011-05-28 Jan Hubicka <jh@suse.cz>
6431
6432 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
6433 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
6434 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
6435 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
6436 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
6437 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
6438 unpack_ts_decl_with_vis_value_fields,
6439 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
6440 lto_get_builtin_tree): Use enum and variable length i/o.
6441 * basic-block.h (profile_status_d): Add PROFILE_LAST.
6442 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
6443 New functions.
6444 (bp_pack_enum, bp_unpack_enum): New macros.
6445
6446 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6447
6448 * genrecog.c: Remove redundant forward declarations.
6449
6450 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6451
6452 * config.gcc: Deprecate mips*-*-openbsd*.
6453
6454 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6455
6456 PR bootstrap/49195
6457 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
6458 for match_op_dup.
6459
6460 2011-05-27 Andrew Pinski <pinskia@gmail.com>
6461
6462 PR middle-end/48981
6463 * gengtype.c (vec_prefix_type): New function.
6464 (note_def_vec): Use vec_prefix_type and change the length
6465 attribute to be based on the prefix.
6466 * vec.c: Include coretypes.h before vec.h.
6467 (struct vec_prefix): Remove.
6468 (vec_gc_p_reserve): Change the offsetof to sizeof.
6469 (vec_gc_p_reserve_exact): Likewise.
6470 (vec_heap_p_reserve): Likewise.
6471 (vec_heap_p_reserve_exact): Likewise.
6472 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
6473 (vec_stack_p_reserve): Change the offsetof to sizeof.
6474 (vec_stack_p_reserve_exact): Likewise.
6475 * vec.h (struct vec_prefix): New struct definition.
6476 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
6477 (VEC_T_GTY(T,B)): Likewise.
6478 (DEF_VEC_FUNC_P(T)): Use prefix field.
6479 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
6480 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
6481
6482 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6483
6484 PR tree-optimization/46728
6485 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
6486 (powi_as_mults): Add gimple_set_location.
6487 (build_and_insert_call): New.
6488 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
6489 0.5, 0.25, 0.75, 1./3., or 1./6.
6490
6491 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
6492
6493 * doc/contrib.texi: Update copyright years.
6494 (Contributors): Add Zdenek Sojka.
6495
6496 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
6497
6498 * c-decl.c (c_push_function_context): Copy the current statement
6499 list stack.
6500 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
6501 (finish_struct): Call building_stmt_list_p instead of checking
6502 cur_stmt_list.
6503 * c-parser.c (c_parser_postfix_expression): Likewise.
6504 * c-typeck.c (c_end_compound_stmt): Likewise.
6505 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
6506 * tree-iterator.c (stmt_list_cache): Change to a VEC.
6507 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
6508 (free_stmt_list): Likewise.
6509 * tree.h (struct tree_statement_list): Include typed_tree instead
6510 of tree_common.
6511 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
6512 as TS_TYPED instead of TS_COMMON.
6513
6514 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6515 Uros Bizjak <ubizjak@gmail.com>
6516
6517 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
6518 (HAVE_AS_IX86_TLSGDPTL): Define.
6519 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
6520 (HAVE_AS_IX86_TLSLDMPLT): Define.
6521 * configure: Regenerate.
6522 * config.in: Regenerate.
6523 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
6524 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
6525 TARGET_SUN_TLS, use @tlsgdplt or @plt.
6526 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
6527 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
6528 @tlsldmplt or @plt.
6529 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
6530
6531 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
6532
6533 * sched-int.h (struct _haifa_deps_insn_data): New members cond
6534 and reverse_cond.
6535 (INSN_COND, INSN_REVERSE_COND): New macros.
6536 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
6537 once.
6538 (sched_get_condition_with_rev): Cache the results, and look them up
6539 if possible.
6540 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
6541 are clobbered by the current insn.
6542 * target.def (exposed_pipline): New sched data hook.
6543 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
6544 * doc/tm.texi: Regenerate.
6545
6546 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6547
6548 PR tree-optimization/49170
6549 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
6550 sincos or cexp.
6551
6552 2011-05-27 Richard Guenther <rguenther@suse.de>
6553
6554 PR middle-end/49189
6555 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
6556 of comparisons.
6557
6558 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
6559
6560 * haifa-sched.c (sched_scan_info): Remove.
6561 (schedule_block): Call sched_extend_luids rather than sched_init_luids
6562 with NULL args.
6563 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
6564 Remove functions.
6565 (sched_scan): Remove.
6566 (sched_extend_luids): Renamed from luids_extend_insn and no longer
6567 static. All callers changed.
6568 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
6569 static. All callers changed.
6570 (sched_init_luids): Remove all arguments except the first. All
6571 callers changed. Don't use sched_scan.
6572 (haifa_init_h_i_d): Likewise.
6573 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
6574 manually rather than using sched_init_luids. Likewise with
6575 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
6576 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
6577 rather than sched_init_luids with NULL args.
6578 * sel-sched-ir.c (new_insns): Remove variable.
6579 (sched_scan): New static function, previously in haifa-sched.c. Remove
6580 all arguments but the first two; all callers changed.
6581 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
6582 rather than sched_init_luids.
6583 (sel_init_bbs): Remove second argument. All callers changed.
6584 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
6585 with NULL arguments.
6586 (create_insn_rtx_from_pattern): Likewise.
6587 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
6588 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
6589 (sched_init_insn_luid, sched_extend_luids): Declare.
6590 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
6591 declarations.
6592
6593 2011-05-27 Richard Guenther <rguenther@suse.de>
6594
6595 PR middle-end/49177
6596 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
6597 A CMP B ? (T) true : (T) false for non-integral types T again.
6598
6599 2011-05-27 Jan Hubicka <jh@suse.cz>
6600
6601 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
6602 so 0 means NULL string.
6603 (lto_output_string_with_length): ... here.
6604 (lto_output_string, output_string_cst, output_identifier): Update
6605 handling of NULL strings.
6606 (lto_output_location_bitpack): New function.
6607 (lto_output_location): Use it.
6608 (lto_output_tree_ref): Use output_record_start.
6609 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
6610 len values.
6611 * lto-streamer-in.c (string_for_index): Break out from ...; offset
6612 values by 1.
6613 (input_string_internal): ... here;
6614 (input_string_cst, input_identifier, lto_input_string): Update handling
6615 of NULL strings.
6616 (lto_input_location_bitpack): New function
6617 (lto_input_location): Use it.
6618 (unpack_ts_type_common_value_fields): Pack align & alias in var len
6619 values.
6620 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
6621 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
6622 (bp_pack_value): Sanity check the value range.
6623 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
6624 New functions.
6625 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
6626 New functions.
6627
6628 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
6629
6630 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
6631 call_arg_location instructions down the floor.
6632
6633 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
6634
6635 PR rtl-optimization/49154
6636 * ira.c (setup_pressure_classes): Process class without sublcasses
6637 as a candidate for pressure classes.
6638
6639 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
6640
6641 PR rtl-optimization/48575
6642 * genrecog.c (position_type): New enum.
6643 (position): New structure.
6644 (decision): Use position structure instead of a string.
6645 (root_pos, peep2_insn_pos_list): New variables.
6646 (next_position, compare_positions): New functions.
6647 (new_decision): Use position structures instead of strings.
6648 (maybe_both_true): Likewise.
6649 (change_state): Likewise.
6650 (write_tree): Likewise.
6651 (make_insn_sequence): Likewise.
6652
6653 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6654
6655 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
6656 TS_BASE instead of TS_COMMON.
6657 (find_decls_types_r): Check for TS_TYPED structure before looking at
6658 TREE_TYPE.
6659 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
6660 Add chain field.
6661 (BLOCK_CHAIN): Use new chain field.
6662
6663 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
6664
6665 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
6666 moves expensive on Power7 also.
6667
6668 2011-05-26 Richard Guenther <rguenther@suse.de>
6669
6670 * fold-const.c (fold_unary_loc): Remove bogus code.
6671
6672 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6673
6674 * tree.h (struct tree_identifier): Inherit from tree_typed, not
6675 tree_common.
6676 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6677 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6678 TS_BASE instead of TS_COMMON.
6679 * varasm.c (assemble_name): Remove assert.
6680
6681 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
6682
6683 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
6684 substituted first.
6685 * libgcc-std.ver: Delete file.
6686
6687 2011-05-26 Richard Guenther <rguenther@suse.de>
6688
6689 PR tree-optimization/48702
6690 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
6691 only when we know the base address is within bounds.
6692 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
6693 assume the base address of TARGET_MEM_REFs is in bounds.
6694
6695 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6696
6697 PR target/49099
6698 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
6699 declaration in TARGET_SOLARIS.
6700
6701 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
6702
6703 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
6704 The instruction is then expanded explicitly.
6705 (supported_compare): Callable instruction.
6706 (compare): Likewise.
6707
6708 2011-05-26 Jakub Jelinek <jakub@redhat.com>
6709
6710 PR c++/49165
6711 * gimplify.c (shortcut_cond_r): Don't special case
6712 COND_EXPRs if they have void type on one of their arms.
6713
6714 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
6715
6716 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
6717 to reduce duplication, and to achieve a slightly more logical order
6718 of operations.
6719
6720 2011-05-26 Jakub Jelinek <jakub@redhat.com>
6721
6722 PR tree-optimization/49161
6723 * tree-vrp.c (struct case_info): New type.
6724 (compare_case_labels): Sort case_info structs instead of
6725 trees, and not primarily by CASE_LABEL uids but by
6726 label_for_block indexes.
6727 (find_switch_asserts): Put case labels into struct case_info
6728 array instead of TREE_VEC, adjust sorting, compare label_for_block
6729 values instead of CASE_LABELs.
6730
6731 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6732
6733 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
6734 ("orndi3_neon"): Likewise.
6735 ("bic<mode>3_neon"): Likewise.
6736
6737 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
6738
6739 PR tree-optimization/49038
6740 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
6741 Ensure at least one epilogue iteration if required by data
6742 accesses with gaps.
6743 * tree-vectorizer.h (struct _loop_vec_info): Add new field
6744 to mark loops that require peeling for gaps.
6745 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
6746 (vect_get_known_peeling_cost): Take peeling for gaps into
6747 account.
6748 (vect_transform_loop): Generate epilogue if required by data
6749 access with gaps.
6750 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
6751 loop as requiring an epilogue if there are gaps in the end of
6752 the strided group.
6753
6754 2011-05-25 Ian Lance Taylor <iant@google.com>
6755
6756 * godump.c (go_format_type): Output the first field with a usable
6757 Go type, if any.
6758
6759 2011-05-25 Ian Lance Taylor <iant@google.com>
6760
6761 * godump.c (go_format_type): Check for invalid type names, pointer
6762 target types, and struct field types.
6763
6764 2011-05-25 Jason Merrill <jason@redhat.com>
6765
6766 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
6767
6768 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
6769
6770 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
6771
6772 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
6773
6774 * config/i386/i386.md (*movqi_extv_1)): Put back
6775 "register_operand" check in "type" calculation.
6776 (*movqi_extzv_2): Likewise.
6777
6778 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
6779
6780 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6781
6782 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
6783
6784 PR bootstrap/49160
6785 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
6786 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
6787 __divxc3, __divtc3): Wrap definitions in #ifndef.
6788
6789 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
6790
6791 PR target/49142
6792 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
6793 "register_operand" check and replace q_regs_operand with
6794 QIreg_operand in "type" calculation.
6795 (*movqi_extv_1): Likewise.
6796 (*movqi_extzv_2_rex64): Likewise.
6797 (*movqi_extzv_2): Likewise.
6798
6799 * config/i386/predicates.md (QIreg_operand): New.
6800
6801 2011-05-25 Richard Guenther <rguenther@suse.de>
6802
6803 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
6804 type-based offset disambiguation, streamline MEM_REF and
6805 TARGET_MEM_REF handling.
6806
6807 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
6808
6809 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
6810 (bdesc_special_args): Add pause intrinsic.
6811
6812 * config/i386/i386.md (UNSPEC_PAUSE): New.
6813 (pause): Likewise.
6814 (*pause): Likewise.
6815 * config/i386/ia32intrin.h (__pause): Likewise.
6816
6817 * doc/extend.texi (X86 Built-in Functions): Add documentation for
6818 pause intrinsic.
6819
6820 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6821
6822 PR tree-optimization/46728
6823 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
6824 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
6825
6826 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
6827
6828 * tree.h (struct tree_exp): Inherit from struct tree_typed.
6829 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
6830 instead of TS_COMMON.
6831
6832 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
6833
6834 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
6835 LIBGCC2_GNU_PREFIX is defined.
6836 (__N): New macro.
6837 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
6838 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
6839 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
6840 __clz_tab): Define using __N.
6841 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
6842 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
6843 * target.def (libfunc_gnu_prefix): New hook.
6844 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
6845 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
6846 * doc/tm.texi: Regenerate.
6847 * system.h (LIBGCC2_GNU_PREFIX): Poison.
6848 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
6849 account.
6850 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
6851 (init_optabs): Likewise for the bswap libfuncs.
6852 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
6853 and divide.
6854 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
6855 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
6856 * libgcc-std.ver: Remove.
6857 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
6858 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
6859 libgcc-std.ver.
6860 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
6861 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
6862 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
6863 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
6864 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
6865 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
6866 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
6867 * config/fixed-bit.h (FIXED_OP): Define differently depending on
6868 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
6869 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
6870
6871 2011-05-25 Jan Hubicka <jh@suse.cz>
6872
6873 * lto-streamer-out.c (output_record_start): Use lto_output_enum
6874 (lto_output_tree): Use output_record_start.
6875 * lto-streamer-in.c (input_record_start): Use lto_input_enum
6876 (lto_get_pickled_tree): Use input_record_start.
6877 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
6878 (lto_value_range_error): New function.
6879 * lto-streamer.h (lto_value_range_error): Declare.
6880 (lto_output_int_in_range, lto_input_int_in_range): New functions.
6881 (lto_output_enum, lto_input_enum): New macros.
6882
6883 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
6884
6885 * common.opt (flag_stack_usage_info): New variable.
6886 (-Wstack-usage): New option.
6887 * doc/invoke.texi (Warning options): Document -Wstack-usage.
6888 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
6889 <OPT_fstack_usage>: Likewise.
6890 * toplev.c (output_stack_usage): Handle -Wstack-usage.
6891 * calls.c (expand_call): Test flag_stack_usage_info variable instead
6892 of flag_stack_usage.
6893 (emit_library_call_value_1): Likewise.
6894 * explow.c (allocate_dynamic_stack_space): Likewise.
6895 * function.c (instantiate_virtual_regs ): Likewise.
6896 (prepare_function_start): Likewise.
6897 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
6898 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
6899 * config/arm/arm.c (arm_expand_prologue): Likewise.
6900 (thumb1_expand_prologue): Likewise.
6901 * config/avr/avr.c (expand_prologue): Likewise.
6902 * config/i386/i386.c (ix86_expand_prologue): Likewise.
6903 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
6904 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
6905 * config/mips/mips.c (mips_expand_prologue): Likewise.
6906 * config/pa/pa.c (hppa_expand_prologue): Likewise.
6907 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6908 * config/s390/s390.c (s390_emit_prologue): Likewise.
6909 * config/sh/sh.c (sh_expand_prologue): Likewise.
6910 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6911 * config/spu/spu.c (spu_expand_prologue): Likewise.
6912
6913 2011-05-25 Richard Guenther <rguenther@suse.de>
6914
6915 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
6916 (gimple_canonical_types_compatible_p): Likewise.
6917
6918 2011-05-25 Jan Hubicka <jh@suse.cz>
6919
6920 PR middle-end/49062
6921 * ipa.c (function_and_variable_visibility): Only add to same
6922 comdat group list if DECL_ONE_ONLY.
6923
6924 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
6925
6926 PR rtl-optimization/49014
6927 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
6928
6929 2011-05-25 Jakub Jelinek <jakub@redhat.com>
6930
6931 PR target/49128
6932 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
6933
6934 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
6935
6936 PR rtl-optimization/48757
6937 * ira-build.c (loop_with_eh_edge_p): Rename to
6938 loop_with_complex_edge_p, check edges on complexity, make function
6939 conditional.
6940 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
6941 conditional.
6942
6943 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
6944
6945 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
6946 force flag_ira_share_save_slots to 0.
6947
6948 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
6949
6950 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
6951 (vt_initialize): Set PROLOGUE_BB unconditionally.
6952 Add block comment about CFA_BASE_RTX machinery.
6953 Reset FP_CFA_OFFSET to -1 on all invalid paths.
6954 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
6955
6956 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
6957
6958 PR objc/48187
6959 * c-parser.c (c_parser_objc_class_instance_variables): More robust
6960 parsing of syntax error in ObjC instance variable lists. In
6961 particular, avoid an infinite loop if there is a stray ']'.
6962 Updated error message.
6963
6964 2011-05-24 Ian Lance Taylor <iant@google.com>
6965
6966 * godump.c (go_define): Don't accept a string immediately after
6967 another operand.
6968
6969 2011-05-24 Ian Lance Taylor <iant@google.com>
6970
6971 * godump.c (struct godump_container): Add invalid_hash field.
6972 (go_format_type): Return false if type is found in invalid_hash.
6973 (go_output_typedef): Add invalid type to invalid_hash.
6974 (go_finish): Create and delete invalid_hash.
6975
6976 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6977
6978 PR tree-optimization/46728
6979 * tree-ssa-math-opts.c (powi_table): New.
6980 (powi_lookup_cost): New.
6981 (powi_cost): New.
6982 (powi_as_mults_1): New.
6983 (powi_as_mults): New.
6984 (gimple_expand_builtin_powi): New.
6985 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
6986 (gate_cse_sincos): Remove sincos/cexp restriction.
6987
6988 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6989
6990 PR target/3746
6991 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
6992 mips-tdump native.
6993 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
6994 * mips-tdump.c: Likewise.
6995
6996 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
6997
6998 PR target/49128
6999 * config/i386/driver-i386.c (host_detect_local_cpu): Always
7000 add -mno-XXX. Handle FMA.
7001
7002 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7003
7004 PR rtl-optimization/48633
7005 * ira-build.c (loop_with_eh_edge_p): New function.
7006 (mark_loops_for_removal): Use it.
7007
7008 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7009
7010 PR rtl-optimization/48971
7011 * ira.c (setup_pressure_classes): Don't check register move cost
7012 for classes with one registers. Don't add pressure class if there
7013 is a pressure class with the same available hard registers.
7014 Check contains_reg_of_mode. Fix a typo in collecting
7015 temp_hard_regset. Ignore hard registers not belonging to a class.
7016
7017 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
7018
7019 PR target/49133
7020 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
7021
7022 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7023 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7024
7025 PR gcov-profile/48845
7026 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
7027
7028 2011-05-24 Richard Guenther <rguenther@suse.de>
7029
7030 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
7031 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
7032 (gimple_types_compatible_p_1): Adjust.
7033 (iterative_hash_canonical_type): Do not bother about complete vs.
7034 incomplete types.
7035 (gimple_canonical_types_compatible_p): Likewise.
7036
7037 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7038
7039 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
7040
7041 2011-05-24 Richard Guenther <rguenther@suse.de>
7042
7043 PR bootstrap/49078
7044 * gimple.c (gimple_register_canonical_type): Revert
7045 previous change.
7046 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
7047 does not for a tree for the case where it matters. Cache
7048 pointer-type alias-sets.
7049
7050 2011-05-24 Joseph Myers <joseph@codesourcery.com>
7051
7052 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
7053 (OBJS): Remove options.o, opts-common.o and prefix.o.
7054 (OBJS-libcommon-target): New.
7055 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
7056 (BACKEND): Include libcommon-target.a.
7057 (MOSTLYCLEANFILES): Include libcommon-target.a.
7058 (libcommon-target.a): New.
7059 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
7060 prefix.o.
7061
7062 2011-05-23 Joseph Myers <joseph@codesourcery.com>
7063
7064 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
7065 parts of output shared with the driver.
7066 * optc-gen.awk: Don't generate parts of output not shared with the
7067 driver.
7068 * opth-gen.awk: Remove GCC_DRIVER conditionals.
7069 * doc/options.texi (SourcerInclude): Mention options-save.c.
7070 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
7071 (OBJS): Add options-save.o.
7072 (options-save.c, options-save.o): New.
7073 (options.o): Update dependencies.
7074 (gcc-options.o): Remove.
7075 (mostlyclean): Remove options-save.c.
7076
7077 2011-05-23 Jakub Jelinek <jakub@redhat.com>
7078
7079 PR debug/49032
7080 * dbxout.c: Include cgraph.h.
7081 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
7082 and without value expr, return NULL if no varpool node exists for
7083 it or if it is not needed.
7084 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
7085
7086 PR c/49120
7087 * c-decl.c (start_decl): Convert expr to void_type_node.
7088
7089 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
7090
7091 PR rtl-optimization/48826
7092 * emit-rtl.c (try_split): When splitting a call that is followed
7093 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
7094
7095 2011-05-23 Jakub Jelinek <jakub@redhat.com>
7096
7097 * cfgexpand.c (expand_debug_expr): For unused non-addressable
7098 parameters passed in memory prefer using DECL_INCOMING_RTL over
7099 the pseudos it will be copied into.
7100
7101 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
7102
7103 PR target/47315
7104 * config/i386/i386.c (ix86_option_override_internal): Save the
7105 initial options after checking vzeroupper.
7106
7107 2011-05-23 David Li <davidxl@google.com>
7108
7109 PR tree-optimization/48988
7110 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
7111 Initialize has_valid_pred for each pred chain.
7112
7113 2011-05-23 Richard Guenther <rguenther@suse.de>
7114
7115 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
7116 (iterative_hash_gimple_type): Always hash type names.
7117
7118 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
7119
7120 * c-typeck.c (build_function_call_vec): Tweak call to
7121 check_function_arguments.
7122
7123 2011-05-23 Richard Guenther <rguenther@suse.de>
7124
7125 PR tree-optimization/49115
7126 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
7127 is not necessarily carried out, do not claim it kills the ref.
7128 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7129
7130 2011-05-23 Richard Guenther <rguenther@suse.de>
7131
7132 PR middle-end/15419
7133 * builtins.c (fold_builtin_memory_op): Be less restrictive about
7134 what pointer types we accept for folding.
7135
7136 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7137
7138 * gthr-gnat.c: Remove.
7139 * gthr-gnat.h: Remove.
7140 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
7141 * config/t-freebsd (LIB2ADDEH): Likewise.
7142 * config/t-linux (LIB2ADDEH): Likewise.
7143 * config/t-sol2 (LIB2ADDEH): Likewise.
7144 * config/ia64/t-vms (LIB2ADDEH): Likewise.
7145 * configure.ac (target_thread_file): Remove gnat handling.
7146 * configure: Regenerate.
7147 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
7148
7149 2011-05-23 Tristan Gingold <gingold@adacore.com>
7150 Eric Botcazou <ebotcazou@adacore.com>
7151
7152 * gcov.c (create_file_names): If no object directory is specified,
7153 keep the directory of the file.
7154
7155 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7156
7157 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
7158 * configure: Regenerate.
7159
7160 2011-05-23 Jakub Jelinek <jakub@redhat.com>
7161
7162 PR middle-end/48973
7163 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
7164 failed and the comparison has a single bit signed type, use
7165 constm1_rtx instead of const1_rtx for true value.
7166 (do_store_flag): If ops->type is single bit signed type, disable
7167 signel bit test optimization and pass -1 instead of 1 as last
7168 parameter to emit_store_flag_force.
7169
7170 2011-05-23 Tom de Vries <tom@codesourcery.com>
7171
7172 PR target/45098
7173 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
7174 function.
7175 (infer_loop_bounds_from_undefined): Use new function.
7176
7177 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
7178
7179 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
7180 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
7181 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
7182 and -O0 otherwise.
7183 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
7184
7185 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7186
7187 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
7188 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
7189 returns true.
7190
7191 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
7192
7193 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
7194
7195 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7196
7197 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
7198 UNSPEC_MOVE_PIC pattern.
7199
7200 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7201
7202 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
7203 (sparc-*-rtems*): Likewise.
7204 (sparc64-*-elf*): Likewise.
7205 (sparc64-*-rtems*): Likewise.
7206 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
7207 * config/sparc/t-crtin: New file.
7208 * config/sparc/t-sol2 (crti.o): Delete rule.
7209 (crtn.o): Likewise.
7210 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
7211 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
7212 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
7213 (ENDFILE_SPEC): Add crtn.o.
7214
7215 2011-05-22 Tom de Vries <tom@codesourcery.com>
7216
7217 PR middle-end/48689
7218 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
7219 CODE_CONTAINS_STRUCT (TS_COMMON).
7220
7221 2011-05-22 Jakub Jelinek <jakub@redhat.com>
7222
7223 PR middle-end/49029
7224 * expmed.c (extract_fixed_bit_field): Test whether target can be used
7225 only after deciding which mode to use.
7226
7227 2011-05-22 Tom de Vries <tom@codesourcery.com>
7228
7229 PR target/45098
7230 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
7231 for call to get_shiftadd_cost.
7232
7233 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
7234
7235 PR target/49104
7236 * config/i386/cpuid.h (bit_MMXEXT): New define.
7237
7238 2011-05-22 Nick Clifton <nickc@redhat.com>
7239
7240 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
7241 initialisation of non-existant args[2] element. Use args[] array
7242 not arg[] array to pass arguments to build_function_type_list.
7243
7244 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
7245
7246 PR tree-optimization/49087
7247 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
7248
7249 2011-05-21 Jason Merrill <jason@redhat.com>
7250
7251 PR c++/49092
7252 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
7253 static storage duration.
7254
7255 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
7256
7257 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
7258 frame pointer.
7259
7260 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
7261
7262 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
7263 false if there are call-saved registers here...
7264 (sparc_can_use_return_insn_p): ...but here instead.
7265 (save_or_restore_regs): Fix thinko.
7266 (sparc_expand_prologue): Use current_function_is_leaf.
7267 (sparc_frame_pointer_required): Likewise.
7268
7269 2011-05-21 Nick Clifton <nickc@redhat.com>
7270
7271 PR target/49098
7272 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
7273
7274 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
7275
7276 * gengtype.c (walk_type): Implemented "atomic" GTY option.
7277 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
7278
7279 2011-05-21 Joseph Myers <joseph@codesourcery.com>
7280
7281 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
7282 * optc-gen.awk: Move common code to opt-read.awk.
7283 * opth-gen.awk: Likewise.
7284 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
7285
7286 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
7287
7288 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
7289
7290 2011-05-20 Tom de Vries <tom@codesourcery.com>
7291
7292 PR target/45098
7293 * tree-ssa-loop-ivopts.c: Include expmed.h.
7294 (get_shiftadd_cost): New function.
7295 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
7296
7297 2011-05-20 Jakub Jelinek <jakub@redhat.com>
7298
7299 PR bootstrap/49086
7300 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
7301 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
7302
7303 2011-05-20 Joseph Myers <joseph@codesourcery.com>
7304
7305 * Makefile.in: Update comment referring to $(OBJS-common).
7306
7307 2011-05-20 Ian Lance Taylor <iant@google.com>
7308
7309 * godump.c (go_output_typedef): Put enum constants in the macro
7310 hash table to avoid duplicate Go const definitions.
7311
7312 2011-05-20 Joseph Myers <joseph@codesourcery.com>
7313
7314 * Makefile.in (LIBDEPS): Add libcommon.a.
7315 (LIBS): Likewise.
7316 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
7317 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
7318 pretty-print.o and version.o.
7319 (OBJS-libcommon): New.
7320 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
7321 (BACKEND): Add libcommon.a.
7322 (MOSTLYCLEANFILES): Likewise.
7323 (libcommon.a): New.
7324 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
7325 (cpp$(exeext)): Likewise.
7326 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
7327 pretty-print.o and input.o.
7328 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
7329 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
7330 (errors.o): Remove.
7331 (mips-tfile): Don't explicitly use version.o.
7332 (mips-tdump): Likewise.
7333 (gcov.o): Depend on $(DIAGNOSTIC_H).
7334 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
7335 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
7336 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
7337 * gcov-dump.c: Include intl.h and diagnostic.h.
7338 (main): Initialize diagnostics.
7339 * gcov.c: Include diagnostic.h.
7340 (fnotice): Remove.
7341 (main): Initialize diagnostics.
7342 * lto-wrapper.c: Include diagnostic.h.
7343 (main): Initialize diagnostics.
7344
7345 2011-05-20 Michael Matz <matz@suse.de>
7346
7347 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
7348
7349 2011-05-20 Michael Matz <matz@suse.de>
7350 Richard Guenther <rguenther@suse.de>
7351
7352 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
7353 use lto_streamer_cache_append directly instead of returning a VEC.
7354 (preload_common_node): Remove.
7355 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
7356 track seen nodes.
7357 (lto_streamer_cache_create): Call lto_preload_common_nodes.
7358
7359 2011-05-20 Richard Guenther <rguenther@suse.de>
7360
7361 PR tree-optimization/49079
7362 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
7363 MEM_REFs correctly for the trailing array access detection.
7364 Special case constants the same way as decls for overall size
7365 constraining.
7366
7367 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
7368
7369 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
7370 argument expansion.
7371
7372 2011-05-20 Jakub Jelinek <jakub@redhat.com>
7373
7374 PR tree-optimization/49073
7375 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
7376 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
7377 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
7378
7379 2011-05-20 Richard Guenther <rguenther@suse.de>
7380
7381 PR middle-end/48849
7382 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
7383 of pointer types the same way the middle-end does.
7384
7385 2011-05-20 Richard Guenther <rguenther@suse.de>
7386
7387 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
7388 or pointer-to chains. Delay all fixup to uniquify_nodes.
7389
7390 2011-05-19 Quentin Neill <quentin.neill@amd.com>
7391
7392 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
7393 (fma4_fmaddsub): Likewise
7394
7395 2011-05-19 Jan Hubicka <jh@suse.cz>
7396
7397 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
7398 (GIMPLE_TYPE_PAIR_SIZE): New macro.
7399 (type_pair_cache): New static var.
7400 (lookup_type_pair): Use fixed sized custom hash; make inline.
7401 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
7402 calls of lookup_type_pair.
7403 (print_gimple_types_stats): Remove cache stats.
7404 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
7405 and gtc_ob.
7406
7407 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
7408
7409 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
7410 when TARGET_RDRND is active.
7411 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
7412 Generate dummy SImode target register when target is NULL.
7413
7414 2011-05-19 Joseph Myers <joseph@codesourcery.com>
7415
7416 * config/arm/arm-fpus.def: New.
7417 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
7418 arm-fpus.def.
7419 * config/arm/arm-tables.opt: Regenerate.
7420 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
7421 (arm_option_override): Don't decode FPU name to string here.
7422 * config/arm/arm.opt (mfpu=): Use Enum.
7423 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
7424 Update dependencies.
7425
7426 2011-05-19 Joseph Myers <joseph@codesourcery.com>
7427
7428 * collect2.c: Include diagnostic.h.
7429 (fatal_perror, fatal, error, fancy_abort): Remove.
7430 (main): Set progname. Call xmalloc_set_program_name and
7431 diagnostic_initialize.
7432 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
7433 scan_libraries, resolve_lib_name): Call fatal_error instead of
7434 fatal and fatal_perror.
7435 * collect2.h (error, fatal, fatal_perror): Don't declare.
7436 * tlink.c: Include diagnostic-core.h.
7437 (recompile_files): Call fatal_error instead of fatal_perror.
7438 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
7439 pretty-print.o and input.o.
7440 (collect2.o, tlink.o): Update dependencies.
7441
7442 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7443
7444 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
7445
7446 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7447
7448 PR target/40483
7449 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
7450 COMDAT group syntax, both SPARC and x86 variants.
7451 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
7452 * configure: Regenerate.
7453 * config/sol2.h (TARGET_SOLARIS): Define.
7454 (PUSHSECTION_FORMAT): Remove.
7455 (SECTION_NAME_FORMAT): Define.
7456 * config/sol2.c: Include hashtab.h.
7457 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
7458 expansion, using SECTION_NAME_FORMAT.
7459 (solaris_comdat_htab): New variable.
7460 (struct comdat_entry): Define.
7461 (comdat_hash): New function.
7462 (comdat_eq): New function.
7463 (solaris_elf_asm_comdat_section): New function.
7464 (solaris_define_comdat_signature): New function.
7465 (solaris_code_end): New function.
7466 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
7467 (solaris_code_end): Declare.
7468 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
7469 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
7470 solaris_code_end.
7471 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
7472 Remove ATTRIBUTE_UNUSED.
7473 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
7474 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
7475 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
7476 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
7477 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
7478 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
7479 (PUSHSECTION_FORMAT): Remove.
7480 (SECTION_NAME_FORMAT): Redefine.
7481
7482 2011-05-19 Kai Tietz <ktietz@redhat.com>
7483
7484 * tree-cfg.c (verify_gimple_assign_binary): Barf on
7485 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
7486 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
7487
7488 2011-05-19 Anatoly Sokolov <aesok@post.ru>
7489 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7490
7491 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
7492
7493 2011-05-19 Richard Guenther <rguenther@suse.de>
7494
7495 PR middle-end/48985
7496 * tree-object-size.c (addr_object_size): If the pointed-to
7497 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
7498
7499 2011-05-19 Richard Guenther <rguenther@suse.de>
7500
7501 * gimple.c (gimple_types_compatible_p_1): Compare names of
7502 the types themselves.
7503 (iterative_hash_gimple_type): And hash them that way.
7504 (gimple_register_type_1): If we register a main variant properly
7505 initialize the leader to ourselves.
7506
7507 2011-05-19 Tom de Vries <tom@codesourcery.com>
7508
7509 PR target/45098
7510 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
7511 get_loop_invariant_expr_id.
7512 (get_loop_invariant_expr_id): Use get_expr_id.
7513 (parm_decl_cost): New function.
7514 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
7515 Improve bound cost estimation. Use different inv_expr_id for elim and
7516 express cases.
7517
7518 2011-05-19 Tom de Vries <tom@codesourcery.com>
7519
7520 PR target/45098
7521 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
7522 cost_base.cost == 0.
7523
7524 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
7525
7526 PR target/49002
7527 * config/i386/sse.md
7528 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
7529 load cast.
7530
7531 2011-05-18 Jakub Jelinek <jakub@redhat.com>
7532
7533 PR tree-optimization/49039
7534 * tree-vrp.c (extract_range_from_binary_expr): For
7535 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
7536 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
7537
7538 2011-05-18 Tom de Vries <tom@codesourcery.com>
7539
7540 PR target/45098
7541 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
7542
7543 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
7544
7545 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
7546 (*tls_global_dynamic_64): Ditto.
7547 (*tls_local_dynamic_base_32_gnu): Ditto.
7548 (*tls_local_dynamic_base_64): Ditto.
7549 (tls_initial_exec_64_sun): Ditto.
7550
7551 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
7552
7553 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
7554 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
7555 bf592-none.
7556 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
7557 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
7558 * config/bfin/bfin.c (bfin_cpus): Add bf592.
7559 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
7560 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
7561 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
7562 * config/bfin/elf.h (LIB_SPEC): Add bf592.
7563
7564 2011-05-18 Joseph Myers <joseph@codesourcery.com>
7565
7566 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
7567 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
7568 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
7569 target_thread_pointer, arm_structure_size_boundary, struct
7570 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
7571 struct abi_name, arm_all_abis): Remove.
7572 (arm_option_override) Don't process most enumerated option values here.
7573 Don't process target_fpe_name here. Work with integer not string for
7574 structure size boundary; use separate diagnostics for each case.
7575 * config/arm/arm.h (enum float_abi_type, enum
7576 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
7577 to arm-opts.h.
7578 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
7579 arm_structure_size_boundary): Remove.
7580 * config/arm/arm.opt (mabi=): Use Enum and Init.
7581 (arm_abi_type): New Enum and EnumValue entries.
7582 (mfloat-abi=): Use Enum and Init.
7583 (float_abi_type): New Enum and EnumValue entries.
7584 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
7585 (mfp16-format=): Use Enum and Init.
7586 (arm_fp16_format_type): New Enum and EnumValue entries.
7587 (mstructure-size-boundary=): Use UInteger and Init.
7588 (mtp=): Use Enum and Init.
7589 (arm_tp_type): New Enum and EnumValue entries.
7590
7591 2011-05-18 Richard Guenther <rguenther@suse.de>
7592
7593 PR tree-optimization/49018
7594 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
7595 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
7596 gimple_has_side_effects.
7597
7598 2011-05-18 Richard Guenther <rguenther@suse.de>
7599
7600 * gimple.c (gimple_register_type_1): New function, split out from ...
7601 (gimple_register_type): ... here. Avoid infinite recursion.
7602
7603 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
7604
7605 PR tree-optimization/41881
7606 * tree-vectorizer.h (struct _loop_vec_info): Add new field
7607 reduction_chains along with a macro for its access.
7608 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
7609 (destroy_loop_vec_info): Free reduction chains.
7610 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
7611 (vect_is_slp_reduction): New function.
7612 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
7613 (vect_create_epilog_for_reduction): Support SLP reduction chains.
7614 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
7615 definition types for reduction chains.
7616 (vect_supported_load_permutation_p): Don't allow permutations for
7617 reduction chains.
7618 (vect_analyze_slp_instance): Support reduction chains.
7619 (vect_analyze_slp): Try to build SLP instance from reduction chains.
7620 (vect_get_constant_vectors): Handle reduction chains.
7621 (vect_schedule_slp_instance): Mark the first statement of the
7622 reduction chain as reduction.
7623
7624 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
7625
7626 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
7627 names for group elements access.
7628 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
7629 reduction chains as well. Remove data reference and interleaving
7630 related words from the fields names.
7631 * tree-vect-loop.c (vect_transform_loop): Use new names for group
7632 elements access.
7633 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
7634 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
7635 vect_update_interleaving_chain, vect_same_range_drs,
7636 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
7637 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
7638 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
7639 vect_analyze_group_access, vect_analyze_data_ref_access,
7640 vect_create_data_ref_ptr, vect_transform_strided_load,
7641 vect_record_strided_load_vectors): Likewise.
7642 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
7643 vect_model_load_cost, vectorizable_store, vectorizable_load,
7644 vect_remove_stores, new_stmt_vec_info): Likewise.
7645 * tree-vect-slp.c (vect_build_slp_tree,
7646 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
7647
7648 2011-05-18 Richard Guenther <rguenther@suse.de>
7649
7650 PR middle-end/48989
7651 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
7652 operand verification.
7653 (verify_gimple_assign_binary): Likewise.
7654 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
7655 to non-1-precision BOOLEAN_TYPEs.
7656
7657 2011-05-18 Tom de Vries <tom@codesourcery.com>
7658
7659 PR target/45098
7660 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
7661
7662 2011-05-18 Jakub Jelinek <jakub@redhat.com>
7663
7664 PR tree-optimization/49000
7665 * tree-ssa.c (execute_update_addresses_taken): Call
7666 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
7667 be rewritten and decl has been marked for renaming, reset
7668 the debug stmt.
7669
7670 2011-05-17 Joseph Myers <joseph@codesourcery.com>
7671
7672 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
7673 enum_opts_set when testing if attributes have set -mfpmath=.
7674
7675 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
7676
7677 * config/mips/mips.c (mips_handle_option): Remove unused variable.
7678
7679 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
7680
7681 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
7682 info->entry with 0
7683 * tree-inline.c (maybe_inline_call_in_expr): Initialize
7684 id.transform_lang_insert_block with NULL.
7685
7686 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
7687
7688 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
7689 (output_fp_compare): Change args 3 and 4 to bool.
7690 (ix86_expand_call): Change arg 6 to bool.
7691 (ix86_attr_length_immediate_default): Change arg 2 to bool.
7692 (ix86_attr_length_vex_default): Change arg 3 to bool.
7693 * config/i386/i386.md: Update all uses.
7694 * config/i386/i386.c: Ditto.
7695 (ix86_flags_dependent): Change return type to bool.
7696
7697 2011-05-17 Richard Guenther <rguenther@suse.de>
7698
7699 * gimple.c (type_hash_pair_compare): Fix comparison.
7700
7701 2011-05-17 Richard Guenther <rguenther@suse.de>
7702
7703 * gimple.c (iterative_hash_gimple_type): Simplify singleton
7704 case some more, fix final hash value of the non-singleton case.
7705
7706 2011-05-17 Richard Guenther <rguenther@suse.de>
7707
7708 PR bootstrap/49013
7709 Revert
7710 2011-05-16 Richard Guenther <rguenther@suse.de>
7711
7712 * gimple.c (gimple_types_compatible_p_1): Use names of the
7713 type itself, not its main variant.
7714 (iterative_hash_gimple_type): Likewise.
7715
7716 2011-05-17 Richard Guenther <rguenther@suse.de>
7717
7718 * gimple.c (gimple_register_canonical_type): Use the main-variant
7719 leader for computing the canonical type.
7720
7721 2011-05-17 Nick Clifton <nickc@redhat.com>
7722
7723 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
7724 moves.
7725
7726 * config/rx/rx.md: Add peephole to remove redundant extensions
7727 after loads.
7728 (bitset_in_memory): Use rx_restricted_mem_operand.
7729 (bitinvert_in_memory): Likewise.
7730 (bitclr_in_memory): Likewise.
7731
7732 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
7733 Nick Clifton <nickc@redhat.com>
7734
7735 * config/rx/rx.md: Add peepholes to match a register move followed
7736 by a comparison of the moved register. Replace these with an
7737 addition of zero that does both actions in one instruction.
7738
7739 2011-05-17 Jakub Jelinek <jakub@redhat.com>
7740
7741 PR target/48986
7742 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
7743 predicate to allow CONST_INT.
7744 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
7745
7746 2011-05-16 Joseph Myers <joseph@codesourcery.com>
7747
7748 * opts-common.c (opt_enum_arg_to_value): New.
7749 * opts.h (opt_enum_arg_to_value): Declare.
7750 * config/i386/i386.opt (fpmath): Remove.
7751 (mfpmath=): Use Enum, Init and Save.
7752 (fpmath_unit): New Enum and EnumValue entries.
7753 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
7754 name for function fpmath state.
7755 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
7756 * config/i386/i386.c: Include diagnostic.h.
7757 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
7758 (ix86_target_string): Take enum fpmath_unit value instead of string.
7759 (ix86_debug_options): Update call to ix86_target_string.
7760 (ix86_option_override_internal): Don't process fpmath strings here.
7761 (x86_function_specific_save, ix86_function_specific_restore):
7762 Don't handle fpmath state specially.
7763 (ix86_function_specific_print): Pass fpmath state to
7764 ix86_target_string instead of printing in this function.
7765 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
7766 Handle enum attributes.
7767 (IX86_ATTR_ENUM, ix86_opt_enum): New.
7768 (ix86_valid_target_attribute_tree): Update option_strings
7769 handling. Handle fpmath as enum option.
7770 (ix86_can_inline_p): Update field names for function fpmath state.
7771 (ix86_expand_builtin): Update call to ix86_target_string.
7772 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
7773 (ix86_fpmath): Remove.
7774 * config/i386/t-i386 (i386.o): Update dependencies.
7775
7776 2011-05-16 Joseph Myers <joseph@codesourcery.com>
7777
7778 PR preprocessor/48677
7779 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
7780 from decoded_options[0], not from itself.
7781
7782 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
7783
7784 * config/i386/constraints.md (z): New constraint.
7785 * config/i386/i386.c (c): New mode attribute.
7786 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
7787 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
7788 constraint for operand 0.
7789 (*call_vzeroupper): Ditto.
7790 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
7791 (*call_rex64_ms_sysv_vzeroupper): Ditto.
7792 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
7793 Use "lzm" constraint for operand 0.
7794 (*call_pop_vzeroupper): Ditto.
7795 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
7796 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
7797 constraint for operand 0.
7798 (*sibcall_vzeroupper): Ditto.
7799 (*sibcall_rex64_ms_sysv): Ditto.
7800 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
7801 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
7802 *sibcall_pop_1. Use "Uz" constraint for operand 0.
7803 (*sibcall_pop_vzeroupper): Ditto.
7804 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
7805 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
7806 mode iterator. Use "<c>zm" constraint for operand 1.
7807 (*call_value_vzeroupper): Ditto.
7808 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
7809 for operand 1.
7810 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
7811 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
7812 *call_value_pop_1. Use "lzm" constraint for operand 1.
7813 (*call_value_pop_vzeroupper): Ditto.
7814 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
7815 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
7816 mode iterator. Use "Uz" constraint for operand 1.
7817 (*sibcall_value_vzeroupper): Ditto.
7818 (*sibcall_value_rex64_ms_sysv): Ditto.
7819 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
7820 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
7821 constraint for operand 1.
7822 (*sibcall_value_pop_vzeroupper): Ditto.
7823 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
7824 and "z" constraint for operand 2.
7825 (*tls_global_dynamic_32_gnu): Ditto.
7826 (*tls_local_dynamic_base_32_gnu): Ditto.
7827 (*tls_local_dynamic_base_64): Ditto.
7828 (*tls_local_dynamic_32_once): Ditto.
7829 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
7830 Update all callers.
7831 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
7832
7833 2011-05-16 Richard Guenther <rguenther@suse.de>
7834
7835 * gimple.c (gimple_types_compatible_p_1): Use names of the
7836 type itself, not its main variant.
7837 (iterative_hash_gimple_type): Likewise.
7838
7839 2011-05-16 Richard Guenther <rguenther@suse.de>
7840
7841 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
7842 always visit pointer target and function result and argument types.
7843
7844 2011-05-16 Jason Merrill <jason@redhat.com>
7845
7846 PR c++/48999
7847 * tree-inline.c (copy_statement_list): Put back recursion.
7848
7849 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
7850
7851 PR target/27663
7852 PR target/41076
7853 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
7854 * config/avr/avr.md ("*ior<mode>qi.byte0",
7855 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
7856
7857 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
7858
7859 PR target/45099
7860 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
7861 register is needed for a function argument.
7862
7863 2011-05-16 Richard Guenther <rguenther@suse.de>
7864
7865 * gimple.c (struct type_hash_pair): New type.
7866 (type_hash_pair_compare): New function.
7867 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
7868
7869 2011-05-16 Revital Eres <revital.eres@linaro.org>
7870
7871 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
7872
7873 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
7874
7875 * config/i386/i386.md (floating point move splitters): Fix
7876 usage of standard_80387_constant_p.
7877 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
7878
7879 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
7880
7881 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
7882
7883 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
7884
7885 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
7886 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
7887 (tree_ssa_lim_finalize): Likewise.
7888
7889 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
7890
7891 * config/i386/constraint.md (Yd, Yx): New register constraints.
7892 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
7893 Yd conditional register constraint.
7894 (*movtf_internal): Use standard_sse_constant_opcode.
7895 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
7896 Yx conditional register constraint.
7897 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
7898 Yd conditional register constraint. Use standard_sse_constant_p to
7899 check for valid SSE constants and call standard_sse_constant_opcode to
7900 output SSE insn.
7901 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
7902 constants and call standard_sse_constant_opcode to output SSE insn.
7903 * config/i386/i386.c (ix86_option_ovverride_internal): Set
7904 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
7905 optimize_size is set.
7906 (standard_sse_constant_opcode): Output conditional AVX insn templates.
7907
7908 2011-05-14 Tobias Burnus <burnus@net-b.de>
7909
7910 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
7911
7912 2011-05-13 Martin Jambor <mjambor@suse.cz>
7913
7914 * ipa-prop.c (ipa_cst_from_jfunc): New function.
7915 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
7916 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
7917 (evaluate_conditions_for_ipcp_clone): Removed.
7918 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
7919 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
7920 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
7921
7922 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
7923
7924 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
7925 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
7926 lieu of MAY_HAVE_DEBUG_STMTS.
7927 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
7928 debug statements if !MAY_HAVE_DEBUG_STMTS.
7929
7930 2011-05-13 Martin Thuresson <martint@google.com>
7931
7932 PR gcov-profile/47793
7933 * libgcov.c (gcov_exit): Support relative profile paths.
7934 * doc/invoke.texi (-fprofile-dir): Update for above change.
7935
7936 2011-05-13 Richard Guenther <rguenther@suse.de>
7937
7938 * gimple.c (gimple_canonical_types_compatible_p): Do not use
7939 type-pair caching, do not compare hashes.
7940
7941 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
7942
7943 PR middle-end/48965
7944 * tree-cfg.c (edge_to_cases_cleanup): Return true.
7945 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
7946
7947 2011-05-13 Kai Tietz <ktietz@redhat.com>
7948
7949 * gimplify.c (gimplify_expr): Make sure operand is boolified.
7950 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
7951 compatible type for TRUTH_NOT_EXPR.
7952
7953 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
7954
7955 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
7956 (ix86_hard_regno_mode_ok): Change return value to bool. Use
7957 can_create_pseudo_p ().
7958
7959 2011-05-13 Richard Guenther <rguenther@suse.de>
7960
7961 PR lto/48978
7962 * gimple.c (iterative_hash_gimple_type): Revert change in
7963 pointer target and function result and argument hashing.
7964
7965 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
7966
7967 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
7968 (*movxf_internal_nointeger): Ditto.
7969 (*movdf_internal_rex64): Ditto.
7970 (*movdf_internal): Ditto.
7971 (*movdf_internal_nointeger): Ditto.
7972 (*movsf_internal): Ditto.
7973 (sincos splitters): Use can_create_pseudo ().
7974
7975 2011-05-13 Joseph Myers <joseph@codesourcery.com>
7976
7977 * config/i386/i386-opts.h: New.
7978 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
7979 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
7980 ix86_section_threshold): Remove.
7981 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
7982 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
7983 OPT_mbranch_cost_.
7984 (ix86_option_override_internal): Don't decode strings for options
7985 other than -march=, -mtune= and -mfpmath=. Don't allow for
7986 __attribute__ uses in remaining diagnostics for options with
7987 string arguments. Don't check for integer arguments being negative.
7988 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
7989 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7990 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
7991 ix86_branch_cost, ix86_section_threshold): Remove.
7992 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
7993 HeaderInclude.
7994 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
7995 but not Var.
7996 (masm=): Use Enum and Init.
7997 (asm_dialect): New Enum and EnumValue entries.
7998 (mbranch-cost=): Use UInteger.
7999 (mlarge-data-threshold=): Use UInteger and Init.
8000 (mcmodel=): Use Enum and Init.
8001 (cmodel): New Enum and EnumValue entries.
8002 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
8003 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
8004 mregparm=): Use UInteger.
8005 (mstringop-strategy=): Use Enum and Init.
8006 (stringop_alg): New Enum and EnumValue entries.
8007 (mtls-dialect=): Use Enum and Init.
8008 (tls_dialect): New Enum and EnumValue entries.
8009 (mabi=): Use Enum and Init.
8010 (calling_abi): New Enum and EnumValue entries.
8011 (mveclibabi=): Use Enum and Init.
8012 (ix86_veclibabi): New Enum and EnumValue entries.
8013
8014 2011-05-13 Nick Clifton <nickc@redhat.com>
8015
8016 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
8017 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
8018
8019 2011-05-13 Kai Tietz <ktietz@redhat.com>
8020
8021 PR middle-end/48984
8022 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
8023 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
8024 (gimple_boolify): Check for cast for boolean_type_node instead for
8025 BOOLEAN_TYPE.
8026
8027 2011-05-13 Richard Guenther <rguenther@suse.de>
8028
8029 PR tree-optimization/48172
8030 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
8031 multiplying by number of iterations for equal step.
8032 (vect_create_cond_for_alias_checks): Likewise.
8033
8034 2011-05-13 Andreas Schwab <schwab@redhat.com>
8035
8036 * configure.ac: Use AS_HELP_STRING throughout.
8037 * configure: Regenerate.
8038
8039 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
8040
8041 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
8042 (ix86_emit_restore_regs_using_mov): Likewise.
8043 (ix86_emit_restore_sse_regs_using_mov): Likewise.
8044
8045 2011-05-12 Anatoly Sokolov <aesok@post.ru>
8046
8047 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
8048 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
8049 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
8050 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
8051 RTX_OK_FOR_OLO10_P): ...here.
8052 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
8053 SYMBOLIC_CONST.
8054
8055 2011-05-12 Kai Tietz <ktietz@redhat.com>
8056
8057 * gimplify.c (gimple_boolify): Re-boolify expression
8058 arguments even if expression type is of kind BOOLEAN_TYPE.
8059 (gimplify_boolean_expr): Removed.
8060 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
8061 and XOR. Additional take care that we keep expression's type.
8062 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
8063 of TRUTH_AND|OR|XOR_EXPR.
8064
8065 2011-05-12 Jakub Jelinek <jakub@redhat.com>
8066
8067 PR tree-optimization/48975
8068 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
8069 on all bbs here and free and clear ifc_bbs at the end.
8070
8071 2011-05-12 Richard Guenther <rguenther@suse.de>
8072
8073 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
8074 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
8075 until after simple checks.
8076 (gimple_types_compatible_p): Likewise.
8077 (iterative_hash_gimple_type): Always hash pointer targets
8078 and function return and argument types.
8079 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
8080 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
8081 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
8082 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
8083 completely in the simple compare section.
8084 (gimple_register_canonical_type): Query the cache again after
8085 registering.
8086
8087 2011-05-12 Richard Guenther <rguenther@suse.de>
8088
8089 PR tree-optimization/48172
8090 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
8091 the number of iterations from the segment size calculation.
8092 (vect_create_cond_for_alias_checks): Adjust.
8093
8094 2011-05-12 Jakub Jelinek <jakub@redhat.com>
8095
8096 PR debug/48967
8097 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
8098 if validate_subreg fails.
8099
8100 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
8101
8102 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
8103 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
8104 early.
8105
8106 2011-05-12 DJ Delorie <dj@redhat.com>
8107
8108 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
8109 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
8110 created builtin into rx_builtins array.
8111 (rx_builtin_decl): New function.
8112 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
8113
8114 2011-05-12 DJ Delorie <dj@redhat.com>
8115 Nick Clifton <nickc@redhat.com>
8116
8117 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
8118 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
8119 (rx_is_legitimate_address): Add pre-decrement and post-increment
8120 addressing in HImode and QImode. Fix test for out of range
8121 REG+INT addressing.
8122 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
8123 (rx_align_for_label): Test label before extracting its usage count.
8124 (rx_adjust_insn_lengths): Fix selection of insn codes.
8125 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
8126
8127 2011-05-11 Jason Merrill <jason@redhat.com>
8128
8129 * tree.c (type_hash_canon): Use struct tree_type_non_common.
8130
8131 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
8132
8133 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
8134 reindent the subsequent block.
8135
8136 2011-05-11 Satoru Takabayashi <satorux@google.com>
8137 Paul Pluzhnikov <ppluzhnikov@google.com>
8138
8139 * doc/install.texi (Configuration): Document --with-linker-hash-style.
8140 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
8141 * config.in: Add LINKER_HASH_STYLE.
8142 * configure.ac: Add --with-linker-hash-style.
8143 * configure: Regenerate.
8144
8145 2011-05-11 Richard Guenther <rguenther@suse.de>
8146
8147 PR middle-end/48964
8148 * gimple.c (iterative_hash_canonical_type): Fix typo.
8149
8150 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
8151
8152 * config/i386/i386.c (legitimize_tls_address)
8153 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8154 expanders directly for TARGET_GNU2_TLS. Determine pic and
8155 __tls_get_addr symbol reference here. Update call to
8156 gen_tls_global_dynamic_{32,64} for added arguments.
8157 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8158 expanders directly for TARGET_GNU2_TLS. Determine
8159 __tls_get_addr symbol reference here. Update call to
8160 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
8161 unique UNSPEC REG_EQUIV to libcall block.
8162 (ix86_tls_get_addr): Declare static.
8163 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
8164 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
8165 Do not determine pic and __tls_get_addr symbol reference here. Do not
8166 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
8167 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
8168 (tls_global_dynamic_64): Add operand 2. Do not determine
8169 __tls_get_addr symbol reference here. Do not call
8170 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
8171 (tls_local_dynamic_base64): Ditto for operand 1.
8172
8173 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
8174
8175 * function.c (expand_function_start): Initialize stack_check_probe_note
8176 only if the generic stack checking mechanism is used.
8177
8178 2011-05-11 Richard Guenther <rguenther@suse.de>
8179
8180 PR tree-optimization/15256
8181 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
8182 (A & B) | C, combine (A op CST1) op CST2.
8183 (tree_ssa_forward_propagate_single_use_vars): Only bother to
8184 visit assigns that have uses.
8185
8186 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
8187
8188 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
8189 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
8190 (unpack_ts_type_common_value_fields): ...this. Update comment.
8191 (unpack_value_fields): Adjust for renaming.
8192 (lto_input_ts_type_tree_pointers): Split into...
8193 (lto_input_ts_type_common_tree_pointer): ...this and...
8194 (lto_input_ts_type_non_common_tree_pointers): ...this.
8195 (lto_input_tree_pointers): Adjust for above split.
8196 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
8197 (pack_ts_type_common_value_fields): ...this. Update comment.
8198 (lto_output_ts_type_tree_pointers): Split into...
8199 (lto_output_ts_type_common_tree_pointers): ...this and...
8200 (lto_output_ts_type_non_common_tree_pointers): ...this.
8201 (lto_output_tree_pointers): Adjust for above split.
8202 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
8203 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
8204 * stor-layout.c (vector_type_mode): Adjust location of mode field.
8205 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
8206 Define.
8207 (struct tree_type): Split into...
8208 (struct tree_type_common: ...this and...
8209 (struct tree_type_with_lang_specific): ...this and...
8210 (struct tree_type_non_common): ...this. Adjust accessor macros
8211 accordingly.
8212 (TYPE_VALUES_RAW): Define.
8213 (union tree_node): Update for above changes.
8214 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
8215 TS_TYPE_NON_COMMON.
8216 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
8217 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
8218 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
8219 * treestructu.def (TS_TYPE): Remove.
8220 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
8221 Define.
8222
8223 2011-05-11 Jakub Jelinek <jakub@redhat.com>
8224
8225 PR debug/48159
8226 * tree-ssa.c (reset_debug_uses): New function.
8227 * tree-flow.h (reset_debug_uses): New prototype.
8228 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
8229 * tree-loop-distribution.c (generate_loops_for_partition): Call
8230 reset_debug_uses on the stmts that will be removed. Keep around
8231 all debug stmts, don't count them as bits in partition bitmap.
8232 (generate_builtin): Don't count debug stmts or labels as bits in
8233 partition bitmap.
8234
8235 2011-05-11 Richard Guenther <rguenther@suse.de>
8236
8237 * gimple.c (gimple_type_hash_1): Merge with ...
8238 (gimple_type_hash): ... this.
8239 (gtc_visit): Remove mode parameter and simplify accordingly.
8240 (gimple_types_compatible_p_1): Likewise.
8241 (gimple_types_compatible_p): Likewise.
8242 (iterative_hash_gimple_type): Likewise.
8243 (visit): Likewise.
8244 (gimple_type_eq): Adjust.
8245
8246 2011-05-11 Revital Eres <revital.eres@linaro.org>
8247
8248 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
8249 enters the branch create an anti edge in the opposite direction
8250 to prevent the creation of reg-moves.
8251 * modulo-sched.c: Adjust comment to reflect the fact we are
8252 scheduling closing branch.
8253 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
8254 (stage_count): New field in struct partial_schedule.
8255 (calculate_stage_count): New function.
8256 (normalize_sched_times): Rename to reset_sched_times and handle
8257 incrementing the sched time of the nodes by a constant value
8258 passed as parameter.
8259 (duplicate_insns_of_cycles): Skip closing branch.
8260 (sms_schedule_by_order): Schedule closing branch.
8261 (ps_insn_find_column): Handle closing branch.
8262 (sms_schedule): Call reset_sched_times and adjust the code to
8263 support scheduling of the closing branch.
8264 (ps_insert_empty_row): Update calls to normalize_sched_times
8265 and rotate_partial_schedule functions.
8266
8267 2011-05-11 Richard Guenther <rguenther@suse.de>
8268
8269 PR middle-end/48953
8270 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
8271
8272 2011-05-11 Joseph Myers <joseph@codesourcery.com>
8273
8274 * opts.c (finish_options): Move warning settings from process_options.
8275 * toplev.c (process_options): Move warning settings to finish_options.
8276
8277 2011-05-11 Richard Guenther <rguenther@suse.de>
8278
8279 PR tree-optimization/18041
8280 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
8281 (simplify_bitwise_binary): ... this. Handle operand conversions
8282 by applying them to the result instead.
8283 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
8284
8285 2011-05-11 Richard Guenther <rguenther@suse.de>
8286
8287 * gimple.c (gimple_canonical_types_compatible_p): Split out
8288 from gimple_types_compatible_p and friends. Do not recurse
8289 to pointed-to types.
8290 (gimple_canonical_type_eq): Use it.
8291 (iterative_hash_canonical_type): Split out from
8292 iterative_hash_gimple_type and friends. Do not recurse
8293 to pointed-to types.
8294 (gimple_canonical_type_hash): Use it, allocate the hash here.
8295
8296 2011-05-11 Revital Eres <revital.eres@linaro.org>
8297
8298 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
8299 recognizing doloop.
8300
8301 2011-05-11 Revital Eres <revital.eres@linaro.org>
8302
8303 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
8304 instead of PREV_INSN.
8305
8306 2011-05-11 Revital Eres <revital.eres@linaro.org>
8307
8308 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
8309 * loop-doloop.c (doloop_condition_get): Likewise.
8310 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
8311 (doloop_end): New.
8312 * config/arm/arm.md (*addsi3_compare0): Remove "*".
8313
8314 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
8315
8316 * tree.def (CASE_LABEL_EXPR): Add an operand.
8317 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
8318
8319 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8320
8321 * c-decl.c (c_override_global_bindings_to_false): Remove.
8322 (global_bindings_p): Don't check
8323 c_override_global_bindings_to_false.
8324 * c-tree.h (c_override_global_bindings_to_false): Remove.
8325 * c-typeck.c (composite_type): Don't set
8326 c_override_global_bindings_to_false.
8327
8328 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
8329
8330 PR target/48857, 48495
8331 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
8332 (VSX_MODE): Ditto.
8333 (VSX_MOVE_MODE): Ditto.
8334 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
8335 VSX vector types. Add V2DImode.
8336 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
8337 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
8338 (MODES_TIEABLE_P): Ditto.
8339
8340 * config/rs6000/rs6000.c (rs6000_emit_move): Use
8341 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
8342 VSX_VECTOR_MODE.
8343 (init_cumulative_args): Ditto.
8344 (rs6000_function_arg_boundary): Ditto.
8345 (rs6000_function_arg_advance_1): Ditto.
8346 (rs6000_function_arg): Ditto.
8347 (rs6000_function_ok_for_sibcall): Ditto.
8348 (emit_frame_save): Ditto.
8349 (rs6000_function_value): Ditto.
8350 (rs6000_libcall_value): Ditto.
8351
8352 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8353
8354 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8355 i386/darwin-lib.h to $libgcc_tm_file.
8356 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
8357
8358 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8359
8360 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
8361
8362 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8363
8364 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
8365 * config/rs6000/rs6000-tables.opt: New file (generated).
8366 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
8367 rs6000/rs6000-tables.opt to extra_options.
8368 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
8369 * config/rs6000/rs6000.c (rs6000_select): Remove.
8370 (processor_target_table): Move contents to rs6000-cpus.def.
8371 (darwin_rs6000_override_options): Check
8372 global_options_set.x_rs6000_cpu_index instead of
8373 rs6000_select[1].string.
8374 (rs6000_option_override_internal): Likewise.
8375 (rs6000_handle_option): Don't assert that global structures are in
8376 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
8377 (rs6000_default_cpu): New variable.
8378 (rs6000_file_start): Set it instead of local default_cpu. Check
8379 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
8380 global_options_set.x_rs6000_tune_index instead of rs6000_select.
8381 (rs6000_darwin_file_start): Check rs6000_default_cpu and
8382 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
8383 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
8384 rs6000_select): Remove.
8385 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
8386 Remove.
8387 (mcpu=, mtune=): Use Var, Init, Enum and Save.
8388 * config/rs6000/t-rs6000
8389 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
8390 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8391 global_options_set.x_rs6000_cpu_index instead of
8392 rs6000_select[1].string.
8393 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8394 global_options_set.x_rs6000_cpu_index instead of
8395 rs6000_select[1].string.
8396
8397 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8398
8399 * config.gcc (libgcc_tm_file): Define instead of including files
8400 from ../../libgcc/config/ in tm_file.
8401 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
8402 * configure: Regenerate.
8403 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
8404 libgcc_tm.h, cs-libgcc_tm.h): New.
8405 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
8406 (clean): Remove libgcc_tm.h.
8407 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
8408 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
8409 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
8410
8411 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
8412
8413 PR target/48896
8414 * config/avr/avr.c (avr_ret_register): Return unsigned int
8415 instead of int.
8416 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
8417 it to avr_libcall_value.
8418 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
8419 expand_expr.
8420 (avr_expand_binop_builtin): Ditto.
8421 (avr_expand_unop_builtin): Ditto.
8422
8423 2011-05-10 DJ Delorie <dj@redhat.com>
8424
8425 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
8426 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
8427 * config/rx/rx.c (rx_align_for_label): Add label and
8428 uses_threshold parameters. Do not align when the label is not
8429 used enough.
8430 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
8431
8432 2011-05-10 Richard Guenther <rguenther@suse.de>
8433
8434 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
8435 a series of conversions and apply foldings similar to what
8436 fold-const does.
8437 (tree_ssa_forward_propagate_single_use_vars): Call it.
8438
8439 2011-05-10 Jakub Jelinek <jakub@redhat.com>
8440
8441 PR tree-optimization/48611
8442 PR tree-optimization/48794
8443 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
8444 referenced from RESX or EH_DISPATCH arguments.
8445
8446 PR debug/48928
8447 * dfp.c (decimal_to_decnumber): Handle conversion from
8448 dconst{1,2,m1,half}.
8449
8450 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8451
8452 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
8453 for !flag_prefer_avx128.
8454 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
8455
8456 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
8457
8458 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
8459 (fold_ternary_loc): Use expr_location_or.
8460
8461 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
8462
8463 PR debug/48853
8464 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
8465 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
8466 Pmode and mem_mode is not VOIDmode.
8467
8468 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
8469
8470 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
8471 TYPE_QUAL_RESTRICT): Convert to enum.
8472
8473 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8474
8475 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
8476 (const_pow2_1_to_8_operand): Ditto.
8477 (const_pow2_1_to_128_operand): Ditto.
8478 (const_pow2_1_to_32768_operand): Ditto.
8479 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
8480 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
8481 in insn constraint to check integer value of operand 3.
8482 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
8483
8484 (PINSR_MODE): New mode iterator.
8485 (sse2p4_1): New mode attribute.
8486 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
8487 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
8488 iterator. Use const_int_operand instead of
8489 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
8490 exact_log2 in insn constraint to check integer value of operand 3.
8491
8492 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8493
8494 * config/i386/sse.md (blendbits): Remove mode attribute.
8495 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
8496 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
8497 Check integer value of operand 3 in insn constraint.
8498
8499 2011-05-09 Richard Guenther <rguenther@suse.de>
8500
8501 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
8502 for diagnostics.
8503 (lto_symtab_merge): Likewise. Do not register types here.
8504 (lto_symtab_merge_decls_2): Likewise.
8505 (lto_symtab_merge_decls_1): Likewise.
8506 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
8507 * gimple.c (enum gtc_mode): Declare.
8508 (gimple_types_compatible_p): Make static.
8509
8510 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8511
8512 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
8513 temporary register to match Pmode.
8514
8515 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8516
8517 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
8518 and *vec_concatv4si_1_avx.
8519
8520 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8521
8522 PR rtl-optimization/48927
8523 * ira-conflicts.c (commutative_constraint_p): Use
8524 recog_data.alternative_enabled_p to disable alternatives where
8525 "enabled" attribute is false.
8526 (get_dup_num): Ditto.
8527 * ira-lives.c (single_reg_class): Ditto.
8528 (ira_implicitly_set_insn_hard_regs): Ditto.
8529
8530 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
8531
8532 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
8533 (dataflow_set_preserve_mem_locs): Likewise.
8534
8535 2011-05-09 Philipp Thomas <pth@suse.de>
8536
8537 * config/mep/mep.c (mep_validate_vliw): Syntax description
8538 should not be translated.
8539
8540 2011-05-09 Joseph Myers <joseph@codesourcery.com>
8541
8542 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
8543 * config/mips/mips-tables.opt: New file (generated).
8544 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
8545 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
8546 MIPS_ARCH_OPTION_NATIVE): Define.
8547 * config/mips/mips.c (mips_cpu_info_table): Move contents to
8548 mips-cpus.def.
8549 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
8550 mips_parse_cpu): Remove.
8551 (mips_cpu_info_from_opt, mips_default_arch): New.
8552 (mips_handle_option): Don't assert that global structures are in
8553 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
8554 (mips_option_override): Use new variables and functions to set
8555 state of these options. Use strcmp to check for individual CPU names.
8556 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
8557 definition.
8558 * config/mips/mips.opt (march=): Use ToLower and Enum.
8559 (mips): Use ToLower, Enum and Var.
8560 (mtune=): Use ToLower and Enum.
8561 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
8562
8563 2011-05-08 Jan Hubicka <jh@suse.cz>
8564
8565 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
8566 Arrange type pairs to be UID ordered.
8567 (gimple_lookup_type_leader): Make inline.
8568
8569 2011-05-09 Nick Clifton <nickc@redhat.com>
8570
8571 PR target/48899
8572 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
8573 PROCESSOR_DEFAULT.
8574
8575 PR target/48897
8576 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
8577 variable 's'.
8578
8579 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
8580
8581 * combine.c (simplify_comparison): Abstract out parts into...
8582 (simplify_compare_const): ... new function.
8583 (try_combine): Generalize parallel arithmetic/compare combining
8584 to call simplify_compare_const() and CANONICALIZE_COMPARE().
8585
8586 2011-05-08 Jan Hubicka <jh@suse.cz>
8587
8588 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
8589 (cgraph_create_virtual_clone): Call hooks once virtual clone
8590 is finished.
8591 * cgraph.h (cgraph_clone_node): Update prototype.
8592 * ipa-cp.c (ipcp_estimate_growth): Use
8593 estimate_ipcp_clone_size_and_time.
8594 * ipa-inline-transform.c (clone_inlined_nodes): Update.
8595 * lto-cgraph.c (input_node): Update.
8596 * ipa-inline.c (recursive_inlining): Update.
8597 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
8598 (evaluate_conditions_for_known_args): Break out from ...
8599 (evaluate_conditions_for_edge): ... here.
8600 (evaluate_conditions_for_ipcp_clone): New function.
8601 (inline_node_duplication_hook): Update clone summary based
8602 on parameter map.
8603 (estimate_callee_size_and_time): Rename to ...
8604 (estimate_node_size_and_time): take NODE instead of EDGE;
8605 take POSSIBLE_TRUTHS as argument.
8606 (estimate_callee_size_and_time): Update.
8607 (estimate_ipcp_clone_size_and_time): New function.
8608 (do_estimate_edge_time): Update.
8609
8610 2011-05-08 Richard Guenther <rguenther@suse.de>
8611
8612 PR middle-end/48908
8613 PR middle-end/48905
8614 * expmed.c (expand_shift_1): Compute adjusted constant shift
8615 amount manually.
8616
8617 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
8618
8619 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
8620
8621 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
8622
8623 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
8624
8625 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
8626
8627 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
8628
8629 2011-05-07 Jan Hubicka <jh@suse.cz>
8630
8631 * ipa-inline-transform.c (inline_call): Account when program size
8632 decreases.
8633 * ipa-inline.c (relative_time_benefit): New function.
8634 (edge_badness): Reorganize to be power 2 based; fix thinko when
8635 computing badness for negative growth; update comments to match
8636 reality; better dumps.
8637
8638 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
8639
8640 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
8641 type to bool and adjust comment.
8642 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
8643 (fold_mathfn_compare): Remove calls to global_bindings_p.
8644 (fold_inf_compare): Likewise.
8645 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
8646 * c-tree.h (global_bindings_p): Adjust prototype.
8647 * c-decl.c (global_bindings_p): Return bool and simplify.
8648
8649 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
8650
8651 PR tree-optimization/48837
8652 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
8653 when accumulator transformation is performed.
8654
8655 2011-05-06 Jan Hubicka <jh@suse.cz>
8656
8657 * i386.h (ix86_tune_indices): Add
8658 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
8659 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
8660 * i386.c (initial_ix86_tune_features): Add
8661 X86_SOFTARE_PREFETCHING_BENEFICIAL.
8662 (software_prefetching_beneficial_p): Remove predicate.
8663 (ix86_option_override_internal): Use new macro.
8664
8665 2011-05-06 Jan Hubicka <jh@suse.cz>
8666
8667 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
8668
8669 2011-05-06 Jan Hubicka <jh@suse.cz>
8670
8671 * cgraph.c (cgraph_add_thunk): Create real function node instead
8672 of alias node; finalize it and mark needed/reachale; arrange visibility
8673 to be right and add it into the corresponding same comdat group list.
8674 (dump_cgraph_node): Dump thunks.
8675 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
8676 cgraph_function_with_gimple_body_p,
8677 cgraph_first_function_with_gimple_body,
8678 cgraph_next_function_with_gimple_body): New functions.
8679 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
8680 New macros.
8681 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
8682 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
8683 * cgraphunit.c (cgraph_finalize_function): Only look into possible
8684 devirtualization when optimizing.
8685 (verify_cgraph_node): Verify thunks.
8686 (cgraph_analyze_function): Analyze thunks.
8687 (cgraph_mark_functions_to_output): Output thunks only in combination
8688 with function they are assigned to.
8689 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
8690 alias into normal node.
8691 (assemble_thunks): New functoin.
8692 (cgraph_expand_function): Use it.
8693 * lto-cgraph.c (lto_output_node): Stream thunks.
8694 (input_overwrite_node): Stream in thunks.
8695 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
8696 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
8697 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
8698 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
8699 (inline_analyze_function): Do not care about thunk jump functions.
8700 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
8701 * ipa-prop.c (ipa_prop_write_jump_functions): Use
8702 cgraph_function_with_gimple_body_p.
8703 * passes.c (do_per_function_toporder): Use
8704 cgraph_function_with_gimple_body_p.
8705 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
8706 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
8707 (function_called_by_processed_nodes_p): Likewise.
8708
8709 2011-05-06 Joseph Myers <joseph@codesourcery.com>
8710
8711 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
8712 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
8713 entries.
8714 (mabi=): Replace with separate entries for mabi=altivec,
8715 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
8716 mabi=ieeelongdouble and mabi=ibmlongdouble.
8717 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
8718 check for -mabi=spe without SPE ABI support here.
8719 (rs6000_handle_option): Replace OPT_mabi_ handling with
8720 OPT_mabi_altivec and OPT_mabi_spe handling.
8721
8722 2011-05-06 Cary Coutant <ccoutant@google.com>
8723
8724 * dwarf2out.c (contains_subprogram_definition): New function.
8725 (should_move_die_to_comdat): Call it.
8726
8727 2011-05-06 Jeff Law <law@redhat.com>
8728
8729 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
8730 remove_ctrl_stmt_and_useless_edges.
8731 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
8732 (fixup_template_block, thread_single_edge): Likewise.
8733 (mark_threaded_blocks): Use THREAD_TARGET.
8734
8735 2011-05-06 Alan Modra <amodra@gmail.com>
8736
8737 PR target/48900
8738 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
8739 const0_rtx as the arg to the dummy __tls_get_addr libcall.
8740
8741 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
8742
8743 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
8744 constraint modifier to "r".
8745
8746 2011-05-06 Joseph Myers <joseph@codesourcery.com>
8747
8748 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
8749 fall through for OPT_mcmodel_.
8750
8751 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8752
8753 * config/s390/s390.c (s390_asm_trampoline_template): Comment
8754 instruction sizes.
8755 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
8756
8757 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8758
8759 PR target/47930
8760 * config/arm/arm.opt (marm): Document it.
8761 (mthumb): Reject negative variant.
8762
8763 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
8764
8765 PR target/48898
8766 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8767 Fix typo in "ccvt" variable name.
8768
8769 2011-05-06 Tristan Gingold <gingold@adacore.com>
8770
8771 PR target/48895
8772 * config/vms/vms-ar.c (main): Remove cwd variable.
8773
8774 2011-05-06 Jakub Jelinek <jakub@redhat.com>
8775
8776 PR debug/48902
8777 * var-tracking.c (prepare_call_arguments): Move else before #endif.
8778
8779 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
8780
8781 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
8782 * gimplify.c (gimplify_switch_expr): Likewise.
8783 * omp-low.c (expand_omp_sections): Likewise.
8784 * tree-eh.c (lower_try_finally_switch): Likewise.
8785 (lower_eh_dispatch): Likewise.
8786 * tree.h (build_case_label): Declare.
8787 * tree.c (build_case_label): Define.
8788
8789 2011-05-05 Jason Merrill <jason@redhat.com>
8790
8791 PR c++/40975
8792 * tree-inline.c (copy_tree_r): Use copy_statement_list.
8793 (copy_statement_list): Don't recurse.
8794 * stor-layout.c (copy_self_referential_tree_r): Don't allow
8795 STATEMENT_LIST.
8796
8797 2011-05-05 Joseph Myers <joseph@codesourcery.com>
8798
8799 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
8800 through from -mfpu= handling.
8801 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
8802
8803 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
8804
8805 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
8806 POST_MODIFY.
8807
8808 2011-05-05 Steve Ellcey <sje@cup.hp.com>
8809
8810 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
8811 for 11.31.
8812 (hppa[12]*-*-hpux11*): Ditto.
8813 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
8814 * config/ia64/hpux-unix2003.h: New.
8815 * config/pa/pa-hpux1131.opt: New.
8816 * config/pa/pa-hpux1131.h: New.
8817 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
8818 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
8819 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
8820
8821 2011-05-05 Jakub Jelinek <jakub@redhat.com>
8822
8823 PR debug/48853
8824 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
8825 instead of mode as 3rd argument to recursive call.
8826 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
8827 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
8828 VOIDmode.
8829 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
8830 don't give up if mode is Pmode and mem_mode is not VOIDmode.
8831 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
8832 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
8833
8834 2011-05-05 Julian Brown <julian@codesourcery.com>
8835
8836 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
8837 parenthesis in D-register case.
8838
8839 2011-05-05 Joseph Myers <joseph@codesourcery.com>
8840
8841 * opt-functions.awk (var_type_struct): Handle Enum options.
8842 * optc-gen.awk: Don't check range of variables of character type.
8843 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
8844 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
8845 rs6000_sdata_name, rs6000_explicit_options): Remove.
8846 (rs6000_option_override_internal): Check for -malign-power here.
8847 Use global_options_set instead of rs6000_explicit_options.
8848 (rs6000_parse_fpu_option): Remove.
8849 (rs6000_handle_option): Access variables via opts and opts_set
8850 pointers. Use error_at and warning_at. Add fall-through
8851 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
8852 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
8853 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
8854 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
8855 here. Don't use rs6000_parse_fpu_option.
8856 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
8857 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
8858 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
8859 (mrecip=): Use Var.
8860 (mspe): Use Var and Save.
8861 (mtraceback=): Use Enum and Var.
8862 (rs6000_traceback_type): New Enum and EnumValue entries.
8863 (mfloat-gprs=): Use Enum, Var and Save.
8864 (rs6000_float_gprs): New Enum and EnumValue entries.
8865 (mlong-double-): use Var and Save.
8866 (msched-costly-dep=, minsert-sched-nops=): Use Var.
8867 (malign-): Use Enum and Var.
8868 (rs6000_alignment_flags): New Enum and EnumValue entries.
8869 (mfpu=): Use Enum.
8870 (fpu_type_t): New Enum and EnumValue entries.
8871 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
8872 global_options_set instead of rs6000_explicit_options.
8873 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
8874 global_options_set instead of rs6000_explicit_options.
8875 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
8876 global_options_set instead of rs6000_explicit_options.
8877 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
8878 global_options_set instead of rs6000_explicit_options.
8879 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
8880 global_options_set instead of rs6000_explicit_options.
8881 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
8882 global_options_set instead of rs6000_explicit_options.
8883 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
8884 definition.
8885 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
8886 global_options_set instead of rs6000_explicit_options.
8887 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
8888 (rs6000_cmodel): New Enum and EnumValue entries.
8889 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
8890 global_options_set instead of rs6000_explicit_options.
8891 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
8892 (mtls-size=): Use Enum and Var.
8893 (rs6000_tls_size): New Enum and EnumValue entries.
8894
8895 2011-05-05 Michael Matz <matz@suse.de>
8896
8897 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
8898 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
8899 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
8900 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
8901 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
8902 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
8903 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
8904 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
8905 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
8906 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
8907 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
8908 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
8909 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
8910 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
8911 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
8912 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
8913
8914 2011-05-05 Richard Guenther <rguenther@suse.de>
8915
8916 * expmed.c (expand_variable_shift): Rename to ...
8917 (expand_shift_1): ... this. Take an expanded shift amount.
8918 For rotates recurse directly not building trees for the shift amount.
8919 (expand_variable_shift): Wrap around expand_shift_1.
8920 (expand_shift): Adjust.
8921
8922 2011-05-05 Jakub Jelinek <jakub@redhat.com>
8923
8924 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
8925
8926 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
8927
8928 * tree.h (get_pending_sizes): Remove prototype.
8929 (put_pending_size): Likewise.
8930 (put_pending_sizes): Likewise.
8931 * stor-layout.c (pending_sizes): Delete.
8932 (get_pending_sizes): Likewise.
8933 (put_pending_size): Likewise.
8934 (put_pending_sizes): Likewise.
8935 (variable_size): Do not call put_pending_size and tidy up.
8936 * function.h (struct function): Remove dont_save_pending_sizes_p.
8937 * lto-streamer-in.c (input_function): Do not stream it.
8938 * lto-streamer-out.c (output_function): Likewise.
8939 * tree-inline.c (initialize_cfun): Do not copy it.
8940 * c-decl.c (store_parm_decls): Do not set it.
8941 * omp-low.c (create_task_copyfn): Likewise.
8942 * tree-optimize.c (tree_rest_of_compilation): Likewise.
8943
8944 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
8945
8946 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
8947 conditions.
8948 (*movdf_internal): Ditto.
8949 (*movdf_internal_nointeger): Ditto.
8950 (*movsf_internal): Ditto.
8951
8952 2011-05-05 Joseph Myers <joseph@codesourcery.com>
8953
8954 * c-decl.c (finish_decl): Don't call get_pending_sizes.
8955 (grokparm): Add parameter expr. Pass it to grokdeclarator.
8956 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
8957 (c_variable_size): Remove.
8958 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
8959 call put_pending_sizes.
8960 (get_parm_info): Add parameter expr. Use it to set
8961 arg_info->pending_sizes.
8962 (store_parm_decls): Use arg_info->pending_sizes instead or calling
8963 get_pending_sizes.
8964 * c-parser.c (c_parser_parms_declarator): Update call to
8965 c_parser_parms_list_declarator.
8966 (c_parser_parms_list_declarator): Take parameter expr. Update
8967 call to push_parm_decl. Update recursive call. Don't call
8968 get_pending_sizes. Update calls to get_parm_info.
8969 (c_parser_objc_method_definition): Update calls to
8970 c_parser_objc_method_decl and objc_start_method_definition.
8971 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
8972 (c_parser_objc_method_decl): Add parameter expr. Update call to
8973 grokparm.
8974 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
8975 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
8976 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
8977
8978 2011-05-05 Michael Hope <michael.hope@linaro.org>
8979
8980 PR pch/45979
8981 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
8982 __ARM_EABI__ hosts.
8983
8984 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8985
8986 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
8987 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
8988 (spu_output_mi_thunk): New function.
8989
8990 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8991
8992 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
8993 targetm.asm_out.print_operand.
8994 * config/sol2.c: Include target.h.
8995
8996 2011-05-04 Jan Hubicka <jh@suse.cz>
8997
8998 * ipa-inline.c (reset_edge_caches): New function.
8999 (update_caller_keys): Add check_inlinablity_for; do not
9000 reset edge caches; remove now unnecesary loop.
9001 (update_callee_keys): Add comments; reset node_growth_cache of callee.
9002 (update_all_callee_keys): Likewise.
9003 (inline_small_functions): Sanity check cache; update code
9004 recomputing it.
9005
9006 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
9007
9008 PR rtl-optimization/47612
9009 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
9010 as the last insn of the sequence to be moved.
9011
9012 2011-05-04 Tobias Burnus <burnus@net-b.de>
9013
9014 PR fortran/48864
9015 * doc/invoke.texi (Ofast): Document that it
9016 enables Fortran's -fno-protect-parens.
9017
9018 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
9019
9020 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
9021
9022 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
9023
9024 * stor-layout.c (variable_size): Do not issue errors.
9025
9026 2011-05-04 Richard Guenther <rguenther@suse.de>
9027
9028 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
9029 for array-ref indices.
9030 (tree_coverage_counter_addr): Likewise.
9031 (build_fn_info_type): Use size_int for index types.
9032 (build_gcov_info): Likewise.
9033
9034 2011-05-04 Richard Guenther <rguenther@suse.de>
9035
9036 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
9037 to build_int_cst.
9038 * c-typeck.c (really_start_incremental_init): Use bitsize_int
9039 for constructor indices.
9040 (push_init_level): Likewise.
9041
9042 2011-05-04 Richard Guenther <rguenther@suse.de>
9043
9044 * explow.c (promote_mode): Move variable declarations before code.
9045
9046 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
9047
9048 * tree.h (build_function_type_array): Declare.
9049 (build_varargs_function_type_array): Declare.
9050 (build_function_type_vec, build_varargs_function_type_vec): Define.
9051 * tree.c (build_function_type_array_1): New function.
9052 (build_function_type_array): New function.
9053 (build_varargs_function_type_array): New function.
9054
9055 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
9056
9057 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
9058 before setting STMT_VINFO_TYPE.
9059
9060 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9061
9062 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
9063 instead of spu_pass_by_reference.
9064
9065 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9066
9067 * calls.c (emit_library_call_value_1): Invoke
9068 promote_function_mode hook on libcall arguments.
9069 * explow.c (promote_function_mode, promote_mode): Handle TYPE
9070 argument being NULL.
9071 * targhooks.c (default_promote_function_mode): Lisewise.
9072 * config/s390/s390.c (s390_promote_function_mode): Likewise.
9073 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
9074
9075 * doc/tm.texi: Document that TYPE argument might be NULL.
9076
9077 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9078
9079 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
9080
9081 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9082
9083 From Bernd Schmidt
9084 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
9085
9086 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9087
9088 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
9089 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
9090 Move ...
9091 * mips-tfile.c: ... here.
9092 Don't include coretypes.h, tm.h, filenames.h.
9093 (saber_stop): Remove definition and all calls.
9094 [__SABER__]: Remove.
9095 (__LINE__): Remove default.
9096 (Size_t, Ptrdiff_t): Remove definitions.
9097 Replace by size_t, ptrdiff_t.
9098 [!MIPS_DEBUGGING_INFO]: Remove.
9099 (SHASH_SIZE, THASH_SIZE): Remove defaults.
9100 (progname): Add const.
9101 (STATIC): Remove.
9102 Replace all uses by static.
9103 (ALIGN_SYMTABLE_OFFSET): Remove default.
9104 * mips-tdump.c: Don't include coretypes.h, tm.h.
9105 Remove !MIPS_IS_STAB guard.
9106 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
9107 $(TM_H), filenames.h dependencies.
9108 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
9109
9110 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9111
9112 From Jie Zhang
9113 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
9114 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
9115
9116 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9117
9118 From Bernd Schmidt
9119 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
9120 account and save/restore RETS.
9121 (PROFILE_BEFORE_PROLOGUE): Define.
9122 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
9123 the push insn to use predecrement.
9124
9125 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9126
9127 From Jie Zhang
9128 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
9129
9130 2011-05-04 Nick Clifton <nickc@redhat.com>
9131
9132 * config/mn10300/mn10300.c: Include cfgloop.h.
9133 (DUMP): New macro.
9134 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
9135 Lcc or a FLcc insn into the instruction stream.
9136 (mn10300_block_contains_call): New function. Returns true if the
9137 given basic block contains a CALL insn.
9138 (mn10300_loop_contains_call_insn): New function. Returns true if
9139 the given loop contains a CALL insn.
9140 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
9141 to use the SETLB and Lcc or FLcc insns.
9142 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
9143 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
9144 * config/mn10300/mn10300.opt (msetlb): New option. Used to
9145 disable the SETLB optimization.
9146 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
9147 __SETLB__ or __NO_SETLB__.
9148 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
9149 (movsf_internal): Handle MDR register.
9150 (cmpsi): Make visible.
9151 (setlb): New pattern.
9152 (Lcc): New pattern.
9153 (FLcc): New pattern.
9154
9155 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
9156
9157 PR target/48860
9158 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
9159 for reg<->xmm moves.
9160 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
9161 (vec_concatv2di_rex64_sse): Ditto.
9162 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
9163 (*vec_extractv2di_1_rex64): Ditto.
9164
9165 Revert:
9166 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
9167
9168 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9169 reg<->xmm moves.
9170 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
9171
9172 2011-05-04 Richard Guenther <rguenther@suse.de>
9173
9174 * tree.h (int_const_binop): Remove notrunc argument.
9175 * fold-const.c (int_const_binop): Remove notrunc argument. Always
9176 create integer constants that are properly truncated.
9177 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
9178 (const_binop): Remove zero notrunc argument to int_const_binop.
9179 (size_binop_loc): Likewise.
9180 (fold_div_compare): Likewise.
9181 (maybe_canonicalize_comparison_1): Likewise.
9182 (fold_comparison): Likewise.
9183 (fold_binary_loc): Likewise.
9184 (multiple_of_p): Likewise.
9185 * expr.c (store_constructor): Likewise.
9186 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9187 (maybe_fold_stmt_addition): Likewise.
9188 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
9189 * stor-layout.c (layout_type): Likewise.
9190 * tree-data-ref.c (tree_fold_divides_p): Likewise.
9191 * tree-sra.c (build_ref_for_offset): Likewise.
9192 (build_user_friendly_ref_for_offset): Likewise.
9193 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
9194 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9195 * tree-ssa-loop-niter.c (inverse): Likewise.
9196 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9197 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
9198 * tree-switch-conversion.c (check_range): Likewise.
9199 (build_constructors): Likewise.
9200 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
9201 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
9202 (extract_range_from_assert): Likewise.
9203 (vrp_int_const_binop): Likewise.
9204 (extract_range_from_binary_expr): Likewise.
9205 (extract_range_from_unary_expr): Likewise.
9206 (check_array_ref): Likewise.
9207 (find_case_label_range): Likewise.
9208 (simplify_div_or_mod_using_ranges): Likewise.
9209 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
9210 comparing case labels for merging.
9211
9212 2011-05-03 Mark Wielaard <mjw@redhat.com>
9213
9214 * dwarf2out.c (debug_str_hash_forced): Removed.
9215 (gen_label_for_indirect_string): Removed.
9216 (get_debug_string_label): Removed.
9217 (AT_string_form): Generate label directly.
9218 (output_indirect_string): Test indirect_string_node for
9219 DW_FORM_strp instead of checking label and refcount.
9220 (prune_indirect_string): Removed.
9221 (prune_unused_types): Don't check debug_str_hash_forced or
9222 call prune_indirect_string.
9223
9224 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
9225
9226 PR other/48093
9227 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
9228
9229 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
9230
9231 PR debug/47994
9232 PR debug/47919
9233 * combine.c (try_combine): Skip debug insns at m_split tests.
9234
9235 2011-04-26 Mark Wielaard <mjw@redhat.com>
9236
9237 PR42288
9238 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
9239 when info_section_emitted.
9240
9241 2011-05-03 Joseph Myers <joseph@codesourcery.com>
9242
9243 * config/mips/mips-opts.h: New.
9244 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
9245 to mips-opts.h.
9246 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
9247 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
9248 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
9249 via opts pointer.
9250 * config/mips/mips.h (enum mips_code_readable_setting): Move to
9251 mips-opts.h.
9252 (mips_abi, mips_code_readable): Don't declare.
9253 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
9254 (mabi=): Use Enum and Var.
9255 (mips_abi): New Enum and EnumValue entries.
9256 (mcode-readable=): Use Enum and Var.
9257 (mips_code_readable_setting): New Enum and EnumValue entries.
9258 (mr10k-cache-barrier=): Use Enum and Var.
9259 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
9260
9261 2011-05-03 Jan Hubicka <jh@suse.cz>
9262
9263 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
9264 replace hash by pointer map.
9265 (cgraph_node_set_element_def, cgraph_node_set_element,
9266 const_cgraph_node_set_element, varpool_node_set_element_def,
9267 varpool_node_set_element, const_varpool_node_set_element): Remove.
9268 (free_cgraph_node_set, free_varpool_node_set): New function.
9269 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
9270 * tree-emutls.c: Free varpool node set.
9271 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
9272 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9273 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
9274 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9275 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
9276 Move here from ipa.c; implement using pointer_map
9277 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
9278 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9279 debug_cgraph_node_set, varpool_node_set_new,
9280 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9281 dump_varpool_node_set, debug_varpool_node_set):
9282 Move to ipa-uitls.c.
9283 * passes.c (ipa_write_summaries): Update.
9284
9285 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9286
9287 From Mike Frysinger:
9288 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
9289 bf542/bf544/bf547/bf548/bf549.
9290
9291 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
9292
9293 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
9294
9295 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9296
9297 From Bernd Schmidt:
9298 * config/bfin/bfin.md (MOVCC): New mode_macro.
9299 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
9300 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
9301 comments from generated assembly.
9302
9303 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9304
9305 From Bernd Schmidt
9306 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
9307 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
9308 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
9309 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
9310 * config/bfin/lib1funcs.asm (___muldi3): New function.
9311
9312 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9313
9314 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
9315 build_function_type_list instead of build_function_type.
9316 Rearrange initialization of `args' to do so.
9317
9318 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9319
9320 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
9321 instead of build_function_type.
9322
9323 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9324
9325 * config/rs6000/rs6000.c (spe_init_builtins): Call
9326 build_function_type_list instead of build_function_type.
9327 (paired_init_builtins, altivec_init_builtins): Likewise.
9328 (builtin_function_type): Likewise.
9329
9330 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9331
9332 * config/sh/sh.c (sh_media_init_builtins): Call
9333 build_function_type_list instead of build_function_type.
9334
9335 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9336
9337 * config/sparc/sparc.c (sparc_file_end): Call
9338 build_function_type_list instead of build_function_type.
9339
9340 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9341
9342 * config/alpha/alpha.c (alpha_init_builtins): Call
9343 build_function_type_list instead of build_function_type.
9344
9345 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9346
9347 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
9348 build_function_type_list instead of build_function_type.
9349
9350 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9351
9352 * config/iq2000/i2000.c (iq2000_init_builtins): Call
9353 build_function_type_list instead of build_function_type.
9354 Delete `endlink' variable.
9355
9356 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9357
9358 * config/avr/avr.c (avr_init_builtins): Call
9359 build_function_type_list instead of build_function_type.
9360
9361 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9362
9363 * config/picochip/picochip.c (picochip_init_builtins): Call
9364 build_function_type_list instead of build_function_type.
9365 Delete `endlink' variable.
9366
9367 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9368
9369 * config/bfin/bfin.c (bfin_init_builtins): Call
9370 build_function_type_list instead of build_function_type.
9371
9372 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9373
9374 From Bernd Schmidt
9375 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
9376 that's not CONST_INT. Seemingly redundant check is due to PR39768.
9377
9378 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9379
9380 From Jie Zhang:
9381 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
9382 libbffastfp overrides libgcc when -mfast-fp.
9383
9384 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9385
9386 Originally from Bernd Schmidt
9387 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
9388 * config/bfin/bfin.c (override_options): Test it and error if
9389 TARGET_FDPIC.
9390
9391 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9392
9393 Originally From Bernd Schmidt
9394 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
9395 FD-PIC.
9396
9397 2011-05-03 Jeff Law <law@redhat.com>
9398
9399 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
9400 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
9401 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
9402 than accessing AUX field directly. Free the AUX field before
9403 clearing it.
9404 (thread_block, thread_through_loop_header): Likewise.
9405 (thread_single_edge, mark_threaded_blocks): Likewise.
9406 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
9407 (register_jump_thread): Do not attempt to thread to a NULL edge.
9408
9409 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
9410
9411 * function.c (init_function_start): Call decide_function_section.
9412 * varasm.c (decide_function_section): New function.
9413 (assemble_start_function): When not using
9414 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
9415 or first_function_block_is_cold.
9416 * rtl.h (decide_function_section): Declare.
9417
9418 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
9419 Jakub Jelinek <jakub@redhat.com>
9420
9421 PR target/48774
9422 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
9423 only succeed if req_mode is the same as set_mode.
9424
9425 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
9426
9427 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
9428 * genemit.c (gen_exp): Handle RETURN.
9429 * emit-rtl.c (verify_rtx_sharing): Likewise.
9430 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
9431 * rtl.c (copy_rtx): RETURN is shared.
9432 * rtl.h (enum global_rtl_index): Add GR_RETURN.
9433 (ret_rtx): New.
9434 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
9435 * config/s390/s390.c (s390_emit_epilogue): Likewise.
9436 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
9437 * config/cris/cris.c (cris_expand_return): Likewise.
9438 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
9439 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
9440 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
9441 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
9442 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
9443 Likewise.
9444 * config/v850/v850.c (expand_epilogue): Likewise.
9445 * config/bfin/bfin.c (bfin_expand_call): Likewise.
9446 * config/arm/arm.md (epilogue): Likewise.
9447 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
9448 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
9449 variable to ret_reg.
9450
9451 2011-05-03 Richard Guenther <rguenther@suse.de>
9452
9453 PR lto/48846
9454 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
9455 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
9456 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9457
9458 2011-05-03 Richard Guenther <rguenther@suse.de>
9459
9460 * c-decl.c (grokdeclarator): Instead of looking at
9461 TREE_OVERFLOW check if the constant fits in the index type.
9462
9463 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9464
9465 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
9466 (vec_store_lanes<mode><mode>): Likewise.
9467
9468 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9469
9470 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
9471 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
9472 convert_optab_index values.
9473 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
9474 * genopinit.c (optabs): Initialize the new optabs.
9475 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
9476 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
9477 (expand_STORE_LANES): New functions.
9478 * tree.h (build_array_type_nelts): Declare.
9479 * tree.c (build_array_type_nelts): New function.
9480 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
9481 (vect_model_load_cost): Likewise.
9482 (vect_store_lanes_supported, vect_load_lanes_supported)
9483 (vect_record_strided_load_vectors): Declare.
9484 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
9485 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
9486 (vect_transform_strided_load): Split out statement recording into...
9487 (vect_record_strided_load_vectors): ...this new function.
9488 * tree-vect-stmts.c (create_vector_array, read_vector_array)
9489 (write_vector_array, create_array_ref): New functions.
9490 (vect_model_store_cost): Add store_lanes_p argument.
9491 (vect_model_load_cost): Add load_lanes_p argument.
9492 (vectorizable_store): Try to use store-lanes functions for
9493 interleaved stores.
9494 (vectorizable_load): Likewise load-lanes and loads.
9495 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
9496 to vect_model_store_cost.
9497 (vect_build_slp_tree): Likewise vect_model_load_cost.
9498
9499 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9500
9501 * hooks.h (hook_bool_mode_uhwi_false): Declare.
9502 * hooks.c (hook_bool_mode_uhwi_false): New function.
9503 * target.def (array_mode_supported_p): New hook.
9504 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
9505 * doc/tm.texi: Regenerate.
9506 * stor-layout.c (mode_for_array): New function.
9507 (layout_type): Use it.
9508 * config/arm/arm.c (arm_array_mode_supported_p): New function.
9509 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
9510
9511 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
9512
9513 PR target/48723
9514 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
9515 for -fstack-check if the size to allocate is negative.
9516
9517 2011-05-02 Lawrence Crowl <crowl@google.com>
9518
9519 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
9520 (timevar_cond_start): New for starting a timer only when it is not
9521 already running.
9522 (timevar_cond_stop): New for stopping a timer when it was not already
9523 running.
9524
9525 * timevar.c (timevar_stop): Enable start/stop timers to start again.
9526 (timevar_cond_start): New as above.
9527 (timevar_cond_stop): New as above.
9528
9529 * timevar.def: Add start/stop timers for compiler phases,
9530 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
9531 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
9532 and TV_PHASE_FINALIZE.
9533 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
9534 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
9535 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
9536 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
9537 Make unused TV_OVERLOAD into a start/stop timer.
9538
9539 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
9540 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
9541 to indicate that they are start/stop timers.
9542
9543 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
9544 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
9545 Move initialization to do_compile.
9546 (do_compile): Add initialization from above.
9547 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
9548
9549 * c-decl.c (c_write_global_declarations): Add start/stop of
9550 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
9551
9552 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
9553 or TV_PARSE_INLINE, as appropriate.
9554 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
9555 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
9556
9557 2011-05-02 Jason Merrill <jason@redhat.com>
9558
9559 PR c++/40975
9560 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
9561
9562 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
9563
9564 PR c/35445
9565 * c-decl.c (finish_decl): Only create a composite if the types are
9566 compatible.
9567
9568 2011-05-02 Joseph Myers <joseph@codesourcery.com>
9569
9570 * config/fr30/fr30-protos.h (Mmode): Don't define.
9571 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
9572 definition where used.
9573 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
9574 define. Expand definitions where used.
9575 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
9576 Expand definitions where used.
9577 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
9578 rx_function_arg, rx_function_arg_advance,
9579 rx_function_arg_boundary): Expand definitions of those macros.
9580 * config/v850/v850-protos.h (Mmode): Don't define. Expand
9581 definition where used.
9582
9583 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
9584
9585 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9586 reg<->xmm moves.
9587 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
9588 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
9589 with *movv2sf_internal_rex64_avx.
9590 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
9591 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
9592 Use %v prefix in insn mnemonic to handle TARGET_AVX.
9593 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
9594 "vex" in "prefix" attribute calculation.
9595 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
9596
9597 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
9598
9599 PR target/47951
9600 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
9601 inputs match the output.
9602
9603 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
9604
9605 PR target/47955
9606 * config/m68k/m68k.c (m68k_expand_prologue): Set
9607 current_function_static_stack_size.
9608
9609 2011-05-02 Jan Hubicka <jh@suse.cz>
9610
9611 * lto-streamer.c (lto_streamer_cache_insert_1,
9612 lto_streamer_cache_lookup, lto_streamer_cache_create,
9613 lto_streamer_cache_delete): Use pointer map instead of hashtable.
9614 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
9615
9616 2011-05-02 Joseph Myers <joseph@codesourcery.com>
9617
9618 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
9619 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
9620 config/m68k/t-opts: New files.
9621 * config/m68k/m68k-tables.opt: New file (generated).
9622 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
9623 extra_options and m68k/t-opts to tmake_file.
9624 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
9625 (all_isas): Initialize using m68k-isas.def.
9626 (all_microarchs): Initialize using m68k-microarchs.def.
9627 (m68k_find_selection): Remove.
9628 (m68k_handle_option): Don't assert that global structures are in
9629 use. Use error_at. Access variables via opts pointer. Don't
9630 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
9631 directly for -m68020-40 and -m68020-60.
9632 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
9633 m68k_tune_entry here.
9634 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
9635 to m68k-opts.h.
9636 (m68k_library_id_string): Remove declaration.
9637 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
9638 (m68k_library_id_string): New Variable.
9639 (march=, mcpu=, mtune=): Use Enum and Var.
9640
9641 2011-05-02 Richard Guenther <rguenther@suse.de>
9642
9643 * varasm.c (output_constructor_regular_field): Compute zero-based
9644 index with double-ints. Make sure to ICE instead of producing
9645 wrong code.
9646 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
9647 in asserts. Properly use a signed type.
9648
9649 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
9650
9651 * config/i386/sse.md (V): New mode iterator.
9652 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
9653 TARGET_SSE2.
9654 (V_256): Rename from AVX256MODE.
9655 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
9656 condition to all users.
9657 (VF1): Ditto.
9658 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
9659 condition to all users.
9660 (VF_128): Make V4SF mode unconditional.
9661 (VF_256): Rename from AVX256MODEF2P.
9662 (VI4F_128): Rename from SSEMODE4S.
9663 (VI8F_128): Rename from SSEMODE2D.
9664 (VI4F_256): Rename from AVX256MODE8P.
9665 (VI8F_256): Rename from AVX256MODE4P.
9666 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
9667 (ssescalarmodesuffix): Remove SF and DF modes.
9668 (SSEMODE124): Remove.
9669 (SSEMODE1248): Ditto.
9670 (SSEMODEF2P): Ditto.
9671 (AVXMODEF2P): Ditto.
9672 (AVXMODEFDP): Ditto.
9673 (AVXMODEFSP): Ditto.
9674 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
9675 unconditional.
9676 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
9677 unconditional.
9678 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
9679 xop_pcmov_<mode>256. Use V mode iterator.
9680
9681 Adjust RTX patterns globally for renamed mode attributes.
9682
9683 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9684
9685 * haifa-sched.c (sched_emit_insn): Emit insn before first
9686 non-scheduled insn. Inform back-end about new insn. Add
9687 new insn to scheduled_insns list.
9688
9689 2011-05-02 Richard Guenther <rguenther@suse.de>
9690
9691 PR tree-optimization/48822
9692 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
9693 (process_scc): Indicate which iteration we start.
9694
9695 2011-05-02 Jan Hubicka <jh@suse.cz>
9696
9697 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
9698 (lto_section_overrun): New.
9699 * lto-section-out.c (append_block): Rename to ...
9700 (lto_append_block): ... this one; export.
9701 (lto_output_1_stream): Move lto lto-streamer.h
9702 (lto_output_data_stream): Update.
9703 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
9704 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
9705 functions.
9706
9707 2011-05-02 Richard Guenther <rguenther@suse.de>
9708
9709 * tree.c (tree_code_counts): New global array.
9710 (record_node_allocation_statistics): Count individual tree codes.
9711 (dump_tree_statistics): Dump individual code stats.
9712
9713 2011-05-01 Jan Hubicka <jh@suse.cz>
9714
9715 * ipa-inline.c (caller_growth_limits): Fix thinko when
9716 looking for largest stack frame.
9717 * ipa-inline.h (dump_inline_summary): Declare.
9718 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
9719 on stack usage.
9720 (dump_inline_summary): Export.
9721 (debug_inline_summary): Declare as DEBUG_FUNCTION.
9722
9723 2011-05-01 Anatoly Sokolov <aesok@post.ru>
9724
9725 * reginfo.c (memory_move_cost): Change rclass argument type form
9726 'enum reg_class' to reg_class_t.
9727 * reload.h (memory_move_cost): Update prototype.
9728 * postreload.c reload_cse_simplify_set): Change type dclass var to
9729 reg_class_t.
9730 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
9731 Update prototype.
9732 (ira_allocate_and_set_costs): Change aclass argument type form
9733 'enum reg_class' to reg_class_t.
9734 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
9735 Change aclass argument type to reg_class_t.
9736 (update_conflict_hard_reg_costs): Change type aclass and pref vars
9737 to reg_class_t.
9738 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
9739 memory_move_cost call.
9740
9741 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
9742 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
9743 Change type tmp var to reg_class_t.
9744
9745 2011-04-30 Jan Hubicka <jh@suse.cz>
9746
9747 * ipa-inline.c (can_inline_edge_p): Disregard limits when
9748 inlining into function with flatten attribute.
9749 (want_inline_small_function_p): Be more realistic about inlining
9750 cold calls where callee size grows.
9751
9752 2011-04-30 Jan Hubicka <jh@suse.cz>
9753
9754 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
9755 flags.
9756
9757 2011-04-30 Anatoly Sokolov <aesok@post.ru>
9758
9759 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9760 PRINT_OPERAND_PUNCT_VALID_P): Remove.
9761 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
9762 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
9763 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9764 (print_operand): Rename to...
9765 (sparc_print_operand): ...this. Make static. Adjust
9766 sparc_print_operand function call.
9767 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
9768 functions.
9769
9770 2011-04-30 Jan Hubicka <jh@suse.cz>
9771
9772 PR middle-end/48752
9773 * ipa-inline.c (early_inliner): Disable when doing late
9774 addition of function.
9775
9776 2011-04-30 Jakub Jelinek <jakub@redhat.com>
9777
9778 * dwarf2out.c (get_address_mode): New inline.
9779 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
9780 if not dwarf_strict emit
9781 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
9782 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
9783 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
9784 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
9785 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
9786 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
9787 mem_loc_descriptor callers.
9788 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9789 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
9790 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
9791 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
9792 (base_types): New variable.
9793 (get_base_type_offset, calc_base_type_die_sizes,
9794 base_type_for_mode, mark_base_types, base_type_cmp,
9795 move_marked_base_types): New functions.
9796 (calc_die_sizes): Assert that die_offset is 0 or equal to
9797 next_die_offset.
9798 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
9799 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
9800 callers. If not dwarf_strict, call mem_loc_descriptor even for
9801 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
9802 (gen_subprogram_die): Don't give up on call site parameters
9803 with non-integral or large integral modes. Adjust
9804 mem_loc_descriptor callers.
9805 (prune_unused_types): Call prune_unused_types_mark on base_types
9806 vector entries.
9807 (resolve_addr): Call mark_base_types.
9808 (dwarf2out_finish): Call move_marked_base_types.
9809
9810 PR tree-optimization/48809
9811 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
9812 type.
9813 (gen_inbound_check): Don't compute index_expr - range_min in utype
9814 again, instead reuse SSA_NAME initialized in build_arrays.
9815 Remove two useless gsi_for_stmt calls.
9816
9817 2011-04-29 Jeff Law <law@redhat.com>
9818
9819 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
9820
9821 2011-04-29 Martin Jambor <mjambor@suse.cz>
9822
9823 * cgraph.h (cgraph_postorder): Remove declaration.
9824 * ipa-utils.h (ipa_free_postorder_info): Declare.
9825 (ipa_reverse_postorder): Likewise.
9826 * cgraphunit.c: Include ipa-utils.h.
9827 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
9828 * ipa-inline.c: Include ipa-utils.h.
9829 (ipa_inline): Update call to ipa_reverse_postorder.
9830 * ipa-pure-const.c (propagate_pure_const): Update call to
9831 ipa_reduced_postorder and ipa_print_order. Call
9832 ipa_free_postorder_info to clean up.
9833 (propagate_nothrow): Likewise.
9834 * ipa-reference.c (propagate): Removed a useless call to
9835 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
9836 and ipa_print_order. Call ipa_free_postorder_info to clean up.
9837 * ipa.c: Include ipa-utils.h.
9838 (ipa_profile): Update call to ipa_reverse_postorder.
9839 (cgraph_postorder): Moved to...
9840 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
9841 (ipa_utils_print_order): Renamed to ipa_print_order.
9842 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
9843 comments.
9844 (ipa_free_postorder_info): New function.
9845 * passes.c: Include ipa-utils.h.
9846 (do_per_function_toporder): Update call to ipa_reverse_postorder.
9847 (ipa_write_summaries): Likewise.
9848 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
9849 (cgraphunit.o): Likewise.
9850 (ipa.o): Likewise.
9851 (ipa-inline.o): Likewise.
9852
9853 2011-04-29 Jan Hubicka <jh@suse.cz>
9854
9855 * gcc.dg/tree-ssa/inline-10.c: New testcase.
9856 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
9857 * ipa-inline.h (clause_t): Turn into unsigned int.
9858 * ipa-inline-analysis.c (add_clause): Do more simplification.
9859 (and_predicates): Shortcut more cases.
9860 (predicates_equal_p): Move forward; check that clauses are properly
9861 ordered.
9862 (or_predicates): Shortcut more cases.
9863 (edge_execution_predicate): Rewrite as...
9864 (set_cond_stmt_execution_predicate): ... this function; handle
9865 __builtin_constant_p.
9866 (set_switch_stmt_execution_predicate): New .
9867 (compute_bb_predicates): New.
9868 (will_be_nonconstant_predicate): Update TODO.
9869 (estimate_function_body_sizes): Use compute_bb_predicates
9870 and free them later, always try to estimate if stmt is constant.
9871 (estimate_time_after_inlining, estimate_size_after_inlining):
9872 Gracefully handle optimized out edges.
9873 (read_predicate): Fix off by one error.
9874
9875 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
9876
9877 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
9878
9879 2011-04-27 Xinliang David Li <davidxl@google.com>
9880
9881 * tree-profile.c (init_ic_make_global_vars): Set
9882 tls attribute on ic vars.
9883 * coverage.c (coverage_end_function): Initialize
9884 function_list with zero.
9885
9886 2011-04-29 Richard Guenther <rguenther@suse.de>
9887
9888 * builtins.c (fold_builtin_classify_type): Use integer_type_node
9889 for the type of the result.
9890 (fold_builtin_isascii): Likewise.
9891 (fold_builtin_toascii): Use integer_type_node where appropriate.
9892 (fold_builtin_logb): Likewise.
9893 (fold_builtin_frexp): Likewise.
9894 (fold_builtin_strstr): Likewise.
9895 (fold_builtin_strpbrk): Likewise.
9896 (fold_builtin_fputs): Likewise.
9897 (fold_builtin_sprintf): Likewise.
9898 (fold_builtin_snprintf): Likewise.
9899 (fold_builtin_printf): Likewise.
9900 (do_mpfr_remquo): Use a proper type for the assigned constant.
9901 (do_mpfr_lgamma_r): Likewise.
9902 * dwarf2out.c (resolve_one_addr): Use size_int.
9903 * except.c (init_eh): Likewise.
9904 (assign_filter_values): Use integer_type_node for filter values.
9905 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
9906 indices.
9907 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
9908 for EH region numbers.
9909 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
9910 for the shift amount.
9911
9912 2011-04-29 Richard Guenther <rguenther@suse.de>
9913
9914 * expr.h (expand_shift): Rename to ...
9915 (expand_variable_shift): ... this.
9916 (expand_shift): Take a constant shift amount.
9917 * expmed.c (expand_shift): Rename to ...
9918 (expand_variable_shift): ... this.
9919 (expand_shift): New wrapper around expand_variable_shift.
9920 * expr.c (convert_move, emit_group_load_1, emit_group_store,
9921 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
9922 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
9923 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
9924 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
9925 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
9926 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
9927 emit_store_flag_1, emit_store_flag): Likewise.
9928 * builtins.c (expand_builtin_signbit): Likewise.
9929 * calls.c (load_register_parameters): Likewise.
9930 * function.c (assign_parm_setup_block): Likewise.
9931 * lower-subreg.c (resolve_shift_zext): Likewise.
9932 * optabs.c (widen_bswap, expand_abs_nojump,
9933 expand_one_cmpl_abs_nojump, expand_float): Likewise.
9934 * spu/spu.c (spu_expand_extv): Likewise.
9935 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
9936
9937 2011-04-29 Richard Guenther <rguenther@suse.de>
9938
9939 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
9940 for the remapped region number.
9941 * predict.c (build_predict_expr): Use integer_type_node for the
9942 predict kind.
9943 * fold-const.c (fold_binary_loc): Use integer_type_node for
9944 the shift amount. Use a proper type for the PLUS_EXPR operand.
9945
9946 2011-04-29 Michael Matz <matz@suse.de>
9947
9948 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
9949 other trees that just builtins.
9950 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
9951
9952 2011-04-29 Richard Guenther <rguenther@suse.de>
9953
9954 * tree-nested.c (get_trampoline_type): Use size_int.
9955 (get_nl_goto_field): Likewise.
9956 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
9957 for all indexes.
9958 (lower_eh_constructs_2): Likewise.
9959 (lower_resx): Likewise.
9960 (lower_eh_dispatch): Likewise.
9961 * tree-mudflap.c (mf_build_string): Use size_int.
9962 (mudflap_register_call): Use integer_type_node for the flag.
9963 (mudflap_enqueue_constant): Use size_int.
9964 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
9965 instead of rebuilding it.
9966
9967 2011-04-29 Richard Guenther <rguenther@suse.de>
9968
9969 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
9970 Handle OBJ_TYPE_REF.
9971 (find_func_aliases_for_call): Use it more consistently.
9972
9973 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
9974
9975 * haifa-sched.c (last_nondebug_scheduled_insn): New.
9976 (rank_for_schedule): Use it.
9977 (schedule_block): Set it.
9978
9979 2011-04-28 David Li <davidxl@google.com>
9980
9981 * tree.c (crc32_string): Use crc32_byte.
9982 (crc32_byte): New function.
9983 * tree.h (crc32_byte): New function.
9984 * gcov.c (read_graph_file): Handle new cfg_cksum.
9985 (read_count_file): Ditto.
9986 * profile.c (instrument_values): Ditto.
9987 (get_exec_counts): Ditto.
9988 (read_profile_edge_counts): Ditto.
9989 (compute_branch_probabilities): Ditto.
9990 (compute_value_histograms): Ditto.
9991 (branch_prob): Ditto.
9992 (end_branch_prob): Ditto.
9993 * coverage.c (read_counts_file): Ditto.
9994 (get_coverage_counts): Ditto.
9995 (tree_coverage_counter_addr): Ditto.
9996 (coverage_checksum_string): Ditto.
9997 (coverage_begin_output): Ditto.
9998 (coverage_end_function): Ditto.
9999 (build_fn_info_type): Ditto.
10000 (build_fn_info_value): Ditto.
10001 * libgcov.c (gcov_exit): Ditto.
10002 * gcov-dump.c (tag_function): Ditto.
10003 (compute_checksum): Remove.
10004
10005 2011-04-29 Alan Modra <amodra@gmail.com>
10006
10007 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10008 unspec plus offset. Tidy macho code.
10009
10010 2011-04-29 Martin Jambor <mjambor@suse.cz>
10011
10012 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
10013 node instead of a decl. Update all callers.
10014 * cgraph.h: Update declaration.
10015
10016 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
10017
10018 PR tree-optimization/48765
10019 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
10020 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
10021 to indicate if loop aware SLP is being used. Scan the statements
10022 and update the vectorization factor according to the type of
10023 vectorization before statement analysis.
10024 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
10025 pass it to vect_analyze_loop_operations.
10026 (vectorizable_reduction): Set number of copies to 1 in case of pure
10027 SLP statement.
10028 * tree-vect-stmts.c (vectorizable_conversion,
10029 vectorizable_assignment, vectorizable_shift,
10030 vectorizable_operation, vectorizable_type_demotion,
10031 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
10032 Likewise.
10033 (vectorizable_condition): Move the check that it is not SLP
10034 vectorization before the number of copies check.
10035 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
10036 to vectorize the loop using SLP.
10037
10038 2011-04-28 Jakub Jelinek <jakub@redhat.com>
10039
10040 PR middle-end/48597
10041 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
10042 inline asm.
10043
10044 2011-04-28 Joseph Myers <joseph@codesourcery.com>
10045
10046 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
10047 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
10048 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10049 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10050 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
10051 linux*.h headers.
10052 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
10053 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10054 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10055 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10056 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10057 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
10058 REG_NAME.
10059 * config/i386/linux.h (REG_NAME): Don't define.
10060 * config/i386/linux64.h (REG_NAME): Don't define.
10061 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
10062 Undefine before defining.
10063
10064 2011-04-28 Jan Hubicka <jh@suse.cz>
10065
10066 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
10067 nonconstant_names array.
10068 (estimate_function_body_sizes): Build nonconstant_names array; handle
10069 BUILT_IN_CONSTANT_P.
10070
10071 2011-04-28 Richard Guenther <rguenther@suse.de>
10072
10073 PR bootstrap/48804
10074 Revert
10075 2011-04-28 Richard Guenther <rguenther@suse.de>
10076
10077 * tree-ssa-structalias.c (solve_constraints): Build succ graph
10078 as late as possible.
10079
10080 2011-04-28 Richard Guenther <rguenther@suse.de>
10081
10082 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
10083 (debug_constraint): Do it here.
10084 (dump_constraints): And here.
10085 (rewrite_constraints): And here.
10086 (dump_constraint_edge): Remove.
10087 (dump_constraint_graph): Rewrite to produce DOT output.
10088 (solve_constraints): Build succ graph as late as possible.
10089 Dump constraint graphs before and after solving.
10090
10091 2011-04-28 Richard Guenther <rguenther@suse.de>
10092
10093 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10094 New function split out from ...
10095 (find_func_aliases): ... here. Call it.
10096 (find_func_aliases_for_call): Likewise.
10097
10098 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
10099
10100 * internal-fn.h (internal_fn_name_array): Declare.
10101 (internal_fn_flags_array): Likewise.
10102
10103 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
10104
10105 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
10106 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
10107 Move from sse.md.
10108 (ssemodefsuffix): Remove.
10109 (ssevecmodesuffix): New mode attribute.
10110 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
10111 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
10112 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
10113 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
10114 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
10115 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
10116 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
10117 ssemodesuffix mode attribute.
10118 (float splitters): Use ssevecmodesuffix mode attribute.
10119 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
10120 (sseinsmode): Rename from avxvecmode.
10121 (avxsizesuffix): Rename from avxmodesuffix.
10122 (sseintvecmode): Rename from avxpermvecmode.
10123 (ssedoublevecmode): Rename from ssedoublesizemode.
10124 (ssehalfvecmode): Rename from avxhalfvecmode.
10125 (ssescalarmode): Rename from avxscalarmode.
10126 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
10127 templates for ssemodesuffix mode attribute.
10128 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
10129 mode attribute.
10130
10131 Adjust RTX patterns globally for renamed mode attributes.
10132
10133 2011-04-27 Jan Hubcika <jh@suse.cz>
10134
10135 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
10136 * ipa-inline-analysis.c: Include alloc-pool.h.
10137 (edge_predicate_pool): New.
10138 (trye_predicate_p): New function
10139 (false_predicate_p): New function.
10140 (add_clause): Sanity check that false clauses are "optimized";
10141 never add clauses to predicate that is already known to be false.
10142 (and_predicate): Use flase_predicate_p.
10143 (evaulate_predicate): Rename to ...
10144 (evaluate_predicate): ... this one; update all callers; assert
10145 that false is not listed among possible truths.
10146 (dump_predicate): Use true_predicate_p.
10147 (account_size_time): Use false_predicate_p.
10148 (evaulate_conditions_for_edge): Rename to ...
10149 (evaluate_conditions_for_edge) ... this one.
10150 (edge_set_predicate): New function.
10151 (inline_edge_duplication_hook): Duplicate edge predicates.
10152 (inline_edge_removal_hook): Free edge predicates.
10153 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
10154 (dump_inline_summary): Update.
10155 (estimate_function_body_sizes): Set edge predicates.
10156 (estimate_calls_size_and_time): Handle predicates.
10157 (estimate_callee_size_and_time): Update.
10158 (remap_predicate): Add toplev_predicate; update comment.
10159 (remap_edge_predicates): New function.
10160 (inline_merge_summary): Compute toplev predicate; update.
10161 (read_predicate): New function.
10162 (read_inline_edge_summary): Use it.
10163 (inline_read_section): Likewise.
10164 (write_predicate): New function.
10165 (write_inline_edge_summary): Use it.
10166 (inline_write_summary): Likewise.
10167 (inline_free_summary): Free alloc pool and edge summary vec.
10168
10169 2011-04-27 Richard Guenther <rguenther@suse.de>
10170
10171 * tree-ssa-structalias.c (changed_count): Remove.
10172 (changed): Use a bitmap.
10173 (unify_nodes): Adjust.
10174 (do_sd_constraint): Likewise.
10175 (do_ds_constraint): Likewise.
10176 (do_complex_constraint): Likewise.
10177 (solve_graph): Likewise.
10178
10179 2011-04-27 Jan Hubicka <jh@suse.cz>
10180
10181 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
10182
10183 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
10184
10185 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
10186 (avx_vperm2f128_*_operand): Ditto.
10187 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
10188 Use avx_vpermilp_parallel in insn condition.
10189 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
10190 Use avx_vperm2f128_parallel in insn condition.
10191
10192 2011-04-27 Richard Guenther <rguenther@suse.de>
10193
10194 * Makefile.in (tree-ssa-structalias.o): Remove
10195 gt-tree-ssa-structalias.h dependency.
10196 (GTFILES): Remove tree-ssa-structalias.c.
10197 * tree.c (allocate_decl_uid): New function.
10198 (make_node_stat): Use it.
10199 (copy_node_stat): Likewise.
10200 * tree.h (allocate_decl_uid): Declare.
10201 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
10202 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
10203 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
10204 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
10205 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
10206 (struct heapvar_map): Likewise.
10207 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
10208 heapvar_insert): Likewise.
10209 (make_heapvar_for): Rename to ...
10210 (make_heapvar): ... this. Simplify.
10211 (fake_var_decl_obstack): New global var.
10212 (build_fake_var_decl): New function.
10213 (make_constraint_from_heapvar): Adjust.
10214 (handle_lhs_call): Likewise.
10215 (create_function_info_for): Likewise.
10216 (intra_create_variable_infos): Likewise.
10217 (init_alias_vars): Allocate fake_var_decl_obstack.
10218 (init_alias_heapvars, delete_alias_heapvars): Remove.
10219 (compute_points_to_sets): Do not call init_alias_heapvars.
10220 (ipa_pta_execute): Likewise.
10221 (delete_points_to_sets): Free fake_var_decl_obstack.
10222
10223 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10224
10225 * config/spu/divmovti4.c (union qword_UTItype): New data type.
10226 (si_from_UTItype, si_to_UTItype): New functions.
10227 (__udivmodti4): Use them to implement type-punning.
10228 * config/spu/multi3.c (union qword_TItype): New data type.
10229 (si_from_TItype, si_to_TItype): New functions.
10230 (__multi3): Use them to implement type-punning.
10231
10232 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10233
10234 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
10235
10236 2011-04-27 Jan Hubicka <jh@suse.cz>
10237
10238 * ipa-prop.c (function_insertion_hook_holder): New holder.
10239 (ipa_add_new_function): New function.
10240 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
10241 Register/deregister holder.
10242
10243 2011-04-27 Richard Guenther <rguenther@suse.de>
10244
10245 PR tree-optimization/48772
10246 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
10247
10248 2011-04-27 Richard Guenther <rguenther@suse.de>
10249
10250 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
10251 TARGET_MEM_REF handling.
10252
10253 2011-04-27 Nick Clifton <nickc@redhat.com>
10254
10255 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
10256 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
10257 (REG_CLASS_NAMES): Likewise.
10258 (REG_CLASS_CONTENTS): Likewise.
10259 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
10260 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
10261 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
10262 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
10263 (EVEN_REGS): New macro. Alias for QUAD_REGS.
10264 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
10265 duplicate register classes.
10266 (frv_class_likely_spilled_p): Likewise.
10267 (frv_register_move_cost): Likewise.
10268
10269 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
10270 end of the regno_reg_class array.
10271
10272 2011-04-27 Jakub Jelinek <jakub@redhat.com>
10273
10274 PR c/48742
10275 * c-typeck.c (build_binary_op): Don't wrap arguments if
10276 int_operands is true.
10277
10278 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
10279
10280 PR target/48767
10281 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
10282 targetm.calls.must_pass_in_stack for void type.
10283
10284 2011-04-26 Jan Hubicka <jh@suse.cz>
10285
10286 * cgraphbuild.c (build_cgraph_edges): Update call
10287 of cgraph_create_edge and cgraph_create_indirect_edge.
10288 * cgraph.c (cgraph_create_edge_including_clones,
10289 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
10290 cgraph_update_edges_for_call_stmt_node): Do not take nest
10291 argument; do not initialize call_stmt_size/time.
10292 (dump_cgraph_node): Do not dump nest.
10293 (cgraph_clone_edge): Do not take loop_nest argument;
10294 do not propagate it; do not clone call_stmt_size/time.
10295 (cgraph_clone_node): Likewise.
10296 (cgraph_create_virtual_clone): Update.
10297 * cgraph.h (struct cgraph_edge): Remove
10298 call_stmt_size/call_stmt_time/loop_nest.
10299 (cgraph_create_edge, cgraph_create_indirect_edge,
10300 cgraph_create_edge_including_clones, cgraph_clone_node): Update
10301 prototype.
10302 * tree-emutls.c (gen_emutls_addr): Update.
10303 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
10304 loop_nest; handle indirect calls, too.
10305 (clone_inlined_nodes): Do not care about updating inline summaries.
10306 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
10307 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
10308 stream call_stmt_size/call_stmt_time/loop_nest.
10309 * ipa-inline.c (edge_badness): Update.
10310 (ipa_inline): dump summaries after inlining.
10311 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
10312 New.
10313 (inline_edge_summary): New function.
10314 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
10315 (inline_edge_removal_hook): Handle edge summaries.
10316 (inline_edge_duplication_hook): New hook.
10317 (inline_summary_alloc): Alloc hooks.
10318 (initialize_growth_caches): Do not register removal hooks.
10319 (free_growth_caches); Do not free removal hook.
10320 (dump_inline_edge_summary): New function.
10321 (dump_inline_summary): Use it.
10322 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
10323 (inline_update_callee_summaries): New function.
10324 (inline_merge_summary): Use it.
10325 (do_estimate_edge_time, do_estimate_edge_growth): Update.
10326 (read_inline_edge_summary): New function.
10327 (inline_read_section): Use it.
10328 (write_inline_edge_summary): New function.
10329 (inline_write_summary): Use it.
10330 (inline_free_summary): Free edge new holders.
10331 * tree-inline.c (copy_bb): Update.
10332
10333 2011-04-26 Jason Merrill <jason@redhat.com>
10334
10335 * tree-eh.c (lower_try_finally_switch): Create the label along with
10336 the CASE_LABEL_EXPR.
10337
10338 2011-04-26 David S. Miller <davem@davemloft.net>
10339 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10340
10341 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
10342 * configure: Regenerate.
10343
10344 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
10345
10346 PR target/48258
10347 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
10348 reduction.
10349 (VEC_reduc): New code iterator and splitters for vector reduction.
10350 (VEC_reduc_name): Ditto.
10351 (VEC_reduc_rtx): Ditto.
10352 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
10353 (reduc_<VEC_reduc_name>_v4sf): Ditto.
10354
10355 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10356 support for extracting SF on VSX.
10357
10358 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
10359 generating xscvspdp.
10360 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
10361 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
10362 double add, minimum, maximum vector reduction.
10363 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
10364 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
10365 optimize double vector reduction.
10366 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
10367
10368 2011-04-26 Joseph Myers <joseph@codesourcery.com>
10369
10370 * config/fr30/fr30.h (inhibit_libc): Don't define.
10371 * config/m32r/m32r-protos.h: Correct comment.
10372 * config/v850/v850.h (GHS_default_section_names,
10373 GHS_current_section_names): Use tree, not union tree_node *.
10374
10375 2011-04-26 Xinliang David Li <davidxl@google.com>
10376
10377 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
10378 * c-family/c-opts.c (c_common_handle_option): Set
10379 warn_maybe_uninitialized.
10380 * opts.c (common_handle_option): Ditto.
10381 * common.opt: New option.
10382 * tree-ssa.c (warn_uninit): Add one more parameter.
10383 (warn_uninitialized_var): Pass warning code.
10384 * tree-flow.h: Interface change.
10385
10386 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10387
10388 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
10389 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
10390 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
10391
10392 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10393
10394 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
10395 * config/mips/mips.opt (mmips-tfile): Remove.
10396
10397 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
10398 mips-tdump reference to ...
10399 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
10400 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
10401 reference by Tru64 UNIX.
10402
10403 2011-04-26 Jakub Jelinek <jakub@redhat.com>
10404
10405 PR debug/48768
10406 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
10407 is error_mark_node, set value to NULL.
10408
10409 PR tree-optimization/48734
10410 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
10411 if return value from maybe_fold_*_comparsions isn't something
10412 the code is prepared to handle.
10413
10414 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
10415
10416 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
10417 mode check.
10418 (ext_QIreg_nomode_operands): Remove.
10419 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
10420 (*andsi_1): Ditto.
10421 (*andhi_1): Ditto.
10422
10423 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
10424
10425 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
10426
10427 2011-04-26 Richard Guenther <rguenther@suse.de>
10428
10429 * c-typeck.c (build_unary_op): Do not expand array-refs via
10430 pointer arithmetic. Only adjust qualifiers for function types.
10431
10432 2011-04-26 Richard Guenther <rguenther@suse.de>
10433
10434 PR middle-end/48694
10435 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
10436 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
10437 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
10438 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
10439
10440 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
10441
10442 * doc/extend.texi: Document __underlying_type.
10443
10444 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
10445
10446 * config/rs6000/titan.md (automata_option "progress"): Remove.
10447
10448 2011-04-25 Jeff Law <law@redhat.com>
10449
10450 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
10451
10452 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10453
10454 * system.h (ENUM_BITFIELD): Remove.
10455
10456 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
10457 Eric Botcazou <ebotcazou@adacore.com>
10458
10459 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
10460 for STORE_FLAG_VALUE==-1 case.
10461
10462 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
10463
10464 PR target/43804
10465 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
10466 LEGITIMATE_PIC_OPERAND_P.
10467
10468 2011-04-24 Jan Hubicka <jh@suse.cz>
10469
10470 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
10471 WPA hack.
10472 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
10473 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
10474 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
10475 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
10476 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
10477 Sanity check predicate length.
10478 (remap_predicate): Likewise; sanity check jump functions.
10479 (inline_read_section, inline_write_summary): Sanity check
10480 predicate length.
10481
10482 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
10483
10484 PR other/48748
10485 * doc/extend.texi (Type Traits): Document __is_standard_layout,
10486 __is_literal_type, and __is_trivial; update throughout about
10487 possibly cv-qualified void types.
10488
10489 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
10490
10491 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
10492 testsuite and make it version agnostic.
10493
10494 2011-04-22 Jan Hubicka <jh@suse.cz>
10495
10496 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
10497
10498 2011-04-23 Jakub Jelinek <jakub@redhat.com>
10499
10500 PR c/48685
10501 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
10502 to VOID_TYPE even around MODIFY_EXPR.
10503
10504 2011-04-22 Mike Stump <mikestump@comcast.net>
10505
10506 * gensupport.c (read_md_rtx): Fix typo in comment.
10507 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
10508 comment.
10509
10510 2011-04-22 Jan Hubicka <jh@suse.cz>
10511
10512 * gengtype.c (open_base_files): Add ipa-inline.h include.
10513 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
10514 ipa-prop.c; update all uses.
10515 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
10516 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
10517 merge summary of inlined function into former caller.
10518 * ipa-inline.c (max_benefit): Remove.
10519 (edge_badness): Compensate for removal of benefits.
10520 (update_caller_keys): Use
10521 reset_node_growth_cache/reset_edge_growth_cache.
10522 (update_callee_keys): Likewise.
10523 (update_all_callee_keys): Likewise.
10524 (inline_small_functions): Do not collect max_benefit; do not reset
10525 estimated_growth; call free_growth_caches and initialize_growth_caches.
10526 * ipa-inline.h (struct condition, type clause_t, struct predicate,
10527 struct size_time_entry): New structures.
10528 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
10529 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
10530 and estimated_growth.
10531 (edge_growth_cache_entry): New structure.
10532 (node_growth_cache, edge_growth_cache): New global vars.
10533 (estimate_growth): Turn into inline.
10534 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
10535 initialize_growth_caches, free_growth_caches): Declare.
10536 (estimate_edge_growth): Rewrite.
10537 (estimate_edge_time): Implement as inline cache lookup.
10538 (reset_node_growth_cache, reset_edge_growth_cache): New inline
10539 functions.
10540 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
10541 (NUM_CONDITIONS): New constant.
10542 (predicate_conditions): New enum.
10543 (IS_NOT_CONSTANT): New constant.
10544 (edge_removal_hook_holder): New var.
10545 (node_growth_cache, edge_growth_cache): New global vars.
10546 (true_predicate, single_cond_predicate, false_predicate,
10547 not_inlined_predicate, add_condition, add_clause, and_predicates,
10548 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
10549 dump_clause, dump_predicate, account_size_time,
10550 evaulate_conditions_for_edge): New functions.
10551 (inline_summary_alloc): Move to heap.
10552 (inline_node_removal_hook): Clear condition and entry vectors.
10553 (inline_edge_removal_hook): New function.
10554 (initialize_growth_caches, free_growth_caches): New function.
10555 (dump_inline_summary): Update.
10556 (edge_execution_predicate): New function.
10557 (will_be_nonconstant_predicate): New function.
10558 (estimate_function_body_sizes): Compute BB and constantness predicates.
10559 (compute_inline_parameters): Do not clear estimated_growth.
10560 (estimate_edge_size_and_time): New function.
10561 (estimate_calls_size_and_time): New function.
10562 (estimate_callee_size_and_time): New function.
10563 (remap_predicate): New function.
10564 (inline_merge_summary): New function.
10565 (do_estimate_edge_time): New function based on...
10566 (estimate_edge_time): ... this one.
10567 (do_estimate_edge_growth): New function.
10568 (do_estimate_growth): New function based on....
10569 (estimate_growth): ... this one.
10570 (inline_analyze_function): Analyze after deciding on jump functions.
10571 (inline_read_section): New function.
10572 (inline_read_summary): Use it.
10573 (inline_write_summary): Write all the new data.
10574 * ipa-prop.c (ipa_get_param_decl_index): Export.
10575 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
10576 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
10577 Declare.
10578 (ipa_get_lattice): Move here from ipa-cp.c
10579 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
10580 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
10581 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
10582 cgraph_edge_inlinable_p): Remove.
10583 * cgraphunit.c: Include ipainline.h
10584 (cgraph_process_new_functions): Update call of
10585 compute_inline_parameters.
10586
10587 2011-04-22 Richard Guenther <rguenther@suse.de>
10588
10589 * tree.c (build_int_cst): Properly create canonicalized integer
10590 constants.
10591 (build_int_cst_type): Remove scary comments.
10592
10593 2011-04-22 Xinliang David Li <davidxl@google.com>
10594
10595 * toplev.c (process_options): Enable -Werror=coverage-mismatch
10596 by default when -Wno-error is not specified.
10597 * opts-global.c (decode_options): Remove call to
10598 control_warning_options.
10599
10600 2011-04-22 Jakub Jelinek <jakub@redhat.com>
10601
10602 PR tree-optimization/48717
10603 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
10604 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
10605
10606 2011-04-22 Joseph Myers <joseph@codesourcery.com>
10607
10608 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
10609 definition where used.
10610
10611 2011-04-22 Jakub Jelinek <jakub@redhat.com>
10612
10613 PR c/48716
10614 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
10615 TREE_STATIC variables declared inside of some OpenMP construct.
10616
10617 2011-04-22 Martin Jambor <mjambor@suse.cz>
10618
10619 PR middle-end/48585
10620 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
10621
10622 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
10623
10624 PR c/36750
10625 * c-typeck.c (pop_init_level): Do not warn about initializing
10626 with ` = {0}'.
10627
10628 2011-04-22 Alan Modra <amodra@gmail.com>
10629
10630 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
10631 when returning call_cookie.
10632 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
10633 pointers, to functions with no more vector args than the current
10634 function, and some non-local calls for ABI_V4.
10635 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
10636 sibcall_nonlocal_aix64): Combine to ..
10637 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
10638 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
10639 (sibcall_value_nonlocal_aix<mode>): ..likewise.
10640 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
10641 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
10642 operand.
10643 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
10644 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
10645 sibcall_value_symbolic_64): Delete.
10646
10647 2011-04-21 Xinliang David Li <davidxl@google.com>
10648
10649 * cgraph.h: Remove pid.
10650 * cgraph.c: Remove pid.
10651 * value-prof.c (init_node_map): New function.
10652 (del_node_map): New function.
10653 (find_func_by_funcdef_no): New function.
10654 (gimple_ic_transform): Call new function.
10655 * cgraphunit.c (cgraph_finalize_function): Remove pid.
10656 * function.c (get_last_funcdef_no): New function.
10657 * function.h (get_last_funcdef_no): New function.
10658 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
10659 to libgcov function.
10660 (tree-profiling): Call node map init and delete function.
10661
10662 2011-04-21 Ian Lance Taylor <iant@google.com>
10663
10664 * godump.c (go_format_type): Use exported Go name for anonymous
10665 field name.
10666
10667 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10668
10669 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
10670 Call builtin_function_type_list instead of builtin_function_type.
10671 (UNARY, BINARY, TRINARY, QUAD): Likewise.
10672
10673 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10674
10675 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
10676 build_function_type_list instead of build_function_type.
10677 Delete variable `endlink'.
10678
10679 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10680
10681 * config/s390/s390.c (s390_init_builtins): Call
10682 build_function_type_list instead of build_function_type.
10683
10684 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10685
10686 * config/ia64/ia64.c (ia64_init_builtins): Call
10687 build_function_type_list instead of builtin_function_type.
10688
10689 2011-04-21 Easwaran Raman <eraman@google.com>
10690
10691 * cfgexpand.c (stack_var): Remove OFFSET...
10692 (add_stack_var): ...and its reference here...
10693 (expand_stack_vars): ...and here.
10694 (stack_var_cmp): Sort by descending order of size.
10695 (partition_stack_vars): Change heuristic.
10696 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
10697 (dump_stack_var_partition): Add newline after each partition.
10698
10699 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
10700 Jeff Law <law@redhat.com>
10701
10702 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
10703 * gengtype.c (matching_file_name_substitute): Likewise.
10704
10705 2011-04-21 Richard Guenther <rguenther@suse.de>
10706
10707 PR lto/48703
10708 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
10709
10710 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
10711
10712 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
10713
10714 2011-04-21 Richard Guenther <rguenther@suse.de>
10715
10716 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
10717 file name.
10718
10719 2011-04-21 Richard Guenther <rguenther@suse.de>
10720
10721 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
10722 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
10723 Use DECL_P, not SSA_VAR_P.
10724 (ptr_derefs_may_alias_p): Likewise.
10725 (ptr_deref_may_alias_ref_p_1): Likewise.
10726 (decl_refs_may_alias_p): Likewise.
10727 (refs_may_alias_p_1): Likewise.
10728 (ref_maybe_used_by_call_p_1): Likewise.
10729 (call_may_clobber_ref_p_1): Likewise.
10730 (indirect_ref_may_alias_decl_p): Assume indirect refrences
10731 are either MEM_REF or TARGET_MEM_REF.
10732 (indirect_refs_may_alias_p): Likewise.
10733 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
10734 for MEM_EXPR of indirect calls.
10735
10736 2011-04-21 Tristan Gingold <gingold@adacore.com>
10737
10738 * vmsdbgout.c (write_srccorr): Compute file length from the string.
10739 (dst_file_info_struct): Remove flen field.
10740 (lookup_filename): Remove code that set flen field.
10741
10742 2011-04-21 Tristan Gingold <gingold@adacore.com>
10743
10744 * config/ia64/ia64.c (ia64_start_function): Add a guard.
10745
10746 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
10747
10748 PR target/48708
10749 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
10750 vec_extract and vec_concat for non-SSE4_1 targets.
10751
10752 2011-04-21 Richard Guenther <rguenther@suse.de>
10753
10754 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
10755 return statements.
10756
10757 2011-04-21 Joseph Myers <joseph@codesourcery.com>
10758
10759 * config/i386/cygming.h (union tree_node, TREE): Don't define or
10760 undefine.
10761 (FILE): Don't undefine.
10762
10763 2011-04-21 Joseph Myers <joseph@codesourcery.com>
10764
10765 * config/alpha/alpha.c (struct machine_function): Use rtx, not
10766 struct rtx_def *.
10767 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
10768 struct rtx_def *.
10769 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
10770 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
10771 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
10772 rtx_def *.
10773 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
10774 definitions where used.
10775 * config/microblaze/microblaze.h (struct microblaze_args): Use
10776 rtx, not struct rtx_def *.
10777 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
10778 rtx_def *.
10779 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
10780 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
10781 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
10782 not struct rtx_def *.
10783 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
10784 struct rtx_def *.
10785 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
10786 rtx_def *.
10787 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
10788
10789 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
10790
10791 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
10792 operand_equal_p to compare DR_BASE_ADDRESSes.
10793 (vect_check_interleaving): Likewise.
10794
10795 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
10796
10797 PR target/46329
10798 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
10799 for all Neon struct constants.
10800
10801 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
10802
10803 * target.def (legitimate_constant_p): New hook.
10804 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
10805 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
10806 * doc/tm.texi: Regenerate.
10807 * hooks.h (hook_bool_mode_rtx_true): Declare.
10808 * hooks.c (hook_bool_mode_rtx_true): Define.
10809 * system.h (LEGITIMATE_CONSTANT_P): Poison.
10810 * calls.c (precompute_register_parameters): Replace uses of
10811 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
10812 (emit_library_call_value_1): Likewise.
10813 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
10814 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
10815 * ira-costs.c (scan_one_insn): Likewise.
10816 * recog.c (general_operand, immediate_operand): Likewise.
10817 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
10818 * reload1.c (init_eliminable_invariants): Likewise.
10819
10820 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
10821 mode argument.
10822 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
10823 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
10824 argument.
10825 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10826 * config/alpha/predicates.md (input_operand): Update call to
10827 alpha_legitimate_constant_p.
10828
10829 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
10830 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
10831 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
10832 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10833 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
10834 (arm_legitimate_constant_p): New functions.
10835 (arm_cannot_force_const_mem): Make static.
10836
10837 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
10838
10839 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
10840 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
10841 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
10842 instead of bfin_legitimate_constant_p.
10843 (bfin_legitimate_constant_p): Make static. Add a mode argument.
10844 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10845
10846 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
10847
10848 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
10849
10850 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
10851 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
10852 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10853 (frv_legitimate_constant_p): Make static. Add a mode argument.
10854
10855 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
10856 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
10857 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
10858
10859 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
10860 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
10861 * config/i386/i386.c (legitimate_constant_p): Rename to...
10862 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
10863 argument.
10864 (ix86_cannot_force_const_mem): Update accordingly.
10865 (ix86_legitimate_address_p): Likewise.
10866 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10867 * config/i386/i386.md: Update commentary.
10868
10869 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
10870 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
10871 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10872 (ia64_legitimate_constant_p): Make static. Add a mode argument.
10873
10874 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
10875
10876 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
10877 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
10878 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10879 (lm32_legitimate_constant_p): Make static. Add a mode argument.
10880
10881 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
10882 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
10883 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
10884
10885 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
10886 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10887 (m32r_legitimate_constant_p): New function.
10888
10889 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
10890 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
10891 LEGITIMATE_CONSTANT_P.
10892 (LEGITIMATE_CONSTANT_P): Delete.
10893 * config/m68k/m68k.c (m68k_expand_prologue): Call
10894 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
10895 (m68k_legitimate_constant_p): New function.
10896 * config/m68k/m68k.md: Update comments.
10897
10898 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
10899 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10900 (mcore_legitimate_constant_p): New function.
10901
10902 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
10903 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
10904 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
10905 Add a mode argument.
10906 (mep_legitimate_address): Update accordingly.
10907 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10908
10909 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
10910 Delete.
10911 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
10912 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
10913 static. Check OP's mode for VOIDmode.
10914 (microblaze_legitimate_constant_p): New function.
10915 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10916
10917 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
10918 * config/mips/mips.c (mips_legitimate_constant_p): New function.
10919 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
10920 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10921 * config/mips/predicates.md: Update comments.
10922
10923 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
10924 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
10925 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10926 (mmix_legitimate_constant_p): Make static, return a bool, and take
10927 a mode argument.
10928 (mmix_print_operand_address): Update accordingly.
10929
10930 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
10931 Delete.
10932 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
10933 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
10934 static. Add a mode argument.
10935 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10936
10937 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
10938
10939 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
10940 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10941 (pa_legitimate_constant_p): New function.
10942
10943 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
10944
10945 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
10946 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10947 (pdp11_legitimate_constant_p): New function.
10948
10949 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
10950 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10951 (rs6000_legitimate_constant_p): New function.
10952
10953 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
10954 (rx_legitimate_constant_p): ...this.
10955 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
10956 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
10957 (rx_legitimate_constant_p): ...this.
10958 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10959 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
10960
10961 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
10962 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
10963 * config/s390/s390.c (legitimate_constant_p): Rename to...
10964 (s390_legitimate_constant_p): ...this. Make static, return a bool,
10965 and add a mode argument.
10966 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10967
10968 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
10969
10970 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
10971 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10972 (sh_legitimate_constant_p): New function.
10973
10974 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
10975 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
10976 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10977 (legitimate_constant_p): Rename to...
10978 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
10979 argument.
10980 (constant_address_p): Update accordingly.
10981
10982 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
10983 argument and return a bool.
10984 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
10985 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10986 (spu_legitimate_constant_p): Add a mode argument and return a bool.
10987 (spu_rtx_costs): Update accordingly.
10988 * config/spu/predicates.md (vec_imm_operand): Likewise.
10989
10990 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
10991
10992 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
10993 * config/v850/v850.c (v850_legitimate_constant_p): New function.
10994 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10995
10996 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
10997 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
10998 * config/vax/vax.c (legitimate_constant_p): Likewise.
10999
11000 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
11001 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11002 (xtensa_legitimate_constant_p): New function.
11003
11004 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11005
11006 * target.def (cannot_force_const_mem): Add a mode argument.
11007 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
11008 * doc/tm.texi: Regenerate.
11009 * hooks.h (hook_bool_mode_rtx_false): Declare.
11010 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
11011 (hook_bool_mode_const_rtx_true): Likewise.
11012 (hook_bool_mode_rtx_false): New function.
11013 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
11014 to be non-VOID. Update call to cannot_force_const_mem.
11015 (find_reloads): Update accordingly.
11016 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
11017 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
11018 argument.
11019 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
11020 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
11021 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
11022 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
11023 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
11024 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
11025 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
11026 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11027 (m68k_cannot_force_const_mem): ...this new function.
11028 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
11029 argument.
11030 (mips_const_insns, mips_legitimize_const_move): Update calls.
11031 (mips_secondary_reload_class): Likewise.
11032 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11033 (pa_cannot_force_const_mem): ...this new function.
11034 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
11035 (rs6000_cannot_force_const_mem): ...this new function.
11036 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
11037 argument.
11038 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
11039 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
11040 to...
11041 (xtensa_cannot_force_const_mem): ...this new function.
11042
11043 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11044
11045 * config/mips/mips.c (mips16_build_function_stub): Call
11046 build_function_type_list instead of build_function_type.
11047 (mips16_build_call_stub): Likewise.
11048
11049 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11050
11051 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
11052 instead of build_function_type.
11053
11054 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11055
11056 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
11057 instead of build_function_type.
11058
11059 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
11060
11061 PR target/48678
11062 * config/i386/i386.md (insv): Change operand 0 constraint to
11063 "register_operand". Change operand 1 and 2 constraint to
11064 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
11065 * config/i386/sse.md (sse4_1_pinsrb): Export.
11066 (sse2_pinsrw): Ditto.
11067 (sse4_1_pinsrd): Ditto.
11068 (sse4_1_pinsrq): Ditto.
11069 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
11070 * config/i386/i386.c (ix86_expand_pinsr): New.
11071
11072 2011-04-20 Easwaran Raman <eraman@google.com>
11073
11074 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
11075 containing union type only with -fstrict-aliasing.
11076
11077 2011-04-20 Jim Meyering <meyering@redhat.com>
11078
11079 Remove useless if-before-free tests.
11080 * calls.c (expand_call, save_area): Likewise.
11081 * cfgcleanup.c (try_forward_edges): Likewise.
11082 * collect2.c (collect_execute): Likewise.
11083 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
11084 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
11085 * coverage.c (coverage_checksum_string): Likewise.
11086 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
11087 * cselib.c (cselib_init): Likewise.
11088 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
11089 (df_set_clean_cfg): Likewise.
11090 * function.c (free_after_compilation): Likewise.
11091 * gcc.c (do_spec_1, main): Likewise.
11092 * gcov.c (create_file_names): Likewise.
11093 * gensupport.c (identify_predicable_attribute): Likewise.
11094 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
11095 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
11096 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
11097 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
11098 * ipa-pure-const.c (local_pure_const): Likewise.
11099 * ipa-reference.c (propagate): Likewise.
11100 * ira-costs.c (free_ira_costs): Likewise.
11101 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
11102 * matrix-reorg.c (mat_free): Likewise.
11103 * prefix.c (get_key_value): Likewise.
11104 * profile.c (compute_value_histograms): Likewise.
11105 * reload1.c (free_reg_equiv): Likewise.
11106 * sched-deps.c (free_deps): Likewise.
11107 * sel-sched-ir.c (fence_clear): Likewise.
11108 * sese.c (set_rename, if_region_set_false_region): Likewise.
11109 * tree-data-ref.c (free_rdg): Likewise.
11110 * tree-eh.c (lower_try_finally): Likewise.
11111 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
11112 * tree-ssa-live.c (delete_var_map): Likewise.
11113 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
11114 * tree-ssa-pre.c (phi_trans_add): Likewise.
11115
11116 2011-04-20 Jakub Jelinek <jakub@redhat.com>
11117
11118 PR tree-optimization/48611
11119 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
11120 beyond ERT_MUST_NOT_THROW region.
11121
11122 2011-04-20 Catherine Moore <clm@codesourcery.com>
11123
11124 * config/mips/mips.opt (mfix-24k): New.
11125 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
11126 * config/mips/mips.md (length): Increase by 4 for stores if
11127 fixing 24K errata.
11128 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
11129 all noreorder if fixing 24K errata.
11130 * doc/invoke.texi: Document mfix-24k.
11131
11132 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
11133
11134 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
11135 quad-word modes, reduce to 9-bit index range when above 1016 limit.
11136
11137 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
11138
11139 * config/arm/arm.c (arm_gen_constant): Move movw support ....
11140 (const_ok_for_op): ... to here.
11141
11142 2011-04-20 Kai Tietz <ktietz@redhat.com>
11143
11144 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
11145 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
11146
11147 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
11148
11149 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
11150
11151 2011-04-20 Richard Guenther <rguenther@suse.de>
11152
11153 PR tree-optimization/47892
11154 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
11155 are if-convertible.
11156
11157 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
11158
11159 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
11160
11161 2011-04-20 Tristan Gingold <gingold@adacore.com>
11162
11163 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
11164
11165 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
11166
11167 PR target/18145
11168
11169 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
11170 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
11171 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
11172 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
11173 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
11174
11175 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
11176 New prototype.
11177
11178 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
11179 (avr_asm_named_section, avr_asm_output_aligned_common,
11180 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
11181 New functions to update...
11182 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
11183 (avr_asm_init_sections): Overwrite section callbacks for
11184 data_section, bss_section.
11185 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
11186 from here to...
11187 (avr_file_end): ...here.
11188
11189 2011-04-20 Richard Guenther <rguenther@suse.de>
11190
11191 PR middle-end/48695
11192 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
11193 objects and types here. Adjust for their offset before comparing.
11194
11195 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
11196
11197 * tree-vect-stmts.c (vectorizable_store): Only chain one related
11198 statement per copy.
11199
11200 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
11201
11202 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
11203 (GIMPLE_H): Include $(INTERNAL_FN_H).
11204 (OBJS-common): Add internal-fn.o.
11205 (internal-fn.o): New rule.
11206 * internal-fn.def: New file.
11207 * internal-fn.h: Likewise.
11208 * internal-fn.c: Likewise.
11209 * gimple.h: Include internal-fn.h.
11210 (GF_CALL_INTERNAL): New gf_mask.
11211 (gimple_statement_call): Put fntype into a union with a new
11212 internal_fn field.
11213 (gimple_build_call_internal): Declare.
11214 (gimple_build_call_internal_vec): Likewise.
11215 (gimple_call_same_target_p): Likewise.
11216 (gimple_call_internal_p): New function.
11217 (gimple_call_internal_fn): Likewise.
11218 (gimple_call_fntype): Return null for internal calls.
11219 (gimple_call_set_fntype): Assert that the function is not internal.
11220 (gimple_call_set_fn): Likewise.
11221 (gimple_call_set_fndecl): Likewise.
11222 (gimple_call_set_internal_fn): New function.
11223 (gimple_call_addr_fndecl): Handle null functions.
11224 (gimple_call_return_type): Likewise null types.
11225 * gimple.c (gimple_build_call_internal_1): New function.
11226 (gimple_build_call_internal): Likewise.
11227 (gimple_build_call_internal_vec): Likewise.
11228 (gimple_call_same_target_p): Likewise.
11229 (gimple_call_flags): Handle calls to internal functions.
11230 (gimple_call_fnspec): New function.
11231 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
11232 (gimple_has_side_effects): Handle null functions.
11233 (gimple_rhs_has_side_effects): Likewise.
11234 (gimple_call_copy_skip_args): Handle calls to internal functions.
11235 * cfgexpand.c (expand_call_stmt): Likewise.
11236 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
11237 * gimple-fold.c (gimple_fold_call): Handle null functions.
11238 (gimple_fold_stmt_to_constant_1): Don't fold
11239 calls to internal functions.
11240 * gimple-low.c (gimple_check_call_args): Handle calls to internal
11241 functions.
11242 * gimple-pretty-print.c (dump_gimple_call): Likewise.
11243 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
11244 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
11245 (do_warn_unused_result): Likewise.
11246 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
11247 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
11248 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
11249 the target of a call.
11250 (initialize_hash_element): Update accordingly.
11251 (hashable_expr_equal_p): Use gimple_call_same_target_p.
11252 (iterative_hash_hashable_expr): Handle calls to internal functions.
11253 (print_expr_hash_elt): Likewise.
11254 * tree-ssa-pre.c (can_value_number_call): Likewise.
11255 (eliminate): Handle null functions.
11256 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
11257 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
11258 (find_func_aliases): Likewise.
11259 * value-prof.c (gimple_ic_transform): Likewise.
11260 (gimple_indirect_call_to_profile): Likewise.
11261 * lto-streamer-in.c (input_gimple_stmt): Likewise.
11262 * lto-streamer-out.c (output_gimple_stmt): Likewise.
11263
11264 2011-04-19 Jan Hubicka <jh@suse.cz>
11265
11266 * ipa-inline-transform.c (save_inline_function_body): Add comments.
11267 * ipa-inline.c (inline_small_functions): Compute summaries first,
11268 populate heap later.
11269
11270 2011-04-19 Jan Hubicka <jh@suse.cz>
11271
11272 * cgraph.h (save_inline_function_body): Remove.
11273 * ipa-inline-transform.c: New file, broke out of...
11274 * ipa-inline.c: ... this one; Update toplevel comment.
11275 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
11276 make global.
11277 (update_noncloned_frequencies): Move to ipa-inline-transform.c
11278 (cgraph_mark_inline_edge): Rename to inline_call; move to
11279 ipa-inline-transform.c.
11280 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
11281 move to ipa-inline-transform.c
11282 (recursive_inlining, inline_small_functions, flatten_function,
11283 ipa_inline, inline_always_inline_functions,
11284 early_inline_small_functions): Update.
11285 (inline_transform): Move to ipa-inline-transform.c.
11286 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
11287 Declare.
11288 * Makefile.in (ipa-inline-transform.o): New file.
11289 * cgraphunit.c (save_inline_function_body): Move to
11290 ipa-inline-transform.c
11291
11292 2011-04-19 DJ Delorie <dj@redhat.com>
11293
11294 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
11295 registers if we already know there aren't any.
11296 (m32c_emit_epilogue): Don't emit a barrier here.
11297 (m32c_emit_eh_epilogue): Likewise.
11298 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
11299 operands at expand time.
11300 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
11301 int" wchar type.
11302 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
11303 duplicates. Provide aliases instead.
11304 * config/m32c/prologue.md (eh_return): Emit a barrier here.
11305 (eh_epilogue): Add a "(return)" here as a hint to other parts of
11306 the compiler.
11307
11308 2011-04-19 Anatoly Sokolov <aesok@post.ru>
11309
11310 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
11311 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
11312 (general_or_i64_p, sparc_register_move_cost): New function.
11313
11314 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11315
11316 * doc/install.texi (Configuration, --enable-threads): Remove mach.
11317 Add lynx, mipssde. Sort table.
11318
11319 2011-04-19 Xinliang David Li <davidxl@google.com>
11320
11321 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
11322 not negative.
11323
11324 2011-04-19 Jakub Jelinek <jakub@redhat.com>
11325
11326 PR target/48678
11327 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
11328 is a SUBREG with non-MODE_INT mode inside of it.
11329
11330 2011-04-19 Martin Jambor <mjambor@suse.cz>
11331
11332 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
11333 also according to actual contants.
11334 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
11335 (gimple_fold_call): Use it.
11336 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
11337
11338 2011-04-19 Martin Jambor <mjambor@suse.cz>
11339
11340 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
11341 non-pointer assignments.
11342
11343 2011-04-19 Martin Jambor <mjambor@suse.cz>
11344
11345 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
11346 account anc_offset and otr_type from the indirect edge info.
11347 * ipa-prop.c (get_ancestor_addr_info): New function.
11348 (compute_complex_ancestor_jump_func): Assignment analysis moved to
11349 get_ancestor_addr_info, call it.
11350 (ipa_note_param_call): Do not initialize information about polymorphic
11351 calls, return the indirect call graph edge. Remove the last
11352 parameter, adjust all callers.
11353 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
11354 parameters. Initialize polymorphic information in the indirect edge.
11355
11356 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
11357
11358 PR lto/48148
11359 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
11360 the types if they have different enumeration identifiers.
11361
11362 2011-04-19 Jan Hubicka <jh@suse.cz>
11363
11364 * cgraph.h (cgraph_optimize_for_size_p): Declare.
11365 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
11366 * predict.c (cgraph_optimize_for_size_p): Break out from ...
11367 (optimize_function_for_size_p) ... here.
11368
11369 2011-04-19 Richard Guenther <rguenther@suse.de>
11370
11371 PR lto/48207
11372 * tree.c (free_lang_data): Do not reset the decl-assembler-name
11373 langhook.
11374
11375 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
11376
11377 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
11378 if DECL_NO_INLINE_WARNING_P is set on the function.
11379
11380 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
11381
11382 PR fortran/47976
11383 * reload1.c (inc_for_reload): Return void. All callers changed.
11384 (emit_input_reload_insns): Don't try to delete previous output
11385 reloads to a register, or record spill_reg_store for autoincs.
11386
11387 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
11388
11389 * gengtype.h: Updated copyright year.
11390 (struct input_file_st): Add inpisplugin field.
11391 (type_fileloc): New function.
11392 * gengtype.c
11393 (write_typed_struct_alloc_def): Add gcc_assert.
11394 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
11395 (write_typed_alloc_defns): Don't output for plugin files.
11396 (input_file_by_name): Clear inpisplugin field.
11397 (main): Set inpisplugin field for plugin files.
11398
11399 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
11400
11401 * gengtype-state.c (string_eq): New.
11402 (read_state): Use string_eq instead of strcmp when creating the
11403 state_ident_tab.
11404
11405 2011-04-19 Wei Guozhi <carrot@google.com>
11406
11407 PR target/47855
11408 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
11409 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
11410 linkage.
11411 * config/arm/constraints.md (Uu): New constraint.
11412 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
11413
11414 2011-04-19 Tristan Gingold <gingold@adacore.com>
11415
11416 * config.gcc (-*-*-*vms): Added.
11417 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
11418 definitions moved.
11419 * config/vms/vms-ld.c: New file.
11420 * config/vms/vms-ar.c: New file.
11421 * config/vms/t-vmsnative: New file.
11422
11423 2011-04-18 Xinliang David Li <davidxl@google.com>
11424
11425 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
11426
11427 2011-04-18 Jakub Jelinek <jakub@redhat.com>
11428
11429 PR middle-end/48661
11430 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
11431 if TREE_TYPE (v) is non-NULL.
11432
11433 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
11434 gimple_get_virt_mehtod_for_binfo.
11435 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
11436 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
11437 callers.
11438 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
11439
11440 2011-04-18 Michael Matz <matz@suse.de>
11441 Steve Ellcey <sje@cup.hp.com>
11442
11443 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
11444 use its mode as source mode if it isn't VOIDmode.
11445
11446 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
11447
11448 * doc/passes.texi: Fill crossref nodes.
11449
11450 2011-04-18 Jim Meyering <meyering@redhat.com>
11451
11452 Fix doubled-word typos in comments and strings
11453 * config/alpha/vms-unwind.h: s/for for/for/
11454 * config/arm/unwind-arm.h: Likewise.
11455 * config/microblaze/microblaze.c: Likewise.
11456 * config/sh/constraints.md: s/in in/in/
11457 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
11458
11459 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
11460
11461 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
11462 (AVX_FLOAT_MODE_P): Ditto.
11463 (AVX128_VEC_FLOAT_MODE_P): Ditto.
11464 (AVX256_VEC_FLOAT_MODE_P): Ditto.
11465 (AVX_VEC_FLOAT_MODE_P): Ditto.
11466 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
11467 (UNSPEC_MASKSTORE): Ditto.
11468 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
11469 Merge from <sse>_movmsk<ssemodesuffix> and
11470 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
11471 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
11472 iterator.
11473 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
11474 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
11475 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
11476
11477 2011-04-18 Jan Hubicka <jh@suse.cz>
11478
11479 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
11480
11481 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
11482 (want_inline_function_called_once_p): Break out the logic from
11483 ipa_inline.
11484 (edge_badness): Ensure that profile is not misupdated.
11485 (lookup_recursive_calls): Prioritize by call frequencies.
11486 (inline_small_functions): Move program size estimates here;
11487 actually process whole queue even when unit growth has been
11488 met. (to properly compute inline_failed reasons and for the
11489 case unit size decrease.) Revisit comments on recursive inlining.
11490 (ipa_inline): Remove unit summary code; first inline hot calls
11491 of functions called once, cold calls next.
11492 (order, nnodes): Remove unused variables.
11493 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
11494 (GTFILES): Remove ipa-inline.c
11495 * sel-sched.c (fill_insns): Silence uninitialized var warning.
11496
11497 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
11498
11499 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
11500
11501 2011-04-18 Jie Zhang <jie@codesourcery.com>
11502 Richard Earnshaw <rearnsha@arm.com>
11503
11504 * arm.c (neon_builtin_type_bits): Remove.
11505 (typedef enum neon_builtin_mode): New.
11506 (T_MAX): Don't define.
11507 (typedef enum neon_builtin_datum): Remove bits, codes[],
11508 num_vars and base_fcode. Add mode, code and fcode.
11509 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
11510 VAR10): Change accordingly.
11511 (neon_builtin_data[]): Change accordingly
11512 (arm_init_neon_builtins): Change accordingly.
11513 (neon_builtin_compare): Remove.
11514 (locate_neon_builtin_icode): Remove.
11515 (arm_expand_neon_builtin): Change accordingly.
11516
11517 * arm.h (enum arm_builtins): Move to ...
11518 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
11519
11520 * arm.c (arm_builtin_decl): Declare.
11521 (TARGET_BUILTIN_DECL): Define.
11522 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
11523 (arm_builtin_decls[]): New.
11524 (arm_init_neon_builtins): Store builtin declarations in
11525 arm_builtin_decls[].
11526 (arm_init_tls_builtins): Likewise.
11527 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
11528 (arm_builtin_decl): New.
11529
11530 2011-04-18 Richard Guenther <rguenther@suse.de>
11531
11532 * tree.c (upper_bound_in_type): Build properly canonicalized
11533 INTEGER_CSTs.
11534 (lower_bound_in_type): Likewise.
11535
11536 2011-04-18 Richard Guenther <rguenther@suse.de>
11537
11538 * gimple.h (gimple_call_addr_fndecl): New function.
11539 (gimple_call_fndecl): Use it.
11540 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
11541 for direct calls.
11542 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
11543 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
11544
11545 2011-04-18 Richard Guenther <rguenther@suse.de>
11546
11547 PR middle-end/48650
11548 * tree.c (build_string): STRING_CST is now derived from tree_typed.
11549
11550 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
11551
11552 PR lto/48492
11553 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
11554 DECL_IN_CONSTANT_POOL without RTL.
11555
11556 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
11557 Ira Rosen <ira.rosen@linaro.org>
11558
11559 PR target/48252
11560 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
11561 to match neon_vzip/vuzp/vtrn_internal.
11562 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
11563 outputs explicitly dependent on both inputs.
11564 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
11565
11566 2011-04-18 Jakub Jelinek <jakub@redhat.com>
11567
11568 PR tree-optimization/48616
11569 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
11570 whether the shift is by scalar or vector based on whether all SLP
11571 scalar stmts have the same rhs.
11572
11573 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
11574
11575 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
11576 memory operands.
11577
11578 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
11579
11580 PR target/43700
11581 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
11582 registers.
11583
11584 2011-04-17 Jan Hubicka <jh@suse.cz>
11585
11586 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
11587 * cgrpahunit.c (cgraph_finalize_function): Do not set
11588 finalized_by_frontend.
11589 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
11590 finalized_by_frontend.
11591
11592 2011-04-17 Jan Hubicka <jh@suse.cz>
11593
11594 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
11595 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
11596 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
11597 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
11598 method.
11599 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
11600 gimple-fold.c
11601 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
11602
11603 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
11604
11605 PR lto/48538
11606 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
11607 is non-null before accessing it.
11608 (input_cgraph): Remove trailing spaces.
11609
11610 2011-04-17 Revital Eres <revital.eres@linaro.org>
11611
11612 * params.def (sms-min-sc): New param flag.
11613 * modulo-sched.c (sms_schedule): Use it.
11614 * doc/invoke.texi (sms-min-sc): Document it.
11615
11616 2011-04-17 Jan Hubicka <jh@suse.cz>
11617
11618 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
11619 present, also set gimple_call_set_cannot_inline.
11620 * ipa-inline.c: Update toplevel comment.
11621 (MAX_TIME): Remove.
11622 (cgraph_clone_inlined_nodes): Fix linebreaks.
11623 (cgraph_check_inline_limits): Restructure to ...
11624 (caller_growth_limits): ... this one; be more tolerant
11625 on growth in nested inline chains; add explanatory comment;
11626 fix stack accounting thinko introduced by previous patch.
11627 (cgraph_default_inline_p): Remove.
11628 (report_inline_failed_reason): New function.
11629 (can_inline_edge_p): New function.
11630 (can_early_inline_edge_p): New function.
11631 (leaf_node_p): Move upwards in file.
11632 (want_early_inline_function_p): New function.
11633 (want_inline_small_function_p): New function.
11634 (want_inline_self_recursive_call_p): New function.
11635 (cgraph_edge_badness): Rename to ...
11636 (edge_badness) ... this one; fix linebreaks.
11637 (update_edge_key): Update call of edge_baddness; add
11638 detailed dump about queue updates.
11639 (update_caller_keys): Use can_inline_edge_p and
11640 want_inline_small_function_p.
11641 (cgraph_decide_recursive_inlining): Rename to...
11642 (recursive_inlining): Use can_inline_edge_p and
11643 want_inline_self_recursive_call_p; simplify and remove no longer
11644 valid FIXME.
11645 (cgraph_set_inline_failed): Remove.
11646 (add_new_edges_to_heap): Use can_inline_edge_p and
11647 want_inline_small_function_p.
11648 (cgraph_decide_inlining_of_small_functions): Rename to ...
11649 (inline_small_functions): ... this one; cleanup; use
11650 can/want predicates; cleanup debug ouput; work edges till fibheap
11651 is exhausted and do not stop once unit growth is reached; remove
11652 later loop processing remaining edges.
11653 (cgraph_flatten): Rename to ...
11654 (flatten_function): ... this one; use can_inline_edge_p
11655 and can_early_inline_edge_p predicates.
11656 (cgraph_decide_inlining): Rename to ...
11657 (ipa_inline): ... this one; remove unreachable nodes before
11658 inlining functions called once; simplify the pass.
11659 (cgraph_perform_always_inlining): Rename to ...
11660 (inline_always_inline_functions): ... this one; use
11661 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
11662 (cgraph_decide_inlining_incrementally): Rename to ...
11663 (early_inline_small_functions): ... this one; simplify
11664 using new predicates; cleanup; make dumps prettier.
11665 (cgraph_early_inlining): Rename to ...
11666 (early_inliner): newer inline regular functions into always-inlines;
11667 fix updating of call stmt summaries.
11668 (pass_early_inline): Update for new names.
11669 (inline_transform): Fix formating.
11670 (gate_cgraph_decide_inlining): Rename to ...
11671 (pass_ipa_inline): ... this one.
11672 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
11673 * ipa-inline-analysis.c (dump_inline_summary): Update.
11674 (compute_inline_parameters): Do not compute disregard_inline_limits;
11675 look for mismatching arguments.
11676 (estimate_growth): Fix handlig of non-trivial self recursion.
11677 (inline_read_summary): Do not read info->disregard_inline_limits.
11678 (inline_write_summary): Do not write info->disregard_inline_limits.
11679 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
11680 and move all checks into can_inline_edge_p predicate; re-enable code
11681 comparing optimization levels.
11682 (expand_call_inline): Do not test inline_forbidden_into_p.
11683 * Makefile.in (ipa-inline.o): Update arguments.
11684
11685 2011-04-17 Revital Eres <revital.eres@linaro.org>
11686
11687 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
11688
11689 2011-04-17 Revital Eres <revital.eres@linaro.org>
11690
11691 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
11692
11693 2011-04-17 Michael Matz <matz@suse.de>
11694
11695 PR tree-optimization/48622
11696 PR lto/48645
11697 * ipa-inline-analysis.c (inline_read_summary): Read size/time
11698 in same order as they're written.
11699
11700 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11701
11702 * config/pa/predicates.md: Reorganize and simplify predicates.
11703 Eliminate duplicate code checks.
11704 (arith_operand): Rename to arith14_operand
11705 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
11706 * config/pa/pa.md: Use renamed operands.
11707 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
11708 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
11709 arith11_operand, adddi3_operand, indexed_memory_operand,
11710 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
11711 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
11712 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
11713 move_dest_operand, move_src_operand, prefetch_cc_operand,
11714 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
11715 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
11716 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
11717 div_operand, int5_operand, movb_comparison_operator,
11718 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
11719 arith_double_operand, ireg_operand, lhs_lshift_operand,
11720 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
11721 integer_store_memory_operand): Likewise.
11722 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
11723 (integer_store_memory_operand, read_only_operand,
11724 function_label_operand, borx_reg_operand,
11725 non_hard_reg_operand): Likewise.
11726 (eq_neq_comparison_operator): Delete unused operator.
11727 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
11728 function_label_operand.
11729 (emit_move_sequence): Likewise.
11730
11731 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
11732
11733 * config/i386/sse.md (sseunpackmode): New mode attribute.
11734 (ssepackmode): Ditto.
11735 (vec_pack_trunc_<mode>): Macroize expander from
11736 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
11737 (vec_unpacks_lo_<mode>): Macroize expander from
11738 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11739 (vec_unpacks_hi_<mode>): Macroize expander from
11740 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11741 (vec_unpacku_lo_<mode>): Macroize expander from
11742 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11743 (vec_unpacku_hi_<mode>): Macroize expander from
11744 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11745 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
11746 ix86_expand_sse4_unpack.
11747 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
11748
11749 2011-04-16 Jan Hubicka <jh@suse.cz>
11750
11751 * cgraphbuild.c: Include ipa-inline.h.
11752 (reset_inline_failed): Use initialize_inline_failed.
11753 * cgraph.c: Include ipa-inline.h.
11754 (cgraph_create_node_1): Do not initialize estimated_growth.
11755 (initialize_inline_failed): More to ipa-inline-analysis.c
11756 (dump_cgraph_node): Do not dump inline flags.
11757 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
11758 and disregard_inline_limits flags.
11759 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
11760 time, size, estimated_growth.
11761 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
11762 Update.
11763 * cgraphunit.c (cgraph_decide_is_function_needed): Use
11764 DECL_DISREGARD_INLINE_LIMITS.
11765 (cgraph_analyze_function): Do not initialize
11766 node->local.disregard_inline_limits.
11767 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
11768 inlinable, versionable and disregard_inline_limits.
11769 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
11770 cgraph_check_inline_limits, cgraph_default_inline_p,
11771 cgraph_edge_badness, update_caller_keys, update_callee_keys,
11772 add_new_edges_to_heap): Update.
11773 (cgraph_decide_inlining_of_small_function): Update; set
11774 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
11775 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
11776 cgraph_decide_inlining_incrementally): Update.
11777 * ipa-inline.h (inline_summary): Add inlinable, versionable,
11778 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
11779 time, size and estimated_growth parameters.
11780 (estimate_edge_growth): Update.
11781 (initialize_inline_failed): Declare.
11782 * ipa-split.c: Include ipa-inline.h
11783 (execute_split_functions): Update.
11784 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
11785 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
11786 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
11787 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
11788 estimated_growth to INT_MIN.
11789 (inline_node_duplication_hook): Likewise.
11790 (dump_inline_summary): Dump new fields.
11791 (compute_inline_parameters): Update.
11792 (estimate_edge_time, estimate_time_after_inlining,
11793 estimate_size_after_inlining, estimate_growth, inline_read_summary,
11794 inline_write_summary):
11795 (initialize_inline_failed): Move here from cgraph.c.
11796 * tree-sra.c: Include ipa-inline.h.
11797 (ipa_sra_preliminary_function_checks): Update.
11798 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
11799 ipa-inline.h.
11800
11801 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
11802
11803 * config/i386/sse.md (V16): New mode iterator.
11804 (VI1, VI8): Ditto.
11805 (AVXMODEQI, AVXMODEDI): Remove.
11806 (sse2, sse3): New mode attribute.
11807 (mov<mode>): Use V16 mode iterator.
11808 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
11809 (push<mode>1): Use V16 mode iterator.
11810 (movmisalign<mode>): Ditto.
11811 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
11812 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
11813 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
11814 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
11815 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
11816 avx_movdqu<avxmodesuffix>.
11817 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
11818 *avx_movdqu<avxmodesuffix>.
11819 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
11820 avx_lddqu<avxmodesuffix>.
11821 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
11822 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
11823 avx_movnt<AVXMODEDI:mode>.
11824 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
11825 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
11826
11827 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
11828
11829 PR target/48629
11830 * haifa-sched.c (prune_ready_list, schedule_block): Use
11831 sched_pressure_p rather than flag_sched_pressure.
11832
11833 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
11834
11835 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
11836 cgraph_get_node instead of cgraph_get_create_node.
11837
11838 2011-04-15 Jakub Jelinek <jakub@redhat.com>
11839
11840 * cfgexpand.c (expand_debug_expr): Use
11841 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
11842
11843 2011-04-15 Michael Matz <matz@suse.de>
11844
11845 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
11846 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
11847 * function.c (gimplify_parameters): Ditto.
11848 * gimplify.c (gimplify_vla_decl): Ditto.
11849
11850 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
11851 (gimple_call_set_alloca_for_var): New inline function.
11852 (gimple_call_alloca_for_var_p): Ditto.
11853 * gimple.c (gimple_build_call_from_tree): Remember
11854 CALL_ALLOCA_FOR_VAR_P state.
11855 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
11856
11857 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
11858 calls if they were for VLA objects.
11859
11860 2011-04-15 Martin Jambor <mjambor@suse.cz>
11861
11862 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
11863 of ADR_EXPRs.
11864
11865 2011-04-15 Martin Jambor <mjambor@suse.cz>
11866
11867 PR middle-end/48601
11868 * tree-emutls.c (lower_emutls_function_body): Call
11869 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
11870 result is non-NULL.
11871
11872 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
11873
11874 * c-decl.c (detect_field_duplicates): Call
11875 objc_detect_field_duplicates instead of objc_get_interface_ivars.
11876
11877 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
11878
11879 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
11880 * gimple.c (gimple_asm_clobbers_memory_p): Define.
11881 * ipa-pure-const.c (check_stmt): Call it.
11882 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
11883
11884 2011-04-15 Richard Guenther <rguenther@suse.de>
11885
11886 PR tree-optimization/48290
11887 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
11888 Properly decide inhibiting propagation based on the valueized
11889 operand. Do loop-closed SSA form preserving here ...
11890 (init_copy_prop): ... not here.
11891
11892 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
11893
11894 PR target/48612
11895 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
11896 (*ieee_smax<mode>3): Likewise.
11897
11898 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11899
11900 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
11901 Replace match_operand with match_dup for the third operand in
11902 these expanders.
11903
11904 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
11905
11906 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
11907 to track processing of conditionals. Update all callers.
11908 (try_combine, simplify_if_then_else): Update.
11909
11910 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
11911
11912 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
11913 -fsched-pressure.
11914
11915 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
11916
11917 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
11918 instead of match_operand for operand 3.
11919
11920 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
11921
11922 * recog.h (insn_operand_data): Add an "allows_mem" field.
11923 * genoutput.c (output_operand_data): Initialize it.
11924 * optabs.c (maybe_legitimize_operand_same_code): New function.
11925 (maybe_legitimize_operand): Use it when matching the original
11926 op->value.
11927
11928 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
11929
11930 * gimplify.c: Fix issues in comments throughout.
11931 (voidify_wrapper_expr): Fix long line.
11932 (build_stack_save_restore): Likewise.
11933 (gimplify_loop_expr): Likewise.
11934 (gimplify_compound_lval): Likewise.
11935 (gimplify_init_ctor_eval): Likewise.
11936 (gimplify_modify_expr_rhs): Likewise.
11937 (omp_notice_threadprivate_variable): Likewise.
11938
11939 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
11940
11941 * cfgexpand.c (expand_call_stmt): Convert the function type to the
11942 original one if this is not a builtin function.
11943
11944 2011-04-14 Jakub Jelinek <jakub@redhat.com>
11945
11946 PR target/48605
11947 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
11948 offset it as needed based on top 2 bits in operands[3], change
11949 MEM mode to SFmode and mask those 2 bits away from operands[3].
11950
11951 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
11952
11953 * c-parser.c (c_parser_objc_protocol_definition): Updated for
11954 change from objc_declare_protocols() to objc_declare_protocol().
11955
11956 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
11957
11958 * config/i386/sse.md (sse4_1): New mode attribute.
11959 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
11960 avx_blend<ssemodesuffix><avxmodesuffix> and
11961 sse4_1_blend<ssemodesuffix> using VF mode iterator.
11962 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
11963 avx_blendv<ssemodesuffix><avxmodesuffix> and
11964 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
11965 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
11966 avx_dp<ssemodesuffix><avxmodesuffix> and
11967 sse4_1_dp<ssemodesuffix> using VF mode iterator.
11968 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
11969 (sse4_1_packusdw): Merge with *avx_packusdw.
11970 (sse4_1_pblendvb): Merge with *avx_pblendvb.
11971 (sse4_1_pblendw): Merge with *avx_pblendw.
11972 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
11973 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
11974 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
11975 VF mode iterator.
11976 (sse4_1_round<ssescalarmodesuffix>): Merge with
11977 *avx_round<ssescalarmodesuffix>.
11978 (aesenc): Merge with *avx_aesenc.
11979 (aesenclast): Merge with *avx_aesenclast.
11980 (aesdec): Merge with *avx_aesdec.
11981 (aesdeclast): Merge with *avx_aesdeclast.
11982 (pclmulqdq): Merge with *pclmulqdq.
11983 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
11984 New predicate.
11985 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
11986
11987 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
11988
11989 PR middle-end/48608
11990 * cfgexpand.c (get_decl_align_unit): Renamed to ...
11991 (align_local_variable): This. Update DECL_ALIGN.
11992 (add_stack_var): Updated.
11993 (expand_one_stack_var): Likewise.
11994
11995 2011-04-14 Richard Guenther <rguenther@suse.de>
11996
11997 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
11998 Remove.
11999 (dse_initialize_block_local_data, dse_leave_block,
12000 record_voperand_set, get_stmt_uid): Likewise.
12001 (dse_possible_dead_store_p): Allow any kind of killing stmt.
12002 (dse_optimize_stmt): Remove voperand set handling code.
12003 Simplify and improve to handle any kind of killing stmt.
12004 (dse_record_phi): Remove.
12005 (dse_enter_block): Simplify.
12006 (tree_ssa_dse): Likewise.
12007 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
12008
12009 2011-04-14 Jan Hubicka <jh@suse.cz>
12010
12011 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
12012 * cgraph.h (struct inline_summary): Move to ipa-inline.h
12013 (cgraph_local_info): Remove inline_summary.
12014 * ipa-cp.c: Include ipa-inline.h.
12015 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
12016 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
12017 accesor.
12018 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
12019 (input_overwrite_node): Do not set inline summary.
12020 (input_node): Do not stream inline summary.
12021 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
12022 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
12023 growth; we do not have inline parameters computed for that anyway.
12024 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
12025 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
12026 (inline_summary_t): New type and VECtor.
12027 (debug_inline_summary, dump_inline_summaries): Declare.
12028 (inline_summary): Use VOCtor.
12029 (estimate_edge_growth): Kill hack computing call stmt size directly.
12030 * lto-section-in.c (lto_section_name): Add inline section.
12031 * ipa-inline-analysis.c: Include lto-streamer.h
12032 (node_removal_hook_holder, node_duplication_hook_holder): New holders
12033 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
12034 (inline_summary_vec): Define.
12035 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
12036 dump_inline_summaries): New functions.
12037 (estimate_function_body_sizes): Properly compute size/time of outgoing
12038 calls.
12039 (compute_inline_parameters): Alloc inline_summary; do not compute
12040 size/time of incomming calls.
12041 (estimate_edge_time): Avoid missing time summary hack.
12042 (inline_read_summary): Read inline summary info.
12043 (inline_write_summary): Write inline summary info.
12044 (inline_free_summary): Free all hooks and inline summary vector.
12045 * lto-streamer.h: Add LTO_section_inline_summary section.
12046 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
12047 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
12048
12049 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12050
12051 * tree-vectorizer.h (vect_strided_store_supported): Add a
12052 HOST_WIDE_INT argument.
12053 (vect_strided_load_supported): Likewise.
12054 (vect_permute_store_chain): Return void.
12055 (vect_transform_strided_load): Likewise.
12056 (vect_permute_load_chain): Delete.
12057 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
12058 count argument. Check that the count is a power of two.
12059 (vect_strided_load_supported): Likewise.
12060 (vect_permute_store_chain): Return void. Update after above changes.
12061 Assert that the access is supported.
12062 (vect_permute_load_chain): Likewise.
12063 (vect_transform_strided_load): Return void.
12064 * tree-vect-stmts.c (vectorizable_store): Update calls after
12065 above interface changes.
12066 (vectorizable_load): Likewise.
12067 (vect_analyze_stmt): Don't check for strided powers of two here.
12068
12069 2011-04-14 Richard Guenther <rguenther@suse.de>
12070
12071 PR tree-optimization/48590
12072 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12073 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12074 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
12075 BUILT_IN_STACK_SAVE.
12076 * tree-ssa-dce.c (propagate_necessity): Handle
12077 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12078
12079 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
12080
12081 * c-parser.c (c_parser_objc_class_declaration): Updated call to
12082 objc_declare_class.
12083
12084 2011-04-14 Richard Guenther <rguenther@suse.de>
12085
12086 * tree.h (get_object_alignment_1): Declare.
12087 * builtins.c (get_object_alignment_1): Split out worker from ...
12088 (get_object_alignment): ... here.
12089 * fold-const.c (get_pointer_modulus_and_residue): Use
12090 get_object_alignment_1.
12091
12092 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12093
12094 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
12095 type parameter.
12096 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
12097 parameter. Generalise code to handle arrays as well as vectors.
12098 (vect_setup_realignment): Update accordingly.
12099 * tree-vect-stmts.c (vectorizable_store): Likewise.
12100 (vectorizable_load): Likewise.
12101
12102 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12103
12104 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
12105 within the per-copy loop.
12106
12107 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12108
12109 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
12110 in the dump file.
12111
12112 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12113
12114 * doc/options.texi (Negative): Explicitly mention that the
12115 Negative chain must be circular.
12116
12117 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
12118
12119 * function.h (block_chainon): Declare.
12120 * function.c (block_chainon): Define.
12121
12122 2011-04-14 Anatoly Sokolov <aesok@post.ru>
12123 Eric Weddington <eric.weddington@atmel.com>
12124 Georg-Johann Lay <avr@gjlay.de>
12125
12126 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
12127 New Includes
12128 (avr_init_builtins, avr_expand_builtin,
12129 avr_expand_delay_cycles, avr_expand_unop_builtin,
12130 avr_expand_binop_builtin ): New functions.
12131 (avr_builtin_id): New enum
12132 (struct avr_builtin_description): New struct
12133 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
12134 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
12135
12136 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
12137 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
12138 UNSPECV_DELAY_CYCLES): new enumeration values
12139 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
12140 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
12141 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
12142 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
12143 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
12144 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
12145 "fmulsu"): New insns
12146
12147 * config/avr/avr-c.c: fix line endings
12148 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
12149 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
12150 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
12151 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
12152 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
12153
12154 * doc/extend.texi (AVR Built-in Functions): New node
12155 (Target Builtins): Add documentation of AVR
12156 built-in functions.
12157
12158 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
12159
12160 PR target/44643
12161 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
12162 alone. Error if non-const data has attribute progmem.
12163
12164 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12165
12166 * tree.h (struct tree_constructor): Include tree_typed instead of
12167 tree_common.
12168 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
12169 TS_TYPED instead of TS_COMMON.
12170
12171 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
12172
12173 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
12174 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
12175 (sse2_psadbw): Merge with *avx_psadbw.
12176 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
12177 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
12178 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
12179 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
12180 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
12181 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
12182 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
12183 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
12184 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
12185 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
12186 (ssse3_palignrti): Merge with *avx_palignrti.
12187
12188 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12189
12190 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
12191 * tree-ssanames.c (fini_ssanames): VEC_free it.
12192 (make_ssa_name_fn): Update for VECness of free_ssanames.
12193 (release_ssa_name, release_dead_ssa_names): Likewise.
12194 * tree.h (struct tree_ssa_name): Include tree_typed instead of
12195 tree_common.
12196 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
12197 TS_TYPED instead of TS_COMMON.
12198
12199 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12200
12201 * postreload-gcse.c (gcse_after_reload_main): Add calls to
12202 statistics_counter_event.
12203 * tree-ssa-copyrename.c (stats): Define.
12204 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
12205 statistics_counter_event.
12206 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
12207 (bswap_stats, widen_mul_stats): Define.
12208 (insert_reciprocals): Increment rdivs_inserted.
12209 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
12210 rfuncs_inserted. Add calls to statistics_counter_event.
12211 (execute_cse_sincos_1): Increment inserted.
12212 (execute_cse_sincos): Zeroize sincos_stats. Add call to
12213 statistics_counter_event.
12214 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
12215 of bswap_stats. Add calls to statistics_counter_event.
12216 (convert_mult_to_widen): Increment widen_mults_inserted.
12217 (convert_plusminus_to_widen): Increment maccs_inserted.
12218 (convert_mult_to_fma): Increment fmas_inserted.
12219 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
12220 calls to statistics_counter_event.
12221
12222 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
12223
12224 PR rtl-optimization/48455
12225 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
12226 `temp_costs->mem_cost'.
12227
12228 2011-04-13 Jan Hubicka <jh@suse.cz>
12229
12230 * ipa-inline.h: New file.
12231 * ipa-inline-analysis.c: New file. Broken out of ...
12232 * ipa-inline.c: ... this file; update toplevel comment;
12233 include ipa-inline.h
12234 (inline_summary): Move to ipa-inline.h
12235 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
12236 ipa-inline-analysis.c.
12237 (cgraph_estimate_time_after_inlining): Rename to
12238 estiamte_time_after_inlining; move to ipa-inline-analysis.c
12239 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
12240 to estimate_edge_growth.
12241 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
12242 rename to estimate_size_after_inlining.
12243 (cgraph_mark_inline_edge): Update for new naming convention.
12244 (cgraph_check_inline_limits): Likewise.
12245 (cgraph_edge_badness): Likewise.
12246 (cgraph_decide_recursive_inlining): Likewise.
12247 (cgraph_decide_inlining_of_small_functions): Likewise.
12248 (cgraph_decide_inlining_incrementally): Likewise.
12249 (cgraph_estimate_growth): Rename to estimate_growth; move to
12250 ipa-inline-analysis.c.
12251 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
12252 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
12253 (compute_inline_parameters): Likewise.
12254 (compute_inline_parameters_for_current): Likewise.
12255 (pass_inline_parameters): Likewise.
12256 (inline_indirect_intraprocedural_analysis): Likewise.
12257 (analyze_function): Rename to inline_analyze_function; likewise.
12258 (add_new_function): Move to ipa-inline-analysis.c.
12259 (inline_generate_summary): Likewise.
12260 (inline_read_summary): Likewise.
12261 (inline_write_summary): Likewise.
12262 * Makefile.in (ipa-inline-analysis.c): New file.
12263
12264 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12265
12266 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
12267 * configure: Regenerate.
12268
12269 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12270
12271 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
12272 instead of tree_common.
12273 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
12274 Likewise.
12275 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
12276 TS_TYPED rather than TS_COMMON.
12277 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
12278
12279 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
12280
12281 PR target/45263
12282 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
12283 r20 around calls of __tablejump_elpm__
12284
12285 2011-04-13 Jakub Jelinek <jakub@redhat.com>
12286
12287 PR middle-end/48591
12288 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
12289 NULL.
12290 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
12291
12292 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
12293
12294 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
12295 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
12296 (cfi_vec): New typedef.
12297 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
12298 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
12299 (cie_cfi_vec): New static variable.
12300 (cie_cfi_head): Delete.
12301 (add_cfi): Accept a cfi_vec * as first argument. All callers and
12302 declaration changed. Use vector rather than list operations.
12303 (new_cfi): Don't initialize the dw_cfi_next field.
12304 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
12305 rather than list operations.
12306 (lookup_cfa): Use vector rather than list operations.
12307 (output_cfis): New argument upto. Accept a cfi_vec rather than
12308 a dw_cfi_ref list head as argument. All callers changed.
12309 Iterate over the vector using upto as a maximum index.
12310 (output_all_cfis): New static function.
12311 (output_fde): Use vector rather than list operations. Use the
12312 new upto argument for output_cfis rather than manipulating a
12313 list.
12314 (dwarf2out_begin_prologue): Change initializations to match
12315 new struct members.
12316 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
12317 from the vector length rather than searching for the end of a list.
12318 Use output_all_cfis.
12319 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
12320
12321 2011-04-13 Nick Clifton <nickc@redhat.com>
12322
12323 * config/rx/rx.md (movmemsi): Do not use this pattern when
12324 volatile pointers are involved.
12325
12326 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
12327
12328 * config/i386/sse.md (pinsrbits): Remove.
12329 (sse2_packsswb): Merge with *avx_packsswb.
12330 (sse2_packssdw): Merge with *avx_packssdw.
12331 (sse2_packuswb): Merge with *avx_packuswb.
12332 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
12333 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
12334 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
12335 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
12336 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
12337 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
12338 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
12339 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
12340 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
12341 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
12342 (sse2_loadld): Merge with *avx_loadld.
12343 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
12344 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
12345 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
12346 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
12347 (vec_concatv2di): Merge with *vec_concatv2di_avx.
12348
12349 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
12350
12351 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
12352 calling TREE_CHAIN.
12353 * print-tree.c (print_node): Likewise.
12354 * tree-inline.c (copy_tree_r): Likewise.
12355 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
12356 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
12357 instead of TS_COMMON.
12358 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
12359 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
12360 (copy_node_stat): Zero TREE_CHAIN only if necessary.
12361 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
12362 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
12363 ...and these...
12364 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
12365 * tree.h: ...here.
12366 (TREE_CHAIN): Check for a TS_COMMON structure.
12367 (TREE_TYPE): Check for a TS_TYPED structure.
12368
12369 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
12370
12371 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
12372 cgraph_get_create_node instead of cgraph_node.
12373
12374 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
12375
12376 * c-parser.c (c_parser_initelt): Updated call to
12377 objc_build_message_expr.
12378 (c_parser_postfix_expression): Likewise.
12379
12380 2011-04-12 Kai Tietz <ktietz@redhat.com>
12381
12382 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
12383 MASK_MS_BITFIELD_LAYOUT bit.
12384
12385 2011-04-12 Jakub Jelinek <jakub@redhat.com>
12386
12387 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
12388 assert it is always true.
12389 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
12390 moves.
12391
12392 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
12393
12394 * c-parser.c (c_lex_one_token): Rewritten conditional used when
12395 compiling Objective-C to be more efficient.
12396
12397 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
12398
12399 * opts-common.c (decode_cmdline_options_to_array): Remove variable
12400 argv_copied.
12401
12402 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12403
12404 * recog.h, genoutput.c, optabs.c: Revert last patch.
12405
12406 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12407
12408 PR target/48090
12409 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
12410
12411 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12412
12413 * recog.h (insn_operand_data): Add an "allows_mem" field.
12414 * genoutput.c (output_operand_data): Initialize it.
12415 * optabs.c (maybe_legitimize_operand_same_code): New function.
12416 (maybe_legitimize_operand): Use it when matching the original
12417 op->value.
12418
12419 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12420
12421 * genpreds.c (process_define_predicate): Move most processing
12422 to gensupport.c. Continue to validate the expression.
12423 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
12424 (process_define_predicate): Move processing to gensupport.c.
12425 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
12426 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
12427 (compute_predicate_codes): Moved from genrecog.c. Add lineno
12428 argument.
12429 (valid_predicate_name_p): New function, split out from old
12430 genpreds.c:process_define_predicate.
12431 (process_define_predicate): New function, combining code from
12432 old genpreds.c and genrecog.c functions.
12433 (process_rtx): Call it for DEFINE_PREDICATE and
12434 DEFINE_SPECIAL_PREDICATE.
12435
12436 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12437
12438 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
12439 size of a '%A' memory reference.
12440 (T_DREG, T_QREG): New neon_builtin_type_bits.
12441 (arm_init_neon_builtins): Assert that the load and store operands
12442 are neon_struct_operands.
12443 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
12444 (NEON_ARG_MEMORY): New builtin_arg.
12445 (neon_dereference_pointer): New function.
12446 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
12447 Handle NEON_ARG_MEMORY.
12448 (arm_expand_neon_builtin): Update after above interface changes.
12449 Use NEON_ARG_MEMORY for loads and stores.
12450 * config/arm/predicates.md (neon_struct_operand): New predicate.
12451 * config/arm/iterators.md (V_two_elem): Tweak formatting.
12452 (V_three_elem): Use BLKmode for accesses that have no associated mode.
12453 (V_four_elem): Tweak formatting.
12454 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
12455 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
12456 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
12457 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
12458 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
12459 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
12460 (neon_vst4<mode>): Replace pointer operand with a memory operand.
12461 Use %A in the output template.
12462 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
12463 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
12464 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
12465 the width of the memory access. Remove post-increment.
12466 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
12467
12468 2011-04-12 Nick Clifton <nickc@redhat.com>
12469
12470 * config/v850/v850.c (expand_prologue): Do not use the CALLT
12471 instruction for interrupt handlers if the target is the basic V850
12472 architecture.
12473 (expand_epilogue): Likewise.
12474
12475 2011-04-12 Jakub Jelinek <jakub@redhat.com>
12476
12477 PR rtl-optimization/48549
12478 * combine.c (propagate_for_debug): Also stop after BB_END of
12479 this_basic_block. Process LAST and just stop processing after it.
12480 (combine_instructions): If last_combined_insn has been deleted,
12481 set last_combined_insn to its PREV_INSN.
12482
12483 2011-04-12 Richard Guenther <rguenther@suse.de>
12484
12485 PR tree-optimization/46076
12486 * gimple.h (struct gimple_statement_call): Add fntype field.
12487 (gimple_call_fntype): Adjust.
12488 (gimple_call_set_fntype): New function.
12489 * gimple.c (gimple_build_call_1): Set the call function type.
12490 * gimplify.c (gimplify_call_expr): Preserve the function
12491 type the frontend used for the call.
12492 (gimplify_modify_expr): Likewise.
12493 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
12494 function type.
12495 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
12496 function type.
12497 * tree-ssa.c (useless_type_conversion_p): Function pointer
12498 conversions are useless.
12499
12500 2011-04-12 Martin Jambor <mjambor@suse.cz>
12501
12502 * cgraph.h (cgraph_node): Remove function declaration.
12503 (cgraph_create_node): Declare.
12504 (cgraph_get_create_node): Likewise.
12505 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
12506 Updated all callers.
12507 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
12508 the decl does not already exist. Call cgraph_get_create_node instead
12509 of cgraph_node.
12510 (cgraph_get_create_node): New function.
12511 (cgraph_same_body_alias): Update comment.
12512 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
12513 assert it does not return NULL.
12514 (cgraph_update_edges_for_call_stmt): Likewise.
12515 (cgraph_clone_edge): Likewise.
12516 (cgraph_create_virtual_clone): Likewise.
12517 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
12518 instead of cgraph_node.
12519 (cgraph_add_new_function): Call cgraph_create_node or
12520 cgraph_get_create_node instead of cgraph_node.
12521 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
12522 instead of cgraph_node.
12523 (record_eh_tables): Likewise.
12524 (mark_address): Likewise.
12525 (mark_load): Likewise.
12526 (build_cgraph_edges): Call cgraph_get_create_node instead
12527 of cgraph_node.
12528 (rebuild_cgraph_edges): Likewise.
12529 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
12530 instead of cgraph_node.
12531 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
12532 cgraph_node.
12533 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
12534 cgraph_create_node instead of cgraph_node.
12535 * c-decl.c (finish_function): Call cgraph_get_create_node instead
12536 of cgraph_node.
12537 * lto-cgraph.c (input_node): Likewise.
12538 * lto-streamer-in.c (input_function): Likewise.
12539 * varasm.c (mark_decl_referenced): Likewise.
12540 (assemble_alias): Likewise.
12541
12542 2011-04-12 Martin Jambor <mjambor@suse.cz>
12543
12544 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
12545 instead of cgraph_node and assert it does not return NULL.
12546 * lto-streamer-in.c (lto_read_body): Likewise.
12547 * omp-low.c (new_omp_context): Likewise.
12548 (create_task_copyfn): Likewise.
12549 * tree-emutls.c (lower_emutls_function_body): Likewise.
12550 * matrix-reorg.c (transform_allocation_sites): Likewise.
12551
12552 2011-04-12 Jakub Jelinek <jakub@redhat.com>
12553
12554 PR c/48552
12555 * c-typeck.c (build_asm_expr): Error out on attempts to use
12556 void type outputs or inputs for constraints that allow reg or
12557 don't allow memory.
12558
12559 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
12560 Richard Earnshaw <rearnsha@arm.com>
12561
12562 PR target/48250
12563 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
12564 to use sign-magnitude offsets. Reject unsupported unaligned
12565 cases. Add detailed description in comments.
12566 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
12567 condition from TARGET_32BIT to TARGET_ARM.
12568
12569 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
12570
12571 * tree.h (struct typed_tree): New.
12572 (struct tree_common): Include it instead of tree_base.
12573 (TREE_TYPE): Update for new location of type field.
12574 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
12575 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
12576 (union tree_node): Add typed field.
12577 * treestruct.def (TS_TYPED): New.
12578 * lto-streamer.c (check_handled_ts_structures): Handle it.
12579 * tree.c (MARK_TS_TYPED): New macro.
12580 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
12581
12582 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
12583
12584 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
12585 (force_nonfallthru): Do not alter the loop nest if no basic block
12586 was created.
12587
12588 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
12589
12590 * config/i386/sse.md (VI): New mode iterator.
12591 (SSEMODEI): Remove.
12592 (AVX256MODEI): Ditto.
12593 (AVXMODEF4P): Ditto.
12594 (avxvecpsmode): Ditto.
12595 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
12596 (sse2_andnot<mode>3): New expander.
12597 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
12598 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
12599 (<any_logic:code><mode>3): Use VI mode iterator.
12600 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
12601 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
12602 (*andnottf3): Handle AVX three-operand constraints.
12603 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
12604
12605 2011-04-11 Joseph Myers <joseph@codesourcery.com>
12606 Robert Millan <rmh@gnu.org>
12607
12608 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
12609 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
12610 GNU_USER_DYNAMIC_LINKER64): Define.
12611 (REG_NAME): Don't undefine.
12612 (MD_UNWIND_SUPPORT): Undefine.
12613 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
12614 (REG_NAME): Don't undefine.
12615 (MD_UNWIND_SUPPORT): Undefine.
12616 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
12617
12618 2011-04-11 Joseph Myers <joseph@codesourcery.com>
12619
12620 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
12621 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
12622
12623 2011-04-11 Xinliang David Li <davidxl@google.com>
12624
12625 * value-profile.c (check_ic_target): New function.
12626 (gimple_ic_transform): Sanity check indirect call target.
12627 * gimple-low.c (gimple_check_call_args): Interface change.
12628 (gimple_check_call_matching_types): New function.
12629 * tree-inline.c (tree_can_inline_p): Call new function.
12630
12631 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
12632
12633 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
12634 tree-pretty-print.h & realmpfr.h.
12635
12636 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
12637
12638 PR middle-end/48464
12639 * ira.c (setup_pressure_classes): Fix typo in loop condition.
12640 (setup_allocno_and_important_classes): Ditto.
12641
12642 2011-04-11 Joseph Myers <joseph@codesourcery.com>
12643
12644 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
12645 GNU_USER_DYNAMIC_LINKER.
12646 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
12647 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12648 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
12649 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12650 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12651 GNU_USER_TARGET_OS_CPP_BUILTINS.
12652 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
12653 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12654 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12655 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12656 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
12657 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12658 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12659 GNU_USER_TARGET_OS_CPP_BUILTINS.
12660 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12661 GNU_USER_DYNAMIC_LINKER.
12662 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12663 GNU_USER_TARGET_OS_CPP_BUILTINS.
12664 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
12665 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12666 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
12667 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12668 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
12669 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
12670 GNU_USER_DYNAMIC_LINKER64): Remove.
12671 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
12672 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12673 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12674 GNU_USER_DYNAMIC_LINKER.
12675 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12676 GNU_USER_TARGET_OS_CPP_BUILTINS.
12677 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12678 GNU_USER_TARGET_OS_CPP_BUILTINS.
12679 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
12680 to GNU_USER_TARGET_OS_CPP_BUILTINS.
12681 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12682 GNU_USER_TARGET_OS_CPP_BUILTINS.
12683 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
12684 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
12685 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
12686 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
12687 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12688 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12689 GNU_USER_DYNAMIC_LINKER.
12690 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12691 GNU_USER_TARGET_OS_CPP_BUILTINS.
12692 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
12693 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12694 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12695 GNU_USER_DYNAMIC_LINKER.
12696 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12697 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12698 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
12699 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12700 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12701 GNU_USER_DYNAMIC_LINKER.
12702 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
12703 GNU_USER_DYNAMIC_LINKERN32.
12704 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
12705 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
12706 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
12707 GNU_USER_DYNAMIC_LINKER32.
12708 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
12709 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12710 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12711 GNU_USER_DYNAMIC_LINKER.
12712 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12713 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12714 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
12715 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12716 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12717 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
12718 GNU_USER_DYNAMIC_LINKER32.
12719 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
12720 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
12721 GNU_USER_DYNAMIC_LINKER.
12722 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
12723 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12724 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
12725 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
12726 GNU_USER_DYNAMIC_LINKER64.
12727 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
12728 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12729 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12730 GNU_USER_DYNAMIC_LINKER.
12731 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
12732 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12733 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12734 GNU_USER_DYNAMIC_LINKER.
12735 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
12736 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12737 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
12738 GNU_USER_DYNAMIC_LINKER32.
12739 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
12740 GNU_USER_DYNAMIC_LINKER64.
12741 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
12742 GNU_USER_DYNAMIC_LINKER64.
12743 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
12744 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12745 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
12746 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12747 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12748
12749 2011-04-11 Joseph Myers <joseph@codesourcery.com>
12750
12751 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
12752 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
12753 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
12754 GNU_USER_DYNAMIC_LINKER.
12755 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
12756 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
12757 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
12758 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
12759 GNU_USER_DYNAMIC_LINKER64.
12760 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
12761 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
12762 GNU_USER_LINK_EMULATION.
12763 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
12764 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
12765 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
12766 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
12767 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
12768 CPP_SPEC, CC1_SPEC): Remove.
12769 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
12770 (GNU_USER_DYNAMIC_LINKER): Define.
12771 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
12772 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
12773 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
12774 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
12775 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
12776 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
12777 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
12778 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
12779 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
12780 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
12781 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
12782 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
12783 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
12784 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
12785 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
12786 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
12787 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12788 GNU_USER_DYNAMIC_LINKER.
12789 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12790 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
12791 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12792 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
12793 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12794 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
12795 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
12796 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
12797 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
12798 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
12799
12800 2011-04-11 Kai Tietz <ktietz@redhat.com>
12801
12802 PR target/9601
12803 PR target/11772
12804 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
12805 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
12806 comment.
12807 (ix86_is_msabi_thiscall): Removed.
12808 (ix86_is_type_thiscall): Likewise.
12809 (ix86_get_callcvt): New function.
12810 (ix86_comp_type_attributes): Simplify check.
12811 (ix86_function_regparm): Use ix86_get_callcvt for calling
12812 convention attribute checks.
12813 (ix86_return_pops_args): Likewise.
12814 (ix86_static_chain): Likewise.
12815 (x86_this_parameter): Likewise.
12816 (x86_output_mi_thunk): Likewise.
12817 (ix86_function_type_abi): Optimize check for types without attributes.
12818 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
12819 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
12820 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
12821 by flag-values.
12822 (IX86_BASE_CALLCVT): Helper macro.
12823 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
12824 Use ix86_get_callcvt for calling convention attribute checks and avoid
12825 symbol-decoration for stdcall in TARGET_RTD case.
12826 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
12827 Likewise.
12828 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
12829 for declaration.
12830
12831 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
12832
12833 * config/i386/sse.md (VI_128): New mode iterator.
12834 (VI12_128): Rename from SSEMODE12.
12835 (VI14_128): Rename from SSEMODE14.
12836 (VI124_128): New mode iterator.
12837 (VI24_128): Rename from SSEMODE248.
12838 (VI248_128): Rename from SSEMODE248.
12839 (SSEMODE124C8): Remove.
12840 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
12841 (*sse2_<plusminus_insn><mode>3): Merge with
12842 *avx_<plusminus_insn><mode>3.
12843 (*mulv8hi3): Merge with *avx_mulv8hi3.
12844 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
12845 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
12846 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
12847 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
12848 (ashr<mode>3): Merge with *avx_ashr<mode>3.
12849 (lshr<mode>3): Merge with *avx_lshr<mode>3.
12850 (ashl<mode>3): Merge with *avx_ashl<mode>3.
12851 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
12852 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
12853 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
12854 (*<smaxmin:code>v8hi3): Ditto.
12855 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
12856 (*<smaxmin:code>v16qi3): Ditto.
12857 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
12858 (*sse2_eq<mode>3): Ditto.
12859 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
12860 (*sse2_gt<mode>3): Ditto.
12861 (vcondv2di): Split out of vcond<mode>.
12862 (vconduv2di): Split out of vcondu<mode>.
12863
12864 2011-04-11 Richard Guenther <rguenther@suse.de>
12865
12866 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
12867 before calling tree_low_cst.
12868
12869 2011-04-11 Richard Guenther <rguenther@suse.de>
12870
12871 * stor-layout.c (layout_type): Compute all array index size operations
12872 in the original type.
12873 (initialize_sizetypes): Add comment.
12874 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
12875
12876 2011-04-11 Joseph Myers <joseph@codesourcery.com>
12877
12878 * common.opt (Tbss=, Tdata=, Ttext=): New options.
12879
12880 2011-04-11 Martin Jambor <mjambor@suse.cz>
12881
12882 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
12883 of cgraph_node, handle NULL return value.
12884 (cgraph_global_info): Likewise.
12885 (cgraph_rtl_info): Likewise.
12886 * tree-inline.c (estimate_num_insns): Likewise.
12887 * gimplify.c (unshare_body): Likewise.
12888 (unvisit_body): Likewise.
12889 (gimplify_body): Likewise.
12890 * predict.c (optimize_function_for_size_p): Likewise.
12891 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
12892 (call_may_clobber_ref_p_1): Likewise.
12893 * varasm.c (function_section_1): Likewise.
12894 (assemble_start_function): Likewise.
12895
12896 2011-04-11 Martin Jambor <mjambor@suse.cz>
12897
12898 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
12899 of cgraph_node.
12900 * final.c (rest_of_clean_state): Likewise.
12901 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
12902 * passes.c (pass_init_dump_file): Likewise.
12903 (execute_all_ipa_transforms): Likewise.
12904 (function_called_by_processed_nodes_p): Likewise.
12905 * predict.c (maybe_hot_frequency_p): Likewise.
12906 (probably_never_executed_bb_p): Likewise.
12907 (compute_function_frequency): Likewise.
12908 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
12909 (unnest_nesting_tree_1): Likewise.
12910 (lower_nested_functions): Likewise.
12911 * tree-optimize.c (execute_fixup_cfg): Likewise.
12912 (tree_rest_of_compilation): Likewise.
12913 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
12914 * tree-sra.c (ipa_early_sra): Likewise.
12915 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
12916 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
12917 * ipa.c (record_cdtor_fn): Likewise.
12918 * ipa-inline.c (cgraph_early_inlining): Likewise.
12919 (compute_inline_parameters_for_current): Likewise.
12920 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
12921 * ipa-pure-const.c (local_pure_const): Likewise.
12922 * ipa-split.c (split_function): Likewise.
12923 (execute_split_functions): Likewise.
12924 * cgraphbuild.c (build_cgraph_edges): Likewise.
12925 (rebuild_cgraph_edges): Likewise.
12926 (cgraph_rebuild_references): Likewise.
12927 (remove_cgraph_callee_edges): Likewise.
12928 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
12929 (verify_cgraph_node): Likewise.
12930 (cgraph_analyze_functions): Likewise.
12931 (cgraph_preserve_function_body_p): Likewise.
12932 (save_inline_function_body): Likewise.
12933 (save_inline_function_body): Likewise.
12934 * tree-inline.c (copy_bb): Likewise.
12935 (optimize_inline_calls): Likewise.
12936
12937 2011-04-11 Martin Jambor <mjambor@suse.cz>
12938
12939 PR tree-optimization/48195
12940 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
12941 ipa_check_create_edge_args.
12942 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
12943 ipa_check_create_edge_args.
12944 * ipa-inline.c (inline_generate_summary): Do not call
12945 ipa_check_create_node_params and ipa_check_create_edge_args.
12946 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
12947 ipa_check_create_edge_args.
12948
12949 2011-04-09 Anatoly Sokolov <aesok@post.ru>
12950
12951 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
12952 instead of loop.
12953 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
12954 * function.c (record_hard_reg_sets): Likewise.
12955 * ira.c (compute_regs_asm_clobbered): Likewise.
12956 * sched-deps.c (sched_analyze_1): Likewise.
12957 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
12958
12959 2011-04-09 Xinliang David Li <davidxl@google.com>
12960
12961 PR tree-optimization/PR48484
12962 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
12963 has_valid_pred lazily
12964
12965 2011-04-09 Duncan Sands <baldrick@free.fr>
12966
12967 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
12968
12969 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
12970
12971 * combine.c (combine_validate_cost): Adjust comments. Set registered
12972 cost of I0 to zero at the end, if any.
12973
12974 2011-04-08 Xinliang David Li <davidxl@google.com>
12975
12976 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
12977 to insane profile data.
12978
12979 2011-04-08 Xinliang David Li <davidxl@google.com>
12980
12981 * ipa-cp.c (ipcp_update_profiling): Correct
12982 negative scale factor due to insane profile data.
12983
12984 2011-04-08 Xinliang David Li <davidxl@google.com>
12985
12986 * final.c (dump_basic_block_info): New function.
12987 (final): Dump basic block.
12988 (final_scan_insn): Remove old dump.
12989
12990 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
12991
12992 PR target/47829
12993 * config.gcc (i386-*-freebsd): Disable unwind table generation for
12994 crtbegin/crtend.
12995
12996 2011-04-08 Michael Matz <matz@suse.de>
12997
12998 PR middle-end/48389
12999 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
13000 functions.
13001 (rebuild_jump_labels): Call rebuild_jump_labels_1.
13002 * rtl.h (rebuild_jump_labels_chain): Declare.
13003 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
13004 insns inserted on edges.
13005
13006 2011-04-08 Joseph Myers <joseph@codesourcery.com>
13007
13008 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
13009 * config/arm/arm-arches.def: New.
13010 * config/arm/arm-opts.h: New.
13011 * config/arm/genopt.sh: New.
13012 * config/arm/arm-tables.opt: New (generated).
13013 * config/arm/arm.c (arm_handle_option, arm_target_help,
13014 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
13015 (all_architectures): Get most table contents from arm-arches.def.
13016 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
13017 arm_selected_tune here.
13018 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
13019 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
13020 (march=, mcpu=, mtune=): Use Enum and Var.
13021 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
13022 (arm.o): Update dependencies.
13023
13024 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
13025
13026 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
13027 of header_file.
13028 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
13029 (write_typed_alloc_defns): Likewise.
13030 (main): Calls write_typed_alloc_defns with output_header.
13031
13032 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
13033
13034 PR inline-asm/48435
13035 * ira-color.c (setup_profitable_hard_regs): Add comments.
13036 Don't take prohibited hard regs into account.
13037 (setup_conflict_profitable_regs): Rename to
13038 get_conflict_profitable_regs.
13039 (check_hard_reg_p): Check prohibited hard regs.
13040
13041 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
13042
13043 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
13044 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
13045 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
13046
13047 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13048
13049 PR target/48366
13050 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
13051 move from floating point to shift amount register.
13052 (emit_move_sequence): Remove secondary reload support for floating
13053 point to shift amount amount register copies.
13054 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
13055 amount register copies.
13056 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
13057 register, return false if mode isn't a scalar integer mode.
13058 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
13059
13060 2011-04-08 Richard Guenther <rguenther@suse.de>
13061
13062 * gimple.c (gimple_call_flags): Remove kludge.
13063
13064 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13065
13066 * sel-sched.c (sel_region_init): Move call to
13067 sel_setup_region_sched_flags after setup_current_loop_nest.
13068
13069 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
13070
13071 PR rtl-optimization/48272
13072 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
13073 init_insn_reg_pressure_info. Adjust a caller.
13074 * sched-int.h (init_insn_reg_pressure_info): Declare.
13075 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
13076 when sched-pressure is enabled.
13077
13078 2011-04-08 Richard Guenther <rguenther@suse.de>
13079
13080 * gimple.c (gimple_set_modified): Do not queue calls to
13081 MODIFIED_NORETURN_CALLS here ...
13082 * tree-ssa-operands.c (update_stmt_operands): ... but here.
13083
13084 2011-04-08 Richard Guenther <rguenther@suse.de>
13085
13086 PR lto/48467
13087 * toplev.c (lang_dependent_init): Do not open asm_out_file
13088 in WPA mode, nor perform debug machinery initialization.
13089 (finalize): Do not unlink asm_out_file in WPA mode.
13090
13091 2011-04-08 Richard Guenther <rguenther@suse.de>
13092
13093 * gimple.h (gimple_call_fntype): New function.
13094 (gimple_call_return_type): Use it.
13095 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
13096 * gimple-low.c (gimple_check_call_args): Likewise.
13097 * gimple.c (gimple_call_flags): Likewise.
13098 (gimple_call_arg_flags): Likewise.
13099 (gimple_call_return_flags): Likewise.
13100 * tree-cfg.c (verify_gimple_call): Likewise.
13101 (do_warn_unused_result): Likewise.
13102 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
13103 * value-prof.c (gimple_ic_transform): Fix fndecl check.
13104
13105 2011-04-08 Dmitry Melnik <dm@ispras.ru>
13106
13107 PR rtl-optimization/48235
13108 * sel-sched.c (code_motion_process_successors): Recompute the last
13109 insn in basic block if control flow changed.
13110 (code_motion_path_driver): Ditto. Recompute the first insn as well.
13111 Update condition for ilist_remove.
13112
13113 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13114
13115 PR rtl-optimization/48302
13116 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
13117 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
13118 it to record added preheader blocks.
13119 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
13120 on to sel_add_loop_preheaders.
13121 (sel_region_init): Move call to setup_current_loop_nest after
13122 sel_init_bbs.
13123
13124 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13125
13126 PR target/48273
13127 * cfgloop.h (loop_has_exit_edges): New helper.
13128 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
13129 non-clonable.
13130 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
13131 that have no exit edges.
13132
13133 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13134
13135 PR rtl-optimization/48442
13136 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
13137 all callers. Adjust assert.
13138
13139 2011-04-08 Jakub Jelinek <jakub@redhat.com>
13140
13141 PR tree-optimization/48377
13142 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
13143 is_packed to true even for types with smaller TYPE_ALIGN than
13144 TYPE_SIZE.
13145
13146 2011-04-08 Richard Guenther <rguenther@suse.de>
13147
13148 PR bootstrap/48513
13149 * doc/tm.texi: Re-generate.
13150
13151 2011-04-08 Wei Guozhi <carrot@google.com>
13152
13153 PR target/47855
13154 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
13155 * config/arm/arm.c (arm_attr_length_push_multi): New function.
13156 * config/arm/arm.md (*push_multi): Change the length computation to
13157 call a C function.
13158
13159 2011-04-08 Anatoly Sokolov <aesok@post.ru>
13160
13161 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
13162 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
13163 * doc/tm.texi: Regenerate.
13164 * system.h (ASM_OUTPUT_BSS): Poison.
13165 * varasm.c (asm_output_bss): Remove function.
13166 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
13167
13168 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
13169 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
13170 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
13171 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13172 Likewise.
13173 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13174 Likewise.
13175 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13176 Likewise.
13177 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13178
13179 2011-04-07 Joseph Myers <joseph@codesourcery.com>
13180
13181 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
13182 EnumValue lines.
13183
13184 2011-04-07 Joseph Myers <joseph@codesourcery.com>
13185
13186 * config/m68k/m68k.c (m68k_handle_option): Don't handle
13187 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
13188 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
13189 OPT_mcpu32.
13190 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13191 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
13192 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
13193 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
13194 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
13195 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
13196 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13197 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
13198 options. Don't map other m68k options manually. Don't handle
13199 old-style options as canonical.
13200 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13201 * doc/install.texi (m68k-*-*): Document binutils version requirement.
13202
13203 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
13204
13205 * basic-block.h (force_nonfallthru): Move to...
13206 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
13207 (force_nonfallthru): ...here.
13208 * cfghooks.c (force_nonfallthru): New function.
13209 * cfgrtl.c (force_nonfallthru): Rename into...
13210 (rtl_force_nonfallthru): ...this.
13211 (commit_one_edge_insertion): Do not set AUX field.
13212 (commit_edge_insertions): Do not discover new basic blocks.
13213 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
13214 (cfg_layout_rtl_cfg_hooks): Likewise.
13215 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
13216 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
13217 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
13218
13219 2011-04-07 Anatoly Sokolov <aesok@post.ru>
13220
13221 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13222 Remove macros.
13223
13224 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
13225
13226 * config/i386/sse.md: Update copyright year.
13227 (avxcvtvecmode): Remove.
13228 (sse_movhlps): Merge with *avx_movhlps.
13229 (sse_movlhps): Merge with *avx_movlhps.
13230 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
13231 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
13232 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
13233 (sse_loadhps): Merge with *avx_loadhps.
13234 (sse_storelps): Merge with *avx_storelps.
13235 (sse_loadlps): Merge with *avx_loadlps.
13236 (sse_movss): Merge with *avx_movss.
13237 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
13238 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
13239 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
13240 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
13241 (vec_set<mode>_0): Ditto.
13242 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
13243 (sse4_1_insertps): Merge with *avx_insertps.
13244 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
13245 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
13246 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
13247 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
13248 (sse2_storehpd): Merge with *avx_storehpd.
13249 (sse2_loadhpd): Merge with *avx_loadhpd.
13250 (sse2_loadlpd): Merge with *avx_loadlpd.
13251 (sse2_movsd): Merge with *avx_movsd.
13252 (*vec_concatv2df): Merge with *vec_concatv2df.
13253
13254 2011-04-07 Jakub Jelinek <jakub@redhat.com>
13255
13256 PR debug/48343
13257 * combine.c (combine_instructions): Add last_combined_insn,
13258 update it if insn is after it, pass it to all try_combine calls.
13259 (try_combine): Add last_combined_insn parameter, pass it instead of
13260 i3 to propagate_for_debug.
13261
13262 2011-04-07 Nick Clifton <nickc@redhat.com>
13263
13264 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
13265 to handle MDR <-> data register transfers.
13266 (movhi_internal): Likewise.
13267
13268 2011-04-07 Alan Modra <amodra@gmail.com>
13269
13270 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
13271 previous stack info.
13272
13273 2011-04-07 Tom de Vries <tom@codesourcery.com>
13274
13275 PR target/43920
13276 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
13277 flow_find_cross_jump. Swap variables to implement backward replacement.
13278 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
13279
13280 2011-04-07 Tom de Vries <tom@codesourcery.com>
13281
13282 PR target/43920
13283 * cfgcleanup.c (walk_to_nondebug_insn): New function.
13284 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
13285 and bb2.
13286 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
13287 src1 or src2. Redirect edges to the last basic block. Update
13288 frequency and count on multiple basic blocks in case of fallthru.
13289
13290 2011-04-07 Tom de Vries <tom@codesourcery.com>
13291
13292 PR target/43920
13293 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
13294 function.
13295 (old_insns_match_p): Change return type. Replace return false/true
13296 with return dir_none/dir_both. Use can_replace_by.
13297 (flow_find_cross_jump): Add dir_p parameter. Init replacement
13298 direction from dir_p. Register replacement direction in dir, last_dir
13299 and afterlast_dir. Handle new return type of old_insns_match_p using
13300 merge_dir. Return replacement direction in dir_p.
13301 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
13302 return type of old_insns_match_p.
13303 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
13304 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
13305 flow_find_cross_jump.
13306 * basic-block.h (enum replace_direction): New type.
13307 (flow_find_cross_jump): Add parameter to declaration.
13308
13309 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
13310
13311 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
13312 (AVXMODEDCVTPS2DQ): Ditto.
13313 (VEC_FLOAT_MODE): Ditto.
13314 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
13315 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13316 (<any_logic:code><mode>3): Use VF mode iterator.
13317 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
13318 Use VF mode iterator.
13319 (copysign<mode>3): Use VF mode iterator.
13320 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
13321 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13322 (*<any_logic:code><MODEF:mode>3): Merge with
13323 *avx_<any_logic:code><MODEF:mode>3.
13324 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
13325 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
13326 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
13327 (avx_cvtdq2ps<avxmodesuffix>): Remove.
13328 (sse2_cvtdq2ps): Use %v modifier.
13329 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
13330 (avx_cvtps2dq<avxmodesuffix>): Remove.
13331 (sse2_cvtps2dq): Use %v modifier.
13332 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
13333 (avx_cvttps2dq<avxmodesuffix>): Remove.
13334 (sse2_cvttps2dq): Use %v modifier.
13335 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
13336 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
13337 (sse2_cvtsd2siq): Fix insn template.
13338 (sse2_cvtsd2siq_2): Ditto.
13339 (sse2_cvttsd2siq): Ditto.
13340 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
13341 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
13342
13343 2011-04-06 Joseph Myers <joseph@codesourcery.com>
13344
13345 * gcov-io.c: Use GCC Runtime Library Exception.
13346
13347 2011-04-06 Jakub Jelinek <jakub@redhat.com>
13348
13349 PR debug/48466
13350 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
13351 as base_reg whatever register reg has been eliminated to, instead
13352 of hardcoding STACK_POINTER_REGNUM.
13353
13354 2011-04-06 Joseph Myers <joseph@codesourcery.com>
13355
13356 * doc/tm.texi.in: Document C target hooks as separate from general
13357 target hooks.
13358 * doc/tm.texi: Regenerate.
13359 * genhooks.c (struct hook_desc): Add docname field.
13360 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
13361 docname field.
13362 (hook_array): Include c-target.def.
13363 (emit_documentation): Use docname field in output.
13364 (emit_init_macros): Take docname argument. Only emit definitions
13365 for hooks matching docname.
13366 (main): Expect additional arguments in all cases. Pass argument
13367 to emit_init_macros.
13368 * target.def: Move initial macro definitions and comments to
13369 target-hooks-macros.h.
13370 (gcc_targetcm): Move to c-family/c-target.def.
13371 * target.h (targetcm): Move declaration to c-family/c-target.h.
13372 * targhooks.c (default_handle_c_option): Move to
13373 c-family/c-opts.c.
13374 * targhooks.h (default_handle_c_option): Move declaration to
13375 c-family/c-common.h.
13376 * target-hooks-macros.h: New file.
13377 * config.gcc (target_has_targetcm): Define and use to add to
13378 c_target_objs and cxx_target_objs.
13379 * config/default-c.c: New file.
13380 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
13381 of target.h and target-def.h.
13382 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
13383 (darwin_objc_construct_string, darwin_cfstring_ref_p,
13384 darwin_check_cfstring_format_arg): Make static.
13385 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13386 TARGET_STRING_OBJECT_REF_TYPE_P,
13387 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
13388 * config/darwin-protos.h (darwin_objc_construct_string,
13389 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
13390 declare.
13391 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13392 TARGET_STRING_OBJECT_REF_TYPE_P,
13393 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
13394 * config/t-darwin (darwin-c.o): Update dependencies.
13395 * system.h (TARGET_HAS_TARGETCM): Poison.
13396 * Makefile.in (TARGET_H): Update.
13397 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
13398 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
13399 (default-c.o): New target.
13400 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
13401 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
13402 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
13403 c-target.def.
13404 (build/genhooks.o): Update dependencies.
13405
13406 2011-04-06 Richard Guenther <rguenther@suse.de>
13407
13408 * ipa-inline.c (enum inlining_mode): Remove.
13409 (cgraph_flatten): Use some other token.
13410 (cgraph_edge_early_inlinable_p): New function, split out from ...
13411 (cgraph_perform_always_inlining): New function, split out from ...
13412 (cgraph_decide_inlining_incrementally): ... here.
13413 (cgraph_mark_inline_edge): Adjust.
13414 (cgraph_early_inlining): Re-structure.
13415 (pass_early_inline): Require SSA form.
13416
13417 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
13418 Julian Brown <julian@codesourcery.com>
13419 Mark Shinwell <shinwell@codesourcery.com>
13420
13421 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
13422 LO_REGS only for Thumb-1.
13423 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
13424 be used in short instructions when optimising for size on Thumb-2.
13425
13426 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
13427
13428 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
13429 associated with user returns to be preserved.
13430
13431 2011-04-06 Tristan Gingold <gingold@adacore.com>
13432
13433 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
13434 symbol_queue_size, DBXOUT_DECR_NESTING,
13435 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
13436 if XCOFF_DEBUGGING_INFO.
13437
13438 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
13439
13440 * config/i386/i386.md (attribute isa): New.
13441 (attribute enabled): New.
13442 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
13443 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
13444 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
13445 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
13446 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
13447 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13448 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
13449 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
13450
13451 * config/i386/sse.md (VF): New mode iterator.
13452 (VF1): Ditto.
13453 (VF2): Ditto.
13454 (VF_128): Ditto.
13455 (SSEMODEF4): Remove.
13456 (attribute sse): Handle V8SF and V4DF modes.
13457 (<absneg:code><mode>2): Use VF mode iterator.
13458 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
13459 mode iterator.
13460 (<plusminus_insn><mode>3): Use VF mode iterator.
13461 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
13462 Use VF mode iterator.
13463 (<sse>_vm<plusminus_insn><mode>3): Merge with
13464 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
13465 (mul<mode>3): Use VF mode iterator.
13466 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
13467 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
13468 mode iterator.
13469 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
13470 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
13471 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
13472 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
13473 mode iterator.
13474 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
13475 Use VF1 mode iterator.
13476 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
13477 (sqrt<VF2:mode>2): New expander.
13478 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
13479 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
13480 and sqrtv2df2. Use VF mode iterator.
13481 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
13482 mode iterator.
13483 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
13484 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
13485 Use VF1 mode iterator.
13486 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
13487 (<smaxmin:code><mode>3): Use VF mode iterator.
13488 (*<smaxmin:code><mode>3_finite): Merge with
13489 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
13490 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13491 (<sse>_vm<smaxmin:code><mode>2): Merge with
13492 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
13493 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
13494 mode iterator.
13495 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
13496 mode iterator.
13497 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
13498 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
13499 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
13500 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
13501 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
13502 VF mode iterator.
13503 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
13504 Use VF_128 mode iterator.
13505 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
13506 mode iterator.
13507 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
13508 VF_128 mode iterator.
13509 (vcond<mode>): Use VF mode iterator.
13510 * config/i386/predicates.md (sse_comparison_operator): Merge with
13511 avx_comparison_float_operator. Do not declare as special_predicate.
13512 * config/i386/i386.c (struct builtin_description): Update for renamed
13513 compare patterns.
13514 (ix86_expand_args_builtin): Ditto.
13515 (ix86_expand_sse_compare_mask): Ditto.
13516
13517 2011-04-06 Richard Guenther <rguenther@suse.de>
13518
13519 * tree-inline.c (estimate_num_insns): For calls simply account
13520 for all passed arguments and a used return value.
13521
13522 2011-04-06 Richard Guenther <rguenther@suse.de>
13523
13524 PR tree-optimization/47663
13525 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
13526 call_stmt_time fields.
13527 (cgraph_edge_inlinable_p): Declare.
13528 (cgraph_edge_recursive_p): New inline function.
13529 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
13530 (cgraph_clone_edge): Copy it.
13531 * ipa-inline.c (cgraph_estimate_edge_time): New function.
13532 Account for call stmt time.
13533 (cgraph_estimate_time_after_inlining): Take edge argument.
13534 (cgraph_estimate_edge_growth): Account call stmt size.
13535 (cgraph_estimate_size_after_inlining): Take edge argument.
13536 (cgraph_mark_inline_edge): Adjust.
13537 (cgraph_check_inline_limits): Likewise.
13538 (cgraph_recursive_inlining_p): Remove.
13539 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
13540 (cgraph_decide_recursive_inlining): Take edge argument and
13541 adjust.
13542 (cgraph_decide_inlining_of_small_functions): Do not avoid
13543 diags for recursive inlining here.
13544 (cgraph_flatten): Adjust.
13545 (cgraph_decide_inlining_incrementally): Likewise.
13546 (estimate_function_body_sizes): Remove call cost handling.
13547 (compute_inline_parameters): Initialize caller edge call costs.
13548 (cgraph_estimate_edge_growth): New function.
13549 (cgraph_estimate_growth): Use it.
13550 (cgraph_edge_badness): Likewise.
13551 (cgraph_check_inline_limits): Take an edge argument.
13552 (cgraph_decide_inlining_of_small_functions): Adjust.
13553 (cgraph_decide_inlining): Likewise.
13554 * tree-inline.c (estimate_num_insns): Only account for call
13555 return value if it is used.
13556 (expand_call_inline): Avoid diagnostics on recursive inline
13557 functions here.
13558 * lto-cgraph.c (lto_output_edge): Output edge call costs.
13559 (input_edge): Input edge call costs.
13560
13561 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13562
13563 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
13564
13565 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
13566
13567 * doc/invoke.texi (Spec Files): Fix typo.
13568
13569 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
13570
13571 * profile.c (branch_prob): Move declaration of local variable. Remove
13572 obsolete ??? comment. Expand the location explicitly instead of using
13573 the LOCATION_FILE and LOCATION_LINE macros.
13574
13575 2011-04-06 Wei Guozhi <carrot@google.com>
13576
13577 PR target/47855
13578 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
13579 (arm_cond_branch): Likewise.
13580 (arm_cond_branch_reversed): Likewise.
13581 (arm_jump): Likewise.
13582 (push_multi): Likewise.
13583 * config/arm/constraints.md (Py): New constraint.
13584
13585 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13586
13587 PR bootstrap/48471
13588 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
13589 Move these...
13590 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
13591 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
13592 #ifdef DBX_DEBUGGING_INFO.
13593
13594 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
13595
13596 PR bootstrap/48403
13597 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
13598 if old and new states differ.
13599
13600 2011-04-05 Joseph Myers <joseph@codesourcery.com>
13601
13602 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
13603 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
13604 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13605 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
13606 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
13607 mcfv4e): Use Alias.
13608 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
13609 ColdFire options to -mcpu= options.
13610
13611 2011-04-05 Jeff Law <law@redhat.com>
13612
13613 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
13614 check if BB is a successor of LOOP->header and return
13615 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
13616
13617 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
13618
13619 * cprop.c (struct reg_use): Remove.
13620 (reg_use_table): Make an array of RTX.
13621 (find_used_regs, constprop_register, local_cprop_pass,
13622 bypass_block): Simplify users of reg_use_table.
13623 (cprop_insn): Likewise. Iterate if copy propagation succeeded
13624 on one of the uses found by find_used_regs.
13625
13626 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13627
13628 PR bootstrap/48469
13629 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
13630 declaration.
13631
13632 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13633
13634 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
13635 as an rtx.
13636 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
13637
13638 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
13639
13640 PR middle-end/48441
13641 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
13642
13643 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13644
13645 * combine.c: Include obstack.h.
13646 (struct insn_link): Define.
13647 (uid_log_links): Adjust type.
13648 (FOR_EACH_LOG_LINK): New macro.
13649 (insn_link_obstack): Declare.
13650 (alloc_insn_link): Define.
13651 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
13652 type of link variables.
13653 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
13654 (try_combine, record_promoted_values, distribute_notes): Likewise.
13655 (distribute_links): Likewise. Tweak prototype.
13656 (clear_log_links): Delete.
13657 (adjust_for_new_dest): Call alloc_insn_link.
13658 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
13659
13660 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13661
13662 * gcse.c (modify_mem_list): Convert to an array of VECs.
13663 (canon_modify_mem_list, compute_transp): Tweak formatting.
13664 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
13665 (load_killed_in_block_p): Likewise.
13666 (record_last_mem_set_info): Likewise.
13667 (clear_modify_mem_tables): Likewise.
13668
13669 2011-04-05 Tom de Vries <tom@codesourcery.com>
13670
13671 PR middle-end/48461
13672 * function.c (emit_use_return_register_into_block): Only define if
13673 HAVE_return.
13674
13675 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
13676
13677 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
13678
13679 2011-04-05 Joseph Myers <joseph@codesourcery.com>
13680
13681 * config/rx/rx-opts.h: New.
13682 * config/rx/rx.c (rx_cpu_type): Remove.
13683 (rx_handle_option): Don't assert that global structures are in
13684 use. Access variables via opts pointer. Defer most handling of
13685 OPT_mint_register_. Use error_at.
13686 (rx_option_override): Handle deferred OPT_mint_register_ here.
13687 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
13688 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
13689 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
13690 (rx_cpu_types): New Enum and EnumValue entries.
13691 (mint-register=): Use Defer and use Var accordingly.
13692
13693 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13694
13695 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
13696 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
13697 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
13698 Move these...
13699 (debug_free_queue, debug_nesting, symbol_queue_index):
13700 ...and these...
13701 * dbxout.c: ...to here. Make static.
13702
13703 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13704
13705 * gcse.c (modify_pair): Define. Define a VEC of it.
13706 (canon_modify_mem_list): Convert to an array of VECs.
13707 (free_insn_expr_list_list): Delete.
13708 (clear_modify_mem_tables): Call VEC_free instead.
13709 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
13710 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
13711 (canon_list_insert, compute_transp): Likewise.
13712
13713 2011-04-05 Tom de Vries <tom@codesourcery.com>
13714
13715 PR target/43920
13716 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
13717 for size.
13718
13719 2011-04-05 Tom de Vries <tom@codesourcery.com>
13720
13721 PR target/43920
13722 * function.c (emit_use_return_register_into_block): New function.
13723 (thread_prologue_and_epilogue_insns): Use
13724 emit_use_return_register_into_block.
13725
13726 2011-04-05 Tom de Vries <tom@codesourcery.com>
13727
13728 PR target/43920
13729 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
13730 insn.
13731
13732 2011-04-05 Tom de Vries <tom@codesourcery.com>
13733
13734 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
13735
13736 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
13737
13738 * config/arm/arm.md (define_constants for unspec): Replace with
13739 define_c_enum.
13740 (define_constants for unspecv): Replace with define_c_enum.
13741 * config/arm/neon.md (define_constants for unspec): Replace with
13742 define_c_enum.
13743
13744 2011-04-04 Richard Henderson <rth@redhat.com>
13745
13746 PR bootstrap/48400
13747 * dwarf2out.c (output_line_info): Always emit line info from
13748 at least one section.
13749 (dwarf2out_init): Create text_section_line_info here ...
13750 (set_cur_line_info_table): ... not here.
13751
13752 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
13753
13754 PR target/48380
13755 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
13756 not called.
13757
13758 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
13759
13760 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
13761
13762 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
13763 (expr_equiv_p): Remove.
13764 (insert_set_in_table): Look at <dest, src> pair instead of expr.
13765 (hash_scan_set): Update call to insert_set_in_table.
13766 (dump_hash_table): Dump <dest, src> pair.
13767 (lookup_set): Simplify. Lookup <dest, src> pair.
13768 (compute_transp): Remove, fold heavily simplified code into...
13769 (compute_local_properties): ...here. Expect COMP and TRANSP
13770 unconditionally.
13771 (find_avail_set): Take set directly from struct expr.
13772 (find_bypass-set): Likewise.
13773 (bypass_block): Likewise.
13774 (cprop_insn): Likewise. Remove redundant INSN_P test.
13775
13776 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
13777 checks on form of COND from find_implicit_sets to here.
13778 (find_implicit_sets): Cleanup control flow. Split critical edges
13779 if it exposes implicit sets. Allocate/resize implicit_sets as
13780 necessary.
13781 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
13782 changed something. Run df_analyze after find_implicit_sets if any
13783 edges were split. Do not allocate implicit_sets here.
13784
13785 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
13786 (gcse_obstack): Renamed to cprop_obstack.
13787 (GNEW, GNEWVEC, GNEWVAR): Remove.
13788 (gmalloc): Remove.
13789 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
13790 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
13791 (gcse_alloc): Likewise, and rename to cprop_alloc.
13792 (alloc_gcse_men, free_gcse_mem): Remove.
13793 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
13794 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
13795 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
13796
13797 * cprop.c (oprs_not_set_p): Remove.
13798 (mark_set, mark_clobber): Remove.
13799 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
13800 (reg_not_set_p): New function.
13801 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
13802 (cprop_insn): Likewise.
13803 (cprop_jump): Use FOR_EACH_EDGE.
13804
13805 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
13806
13807 PR bootstrap/48403
13808 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
13809 (rank_for_schedule): Use scheduled_insns vector instead of
13810 last_scheduled_insn.
13811 (ok_for_early_queue_removal): Likewise.
13812 (queue_to_ready): Search forward in nonscheduled_insns_begin if
13813 we have a dbg_cnt.
13814 (choose_ready): Likewise.
13815 (commit_schedule): Use VEC_iterate.
13816 (schedule_block): Initialize nonscheduled_insns_begin. If we have
13817 a dbg_cnt, use it and ensure the first insn is in the ready list.
13818 (haifa_sched_init): Allocate scheduled_insns.
13819 (sched_extend_ready_list): Don't allocate it; reserve space.
13820 (haifa_sched_finish): Free it.
13821
13822 2011-04-04 Joseph Myers <joseph@codesourcery.com>
13823
13824 * optc-gen.awk: Always remove type from Variable entry before
13825 recording in var_seen.
13826
13827 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
13828
13829 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
13830 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
13831 call to tidy_fallthru_edges.
13832
13833 2011-04-04 Joseph Myers <joseph@codesourcery.com>
13834
13835 * doc/options.texi (ToLower): Document.
13836 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
13837 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
13838 * opts.h (cl_option): Add cl_tolower field.
13839 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
13840 arguments with lowercase strings.
13841 * config/rx/rx.opt (mcpu=): Add ToLower.
13842 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
13843 argument.
13844
13845 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
13846
13847 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
13848
13849 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
13850
13851 * config/vax/vax.c: Include reload.h.
13852
13853 2011-04-04 Anatoly Sokolov <aesok@post.ru>
13854
13855 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
13856 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13857 (sparc_preferred_reload_class): New function.
13858
13859 2011-04-04 Jakub Jelinek <jakub@redhat.com>
13860
13861 PR debug/48401
13862 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
13863 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
13864
13865 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
13866
13867 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
13868 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
13869
13870 2011-04-03 Anatoly Sokolov <aesok@post.ru>
13871
13872 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
13873 (ASM_OUTPUT_ALIGNED_BSS): Define.
13874
13875 2011-04-03 Michael Matz <matz@suse.de>
13876
13877 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
13878 and next_slot members.
13879 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
13880 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
13881 (lto_streamer_cache_append): Declare.
13882 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
13883 unsigned index, remove offset parameter, ensure that we append
13884 or update existing entries.
13885 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
13886 parameter, update next_slot for append.
13887 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
13888 parameter.
13889 (lto_streamer_cache_insert_at): Likewise.
13890 (lto_streamer_cache_append): New function.
13891 (lto_streamer_cache_lookup): Use unsigned index.
13892 (lto_streamer_cache_get): Likewise.
13893 (lto_record_common_node): Don't test tree_node_can_be_shared.
13894 (preload_common_node): Adjust call to lto_streamer_cache_insert.
13895 (lto_streamer_cache_delete): Don't free offsets member.
13896 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
13897 (lto_output_string_with_length): Use lto_output_data_stream.
13898 (lto_output_tree_header): Remove ix parameter, don't write it.
13899 (lto_output_builtin_tree): Likewise.
13900 (lto_write_tree): Adjust callers to above, don't track and write
13901 offset, write unsigned index.
13902 (output_unreferenced_globals): Don't emit all global vars.
13903 (write_global_references): Use unsigned indices.
13904 (lto_output_decl_state_refs): Likewise.
13905 (write_symbol): Likewise.
13906 * lto-streamer-in.c (lto_input_chain): Move earlier.
13907 (input_function): Use unsigned index.
13908 (input_alias_pairs): Don't read and then ignore all global vars.
13909 (lto_materialize_tree): Remove ix_p parameter, don't read index,
13910 don't pass it back, use lto_streamer_cache_append.
13911 (lto_register_var_decl_in_symtab): Use unsigned index.
13912 (lto_register_function_decl_in_symtab): Likewise.
13913 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
13914 index.
13915 (lto_get_builtin_tree): Don't read index, use
13916 lto_streamer_cache_append.
13917 (lto_read_tree): Adjust call to lto_materialize_tree.
13918
13919 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
13920 don't use function calls in arguments to MIN.
13921
13922 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
13923 twice.
13924
13925 * gimple.c (gimple_type_leader_entry): Mark deletable.
13926
13927 2011-04-03 Alan Modra <amodra@gmail.com>
13928
13929 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
13930
13931 2011-04-03 Michael Matz <matz@suse.de>
13932
13933 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
13934 an integer.
13935 * tree.h (tree_decl_non_common.vindex): Adjust comment.
13936
13937 2011-04-03 Michael Matz <matz@suse.de>
13938
13939 * cgraphbuild.c (record_reference): Canonicalize constructor values.
13940 * gimple-fold.c (canonicalize_constructor_val): Accept being called
13941 without function context.
13942 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
13943 current_function_decl and cfun.
13944
13945 2011-04-03 Michael Matz <matz@suse.de>
13946
13947 * tree.c (decl_init_priority_insert): Don't create entry for
13948 default priority.
13949 (decl_fini_priority_insert): Ditto.
13950 (fields_compatible_p, find_compatible_field): Remove.
13951 * tree.h (fields_compatible_p, find_compatible_field): Remove.
13952 * gimple.c (gimple_compare_field_offset): Adjust block comment.
13953
13954 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
13955
13956 * combine.c (try_combine): Remove useless local variable.
13957
13958 2011-04-03 Richard Guenther <rguenther@suse.de>
13959 Ira Rosen <ira.rosen@linaro.org>
13960
13961 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
13962 non-variable offsets and compare the remaining bases of the two
13963 accesses instead of looking for exact same data-ref.
13964
13965 2011-04-02 Kai Tietz <ktietz@redhat.com>
13966
13967 PR target/48416
13968 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
13969
13970 * i386.c (ix86_is_msabi_thiscall): New helper function.
13971 (ix86_is_type_thiscall): New helper function.
13972 (ix86_comp_type_attributes): Handle thiscall for method-functions
13973 special.
13974 (init_cumulative_args): Likewise.
13975 (find_drap_reg): Likewise.
13976 (ix86_static_chain): Likewise.
13977 (x86_this_parameter): Likewise.
13978 (x86_output_mi_thunk): Likewise.
13979
13980 2011-04-01 Olivier Hainque <hainque@adacore.com>
13981 Nicolas Setton <setton@adacore.com>
13982 Eric Botcazou <ebotcazou@adacore.com>
13983
13984 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
13985 (add_gnat_descriptive_type_attribute): New function.
13986 (gen_array_type_die): Call it.
13987 (gen_enumeration_type_die): Likewise.
13988 (gen_struct_or_union_type_die): Likewise.
13989 (modified_type_die): Likewise.
13990 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
13991 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
13992 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
13993
13994 2011-04-01 Jakub Jelinek <jakub@redhat.com>
13995
13996 PR bootstrap/48148
13997 * dwarf2out.c (resolve_addr): Don't call force_decl_die
13998 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
13999
14000 Revert:
14001 2011-03-17 Richard Guenther <rguenther@suse.de>
14002
14003 PR bootstrap/48148
14004 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14005 origin for decls in other ltrans units.
14006 (input_varpool_node): Likewise.
14007
14008 2011-04-01 Jakub Jelinek <jakub@redhat.com>
14009
14010 PR middle-end/48335
14011 * expr.c (expand_assignment): Handle all possibilities
14012 if TO_RTX is CONCAT.
14013 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
14014 (store_split_bit_field): If SUBREG_REG (op0) or
14015 op0 itself has smaller mode than word, return it
14016 for offset 0 and const0_rtx for out-of-bounds stores.
14017 If word is const0_rtx, skip it.
14018
14019 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
14020
14021 * config/h8300/h8300.c (print_operand_address): Rename to...
14022 (h8300_print_operand_address): ...this. Make static. Adjust comments.
14023 Call h8300_print_operand and h8300_print_operand_address instead of
14024 print_operand and print_operand_address. Declare.
14025 (print_operand): Renake to...
14026 (h8300_print_operand): ...this. Make static. Adjust comments.
14027 Call h8300_print_operand instead of print_operand. Declare.
14028 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
14029 (h8300_register_move_cost): Likewise.
14030 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
14031 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
14032 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
14033 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
14034 * config/h8300/h8300-protos.h (print_operand): Delete.
14035 (print_operand_address): Delete.
14036
14037 2011-04-01 Richard Henderson <rth@redhat.com>
14038
14039 PR 48400
14040 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
14041 in strict mode before dwarf4. Re-order tests to early out
14042 before switching sections.
14043
14044 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
14045
14046 * config/h8300/constraints.md: New file.
14047 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
14048 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
14049 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
14050 * config/h8300/predicates.md (bit_operand): Likewise.
14051 (incdec_operand): Use satisfies_constraint_M and
14052 satisfies_constraint_O. Don't use C code block.
14053 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
14054 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
14055 (compute_mov_length): Use satisfies_constraint_G.
14056 (fix_bit_operand): Use satisfies_constraint_U.
14057 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
14058 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
14059 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
14060 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
14061 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
14062 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
14063 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14064 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
14065 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
14066 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
14067 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
14068 (EXTRA_MEMORY_CONSTRAINT): Delete.
14069
14070 2011-04-01 Andrew Pinski <pinskia@gmail.com>
14071 Michael Meissner <meissner@linux.vnet.ibm.com>
14072
14073 PR target/48262
14074 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
14075 operands, as per the specifications.
14076
14077 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
14078 (vec_extract_evenv4sf): Ditto.
14079 (vec_extract_evenv8hi): Ditto.
14080 (vec_extract_evenv16qi): Ditto.
14081 (vec_extract_oddv4si): Ditto.
14082
14083 2011-03-31 Mark Wielaard <mjw@redhat.com>
14084
14085 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
14086 high_pc attribute if the CU has no associated code. Only output
14087 DW_AT_entry_pc for CU if not generating strict dwarf and
14088 dwarf_version < 4.
14089
14090 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
14091
14092 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
14093 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
14094 out of ...
14095 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
14096 * final.c (final_start_function): Call the new function rather
14097 than using a NULL argument for dwarf2out_frame_debug.
14098
14099 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
14100 that contains the prologue.
14101
14102 * haifa-sched.c (queue_insn): New arg REASON. All callers
14103 changed. Print it in debugging output.
14104
14105 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
14106
14107 * sched-ebb.c (begin_schedule_ready): Remove second argument.
14108 Split most of the code into...
14109 (begin_move_insn): ... here. New function.
14110 (ebb_sched_info): Add a pointer to it.
14111 * haifa-sched.c (scheduled_insns): New static variable.
14112 (sched_extend_ready_list): Allocate it.
14113 (schedule_block): Use it to record the order of scheduled insns.
14114 Perform RTL changes to move insns only after all scheduling
14115 decisions have been made.
14116 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
14117 begin_move_insn field.
14118 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
14119 * sched-int.h (struct haifa_sched_info): Remove second argument
14120 from begin_schedule_ready hook. Add new member begin_move_insn.
14121 * sched-rgn.c (begin_schedule_ready): Remove second argument.
14122 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
14123
14124 * haifa-sched.c (prune_ready_list): New function, broken out of
14125 schedule_block.
14126 (schedule_block): Use it.
14127
14128 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14129
14130 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
14131
14132 2011-04-01 Kai Tietz <ktietz@redhat.com>
14133
14134 * config.gcc (*-*-mingw*): Allow as option the
14135 posix threading model.
14136 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
14137 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
14138 definition.
14139 (CPP_SPEC): Add pthread/no-pthread handling.
14140 (LIB_SPEC): Likewise.
14141 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
14142 (LIB_SPEC): Likewise.
14143 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
14144 flag to pass -pthread option for shared libgcc build.
14145 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
14146 for shared libgcc build.
14147 * config/i386/t-mingw-pthread: New file.
14148 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
14149 New define to enable use of library pthread by default.
14150 * config/i386/mingw.opt (pthread): New driver option.
14151 (no-pthread): New driver option.
14152 * config/i386/cygming.opt: Make sure trailing empty line is retained.
14153 * config/i386/mingw-w64.opt: Likewise.
14154
14155 2011-04-01 Gary Funck <gary@intrepid.com>
14156
14157 * c-decl.c (grokdeclarator): Fix formatting.
14158
14159 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14160
14161 * expr.c (emit_block_move_via_movmem): Use n_generator_args
14162 instead of n_operands.
14163 (set_storage_via_setmem): Likewise.
14164 * optabs.c (maybe_gen_insn): Likewise.
14165 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
14166 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
14167 (mips_expand_builtin_direct): Likewise.
14168 * config/spu/spu.c (expand_builtin_args): Likewise.
14169
14170 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14171
14172 * recog.h (insn_data_d): Add n_generator_args.
14173 * genoutput.c (data): Likewise.
14174 (output_insn_data): Print it.
14175 (max_opno, num_dups): Delete.
14176 (scan_operands): Just fill in "d->operand[...]".
14177 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
14178
14179 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14180
14181 * gensupport.h (pattern_stats): New structure.
14182 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
14183 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
14184 (max_operand_1, max_operand_vec): Delete.
14185 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
14186
14187 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
14188
14189 * emit-rtl.c (emit_pattern_after_setloc): New function.
14190 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
14191 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
14192 (emit_pattern_after): New function.
14193 (emit_insn_after, emit_jump_insn_after): Call it.
14194 (emit_call_insn_after, emit_debug_insn_after): Likewise.
14195 (emit_pattern_before_setloc): New function.
14196 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
14197 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
14198 Likewise.
14199 (emit_pattern_before): New function.
14200 (emit_insn_before, emit_jump_insn_before): Call it.
14201 (emit_call_insn_before, emit_debug_insn_before): Likewise.
14202
14203 2011-03-31 Richard Henderson <rth@redhat.com>
14204
14205 * dwarf2out.c (dw_separate_line_info_ref): Remove.
14206 (dw_separate_line_info_entry): Remove.
14207 (enum dw_line_info_opcode): New.
14208 (dw_line_info_entry): Use it.
14209 (dw_line_info_table, dw_line_info_table_p): New.
14210 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
14211 (line_info_table, line_info_label_num): Remove.
14212 (line_info_table_in_use): Remove.
14213 (separate_line_info_table): Remove.
14214 (separate_line_info_table_allocated): Remove.
14215 (separate_line_info_table_in_use): Remove.
14216 (LINE_INFO_TABLE_INCREMENT): Remove.
14217 (line_info_label_num): New.
14218 (cur_line_info_table): New.
14219 (text_section_line_info, cold_text_section_line_info): New.
14220 (separate_line_info): New.
14221 (SEPARATE_LINE_CODE_LABEL): Remove.
14222 (print_dwarf_line_table): Remove.
14223 (debug_dwarf): Don't dump it.
14224 (output_one_line_info_table): New.
14225 (output_line_info): Use it.
14226 (new_line_info_table): New.
14227 (set_cur_line_info_table): New.
14228 (dwarf2out_switch_text_section): Use it.
14229 (dwarf2out_begin_function): Likewise.
14230 (push_dw_line_info_entry): New.
14231 (dwarf2out_source_line): Rewrite for new line info tables.
14232 (dwarf2out_init): Remove dead initailizations.
14233
14234 2011-03-31 Joseph Myers <joseph@codesourcery.com>
14235
14236 * opts.h (cl_option): Add comments to fields. Add bit-fields for
14237 various flags.
14238 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
14239 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
14240 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
14241 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
14242 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
14243 * opt-functions.awk (flag_init, switch_bit_fields): New.
14244 (switch_flags): Don't handle flags moved to bit-fields. Don't
14245 generate CL_MISSING_OK or CL_SAVE.
14246 * optc-gen.awk: Update to generate bit-field output as well as
14247 flags field.
14248 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
14249 bit-field instead of CL_REJECT_DRIVER flag.
14250 * opts-common.c (generate_canonical_option,
14251 decode_cmdline_option): Use bit-fields instead of CL_* flags.
14252 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
14253 instead of CL_REJECT_NEGATIVE flag.
14254 * toplev.c (print_switch_values): Use cl_report bit-field instead
14255 of CL_REPORT flag.
14256
14257 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
14258
14259 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
14260 a zero minimum index only if it is redundant.
14261
14262 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
14263
14264 PR rtl-optimization/48381
14265 * ira-color.c (assign_hard_reg): Use hard reg set intersection
14266 instead of ira_class_hard_reg_index for calculating conflicting
14267 hard registers.
14268
14269 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
14270
14271 * cprop.c: Clean up hash table building.
14272 (reg_avail_info): Remove.
14273 (oprs_available_p): Remove.
14274 (record_last_reg_set_info): Remove.
14275 (record_last_set_info): Remove.
14276 (reg_available_p): New function.
14277 (gcse_constant_p): Do not treat unfolded conditions as constants.
14278 (make_set_regs_unavailable): New function.
14279 (hash_scan_set): Simplify with new reg_available_p.
14280 (compute_hash_table_work): Traverse insns stream only once.
14281 Do not compute reg_avail_info. Traverse insns in reverse order.
14282 Record implicit sets after recording explicit sets from the block.
14283
14284 2011-03-31 Michael Matz <matz@suse.de>
14285
14286 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
14287
14288 2011-03-31 Anatoly Sokolov <aesok@post.ru>
14289
14290 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
14291 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
14292 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14293 (h8300_mode_dependent_address_p): New function.
14294 (h8300_get_index): Make static.
14295
14296 2011-03-31 Jeff Law <law@redhat.com>
14297
14298 * reload1.c (elimination_effects): Fix typo in recent change.
14299
14300 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
14301 typo potentially leading to null pointer dereference.
14302
14303 * caller-save.c (new_saved_hard_reg): Eliminate return value.
14304 (setup_save_areas): Corresponding changes to avoid useless
14305 assignments.
14306
14307 * jump.c (reversed_comparison_code_parts): Avoid successive return
14308 statements when REVERSE_CONDITION is defined.
14309
14310 * expr.c (expand_assignment): Avoid useless assignments.
14311 (expand_expr_real_1): Likewise.
14312 (expand_expr_real_2): Avoid useless statements.
14313
14314 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
14315
14316 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14317
14318 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
14319 statements.
14320
14321 * stmt.c (expand_expr_stmt): Avoid useless assignment.
14322
14323 2011-03-31 Joseph Myers <joseph@codesourcery.com>
14324
14325 PR target/47109
14326 * doc/tm.texi.in (TARGET_VERSION): Remove.
14327 * doc/tm.texi: Regenerate.
14328 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
14329 * collect2.c (main): Don't use TARGET_VERSION.
14330 * mips-tdump.c (main): Don't use TARGET_VERSION.
14331 * mips-tfile.c (main): Don't use TARGET_VERSION.
14332 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
14333 * config/rs6000/vxworksae.h: Remove.
14334 * config/alpha/alpha.h (TARGET_VERSION): Remove.
14335 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
14336 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
14337 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
14338 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14339 * config/arm/arm.h (TARGET_VERSION): Remove.
14340 * config/arm/coff.h (TARGET_VERSION): Remove.
14341 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
14342 * config/arm/elf.h (TARGET_VERSION): Remove.
14343 * config/arm/freebsd.h (TARGET_VERSION): Remove.
14344 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
14345 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
14346 * config/arm/pe.h (TARGET_VERSION): Remove.
14347 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
14348 * config/arm/semi.h (TARGET_VERSION): Remove.
14349 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
14350 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
14351 * config/arm/vxworks.h (TARGET_VERSION): Remove.
14352 * config/avr/avr.h (TARGET_VERSION): Remove.
14353 * config/bfin/bfin.h (TARGET_VERSION): Remove.
14354 * config/fr30/fr30.h (TARGET_VERSION): Remove.
14355 * config/frv/frv.h (TARGET_VERSION): Remove.
14356 * config/h8300/h8300.h (TARGET_VERSION): Remove.
14357 * config/i386/cygwin.h (TARGET_VERSION): Remove.
14358 * config/i386/darwin.h (TARGET_VERSION): Remove.
14359 * config/i386/darwin64.h (TARGET_VERSION): Remove.
14360 * config/i386/djgpp.h (TARGET_VERSION): Remove.
14361 * config/i386/freebsd.h (TARGET_VERSION): Remove.
14362 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
14363 * config/i386/gnu.h (TARGET_VERSION): Remove.
14364 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
14365 * config/i386/i386elf.h (TARGET_VERSION): Remove.
14366 * config/i386/linux.h (TARGET_VERSION): Remove.
14367 * config/i386/linux64.h (TARGET_VERSION): Remove.
14368 * config/i386/lynx.h (TARGET_VERSION): Remove.
14369 * config/i386/mingw32.h (TARGET_VERSION): Remove.
14370 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
14371 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
14372 * config/i386/netware.h (TARGET_VERSION): Remove.
14373 * config/i386/nto.h (TARGET_VERSION): Remove.
14374 * config/i386/openbsd.h (TARGET_VERSION): Remove.
14375 * config/i386/vxworks.h (TARGET_VERSION): Remove.
14376 * config/ia64/elf.h (TARGET_VERSION): Remove.
14377 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
14378 * config/ia64/hpux.h (TARGET_VERSION): Remove.
14379 * config/ia64/linux.h (TARGET_VERSION): Remove.
14380 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14381 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
14382 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14383 * config/lm32/lm32.h (TARGET_VERSION): Remove.
14384 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
14385 * config/m32c/m32c.h (TARGET_VERSION): Remove.
14386 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
14387 * config/m32r/m32r.h (TARGET_VERSION): Remove.
14388 * config/m68k/linux.h (TARGET_VERSION): Remove.
14389 * config/m68k/m68k.h (TARGET_VERSION): Remove.
14390 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
14391 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
14392 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
14393 * config/mep/mep.h (TARGET_VERSION): Remove.
14394 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
14395 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14396 * config/mips/iris6.h (MACHINE_TYPE): Remove.
14397 * config/mips/linux.h (TARGET_VERSION): Remove.
14398 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
14399 * config/mips/vxworks.h (TARGET_VERSION): Remove.
14400 * config/mmix/mmix.h (TARGET_VERSION): Remove.
14401 * config/mn10300/linux.h (TARGET_VERSION): Remove.
14402 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
14403 * config/pa/pa.h (TARGET_VERSION): Remove.
14404 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
14405 * config/picochip/picochip.h (TARGET_VERSION): Remove.
14406 * config/rs6000/aix.h (TARGET_VERSION): Remove.
14407 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
14408 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
14409 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
14410 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
14411 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
14412 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
14413 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
14414 * config/rs6000/linux.h (TARGET_VERSION): Remove.
14415 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
14416 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
14417 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
14418 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
14419 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
14420 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
14421 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
14422 * config/s390/linux.h (TARGET_VERSION): Remove.
14423 * config/s390/s390.h (TARGET_VERSION): Remove.
14424 * config/s390/tpf.h (TARGET_VERSION): Remove.
14425 * config/score/score.h (TARGET_VERSION): Remove.
14426 * config/sh/linux.h (TARGET_VERSION): Remove.
14427 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
14428 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
14429 * config/sh/sh.h (TARGET_VERSION): Remove.
14430 * config/sh/sh64.h (TARGET_VERSION): Remove.
14431 * config/sh/superh.h (TARGET_VERSION): Remove.
14432 * config/sh/vxworks.h (TARGET_VERSION): Remove.
14433 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
14434 * config/sparc/linux.h (TARGET_VERSION): Remove.
14435 * config/sparc/linux64.h (TARGET_VERSION): Remove.
14436 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
14437 TARGET_NAME32, TARGET_NAME): Remove.
14438 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
14439 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
14440 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
14441 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
14442 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
14443 * config/spu/spu.h (TARGET_VERSION): Remove.
14444 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
14445 * config/v850/v850.h (TARGET_VERSION): Remove.
14446 * config/vax/linux.h (TARGET_VERSION): Remove.
14447 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
14448 * config/xtensa/elf.h (TARGET_VERSION): Remove.
14449 * config/xtensa/linux.h (TARGET_VERSION): Remove.
14450
14451 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
14452
14453 PR target/48142
14454 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
14455 frame-related from frame-unrelated adjustments to the stack pointer.
14456
14457 2011-03-31 Jakub Jelinek <jakub@redhat.com>
14458
14459 * common.opt (fdebug-types-section): Move earlier.
14460 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
14461
14462 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
14463
14464 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
14465 var.
14466
14467 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
14468
14469 * tree.h (CASE_CHAIN): Define.
14470 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
14471 (gimple_redirect_edge_and_branch): Likewise.
14472
14473 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
14474
14475 PR middle-end/48367
14476 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
14477 calculation.
14478
14479 2011-03-30 Jeff Law <law@redhat.com>
14480
14481 * PR bootstrap/48371
14482 * reload1.c (reload): Fix botch in last change.
14483
14484 * reload.h (struct reload): Fix typo introduced in last change.
14485
14486 2011-03-30 Joseph Myers <joseph@codesourcery.com>
14487
14488 * config/arm/arm.opt (mhard-float, msoft-float): Mark
14489 Undocumented. Remove help text.
14490 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
14491 -mhard-float.
14492
14493 2011-03-30 Joseph Myers <joseph@codesourcery.com>
14494
14495 * doc/options.texi (NegativeAlias): Document.
14496 (Alias): Mention NegativeAlias.
14497 * opt-functions.awk: Handle NegativeAlias.
14498 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
14499 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
14500 * opts.h (CL_NEGATIVE_ALIAS): Define.
14501 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
14502 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
14503 OPT_mspe_.
14504 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
14505 Alias entries.
14506 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14507 mno-spe and mno-isel instead of mspe=no and -misel=no.
14508
14509 2011-03-29 Mark Wielaard <mjw@redhat.com>
14510
14511 * common.opt (fdebug-types-section): New flag.
14512 * doc/invoke.texi: Document new -fno-debug-types-section flag.
14513 * dwarf2out.c (use_debug_types): New define.
14514 (struct die_struct): Mark die_id with GTY desc use_debug_types.
14515 (print_die): Guard output of type unit signatures using
14516 use_debug_types.
14517 (build_abbrev_table): Replace assert of dwarf_version >= 4
14518 with assert on use_debug_types.
14519 (size_of_die): Likewise.
14520 (unmark_dies): Likewise.
14521 (value_format): Decide AT_ref_external form on use_debug_types.
14522 (output_die): Replace dwarf_version version check guard with
14523 use_debug_types where appropriate.
14524 (modified_type_die): Likewise.
14525 (gen_reference_type_die): Likewise.
14526 (dwarf2out_start_source_file): Likewise.
14527 (dwarf2out_end_source_file): Likewise.
14528 (prune_unused_types_walk_attribs): Likewise.
14529 (dwarf2out_finish): Likewise.
14530
14531 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
14532
14533 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
14534
14535 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14536
14537 PR rtl-optimization/48332
14538 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
14539 mode of input operand N and modeN to its actual mode.
14540
14541 2011-03-30 Jeff Law <law@redhat.com>
14542
14543 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
14544 define accessor macro.
14545 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
14546 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
14547 (reg_equiv_init): Likewise.
14548 (reg_equivs_size): New variable.
14549 (reg_equiv_init_size): Remove.
14550 (allocate_initial_values): Move prototype to here from....
14551 * integrate.h (allocate_initial_values): Remove prototype.
14552 * integrate.c: Include reload.h.
14553 (allocate_initial_values): Corresponding changes.
14554 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
14555 (fix_reg_equiv_init, no_equiv): Corresponding changes.
14556 (update_equiv_regs): Corresponding changes.
14557 (ira): Corresponding changes.
14558 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
14559 (push_secondary_reload): Corresponding changes.
14560 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
14561 (make_memloc, find_reloads_address): Corresponding changes.
14562 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
14563 (find_reloads_address_1): Corresponding changes.
14564 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
14565 (refers_to_regno_for_reload_p): Corresponding changes.
14566 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
14567 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
14568 * reload1.c: Include ggc.h.
14569 (grow_reg_equivs): New function.
14570 (replace_pseudos_in, reload): Corresponding changes.
14571 (calculate_needs_all_insns, alter_regs): Corresponding changes.
14572 (eliminate_regs_1, elimination_effects): Corresponding changes.
14573 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
14574 (delete_output_reload): Likewise.
14575 * caller-save.c (mark_referenced_regs): Corresponding changes.
14576 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
14577 * frv/predicates.md (frv_load_operand): Corresponding changes.
14578 * microblaze/microblaze.c (double_memory_operand): Corresponding
14579 changes.
14580 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
14581 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
14582 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
14583 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
14584 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
14585 changes.
14586 * pa/pa.c (emit_move_sequence): Corresponding changes.
14587 * vax/vax.c (nonindexed_address_p): Corresponding changes.
14588
14589 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14590
14591 PR target/47551
14592 * config/arm/arm.c (coproc_secondary_reload_class): Handle
14593 structure modes. Don't check neon_vector_mem_operand for
14594 vector or structure modes.
14595
14596 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14597 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14598
14599 PR target/43590
14600 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
14601 operand 1 and reshuffle the operands to match.
14602 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
14603
14604 2011-03-30 Christian Schüler <cschueler@gmx.de>
14605
14606 PR driver/48208
14607 * config/c.opt (F): Added 'Driver' to -F option.
14608
14609 PR driver/48260
14610 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
14611 handler function.
14612 * config/darwin.opt: Added '-arch' option.
14613
14614 2011-03-30 Nick Clifton <nickc@redhat.com>
14615
14616 * config/rx/rx.md: Add peepholes and patterns to combine
14617 extending loads and simple arithmetic instructions.
14618 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
14619 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
14620 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
14621 modes to use pre-decrement and post-increment addressing.
14622 (rx_is_restricted_memory_address): Add range checking of REG+INT
14623 addresses.
14624 (rx_print_operand): Add support for %Q. Fix handling of %Q.
14625 (rx_memory_move_cost): Adjust cost of stores.
14626 (rx_adjust_insn_length): New function.
14627
14628 2011-03-30 Jakub Jelinek <jakub@redhat.com>
14629
14630 PR c/48305
14631 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14632 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
14633 matching arg00/arg01 types.
14634
14635 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
14636
14637 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
14638 last_location to UNKNOWN_LOCATION.
14639
14640 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
14641
14642 PR target/48349
14643 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
14644 FLOAT_SSE_REGS.
14645
14646 2011-03-30 Joseph Myers <joseph@codesourcery.com>
14647 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14648
14649 PR bootstrap/48337
14650 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
14651 Init(PROCESSOR_V7).
14652 (sparc_cpu): Likewise.
14653 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
14654 PROCESSOR_V7.
14655
14656 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
14657
14658 PR target/48336
14659 PR middle-end/48342
14660 PR rtl-optimization/48345
14661 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
14662 hard regs for given mode from profitable regs when doing secondary
14663 allocation.
14664
14665 2011-03-29 Jeff Law <law@redhat.com>
14666
14667 PR bootstrap/48327
14668 * tree-ssa-threadupdate.c (struct redirection_data): Remove
14669 do_not_duplicate field.
14670 (lookup_redirection_data): Corresponding changes.
14671 (create_duplicates): Always create a template block.
14672 (redirect_edges): Remove code which reused the original block
14673 when it was going to become unreachable code.
14674 (thread_block): Don't set do_not_duplicate field.
14675
14676 2011-03-29 Joseph Myers <joseph@codesourcery.com>
14677
14678 * lto-opts.c (register_user_option_p, lto_register_user_option):
14679 Make type argument unsigned.
14680 * lto-streamer.h (lto_register_user_option): Make type argument
14681 unsigned.
14682 * opth-gen.awk: Make CL_* macros unsigned.
14683 * opts-common.c (find_opt): Make lang_mask argument unsigned.
14684 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
14685 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
14686 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
14687 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
14688 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
14689 (find_opt): Make lang_mask argument unsigned.
14690
14691 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
14692
14693 PR rtl-optimization/48331
14694 PR rtl-optimization/48334
14695 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
14696 for any used algorithm.
14697
14698 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
14699
14700 * ira-conflicts.c (build_object_conflicts): Add unused attribute
14701 to parent_max.
14702
14703 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
14704
14705 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
14706 (alpha_option_override): Don't set alpha_sr_alias_set.
14707 (emit_frame_store_1): Use gen_frame_mem rather than calling
14708 set_mem_alias_set.
14709 (alpha_expand_epilogue): Ditto.
14710
14711 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
14712
14713 PR tree-optimization/48290
14714 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
14715 vectorization, check that relevant phis in the basic block after
14716 the inner loop are really inner loop's exit phis.
14717
14718 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
14719
14720 PR debug/48190
14721 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
14722 (cached_dw_loc_list_def): New structure.
14723 (cached_dw_loc_list): New typedef.
14724 (cached_dw_loc_list_table): New variable.
14725 (cached_dw_loc_list_table_hash): New function.
14726 (cached_dw_loc_list_table_eq): Likewise.
14727 (add_location_or_const_value_attribute): Take a bool cache_p.
14728 Cache the list when the parameter is true.
14729 (gen_formal_parameter_die): Update caller.
14730 (gen_variable_die): Likewise.
14731 (dwarf2out_finish): Likewise.
14732 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
14733 while generating debug info for the decl.
14734 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
14735 (dwarf2out_init): Initialize cached_dw_loc_list_table.
14736 (resolve_addr): Cache the result of resolving a chain of
14737 location lists.
14738
14739 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
14740
14741 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
14742 conflict object hard regset nodes have intersecting hard reg sets.
14743
14744 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
14745 after regstat_init_n_sets_and_refs.
14746
14747 * ira.c: Add more comments at the top.
14748 (setup_stack_reg_pressure_class, setup_pressure_classes):
14749 Add comments how we compute the register pressure classes.
14750 (setup_allocno_and_important_classes): Add more comments.
14751 (setup_class_translate_array, reorder_important_classes)
14752 (setup_reg_class_relations): Add comments.
14753
14754 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
14755 start of the file.
14756
14757 * ira-color.c: Add 2011 to the Copyright line.
14758 (assign_hard_reg): Add more comments.
14759 (improve_allocation): Ditto.
14760
14761 * ira-costs.c: Add 2011 to the Copyright line.
14762 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
14763 comments.
14764 (setup_regno_cost_classes_by_mode): Ditto.
14765
14766 Initial patches from ira-improv branch:
14767
14768 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
14769
14770 * ira-build.c (ira_create_object): Remove initialization of
14771 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
14772 (ira_create_allocno): Remove initialization of
14773 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
14774 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
14775 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
14776 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
14777 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
14778 Initialize ALLOCNO_ADD_DATA.
14779 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
14780 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
14781 ALLOCNO_REG.
14782 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
14783 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
14784
14785 * ira.c (ira_reallocate): Remove.
14786 (setup_pressure_classes): Call
14787 ira_init_register_move_cost_if_necessary. Use
14788 ira_register_move_cost instead of ira_get_register_move_cost.
14789 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
14790 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
14791
14792 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
14793 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
14794 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
14795 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
14796 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
14797 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
14798 Fix formatting.
14799 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
14800 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
14801 (struct allocno_color_data): New.
14802 (allocno_color_data_t): New typedef.
14803 (allocno_color_data): New definition.
14804 (ALLOCNO_COLOR_DATA): New macro.
14805 (struct object_color_data): New.
14806 (object_color_data_t): New typedef.
14807 (object_color_data): New definition.
14808 (OBJECT_COLOR_DATA): New macro.
14809 (update_copy_costs, calculate_allocno_spill_cost): Call
14810 ira_init_register_move_cost_if_necessary. Use
14811 ira_register_move_cost instead of ira_get_register_move_cost.
14812 (move_spill_restore, update_curr_costs): Ditto.
14813 (allocno_spill_priority): Make it inline.
14814 (color_pass): Allocate and free allocno_color_dat and object_color_data.
14815 (struct coalesce_data, coalesce_data_t): New.
14816 (allocno_coalesce_data): New definition.
14817 (ALLOCNO_COALESCE_DATA): New macro.
14818 (merge_allocnos, coalesced_allocno_conflict_p): Use
14819 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
14820 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
14821 (coalesce_allocnos): Ditto.
14822 (setup_coalesced_allocno_costs_and_nums): Ditto.
14823 (collect_spilled_coalesced_allocnos): Ditto.
14824 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
14825 (setup_slot_coalesced_allocno_live_ranges): Ditto.
14826 (coalesce_spill_slots): Ditto.
14827 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
14828 free allocno_coalesce_data.
14829
14830 * ira-conflicts.c: Fix formatting.
14831 (process_regs_for_copy): Call
14832 ira_init_register_move_cost_if_necessary. Use
14833 ira_register_move_cost instead of ira_get_register_move_cost.
14834 (build_object_conflicts): Optimize.
14835
14836 * ira-costs.c (record_reg_classes): Optimize. Call
14837 ira_init_register_move_cost_if_necessary. Use
14838 ira_register_move_cost, ira_may_move_in_cost, and
14839 ira_may_move_out_cost instead of ira_get_register_move_cost and
14840 ira_get_may_move_cost.
14841 (record_address_regs): Ditto.
14842 (scan_one_insn): Optimize.
14843 (find_costs_and_classes): Optimize.
14844 (process_bb_node_for_hard_reg_moves): Call
14845 ira_init_register_move_cost_if_necessary. Use
14846 ira_register_move_cost instead of ira_get_register_move_cost.
14847
14848 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
14849 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
14850 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
14851 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
14852 definitions.
14853 (ira_initiate_emit_data, ira_finish_emit_data)
14854 (create_new_allocno): New functions.
14855 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
14856 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
14857 Use ira_register_move_cost instead of ira_get_register_move_cost.
14858
14859 * ira-int.h: Fix some comments.
14860 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
14861 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
14862 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
14863 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
14864 add_data.
14865 (struct ira_allocno): Make mode and aclass a bitfield. Move other
14866 bitfield after mode. Make hard_regno a short int. Make
14867 hard_regno short. Remove first_coalesced_allocno and
14868 next_coalesced_allocno. Move mem_optimized_dest_p,
14869 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
14870 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
14871 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
14872 temp, colorable_p. Add new member add_data.
14873 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
14874 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
14875 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
14876 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
14877 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
14878 (ALLOCNO_ADD_DATA): New macro.
14879 (ira_emit_data_t): New typedef.
14880 (struct ira_emit_data): New. Move mem_optimized_dest_p,
14881 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
14882 from struct ira_allocno.
14883 (ALLOCNO_EMIT_DATA): New macro.
14884 (ira_allocno_emit_data, allocno_emit_reg): New.
14885 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
14886 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
14887 (OBJECT_ADD_DATA): New macro.
14888 (ira_reallocate): Remove.
14889 (ira_initiate_emit_data, ira_finish_emit_data): New.
14890 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
14891 (ira_init_register_move_cost_if_necessary): New.
14892 (ira_object_conflict_iter_next): Merge into
14893 ira_object_conflict_iter_cond.
14894 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
14895
14896 * ira-live.c (process_single_reg_class_operands): Call
14897 ira_init_register_move_cost_if_necessary. Use
14898 ira_register_move_cost instead of ira_get_register_move_cost.
14899
14900 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
14901
14902 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
14903
14904 * ira-costs.c: Fix formatting.
14905 (cost_classes, cost_classes_num): Remove.
14906 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
14907 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
14908 (cost_classes_del, cost_classes_htab): New.
14909 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
14910 (initiate_regno_cost_classes, setup_cost_classes): New.
14911 (setup_regno_cost_classes_by_aclass): New.
14912 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
14913 (record_reg_classes): Use regno_cost_classes instead of
14914 cost_classes. Move checking opposite operand up.
14915 (record_address_regs): Use regno_cost_classes
14916 instead of cost_classes.
14917 (scan_one_insn): Ditto. Use always general register.
14918 (print_allocno_costs): Use regno_cost_classes instead of
14919 cost_classes.
14920 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
14921 (find_costs_and_classes): Set up cost classes for each registers.
14922 Use also their mode for this. Use regno_cost_classes instead of
14923 cost_classes.
14924 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
14925 cost_classes.
14926 (free_ira_costs, ira_init_costs): Don't use cost_classes.
14927 (ira_costs, ira_set_pseudo_classes): Call
14928 initiate_regno_cost_classes and finish_regno_cost_classes.
14929
14930 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
14931
14932 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
14933
14934 * target.def (ira_cover_classes): Remove.
14935
14936 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
14937
14938 * doc/tm.texi.in: Ditto.
14939
14940 * ira-conflicts.c: Remove mentioning cover classes from the file.
14941 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
14942 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
14943
14944 * targhooks.c (default_ira_cover_classes): Remove.
14945
14946 * targhooks.h (default_ira_cover_classes): Ditto.
14947
14948 * haifa-sched.c: Remove mentioning cover classes from the file.
14949 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
14950 ira_pressure_classes and ira_pressure_classes_num instead of
14951 ira_reg_class_cover_size and ira_reg_class_cover. Use
14952 sched_regno_pressure_class instead of sched_regno_cover_class.
14953 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
14954 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
14955
14956 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
14957 classes from the file.
14958 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
14959 (struct object_hard_regs, struct object_hard_regs_node): New.
14960 (struct ira_object): New members profitable_hard_regs,
14961 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
14962 (struct ira_allocno): Rename cover_class to aclass. Rename
14963 cover_class_cost and updated_cover_class_cost to class_cost and
14964 updated_class_cost. Remove splay_removed_p and
14965 left_conflict_size. Add new members colorable_p.
14966 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
14967 (ALLOCNO_COLORABLE_P): New macro.
14968 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
14969 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
14970 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
14971 (OBJECT_...): Rename parameter C to O.
14972 (OBJECT_PROFITABLE_HARD_REGS): New macro.
14973 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
14974 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
14975 (struct target_ira_int): New members x_ira_max_memory_move_cost,
14976 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
14977 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
14978 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
14979 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
14980 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
14981 x_ira_reg_class_subunion.
14982 (ira_max_memory_move_cost, ira_max_register_move_cost)
14983 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
14984 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
14985 (ira_important_class_nums, ira_reg_class_superunion): New macros.
14986 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
14987 (ira_reg_class_union): Rename to ira_reg_class_subunion.
14988 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
14989 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
14990 (ira_tune_allocno_costs_and_cover_classes): Rename to
14991 ira_tune_allocno_costs.
14992 (ira_debug_hard_regs_forest): New.
14993 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
14994 (ira_object_conflict_iter_next): Fix comments.
14995 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
14996 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
14997 cover_class to aclass.
14998 (ira_allocate_and_accumulate_costs): Ditto.
14999 (ira_allocate_and_set_or_copy_costs): Ditto.
15000
15001 * opts.c (decode_options): Remove ira_cover_class check.
15002
15003 * ira-color.c: Remove mentioning cover classes from the file. Use
15004 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
15005 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
15006 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
15007 (splay-tree.h): Remove include.
15008 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
15009 before copy_freq_compare_func.
15010 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
15011 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
15012 New definitions.
15013 (hard_regs_roots, hard_regs_node_vec): Ditto.
15014 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
15015 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
15016 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
15017 (create_new_object_hard_regs_node): Ditto.
15018 (add_new_object_hard_regs_node_to_forest): Ditto.
15019 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
15020 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
15021 Ditto.
15022 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
15023 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
15024 (remove_unused_object_hard_regs_nodes): Ditto.
15025 (enumerate_object_hard_regs_nodes): Ditto.
15026 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
15027 (object_hard_regs_subnode_t): Ditto.
15028 (struct object_hard_regs_subnode): Ditto.
15029 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
15030 (setup_object_hard_regs_subnode_index): Ditto.
15031 (get_object_hard_regs_subnodes_num): Ditto.
15032 (form_object_hard_regs_nodes_forest): Ditto.
15033 (finish_object_hard_regs_nodes_tree): Ditto.
15034 (finish_object_hard_regs_nodes_forest): Ditto.
15035 (allocnos_have_intersected_live_ranges_p): Rename to
15036 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
15037 (pseudos_have_intersected_live_ranges_p): Rename to
15038 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
15039 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
15040 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
15041 (update_copy_costs): Remove assert. Skip cost update if the hard
15042 reg does not belong the class.
15043 (assign_hard_reg): Process only profitable hard regs.
15044 (uncolorable_allocnos_num): Make it scalar.
15045 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
15046 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
15047 and ira_reg_class_max_nregs.
15048 (bucket_allocno_compare_func): Check frequency first.
15049 (sort_bucket): Add compare function as a parameter.
15050 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
15051 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
15052 (push_allocno_to_stack): Rewrite for checking new allocno
15053 colorability.
15054 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
15055 (push_only_colorable): Pass new parameter to sort_bucket.
15056 (push_allocno_to_spill): Remove.
15057 (allocno_spill_priority_compare): Make it inline and rewrite.
15058 (splay_tree_allocate, splay_tree_free): Remove.
15059 (allocno_spill_sort_compare): New function.
15060 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
15061 build and use splay tree. Choose first allocno in uncolorable
15062 allocno bucket to spill. Remove setting spill cost.
15063 (all_conflicting_hard_regs): Remove.
15064 (setup_allocno_available_regs_num): Check only profitable hard
15065 regs. Print info about hard regs nodes.
15066 (setup_allocno_left_conflicts_size): Remove.
15067 (put_allocno_into_bucket): Don't call
15068 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
15069 (improve_allocation): New.
15070 (color_allocnos): Call setup_profitable_hard_regs,
15071 form_object_hard_regs_nodes_forest, improve_allocation,
15072 finish_object_hard_regs_nodes_forest. Setup spill cost.
15073 (print_loop_title): Use pressure classes.
15074 (color_allocnso): Ditto.
15075 (do_coloring): Remove allocation and freeing splay_tree_node_pool
15076 and allocnos_for_spilling.
15077 (ira_sort_regnos_for_alter_reg): Don't setup members
15078 {first,next}_coalesced_allocno.
15079 (color): Remove allocating and freeing removed_splay_allocno_vec.
15080 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
15081 prohibited_class_mode_regs.
15082
15083 * ira-lives.c: Remove mentioning cover classes from the file. Fix
15084 formatting.
15085 (update_allocno_pressure_excess_length): Use pressure classes.
15086 (inc_register_pressure, dec_register_pressure): Check for pressure
15087 class.
15088 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
15089 pressure class. Use ira_reg_class_nregs instead of
15090 ira_reg_class_max_nregs.
15091 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
15092 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
15093 (single_reg_class): Use ira_reg_class_nregs instead of
15094 ira_reg_class_max_nregs.
15095 (process_bb_node_lives): Use pressure classes.
15096
15097 * ira-emit.c: Remove mentioning cover classes from the file. Use
15098 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
15099 (change_loop): Use pressure classes.
15100 (modify_move_list): Call ira_set_allocno_class instead of
15101 ira_set_allocno_cover_class.
15102
15103 * ira-build.c: Remove mentioning cover classes from the file. Use
15104 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
15105 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
15106 ALLOCNO_UPDATED_CLASS_COST instead of
15107 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
15108 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
15109 (ira_create_allocno): Remove initialization of
15110 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
15111 ALLOCNO_COLORABLE_P.
15112 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15113 Update conflict regs for the objects.
15114 (create_cap_allocno): Remove assert. Don't propagate
15115 ALLOCNO_AVAILABLE_REGS_NUM.
15116 (ira_free_allocno_costs): New function.
15117 (finish_allocno): Change a part of code into call of
15118 ira_free_allocno_costs.
15119 (low_pressure_loop_node_p): Use pressure classes.
15120 (object_range_compare_func): Don't compare classes.
15121 (setup_min_max_conflict_allocno_ids): Ditto.
15122
15123 * loop-invariant.c: Remove mentioning cover classes from the file.
15124 Use ira_pressure_classes and ira_pressure_classes_num instead of
15125 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
15126 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
15127 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15128 Use reg_allocno_class instead of reg_cover_class.
15129 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
15130 STACK_REG_COVER_CLASS.
15131 (get_regno_cover_class): Rename to get_regno_pressure_class.
15132 (move_loop_invariants): Initialize and finalize regstat.
15133
15134 * ira.c: Remove mentioning cover classes from the file. Add
15135 comments about coloring without cover classes. Use ALLOCNO_CLASS
15136 instead of ALLOCNO_COVER_CLASS. Fix formatting.
15137 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
15138 setup_class_subset_and_memory_move_costs.
15139 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
15140 (setup_cover_and_important_classes): Rename to
15141 setup_allocno_and_important_classes.
15142 (setup_class_translate_array): New.
15143 (setup_class_translate): Call it for allocno and pressure classes.
15144 (cover_class_order): Rename to allocno_class_order.
15145 (comp_reg_classes_func): Use ira_allocno_class_translate instead
15146 of ira_class_translate.
15147 (reorder_important_classes): Set up ira_important_class_nums.
15148 (setup_reg_class_relations): Set up ira_reg_class_superunion.
15149 (print_class_cover): Rename to print_classes. Add parameter.
15150 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15151 Print pressure classes too.
15152 (find_reg_class_closure): Rename to find_reg_classes. Don't call
15153 setup_reg_subclasses.
15154 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15155 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15156 (setup_prohibited_class_mode_regs): Use
15157 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
15158 (clarify_prohibited_class_mode_regs): New function.
15159 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
15160 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
15161 (ira_init_once): Initialize them.
15162 (free_register_move_costs): Process them.
15163 (ira_init): Move calls of find_reg_classes and
15164 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
15165 Call clarify_prohibited_class_mode_regs.
15166 (ira_no_alloc_reg): Remove.
15167 (too_high_register_pressure_p): Use pressure classes.
15168
15169 * sched-deps.c: Remove mentioning cover classes from the file.
15170 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
15171 ira_pressure_classes and ira_pressure_classes_num instead of
15172 ira_reg_class_cover_size and ira_reg_class_cover.
15173 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
15174 sched_regno_pressure_class instead of sched_regno_cover_class.
15175 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
15176 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15177
15178 * ira.h: Add 2010 to Copyright.
15179 (ira_no_alloc_reg): Remove external.
15180 (struct target_ira): Rename x_ira_hard_regno_cover_class,
15181 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
15182 x_ira_class_translate to x_ira_hard_regno_allocno_class,
15183 x_ira_allocno_classes_num, x_ira_allocno_classes, and
15184 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
15185 x_ira_pressure_classes, x_ira_pressure_class_translate, and
15186 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
15187 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
15188 x_ira_no_alloc_regs.
15189 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15190 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
15191 ira_allocno_classes_num and ira_allocno_classes.
15192 (ira_class_translate): Rename to ira_allocno_class_translate.
15193 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
15194 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
15195 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15196 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
15197 (ira_no_alloc_regs): New.
15198
15199 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
15200 classes from the file. Use ALLOCNO_CLASS instead of
15201 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
15202 ALLOCNO_COVER_CLASS_COST.
15203 (regno_cover_class): Rename to regno_aclass.
15204 (record_reg_classes): Use ira_reg_class_subunion instead of
15205 ira_reg_class_union.
15206 (record_address_regs): Check overflow.
15207 (scan_one_insn): Ditto.
15208 (print_allocno_costs): Print total mem cost fore regional allocation.
15209 (print_pseudo_costs): Use REG_N_REFS.
15210 (find_costs_and_classes): Use classes intersected with them on the
15211 1st pass. Check overflow. Use ira_reg_class_subunion instead of
15212 ira_reg_class_union. Use ira_allocno_class_translate and
15213 regno_aclass instead of ira_class_translate and regno_cover_class.
15214 Modify code for finding regno_aclass. Setup preferred classes for
15215 the next pass.
15216 (setup_allocno_cover_class_and_costs): Rename to
15217 setup_allocno_class_and_costs. Use regno_aclass instead of
15218 regno_cover_class. Use ira_set_allocno_class instead of
15219 ira_set_allocno_cover_class.
15220 (init_costs, finish_costs): Use regno_aclass instead of
15221 regno_cover_class.
15222 (ira_costs): Use setup_allocno_class_and_costs instead of
15223 setup_allocno_cover_class_and_costs.
15224 (ira_tune_allocno_costs_and_cover_classes): Rename to
15225 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
15226 by processing objects. Use ira_reg_class_max_nregs instead of
15227 ira_reg_class_nregs.
15228
15229 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
15230
15231 * sched-int.h: Remove mentioning cover classes from the file.
15232 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
15233
15234 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
15235 classes from the file.
15236 (struct reg_pref): Rename coverclass into allocnoclass.
15237 (reg_cover_class): Rename to reg_allocno_class.
15238
15239 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
15240
15241 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
15242
15243 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
15244
15245 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
15246
15247 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
15248
15249 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
15250
15251 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
15252
15253 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
15254
15255 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
15256
15257 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
15258
15259 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
15260 (i386_ira_cover_classes): Ditto.
15261
15262 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
15263
15264 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
15265
15266 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
15267
15268 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
15269
15270 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
15271
15272 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
15273
15274 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
15275 (mips_ira_cover_classes): Ditto.
15276
15277 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
15278
15279 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
15280
15281 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
15282
15283 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
15284
15285 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
15286
15287 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
15288 (IRA_COVER_CLASSES_VSX): Ditto.
15289
15290 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
15291 (rs6000_ira_cover_classes): Ditto.
15292
15293 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
15294
15295 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
15296
15297 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
15298
15299 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
15300
15301 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
15302
15303 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
15304
15305 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
15306
15307 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
15308
15309 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
15310
15311 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
15312
15313 2011-03-29 Jakub Jelinek <jakub@redhat.com>
15314
15315 PR debug/48253
15316 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
15317 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
15318 dw_fde_unlikely_section_end_label, cold_in_std_section,
15319 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
15320 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
15321 fields.
15322 (output_fde): Use dw_fde_second_{begin,end} if second is
15323 true, otherwise dw_fde_{begin,end}.
15324 (output_call_frame_info): Test dw_fde_second_begin != NULL
15325 instead of dw_fde_switched_sections.
15326 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
15327 fields, initialize new fields. Initialize in_std_section
15328 unconditionally from the first partition.
15329 (dwarf2out_end_epilogue): Don't override dw_fde_end when
15330 dw_fde_second_begin is non-NULL.
15331 (dwarf2out_switch_text_section): Stop initializing removed
15332 dw_fde_struct fields, initialize new fields, initialize
15333 also dw_fde_end here. Set dw_fde_switch_cfi even when
15334 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
15335 (struct var_loc_list_def): Add last_before_switch field.
15336 (arange_table, arange_table_allocated, arange_table_in_use,
15337 ARANGE_TABLE_INCREMENT, add_arange): Removed.
15338 (size_of_aranges): Count !in_std_section and !second_in_std_section
15339 hunks in fdes, instead of looking at arange_table_in_use.
15340 (output_aranges): Add aranges_length argument, don't call
15341 size_of_aranges here. Instead of using aranges_table*
15342 emit ranges for fdes when !in_std_section resp.
15343 !second_in_std_section.
15344 (dw_loc_list): Break ranges crossing section switch.
15345 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
15346 use dw_fde_second_end instead of dw_fde_end as end of last range.
15347 (gen_subprogram_die): Don't call add_arange. Use
15348 dw_fde_{begin,end} for first partition and if switched
15349 section dw_fde_second_{begin,end} for the second.
15350 (var_location_switch_text_section_1,
15351 var_location_switch_text_section): New functions.
15352 (dwarf2out_begin_function): Initialize cold_text_section even
15353 when function_section () isn't text_section.
15354 (prune_unused_types): Don't walk arange_table.
15355 (dwarf2out_finish): Don't needlessly test
15356 flag_reorder_blocks_and_partition when testing cold_text_section_used.
15357 If info_section_emitted, call size_of_aranges and if it indicates
15358 non-empty .debug_aranges, call output_aranges with the computed
15359 size. Stop using removed dw_fde_struct fields, use
15360 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
15361 for second.
15362
15363 PR debug/48203
15364 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
15365 create ENTRY_VALUE if incoming or address of incoming's MEM
15366 is a hard REG.
15367 * dwarf2out.c (mem_loc_descriptor): Don't emit
15368 DW_OP_GNU_entry_value of DW_OP_fbreg.
15369 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
15370 on ENTRY_VALUE is able to find the canonical parameter VALUE.
15371 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
15372 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
15373 ENTRY_VALUE_EXPs.
15374 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
15375 is a REG_P or MEM_P with REG_P address, compute hash directly
15376 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
15377 (preserve_only_constants): Don't clear VALUES forwaring
15378 ENTRY_VALUE to some other VALUE.
15379
15380 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
15381
15382 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
15383 instead of GEN_INT.
15384
15385 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
15386
15387 * cfgexpand.c (expand_gimple_cond): Always set the source location and
15388 block before expanding the statement.
15389 (expand_gimple_stmt_1): Likewise. Set them here...
15390 (expand_gimple_stmt): ...and not here. Tidy.
15391 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
15392 unknown.
15393
15394 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
15395
15396 * Makefile.in: New rule for cprop.o.
15397 * gcse.c: Move constant/copy propagation to cprop.c.
15398 (compute_local_properties): Only handle expression tables.
15399 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
15400 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
15401 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
15402 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
15403 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
15404 compute_cprop_data, find_used_regs, try_replace_reg,
15405 find_avail_set, cprop_jump, constprop_register, cprop_insn,
15406 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
15407 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
15408 find_bypass_set, reg_killed_on_edge, bypass_block,
15409 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
15410 execute_rtl_cprop, pass_rtl_cprop): Move to...
15411 * cprop.c: ...here. New file, constant/copy propagation for RTL
15412 moved from gcse.c to here with minor cleanups in duplicated code.
15413
15414 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
15415
15416 * config/i386/i386.c (flag_opts): Fix a typo in
15417 -mavx256-split-unaligned-store.
15418
15419 2011-03-28 Anatoly Sokolov <aesok@post.ru>
15420
15421 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
15422 LIBCALL_VALUE): Remove macros.
15423 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15424 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15425 (h8300_function_value, h8300_libcall_value,
15426 h8300_function_value_regno_p): New functions.
15427
15428 2011-03-28 Anatoly Sokolov <aesok@post.ru>
15429
15430 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
15431
15432 2011-03-28 Jeff Law <law@redhat.com>
15433
15434 * tree-ssa-threadupdate.c (redirect_edges): Call
15435 create_edge_and_update_destination_phis as needed.
15436 (create_edge_and_update_destination_phis): Accept new BB argument.
15437 All callers updated.
15438 (thread_block): Do not update the profile when threading around
15439 intermediate blocks.
15440 (thread_single_edge): Likewise.
15441 (determine_bb_domination_status): If BB is not a successor of the
15442 loop header, return NONDOMINATING.
15443 (register_jump_thread): Note when we register a jump thread around
15444 an intermediate block.
15445 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
15446 (thread_across_edge): Use it.
15447
15448 2011-03-28 Tristan Gingold <gingold@adacore.com>
15449
15450 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
15451 when for_return is 2.
15452
15453 2011-03-28 Jeff Law <law@redhat.com>
15454
15455 * var-tracking.c (canonicalize_values_mark): Delete unused
15456 lhs assignment.
15457 (canonicalize_values_star, set_variable_part): Likewise.
15458 (clobber_variable_part, delete_variable_part): Likewise.
15459
15460 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
15461
15462 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
15463
15464 2011-03-28 Martin Jambor <mjambor@suse.cz>
15465
15466 * tree-inline.c (expand_call_inline): Do not check that destination
15467 node is analyzed.
15468 (optimize_inline_calls): Assert that destination node is analyzed.
15469 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
15470 not call tree_lowering_passes.
15471 * cgraph.h (cgraph_analyze_function): Declare.
15472 * cgraphunit.c (cgraph_analyze_function): Make public.
15473
15474 2011-03-28 Joseph Myers <joseph@codesourcery.com>
15475
15476 * config/sparc/sparc-opts.h: New.
15477 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
15478 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
15479 (sparc_option_override): Store processor_type enumeration rather
15480 than string in cpu_default. Remove name and enumeration from
15481 cpu_table. Directly default -mcpu then default -mtune from -mcpu
15482 without using sparc_select. Use target_flags_explicit instead of
15483 fpu_option_set.
15484 * config/sparc/sparc.h (enum processor_type): Move to
15485 sparc-opts.h.
15486 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
15487 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
15488 HeaderInclude entry.
15489 (mcpu=, mtune=): Use Var and Enum.
15490 (sparc_processor_type): New Enum and EnumValue entries.
15491
15492 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15493 Iain Sandoe <iains@gcc.gnu.org>
15494
15495 PR target/48245
15496 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
15497
15498 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
15499
15500 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
15501 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
15502 Insert new statements at it in lieu of STMT.
15503 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
15504 * tree-vect-stmts.c (vectorizable_store): Likewise.
15505 (vectorizable_load): Likewise.
15506
15507 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
15508
15509 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
15510 (divtf3): Ditto.
15511 (multf3): Ditto.
15512 (subtf3): Ditto.
15513
15514 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
15515
15516 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
15517 unaligned 256bit load/store.
15518 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
15519 (*avx_movdqu<avxmodesuffix>): Likewise.
15520
15521 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15522
15523 PR target/48288
15524 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
15525 * config/pa/pa.md (iordi3): Use new predicate in expander.
15526 (iorsi3): Likewise.
15527
15528 2011-03-27 Anatoly Sokolov <aesok@post.ru>
15529
15530 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
15531 FUNCTION_VALUE_REGNO_P): Remove macros.
15532 * config/mips/mips-protos.h (mips_function_value): Remove.
15533 * config/mips/mips.c (mips_function_value): Rename to...
15534 (mips_function_value_1): ... this. Make static. Handle receiving
15535 the function type in 'fn_decl_or_type' argument.
15536 (mips_function_value, mips_libcall_value,
15537 mips_function_value_regno_p): New function.
15538 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15539 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15540
15541 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
15542
15543 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
15544 and -mavx256-split-unaligned-store.
15545 (ix86_option_override_internal): Split 32-byte AVX unaligned
15546 load/store by default.
15547 (ix86_avx256_split_vector_move_misalign): New.
15548 (ix86_expand_vector_move_misalign): Use it.
15549
15550 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
15551 -mavx256-split-unaligned-store.
15552
15553 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
15554 256bit load/store. Generate unaligned store on misaligned memory
15555 operand.
15556 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
15557 256bit load/store.
15558 (*avx_movdqu<avxmodesuffix>): Likewise.
15559
15560 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
15561 -mavx256-split-unaligned-store.
15562
15563 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
15564
15565 PR target/38598
15566 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
15567 Update commentary.
15568
15569 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
15570
15571 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
15572 opno arguments with an expand_operand. Use create_input_operand.
15573 (mips_prepare_builtin_target): Delete.
15574 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
15575 functions.
15576 (mips_expand_builtin_direct): Use create_output_operand and
15577 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
15578 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
15579 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
15580
15581 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
15582
15583 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
15584 function.
15585 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
15586
15587 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
15588
15589 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
15590 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
15591 basic blocks and call commit_edge_insertions directly.
15592 (fixup_abnormal_edges): Move from here to...
15593 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
15594 on the edges and return whether some have actually been inserted.
15595 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
15596 compensation code.
15597
15598 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
15599
15600 PR rtl-optimization/48144
15601 * sel-sched-ir.c (merge_history_vect): Factor out from ...
15602 (merge_expr_data): ... here.
15603 (av_set_intersect): Rename to av_set_code_motion_filter.
15604 Update all callers. Call merge_history_vect when an expression
15605 is found in both sets.
15606 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
15607
15608 2011-03-26 Alan Modra <amodra@gmail.com>
15609
15610 * config/rs6000/predicates.md (word_offset_memref_op): Handle
15611 cmodel medium addresses.
15612 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
15613 64-bit gpr loads and stores.
15614 (rs6000_secondary_reload_ppc64): New function.
15615 * config/rs6000/rs6000-protos.h: Declare it.
15616 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
15617
15618 2011-03-26 Alan Modra <amodra@gmail.com>
15619
15620 PR target/47487
15621 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
15622 GNU Go in traceback table.
15623
15624 2011-03-25 Richard Henderson <rth@redhat.com>
15625
15626 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
15627 if there are exactly 6 operands.
15628 (set_storage_via_setmem): Similarly.
15629
15630 2011-03-25 Kai Tietz <ktietz@redhat.com>
15631
15632 * collect2.c (write_c_file_stat): Handle backslash
15633 as right-hand directory separator.
15634 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
15635 checking just for slash.
15636 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
15637 instead of checking for trailing slash.
15638 * gcc.c (record_temp_file): Use filename_cmp instead
15639 of strcmp.
15640 (do_spec_1): Likewise.
15641 (replace_outfile_spec_function): Likewise.
15642 (is_directory): Use filename_ncmp instead of strncmp.
15643 (print_multilib_info): Likewise.
15644 * gcov.c (find_source): Use filename_cmp instead
15645 instead of strcmp.
15646 (make_gcov_file_name): Fix order of slash/backslash
15647 checks.
15648 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
15649 (add_standard_paths): Likewise.
15650 * mips-tfile.c (saber_stop): Handle backslash.
15651 * prefix.c (update_path): Use filename_ncmp instead of
15652 strncmp.
15653 * profile.c (output_location): Use filename_cmp instead
15654 of strcmp.
15655 * read-md.c (handle_toplevel_file): Handle backslash.
15656 * tlink.c (frob_extension): Likewise.
15657 * tree-cfg.c (same_line_p): Use filename_cmp instead of
15658 strcmp.
15659 * tree-dump.c (dequeue_and_dump): Handle backslash.
15660 * tree.c (get_file_function_name): Likewise.
15661 * gengtype.c (read_input_list): Likewise.
15662 (get_file_realbasename): Likewise.
15663 (get_output_file_with_visibility): Use filename_cmp
15664 instead of strcmp.
15665
15666 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
15667
15668 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
15669 case to VFPv1.
15670
15671 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
15672
15673 * fold-const.c (expr_location_or): New function.
15674 (fold_truth_not_expr): Call it.
15675
15676 2011-03-25 Jeff Law <law@redhat.com>
15677
15678 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
15679 va_end.
15680 * c-family/c-common.c (def_fn_type): Likewise.
15681 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
15682 * emit-rtl.c (gen_rtvec): Likewise.
15683 * lto/lto-lang.c (def_fn_type): Likewise.
15684
15685 2011-03-25 Richard Guenther <rguenther@suse.de>
15686
15687 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
15688 also generate copies.
15689 (fini_copy_prop): Handle constant values properly.
15690
15691 2011-03-25 Jakub Jelinek <jakub@redhat.com>
15692
15693 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
15694 mode size instead of bitsize with DWARF2_ADDR_SIZE.
15695 (hash_loc_operands, compare_loc_operands): Handle
15696 DW_OP_GNU_entry_value.
15697
15698 2011-03-25 Kai Tietz <ktietz@redhat.com>
15699
15700 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
15701 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
15702 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
15703 comment and use macro TARGET_64BIT_MS_ABI instead.
15704 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
15705 and change default behavior for 32-bit MS_ABI.
15706 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
15707 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
15708 32-bit, too.
15709 (ix86_cfun_abi): Likewise.
15710 (ix86_maybe_switch_abi): Adjust comment.
15711 (init_cumulative_args): Check for bit-ness in MS_ABI case.
15712 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
15713 instead of checking for SYSV_ABI.
15714 (ix86_nsaved_sseregs): Likewise.
15715 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
15716 to 16 bytes.
15717 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
15718 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
15719 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
15720 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
15721 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
15722
15723 2011-03-25 Richard Guenther <rguenther@suse.de>
15724
15725 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
15726 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
15727 (verify_gimple): Remove.
15728 * tree-cfg.c (verify_gimple_call): Merge verification
15729 from verify_stmts.
15730 (verify_gimple_phi): Merge verification from verify_stmts.
15731 (verify_gimple_label): New function.
15732 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
15733 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
15734 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
15735 (verify_stmts): Rename to verify_gimple_in_cfg.
15736 (verify_gimple_in_cfg): New function.
15737 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
15738 * tree-ssa.c (verify_ssa): Likewise.
15739 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
15740
15741 2011-03-25 Richard Guenther <rguenther@suse.de>
15742
15743 * passes.c (init_optimization_passes): Add FRE pass after
15744 early SRA.
15745
15746 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
15747 Andrew Stubbs <ams@codesourcery.com>
15748
15749 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
15750 for Cortex-A8.
15751 (arm_movdi_vfp_cortexa8): New pattern.
15752 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
15753 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
15754 instructions when tuning for Cortex-A8. Set attribute "arch".
15755 * config/arm/arm.md: Move include arm-tune.md up a bit.
15756 (define_attr "arch"): Add "onlya8" and "nota8" values.
15757 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
15758
15759 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
15760
15761 PR bootstrap/48282
15762 Revert:
15763 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
15764
15765 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
15766 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
15767 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
15768 * passes.c (init_optimization_passes): Move
15769 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
15770
15771 2011-03-25 Kai Tietz <ktietz@redhat.com>
15772
15773 * c-typeck.c (comptypes_internal): Replace target
15774 hook call of comp_type_attributes by version in tree.c file.
15775 * gimple.c (gimple_types_compatible_p_1): Likewise.
15776 * tree-ssa.c (useless_type_conversion_p): Likewise.
15777 * tree.c (build_type_attribute_qual_variant): Likewise.
15778 (attribute_value_equal): New static helper function.
15779 (comp_type_attributes): New function.
15780 (merge_attributes): Use attribute_value_equal for comparison.
15781 (attribute_list_contained): Likewise.
15782 * tree.h (comp_type_attributes): New prototype.
15783
15784 2011-03-25 Richard Guenther <rguenther@suse.de>
15785
15786 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
15787 of complex types at -O0.
15788 (verify_gimple_assign_binary): Likewise.
15789 (verify_gimple_assign_ternary): Likewise.
15790
15791 2011-03-24 Mark Wielaard <mjw@redhat.com>
15792
15793 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
15794 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
15795
15796 2011-03-24 Mark Wielaard <mjw@redhat.com>
15797
15798 PR debug/48041
15799 * dwarf2out.c (output_abbrev_section): Only write table when
15800 abbrev_die_table_in_use > 1.
15801
15802 2011-02-24 Richard Henderson <rth@redhat.com>
15803
15804 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
15805 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
15806 (alpha_expand_unaligned_load_words): Use extql.
15807 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
15808 (emit_insxl): Handle all modes for consistency.
15809
15810 2011-02-24 Richard Henderson <rth@redhat.com>
15811
15812 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
15813 (alpha_expand_unaligned_load): Likewise.
15814 (alpha_expand_unaligned_store): Likewise.
15815 (alpha_expand_unaligned_load_words): Likewise.
15816 (alpha_expand_unaligned_store_words): Likewise.
15817 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
15818 (alpha_split_lock_test_and_set_12): Likewise.
15819 (print_operand, alpha_fold_builtin_extxx): Likewise.
15820 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
15821 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
15822 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
15823 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
15824 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
15825 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
15826 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
15827 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
15828 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
15829 (extwl, extll, extql): Similarly.
15830 (inswh, inslh, insqh): Similarly.
15831 (mskbl, mskwl, mskll, mskql): Similarly.
15832 (mskwh, msklh, mskqh): Similarly.
15833
15834 2011-02-24 Richard Henderson <rth@redhat.com>
15835
15836 * config/alpha/alpha.md (attribute isa): Add er, ner.
15837 (attribute enabled): Handle them.
15838 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
15839
15840 2011-02-24 Richard Henderson <rth@redhat.com>
15841
15842 * config/alpha/alpha.md (attribute isa): Add vms.
15843 (attribute enabled): Handle it.
15844 (*movsf): Merge *movsf_{nofix,fix,nofp}.
15845 (*movdf): Merge *movdf_{nofix,fix,nofp}.
15846 (*movtf): Rename from *movtf_internal for consistency.
15847 (*movsi): Merge with *movsi_nt_vms.
15848 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
15849 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
15850 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
15851 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
15852
15853 2011-02-24 Richard Henderson <rth@redhat.com>
15854
15855 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
15856 (extendqisi2, extendhisi2): Likewise.
15857 (extendqidi2): Simplify BWX/non-BWX expansions.
15858 (extendhidi2): Similarly.
15859
15860 2011-02-24 Richard Henderson <rth@redhat.com>
15861
15862 * config/alpha/alpha.md (attribute isa): New.
15863 (attribute enabled): New.
15864 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
15865 (zero_extendqisi2, zero_extendqidi2): Similarly.
15866 (zero_extendhisi2, zero_extendhidi2): Similarly.
15867 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
15868
15869 2011-02-24 Richard Henderson <rth@redhat.com>
15870
15871 * config/alpha/predicates.md (input_operand): Revert last change;
15872 update comment to mention 32-bit VMS rather than Windows.
15873
15874 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
15875
15876 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
15877 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
15878 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
15879 * passes.c (init_optimization_passes): Move
15880 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
15881
15882 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
15883
15884 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
15885
15886 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
15887
15888 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
15889 correctly.
15890
15891 2011-03-24 Jakub Jelinek <jakub@redhat.com>
15892
15893 PR debug/48204
15894 * simplify-rtx.c (simplify_const_unary_operation): Call
15895 real_convert when changing mode class with FLOAT_EXTEND.
15896
15897 2011-03-24 Nick Clifton <nickc@redhat.com>
15898
15899 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
15900 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
15901 * config/rx/rx.c (rx_option_override): Set align_jumps,
15902 align_loops and align_labels if not set by the user.
15903 (rx_align_for_label): New function.
15904 (rx_max_skip_for_label): New function.
15905 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
15906 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
15907 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
15908 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
15909 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
15910
15911 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
15912
15913 PR rtl-optimization/48263
15914 * optabs.c (expand_binop_directly): Reinstate convert_modes code
15915 and original commutative_p handling. Use maybe_gen_insn.
15916
15917 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15918
15919 * reload.c (find_reloads_subreg_address): Add address_reloaded
15920 parameter and return true there if the full address has been
15921 reloaded.
15922 (find_reloads_toplev): Pass address_reloaded flag.
15923 (find_reloads_address_1): Don't use address_reloaded parameter.
15924
15925 2011-03-24 Jeff Law <law@redhat.com>
15926
15927 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
15928 unused variable "ann".
15929 (remove_unused_locals): Likewise.
15930
15931 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
15932 statement.
15933
15934 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
15935 after it is freed.
15936
15937 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15938
15939 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
15940 for invalid symbolic addresses.
15941 (s390_secondary_reload): Don't use s390_check_symref_alignment for
15942 larl operands.
15943
15944 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
15945
15946 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
15947 the argument in calls to fold_truth_not_expr.
15948
15949 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
15950
15951 * tree.c (record_node_allocation_statistics): New function.
15952 (make_node_stat, copy_node_stat, build_string): Call it.
15953 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
15954 (build1_stat, build_omp_clause): Likewise.
15955
15956 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
15957
15958 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
15959 last commit.
15960
15961 2011-03-24 Richard Guenther <rguenther@suse.de>
15962
15963 PR tree-optimization/48271
15964 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
15965 blocks that still exist.
15966
15967 2011-03-24 Richard Guenther <rguenther@suse.de>
15968
15969 PR tree-optimization/48270
15970 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
15971 not free datarefs before ddrs.
15972
15973 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
15974
15975 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
15976 from the address built for a reference with variable offset.
15977
15978 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
15979
15980 PR target/48237
15981 * config/i386/i386.md (*movdf_internal_rex64): Do not split
15982 alternatives that can be handled with movq or movabsq insn.
15983 (*movdf_internal): Disable for !TARGET_64BIT.
15984 (*movdf_internal_nointeger): Ditto.
15985 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
15986
15987 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
15988
15989 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
15990 (FUNCTION_ARG_ADVANCE): Likewise.
15991 * tm.texi.in: Change references to them to hook references.
15992 * tm.texi: Regenerate.
15993 * targhooks.c (default_function_arg): Eliminate check for target macro.
15994 (default_function_incoming_arg): Likewise.
15995 (default_function_arg_advance): Likewise.
15996 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
15997 (function_arg_advance): Likewise.
15998 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
15999
16000 2011-03-24 Richard Guenther <rguenther@suse.de>
16001
16002 PR middle-end/48269
16003 * tree-object-size.c (addr_object_size): Do not double-account
16004 for MEM_REF offsets.
16005
16006 2011-03-24 Diego Novillo <dnovillo@google.com>
16007
16008 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
16009 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
16010 (lto_input_data_block): Move from lto-opts.c. Make extern.
16011 Update all users.
16012 (lto_input_string): Rename from input_string. Make extern.
16013 Update all users.
16014 * lto-streamer-out.c (lto_output_string_with_length): Rename from
16015 output_string_with_length.
16016 Output 0 to indicate a non-NULL string. Update all callers to
16017 not emit 0.
16018 (lto_output_string): Rename from output_string. Make extern.
16019 Update all users.
16020 (lto_output_decl_state_streams): Make extern.
16021 (lto_output_decl_state_refs): Make extern.
16022 * lto-streamer.h (lto_input_string): Declare.
16023 (lto_input_data_block): Declare.
16024 (lto_output_string): Declare.
16025 (lto_output_string_with_length): Declare.
16026 (lto_output_decl_state_streams): Declare.
16027 (lto_output_decl_state_refs): Declare.
16028
16029 2011-03-24 Richard Guenther <rguenther@suse.de>
16030
16031 PR tree-optimization/46562
16032 * tree.c (build_invariant_address): New function.
16033 * tree.h (build_invariant_address): Declare.
16034 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
16035 a renamed function moved ...
16036 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
16037 Take valueization callback parameter.
16038 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
16039 * gimple-fold.h: New file.
16040 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
16041 (ccp_fold, fold_const_aggregate_ref,
16042 fold_ctor_reference, fold_nonarray_ctor_reference,
16043 fold_array_ctor_reference, fold_string_cst_ctor_reference,
16044 get_base_constructor): Move ...
16045 * gimple-fold.c: ... here.
16046 (gimple_fold_stmt_to_constant_1): New function
16047 split out from ccp_fold. Take a valueization callback parameter.
16048 Valueize all operands.
16049 (gimple_fold_stmt_to_constant): New wrapper function.
16050 (fold_const_aggregate_ref_1): New function split out from
16051 fold_const_aggregate_ref. Take a valueization callback parameter.
16052 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
16053 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
16054 invariant POINTER_PLUS_EXPRs to invariant form.
16055 (vn_valueize): New function.
16056 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
16057 * tree-vrp.c (vrp_valueize): New function.
16058 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
16059 to fold statements to constants.
16060 * tree-ssa-pre.c (eliminate): Properly guard propagation of
16061 function declarations.
16062 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
16063 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
16064
16065 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16066
16067 * config/h8300/predicates.md (jump_address_operand): Fix register
16068 mode check.
16069
16070 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
16071
16072 * doc/invoke.texi (max-stores-to-sink): Document.
16073 * params.h (MAX_STORES_TO_SINK): Define.
16074 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
16075 if either vectorization or if-conversion is disabled.
16076 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
16077 tree-vect-data-refs.c vect_equal_offsets.
16078 (dr_equal_offsets_p): New function.
16079 (find_data_references_in_bb): Remove static.
16080 * tree-data-ref.h (find_data_references_in_bb): Declare.
16081 (dr_equal_offsets_p): Likewise.
16082 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
16083 (vect_drs_dependent_in_basic_block): Update calls to
16084 vect_equal_offsets.
16085 (vect_check_interleaving): Likewise.
16086 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
16087 (cond_if_else_store_replacement): Rename to...
16088 (cond_if_else_store_replacement_1): ... this. Change arguments and
16089 documentation.
16090 (cond_if_else_store_replacement): New function.
16091 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
16092 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
16093
16094 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
16095
16096 PR target/46934
16097 * config/arm/arm.md (casesi): Use the gen_int_mode() function
16098 to subtract lower bound instead of GEN_INT().
16099
16100 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
16101
16102 PR other/48179
16103 PR other/48221
16104 PR other/48234
16105 * doc/extend.texi (Alignment): Move section to match order in TOC.
16106 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
16107 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
16108
16109 2011-03-23 Jeff Law <law@redhat.com>
16110
16111 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
16112 before removing the edge.
16113
16114 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
16115 it may have been freed by redirect_branch_edge or
16116 redirect_edge_succ_nodup.
16117
16118 2011-03-23 Richard Guenther <rguenther@suse.de>
16119
16120 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
16121 (check_va_list_escapes): Likewise.
16122 (check_all_va_list_escapes): Likewise.
16123
16124 2011-03-23 Richard Guenther <rguenther@suse.de>
16125
16126 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
16127 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
16128 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
16129 (alias.o): Likewise.
16130 (ipa-type-escape.o): Remove.
16131 (ipa-struct-reorg.o): Likewise.
16132 (GTFILES): Remove ipa-struct-reorg.c.
16133 * alias.c: Do not include ipa-type-escape.h.
16134 * tree-ssa-alias.c: Likewise.
16135 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
16136 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
16137 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
16138 and ipa-type-escape passes.
16139 * tree-pass.h (pass_ipa_type_escape): Remove.
16140 (pass_ipa_struct_reorg): Likewise.
16141 * ipa-struct-reorg.h: Remove.
16142 * ipa-struct-reorg.c: Likewise.
16143 * ipa-type-escape.h: Likewise.
16144 * ipa-type-escape.c: Likewise.
16145 * doc/invoke.texi (-fipa-struct-reorg): Remove.
16146 (--param struct-reorg-cold-struct-ratio): Likewise.
16147 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16148 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16149 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
16150
16151 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16152
16153 * config/s390/2084.md: Enable all insn reservations also for z9_ec
16154 cpu attribute value.
16155 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
16156 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
16157 * config/s390/s390.c (processor_flags_table): New constant array.
16158 (s390_handle_arch_option): Remove.
16159 (s390_handle_option): Remove s390_handle_arch_option invocations
16160 and OPT_mwarn_framesize_ handling.
16161 (s390_option_override): Remove s390_handle_arch_option invocation.
16162 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
16163 warnings.
16164 * config/s390/s390.md (cpu attribute): Add z9_ec value.
16165 * config/s390/s390.opt (s390_tune, s390_arch)
16166 (march=): Replace s390_arch_option enum and values with
16167 processor_type. Set variable name to s390_arch. Set
16168 initialization value.
16169 (mtune=): Replace s390_arch_option with processor_type. Set
16170 variable name to s390_tune. Set initialization value.
16171
16172 2011-03-23 Julian Brown <julian@codesourcery.com>
16173
16174 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
16175 accesses which are not naturally aligned.
16176
16177 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
16178
16179 PR target/47553
16180 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
16181
16182 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
16183
16184 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
16185 parameter from "int" to "enum insn_code".
16186 (expand_operand_type): New enum.
16187 (expand_operand): New structure.
16188 (create_expand_operand): New function.
16189 (create_fixed_operand, create_output_operand): Likewise
16190 (create_input_operand, create_convert_operand_to): Likewise.
16191 (create_convert_operand_from, create_address_operand): Likewise.
16192 (create_integer_operand): Likewise.
16193 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
16194 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16195 (expand_insn, expand_jump_insn): Likewise.
16196 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
16197 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
16198 (expand_movstr, expand_builtin___clear_cache): Likewise.
16199 (expand_builtin_lock_release): Likewise.
16200 * explow.c (allocate_dynamic_stack_space): Likewise.
16201 (probe_stack_range): Likewise. Allow check_stack to FAIL,
16202 and use the default handling in that case.
16203 * expmed.c (check_predicate_volatile_ok): Delete.
16204 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
16205 (emit_cstore): Likewise.
16206 * expr.c (emit_block_move_via_movmem): Likewise.
16207 (set_storage_via_setmem, expand_assignment): Likewise.
16208 (emit_storent_insn, try_casesi): Likewise.
16209 (emit_single_push_insn): Likewise. Allow the expansion to fail.
16210 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
16211 (expand_vec_shift_expr, expand_binop_directly): Likewise.
16212 (expand_twoval_unop, expand_twoval_binop): Likewise.
16213 (expand_unop_direct, emit_indirect_jump): Likewise.
16214 (emit_conditional_move, vector_compare_rtx): Likewise.
16215 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
16216 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
16217 (expand_sync_lock_test_and_set): Likewise.
16218 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
16219 (emit_unop_insn): Likewise.
16220 (expand_copysign_absneg): Change icode to an insn_code.
16221 (create_convert_operand_from_type): New function.
16222 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
16223 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16224 (expand_insn, expand_jump_insn): Likewise.
16225 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
16226 than const_int_operand for operand 2.
16227
16228 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16229
16230 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
16231 if possible.
16232
16233 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16234
16235 * emit-rtl.c (emit_pattern_before_noloc): New function.
16236 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
16237 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
16238 (emit_pattern_after_noloc): New function.
16239 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
16240 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
16241
16242 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16243
16244 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
16245 (__ffsDI2): Likewise.
16246
16247 2011-03-22 Richard Henderson <rth@redhat.com>
16248
16249 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
16250 of !TARGET_ABI_OPEN_VMS.
16251 (alpha_trampoline_init, alpha_start_function): Likewise.
16252 (alpha_expand_epilogue, alpha_file_start): Likewise.
16253 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
16254 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
16255 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
16256 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
16257 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
16258
16259 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16260
16261 * config/s390/s390-opts.h: New.
16262 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
16263 s390_arch_flags, s390_warn_framesize, s390_stack_size,
16264 s390_stack_guard): Remove.
16265 (s390_handle_arch_option): Return void. Take enum
16266 s390_arch_option value instead of string and searching array.
16267 (s390_handle_option): Don't assert that global structures are in
16268 use. Access variables via opts pointer. Use error_at. Don't use
16269 sscanf for -mstack-guard= or -mstack-size=. Update call to
16270 s390_handle_arch_option.
16271 (s390_option_override): Update call to s390_handle_arch_option.
16272 (s390_emit_prologue): Use %d format for s390_stack_size in
16273 diagnostic. Use %wd for HOST_WIDE_INT.
16274 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
16275 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
16276 * config/s390/s390.opt (config/s390/s390-opts.h): New
16277 HeaderInclude entry.
16278 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
16279 s390_arch_flags, s390_warn_framesize): New Variable entries.
16280 (s390_arch_option): New Enum and EnumValue entries.
16281 (march=): Use Enum instead of Var.
16282 (mstack-guard=, mstack-size=): Use UInteger and Var.
16283 (mtune=): Use Enum.
16284
16285 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16286
16287 * config/score/score.c (score_handle_option): Don't assert that
16288 global structures are in use. Access target_flags via opts
16289 pointer. Use value of -march= option to determine target_flags
16290 settings.
16291 * config/score/score.opt (march=): Use Enum.
16292 (score_arch): New Enum and EnumValue entries.
16293
16294 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16295
16296 * config/mep/mep.c (option_mtiny_specified): Remove.
16297 (mep_option_override): Move register handling for -mivc2 from
16298 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
16299 instead of option_mtiny_specified.
16300 (mep_handle_option): Access target_flags via opts pointer. Don't
16301 assert that global structures are in use. Defer part of -mivc2
16302 handling and move it to mep_option_override.
16303 * config/mep/mep.opt (IVC2): New Mask entry.
16304 (mivc2): Use Var and Defer instead of Mask.
16305
16306 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16307
16308 * config/v850/v850-opts.h: New.
16309 * config/v850/v850.c (small_memory): Replace with
16310 small_memory_physical_max array. Make that array static const.
16311 (v850_handle_memory_option): Take integer value of argument. Take
16312 gcc_options pointer, option text and location. Return void.
16313 Update for changes to small memory structures.
16314 (v850_handle_option): Access target_flags via opts pointer. Don't
16315 assert that global structures are in use. Update calls to
16316 v850_handle_memory_option.
16317 (v850_encode_data_area): Update references to small memory settings.
16318 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
16319 (enum small_memory_type): Move to v850-opts.h.
16320 * config/v850/v850.opt (config/v850/v850-opts.h): New
16321 HeaderInclude entry.
16322 (small_memory_max): New Variable entry.
16323 (msda): Replace by pair of options msda= and msda-. Use UInteger.
16324 (mtda, mzda): Likewise.
16325
16326 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16327
16328 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
16329 pointer. Don't assert that global structures are in use.
16330
16331 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16332
16333 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
16334 via opts pointer. Don't assert that global structures are in use.
16335
16336 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16337
16338 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
16339 (munix=93): Use Var.
16340 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
16341 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
16342 * config/pa/pa-opts.h: New.
16343 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
16344 (pa_handle_option): Don't assert that global structures are in
16345 use. Access target_flags via opts pointer. Don't handle
16346 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
16347 OPT_munix_98 here.
16348 (pa_option_override): Handle deferred OPT_mfixed_range_.
16349
16350 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16351
16352 * config/mn10300/mn10300-opts.h: New.
16353 * config/mn10300/mn10300.c (mn10300_processor,
16354 mn10300_tune_string): Remove.
16355 (mn10300_handle_option): Don't assert that global structures are
16356 in use. Access mn10300_processor via opts pointer. Don't handle
16357 OPT_mtune_ here.
16358 * config/mn10300/mn10300.h (enum processor_type): Move to
16359 mn10300-opts.h.
16360 (mn10300_processor): Remove.
16361 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
16362 HeaderInclude entry.
16363 (mn10300_processor): New Variable entry.
16364 (mtune=): Use Var.
16365
16366 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16367
16368 * config/microblaze/microblaze.c: Don't include opts.h.
16369 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
16370 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
16371 (mno-clearbss): Use Var and Warn.
16372
16373 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16374
16375 * config/m32r/m32r-opts.h: New.
16376 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
16377 (m32r_handle_option): Don't assert that global structures are in
16378 use. Access target_flags and m32r_cache_flush_func via opts
16379 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
16380 OPT_mno_flush_trap here.
16381 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
16382 include of m32r-opts.h.
16383 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
16384 HeaderInclude entry.
16385 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
16386 (mmodel=): Use Enum and Var.
16387 (m32r_model): New Enum and EnumValue entries.
16388 (mno-flush-trap): Use Var.
16389 (msdata=): Use Enum and Var.
16390 (m32r_sdata): New Enum and EnumValue entries.
16391
16392 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16393
16394 * config/m32c/m32c.c: Don't include opts.h.
16395 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
16396 m32c_handle_option): Remove.
16397 (m32c_option_override): Check global_options_set.x_target_memregs
16398 instead of target_memregs_set.
16399 * config/m32c/m32c.h (target_memregs): Remove.
16400 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
16401 variable.
16402
16403 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16404
16405 * config/iq2000/iq2000-opts.h: New.
16406 * config/iq2000/iq2000.c: Don't include opts.h.
16407 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
16408 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
16409 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
16410 HeaderInclude entry.
16411 (iq2000_tune): New Variable entry.
16412 (march=): Add comment. Use Enum.
16413 (iq2000_arch): New Enum and EnumValue entries.
16414 (mcpu=): Use Enum and Var.
16415 (iq2000_tune): New Enum and EnumValue entries.
16416
16417 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16418
16419 * config/ia64/ia64-opts.h: New.
16420 * config/ia64/ia64.c (ia64_tune): Remove.
16421 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
16422 here. Use error_at.
16423 (ia64_option_override): Handle deferred OPT_mfixed_range_.
16424 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
16425 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
16426 HeaderInclude entry.
16427 (ia64_tune): New Variable entry.
16428 (mfixed-range=): Use Defer and Var.
16429 (mtune=): Use Enum and Var.
16430 (ia64_tune): New Enum and EnumValue entries.
16431
16432 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16433
16434 * config/frv/frv-opts.h: New.
16435 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
16436 frv-opts.h.
16437 (frv_cpu_type): Remove.
16438 * config/frv/frv.c: Don't include opts.h.
16439 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
16440 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
16441 (frv_cpu_type): New Variable entry.
16442 (frv_cpu): New Enum and EnumValue entries.
16443
16444 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16445
16446 * config/cris/cris.c (cris_handle_option): Access target_flags via
16447 opts pointer. Don't assert that global structures are in use.
16448 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
16449 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
16450
16451 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16452
16453 * config/bfin/bfin-opts.h: New.
16454 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
16455 bfin_si_revision, bfin_workarounds): Remove.
16456 (bfin_cpus): Make static const.
16457 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
16458 not bfin_lib_id_given.
16459 (bfin_handle_option): Don't set bfin_lib_id_given. Access
16460 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
16461 pointer. Use error_at. Don't assert that global structures are in use.
16462 * config/bfin/bfin.h: Include bfin-opts.h.
16463 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
16464 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
16465 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
16466 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
16467 entries.
16468
16469 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16470
16471 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
16472 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
16473 or -msoft-float here.
16474 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
16475 -msoft-float and -mhard-float.
16476 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
16477 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16478 msoft-float.
16479 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
16480 -msoft-float.
16481 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
16482 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
16483 not mhard-float.
16484 (LIBGCC_SPEC): Don't handle -msoft-float.
16485 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
16486 -mhard-float.
16487 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16488 msoft-float.
16489 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
16490 -mfloat-abi=*, not -msoft-float and -mhard-float.
16491 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
16492 -msoft-float.
16493 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
16494 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
16495 mhard-float and msoft-float.
16496 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
16497 mfloat-abi=soft in comments, not mhard-float and msoft-float.
16498 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
16499 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
16500 mhard-float.
16501 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
16502 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
16503 msoft-float.
16504 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
16505 not mhard-float.
16506 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
16507 not msoft-float.
16508
16509 2011-03-22 Richard Henderson <rth@redhat.com>
16510
16511 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
16512 TARGET_ABI_WINDOWS_NT.
16513 (alpha_output_function_end_prologue): Likewise.
16514 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
16515 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16516 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
16517 (trap, *movsi_nt_vms): Likewise.
16518 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
16519 (*tablejump_osf_nt_internal): Remove.
16520 * config/alpha/predicates.md (input_operand): Only test Pmode.
16521
16522 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16523
16524 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
16525 via opts pointer. Use error_at. Don't assert that global
16526 structures are in use.
16527
16528 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16529
16530 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
16531 (ix86_handle_option): Access ix86_isa_flags and
16532 ix86_isa_flags_explicit via opts pointer. Don't assert that
16533 global structures are in use.
16534 (ix86_function_specific_save, ix86_function_specific_restore):
16535 Update ix86_isa_flags_explicit field name.
16536 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
16537 (ix86_isa_flags_explicit): Rename TargetSave entry to
16538 x_ix86_isa_flags_explicit.
16539
16540 2011-03-22 Richard Henderson <rth@redhat.com>
16541
16542 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
16543 (alpha_option_override, direct_return): Likewise.
16544 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
16545 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
16546 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
16547 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16548 (alpha_expand_epilogue, alpha_end_function): Likewise.
16549 (alpha_init_libfuncs): Likewise.
16550 (struct machine_function): Remove unicosmk members.
16551 (print_operand) ['t']: Remove.
16552 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
16553 unicosmk_output_module_name, unicosmk_output_common,
16554 current_section_align, unicosmk_output_text_section_asm_op,
16555 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
16556 unicosmk_section_type_flags, unicosmk_unique_section,
16557 unicosmk_asm_named_section, unicosmk_insert_attributes,
16558 unicosmk_output_align, unicosmk_defer_case_vector,
16559 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
16560 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
16561 unicosmk_output_ssib, unicosmk_add_call_info_word,
16562 unicosmk_extern_head, unicosmk_output_default_externs,
16563 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
16564 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
16565 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
16566 * config/alpha/alpha-protos.h: Update.
16567 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
16568 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
16569 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
16570 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
16571 (*mulsi_se, mulvsi3): Likewise.
16572 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
16573 (*divmodsi_internal, call, call_value, realign): Likewise.
16574 (moddi3, umoddi3): Likewise; remove duplicate expander.
16575 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
16576 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
16577 (*movdi_nofix): Remove r/U alternative.
16578 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
16579 * config/alpha/constraints.md ("U"): Remove.
16580 * config/alpha/predicates.md (call_operand"): Don't test
16581 TARGET_ABI_UNICOSMK.
16582
16583 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16584
16585 * target.def (handle_option): Take gcc_options and
16586 cl_decoded_option pointers and location_t.
16587 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
16588 * doc/tm.texi: Regenerate.
16589 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
16590 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
16591 * lto-opts.c (lto_reissue_options): Generate option structure for
16592 targetm.handle_option call.
16593 * opts.c (target_handle_option): Update call to
16594 targetm.handle_option. Remove assertions about values now passed
16595 down to hook.
16596 * targhooks.c (default_target_handle_option): New.
16597 * targhooks.h (default_target_handle_option): Declare.
16598 * config/alpha/alpha.c: Include opts.h.
16599 (alpha_handle_option): Update to new hook interface.
16600 * config/arm/arm.c: Include opts.h.
16601 (arm_handle_option): Update to new hook interface.
16602 * config/arm/t-arm (arm.o): Update dependencies.
16603 * config/bfin/bfin.c: Include opts.h.
16604 (bfin_handle_option): Update to new hook interface.
16605 * config/cris/cris.c: Include opts.h.
16606 (cris_handle_option): Update to new hook interface.
16607 * config/frv/frv.c: Include opts.h.
16608 (frv_handle_option): Update to new hook interface.
16609 * config/i386/i386.c: Include opts.h.
16610 (ix86_handle_option): Update to new hook interface.
16611 (ix86_valid_target_attribute_inner_p): Generate option structure
16612 for call to ix86_handle_option.
16613 * config/i386/t-i386 (i386.o): Update dependencies.
16614 * config/ia64/ia64.c: Include opts.h.
16615 (ia64_handle_option): Update to new hook interface.
16616 * config/ia64/t-ia64 (ia64.o): Update dependencies.
16617 * config/iq2000/iq2000.c: Include opts.h.
16618 (iq2000_handle_option): Update to new hook interface.
16619 * config/m32c/m32c.c: Include opts.h.
16620 (m32c_handle_option): Update to new hook interface.
16621 * config/m32r/m32r.c: Include opts.h.
16622 (m32r_handle_option): Update to new hook interface.
16623 * config/m68k/m68k.c: Include opts.h.
16624 (m68k_handle_option): Update to new hook interface.
16625 * config/mep/mep.c: Include opts.h.
16626 (mep_handle_option): Update to new hook interface.
16627 * config/microblaze/microblaze.c: Include opts.h.
16628 (microblaze_handle_option): Update to new hook interface.
16629 * config/mips/mips.c: Include opts.h.
16630 (mips_handle_option): Update to new hook interface.
16631 * config/mn10300/mn10300.c: Include opts.h.
16632 (mn10300_handle_option): Update to new hook interface.
16633 * config/pa/pa.c: Include opts.h.
16634 (pa_handle_option): Update to new hook interface.
16635 * config/pdp11/pdp11.c: Include opts.h.
16636 (pdp11_handle_option): Update to new hook interface.
16637 * config/rs6000/rs6000.c: Include opts.h.
16638 (rs6000_handle_option): Update to new hook interface.
16639 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
16640 * config/rx/rx.c: Include opts.h.
16641 (rx_handle_option): Update to new hook interface.
16642 * config/s390/s390.c: Include opts.h.
16643 (s390_handle_option): Update to new hook interface.
16644 * config/score/score.c: Include opts.h.
16645 (score_handle_option): Update to new hook interface.
16646 * config/sh/sh.c: Include opts.h.
16647 (sh_handle_option): Update to new hook interface.
16648 * config/sparc/sparc.c: Include opts.h.
16649 (sparc_handle_option): Update to new hook interface.
16650 * config/v850/v850.c: Include opts.h.
16651 (v850_handle_option): Update to new hook interface.
16652
16653 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16654
16655 * gcc.c (driver_unknown_option_callback): Only permit and save
16656 unknown -Wno- options.
16657 (driver_wrong_lang_callback): Save options directly instead of via
16658 driver_unknown_option_callback.
16659
16660 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
16661
16662 * combine.c (simplify_set): Try harder to find the best CC mode when
16663 simplifying a nested COMPARE on the RHS.
16664
16665 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16666
16667 * config/alpha/gnu.h: Remove.
16668 * config/arc: Remove directory.
16669 * config/arm/netbsd.h: Remove.
16670 * config/arm/t-pe: Remove.
16671 * config/crx: Remove directory.
16672 * config/i386/netbsd.h: Remove.
16673 * config/m68hc11: Remove directory.
16674 * config/m68k/uclinux-oldabi.h: Remove.
16675 * config/mcore/mcore-pe.h: Remove.
16676 * config/mcore/t-mcore-pe: Remove.
16677 * config/netbsd-aout.h: Remove.
16678 * config/rs6000/gnu.h: Remove.
16679 * config/sh/sh-symbian.h: Remove.
16680 * config/sh/symbian-base.c: Remove.
16681 * config/sh/symbian-c.c: Remove.
16682 * config/sh/symbian-cxx.c: Remove.
16683 * config/sh/symbian-post.h: Remove.
16684 * config/sh/symbian-pre.h: Remove.
16685 * config/sh/t-symbian: Remove.
16686 * config/svr3.h: Remove.
16687 * config/vax/netbsd.h: Remove.
16688 * config.build: Don't handle i[34567]86-*-pe.
16689 * config.gcc: Remove handling of deprecations for most deprecated
16690 targets.
16691 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
16692 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
16693 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
16694 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
16695 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
16696 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
16697 Remove cases.
16698 * config.host: Don't handle i[34567]86-*-pe.
16699 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
16700 (ASM_SPEC32): Don't handle -mcall-gnu.
16701 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
16702 -mcall-gnu.
16703 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
16704 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
16705 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
16706 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
16707 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
16708 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
16709 conditional on SYMBIAN.
16710 * configure.ac: Don't handle powerpc*-*-gnu*.
16711 * configure: Regenerate.
16712 * doc/extend.texi (interrupt attribute): Don't mention CRX.
16713 * doc/install-old.texi (m6811, m6812): Don't mention.
16714 * doc/install.texi (arc-*-elf*): Don't document multilib option.
16715 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
16716 (m68k-uclinuxoldabi): Don't mention.
16717 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
16718 Remove.
16719 (-mcall-gnu): Remove.
16720 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
16721 families): Remove constraint documentation.
16722
16723 2011-03-22 Marius Strobl <marius@FreeBSD.org>
16724
16725 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
16726 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
16727 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
16728
16729 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16730
16731 PR target/48226
16732 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
16733 vector when peeking at the next token for vector, don't expand the
16734 keywords.
16735
16736 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
16737
16738 * config/avr/avr-protos.h (expand_epilogue): Change prototype
16739 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
16740 * config/avr/avr.c (init_cumulative_args)
16741 (avr_function_arg_advance): Use it.
16742 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
16743 sibcall epilogues.
16744 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
16745 (avr_function_ok_for_sibcall): ...this new function.
16746 (avr_lookup_function_attribute1): New static Function.
16747 (avr_naked_function_p, interrupt_function_p)
16748 (signal_function_p, avr_OS_task_function_p)
16749 (avr_OS_main_function_p): Use it.
16750 * config/avr/avr.md ("sibcall", "sibcall_value")
16751 ("sibcall_epilogue"): New expander.
16752 ("*call_insn", "*call_value_insn"): New insn.
16753 ("call_insn", "call_value_insn"): Remove
16754 ("call", "call_value", "epilogue"): Change expander to handle
16755 sibling calls.
16756
16757 2011-03-21 Nick Clifton <nickc@redhat.com>
16758
16759 * doc/invoke.texi (Overall Options): Move closing brace to end of
16760 options list.
16761 (Optimization Options): Add missing @gol.
16762 (Directory Options): Likewise.
16763 (i386 and x86-64 Options): Likewise.
16764 (RS6000 and PowerPC Options): Likewise.
16765 (i386 and x86-64 Windows Options): Likewise.
16766 (V850 Options): Add text missing from descriptions.
16767
16768 2011-03-22 Richard Henderson <rth@redhat.com>
16769
16770 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
16771 (avr_incoming_return_addr_rtx): New.
16772 (emit_push_byte): New.
16773 (expand_prologue): Use it. Remove incorrect dwarf annotation for
16774 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
16775 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
16776 (emit_pop_byte): New.
16777 (expand_epilogue): Use it. Pop frame pointer by bytes.
16778 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
16779 (INCOMING_RETURN_ADDR_RTX): New.
16780 (INCOMING_FRAME_SP_OFFSET): New.
16781 (ARG_POINTER_CFA_OFFSET): New.
16782 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
16783 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
16784 (pophi): Remove.
16785
16786 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
16787
16788 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16789
16790 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
16791 (FUNCTION_ARG_ADVANCE): Likewise.
16792 * tm.texi.in: Change references to them to hook references.
16793 * tm.texi: Regenerate.
16794 * targhooks.c (default_function_arg): Eliminate check for target
16795 macro.
16796 (default_function_incoming_arg): Likewise.
16797 (default_function_arg_advance): Likewise.
16798 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
16799 (function_arg_advance): Likewise.
16800 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
16801
16802 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16803
16804 * tree.c (build_call_1): New function.
16805 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
16806
16807 2011-03-22 Richard Guenther <rguenther@suse.de>
16808
16809 PR tree-optimization/48228
16810 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
16811 for single-arg PHIs.
16812
16813 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
16814
16815 PR rtl-optimization/48143
16816 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
16817 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
16818 sse2_cvtps2pd): Likewise.
16819
16820 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16821
16822 * recog.c (canonicalize_change_group): Use validate_unshare_change.
16823
16824 2011-03-22 Richard Guenther <rguenther@suse.de>
16825
16826 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
16827 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
16828 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
16829 and REALIGN_LOAD_EXPR.
16830 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
16831 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
16832 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
16833 DOT_PROD_EXPR case ...
16834 (expand_expr_real_2): ... here.
16835 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
16836 and REALIGN_LOAD_EXPR.
16837 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
16838 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
16839 (vect_create_epilog_for_reduction): Likewise.
16840 (vectorizable_reduction): Likewise.
16841 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
16842 * tree-vect-stmts.c (vectorizable_load): Likewise.
16843
16844 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
16845
16846 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
16847
16848 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16849
16850 * config/s390/s390.c (s390_delegitimize_address): Fix offset
16851 handling for PLTOFF/GOTOFF.
16852
16853 2011-03-22 Nick Clifton <nickc@redhat.com>
16854
16855 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
16856 trailing backslash from the end of the macro definition.
16857
16858 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16859
16860 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
16861 and PLT unspecs.
16862
16863 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
16864
16865 * expr.h (prepare_operand): Move to...
16866 * optabs.h (prepare_operand): ...here and change the insn code
16867 parameter from "int" to "enum insn_code".
16868 (insn_operand_matches): Declare.
16869 * expr.c (init_expr_target): Use insn_operand_matches.
16870 (compress_float_constant): Likewise.
16871 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
16872 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
16873 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
16874 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
16875 Likewise.
16876 (gen_cond_trap): Likewise.
16877 (prepare_operand): Likewise. Change icode to an insn_code.
16878 (insn_operand_matches): New function.
16879 * reload.c (find_reloads_address_1): Use insn_operand_matches.
16880 * reload1.c (gen_reload): Likewise.
16881 * targhooks.c (default_secondary_reload): Likewise.
16882
16883 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
16884
16885 * config/alpha/alpha.md (unspec): New define_c_enum.
16886 (unspecv): Ditto.
16887
16888 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
16889
16890 PR debug/48214
16891 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
16892 between a call and its CALL_ARG_LOCATION note.
16893
16894 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
16895
16896 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
16897
16898 2011-03-21 Jakub Jelinek <jakub@redhat.com>
16899
16900 PR c/42544
16901 PR c/48197
16902 * c-common.c (shorten_compare): If primopN is first sign-extended
16903 to opN and then zero-extended to result type, set primopN to opN.
16904
16905 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
16906
16907 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
16908 for barrier handlers.
16909
16910 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16911
16912 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
16913 UNSPEC constants to be in the unspec enumeration, and redefine
16914 all UNSPECV constants to be in the unspecv enumeration, so that
16915 dumps print which unspec/unspec_volatile this is.
16916 * config/rs6000/vector.md (UNSPEC_*): Ditto.
16917 * config/rs6000/paired.md (UNSPEC_*): Ditto.
16918 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
16919 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
16920 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
16921
16922 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
16923 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
16924 UNSPECV_LWSYNC, since these are used as unspec_volatile.
16925 * config/rs6000/sync.md (isync, lwsync): Ditto.
16926
16927 2011-03-21 Richard Guenther <rguenther@suse.de>
16928
16929 * params.def (lto-min-partition): Fix typo.
16930
16931 2011-03-21 Richard Guenther <rguenther@suse.de>
16932
16933 PR c/47939
16934 * c-decl.c (grokdeclarator): Drop to the main variant only
16935 for array types. Drop flag_gen_aux_info check.
16936
16937 2011-03-21 Richard Guenther <rguenther@suse.de>
16938
16939 PR translation/47911
16940 * params.def (lto-partitions): Fix typo.
16941 (lto-min-partition): Fix wording.
16942
16943 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
16944
16945 * config/rs6000/t-freebsd: Remove duplication from file.
16946
16947 2011-03-21 Richard Guenther <rguenther@suse.de>
16948
16949 PR middle-end/47661
16950 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
16951
16952 2011-03-21 Richard Guenther <rguenther@suse.de>
16953
16954 PR lto/48210
16955 * params.def (lto-partitions): Require at least 1 partition.
16956
16957 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16958
16959 * gthr-solaris.h: Remove.
16960 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
16961 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
16962 (LIB_SPEC): Likewise.
16963 * config/sol2.opt (threads): Remove.
16964 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
16965 (sparc*-*-solaris2*): Likewise.
16966 * configure.ac (enable_threads): Enable solaris support.
16967 * configure: Regenerate.
16968 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
16969 * doc/install.texi (Configuration, --enable-threads=lib): Remove
16970 solaris.
16971
16972 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16973
16974 * config.gcc: Obsolete *-*-solaris2.8*.
16975 * doc/install.texi (Specific, *-*-solaris2*): Document it.
16976
16977 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16978
16979 PR bootstrap/48135
16980 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
16981 reference. Solaris 8 perl works.
16982
16983 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16984
16985 PR bootstrap/48135
16986 * doc/install.texi (Prerequisites): Move jar etc. up.
16987 Explain support library version requirements.
16988
16989 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16990
16991 PR bootstrap/48135
16992 * doc/install.texi (Prerequisites): Move Perl to build
16993 requirements. Always necessary on Solaris 2 with Sun ld.
16994
16995 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16996
16997 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
16998 binutils 2.21.
16999 (Specific, i?86-*-solaris2.[89]): Likewise.
17000 (Specific, i?86-*-solaris2.10): Likewise.
17001 (Specific, mips-sgi-irix6): Likewise.
17002 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
17003 Update for binutils 2.21.
17004
17005 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17006
17007 * configure.ac (gcc_cv_lto_plugin): Fix typo.
17008 Allow -fuse-linker-plugin for non-default plugin linker.
17009 * configure: Regenerate.
17010
17011 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
17012
17013 PR bootstrap/48167
17014 * gengtype.c (files_rules): Added rule for cp/parser.h.
17015
17016 2011-03-21 Jakub Jelinek <jakub@redhat.com>
17017
17018 PR target/48213
17019 * config/s390/s390.c (s390_delegitimize_address): Don't call
17020 lowpart_subreg if orig_x has BLKmode.
17021
17022 2011-03-21 Kai Tietz <ktietz@redhat.com>
17023
17024 PR target/12171
17025 * doc/plugins.texi: Adjust documentation for plugin register_callback.
17026 * tree.h (attribute_spec): Add new member affects_type_identity.
17027 * attribs.c (empty_attribute_table): Adjust attribute_spec
17028 initializers.
17029 * config/alpha/alpha.c: Likewise.
17030 * config/arc/arc.c: Likewise.
17031 * config/arm/arm.c: Likewise.
17032 * config/avr/avr.c: Likewise.
17033 * config/bfin/bfin.c: Likewise.
17034 * config/crx/crx.c: Likewise.
17035 * config/darwin.h: Likewise.
17036 * config/h8300/h8300.c: Likewise.
17037 * config/i386/cygming.h: Likewise.
17038 * config/i386/i386.c: Likewise.
17039 * config/ia64/ia64.c: Likewise.
17040 * config/m32c/m32c.c: Likewise.
17041 * config/m32r/m32r.c: Likewise.
17042 * config/m68hc11/m68hc11.c: Likewise.
17043 * config/m68k/m68k.c: Likewise.
17044 * config/mcore/mcore.c: Likewise.
17045 * config/mep/mep.c: Likewise.
17046 * config/microblaze/microblaze.c: Likewise.
17047 * config/mips/mips.c: Likewise.
17048 * config/rs6000/rs6000.c: Likewise.
17049 * config/rx/rx.c: Likewise.
17050 * config/sh/sh.c: Likewise.
17051 * config/sol2.h: Likewise.
17052 * config/sparc/sparc.c: Likewise.
17053 * config/spu/spu.c: Likewise.
17054 * config/stormy16/stormy16.c: Likewise.
17055 * config/v850/v850.c: Likewise.
17056
17057 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
17058
17059 * simplify-rtx.c (simplify_binary_operation_1): Handle
17060 (xor (and A B) C) case when B and C are both constants.
17061
17062 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
17063
17064 * tree-dfa.c (add_referenced_var): Fix typo in comment.
17065
17066 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
17067
17068 PR bootstrap/48168
17069 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
17070
17071 2011-03-20 Jakub Jelinek <jakub@redhat.com>
17072
17073 PR rtl-optimization/48156
17074 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
17075 assume df and df_lr are not NULL.
17076
17077 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17078
17079 PR debug/48023
17080 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
17081 between a call and its CALL_ARG_LOCATION note.
17082
17083 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
17084
17085 PR debug/48178
17086 * config/sh/sh.c (find_barrier): Don't emit a constant pool
17087 between a call and its corresponding CALL_ARG_LOCATION note.
17088
17089 2011-03-19 Anatoly Sokolov <aesok@post.ru>
17090
17091 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
17092 instead of loop. Use HARD_REGISTER_NUM_P predicate.
17093 * haifa-sched.c (setup_ref_regs): Ditto.
17094 * caller-save.c (add_used_regs_1): Ditto.
17095 * dse.c (look_for_hardregs): Ditto.
17096 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
17097 * sched-rgn.c (check_live_1): Ditto.
17098
17099 2011-03-18 Joseph Myers <joseph@codesourcery.com>
17100
17101 * c-decl.c (diagnose_mismatched_decls): Give an error for
17102 redefining a typedef with variably modified type.
17103
17104 2011-03-18 Joseph Myers <joseph@codesourcery.com>
17105
17106 * c-decl.c (grokfield): Don't allow typedefs for structures or
17107 unions with no tag by default.
17108 * doc/extend.texi (Unnamed Fields): Update.
17109
17110 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
17111
17112 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
17113 Rewrite using indirect functions.
17114 (lwp_slwpcb): Ditto.
17115 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
17116 (avx_vinsertf128<mode>): Ditto.
17117
17118 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17119
17120 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
17121 unspecs.
17122
17123 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17124
17125 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
17126 splitting between a call and its corresponding CALL_ARG_LOCATION note.
17127
17128 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
17129
17130 PR rtl-optimization/48170
17131 * gcse.c (hoist_code): Remove bogus asserts.
17132
17133 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
17134
17135 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
17136 computation for prologue/epilogue.
17137
17138 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17139
17140 * Makefile.in (check-consistency): Remove.
17141
17142 2011-03-18 Jakub Jelinek <jakub@redhat.com>
17143
17144 PR debug/48176
17145 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
17146 arange_table_in_use is 0, but either text_section_used or
17147 cold_text_section_used is true. Don't call it if
17148 !info_section_emitted.
17149
17150 2011-03-18 Anatoly Sokolov <aesok@post.ru>
17151
17152 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
17153 FUNCTION_VALUE_REGNO_P): Remove.
17154 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
17155 Remove.
17156 * config/avr/avr.c (avr_ret_register): Make static inline.
17157 (avr_function_value_regno_p): New function.
17158 (avr_libcall_value): Make static. Add 'func' argument.
17159 (avr_function_value): Make static. Rename 'func' argument to
17160 'fn_decl_or_type', forward it to avr_libcall_value. Call
17161 avr_ret_register function instead of RET_REGISTER macro.
17162 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17163
17164 2011-03-18 Jason Merrill <jason@redhat.com>
17165
17166 PR c++/23372
17167 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
17168
17169 2011-03-18 Richard Guenther <rguenther@suse.de>
17170
17171 * doc/install.texi (--enable-gold): Remove.
17172 (--with-plugin-ld): Document.
17173 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
17174
17175 2011-03-18 Andrew Pinski <pinskia@gmail.com>
17176
17177 PR middle-end/47790
17178 * expr.c (optimize_bitfield_assignment_op): Revamp to work
17179 again after expansion changes.
17180
17181 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
17182
17183 * combine.c (try_combine): Do simplification only call of
17184 subst() on i2 even when i1 is present. Update comments.
17185
17186 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
17187
17188 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
17189 and UNSPEC_PCREL_SYMOFF.
17190
17191 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17192
17193 * config/s390/s390.md: Use define_c_enum for the unspec constant
17194 definitions.
17195
17196 2011-03-18 Richard Henderson <rth@redhat.com>
17197 Jakub Jelinek <jakub@redhat.com>
17198
17199 PR bootstrap/48161
17200 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
17201 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
17202
17203 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17204
17205 PR middle-end/47725
17206 * combine.c (cant_combine_insn_p): Don't check zero/sign
17207 extended hard registers.
17208
17209 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17210
17211 PR middle-end/47725
17212 * combine.c (cant_combine_insn_p): Check zero/sign extended
17213 hard registers.
17214
17215 2011-03-17 Anatoly Sokolov <aesok@post.ru>
17216
17217 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17218 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
17219 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
17220 Change return type to bool.
17221 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17222
17223 2011-03-17 Jakub Jelinek <jakub@redhat.com>
17224
17225 PR debug/48163
17226 * var-tracking.c (prepare_call_arguments): If CALL target
17227 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
17228 pc instead of looking it up using cselib_lookup and use
17229 Pmode for it if x has VOIDmode.
17230 * dwarf2out.c (gen_subprogram_die): If also both first and
17231 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
17232
17233 PR debug/48163
17234 * function.c (assign_parms): For data.passed_pointer parms
17235 use MEM of data.entry_parm instead of data.entry_parm itself
17236 as DECL_INCOMING_RTL.
17237 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
17238 also when passed and declared mode is the same, DECL_RTL
17239 is a MEM with pseudo as address and DECL_INCOMING_RTL is
17240 a MEM too.
17241
17242 2011-03-16 Jeff Law <law@redhat.com>
17243
17244 PR rtl-optimization/37273
17245 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17246 handle them like argument loads from stack slots. Do not double
17247 count memory for memory constants and argument loads from stack slots.
17248
17249 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17250
17251 PR debug/48160
17252 * var-tracking.c (prepare_call_arguments): Check SUBREG.
17253
17254 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17255
17256 PR target/48171
17257 * config/i386/i386.opt: Add Save to -mavx and -mfma.
17258
17259 2011-03-17 Jakub Jelinek <jakub@redhat.com>
17260
17261 PR bootstrap/48153
17262 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
17263 if dwarf_strict.
17264 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
17265 Clear call_arg_locations and call_arg_loc_last always.
17266
17267 PR middle-end/48152
17268 * var-tracking.c (prepare_call_arguments): If argument needs to be
17269 passed by reference, adjust argtype and mode.
17270
17271 2011-03-17 Richard Guenther <rguenther@suse.de>
17272
17273 PR middle-end/48134
17274 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
17275 a value make sure to fold the statement.
17276
17277 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
17278
17279 PR target/43872
17280 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
17281 return condition with !cfun->calls_alloca.
17282
17283 2011-03-17 Richard Guenther <rguenther@suse.de>
17284
17285 PR bootstrap/48148
17286 * lto-cgraph.c (input_overwrite_node): Clear the abstract
17287 origin for decls in other ltrans units.
17288 (input_varpool_node): Likewise.
17289
17290 2011-03-17 Richard Guenther <rguenther@suse.de>
17291
17292 PR middle-end/48165
17293 * tree-object-size.c (compute_object_offset): Properly return
17294 the offset operand of MEM_REFs as sizetype.
17295
17296 2011-03-17 Jakub Jelinek <jakub@redhat.com>
17297
17298 PR rtl-optimization/48141
17299 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
17300 * dse.c: Include params.h.
17301 (active_local_stores_len): New variable.
17302 (add_wild_read, dse_step1): Clear it when setting active_local_stores
17303 to NULL.
17304 (record_store, check_mem_read_rtx): Decrease it when removing
17305 from the chain.
17306 (scan_insn): Likewise. Increase it when adding to chain, if it
17307 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
17308 set active_local_stores to NULL before the addition.
17309 * Makefile.in (dse.o): Depend on $(PARAMS_H).
17310
17311 PR rtl-optimization/48141
17312 * dse.c (record_store): If no positions are needed in an insn
17313 that cannot be deleted, at least unchain it from active_local_stores.
17314
17315 2011-03-16 Dodji Seketeli <dodji@redhat.com>
17316
17317 PR debug/47510
17318 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
17319 (lookup_type_die_strip_naming_typedef): ... here.
17320 (get_context_die): Use it.
17321 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
17322 the anonymous struct named by the naming typedef.
17323
17324 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
17325
17326 PR target/48154
17327 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
17328 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17329
17330 2011-03-16 Jeff Law <law@redhat.com>
17331
17332 * tree-vrp.c (identify_jump_threads): Slightly simplify type
17333 check for operands of conditional. Allow type to be a pointer.
17334
17335 2011-03-16 Richard Guenther <rguenther@suse.de>
17336
17337 PR tree-optimization/48149
17338 * fold-const.c (fold_binary_loc): Fold
17339 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
17340
17341 2011-03-16 Richard Guenther <rguenther@suse.de>
17342
17343 PR tree-optimization/26134
17344 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
17345 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
17346 (non_rewritable_mem_ref_base): Handle complex type component
17347 accesses, constrain offsets for vector and complex extracts
17348 more properly.
17349
17350 2011-03-16 Richard Guenther <rguenther@suse.de>
17351
17352 PR tree-optimization/48146
17353 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
17354 operands avoiding the need for renaming.
17355
17356 2011-03-16 Richard Guenther <rguenther@suse.de>
17357
17358 * gimple-fold.c (maybe_fold_reference): Open-code relevant
17359 constant folding. Move MEM_REF canonicalization first.
17360 Rely on fold_const_aggregate_ref for initializer folding.
17361 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
17362
17363 2011-03-16 Jakub Jelinek <jakub@redhat.com>
17364
17365 PR middle-end/48136
17366 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
17367 arg0/arg1 or their arguments are always fold converted to matching
17368 types.
17369
17370 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
17371 to nargs.
17372
17373 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17374
17375 PR lto/46944
17376 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
17377 Handle in-tree gold.
17378 (ld_vers): Extract binutils version for gold.
17379 (gcc_cv_ld_hidden): Handle gold here.
17380 (gcc_cv_lto_plugin): Determine level of linker plugin support.
17381 * configure: Regenerate.
17382 * config.in: Regenerate.
17383 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
17384 -fuse-linker-plugin otherwise.
17385 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
17386 (LINK_COMMAND_SPEC): Use it.
17387 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
17388
17389 2011-03-16 Jakub Jelinek <jakub@redhat.com>
17390
17391 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
17392 * calls.c: Remove debug.h include.
17393 (emit_call_1): Don't call virtual_call_token debug hook.
17394 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
17395 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
17396 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
17397 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
17398 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
17399 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
17400 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
17401 dwarf2out_virtual_call): Remove.
17402 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
17403 copy_call_info and virtual_call hooks.
17404 (dwarf2out_init): Don't initialize vcall_insn_table,
17405 debug_dcall_section and debug_vcall_section.
17406 (prune_unused_types): Don't mark nodes from dcall_table.
17407 (dwarf2out_finish): Don't output dcall or vcall tables.
17408 * final.c (final_scan_insn): Don't call direct_call or
17409 virtual_call debug hooks.
17410 * debug.h (struct gcc_debug_hooks): Remove direct_call,
17411 virtual_call_token, copy_call_info and virtual_call hooks.
17412 (debug_nothing_uid): Remove prototype.
17413 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
17414 copy_call_info and virtual_call hooks.
17415 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17416 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
17417 * debug.c (do_nothing_debug_hooks): Likewise.
17418 (debug_nothing_uid): Remove.
17419 * doc/invoke.texi (-fenable-icf-debug): Remove.
17420 * common.opt (-fenable-icf-debug): Likewise.
17421
17422 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
17423 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
17424 call's MEM. Handle functions returning aggregate through a hidden
17425 first pointer. For virtual calls add clobbered pc to call arguments
17426 chain.
17427 * dwarf2out.c (gen_subprogram_die): Emit
17428 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
17429 can't be emitted.
17430
17431 PR debug/45882
17432 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
17433 * rtl.h (ENTRY_VALUE_EXP): Define.
17434 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
17435 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
17436 * print-rtl.c (print_rtx): Likewise.
17437 * gengtype.c (adjust_field_rtx_def): Likewise.
17438 * var-tracking.c (vt_add_function_parameter): Adjust
17439 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
17440 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
17441 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
17442 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
17443 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
17444
17445 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
17446 Call var_location debug hook even on CALL_INSNs.
17447 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
17448 * rtl.def (ENTRY_VALUE): New.
17449 * dwarf2out.c: Include cfglayout.h.
17450 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17451 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
17452 (struct call_arg_loc_node): New type.
17453 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
17454 tail_call_site_count): New variables.
17455 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
17456 DW_TAG_GNU_call_site_parameter.
17457 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
17458 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
17459 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
17460 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
17461 and DW_AT_GNU_all_source_call_sites.
17462 (mem_loc_descriptor): Handle ENTRY_VALUE.
17463 (add_src_coords_attributes): Don't add enything if
17464 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
17465 (dwarf2out_abstract_function): Save and clear call_arg_location,
17466 call_site_count and tail_call_site_count around dwarf2out_decl call.
17467 (gen_call_site_die): New function.
17468 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
17469 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
17470 (dwarf2out_function_decl): Clear call_arg_locations,
17471 call_arg_loc_last, set call_site_count and tail_call_site_count
17472 to -1 and free block_map.
17473 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
17474 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
17475 followed by any real instructions.
17476 (dwarf2out_begin_function): Set call_site_count and
17477 tail_call_site_count to 0.
17478 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
17479 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
17480 attempt to force a DIE for it and worst case remove the attribute.
17481 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
17482 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
17483 the decl itself.
17484 * var-tracking.c: Include tm_p.h.
17485 (vt_stack_adjustments): For calls call note_register_arguments.
17486 (argument_reg_set): New variable.
17487 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
17488 ensure the VALUE is resolved.
17489 (call_arguments): New variable.
17490 (prepare_call_arguments): New function.
17491 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
17492 (struct expand_loc_callback_data): Add ignore_cur_loc field.
17493 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
17494 always use the best expression.
17495 (vt_expand_loc): Add ignore_cur_loc argument.
17496 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
17497 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
17498 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
17499 note for all calls.
17500 (vt_add_function_parameter): Use cselib_lookup_from_insn.
17501 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
17502 argument. Don't call cselib_preserve_only_values and
17503 cselib_reset_table.
17504 (note_register_arguments): New function.
17505 (vt_initialize): Compute argument_reg_set. Call
17506 vt_add_function_parameters before processing basic blocks instead of
17507 afterwards. For calls call prepare_call_arguments before calling
17508 cselib_process_insn.
17509 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
17510 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
17511 (var-tracking.o): Depend on $(TM_P_H).
17512 * cfglayout.h (insn_scope): New prototype.
17513 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
17514 * cfglayout.c (insn_scope): No longer static.
17515 * insn-notes.def (CALL_ARG_LOCATION): New.
17516 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
17517 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
17518 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
17519 nothing for DECL_EXTERNAL BLOCK_VARS.
17520
17521 2011-03-16 Alan Modra <amodra@gmail.com>
17522
17523 PR target/45844
17524 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
17525 create invalid offset address for vsx splat insn.
17526 * config/rs6000/predicates.md (splat_input_operand): New.
17527 * config/rs6000/vsx.md (vsx_splat_*): Use it.
17528
17529 2011-03-15 Xinliang David Li <davidxl@google.com>
17530
17531 PR c/47837
17532 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
17533 (normalize_preds): New function.
17534 (is_use_properly_guarded): Normalize def predicates.
17535
17536 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17537
17538 PR target/46788
17539 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
17540 in the output template.
17541
17542 2011-03-15 Richard Guenther <rguenther@suse.de>
17543
17544 PR middle-end/47650
17545 * tree-pretty-print.c (dump_function_declaration): Properly
17546 dump unprototyped and varargs function types.
17547
17548 2011-03-15 Richard Guenther <rguenther@suse.de>
17549
17550 PR tree-optimization/13954
17551 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
17552 and friends.
17553
17554 2011-03-15 Richard Guenther <rguenther@suse.de>
17555
17556 PR tree-optimization/48037
17557 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
17558 selects into BIT_FIELD_REFs.
17559 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
17560 vector select.
17561
17562 2011-03-15 Jakub Jelinek <jakub@redhat.com>
17563
17564 PR tree-optimization/48129
17565 * builtins.c (fold_builtin_snprintf): Convert to type of
17566 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
17567 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
17568
17569 2011-03-15 Richard Guenther <rguenther@suse.de>
17570
17571 PR tree-optimization/41490
17572 * tree-ssa-dce.c (propagate_necessity): Handle returns without
17573 value but with VUSE.
17574 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
17575 return statements.
17576 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
17577 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
17578 * tree-tailcall.c (find_tail_calls): Ignore returns.
17579
17580 2011-03-15 Richard Guenther <rguenther@suse.de>
17581
17582 PR middle-end/48031
17583 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
17584 or variable-indexed array accesses when in gimple form.
17585
17586 2011-03-15 Richard Guenther <rguenther@suse.de>
17587
17588 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
17589
17590 2011-03-15 Alan Modra <amodra@gmail.com>
17591
17592 PR target/48032
17593 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
17594 presume symbol_refs without a symbol_ref_decl are suitably
17595 aligned, nor other trees we may see here. Handle anchor symbols.
17596 (legitimate_constant_pool_address_p): Comment. Add mode param.
17597 Check cmodel=medium addresses. Adjust all calls.
17598 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
17599 creating cmodel=medium optimized access to locals.
17600 * config/rs6000/constraints.md (R): Pass QImode to
17601 legitimate_constant_pool_address_p.
17602 * config/rs6000/predicates.md (input_operand): Pass mode to
17603 legitimate_constant_pool_address_p.
17604 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
17605 Update prototype.
17606
17607 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17608
17609 PR target/48053
17610 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
17611 64-bit constants being loaded into registers other than GPRs such
17612 as loading 0 into a VSX register.
17613
17614 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17615
17616 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
17617
17618 2011-03-14 Jakub Jelinek <jakub@redhat.com>
17619
17620 PR middle-end/47917
17621 * builtins.c (fold_builtin_snprintf): New function.
17622 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
17623 (fold_builtin_4): Likewise.
17624
17625 PR middle-end/38878
17626 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
17627 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
17628 and C - X == X also strip nops from +/-/p+ operand.
17629 When optimizing -X == C, fold C to arg0's type.
17630
17631 PR debug/47946
17632 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
17633 emit it as add_AT_int instead of add_AT_unsigned.
17634
17635 2011-03-14 Tom Tromey <tromey@redhat.com>
17636
17637 * unwind-dw2.c: Include sys/sdt.h if it exists.
17638 (_Unwind_DebugHook): Use STAP_PROBE2.
17639 * config.in, configure: Rebuild.
17640 * configure.ac: Check for sys/sdt.h.
17641
17642 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
17643
17644 * config/i386/i386.md (ROUND_FLOOR): New constant.
17645 (ROUND_CEIL): Ditto.
17646 (ROUND_TRUNC): Ditto.
17647 (ROUND_MXCSR): Ditto.
17648 (ROUND_NO_EXC): Ditto.
17649 (rint<mode>2): Use new defines instead of numerical constants.
17650 (floor<mode>2): Ditto.
17651 (ceil<mode>2): Ditto.
17652 (btrunc<mode>2): Ditto.
17653 * config/i386/i386-builtin-types.def: Define ROUND function type
17654 aliases.
17655 * config/i386/i386.c (enum ix86_builtins): Add
17656 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
17657 (struct builtin_description): Add
17658 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
17659 (ix86_expand_sse_round): New static function.
17660 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
17661 function types.
17662 (ix86_builtin_vectorized_function): Handle
17663 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17664
17665 2011-03-14 Tom Tromey <tromey@redhat.com>
17666
17667 * c-parser.c (c_parser_asm_string_literal): Clear
17668 warn_overlength_strings.
17669
17670 2011-03-14 Tom Tromey <tromey@redhat.com>
17671
17672 * c-parser.c (disable_extension_diagnostics): Save
17673 warn_overlength_strings.
17674 (restore_extension_diagnostics): Restore warn_overlength_strings.
17675
17676 2011-03-14 Jakub Jelinek <jakub@redhat.com>
17677
17678 * BASE-VER: Change to 4.7.0.
17679
17680 2011-03-14 Richard Guenther <rguenther@suse.de>
17681
17682 PR middle-end/48098
17683 * tree.c (build_vector_from_val): Adjust assert to requirements
17684 and reality.
17685
17686 2011-03-14 Jakub Jelinek <jakub@redhat.com>
17687
17688 PR bootstrap/48102
17689 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
17690
17691 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
17692
17693 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
17694 terms of target_flags_explicit. Adjust copyright year.
17695
17696 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
17697 * config/rs6000/t-freebsd: New file. Add override for
17698 LIB2FUNCS_EXTRA.
17699
17700 2011-03-13 Chris Demetriou <cgd@google.com>
17701
17702 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
17703 (-fno-diagnostics-show-option): this, to reflect current default.
17704 (-Werror=): Update text about -fno-diagnostics-show-option.
17705
17706 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
17707
17708 PR target/48053
17709 * config/rs6000/predicates.md (easy_vector_constant_add_self,
17710 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
17711 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
17712 mode is not V2DImode or V2DFmode.
17713 (vspltis_constant): Do not handle V2DImode and V2DFmode.
17714 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
17715 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
17716 registers to 0.
17717 (movdi_internal64): Likewise.
17718
17719 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
17720
17721 PR tree-optimization/47127
17722 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
17723 parameter.
17724 (set_cloog_options): Same.
17725 (scop_to_clast): Same.
17726 (print_clast_stmt): Do not call cloog_state_malloc and
17727 cloog_state_free.
17728 (print_generated_program): Same.
17729 (gloog): Same.
17730 * graphite-clast-to-gimple.h (cloog_state): Declared.
17731 (scop_to_clast): Adjust declaration.
17732 * graphite.c (cloog_state): Defined here.
17733 (graphite_initialize): Call cloog_state_malloc.
17734 (graphite_finalize): Call cloog_state_free.
17735
17736 2011-03-11 Jason Merrill <jason@redhat.com>
17737
17738 * attribs.c (lookup_attribute_spec): Take const_tree.
17739 * tree.h: Adjust.
17740
17741 2011-03-11 Joseph Myers <joseph@codesourcery.com>
17742
17743 * config/sparc/sparc.c (sparc_option_override): Use
17744 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
17745
17746 2011-03-11 Richard Guenther <rguenther@suse.de>
17747
17748 PR tree-optimization/48067
17749 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
17750 multiplication result will be only used once on the target
17751 stmt.
17752
17753 2011-03-11 Richard Guenther <rguenther@suse.de>
17754
17755 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
17756
17757 2011-03-11 Richard Guenther <rguenther@suse.de>
17758
17759 PR lto/48073
17760 * tree.c (find_decls_types_r): Do not walk types only reachable
17761 from IDENTIFIER_NODEs.
17762
17763 2011-03-11 Jakub Jelinek <jakub@redhat.com>
17764
17765 PR middle-end/48044
17766 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
17767 all vnode->force_output nodes as needed.
17768
17769 2011-03-11 Jason Merrill <jason@redhat.com>
17770
17771 PR c++/48069
17772 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
17773 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
17774
17775 2011-03-11 Martin Jambor <mjambor@suse.cz>
17776
17777 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
17778 cgraph_node.
17779
17780 2011-03-11 Jakub Jelinek <jakub@redhat.com>
17781
17782 PR tree-optimization/48063
17783 * ipa-inline.c (cgraph_decide_inlining): Don't try to
17784 inline functions called once if !tree_can_inline_p (node->callers).
17785
17786 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
17787
17788 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
17789 extra_objs.
17790 * config/score/score3.c: Delete.
17791 * config/score/score3.h: Delete.
17792 * config/score/mul-div.S: Delete.
17793 * config/score/sfp-machine.h: Add new file.
17794 * config/score/constraints.md: Add new file.
17795 * config/score/t-score-softfp: Add new file.
17796 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
17797 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
17798 (score7_extra_constraint): Delete.
17799 (score7_option_override): Remove unused code.
17800 * config/score/score.c: Remove score3 and score5 define and code.
17801 * config/score/score.h: Remove score3 and score5 define and code.
17802 * config/score/score.md: Remove score3 template and unusual insn.
17803 * config/score/score.opt: Remove score3 and score5 options.
17804
17805 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17806
17807 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
17808 when _HPUX_SOURCE is defined.
17809 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
17810
17811 2011-03-10 Jason Merrill <jason@redhat.com>
17812
17813 PR c++/48029
17814 * stor-layout.c (layout_type): Don't set structural equality
17815 on arrays of incomplete type.
17816 * tree.c (type_hash_eq): Handle comparing them properly.
17817
17818 2011-03-10 Jakub Jelinek <jakub@redhat.com>
17819
17820 PR debug/48043
17821 * config/s390/s390.c (s390_delegitimize_address): Make sure the
17822 result mode matches original rtl mode.
17823
17824 2011-03-10 Nick Clifton <nickc@redhat.com>
17825
17826 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
17827 (andsi3, andsi3_flags): Fix timings for three operand alternative.
17828
17829 2011-03-09 Jakub Jelinek <jakub@redhat.com>
17830
17831 PR rtl-optimization/47866
17832 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
17833 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
17834 if target wasn't scalar.
17835 * function.c (assign_stack_temp_for_type): Assert that neither
17836 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
17837 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
17838 macro.
17839 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
17840
17841 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17842
17843 * config/s390/s390-protos.h (s390_label_align): New prototype.
17844 * config/s390/s390.c (s390_label_align): New function.
17845 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
17846
17847 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
17848
17849 PR target/47755
17850 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
17851 V2DI/V2DF constants. Only all 0's or all 1's are easy.
17852 (output_vec_const_move): Ditto.
17853
17854 2011-03-08 Anatoly Sokolov <aesok@post.ru>
17855
17856 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
17857 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
17858 * config/mips/mips.c (mips_preferred_reload_class): Make static.
17859 Change 'rclass' argument and result type to reg_class_t.
17860 (TARGET_PREFERRED_RELOAD_CLASS): Define.
17861
17862 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
17863
17864 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17865 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
17866 (TARGET_MEMORY_MOVE_COST): Define.
17867 (avr_register_move_cost, avr_memory_move_cost): New Functions.
17868
17869 2011-03-08 Jakub Jelinek <jakub@redhat.com>
17870
17871 PR debug/47881
17872 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
17873 removed anything.
17874
17875 PR tree-optimization/48022
17876 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
17877 for EQ/NE_EXPR.
17878
17879 2011-03-07 Jakub Jelinek <jakub@redhat.com>
17880
17881 PR debug/47991
17882 * var-tracking.c (find_use_val): Return NULL for
17883 cui->sets && cui->store_p BLKmode MEMs.
17884
17885 2011-03-07 Anatoly Sokolov <aesok@post.ru>
17886
17887 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
17888 Remove.
17889 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
17890 xstormy16_print_operand_address): Remove.
17891 * config/stormy16/stormy16.c (xstormy16_print_operand,
17892 xstormy16_print_operand_address): Make static.
17893 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17894
17895 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
17896
17897 PR target/47862
17898 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
17899 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
17900 before definition.
17901
17902 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
17903
17904 PR bootstrap/48000
17905 * cfgloopmanip.c (fix_bb_placements): Return immediately
17906 if FROM is BASE_LOOP's header.
17907
17908 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
17909
17910 * gimplify.c (gimplify_function_tree): Fix building calls
17911 to __builtin_return_address.
17912
17913 2011-03-07 Alan Modra <amodra@gmail.com>
17914
17915 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
17916 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
17917 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
17918 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
17919 return_mode args.
17920 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
17921 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
17922 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
17923 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
17924 * config/rs6000/rs6000.c
17925 (rs6000_elf_end_indicate_exec_stack): Rename to..
17926 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
17927 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
17928 (rs6000_file_start): ..here.
17929 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
17930 file scope variables.
17931 (call_ABI_of_interest): New function.
17932 (init_cumulative_args): Set above vars when function return value
17933 is a float, vector, or small struct.
17934 (rs6000_function_arg_advance_1): Likewise for function args.
17935 (rs6000_va_start): Set rs6000_passes_float if variable arg function
17936 references float args.
17937
17938 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
17939
17940 * doc/cfg.texi: Remove "See" before @ref.
17941 * doc/invoke.texi: Likewise.
17942
17943 2011-03-05 Jason Merrill <jason@redhat.com>
17944
17945 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
17946
17947 2011-03-05 Anthony Green <green@moxielogic.com>
17948
17949 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
17950
17951 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
17952
17953 PR rtl-optimization/47899
17954 * cfgloopmanip.c (fix_bb_placements): Fix first argument
17955 to flow_loop_nested_p when moving the loop upward.
17956
17957 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
17958
17959 PR target/47719
17960 * arm.md (movhi_insn_arch4): Accept any immediate constant.
17961
17962 2011-03-05 Jakub Jelinek <jakub@redhat.com>
17963
17964 PR tree-optimization/47967
17965 * ipa-cp.c (build_const_val): Return NULL instead of creating
17966 VIEW_CONVERT_EXPR for mismatching sizes.
17967 (ipcp_create_replace_map): Return NULL if build_const_val failed.
17968 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
17969 give up on versioning.
17970
17971 2011-03-05 Alan Modra <amodra@gmail.com>
17972
17973 PR target/47986
17974 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
17975 full cmodel medium/large lo_sum + high addresses.
17976
17977 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17978
17979 * config/s390/s390.c (s390_decompose_address): Reject non-literal
17980 pool references in UNSPEC_LTREL_OFFSET.
17981
17982 2011-03-04 Jan Hubicka <jh@suse.cz>
17983
17984 PR lto/47497
17985 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
17986 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
17987 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
17988 Add node pointers.
17989 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
17990 cgraph_add_thunk): Add node pointers.
17991 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
17992 associated to right node.
17993 (input_node): Update use of cgraph_same_body_alias
17994 and cgraph_add_thunk.
17995
17996 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
17997
17998 * config/i386/i386.opt (mprefer-avx128): New flag.
17999 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
18000 modes when the flag -mprefer-avx128 is on.
18001
18002 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
18003
18004 * dwarf2out.c (compare_loc_operands): Fix address handling.
18005
18006 2011-03-04 Alan Modra <amodra@gmail.com>
18007
18008 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
18009
18010 2011-03-04 Richard Guenther <rguenther@suse.de>
18011
18012 PR middle-end/47968
18013 * expmed.c (extract_bit_field_1): Prefer vector modes that
18014 vec_extract patterns can handle.
18015
18016 2011-03-04 Richard Guenther <rguenther@suse.de>
18017
18018 PR middle-end/47975
18019 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
18020
18021 2011-03-04 Richard Henderson <rth@redhat.com>
18022
18023 * explow.c (emit_stack_save): Remove 'after' parameter.
18024 (emit_stack_restore): Likewise.
18025 * expr.h: Update to match.
18026 * builtins.c, calls.c, stmt.c: Likewise.
18027 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
18028 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
18029 * function.c (expand_function_end): Insert the emit_stack_save
18030 sequence before parm_birth_insn instead of after.
18031
18032 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
18033
18034 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
18035 (ssse3_pmaddubsw128): Ditto.
18036 (ssse3_pmaddubsw): Ditto.
18037
18038 2011-03-03 Steve Ellcey <sje@cup.hp.com>
18039
18040 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
18041
18042 2011-03-03 Jakub Jelinek <jakub@redhat.com>
18043
18044 PR c/47963
18045 * gimplify.c (omp_add_variable): Only call omp_notice_variable
18046 on TYPE_SIZE_UNIT if it is a DECL.
18047
18048 PR debug/47283
18049 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
18050 first operand is not is_gimple_mem_ref_addr, try to fold it.
18051 If the operand still isn't is_gimple_mem_ref_addr, clear
18052 MEM_EXPR on op0.
18053
18054 2011-03-03 Richard Guenther <rguenther@suse.de>
18055
18056 PR middle-end/47283
18057 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
18058 match comment.
18059 (refs_may_alias_p_1): For release branches return true if
18060 we are confused by our input.
18061
18062 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18063
18064 * config/s390/s390.c (s390_function_value): Rename to ...
18065 (s390_function_and_libcall_value): ... this.
18066 (s390_function_value): New function.
18067 (s390_libcall_value): New function.
18068 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
18069 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
18070 target macro definitions.
18071 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
18072
18073 2011-03-02 Joseph Myers <joseph@codesourcery.com>
18074
18075 * config/i386/freebsd64.h (CC1_SPEC): Define.
18076 * config/i386/linux64.h (CC1_SPEC): Define.
18077 * config/i386/x86-64.h (CC1_SPEC): Don't define.
18078
18079 2011-03-02 Anatoly Sokolov <aesok@post.ru>
18080
18081 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18082 Remove.
18083 * config/stormy16/stormy16.c: Include reload.h.
18084 (xstormy16_memory_move_cost): New function.
18085 (TARGET_MEMORY_MOVE_COST): Define.
18086
18087 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
18088
18089 PR rtl-optimization/47925
18090 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
18091 with side effects. Remove the more-specific check for volatile asms.
18092
18093 2011-03-02 Alan Modra <amodra@gmail.com>
18094
18095 PR target/47935
18096 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
18097 toc relative addresses for valid offsets.
18098
18099 2011-03-01 Richard Guenther <rguenther@suse.de>
18100
18101 PR tree-optimization/47890
18102 * tree-vect-loop.c (get_initial_def_for_induction): Set
18103 related stmt properly.
18104
18105 2011-03-01 Richard Guenther <rguenther@suse.de>
18106
18107 PR lto/47924
18108 * lto-streamer.c (lto_record_common_node): Also register
18109 the canonical type.
18110
18111 2011-03-01 Richard Guenther <rguenther@suse.de>
18112
18113 PR lto/46911
18114 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18115 Do not stream DECL_ABSTRACT_ORIGIN.
18116 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18117 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18118 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18119 Do not stream DECL_ABSTRACT_ORIGIN.
18120 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18121 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18122
18123 2011-02-28 Anatoly Sokolov <aesok@post.ru>
18124
18125 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
18126 FUNCTION_VALUE_REGNO_P): Remove.
18127 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
18128 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
18129 Add 'outgoing' argument.
18130 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
18131 function.
18132 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18133 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18134
18135 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
18136
18137 PR debug/28047
18138 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
18139 (lookup_filename): Likewise.
18140 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
18141
18142 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
18143 Jakub Jelinek <jakub@redhat.com>
18144
18145 PR middle-end/47893
18146 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
18147 (assign_stack_local_1): Change last argument type to int.
18148 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
18149 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
18150 don't record padding space into frame_space_list nor use those areas.
18151 (assign_stack_local): Adjust caller.
18152 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
18153 of assign_stack_local, pass 0 as last argument.
18154 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
18155 callers.
18156
18157 2011-02-28 Jakub Jelinek <jakub@redhat.com>
18158
18159 PR debug/47283
18160 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
18161 Use target address_mode and pointer_mode hooks instead of hardcoded
18162 Pmode and ptr_mode. Handle some simple cases of extending if
18163 POINTERS_EXTEND_UNSIGNED < 0.
18164 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
18165 Call convert_debug_memory_address.
18166 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
18167 convert_debug_memory_address.
18168
18169 PR middle-end/46790
18170 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
18171 * configure: Regenerated.
18172 * config.in: Regenerated.
18173 * varasm.c (default_function_section): Return NULL
18174 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
18175
18176 2011-02-28 Martin Jambor <mjambor@suse.cz>
18177
18178 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
18179 the description to match the printed values.
18180
18181 2011-02-28 Richard Guenther <rguenther@suse.de>
18182
18183 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
18184 of the copied scope tree.
18185
18186 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18187
18188 * doc/extend.texi (Function Attributes): Avoid deeply (and
18189 wrongly) nested tables.
18190
18191 2011-02-27 Jakub Jelinek <jakub@redhat.com>
18192
18193 PR middle-end/47903
18194 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
18195 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
18196 r isn't op0 nor op1.
18197
18198 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
18199
18200 * config/avr/avr.md: Remove magic comment for emacs.
18201
18202 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
18203
18204 PR target/45261
18205 * config/avr/avr.c (avr_option_override): Use error on bad options.
18206 (avr_help): New function.
18207 (TARGET_HELP): Define.
18208
18209 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
18210
18211 PR target/42240
18212 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
18213 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
18214
18215 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
18216
18217 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
18218 (ARM Options): Ditto.
18219 (i386 and x86-64 Options): Ditto.
18220 (RX Options): Ditto.
18221 (SPARC Options): Ditto.
18222
18223 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
18224
18225 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
18226 FreeBSD 6 and later. Generally use cpu generic.
18227
18228 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
18229
18230 * doc/cpp.texi: Update copyright years.
18231
18232 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
18233
18234 PR target/46898
18235 * config/lm32/lm32.md (ashrsi3): Added needed variable.
18236
18237 2011-02-25 Jon Beniston <jon@beniston.com>
18238
18239 PR target/46898
18240 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
18241 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
18242 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
18243 (lm32_block_move_inline): Add type cast to remove warning.
18244 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
18245 (gen_int_relational): Move declarations to start of function.
18246
18247 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
18248
18249 PR tree-optimization/45470
18250 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
18251 can throw internally only.
18252 * tree-vect-stmts.c (vectorizable_call): Likewise.
18253
18254 2011-02-24 Anatoly Sokolov <aesok@post.ru>
18255
18256 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
18257 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
18258 * config/stormy16/stormy16-protos.h
18259 (xstormy16_preferred_reload_class): Remove.
18260 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
18261 static. Change 'rclass' argument and return type to reg_class_t.
18262 (TARGET_PREFERRED_RELOAD_CLASS,
18263 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
18264
18265 2011-02-24 Richard Guenther <rguenther@suse.de>
18266
18267 * lto-streamer-in.c (input_bb): Do not find referenced vars
18268 in debug statements.
18269
18270 2011-02-23 Jason Merrill <jason@redhat.com>
18271
18272 * common.opt (fabi-version): Document v5 and v6.
18273
18274 2011-02-23 Richard Guenther <rguenther@suse.de>
18275
18276 PR tree-optimization/47849
18277 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
18278
18279 2011-02-23 Jie Zhang <jie@codesourcery.com>
18280
18281 * opts-common.c (decode_cmdline_option): Print empty string
18282 argument as "" in decoded->orig_option_with_args_text.
18283 * gcc.c (execute): Print empty string argument as ""
18284 in the verbose output.
18285 (do_spec_1): Keep empty string argument.
18286
18287 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
18288
18289 * config.gcc: Declare score-* and crx-* obsolete.
18290
18291 2011-02-23 Jie Zhang <jie@codesourcery.com>
18292
18293 PR rtl-optimization/47763
18294 * web.c (web_main): Ignore naked clobber when replacing register.
18295
18296 2011-02-22 Anatoly Sokolov <aesok@post.ru>
18297
18298 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18299 Remove.
18300
18301 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
18302
18303 PR doc/47848
18304 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
18305
18306 2011-02-22 Mike Stump <mikestump@comcast.net>
18307
18308 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
18309 assembler.
18310 * configure: Regenerate.
18311
18312 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
18313
18314 PR rtl-optimization/46002
18315 * ira-color.c (update_copy_costs): Change class intersection
18316 test to reg_class_contents[] test of 'hard_regno'.
18317
18318 2011-02-21 Joseph Myers <joseph@codesourcery.com>
18319
18320 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
18321 than Driver option.
18322 * config/hpux11.opt (mt): Likewise.
18323 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
18324 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
18325 * config/vax/elf.opt (mno-asm-pic): Likewise.
18326 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
18327
18328 2011-02-21 Mike Stump <mikestump@comcast.net>
18329
18330 PR target/47822
18331 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
18332 tree so we can get save the type.
18333 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
18334 for CFString instead of trying to use past the end of the builtins.
18335 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
18336 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
18337 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
18338 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
18339 Rename to darwin_builtin_cfstring.
18340 (darwin_init_cfstring_builtins): Return the built type.
18341
18342 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
18343
18344 PR target/47840
18345 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
18346 (_mm256_insert_epi64): Use _mm_insert_epi64.
18347
18348 2011-02-21 Anatoly Sokolov <aesok@post.ru>
18349
18350 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18351 * config/stormy16/stormy16-protos.h
18352 (xstormy16_mode_dependent_address_p): Remove.
18353 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
18354 Make static. Change return type to bool. Change argument type to
18355 const_rtx. Remove dead code.
18356 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18357
18358 2011-02-21 Richard Guenther <rguenther@suse.de>
18359
18360 PR lto/47820
18361 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18362 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18363 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
18364 TUs context.
18365 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18366 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18367
18368 2011-02-20 Richard Guenther <rguenther@suse.de>
18369
18370 PR lto/47822
18371 * tree.c (free_lang_data_in_decl): Clean builtins from
18372 the TU decl BLOCK_VARS.
18373
18374 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
18375
18376 PR debug/47620
18377 PR debug/47630
18378 * haifa-sched.c (fix_tick_ready): Skip tick computation
18379 for debug insns.
18380
18381 2011-02-19 Richard Guenther <rguenther@suse.de>
18382
18383 PR lto/47647
18384 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
18385 Remove lazy BLOCK_VARS streaming.
18386 (lto_input_ts_block_tree_pointers): Likewise.
18387 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
18388
18389 2011-02-19 Joseph Myers <joseph@codesourcery.com>
18390
18391 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
18392
18393 2011-02-19 Joseph Myers <joseph@codesourcery.com>
18394
18395 * config/i386/biarch32.h, config/i386/mach.h,
18396 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
18397
18398 2011-02-19 Jakub Jelinek <jakub@redhat.com>
18399
18400 PR target/47800
18401 * config/i386/i386.md (peephole2 for shift and plus): Use
18402 operands[1] original mode in the first insn.
18403
18404 2011-02-18 Mike Stump <mikestump@comcast.net>
18405
18406 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
18407
18408 2011-02-18 Jan Hubicka <jh@suse.cz>
18409
18410 PR middle-end/47788
18411 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
18412 to zero when the function is not inlinable at all.
18413
18414 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18415
18416 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
18417 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
18418 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
18419 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
18420 * config/pa/t-pa64: Likewise.
18421 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
18422
18423 2011-02-18 Jakub Jelinek <jakub@redhat.com>
18424
18425 PR driver/47787
18426 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
18427
18428 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18429
18430 PR target/47792
18431 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
18432
18433 2011-02-18 Anatoly Sokolov <aesok@post.ru>
18434
18435 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
18436 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
18437 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
18438 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18439 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
18440 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
18441 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
18442 m32r_load_postinc_p, m32r_store_preinc_predec_p,
18443 m32r_legitimate_address_p): New functions.
18444 * config/m32r/constraints.md (constraint "S"): Don't use
18445 STORE_PREINC_PREDEC_P.
18446 (constraint "U"): Don't use LOAD_POSTINC_P.
18447
18448 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
18449
18450 PR rtl-optimization/46178
18451 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
18452 compute ira_hard_regno_cover_class[].
18453
18454 2011-02-18 Richard Guenther <rguenther@suse.de>
18455
18456 PR lto/47798
18457 * lto-streamer.h (lto_global_var_decls): Declare.
18458 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
18459 statics for global var processing.
18460
18461 2011-02-18 Richard Guenther <rguenther@suse.de>
18462
18463 PR tree-optimization/47737
18464 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
18465 edge dominance check.
18466
18467 2011-02-18 Jakub Jelinek <jakub@redhat.com>
18468
18469 PR debug/47780
18470 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
18471 avoid invalid rtx sharing.
18472
18473 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
18474
18475 * doc/cpp.texi (Obsolete Features): Add background on the
18476 origin of assertions.
18477
18478 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
18479
18480 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
18481 objc_abi == 2.
18482 * config/darwin.c (output_objc_section_asm_op): Added support for
18483 ABI v1 and v2.
18484 (is_objc_metadata): New.
18485 (darwin_objc2_section): New.
18486 (darwin_objc1_section): New.
18487 (machopic_select_section): Added support for ABI v1 and v2.
18488 (darwin_emit_objc_zeroed): New.
18489 (darwin_output_aligned_bss): Detect objc metadata and treat it
18490 appropriately.
18491 (darwin_asm_output_aligned_decl_common): Same.
18492 (darwin_asm_output_aligned_decl_local): Same.
18493 * config/darwin-sections.def: Updated for ABI v1 and v2.
18494 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
18495 compiling Objective-C code for the NeXT runtime, default to using
18496 ABI version 0 for 32-bit, and version 2 for 64-bit.
18497
18498 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18499
18500 * common.opt (optimize_fast): New Variable.
18501 * opts.c (default_options_optimization): Use opts->x_optimize_fast
18502 instead of local variable ofast.
18503
18504 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
18505
18506 * doc/invoke.texi (fobjc-abi-version): Documented.
18507 (fobjc-nilcheck): Documented.
18508 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
18509 version.
18510
18511 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18512
18513 PR driver/47390
18514 * common.opt (export-dynamic): New Driver option.
18515 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
18516
18517 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18518
18519 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
18520
18521 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
18522 Jan Hubicka <jh@suse.cz>
18523
18524 PR debug/47106
18525 PR debug/47402
18526 * cfgexpand.c (account_used_vars_for_block): Remove.
18527 (estimated_stack_frame_size): Use referenced vars.
18528 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
18529 that were referenced in the original function. Test src_fn
18530 rather than cfun. Drop redundant get_var_ann.
18531 (setup_one_parameter): Drop redundant get_var_ann.
18532 (declare_return_variable): Likewise.
18533 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
18534 (copy_arguments_for_versioning): Drop redundant get_var_ann.
18535 * ipa-inline.c (compute_inline_parameters): Do not compute
18536 disregard_inline_limits here.
18537 (compute_inlinable_for_current, pass_inlinable): New.
18538 (pass_inline_parameters): Require PROP_referenced_vars.
18539 * cgraphunit.c (cgraph_process_new_functions): Don't run
18540 compute_inline_parameters explicitly unless function is in SSA form.
18541 (cgraph_analyze_function): Set .disregard_inline_limits.
18542 * tree-sra.c (convert_callers): Compute inliner parameters
18543 only for functions already in SSA form.
18544
18545 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18546
18547 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
18548 -mlittle-endian-data.
18549
18550 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18551
18552 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
18553 -mno-fpu, not -fpu and -no-fpu.
18554 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
18555 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
18556
18557 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
18558
18559 PR target/43653
18560 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
18561 input reload with PLUS RTX.
18562
18563 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18564
18565 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
18566 of InverseVar(MDMX).
18567
18568 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18569
18570 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
18571 --m4-340.
18572
18573 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18574
18575 * config/mn10300/mn10300.opt (mno-crt0): New.
18576
18577 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18578
18579 * config/m68k/uclinux.opt (static-libc): New Driver option.
18580
18581 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18582
18583 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
18584
18585 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18586
18587 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
18588 %{muser-extend-enabled}.
18589
18590 2011-02-16 Richard Guenther <rguenther@suse.de>
18591
18592 PR tree-optimization/47738
18593 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
18594 the TODO from tree_predictive_commoning.
18595
18596 2011-02-15 Jeff Law <law@redhat.com>
18597
18598 Revert
18599 2011-01-25 Jeff Law <law@redhat.com>
18600
18601 PR rtl-optimization/37273
18602 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18603 handle them like argument loads from stack slots. Do not double
18604 count memory for memory constants and argument loads from stack slots.
18605
18606 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
18607
18608 PR middle-end/47725
18609 * combine.c (cant_combine_insn_p): Revert the last change.
18610
18611 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18612
18613 PR target/47755
18614 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
18615 mode for vector constants. Remove code that checks for TImode.
18616
18617 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
18618
18619 PR debug/47106
18620 PR debug/47402
18621 * cgraph.h (compute_inline_parameters): Return void.
18622 * ipa-inline.c (compute_inline_parameters): Adjust.
18623
18624 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
18625
18626 PR debug/47106
18627 PR debug/47402
18628 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
18629 rather than decl.
18630 * cfgexpand.c (estimated_stack_frame_size): Likewise.
18631 * ipa-inline.c (compute_inline_parameters): Adjust.
18632
18633 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
18634
18635 PR debug/47106
18636 PR debug/47402
18637 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
18638 Adjust all users. Pass FN to...
18639 * tree-flow-inline.h (first_referenced_var): ... this. Add
18640 fn argument.
18641 * ipa-struct-reorg.c: Adjust.
18642 * tree-dfa.c: Adjust.
18643 * tree-into-ssa.c: Adjust.
18644 * tree-sra.c: Adjust.
18645 * tree-ssa-alias.c: Adjust.
18646 * tree-ssa-live.c: Adjust.
18647 * tree-ssa.c: Adjust.
18648 * tree-ssanames.c: Adjust.
18649 * tree-tailcall.c: Adjust.
18650
18651 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
18652
18653 PR debug/47106
18654 PR debug/47402
18655 * tree-flow.h (referenced_var_lookup): Add fn parameter.
18656 Adjust all callers.
18657 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
18658 * tree-flow-inline.h: Adjust.
18659 * gimple-pretty-print.c: Adjust.
18660 * tree-into-ssa.c: Adjust.
18661 * tree-ssa.c: Adjust.
18662 * cfgexpand.c: Adjust.
18663
18664 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
18665
18666 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
18667 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18668 (EXTRA_CONSTRAINT): Delete.
18669 * config/iq2000/constraints.md: New file.
18670 * config/iq2000/iq2000.md: Include it.
18671 (define_insn ""): Delete.
18672 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
18673 unsupported constraint letters from patterns.
18674 (call_value, call_value_internal1): Likewise.
18675 (call_value_multiple_internal1): Likewise.
18676
18677 2011-02-15 Nick Clifton <nickc@redhat.com>
18678
18679 * config/mn10300/mn10300.c: Include tm-constrs.h.
18680 (struct liw_data): New data structure describing an LIW candidate
18681 instruction.
18682 (extract_bundle): Use struct liw_data. Allow small integer
18683 operands for some instructions.
18684 (check_liw_constraints): Use struct liw_data. Remove swapped
18685 parameter. Add comments describing the checks. Fix bug when
18686 assigning the source of liw1 to the source of liw2.
18687 (liw_candidate): Delete. Code moved into extract_bundle.
18688 (mn10300_bundle_liw): Use struct liw_data. Check constraints
18689 before swapping.
18690 * config/mn10300/predicates.md (liw_operand): New predicate.
18691 Allows registers and small integer constants.
18692 * config/mn10300/constraints.md (O): New constraint. Accetps
18693 integers in the range -8 to +7 inclusive.
18694 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
18695 for moving a small integer into a register. Give this alternative
18696 LIW attributes.
18697 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
18698 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
18699 using the J,K,L and M constraints,
18700 (liw): Remove SI mode on second operands to allow for HI and QI
18701 mode values.
18702 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
18703 instruction.
18704
18705 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
18706
18707 PR middle-end/47725
18708 * combine.c (cant_combine_insn_p): Check zero/sign extended
18709 hard registers.
18710
18711 2011-02-15 Richard Guenther <rguenther@suse.de>
18712
18713 PR tree-optimization/47743
18714 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
18715 for a non-type-compatible VN lookup bail out.
18716
18717 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
18718
18719 * config/fr30/constraints.md: New file.
18720 * config/fr30/fr30.md: Include it.
18721 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
18722 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18723 (EXTRA_CONSTRAINT): Delete.
18724
18725 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
18726
18727 * config/frv/constraints.md: New file.
18728 * config/frv/predicates.md: Include it.
18729 * config/frv/frv.c (reg_class_from_letter): Delete.
18730 (frv_option_override): Don't initialize it.
18731 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
18732 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
18733 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
18734 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
18735 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
18736 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18737 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
18738 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
18739 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
18740 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
18741 (REG_CLASS_FROM_CONSTRAINT): Delete.
18742
18743 2011-02-15 Jakub Jelinek <jakub@redhat.com>
18744
18745 PR middle-end/47581
18746 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
18747 if frame size is 0 in a leaf function.
18748
18749 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18750
18751 PR pch/14940
18752 * config/alpha/host-osf.c: New file.
18753 * config/alpha/x-osf: New file.
18754 * config.host (alpha*-dec-osf*): Use it.
18755
18756 2011-02-14 Anatoly Sokolov <aesok@post.ru>
18757
18758 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18759 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
18760 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
18761 (rx_mode_dependent_address_p): ...this. Make static. Change argument
18762 type to const_rtx.
18763 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18764
18765 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
18766
18767 * config/stormy16/constraints.md: New file.
18768 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
18769 Use satisfies_constraint_Q and satisfies_constraint_R.
18770 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
18771 Delete.
18772 (xstormy16_legitiamte_address_p): Declare.
18773 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
18774 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18775 (EXTRA_CONSTRAINT): Delete.
18776 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
18777 Un-staticize.
18778 (xstormy16_extra_constraint_p): Delete.
18779
18780 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
18781
18782 PR tree-optimization/46494
18783 * loop-unroll.c (split_edge_and_insert): Adjust comment.
18784 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
18785 (pass_rtl_loop_done): Add TODO_verify_flow.
18786 * fwprop.c (pass_rtl_fwprop): Likewise.
18787 * modulo-sched.c (pass_sms): Likewise.
18788 * tree-ssa-dom.c (pass_dominator): Likewise.
18789 * tree-ssa-loop-ch.c (pass_ch): Likewise.
18790 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
18791 (pass_tree_loop_done): Likewise.
18792 * tree-ssa-pre.c (execute_pre): Likewise.
18793 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
18794 * tree-ssa-sink.c (pass_sink_code): Likewise.
18795 * tree-vrp.c (pass_vrp): Likewise.
18796
18797 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
18798
18799 * config/v850/constraints.md: New file.
18800 * config/v850/v850.md: Include it.
18801 * config/v850/predicates.md (reg_or_0_operand): Use
18802 satisfies_constraint_G.
18803 (special_symbolref_operand): Use satisfies_constraint_K.
18804 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
18805 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
18806 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
18807 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
18808 (EXTRA_CONSTRAINT): Delete.
18809 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
18810 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
18811 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
18812
18813 2011-02-14 Anatoly Sokolov <aesok@post.ru>
18814
18815 PR target/47696
18816 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
18817 description.
18818
18819 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
18820
18821 * config/mcore/constraints.md: New file.
18822 * config/mcore/mcore.md: Include it.
18823 * config/mcore/mcore.c (reg_class_from_letter): Delete.
18824 * config/mcore/mcore.h (reg_class_from_letter): Delete.
18825 (REG_CLASS_FROM_LETTER): Delete.
18826 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
18827 insn_const_int_ok_for_constraint.
18828 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
18829 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
18830 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18831 (EXTRA_CONSTRAINT): Delete.
18832
18833 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18834
18835 PR ada/41929
18836 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
18837 (IS_SIGHANDLER): Define.
18838 (sparc64_is_sighandler): New function, split off from
18839 sparc64_fallback_frame_state.
18840 (sparc_is_sighandler): New function, split off from
18841 sparc_fallback_frame_state.
18842 (sparc64_fallback_frame_state): Merge with ...
18843 (sparc_fallback_frame_state): ... this into ...
18844 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
18845 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
18846 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
18847 stack instead of hardcoded offsets.
18848
18849 2011-02-14 Andriy Gapon <avg@freebsd.org>
18850
18851 PR target/45808
18852 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
18853
18854 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18855
18856 * configure: Regenerate.
18857
18858 2011-02-12 Joseph Myers <joseph@codesourcery.com>
18859
18860 PR driver/45731
18861 * gcc.c (asm_options): Correct spec matching --target-help.
18862
18863 2011-02-12 Martin Jambor <mjambor@suse.cz>
18864
18865 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
18866 to gimple call error.
18867
18868 2011-02-12 Mike Stump <mikestump@comcast.net>
18869
18870 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
18871 comments in backslash regions.
18872
18873 2011-02-12 Mike Stump <mikestump@comcast.net>
18874 Jakub Jelinek <jakub@redhat.com>
18875 Iain Sandoe <iains@gcc.gnu.org>
18876
18877 PR target/47324
18878 * dwarf2out.c (output_cfa_loc): When required, apply the
18879 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
18880 (output_loc_sequence): Likewise.
18881 (output_loc_operands_raw): Likewise.
18882 (output_loc_sequence_raw): Likewise.
18883 (output_cfa_loc): Likewise.
18884 (output_loc_list): Suppress register number adjustment when
18885 calling output_loc_sequence()
18886 (output_die): Likewise.
18887
18888 2011-02-12 Anatoly Sokolov <aesok@post.ru>
18889
18890 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18891 Remove macros.
18892 * config/xtensa/xtensa.c (xtensa_register_move_cost,
18893 xtensa_memory_move_cost): New functions.
18894 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
18895
18896 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
18897
18898 PR lto/47225
18899 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
18900 in the current directory.
18901 * configure: Rebuilt.
18902
18903 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
18904
18905 * config/darwin.c (darwin_override_options): Add a hunk missed
18906 from the commit of r168571. Trim comment line lengths and
18907 correct indents of the preceding block.
18908
18909 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
18910
18911 * gcc.c (driver_handle_option): Concatenate the argument to -F with
18912 the switch.
18913
18914 2011-02-11 Joseph Myers <joseph@codesourcery.com>
18915
18916 * common.opt (nostartfiles): New Driver option.
18917
18918 2011-02-11 Xinliang David Li <davidxl@google.com>
18919
18920 PR tree-optimization/47707
18921 * tree-chrec.c (convert_affine_scev): Keep type precision.
18922
18923 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
18924
18925 PR tree-optimization/47420
18926 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
18927
18928 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
18929
18930 PR rtl-optimization/47614
18931 * rtl.h (check_for_inc_dec): Declare.
18932 * dse.c (check_for_inc_dec): Externalize...
18933 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
18934 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
18935
18936 2011-02-11 Joseph Myers <joseph@codesourcery.com>
18937
18938 PR driver/47678
18939 * gcc.c (main): Do not compile inputs if there were errors in
18940 option handling.
18941 * opts-common.c (read_cmdline_option): Check for wrong language
18942 after other error checks.
18943
18944 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
18945
18946 * cgraph.c: Fix comment typos.
18947 * cgraph.h: Likewise.
18948 * cgraphunit.c: Likewise.
18949 * ipa-cp.c: Likewise.
18950 * ipa-inline.c: Likewise.
18951 * ipa-prop.c: Likewise.
18952 * ipa-pure-const.c: Likewise.
18953 * ipa-ref.c: Likewise.
18954 * ipa-reference.c: Likewise.
18955
18956 2011-02-11 Jakub Jelinek <jakub@redhat.com>
18957
18958 PR debug/47684
18959 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
18960
18961 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18962
18963 PR testsuite/47400
18964 * doc/sourcebuild.texi (Require Support): Document
18965 dg-require-ascii-locale.
18966
18967 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
18968
18969 * doc/lto.texi (Write summary): Fix missing parentheses.
18970
18971 2011-02-10 DJ Delorie <dj@redhat.com>
18972
18973 * config/m32c/m32c.c (m32c_option_override): Disable
18974 -fcombine-stack-adjustments until flag value tracking and compare
18975 optimization can be rewritten.
18976
18977 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
18978
18979 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
18980 PROCESSOR_POWER7.
18981 (PROCESSOR_DEFAULT64): Likewise.
18982
18983 2011-02-10 Richard Henderson <rth@redhat.com>
18984
18985 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
18986 change from 2011-02-03.
18987 * config/rx/rx.c (flags_from_code): Likewise.
18988 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
18989 is valid, n/pz otherwise.
18990 (rx_select_cc_mode): Return CCmode if Y is not zero.
18991
18992 2011-02-10 Richard Guenther <rguenther@suse.de>
18993
18994 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
18995
18996 2011-02-10 Richard Guenther <rguenther@suse.de>
18997
18998 PR tree-optimization/47677
18999 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
19000
19001 2011-02-10 Jakub Jelinek <jakub@redhat.com>
19002
19003 PR target/47665
19004 * combine.c (make_compound_operation): Only change shifts into
19005 multiplication for SCALAR_INT_MODE_P.
19006
19007 2011-02-10 Jie Zhang <jie@codesourcery.com>
19008
19009 PR testsuite/47622
19010 Revert
19011 2011-02-05 Jie Zhang <jie@codesourcery.com>
19012 PR debug/42631
19013 * web.c (entry_register): Don't clobber the number of the
19014 first uninitialized reference in used[].
19015
19016 2011-02-09 Richard Guenther <rguenther@suse.de>
19017
19018 PR tree-optimization/47664
19019 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
19020 all edges again.
19021
19022 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
19023
19024 PR target/46481
19025 PR target/47032
19026 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
19027 PROCESSOR_POWER7.
19028 (PROCESSOR_DEFAULT64): Same.
19029 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
19030
19031 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19032
19033 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
19034
19035 2011-02-09 Martin Jambor <mjambor@suse.cz>
19036
19037 PR middle-end/45505
19038 * tree-sra.c (struct access): New flags grp_scalar_read and
19039 grp_scalar_write. Changed description of assignment read and write
19040 flags.
19041 (dump_access): Dump new flags, reorder all of them.
19042 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
19043 to detect multiple scalar reads.
19044 (analyze_access_subtree): Use the new scalar read write flags instead
19045 of the old flags. Adjusted comments.
19046
19047 2011-02-08 DJ Delorie <dj@redhat.com>
19048
19049 PR target/47548
19050 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
19051 patterns.
19052
19053 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19054
19055 * config/m68k/uclinux.opt: New.
19056 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
19057
19058 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19059
19060 * config/cris/elf.opt (sim): New Driver option.
19061
19062 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19063
19064 * config/xtensa/elf.opt: New.
19065 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
19066
19067 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19068
19069 * config/vax/elf.opt: New.
19070 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
19071
19072 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19073
19074 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
19075
19076 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19077
19078 * config/gnu-user.opt: New.
19079 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
19080 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
19081 *-*-uclinux*): Use gnu-user.opt.
19082
19083 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
19084
19085 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
19086 * config/i386/gnu.h (CPP_SPEC): Likewise.
19087
19088 2011-02-08 Ian Lance Taylor <iant@google.com>
19089
19090 * common.opt (fcx-limited-range): Add SetByCombined flag.
19091 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
19092 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
19093 (fassociative-math, freciprocal-math): Likewise.
19094 (funsafe-math-optimizations): Likewise.
19095 * opth-gen.awk: Handle SetByCombined.
19096 * optc-gen.awk: Likewise.
19097 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
19098 (set_unsafe_math_optimizations_flags): Likewise.
19099 * doc/options.texi (Option properties): Document SetByCombined.
19100
19101 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19102
19103 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
19104 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
19105 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
19106 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
19107 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
19108
19109 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
19110
19111 PR tree-optimization/46834
19112 PR tree-optimization/46994
19113 PR tree-optimization/46995
19114 * graphite-sese-to-poly.c (used_outside_reduction): New.
19115 (detect_commutative_reduction): Call used_outside_reduction.
19116 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
19117 translate_scalar_reduction_to_array only when at least one
19118 loop-phi/close-phi tuple has been detected.
19119
19120 2011-02-08 Richard Guenther <rguenther@suse.de>
19121
19122 PR middle-end/47639
19123 * tree-vect-generic.c (expand_vector_operations_1): Update
19124 stmts here ...
19125 (expand_vector_operations): ... not here. Cleanup EH info
19126 and the CFG if required.
19127
19128 2011-02-08 Richard Guenther <rguenther@suse.de>
19129
19130 PR tree-optimization/47641
19131 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
19132 require type compatibility.
19133
19134 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19135
19136 * gimple-low.c (lower_function_body): Don't remove the location of
19137 the return statement here.
19138 (lower_gimple_return): Do it here instead but only if the return
19139 statement is actually used twice.
19140
19141 2011-02-08 Richard Guenther <rguenther@suse.de>
19142
19143 PR tree-optimization/47632
19144 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
19145 unused up_to_stmt parameter, return whether cfg-cleanup is
19146 necessary, remove EH info properly.
19147 (forward_propagate_into_gimple_cond): Adjust caller.
19148 (forward_propagate_into_cond): Likewise.
19149 (forward_propagate_comparison): Likewise.
19150 (tree_ssa_forward_propagate_single_use_vars): Make
19151 forward_propagate_comparison case similar to the two others.
19152
19153 2011-02-08 Nick Clifton <nickc@redhat.com>
19154
19155 * config/mn10300/mn10300.opt (mliw): New command line option.
19156 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
19157 (liw_bundling): New automaton.
19158 (liw): New attribute.
19159 (liw_op): New attribute.
19160 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
19161 (movsi_internal): Add LIW attributes.
19162 (andsi3): Likewise.
19163 (iorsi3): Likewise.
19164 (xorsi3): Likewise.
19165 (addsi3): Separate register and immediate alternatives.
19166 Add LIW attributes.
19167 (subsi3): Likewise.
19168 (cmpsi): Likewise.
19169 (aslsi3): Likewise.
19170 (lshrsi3): Likewise.
19171 (ashrsi3): Likewise.
19172 (liw): New pattern.
19173 * config/mn10300/mn10300.c (liw_op_names): New
19174 (mn10300_print_operand): Handle 'W' operand descriptor.
19175 (extract_bundle): New function.
19176 (check_liw_constraints): New function.
19177 (liw_candidate): New function.
19178 (mn10300_bundle_liw): New function.
19179 (mn10300_reorg): New function.
19180 (TARGET_MACHINE_DEPENDENT_REORG): Define.
19181 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
19182 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
19183 __LIW__ or __NO_LIW__.
19184 * doc/invoke.texi: Describe the -mliw command line option.
19185
19186 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19187
19188 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
19189 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
19190 pthread_mutex_unlock): Remove.
19191 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
19192 * config/pa/t-pa64: Likewise.
19193 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
19194 shared libc if not linking against libpthread.
19195 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
19196
19197 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
19198
19199 PR target/47558
19200 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
19201 on 10.6 and later to ensure that we always use the unwinder from
19202 the system. Only add -no_compact_unwind when tarteting darwin
19203 10.6 or later.
19204
19205 2011-02-07 Steve Ellcey <sje@cup.hp.com>
19206
19207 PR target/46997
19208 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
19209 (vec_interleave_lowv2sf): Ditto.
19210 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
19211 (vec_extract_oddv2sf): Ditto.
19212
19213 2011-02-07 Mike Stump <mikestump@comcast.net>
19214
19215 PR target/42333
19216 Add __ieee_divdc3 entry point.
19217 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
19218 entry point.
19219 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
19220 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
19221 * config/darwin.c (darwin_rename_builtins): Add.
19222 * config/darwin-protos.h (darwin_rename_builtins): Add.
19223
19224 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
19225
19226 PR target/47636
19227 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
19228 for the condition.
19229
19230 2011-02-07 Mike Stump <mikestump@comcast.net>
19231
19232 * config/darwin.opt (mmacosx-version-min): Update default OS version.
19233
19234 2011-02-07 Denis Chertykov <chertykov@gmail.com>
19235
19236 PR target/47534
19237 * config/avr/libgcc.S (exit): Move .endfunc
19238
19239 2011-02-07 Richard Guenther <rguenther@suse.de>
19240
19241 PR tree-optimization/47615
19242 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
19243 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
19244 (run_scc_vn): Initialize it.
19245 (visit_reference_op_load): Use it.
19246 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
19247
19248 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19249
19250 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
19251 DImode trapping arithmetic libfuncs.
19252
19253 2011-02-07 Richard Guenther <rguenther@suse.de>
19254
19255 PR tree-optimization/47621
19256 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
19257 two duplicates ...
19258 (execute_update_addresses_taken): ... here. Make it more
19259 conservative in what we accept.
19260
19261 2011-02-06 Joseph Myers <joseph@codesourcery.com>
19262
19263 * config/sparc/freebsd.h (ASM_SPEC): Define.
19264 * config/sparc/vxworks.h (ASM_SPEC): Define.
19265
19266 2011-02-06 Joseph Myers <joseph@codesourcery.com>
19267
19268 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19269
19270 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
19271
19272 * doc/invoke.texi: Remove reference to compiler internals from
19273 user documentation.
19274
19275 * reg-notes.def: Remove REG_VALUE_PROFILE.
19276 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
19277
19278 2011-02-05 Jakub Jelinek <jakub@redhat.com>
19279
19280 PR middle-end/47610
19281 * varasm.c (default_section_type_flags): If decl is NULL,
19282 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
19283
19284 2011-02-05 Jie Zhang <jie@codesourcery.com>
19285
19286 PR debug/42631
19287 * web.c (entry_register): Don't clobber the number of the
19288 first uninitialized reference in used[].
19289
19290 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
19291
19292 PR tree-optimization/46194
19293 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
19294 (build_classic_dist_vector_1): Do not represent classic distance
19295 vectors when the access functions are variating in different loops.
19296
19297 2011-02-04 Joseph Myers <joseph@codesourcery.com>
19298
19299 * config/mips/iris6.opt: New.
19300 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
19301
19302 2011-02-04 Richard Henderson <rth@redhat.com>
19303 Steve Ellcey <sje@cup.hp.com>
19304
19305 PR target/46997
19306 * config/ia64/predicates.md (mux1_brcst_element): New.
19307 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
19308 * config/ia64/ia64.c (ia64_unpack_assemble): New.
19309 (ia64_unpack_sign): New.
19310 (ia64_expand_unpack): Rewrite using new routines.
19311 (ia64_expand_widen_sum): Ditto.
19312 (ia64_expand_dot_prod_v8qi): Ditto.
19313 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
19314 routines, add endian check.
19315 (pmpy2_even): Rename from pmpy2_r, add endian check.
19316 (pmpy2_odd): Rename from pmpy2_l, add endian check.
19317 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
19318 (vec_widen_smult_hi_v4hi): Ditto.
19319 (vec_widen_umult_lo_v4hi): Ditto.
19320 (vec_widen_umult_hi_v4hi): Ditto.
19321 (mulv2si3): Change endian checks.
19322 (sdot_prodv4hi): Rewrite with new calls.
19323 (udot_prodv4hi): New.
19324 (vec_pack_ssat_v4hi): Add endian check.
19325 (vec_pack_usat_v4hi): Ditto.
19326 (vec_pack_ssat_v2si): Ditto.
19327 (max1_even): Rename from max1_r, add endian check.
19328 (max1_odd): Rename from max1_l, add endian check.
19329 (*mux1_rev): Format change.
19330 (*mux1_mix): Ditto.
19331 (*mux1_shuf): Ditto.
19332 (*mux1_alt): Ditto.
19333 (*mux1_brcst_v8qi): Use new predicate.
19334 (vec_extract_evenv8qi): Remove endian check.
19335 (vec_extract_oddv8qi): Ditto.
19336 (vec_interleave_lowv4hi): Format change.
19337 (vec_interleave_highv4hi): Ditto.
19338 (mix2_even): Rename from mix2_r, add endian check.
19339 (mix2_odd): Rename from mux2_l, add endian check.
19340 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
19341 (vec_extract_evenodd_helper): Format change.
19342 (vec_extract_evenv4hi): Remove endian check.
19343 (vec_extract_oddv4hi): Remove endian check.
19344 (vec_interleave_lowv2si): Format change.
19345 (vec_interleave_highv2si): Format change.
19346 (vec_initv2si): Remove endian check.
19347 (vecinit_v2si): Add endian check.
19348 (reduc_splus_v2sf): Add endian check.
19349 (reduc_smax_v2sf): Ditto.
19350 (reduc_smin_v2sf): Ditto.
19351 (vec_initv2sf): Remove endian check.
19352 (fpack): Add endian check.
19353 (fswap): Add endian check.
19354 (vec_interleave_highv2sf): Add endian check.
19355 (vec_interleave_lowv2sf): Add endian check.
19356 (fmix_lr): Add endian check.
19357 (vec_setv2sf): Format change.
19358 (*vec_extractv2sf_0_be): Use shift to extract operand.
19359 (*vec_extractv2sf_1_be): New.
19360 (vec_pack_trunc_v4hi): Add endian check.
19361 (vec_pack_trunc_v2si): Format change.
19362
19363 2011-02-04 Jakub Jelinek <jakub@redhat.com>
19364
19365 PR inline-asm/23200
19366 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
19367 do bb, locus and block comparison and disallow loads if it is not set.
19368 (stmt_is_replaceable_p): New function.
19369 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
19370 callers.
19371 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
19372 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
19373 SSA_NAME_DEF_STMT.
19374 * tree-flow.h (stmt_is_replaceable_p): New prototype.
19375
19376 2011-02-04 Joseph Myers <joseph@codesourcery.com>
19377
19378 * config/rs6000/xilinx.opt: New.
19379 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
19380
19381 2011-02-04 Joseph Myers <joseph@codesourcery.com>
19382
19383 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
19384
19385 2011-02-03 Anatoly Sokolov <aesok@post.ru>
19386
19387 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
19388 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
19389 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
19390 secondary_reload_info, xtensa_secondary_reload): Remove.
19391 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
19392 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
19393 (xtensa_preferred_reload_class): Make static. Change return and
19394 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
19395 Use CONST_DOUBLE_P predicate.
19396 (xtensa_preferred_output_reload_class): New function.
19397 (xtensa_secondary_reload): Make static.
19398
19399 2011-02-03 Joseph Myers <joseph@codesourcery.com>
19400
19401 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
19402 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
19403 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
19404
19405 2011-02-03 Jakub Jelinek <jakub@redhat.com>
19406
19407 PR middle-end/31490
19408 * output.h (SECTION_RELRO): Define.
19409 (SECTION_MACH_DEP): Adjust.
19410 (get_variable_section): New prototype.
19411 * varpool.c (varpool_finalize_named_section_flags): New function.
19412 (varpool_assemble_pending_decls): Call it.
19413 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
19414 * cgraphunit.c (cgraph_output_in_order): Call
19415 varpool_finalize_named_section_flags.
19416 * varasm.c (get_section): Allow section flags conflicts between
19417 relro and read-only sections if the section hasn't been declared yet.
19418 Set SECTION_OVERRIDE after diagnosing section type conflict.
19419 (get_variable_section): No longer static.
19420 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
19421 readonly sections that need relocations.
19422 (decl_readonly_section_1): New function.
19423 (decl_readonly_section): Use it.
19424
19425 Revert:
19426 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
19427 Steve Ellcey <sje@cup.hp.com>
19428
19429 PR middle-end/31490
19430 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
19431 if section attribute used.
19432
19433 2011-02-03 Jakub Jelinek <jakub@redhat.com>
19434
19435 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
19436 * config/darwin.c (SECTION_NO_ANCHOR): Define.
19437 (darwin_init_sections): Remove assertion.
19438
19439 2011-02-03 Nick Clifton <nickc@redhat.com>
19440
19441 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
19442 lt and ge.
19443 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
19444 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
19445 instead of "n" and "pz".
19446 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
19447 CC_FLAG_S.
19448
19449 2011-02-03 Jakub Jelinek <jakub@redhat.com>
19450
19451 PR target/47312
19452 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
19453 fma, expand FMA_EXPR as fma{,f,l} call.
19454
19455 PR lto/47274
19456 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
19457 copy them into a unsigned char variable and pass address of it to
19458 lto_output_data_stream.
19459
19460 PR target/47564
19461 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
19462 around backend_init_target and lang_dependent_init_target calls.
19463 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
19464 (verify_cgraph_node): Don't call set_cfun here. Use
19465 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
19466 Set error_found for incorrectly represented calls to thunks.
19467
19468 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
19469
19470 PR debug/43092
19471 PR rtl-optimization/43494
19472 * rtl.h (for_each_inc_dec_fn): New type.
19473 (for_each_inc_dec): Declare.
19474 * rtlanal.c (struct for_each_inc_dec_ops): New type.
19475 (for_each_inc_dec_find_inc_dec): New fn.
19476 (for_each_inc_dec_find_mem): New fn.
19477 (for_each_inc_dec): New fn.
19478 * dse.c (struct insn_size): Remove.
19479 (replace_inc_dec, replace_inc_dec_mem): Remove.
19480 (emit_inc_dec_insn_before): New fn.
19481 (check_for_inc_dec): Use it, along with for_each_inc_dec.
19482 (canon_address): Pass mem modes to cselib_lookup.
19483 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
19484 (cselib_lookup_from_insn): Likewise.
19485 (cselib_subst_to_values): Likewise.
19486 * cselib.c (find_slot_memmode): New var.
19487 (cselib_find_slot): New fn. Use it instead of
19488 htab_find_slot_with_hash everywhere.
19489 (entry_and_rtx_equal_p): Use find_slot_memmode.
19490 (autoinc_split): New fn.
19491 (rtx_equal_for_cselib_p): Rename and implement in terms of...
19492 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
19493 Deal with autoinc. Special-case recursion into MEMs.
19494 (cselib_hash_rtx): Likewise.
19495 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
19496 address and MEM modes.
19497 (cselib_subst_to_values): Add memmode, pass it on.
19498 Deal with autoinc.
19499 (cselib_lookup): Add memmode argument, pass it on.
19500 (cselib_lookup_from_insn): Add memmode.
19501 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
19502 (struct cselib_record_autoinc_data): New.
19503 (cselib_record_autoinc_cb): New fn.
19504 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
19505 mode to cselib_lookup. Reset autoinced REGs here instead of...
19506 (cselib_process_insn): ... here.
19507 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
19508 to cselib_lookup.
19509 (add_uses): Likewise, also to cselib_subst_to_values.
19510 (add_stores): Likewise.
19511 * sched-deps.c (add_insn_mem_dependence): Pass mode to
19512 cselib_subst_to_values.
19513 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
19514 * gcse.c (do_local_cprop): Adjusted.
19515 * postreload.c (reload_cse_simplify_set): Adjusted.
19516 (reload_cse_simplify_operands): Adjusted.
19517 * sel-sched-dump (debug_mem_addr_value): Pass mode.
19518
19519 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
19520
19521 PR tree-optimization/45122
19522 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
19523 unsafe assumptions when there's more than one loop exit.
19524
19525 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19526
19527 PR target/47272
19528 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
19529 Document using vector double with the load/store builtins, and
19530 that the load/store builtins always use Altivec instructions.
19531
19532 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
19533 to use altivec memory instructions, even on VSX.
19534 (vector_altivec_store_<mode>): Ditto.
19535
19536 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
19537 function.
19538
19539 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19540 V2DF, V2DI support to load/store overloaded builtins.
19541
19542 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
19543 altivec load/store builtins for V2DF/V2DI types.
19544
19545 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
19546 set avoid indexed addresses on power6 if -maltivec.
19547 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
19548 vector_altivec_load/vector_altivec_store builtins.
19549 (altivec_expand_st_builtin): Ditto.
19550 (altivec_expand_builtin): Add VSX memory builtins.
19551 (rs6000_init_builtins): Add V2DI types to internal types.
19552 (altivec_init_builtins): Add support for V2DF/V2DI altivec
19553 load/store builtins.
19554 (rs6000_address_for_altivec): Insure memory address is appropriate
19555 for Altivec.
19556
19557 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
19558 vec_vsx_ld and vec_vsx_st.
19559 (vsx_store_<mode>): Ditto.
19560
19561 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
19562 variables to hold long long types for VSX vector memory builtins.
19563 (RS6000_BTI_unsigned_long_long): Ditto.
19564 (long_long_integer_type_internal_node): Ditti.
19565 (long_long_unsigned_type_internal_node): Ditti.
19566
19567 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
19568 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
19569 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
19570
19571 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
19572 short cuts.
19573 (vec_vsx_st): Ditto.
19574
19575 2011-02-02 Joseph Myers <joseph@codesourcery.com>
19576
19577 * config/pa/pa-hpux10.opt: New.
19578 * config/hpux11.opt (pthread): New Driver option.
19579 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
19580 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
19581
19582 2011-02-02 Joseph Myers <joseph@codesourcery.com>
19583
19584 * config/ia64/vms.opt: New.
19585 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
19586
19587 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
19588
19589 PR target/47580
19590 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
19591 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
19592 generator functions.
19593 (vsx_floatuns<VSi><mode>2): Ditto.
19594 (vsx_fix_trunc<mode><VSi>2): Ditto.
19595 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
19596
19597 2011-02-02 Joseph Myers <joseph@codesourcery.com>
19598
19599 * config/i386/djgpp.opt (posix): New Driver option.
19600
19601 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
19602
19603 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
19604 Move to the unsupported targets list.
19605
19606 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
19607
19608 PR rtl-optimization/47525
19609 * df-scan.c: Update copyright years.
19610 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
19611 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
19612
19613 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19614
19615 * config/i386/sysv4.h (TARGET_VERSION): Remove.
19616 (SUBTARGET_RETURN_IN_MEMORY): Remove.
19617 (ASM_OUTPUT_ASCII): Remove.
19618 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
19619
19620 2011-02-02 Jeff Law <law@redhat.com>
19621
19622 PR middle-end/47543
19623 * reload.c (find_reloads_address): Handle reg+d address where both
19624 components are invalid by reloading the entire address.
19625
19626 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
19627 Richard Guenther <rguenther@suse.de>
19628
19629 PR tree-optimization/40979
19630 PR bootstrap/47044
19631 * passes.c (init_optimization_passes): After LIM call copy_prop
19632 and DCE to clean up.
19633 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
19634
19635 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
19636
19637 PR tree-optimization/47576
19638 PR tree-optimization/47555
19639 * doc/invoke.texi (scev-max-expr-complexity): Documented.
19640 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
19641 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
19642 * tree-scalar-evolution.c (follow_ssa_edge): Use
19643 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
19644
19645 2011-02-02 Richard Guenther <rguenther@suse.de>
19646
19647 PR tree-optimization/47566
19648 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
19649
19650 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
19651
19652 PR debug/47106
19653 PR debug/47402
19654 * tree-inline.c (declare_return_variable): Remove unused caller
19655 variable.
19656
19657 PR debug/47106
19658 PR debug/47402
19659 * tree-flow-inline.h (clear_is_used, is_used_p): New.
19660 * cfgexpand.c (account_used_vars_for_block): Use them.
19661 * tree-nrv.c (tree_nrv): Likewise.
19662 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
19663 (dump_scope_block): Likewise.
19664 (remove_unused_locals): Likewise.
19665
19666 PR debug/47106
19667 PR debug/47402
19668 * tree-inline.c (declare_return_variable): Add result decl to
19669 local decls only once.
19670 * gimple-low.c (record_vars_into): Mark newly-created variables
19671 as referenced.
19672
19673 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
19674
19675 PR debug/47498
19676 PR debug/47501
19677 PR debug/45136
19678 PR debug/45130
19679 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
19680 debug insns.
19681 (no_real_insns_p, schedule_block, set_priorities): Drop special
19682 treatment of boundary debug insns.
19683 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
19684 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
19685 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
19686 (BOUNDARY_DEBUG_INSN_P): Likewise.
19687 (SCHEDULE_DEBUG_INSN_P): Likewise.
19688 * sched-rgn.c (init_ready_list): Drop special treatment of
19689 boundary debug insns.
19690 * final.c (rest_of_clean_state): Clear notes' BB.
19691
19692 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19693
19694 * config/openbsd.opt (assert=): New Driver option.
19695
19696 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19697
19698 * config/i386/nto.opt: New.
19699 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
19700
19701 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19702
19703 * config/i386/netware.opt: New.
19704 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
19705
19706 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19707
19708 * config/interix.opt (posix): New Driver option.
19709
19710 2011-02-01 DJ Delorie <dj@redhat.com>
19711
19712 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
19713
19714 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
19715 class for A0/A1.
19716
19717 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
19718
19719 PR tree-optimization/47561
19720 * toplev.c (process_options): Print the Graphite flags. Add
19721 flag_loop_flatten to the list of options requiring Graphite.
19722
19723 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19724
19725 * config/i386/cygming.opt (posix): New Driver option.
19726
19727 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19728
19729 * config/arm/vxworks.opt: New.
19730 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
19731
19732 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19733
19734 * config/alpha/elf.opt: New.
19735 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
19736 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
19737
19738 2011-02-01 Richard Guenther <rguenther@suse.de>
19739
19740 PR tree-optimization/47559
19741 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
19742 store-motion on references that can throw.
19743
19744 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
19745
19746 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
19747 * tree-pass.h (TDF_CSELIB): New macro.
19748 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
19749 cselib_lookup): Check for it rather than for TDF_DETAILS.
19750
19751 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
19752
19753 PR driver/47547
19754 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
19755 is HOST_BIT_BUCKET.
19756
19757 * opts.c (finish_options): Don't add x_aux_base_name if it is
19758 HOST_BIT_BUCKET.
19759
19760 2011-02-01 Richard Guenther <rguenther@suse.de>
19761
19762 PR tree-optimization/47555
19763 Revert
19764 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
19765
19766 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
19767
19768 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
19769
19770 PR gcc/46692
19771 * config/lm32/t-lm32: Add multilib for all CPU options.
19772
19773 2011-02-01 Richard Guenther <rguenther@suse.de>
19774
19775 PR tree-optimization/47541
19776 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
19777 sure to have a field at offset zero.
19778
19779 2011-01-31 Joseph Myers <joseph@codesourcery.com>
19780
19781 * config/arc/arc.opt (EB, EL): New Driver options.
19782
19783 2011-01-31 Joseph Myers <joseph@codesourcery.com>
19784
19785 * config/alpha/osf5.opt: New.
19786 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
19787
19788 2011-01-31 Joseph Myers <joseph@codesourcery.com>
19789
19790 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
19791
19792 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
19793
19794 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
19795 -floop-interchange.
19796 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
19797 is an alias of -floop-interchange and that it requires the
19798 Graphite infrastructure.
19799 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
19800 flag_loop_interchange based on the value of flag_tree_loop_linear.
19801
19802 2011-01-31 Jakub Jelinek <jakub@redhat.com>
19803 Richard Guenther <rguenther@suse.de>
19804
19805 PR tree-optimization/47538
19806 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
19807 type instead of r1type, except for comparisons. For right
19808 shifts and comparisons punt if there are mismatches in
19809 sizetype vs. non-sizetype types.
19810
19811 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19812
19813 * doc/sourcebuild.texi (Effective-Target Keywords): Document
19814 avx_runtime.
19815
19816 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19817
19818 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
19819 version number.
19820 * configure: Regenerate.
19821
19822 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19823
19824 * configure.ac (gcc_cv_ld_static_option): Define.
19825 (gcc_cv_ld_dynamic_option): Define.
19826 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
19827 instead.
19828 (HAVE_LD_STATIC_DYNAMIC): Update message.
19829 (LD_STATIC_OPTION): Define.
19830 (LD_DYNAMIC_OPTION): Define.
19831 * configure: Regenerate.
19832 * config.in: Regenerate.
19833 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
19834 HAVE_LD_STATIC_DYNAMIC]: Use them.
19835
19836 2011-01-31 Nick Clifton <nickc@redhat.com>
19837
19838 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
19839 registers inside interrupt handlers if the handler is not a leaf
19840 function.
19841
19842 2011-01-31 Nick Clifton <nickc@redhat.com>
19843
19844 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
19845 reg_renumber returning an INVALID_REGNUM.
19846
19847 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
19848
19849 PR libgcj/44341
19850 * doc/install.texi: Document host options discarded when cross
19851 configuring target libraries.
19852
19853 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
19854
19855 Reverted:
19856 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
19857 PR debug/45136
19858 PR debug/45130
19859 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
19860 debug insns.
19861 (no_real_insns_p, schedule_block, set_priorities): Drop special
19862 treatment of boundary debug insns.
19863 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
19864 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
19865 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
19866 (BOUNDARY_DEBUG_INSN_P): Likewise.
19867 (SCHEDULE_DEBUG_INSN_P): Likewise.
19868 * sched-rgn.c (init_ready_list): Drop special treatment of
19869 boundary debug insns.
19870 * final.c (rest_of_clean-state): Clear notes' BB.
19871
19872 2011-01-31 Alan Modra <amodra@gmail.com>
19873
19874 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
19875 toc relative expressions as we do in print_operand_address.
19876
19877 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
19878
19879 * doc/extend.texi: Follow spelling conventions.
19880 * doc/invoke.texi: Fix a typo.
19881
19882 2011-01-30 Joseph Myers <joseph@codesourcery.com>
19883
19884 * config/hpux11.opt: New.
19885 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
19886 ia64*-*-hpux*): Use hpux11.opt.
19887
19888 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
19889
19890 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
19891 to tmake_file.
19892
19893 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
19894
19895 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
19896 support sites.
19897
19898 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
19899
19900 * doc/install.texi (Binaries): Remove outdated reference for
19901 Motorola 68HC11/68HC12 downloads.
19902
19903 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
19904
19905 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
19906 Drepper's paper.
19907
19908 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
19909
19910 PR bootstrap/47147
19911 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
19912 used by NetBSD.
19913
19914 2011-01-28 Ahmad Sharif <asharif@google.com>
19915
19916 * value-prof.c (check_counter): Corrected error message.
19917
19918 2011-01-29 Jie Zhang <jie@codesourcery.com>
19919
19920 * config/arm/arm.c (arm_legitimize_reload_address): New.
19921 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
19922 arm_legitimize_reload_address.
19923 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
19924
19925 2011-01-28 Ian Lance Taylor <iant@google.com>
19926
19927 * godump.c (go_define): Ignore macros whose definitions include
19928 two adjacent operands.
19929
19930 2011-01-28 Jakub Jelinek <jakub@redhat.com>
19931
19932 PR target/42894
19933 * varasm.c (force_const_mem): Store copy of x in desc->constant
19934 instead of x itself.
19935 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
19936 itself into REG_EQUAL note.
19937
19938 2011-01-28 Joseph Myers <joseph@codesourcery.com>
19939
19940 * config/freebsd.opt (posix, rdynamic): New Driver options.
19941
19942 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19943
19944 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
19945 -Bstatic/-Bdynamic.
19946 * configure: Regenerate.
19947
19948 2011-01-27 Joseph Myers <joseph@codesourcery.com>
19949
19950 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
19951 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
19952
19953 2011-01-27 Anatoly Sokolov <aesok@post.ru>
19954
19955 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
19956 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
19957 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
19958 (s390_preferred_reload_class): Make static. Change return and
19959 'rclass' argument type to reg_class_t.
19960
19961 2011-01-27 Jan Hubicka <jh@suse.cz>
19962
19963 PR middle-end/46949
19964 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
19965 (process_function_and_variable_attributes): Check defined weakrefs.
19966
19967 2011-01-27 Martin Jambor <mjambor@suse.cz>
19968
19969 PR tree-optimization/47228
19970 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
19971 build_ref_for_offset.
19972
19973 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19974
19975 * config/spu/spu-elf.h (ASM_SPEC): Remove.
19976
19977 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
19978
19979 PR rtl-optimization/46856
19980 * postreload.c (reload_combine_recognize_const_pattern): Do not
19981 separate cc0 setter and user on cc0 targets.
19982
19983 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
19984
19985 PR c/43082
19986 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
19987 passed a VOID_TYPE expression, immediately emit an error and
19988 return error_mark_node.
19989
19990 2011-01-26 Jeff Law <law@redhat.com>
19991
19992 PR rtl-optimization/47464
19993 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
19994 rather than may_trap_p as needed.
19995
19996 2011-01-26 DJ Delorie <dj@redhat.com>
19997
19998 PR rtl-optimization/46878
19999 * combine.c (insn_a_feeds_b): Check for the implicit cc0
20000 setter/user dependency as well.
20001
20002 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
20003
20004 PR rtl-optimization/44469
20005 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
20006 after removing trivially dead basic blocks.
20007
20008 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20009
20010 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
20011 * config/frv/frv.h (LINK_SPEC): Likewise.
20012 * config/i386/netware.h (LINK_SPEC): Likewise.
20013 * config/m68k/linux.h (ASM_SPEC): Likewise.
20014 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
20015 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20016 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20017 * config/sparc/linux.h (ASM_SPEC): Likewise.
20018 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20019 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20020
20021 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20022
20023 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
20024 * config/frv/frv.h (ASM_SPEC): Likewise.
20025 * config/m68k/linux.h (ASM_SPEC): Likewise.
20026 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20027 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
20028 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20029 * config/sparc/linux.h (ASM_SPEC): Likewise.
20030 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20031 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20032
20033 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20034
20035 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
20036 * config/frv/frv.h (LINK_SPEC): Likewise.
20037 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20038
20039 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20040
20041 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
20042 * config/frv/frv.h (ASM_SPEC): Likewise.
20043 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
20044 * config/m68k/linux.h (ASM_SPEC): Likewise.
20045 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20046 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20047 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20048 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
20049 * config/sparc/linux.h (ASM_SPEC): Likewise.
20050 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20051 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20052 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
20053
20054 2011-01-26 Steve Ellcey <sje@cup.hp.com>
20055
20056 PR target/46997
20057 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
20058 (*mux2): Ditto.
20059 (vec_extract_evenodd_help): Ditto.
20060 (vec_extract_evenv4hi): Ditto.
20061 (vec_extract_oddv4hi): Ditto.
20062 (vec_interleave_lowv2si): Ditto.
20063 (vec_interleave_highv2si): Ditto.
20064 (vec_extract_evenv2si): Ditto.
20065 (vec_extract_oddv2si: Ditto.
20066 (vec_pack_trunc_v2si): Ditto.
20067
20068 2011-01-22 Jan Hubicka <jh@suse.cz>
20069
20070 PR target/47237
20071 * cgraph.h (cgraph_local_info): New field can_change_signature.
20072 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
20073 signature can change.
20074 (ipcp_estimate_growth): Call sequence simplify only if calle signature
20075 can change.
20076 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
20077 (cgraph_function_versioning): We can not change signature of functions
20078 that don't allow that.
20079 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
20080 (lto_input_node): Likewise.
20081 * ipa-inline.c (compute_inline_parameters): Compute
20082 local.can_change_signature.
20083 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
20084 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
20085 functions that can not change signature.
20086 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
20087 init_cumulative_args): Do not use local calling conventions
20088 for functions that can not change signature.
20089
20090 2011-01-22 Jan Hubicka <jh@suse.cz>
20091
20092 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
20093
20094 2011-01-26 Richard Guenther <rguenther@suse.de>
20095
20096 PR tree-optimization/47190
20097 * cgraphunit.c (process_common_attributes): New function.
20098 (process_function_and_variable_attributes): Use it.
20099
20100 2011-01-26 Richard Guenther <rguenther@suse.de>
20101
20102 PR lto/47423
20103 * cgraphbuild.c (record_eh_tables): Record reference to personality
20104 function.
20105
20106 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
20107
20108 PR debug/45454
20109 * sel-sched.c (moveup_expr): Don't let debug insns prevent
20110 non-debug insns from moving up.
20111
20112 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
20113
20114 PR target/40125
20115 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
20116 t-dlldir{,-x} fragment for build and add it to tmake_file.
20117 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
20118 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
20119 * config/i386/t-dlldir: New file.
20120 (SHLIB_DLLDIR): Define.
20121 * config/i386/t-dlldir-x: New file.
20122 (SHLIB_DLLDIR): Define.
20123 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
20124 (SHLIB_INSTALL): Use it.
20125
20126 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
20127
20128 PR target/47246
20129 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
20130 lower bound of the allowed Thumb-2 coprocessor load/store
20131 index range to -256. Add explaining comment.
20132
20133 2011-01-25 Ian Lance Taylor <iant@google.com>
20134
20135 * godump.c (go_define): Improve lexing of macro expansion to only
20136 accept expressions which match Go spec.
20137
20138 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
20139
20140 PR c++/43601
20141 * tree.c (handle_dll_attribute): Handle it.
20142 * doc/extend.texi (@item dllexport): Mention it.
20143 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
20144
20145 2011-01-25 Ian Lance Taylor <iant@google.com>
20146
20147 PR tree-optimization/26854
20148 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
20149 (decl_jump_unsafe): Move higher in file, with no other change.
20150 (bind): Set has_jump_unsafe_decl if appropriate.
20151 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
20152 (check_earlier_gotos): Likewise.
20153 (c_check_switch_jump_warnings): Likewise.
20154
20155 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
20156
20157 * doc/invoke.texi (Warning Options): Add missing hyphen.
20158 (-fprofile-dir): Minor grammatical fixes.
20159 (-fbranch-probabilities): Likewise.
20160
20161 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
20162
20163 PR debug/45136
20164 PR debug/45130
20165 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20166 debug insns.
20167 (no_real_insns_p, schedule_block, set_priorities): Drop special
20168 treatment of boundary debug insns.
20169 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20170 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20171 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20172 (BOUNDARY_DEBUG_INSN_P): Likewise.
20173 (SCHEDULE_DEBUG_INSN_P): Likewise.
20174 * sched-rgn.c (init_ready_list): Drop special treatment of
20175 boundary debug insns.
20176 * final.c (rest_of_clean-state): Clear notes' BB.
20177
20178 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20179
20180 * Makefile.in (LAMBDA_H): Removed.
20181 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
20182 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
20183 lambda-trans.o, and tree-loop-linear.o.
20184 (lto-symtab.o): Remove dependence on LAMBDA_H.
20185 (tree-loop-linear.o): Remove rule.
20186 (lambda-mat.o): Same.
20187 (lambda-trans.o): Same.
20188 (lambda-code.o): Same.
20189 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
20190 (tree-vect-slp.o): Same.
20191 * hwint.h (gcd): Moved here.
20192 (least_common_multiple): Same.
20193 * lambda-code.c: Removed.
20194 * lambda-mat.c: Removed.
20195 * lambda-trans.c: Removed.
20196 * lambda.h: Removed.
20197 * tree-loop-linear.c: Removed.
20198 * lto-symtab.c: Do not include lambda.h.
20199 * omega.c (gcd): Removed.
20200 * passes.c (init_optimization_passes): Remove pass_linear_transform.
20201 * tree-data-ref.c (print_lambda_vector): Moved here.
20202 (lambda_vector_copy): Same.
20203 (lambda_matrix_copy): Same.
20204 (lambda_matrix_id): Same.
20205 (lambda_vector_first_nz): Same.
20206 (lambda_matrix_row_add): Same.
20207 (lambda_matrix_row_exchange): Same.
20208 (lambda_vector_mult_const): Same.
20209 (lambda_vector_negate): Same.
20210 (lambda_matrix_row_negate): Same.
20211 (lambda_vector_equal): Same.
20212 (lambda_matrix_right_hermite): Same.
20213 * tree-data-ref.h: Do not include lambda.h.
20214 (lambda_vector): Moved here.
20215 (lambda_matrix): Same.
20216 (dependence_level): Same.
20217 (lambda_transform_legal_p): Removed declaration.
20218 (lambda_collect_parameters): Same.
20219 (lambda_compute_access_matrices): Same.
20220 (lambda_vector_gcd): Same.
20221 (lambda_vector_new): Same.
20222 (lambda_vector_clear): Same.
20223 (lambda_vector_lexico_pos): Same.
20224 (lambda_vector_zerop): Same.
20225 (lambda_matrix_new): Same.
20226 * tree-flow.h (least_common_multiple): Removed declaration.
20227 * tree-parloops.c (lambda_trans_matrix): Moved here.
20228 (LTM_MATRIX): Same.
20229 (LTM_ROWSIZE): Same.
20230 (LTM_COLSIZE): Same.
20231 (LTM_DENOMINATOR): Same.
20232 (lambda_trans_matrix_new): Same.
20233 (lambda_matrix_vector_mult): Same.
20234 (lambda_transform_legal_p): Same.
20235 * tree-pass.h (pass_linear_transform): Removed declaration.
20236 * tree-ssa-loop.c (tree_linear_transform): Removed.
20237 (gate_tree_linear_transform): Removed.
20238 (pass_linear_transform): Removed.
20239 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
20240 flag_loop_interchange.
20241
20242 2011-01-25 Jakub Jelinek <jakub@redhat.com>
20243
20244 PR tree-optimization/47265
20245 PR tree-optimization/47443
20246 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
20247 if name still has some uses.
20248
20249 2011-01-25 Martin Jambor <mjambor@suse.cz>
20250
20251 PR tree-optimization/47382
20252 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
20253 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
20254
20255 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
20256
20257 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
20258 sjlj_except_unwind_info.
20259
20260 2011-01-25 Richard Guenther <rguenther@suse.de>
20261
20262 PR tree-optimization/47426
20263 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
20264 visible functions results escape.
20265
20266 2011-01-25 Jakub Jelinek <jakub@redhat.com>
20267
20268 PR target/45701
20269 * config/arm/arm.c (any_sibcall_uses_r3): New function.
20270 (arm_get_frame_offsets): Use it.
20271
20272 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20273 Jakub Jelinek <jakub@redhat.com>
20274
20275 PR tree-optimization/47271
20276 * tree-if-conv.c (bb_postdominates_preds): New.
20277 (if_convertible_bb_p): Call bb_postdominates_preds.
20278 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
20279 (predicate_scalar_phi): Call bb_postdominates_preds.
20280
20281 2011-01-25 Nick Clifton <nickc@redhat.com>
20282
20283 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
20284 * config/rx/rx.c (rx_function_value): Likewise.
20285 (rx_promote_function_mode): Likewise.
20286 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
20287 in order to make it legitimate.
20288 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
20289 make sure that the first operand is the same as the result register.
20290 (addsi3_unspec): Delete.
20291 (subdi3): Do not accept immediate operands.
20292 (subdi3_internal): Likewise.
20293
20294 2011-01-25 Jeff Law <law@redhat.com>
20295
20296 PR rtl-optimization/37273
20297 * ira-costs.c (scan_one_insn): Detect constants living in memory and
20298 handle them like argument loads from stack slots. Do not double
20299 count memory for memory constants and argument loads from stack slots.
20300
20301 2011-01-25 Jakub Jelinek <jakub@redhat.com>
20302
20303 PR tree-optimization/47427
20304 PR tree-optimization/47428
20305 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
20306 coalesce if the new root var would be TREE_READONLY.
20307
20308 2011-01-25 Richard Guenther <rguenther@suse.de>
20309
20310 PR middle-end/47414
20311 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
20312 correct type for TBAA.
20313
20314 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20315
20316 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
20317 (close_phi_written_to_memory): Call for_each_index with
20318 dr_indices_valid_in_loop.
20319
20320 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20321
20322 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
20323 when it is initialized.
20324
20325 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20326
20327 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
20328 call to graphite_find_data_references_in_stmt.
20329 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
20330 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
20331 call to graphite_find_data_references_in_stmt.
20332 (analyze_drs_in_stmts): Same.
20333 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
20334 in which the scalar analysis of indices is performed.
20335 (create_data_ref): Same. Update call to dr_analyze_indices.
20336 (find_data_references_in_stmt): Update call to create_data_ref.
20337 (graphite_find_data_references_in_stmt): Same.
20338 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
20339 declaration.
20340 (create_data_ref): Same.
20341 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
20342 call to create_data_ref.
20343
20344 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20345
20346 * graphite-sese-to-poly.c (build_poly_scop): Move
20347 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
20348
20349 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20350
20351 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
20352 VAR_DECL, PARM_DECL, and RESULT_DECL.
20353
20354 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20355
20356 * graphite-dependences.c (reduction_dr_1): Allow several reductions
20357 in a reduction PBB.
20358 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
20359 that have already been marked as PBB_IS_REDUCTION.
20360
20361 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20362
20363 * graphite-scop-detection.c (same_close_phi_node): New.
20364 (remove_duplicate_close_phi): New.
20365 (make_close_phi_nodes_unique): New.
20366 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
20367
20368 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20369
20370 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
20371 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
20372 of both data references to be the same.
20373
20374 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20375
20376 * graphite-dependences.c (build_lexicographical_constraint): Remove
20377 the gdim parameter.
20378 (build_lexicographical_constraint): Adjust call to
20379 ppl_powerset_is_empty.
20380 (dependence_polyhedron): Same.
20381 (graphite_legal_transform_dr): Same.
20382 (graphite_carried_dependence_level_k): Same.
20383 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
20384 parameter.
20385 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
20386
20387 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20388
20389 * graphite-sese-to-poly.c
20390 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
20391 (close_phi_written_to_memory): New.
20392 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
20393 and unshare_expr.
20394
20395 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20396
20397 * doc/install.texi: Update the expected version number of PPL to 0.11.
20398 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
20399 #if PPL_VERSION_MINOR < 11.
20400
20401 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20402
20403 * graphite-dependences.c: Include graphite-cloog-util.h.
20404 (new_poly_ddr): Inlined into dependence_polyhedron.
20405 (free_poly_ddr): Moved close by new_poly_ddr.
20406 (dependence_polyhedron_1): Renamed dependence_polyhedron.
20407 Early return NULL when ppl_powerset_is_empty returns true.
20408 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
20409 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
20410 (graphite_legal_transform_dr): Call new_poly_ddr.
20411 (graphite_carried_dependence_level_k): Same.
20412 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
20413 (dot_transformed_deps_stmt_1): Removed.
20414 (dot_deps_stmt_1): Call dot_deps_stmt_2.
20415 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
20416 (dot_deps_1): Call dot_deps_2.
20417 * Makefile.in (graphite-dependences.o): Add missing dependence on
20418 graphite-cloog-util.h.
20419
20420 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20421
20422 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
20423 (build_lexicographical_constraint): Same.
20424 (dependence_polyhedron_1): Same.
20425 (graphite_legal_transform_dr): Same.
20426 (graphite_carried_dependence_level_k): Same.
20427 * graphite-ppl.c (ppl_powerset_is_empty): New.
20428 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
20429 * tree-data-ref.c (dump_data_reference): Print the basic block index.
20430
20431 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20432
20433 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
20434 the "a followed by b" relation and document it.
20435
20436 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20437
20438 * graphite-dependences.c (build_lexicographical_constraint): Stop the
20439 iteration when the bag of constraints is empty.
20440
20441 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20442
20443 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
20444
20445 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20446
20447 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
20448 nest and two loop depths as parameters.
20449 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
20450 lst_perfect_nestify.
20451
20452 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20453
20454 * graphite-dependences.c (print_pddr): Call
20455 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
20456
20457 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20458
20459 * graphite-ppl.c (debug_gmp_value): New.
20460 * graphite-ppl.h (debug_gmp_value): Declared.
20461
20462 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
20463
20464 * doc/install.texi: Document availability of cloog-0.16.
20465
20466 2011-01-25 Vladimir Kargov <kargov@gmail.com>
20467
20468 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
20469 invalid postdominance info.
20470
20471 2011-01-24 Jan Hubicka <jh@suse.cz>
20472
20473 PR c/21659
20474 * doc/extend.texi (weak pragma): Drop claim that it must
20475 appear before definition.
20476 * varasm.c (merge_weak, declare_weak): Only sanity check
20477 that DECL is not output at a time it is declared weak.
20478
20479 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
20480
20481 * machmode.def: Fixed comments.
20482
20483 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
20484
20485 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
20486
20487 2011-01-24 Paul Koning <ni1d@arrl.net>
20488
20489 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
20490 WORDS_BIG_ENDIAN.
20491
20492 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
20493
20494 PR target/46519
20495 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
20496 (block_info): Add scanned and prev.
20497 (move_or_delete_vzeroupper_2): Return if the basic block
20498 has been scanned and the upper 128bit state is unchanged
20499 from the last scan.
20500 (move_or_delete_vzeroupper_1): Return true if the exit
20501 state is changed.
20502 (move_or_delete_vzeroupper): Visit basic blocks using the
20503 work-list based algorithm based on vt_find_locations in
20504 var-tracking.c.
20505
20506 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
20507
20508 2011-01-24 Nick Clifton <nickc@redhat.com>
20509
20510 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
20511 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
20512 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
20513 then define __v850e1__.
20514 * doc/invoke.texi: Document -mv850es.
20515
20516 2011-01-24 Richard Henderson <rth@redhat.com>
20517
20518 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
20519 compound unordered comparisons.
20520 * config/rx/rx.c (rx_split_fp_compare): Remove.
20521 * config/rx/rx-protos.h: Update.
20522 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
20523 (cbranchsf4): Don't call rx_split_fp_compare.
20524 (*cbranchsf4): Use rx_split_cbranch.
20525 (*cmpsf): Don't accept "i" constraint.
20526 (*conditional_branch): Only valid after reload.
20527 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
20528
20529 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20530
20531 PR target/47385
20532 * config/rs6000/altivec.md (vector constant splitters): Add
20533 support for creating vector single precision constants if -mvsx is
20534 used and we would create the constant using Altivec primitives.
20535
20536 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
20537 Richard Sandiford <rdsandiford@googlemail.com>
20538
20539 PR rtl-optimization/47166
20540 * reload1.c (emit_reload_insns): Disable the spill_reg_store
20541 mechanism for PRE_MODIFY and POST_MODIFY.
20542 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
20543 reloadreg.
20544
20545 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
20546
20547 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
20548
20549 2011-01-22 Jan Hubicka <jh@suse.cz>
20550
20551 PR lto/47333
20552 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
20553
20554 2011-01-22 Jan Hubicka <jh@suse.cz>
20555
20556 PR tree-optimization/43884
20557 PR lto/44334
20558 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
20559 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
20560
20561 2011-01-22 Anatoly Sokolov <aesok@post.ru>
20562
20563 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
20564 * config/s390/s390.c (s390_register_move_cost,
20565 s390_memory_move_cost): New.
20566 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
20567
20568 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20569
20570 PR middle-end/47401
20571 * except.c (sjlj_assign_call_site_values): Move setting the
20572 crtl->uses_eh_lsda flag to ...
20573 (sjlj_mark_call_sites): ... here.
20574 (sjlj_emit_function_enter): Support NULL dispatch label.
20575 (sjlj_build_landing_pads): In a function with no landing pads
20576 that still has must-not-throw regions, generate code to register
20577 a personality function with empty LSDA.
20578
20579 2011-01-21 Richard Henderson <rth@redhat.com>
20580
20581 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
20582
20583 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
20584
20585 * compare-elim.c: New file.
20586 * Makefile.in (OBJS-common): Add it.
20587 (compare-elim.o): New.
20588 * common.opt (fcompare-elim): New.
20589 * opts.c (default_options_table): Add OPT_fcompare_elim.
20590 * tree-pass.h (pass_compare_elim_after_reload): New.
20591 * passes.c (init_optimization_passes): Add it.
20592 * recog.h: Protect against re-inclusion.
20593 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
20594 * doc/invoke.texi (-fcompare-elim): Document it.
20595 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
20596 * doc/tm.texi: Rebuild.
20597
20598 2011-01-22 Nick Clifton <nickc@redhat.com>
20599
20600 * config/rx/rx.md (cstoresf4): Pass comparison operator to
20601 rx_split_fp_compare.
20602
20603 2011-01-22 Nick Clifton <nickc@redhat.com>
20604
20605 * config/rx/rx.md (UNSPEC_CONST): New.
20606 (deallocate_and_return): Wrap the amount popped off the stack in
20607 an UNSPEC_CONST in order to stop it being rejected by
20608 -mmax-constant-size.
20609 (pop_and_return): Add a "(return)" rtx.
20610 (call): Drop the immediate operand.
20611 (call_internal): Likewise.
20612 (call_value): Likewise.
20613 (call_value_internal): Likewise.
20614 (sibcall_internal): Likewise.
20615 (sibcall_value_internal): Likewise.
20616 (sibcall): Likewise. Generate an explicit call using
20617 sibcall_internal.
20618 (sibcall_value): Likewise.
20619 (mov<>): FAIL if a constant operand is not legitimate.
20620 (addsi3_unpsec): New pattern.
20621
20622 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
20623 (ok_for_max_constant): New function.
20624 (gen_safe_add): New function.
20625 (rx_expand_prologue): Use gen_safe_add.
20626 (rx_expand_epilogue): Likewise.
20627 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
20628 UNSPEC CONSTs.
20629
20630 2011-01-21 Jeff Law <law@redhat.com>
20631
20632 PR tree-optimization/47053
20633 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
20634 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
20635 statements are deleted.
20636 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
20637 is nonempty, then purge dead edges and cleanup the CFG.
20638
20639 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
20640
20641 PR debug/47402
20642 Temporarily revert:
20643 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
20644 PR debug/47106
20645 * tree-dfa.c (create_var_ann): Mark variable as used.
20646
20647 2011-01-21 Jakub Jelinek <jakub@redhat.com>
20648
20649 PR middle-end/45566
20650 * except.c (convert_to_eh_region_ranges): Emit queued no-region
20651 notes from other section in hot/cold partitioning even if
20652 last_action is -3. Increment call_site_base.
20653
20654 PR rtl-optimization/47366
20655 * fwprop.c (forward_propagate_into): Return bool. If
20656 any changes are made, -fnon-call-exceptions is used and
20657 REG_EH_REGION note is present, call purge_dead_edges
20658 and return true if it purged anything.
20659 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
20660 any EH edges were purged.
20661
20662 2011-01-21 Jeff Law <law@redhat.com>
20663
20664 PR rtl-optimization/41619
20665 * caller-save.c (setup_save_areas): Break out code to determine
20666 which hard regs are live across calls by examining the reload chains
20667 so that it is always used.
20668 Eliminate code which checked REG_N_CALLS_CROSSED.
20669
20670 2011-01-21 Jakub Jelinek <jakub@redhat.com>
20671
20672 PR tree-optimization/47355
20673 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
20674 NOP has non-debug uses beyond PHIs in new_bb.
20675
20676 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
20677
20678 PR debug/47106
20679 * cfgexpand.c (account_used_vars_for_block): Only account vars
20680 that are annotated as used.
20681 (estimated_stack_frame_size): Don't set TREE_USED.
20682 * tree-dfa.c (create_var_ann): Mark variable as used.
20683
20684 2011-01-21 Richard Guenther <rguenther@suse.de>
20685
20686 PR middle-end/47395
20687 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
20688
20689 2011-01-21 Richard Guenther <rguenther@suse.de>
20690
20691 PR tree-optimization/47365
20692 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
20693 (vn_reference_lookup_pieces): Adjust.
20694 (vn_reference_lookup): Likewise.
20695 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
20696 (vn_reference_lookup_3): Only look through kills if in
20697 VN_WALKREWRITE mode.
20698 (vn_reference_lookup_pieces): Adjust.
20699 (vn_reference_lookup): Likewise.
20700 (visit_reference_op_load): Likewise.
20701 (visit_reference_op_store): Likewise.
20702 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
20703 (compute_avail): Likewise.
20704 (eliminate): Likewise.
20705
20706 2011-01-21 Jakub Jelinek <jakub@redhat.com>
20707
20708 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
20709 DECL_IGNORED_P non-reg vars if they are used.
20710
20711 PR tree-optimization/47391
20712 * varpool.c (const_value_known_p): Return false if
20713 decl is volatile.
20714
20715 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
20716
20717 PR bootstrap/47215
20718 * config/i386/i386.c (ix86_local_alignment): Handle
20719 case for va_list_type_node is nil.
20720 (ix86_canonical_va_list_type): Likewise.
20721
20722 2011-01-21 Alan Modra <amodra@gmail.com>
20723
20724 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
20725 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
20726
20727 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20728
20729 * config/arm/arm.md (define_attr type): Rename f_load
20730 and f_store to f_fpa_load and f_fpa_store. Update.
20731 (write_conflict): Deal with rename fallout.
20732 (*push_fp_multi): Likewise.
20733 * config/arm/fpa.md (f_load): Use f_fpa_load.
20734 (f_store): Use f_fpa_store.
20735 (*movsf_fpa): Likewise.
20736 (*movdf_fpa): Likewise.
20737 (*movxf_fpa): Likewise.
20738 (*thumb2_movsf_fpa): Likewise.
20739 (*thumb2_movdf_fpa): Likewise.
20740 (*thumb2_movxf_fpa): Likewise.
20741 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
20742 f_loadd and f_stored.
20743 (*thumb2_movdi_vfp): Likewise.
20744 (*thumb2_movsf_vfp): Fix attribute to f_loads.
20745 (*thumb2_movsi_vfp): Likewise.
20746 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
20747 Use f_loads instead of f_load.
20748 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
20749
20750 2011-01-20 Anatoly Sokolov <aesok@post.ru>
20751
20752 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20753 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
20754 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20755 (xtensa_mode_dependent_address_p): New function.
20756 (constantpool_address_p): Make static. Change return type to bool.
20757 Change argument type to const_rtx. Use CONST_INT_P predicate.
20758
20759 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
20760
20761 PR debug/46583
20762 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
20763
20764 2011-01-20 Jakub Jelinek <jakub@redhat.com>
20765
20766 PR debug/47283
20767 * cfgexpand.c (expand_debug_expr): Instead of generating
20768 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
20769 etc. handling.
20770
20771 2011-01-20 Richard Guenther <rguenther@suse.de>
20772
20773 PR middle-end/47370
20774 * tree-inline.c (remap_gimple_op_r): Recurse manually for
20775 the pointer operand of MEM_REFs.
20776
20777 2011-01-20 Jakub Jelinek <jakub@redhat.com>
20778
20779 PR tree-optimization/46130
20780 * ipa-split.c (consider_split): If return_bb contains non-virtual
20781 PHIs other than for retval or if split_function would not adjust it,
20782 refuse to split.
20783
20784 2011-01-20 Richard Guenther <rguenther@suse.de>
20785
20786 PR tree-optimization/47167
20787 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
20788 Revert previous change, only avoid enumeral type changes.
20789
20790 2011-01-19 Mike Stump <mikestump@comcast.net>
20791
20792 * doc/tm.texi.in (BRANCH_COST): Englishify.
20793 * doc/tm.texi (BRANCH_COST): Likewise.
20794
20795 2011-01-19 Dodji Seketeli <dodji@redhat.com>
20796
20797 PR c++/47291
20798 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
20799 (gen_scheduled_generic_parms_dies): New functions.
20800 (gen_struct_or_union_type_die): Schedule template parameters DIEs
20801 generation for the end of CU compilation.
20802 (dwarf2out_finish): Generate template parameters DIEs here.
20803
20804 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
20805
20806 PR debug/46240
20807 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
20808 debug bind stmt on merge edges.
20809
20810 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
20811
20812 PR debug/47079
20813 PR debug/46724
20814 * function.c (instantiate_expr): Instantiate incoming rtl of
20815 implicit arguments, and recurse on VALUE_EXPRs.
20816 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
20817 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
20818
20819 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
20820
20821 * c-parser.c (c_parser_for_statement): Initialize
20822 collection_expression.
20823
20824 2011-01-19 Joseph Myers <joseph@codesourcery.com>
20825
20826 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
20827
20828 2011-01-19 Joseph Myers <joseph@codesourcery.com>
20829
20830 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
20831 (LINK_SHLIB_SPEC): Don't use %(link_path).
20832 (SUBTARGET_EXTRA_SPECS): Remove link_path.
20833
20834 2011-01-19 Joseph Myers <joseph@codesourcery.com>
20835
20836 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
20837 (NO_SHARED_LIB_SUPPORT): Remove.
20838 (LINK_SHLIB_SPEC): Remove one conditional definition.
20839
20840 2011-01-19 Joseph Myers <joseph@codesourcery.com>
20841
20842 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
20843 %{call_shared}.
20844 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
20845 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
20846 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
20847 %{call_shared} and conditionals on these options not being passed.
20848 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
20849 %{call_shared}.
20850
20851 2011-01-19 Jakub Jelinek <jakub@redhat.com>
20852
20853 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
20854 simplify.
20855
20856 * ipa-split.c: Spelling fixes.
20857
20858 2011-01-19 Richard Henderson <rth@redhat.com>
20859
20860 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
20861 (*mulsi3): Likewise.
20862
20863 * longlong.h [__mn10300__] (count_leading_zeros): New.
20864 [__mn10300__] (umul_ppmm, smul_ppmm): New.
20865 [__mn10300__] (add_ssaaaa, subddmmss): New.
20866 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
20867 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
20868
20869 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20870
20871 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
20872
20873 2011-01-19 Richard Henderson <rth@redhat.com>
20874
20875 * config/mn10300/mn10300.md (addsi3_flags): New.
20876 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
20877 (subsi3_flags, subc_internal, subdi3): New.
20878 (subdi3_internal, *subdi3_degenerate): New.
20879 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
20880
20881 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
20882 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
20883 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
20884 * config/mn10300/mn10300-protos.h: Update.
20885 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
20886 (return_ret): Likewise. Rename from return_internal_regs.
20887 (return_internal): Remove.
20888
20889 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
20890 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
20891 (mn10300_legitimate_constant_p): Likewise.
20892 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
20893 (mn10300_frame_size): New.
20894 (mn10300_expand_prologue): Use it.
20895 (mn10300_expand_epilogue): Likewise.
20896 (mn10300_initial_offset): Likewise.
20897 * config/mn10300/mn10300-protos.h: Update.
20898 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
20899 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
20900 (prologue, epilogue, return_internal): Tidy output code.
20901 (mn10300_store_multiple_operation, return): Likewise.
20902 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
20903 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
20904 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
20905 (load_pic, am33_load_pic): New.
20906 (mn10300_load_pic0, mn10300_load_pic1): New.
20907
20908 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
20909 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
20910 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
20911 (cc_flags_for_mode, cc_flags_for_code): New.
20912 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
20913 overflow flag is not valid. Validate that the flags we need
20914 for the comparison are valid.
20915 (mn10300_output_cmp): Remove.
20916 (mn10300_output_add): New.
20917 (mn10300_select_cc_mode): Use cc_flags_for_code.
20918 (mn10300_split_cbranch): New.
20919 (mn10300_match_ccmode): New.
20920 (mn10300_split_and_operand_count): New.
20921 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
20922 to the function.
20923 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
20924 (addsi3): ... here. Use mn10300_output_add.
20925 (*addsi3_flags): New.
20926 (*am33_subsi3, *mn10300_subsi3): Merge...
20927 (subsi3): ... here. Use attribute isa.
20928 (*subsi3_flags): New.
20929 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
20930 when possible.
20931 (*am33_andsi3, *mn10300_andsi3): Merge...
20932 (andsi3): ... here.
20933 (*andsi3_flags): New.
20934 (andsi3 splitters): New.
20935 (*am33_iorsi3, *mn10300_iorsi3): Merge...
20936 (iorsi3): ... here.
20937 (*iorsi3_flags): New.
20938 (*am33_xorsi3, *mn10300_xorsi3): Merge...
20939 (xorsi3): ... here.
20940 (*xorsi3_flags): New.
20941 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
20942 (one_cmplsi2): ... here.
20943 (*one_cmplsi2_flags): New.
20944 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
20945 instead of "dax" in constraints. Use mn10300_split_cbranch.
20946 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
20947 use matching constraints to eliminate a self-comparison.
20948 (*integer_conditional_branch): Rename from integer_conditional_branch.
20949 Use int_mode_flags to match CC_REG.
20950 (*cbranchsi4_btst, *btstsi): New.
20951 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
20952 mn10300_split_cbranch.
20953 (*am33_cmpsf): Rename from am33_cmpsf.
20954 (*float_conditional_branch): Rename from float_conditional_branch.
20955 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
20956 (zero_extendqisi2): ... here.
20957 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
20958 (zero_extendhisi2): ... here.
20959 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
20960 (extendqisi2): ... here.
20961 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
20962 (extendhisi2): ... here.
20963 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
20964 (ashlsi3): ... here.
20965 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
20966 (lshrsi3): ... here.
20967 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
20968 (ashrsi3): ... here.
20969 (consecutive add peephole): Remove.
20970 * config/mn10300/predicates.md (label_ref_operand): New.
20971 (int_mode_flags): New.
20972 (CCZN_comparison_operator): New.
20973
20974 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
20975 (throughput_42_latency_43): New reservation.
20976 (mulsidi3, umulsidi3): New expanders.
20977 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
20978 the MDR register to allocation; separately allocate the low and
20979 high parts of the DImode result.
20980 (umulsidi3_internal): Similarly.
20981 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
20982 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
20983 (udivsi3, umodsi3): Remove.
20984 (udivmodsi4, divmodsi4): New expanders.
20985 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
20986 (*divmodsi4): Simiarly.
20987 (ext_internal): New.
20988
20989 * config/mn10300/constraints.md ("z"): New constraint.
20990 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
20991 (FIXED_REGISTERS): Don't fix MDR.
20992 (CALL_USED_REGSITERS): Reformat nicely.
20993 (REG_ALLOC_ORDER): Add MDR.
20994 (enum regclass): Add MDR_REGS.
20995 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
20996 (IRA_COVER_CLASSES): Add MDR_REGS.
20997 (REGNO_REG_CLASS): Handle MDR_REG.
20998 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
20999 (mn10300_register_move_cost): Likewise.
21000 * config/mn10300/mn10300.md (MDR_REG): New.
21001 (*movsi_internal): Handle moves to/from MDR_REGS.
21002
21003 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
21004 POST_MODIFY.
21005 (mn10300_secondary_reload): Tidy combination reload classes.
21006 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
21007 addresses for AM33. Allow symbolic offsets for reg+imm.
21008 (mn10300_regno_in_class_p): New.
21009 (mn10300_legitimize_reload_address): New.
21010 * config/mn10300/mn10300.h (enum reg_class): Remove
21011 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
21012 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
21013 SP_OR_GENERAL_REGS.
21014 (REG_CLASS_NAMES): Update to match.
21015 (REG_CLASS_CONTENTS): Likewise.
21016 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
21017 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
21018 (REGNO_IN_RANGE_P): Remove.
21019 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
21020 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
21021 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
21022 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
21023 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
21024 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
21025 (REGNO_GENERAL_P): New.
21026 (HAVE_POST_MODIFY_DISP): New.
21027 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
21028 (LEGITIMIZE_RELOAD_ADDRESS): New.
21029 * config/mn10300/mn10300-protos.h: Update.
21030
21031 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
21032 DATA_REGS for AM33 stack-pointer destination.
21033 (mn10300_preferred_output_reload_class): Likewise.
21034 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
21035 into a form appropriate for ...
21036 (TARGET_SECONDARY_RELOAD): New.
21037 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
21038 * config/mn10300/mn10300-protos.h: Update.
21039 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
21040 reload_insi; use the "A" constraint for the scratch; handle AM33
21041 moves of sp to non-address registers.
21042
21043 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
21044 (*movqi_internal): ... here.
21045 (*am33_movhi, *mn10300_movhi): Merge into...
21046 (*movhi_internal): ... here.
21047 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
21048 as the source/destination of moves from/to SP.
21049 (movsf): Only allow for AM33-2.
21050 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
21051 any integer constant constraint. Only allow for AM33-2. Tidy
21052 all of the alternative outputs.
21053 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
21054 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
21055 for MN103.
21056 (udivsi3, umodsi3): New patterns for MN103 only.
21057
21058 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
21059
21060 * doc/tm.texi.in: Spell out that a lack of register class unions
21061 can lead to ICEs.
21062 * doc/tm.texi: Regenerate.
21063
21064 2011-01-19 Jakub Jelinek <jakub@redhat.com>
21065
21066 PR rtl-optimization/47337
21067 * dce.c (check_argument_store): New function.
21068 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
21069
21070 PR tree-optimization/47290
21071 * tree-eh.c (infinite_empty_loop_p): New function.
21072 (cleanup_empty_eh): Use it.
21073
21074 2011-01-18 Steve Ellcey <sje@cup.hp.com>
21075
21076 PR target/46997
21077 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
21078 (a64_expand_widen_sum): Ditto.
21079 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
21080 (vec_extract_evenodd_help): Ditto.
21081 (vec_extract_evenv4hi): Ditto.
21082 (vec_extract_oddv4hi): Ditto.
21083 (vec_extract_evenv2si): Ditto.
21084 (vec_extract_oddv2si): Ditto.
21085 (vec_extract_evenv2sf): Ditto.
21086 (vec_extract_oddv2sf): Ditto.
21087 (vec_pack_trunc_v4hi: Ditto.
21088 (vec_pack_trunc_v2si): Ditto.
21089 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
21090 (vec_interleave_highv8qi): Ditto.
21091 (mix1_r): Ditto.
21092 (vec_extract_oddv8qi): Ditto.
21093 (vec_interleave_lowv4hi): Ditto.
21094 (vec_interleave_highv4hi): Ditto.
21095 (vec_interleave_lowv2si): Ditto.
21096 (vec_interleave_highv2si): Ditto.
21097
21098 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21099
21100 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
21101 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
21102 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
21103 (pa_c_mode_for_suffix): New.
21104 (TARGET_EXPAND_BUILTIN): Define.
21105 (TARGET_C_MODE_FOR_SUFFIX): Define.
21106 (pa_builtins): Define.
21107 (pa_init_builtins): Register __float128 type and init new support
21108 builtins.
21109 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
21110 * config/pa/quadlib.c (_U_Qfcopysign): New.
21111
21112 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
21113
21114 PR middle-end/46894
21115 * explow.c (allocate_dynamic_stack_space): Do not assume more than
21116 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
21117 are defined.
21118
21119 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21120
21121 PR tree-optimization/47179
21122 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
21123 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
21124
21125 2011-01-18 Richard Guenther <rguenther@suse.de>
21126
21127 PR rtl-optimization/47216
21128 * emit-rtl.c: Include tree-flow.h.
21129 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
21130 of replicating it with different semantics.
21131 * Makefile.in (emit-rtl.o): Adjust.
21132
21133 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21134
21135 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
21136 (cortex_a9_dp): Handle neon types correctly.
21137
21138 2011-01-18 Jakub Jelinek <jakub@redhat.com>
21139
21140 PR rtl-optimization/47299
21141 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
21142 subtarget. Use normal multiplication if both operands are constants.
21143 * expmed.c (expand_widening_mult): Don't try to optimize constant
21144 multiplication if op0 has VOIDmode. Convert op1 constant to mode
21145 before using it.
21146
21147 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21148
21149 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
21150 spacing after 'e.g.', typos, comma, hyphenation.
21151
21152 2011-01-17 Richard Henderson <rth@redhat.com>
21153
21154 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
21155 (rx_restricted_mem_operand): New.
21156 (rx_shift_operand): Use register_operand.
21157 (rx_source_operand, rx_compare_operand): Likewise.
21158 * config/rx/rx.md (addsi3_flags): New expander.
21159 (adddi3): Rewrite as expander.
21160 (adc_internal, *adc_flags, adddi3_internal): New patterns.
21161 (subsi3_flags): New expander.
21162 (subdi3): Rewrite as expander.
21163 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
21164
21165 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
21166 (rx_init_builtins): Remove sat builtin.
21167 (rx_expand_builtin): Likewise.
21168 * config/rx/rx.md (ssaddsi3): New.
21169 (*sat): Rename from sat. Represent the CC_REG input.
21170
21171 * config/rx/predicates.md (rshift_operator): New.
21172 * config/rx/rx.c (rx_expand_insv): Remove.
21173 * config/rx/rx-protos.h: Update.
21174 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
21175 operand to the canonical position.
21176 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
21177 (*bitclr, *bitclr_in_memory): Similarly.
21178 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
21179 (insv): Retain the zero_extract in the expansion.
21180
21181 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
21182 (bswaphi2, bitinvert, revw): Likewise.
21183
21184 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
21185 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
21186 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
21187 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
21188 (bitset, bitset_in_memory): Likewise.
21189 (bitinvert, bitinvert_in_memory): Likewise.
21190 (bitclr, bitclr_in_memory): Likewise.
21191 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
21192 (rx_strend, rx_cmpstrn): Likewise.
21193 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
21194 (bitop peep2 patterns): Remove.
21195
21196 * config/rx/rx.c (rx_match_ccmode): New.
21197 * config/rx/rx-protos.h: Update.
21198 * config/rx/rx.md (abssi2): Clobber, don't set flags.
21199 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
21200 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
21201 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
21202 (fix_truncsfsi2, floatsisf2): Likewise.
21203 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
21204 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
21205 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
21206 (*subsi3_flags, *xorsi3_flags): New.
21207
21208 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
21209
21210 * config/rx/rx.c (rx_print_operand): Remove workaround for
21211 unsplit comparison operations.
21212
21213 * config/rx/rx.md (movsicc): Split after reload.
21214 (*movsicc): Merge *movsieq and *movsine via match_operator.
21215 (*stcc): New pattern.
21216
21217 * config/rx/rx.c (rx_float_compare_mode): Remove.
21218 * config/rx/rx.h (rx_float_compare_mode): Remove.
21219 * config/rx/rx.md (cstoresi4): Split after reload.
21220 (*sccc): New pattern.
21221
21222 * config/rx/predicates.md (label_ref_operand): New.
21223 (rx_z_comparison_operator): New.
21224 (rx_zs_comparison_operator): New.
21225 (rx_fp_comparison_operator): New.
21226 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
21227 Validate that the flags are set properly for the comparison.
21228 (rx_gen_cond_branch_template): Remove.
21229 (rx_cc_modes_compatible): Remove.
21230 (mode_from_flags): New.
21231 (flags_from_code): Rename from flags_needed_for_conditional.
21232 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
21233 (rx_select_cc_mode): Likewise.
21234 (rx_split_fp_compare): New.
21235 (rx_split_cbranch): New.
21236 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
21237 (*cbranchsi4): Use match_operator and rx_split_cbranch.
21238 (*cbranchsf4): Similarly.
21239 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
21240 match_operator and rx_split_cbranch.
21241 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
21242 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
21243 (*cmpsi): Rename from cmpsi.
21244 (*tstsi): Rename from tstsi.
21245 (*cmpsf): Rename from cmpsf; use CC_Fmode.
21246 (*conditional_branch): Rename from conditional_branch.
21247 (*reveresed_conditional_branch): Remove.
21248 (b<code>): Remove expander.
21249 * config/rx/rx-protos.h: Update.
21250
21251 * config/rx/rx.c (rx_compare_redundant): Remove.
21252 * config/rx/rx.md (cmpsi): Don't use it.
21253 * config/rx/rx-protos.h: Update.
21254
21255 * config/rx/rx-modes.def (CC_F): New mode.
21256 * config/rx/rx.c (rx_select_cc_mode): New.
21257 * config/rx/rx.h (SELECT_CC_MODE): Use it.
21258 * config/rx/rx-protos.h: Update.
21259
21260 2011-01-17 Richard Henderson <rth@redhat.com>
21261
21262 * except.c (dump_eh_tree): Fix stray ; after for statement.
21263
21264 2011-01-17 Richard Guenther <rguenther@suse.de>
21265
21266 PR tree-optimization/47313
21267 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
21268 handling before copying the body. Properly deal with
21269 by-reference result in SSA form.
21270
21271 2011-01-17 Ian Lance Taylor <iant@google.com>
21272
21273 PR target/47219
21274 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
21275 (struct_value_alias_set): Don't define.
21276 (sparc_option_override): Don't set sparc_sr_alias_set and
21277 struct_value_alias_set.
21278 (save_or_restore_regs): Use gen_frame_mem rather than calling
21279 set_mem_alias_set.
21280 (sparc_struct_value_rtx): Likewise.
21281
21282 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
21283
21284 PR target/47318
21285 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
21286 (_mm_maskstore_pd): Likewise.
21287 (_mm_maskload_ps): Likewise.
21288 (_mm_maskstore_ps): Likewise.
21289 (_mm256_maskload_pd): Change mask to __m256i.
21290 (_mm256_maskstore_pd): Likewise.
21291 (_mm256_maskload_ps): Likewise.
21292 (_mm256_maskstore_ps): Likewise.
21293
21294 * config/i386/i386-builtin-types.def: Updated.
21295 (ix86_expand_special_args_builtin): Likewise.
21296
21297 * config/i386/i386.c (bdesc_special_args): Update
21298 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
21299 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
21300 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
21301 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
21302
21303 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
21304 Use <avxpermvecmode> on mask register.
21305 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
21306
21307 2011-01-17 Olivier Hainque <hainque@adacore.com>
21308 Michael Haubenwallner <michael.haubenwallner@salomon.at>
21309 Eric Botcazou <ebotcazou@adacore.com>
21310
21311 PR target/46655
21312 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
21313 if <= USHRT_MAX in 32-bit mode.
21314
21315 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21316
21317 * doc/install.texi (Configuration, Specific): Wrap long
21318 lines in examples. Allow line wrapping in long options
21319 and URLs where beneficial for PDF output.
21320
21321 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
21322
21323 * config/mips/mips.c (mips_classify_symbol): Don't return
21324 SYMBOL_PC_RELATIVE for nonlocal labels.
21325
21326 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
21327
21328 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
21329
21330 2011-01-15 Jan Hubicka <jh@suse.cz>
21331
21332 PR tree-optimization/47276
21333 * ipa.c (function_and_variable_visibility): Do not try to mark alias
21334 declarations as needed.
21335
21336 2011-01-15 Martin Jambor <mjambor@suse.cz>
21337
21338 * common.opt (fdevirtualize): New flag.
21339 * doc/invoke.texi (Option Summary): Document it.
21340 * opts.c (default_options_table): Add devirtualize flag.
21341 * ipa-prop.c (detect_type_change): Return immediately if
21342 devirtualize flag is not set.
21343 (detect_type_change_ssa): Likewise.
21344 (compute_known_type_jump_func): Likewise.
21345 (ipa_analyze_virtual_call_uses): Likewise.
21346
21347 2011-01-14 Martin Jambor <mjambor@suse.cz>
21348
21349 PR tree-optimization/45934
21350 PR tree-optimization/46302
21351 * ipa-prop.c (type_change_info): New type.
21352 (stmt_may_be_vtbl_ptr_store): New function.
21353 (check_stmt_for_type_change): Likewise.
21354 (detect_type_change): Likewise.
21355 (detect_type_change_ssa): Likewise.
21356 (compute_complex_assign_jump_func): Check for dynamic type change.
21357 (compute_complex_ancestor_jump_func): Likewise.
21358 (compute_known_type_jump_func): Likewise.
21359 (compute_scalar_jump_functions): Likewise.
21360 (ipa_analyze_virtual_call_uses): Likewise.
21361 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
21362
21363 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21364
21365 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
21366 * config/i386/i386.opt (msse5): New Alias.
21367
21368 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21369
21370 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
21371 * config/sparc/linux64.h (CC1_SPEC): Likewise.
21372 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21373 * config/sparc/sparc.h (CC1_SPEC): Likewise.
21374
21375 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21376
21377 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
21378 -mcpu options.
21379 * config/sparc/linux64.h (CC1_SPEC): Likewise.
21380 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21381 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
21382 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
21383 Likewise.
21384 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
21385
21386 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21387
21388 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
21389
21390 2011-01-14 Mike Stump <mikestump@comcast.net>
21391
21392 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
21393 * config/fr30/fr30.md: Likweise
21394 (movsi_push): Likewise.
21395 (movsi_pop): Likewise.
21396 (enter_func): Likewise.
21397 * config/moxie/moxie.md (movsi_push): Likewise.
21398 (movsi_pop): Likewise.
21399
21400 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21401
21402 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
21403 %{no_archive} %{exact_version}.
21404 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
21405 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
21406 %{no_archive} %{exact_version}.
21407 * config/mips/openbsd.h (LINK_SPEC): Likewise.
21408 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
21409 * config/mips/vxworks.h: Likewise.
21410
21411 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21412
21413 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
21414
21415 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21416
21417 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
21418 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
21419
21420 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21421
21422 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
21423 -nodefaultlib.
21424
21425 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21426
21427 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
21428 for mcpu not cpu.
21429 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
21430 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
21431 not cpu.
21432 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
21433 Don't handle -shlib.
21434
21435 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21436
21437 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
21438 (CC1_SPEC): Don't handle -profile.
21439
21440 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21441
21442 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
21443 * config/mips/mips.h (CC1_SPEC): Likewise.
21444
21445 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21446
21447 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
21448 * config/mips/mips.h (CC1_SPEC): Likewise.
21449
21450 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21451
21452 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
21453 * config/m32r/linux.h (LINK_SPEC): Likewise.
21454 * config/mips/linux.h (LINK_SPEC): Likewise.
21455 * config/mips/linux64.h (LINK_SPEC): Likewise.
21456 * config/sparc/linux.h (LINK_SPEC): Likewise.
21457 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
21458 LINK_SPEC): Likewise.
21459 * config/xtensa/linux.h (LINK_SPEC): Likewise.
21460
21461 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21462
21463 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
21464 %{version:-v}.
21465 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
21466
21467 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21468
21469 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
21470 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
21471
21472 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21473
21474 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
21475
21476 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21477
21478 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
21479 supports -Bstatic/-Bdynamic.
21480 * configure: Regenerate.
21481
21482 2011-01-14 Jan Hubicka <jh@suse.cz>
21483 Jack Howarth <howarth@bromo.med.uc.edu>
21484
21485 PR target/46037
21486 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
21487 when checking debug_info_level. Test write_symbols instead of
21488 debug_hooks->var_location when setting flag_var_tracking_uninit.
21489
21490 2011-01-14 Richard Guenther <rguenther@suse.de>
21491
21492 PR tree-optimization/47179
21493 * target.def (ref_may_alias_errno): New target hook.
21494 * targhooks.h (default_ref_may_alias_errno): Declare.
21495 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
21496 (default_ref_may_alias_errno): New function.
21497 * target.h (struct ao_ref_s): Declare.
21498 * tree-ssa-alias.c: Include target.h.
21499 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
21500 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
21501 (targhooks.o): Likewise.
21502 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
21503 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
21504
21505 2011-01-14 Richard Guenther <rguenther@suse.de>
21506
21507 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
21508
21509 2011-01-14 Richard Guenther <rguenther@suse.de>
21510
21511 PR tree-optimization/47280
21512 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
21513 return CFG changes.
21514 (tree_ssa_forward_propagate_single_use_vars): Deal with
21515 CFG changes from associate_plusminus.
21516
21517 2011-01-14 Richard Guenther <rguenther@suse.de>
21518
21519 PR middle-end/47281
21520 Revert
21521 2011-01-11 Richard Guenther <rguenther@suse.de>
21522
21523 PR tree-optimization/46076
21524 * tree-ssa.c (useless_type_conversion_p): Conversions from
21525 unprototyped to empty argument list function types are useless.
21526
21527 2011-01-14 Richard Guenther <rguenther@suse.de>
21528
21529 PR tree-optimization/47286
21530 * tree-ssa-structalias.c (new_var_info): Register variables are global.
21531
21532 2011-01-14 Martin Jambor <mjambor@suse.cz>
21533
21534 PR middle-end/46823
21535 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
21536
21537 2011-01-13 Anatoly Sokolov <aesok@post.ru>
21538
21539 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
21540 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21541 * config/xtensa/xtensa.c (xtensa_libcall_value,
21542 xtensa_function_value_regno_p): New functions.
21543 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
21544
21545 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
21546
21547 PR c++/47213
21548 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
21549 PE specific hook.
21550 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
21551 New function prototype.
21552 * config/i386/winnt.c (i386_pe_assemble_visibility):
21553 Warn only if attribute was specified by user.
21554
21555 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
21556
21557 PR target/47251
21558 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
21559 floating point.
21560 (floatunsdidf2_fcfidu): Ditto.
21561
21562 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21563
21564 * config/s390/s390.c (print_operand_address): Replace 'error' with
21565 'output_operand_lossage'.
21566 (print_operand): Likewise.
21567
21568 2011-01-13 Jeff Law <law@redhat.com>
21569
21570 PR rtl-optimization/39077
21571 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
21572 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
21573 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
21574 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
21575 * gcse.c (prune_insertions_deletions): New function.
21576 (compute_pre_data): Use it.
21577
21578 2011-01-13 Dodji Seketeli <dodji@redhat.com>
21579
21580 PR debug/PR46973
21581 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
21582 static function.
21583 (prune_unused_types_mark): Use it.
21584
21585 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
21586
21587 PR rtl-optimization/45352
21588 * sel-sched.c: Update copyright years.
21589 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
21590 in the advancing loop when we have issued issue_rate insns.
21591
21592 2011-01-12 Richard Henderson <rth@redhat.com>
21593
21594 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
21595 (TARGET_MD_ASM_CLOBBERS): New.
21596
21597 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
21598 (TARGET_DELEGITIMIZE_ADDRESS): New.
21599
21600 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
21601 (clzsi2, *bsch): New patterns.
21602
21603 * config/mn10300/mn10300.md (INT): New mode iterator.
21604 (*mov<INT>_clr): New pattern, and peep2 to generate it.
21605
21606 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
21607 flag_split_wide_types.
21608
21609 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
21610 (mn10300_trampoline_init): Rewrite without a template, an immediate
21611 load and a direct branch.
21612 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
21613
21614 2011-01-12 Anatoly Sokolov <aesok@post.ru>
21615
21616 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21617 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
21618 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
21619 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
21620
21621 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
21622
21623 PR debug/47209
21624 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
21625 of type.
21626
21627 2011-01-12 Jan Hubicka <jh@suse.cz>
21628
21629 PR driver/47244
21630 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
21631 (PLUGIN_COND_CLOSE): New macro.
21632 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
21633
21634 2011-01-12 Richard Guenther <rguenther@suse.de>
21635
21636 PR lto/47259
21637 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
21638 register variables in a MEM_REF.
21639
21640 2011-01-12 Joseph Myers <joseph@codesourcery.com>
21641
21642 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
21643 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
21644 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
21645 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
21646 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
21647 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
21648 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
21649 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
21650 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
21651 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
21652 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
21653 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
21654 * config/gnu-user.h: New. Copied from linux.h.
21655 (LINUX_TARGET_STARTFILE_SPEC): Rename to
21656 GNU_USER_TARGET_STARTFILE_SPEC.
21657 (LINUX_TARGET_ENDFILE_SPEC): Rename to
21658 GNU_USER_TARGET_ENDFILE_SPEC.
21659 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
21660 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
21661 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
21662 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
21663 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
21664 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
21665 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
21666 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
21667 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
21668 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
21669 * config/arm/linux-eabi.h (CC1_SPEC): Use
21670 GNU_USER_TARGET_CC1_SPEC.
21671 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
21672 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
21673 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
21674 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
21675 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
21676 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
21677 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
21678 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
21679
21680 2011-01-12 Richard Guenther <rguenther@suse.de>
21681
21682 PR other/46946
21683 * doc/invoke.texi (ffast-math): Document it is turned on
21684 with -Ofast.
21685
21686 2011-01-12 Jan Hubicka <jh@suse.cz>
21687
21688 PR tree-optimization/47233
21689 * opts.c (common_handle_option): Disable ipa-reference with profile
21690 feedback.
21691
21692 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
21693
21694 * c-parser.c (c_parser_objc_at_property_declaration): Improved
21695 error message.
21696
21697 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
21698
21699 * c-parser.c (c_lex_one_token): Updated and reindented some
21700 comments. No changes in code.
21701
21702 2011-01-11 Ian Lance Taylor <iant@google.com>
21703
21704 * godump.c (go_output_var): Don't output the variable if there is
21705 already a type with the same name.
21706
21707 2011-01-11 Ian Lance Taylor <iant@google.com>
21708
21709 * godump.c (go_format_type): Don't generate float80.
21710
21711 2011-01-11 Richard Henderson <rth@redhat.com>
21712
21713 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
21714 declaration. Rewrite for both speed and size.
21715 (mn10300_address_cost_1): Remove.
21716 (mn10300_register_move_cost): New.
21717 (mn10300_memory_move_cost): New.
21718 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
21719 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
21720 extensions, shifts, BSWAP, CLZ.
21721 (mn10300_wide_const_load_uses_clr): Remove.
21722 (TARGET_REGISTER_MOVE_COST): New.
21723 (TARGET_MEMORY_MOVE_COST): New.
21724 * config/mn10300/mn10300-protos.h: Update.
21725 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
21726
21727 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
21728 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
21729 * config/mn10300/mn10300-protos.h: Update.
21730 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
21731 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
21732 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
21733 (*test_int_bitfield, *test_byte_bitfield): Remove.
21734 (*bit_test, *subreg_bit_test): Remove.
21735 * config/mn10300/predicates.md (const_8bit_operand): Remove.
21736
21737 * config/mn10300/constraints.md ("c"): Rename from "A".
21738 ("A", "D"): New constraint letters.
21739 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
21740 (fmssf4, fnmasf4, fnmssf4): Likewise.
21741
21742 * config/mn10300/mn10300.md (isa): New attribute.
21743 (enabled): New attribute.
21744
21745 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
21746 (abssf2, negsf2): Define only for hardware fp.
21747 (sqrtsf2): Reformat.
21748 (addsf3, subsf3, mulsf3): Merge expander and insn.
21749
21750 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
21751 (DEBUGGER_AUTO_OFFSET): Remove.
21752 (DEBUGGER_ARG_OFFSET): Remove.
21753
21754 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
21755 Emit register stores with the same offsets as the hardware.
21756 (mn10300_store_multiple_operation): Don't check that the register
21757 save offsets are monotonic.
21758 * config/mn10300/mn10300-protos.h: Update.
21759
21760 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
21761
21762 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
21763 in terms of the value on the stack, not the MDR register.
21764
21765 2011-01-11 Jan Hubicka <jh@suse.cz>
21766
21767 PR lto/45721
21768 PR lto/45375
21769 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
21770 (symbol_alias_set_destroy, symbol_alias_set_contains,
21771 propagate_aliases_backward): Declare.
21772 * lto-streamer-out.c (struct sets): New sturcture.
21773 (trivally_defined_alias): New function.
21774 (output_alias_pair_p): Rewrite.
21775 (output_unreferenced_globals): Fix output of alias pairs.
21776 (produce_symtab): Likewise.
21777 * ipa.c (function_and_variable_visibility): Set weak alias destination
21778 as needed in lto.
21779 * varasm.c (symbol_alias_set_t): Remove.
21780 (symbol_alias_set_destroy): Export.
21781 (propagate_aliases_forward, propagate_aliases_backward): New functions
21782 based on ...
21783 (compute_visible_aliases): ... this one; remove.
21784 (trivially_visible_alias): New
21785 (trivially_defined_alias): New.
21786 (remove_unreachable_alias_pairs): Rewrite.
21787 (finish_aliases_1): Reorganize code checking if alias is defined.
21788 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
21789 in LTO mode.
21790
21791 2011-01-11 Richard Guenther <rguenther@suse.de>
21792
21793 PR tree-optimization/46076
21794 * tree-ssa.c (useless_type_conversion_p): Conversions from
21795 unprototyped to empty argument list function types are useless.
21796
21797 2011-01-11 Richard Guenther <rguenther@suse.de>
21798
21799 PR middle-end/45235
21800 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
21801 volatile MEMs as MEM_READONLY_P.
21802
21803 2011-01-11 Richard Guenther <rguenther@suse.de>
21804
21805 PR tree-optimization/47239
21806 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
21807
21808 2011-01-11 Jeff Law <law@redhat.com>
21809
21810 PR tree-optimization/47086
21811 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
21812 IVs from statements that might throw.
21813
21814 2011-01-10 Jan Hubicka <jh@suse.cz>
21815
21816 PR lto/45375
21817 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
21818
21819 2011-01-10 Jan Hubicka <jh@suse.cz>
21820
21821 PR lto/45375
21822 * profile.c (read_profile_edge_counts): Ignore profile inconistency
21823 when correcting profile.
21824
21825 2011-01-10 Jan Hubicka <jh@suse.cz>
21826
21827 PR lto/46083
21828 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
21829 DECL_FINI_PRIORITY.
21830 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
21831 Restore DECL_FINI_PRIORITY.
21832
21833 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21834
21835 * doc/gimple.texi: Fix quoting of multi-word return values in
21836 @deftypefn statements. Ensure presence of return value. Wrap
21837 overlong @deftypefn lines.
21838 (is_gimple_operand, is_gimple_min_invariant_address): Remove
21839 descriptions of removed functions.
21840 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
21841 of multi-word return value in @deftypefn statement.
21842
21843 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21844
21845 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
21846 (Conditional Expressions, Logical Operators)
21847 (Statement and operand traversals): Do not indent smallexample
21848 code. Fix duplicate function argument in example.
21849
21850 2011-01-10 Jeff Law <law@redhat.com>
21851
21852 PR tree-optimization/47141
21853 * ipa-split.c (split_function): Handle case where we are
21854 returning a value and the return block has a virtual operand phi.
21855
21856 2011-01-10 Jan Hubicka <jh@suse.cz>
21857
21858 PR tree-optimization/47234
21859 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
21860 (pass_feedback_split_functions): Declare.
21861 * passes.c (init_optimization_passes): Add ipa-split as subpass of
21862 tree-profile.
21863 * ipa-split.c (gate_split_functions): Update comments; disable
21864 split-functions for profile_arc_flag and branch_probabilities.
21865 (gate_feedback_split_functions): New function.
21866 (execute_feedback_split_functions): New function.
21867 (pass_feedback_split_functions): New global var.
21868
21869 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
21870
21871 PR lto/46760
21872 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
21873 calling gimple_call_set_cannot_inline.
21874
21875 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
21876
21877 * config/darwin-sections.def: Remove unused section.
21878
21879 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
21880
21881 PR c++/47218
21882 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
21883
21884 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
21885
21886 PR objc/47232
21887 * c-parser.c (c_parser_declaration_or_fndef): Improved
21888 error message.
21889
21890 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
21891
21892 * config/i386/winnt.c (i386_pe_start_function): Make sure
21893 to switch back to function's section.
21894
21895 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
21896
21897 PR gcc/46902
21898 PR testsuite/46912
21899 * plugin.c: Move include of dlfcn.h from here...
21900 * system.h: ... to here.
21901
21902 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21903
21904 * doc/cpp.texi (C++ Named Operators): Fix markup for header
21905 file name.
21906 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
21907 two extra empty pages in PDF output.
21908
21909 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
21910
21911 PR objc/47078
21912 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
21913 for error recovery purposes behave as if it was not specified so
21914 that the default type is usd.
21915
21916 2011-01-07 Jan Hubicka <jh@suse.cz>
21917
21918 PR tree-optmization/46469
21919 * ipa.c (function_and_variable_visibility): Clear needed flags on
21920 nodes with external decls; handle weakrefs merging correctly.
21921
21922 2011-01-07 Joseph Myers <joseph@codesourcery.com>
21923
21924 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
21925 not false.
21926
21927 2011-01-07 Jan Hubicka <jh@suse.cz>
21928
21929 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
21930 and no longer claim that gold is required for linker plugin.
21931 * configure: Regenerate.
21932 * gcc.c (PLUGIN_COND): New macro.
21933 (LINK_COMMAND_SPEC): Use it.
21934 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
21935 * config.in (HAVE_LTO_PLUGIN): New.
21936 * configure.ac (--with-lto-plugin): New parameter; autodetect
21937 HAVE_LTO_PLUGIN.
21938
21939 2011-01-07 Jan Hubicka <jh@suse.cz>
21940
21941 PR tree-optimization/46367
21942 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
21943 when we can update original.
21944 (cgraph_mark_inline_edge): Sanity check.
21945 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
21946
21947 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21948
21949 * config/spu/spu.h (ASM_COMMENT_START): Define.
21950
21951 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
21952
21953 PR driver/42445
21954 * gcc.c (%>S): New.
21955 (SWITCH_KEEP_FOR_GCC): Likewise.
21956 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
21957 (do_spec_1): Handle "%>".
21958
21959 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
21960
21961 2011-01-07 Jakub Jelinek <jakub@redhat.com>
21962
21963 PR target/47201
21964 * config/i386/i386.c (ix86_delegitimize_address): If
21965 simplify_gen_subreg fails, return orig_x.
21966
21967 PR bootstrap/47187
21968 * value-prof.c (gimple_stringop_fixed_value): Handle
21969 lhs of the call properly.
21970
21971 2011-01-07 Jan Hubicka <jh@suse.cz>
21972
21973 PR lto/45375
21974 * lto-opt.c (lto_reissue_options): Set flag_shlib.
21975
21976 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
21977
21978 * target.def (function_switched_text_sections): New hook.
21979 * doc/tm.texi: Regenerated.
21980 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
21981 * final.c (default_function_switched_text_sections): New.
21982 (final_scan_insn): Call function_switched_text_sections when a
21983 mid-function section change occurs.
21984 * output.h (default_function_switched_text_sections): Declare.
21985 * config/darwin-protos.h (darwin_function_switched_text_sections):
21986 Likewise.
21987 * config/darwin.c (darwin_function_switched_text_sections): New.
21988 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
21989
21990 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
21991
21992 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
21993 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
21994 the secondary code fragment when outputting for DWARF == 2.
21995
21996 2011-01-07 Anatoly Sokolov <aesok@post.ru>
21997
21998 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21999 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
22000 Remove.
22001 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
22002 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22003
22004 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
22005
22006 PR debug/46704
22007 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
22008 when it is not empty.
22009
22010 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
22011
22012 Bobcat Enablement
22013 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
22014 (case ${target}): Add btver1.
22015 * config/i386/driver-i386.c (host_detect_local_cpu): Let
22016 -march=native recognize btver1 processors.
22017 * config/i386/i386-c.c (ix86_target_macros_internal): Add
22018 btver1 def_and_undef
22019 * config/i386/i386.c (struct processor_costs btver1_cost): New
22020 btver1 cost table.
22021 (m_BTVER1): New definition.
22022 (m_AMD_MULTIPLE): Includes m_BTVER1.
22023 (initial_ix86_tune_features): Add btver1 tune.
22024 (processor_target_table): Add btver1 entry.
22025 (static const char *const cpu_names): Add btver1 entry.
22026 (software_prefetching_beneficial_p): Add btver1.
22027 (ix86_option_override_internal): Add btver1 instruction sets.
22028 (ix86_issue_rate): Add btver1.
22029 (ix86_adjust_cost): Add btver1.
22030 * config/i386/i386.h (TARGET_BTVER1): New definition.
22031 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
22032 (enum processor_type): Add PROCESSOR_BTVER1.
22033 * config/i386/i386.md (define_attr "cpu"): Add btver1.
22034
22035 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22036
22037 PR target/43309
22038 * config/i386/i386.c (legitimize_tls_address)
22039 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
22040 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
22041 (tls_initial_exec_64_sun): New pattern.
22042
22043 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
22044
22045 * doc/invoke.texi (Overall Options): Improve wording and markup
22046 of the description of -wrapper.
22047
22048 2011-01-06 Joseph Myers <joseph@codesourcery.com>
22049
22050 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
22051 rdynamic, threads): New Driver options.
22052
22053 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22054
22055 PR target/38118
22056 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
22057 if coming from .tdata.
22058 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
22059
22060 2011-01-06 Jan Hubicka <jh@suse.cz>
22061
22062 PR lto/47188
22063 * collect2.c (main): Do not enable LTOmode when plugin is active.
22064
22065 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22066
22067 PR other/45915
22068 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
22069 --version output if supported.
22070 * configure: Regenerate.
22071
22072 2011-01-06 Joseph Myers <joseph@codesourcery.com>
22073
22074 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
22075 Driver options.
22076
22077 2011-01-06 Jakub Jelinek <jakub@redhat.com>
22078
22079 PR c/47150
22080 * c-convert.c (convert): When converting a complex expression
22081 other than COMPLEX_EXPR to a different complex type, ensure
22082 c_save_expr is called instead of save_expr, unless in_late_binary_op.
22083 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
22084 when converting COMPLEX_TYPE.
22085
22086 2011-01-06 Ira Rosen <irar@il.ibm.com>
22087
22088 PR tree-optimization/47139
22089 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
22090 only the last reduction value is used outside the loop. Update
22091 documentation.
22092
22093 2011-01-05 Joseph Myers <joseph@codesourcery.com>
22094
22095 * config/rtems.opt: New.
22096 * config.gcc (*-*-rtems*): Use rtems.opt.
22097
22098 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
22099
22100 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
22101 processors do not support 3DNow instructions.
22102
22103 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22104
22105 * config/spu/spu.c (spu_option_override): Set parameter
22106 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
22107
22108 2011-01-05 Jan Hubicka <jh@suse.cz>
22109
22110 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
22111 at the command line.
22112
22113 2011-01-05 Martin Jambor <mjambor@suse.cz>
22114
22115 PR lto/47162
22116 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
22117 deltas on streamed outgoing edges.
22118 (output_node_opt_summary): Output info for outgoing edges only when
22119 the node is in new parameter set.
22120 (output_cgraph_opt_summary): New parameter set, passed to the two
22121 aforementioned functions. Update its forward declaration and its
22122 callee too.
22123
22124 2011-01-05 Tom Tromey <tromey@redhat.com>
22125
22126 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
22127 operator to c_finish_omp_atomic.
22128 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
22129 (build_unary_op): Update.
22130 (build_modify_expr): Update.
22131 (build_asm_expr): Update.
22132
22133 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22134
22135 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
22136 newly inserted insns.
22137 (pad_bb): Likewise.
22138 (spu_emit_branch_hint): Likewise.
22139 (insert_hbrp_for_ilb_runout): Likewise.
22140 (spu_machine_dependent_reorg): Call df_finish_pass after
22141 schedule_insns returns.
22142
22143 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22144
22145 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
22146
22147 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
22148
22149 PR tree-optimization/47005
22150 * tree-sra.c (struct access): Add 'non_addressable' bit.
22151 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
22152 (decide_one_param_reduction): Return 0 if the parameter is passed by
22153 reference and one of the accesses in the group is non_addressable.
22154
22155 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
22156
22157 PR tree-optimization/47056
22158 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
22159 (mark_load): Likewise. Handle FUNCTION_DECL specially.
22160 (mark_store): Likewise. Pass STMT to ipa_record_reference.
22161
22162 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
22163
22164 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
22165 initializer. Skip view conversions from aggregate types.
22166
22167 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
22168
22169 PR bootstrap/47055
22170 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
22171
22172 2011-01-04 Philipp Thomas <pth@suse.de>
22173
22174 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
22175 obvious typo.
22176
22177 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22178
22179 * function.c (thread_prologue_and_epilogue_insns): Do not crash
22180 on empty epilogue sequences.
22181
22182 2011-01-04 Joseph Myers <joseph@codesourcery.com>
22183
22184 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
22185 non-static): New Driver options.
22186
22187 2011-01-04 Jie Zhang <jie@codesourcery.com>
22188
22189 PR driver/47137
22190 * gcc.c (default_compilers[]): Set combinable field to 0
22191 for all assembly languages.
22192
22193 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
22194
22195 * config/mips/loongson3a.md: New file.
22196 * config/mips/mips.md: Include loongson3a.md.
22197 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
22198 TUNE_LOONGSON_3A.
22199
22200 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
22201
22202 PR middle-end/47017
22203 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
22204 instead of convert_memory_address_addr_space on the base expression.
22205
22206 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22207
22208 * config/spu/spu.c (spu_option_override): Update error text
22209 for bad -march= / -mtune= values.
22210
22211 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22212
22213 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
22214 if branch-hint optimization will be performed.
22215
22216 2011-01-03 Jakub Jelinek <jakub@redhat.com>
22217
22218 PR tree-optimization/47148
22219 * ipa-split.c (split_function): Convert arguments to
22220 DECL_ARG_TYPE if possible.
22221
22222 PR tree-optimization/47155
22223 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
22224 when computing uns.
22225
22226 PR rtl-optimization/47157
22227 * combine.c (try_combine): If undobuf.other_insn becomes
22228 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
22229 and set *new_direct_jump_p too.
22230
22231 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
22232
22233 PR tree-optimization/47021
22234 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
22235
22236 2011-01-03 Jakub Jelinek <jakub@redhat.com>
22237
22238 * gcc.c (process_command): Update copyright notice dates.
22239 * gcov.c (print_version): Likewise.
22240 * gcov-dump.c (print_version): Likewise.
22241 * mips-tfile.c (main): Likewise.
22242 * mips-tdump.c (main): Likewise.
22243
22244 2011-01-03 Martin Jambor <mjambor@suse.cz>
22245
22246 PR tree-optimization/46801
22247 * tree-sra.c (type_internals_preclude_sra_p): Check whether
22248 aggregate fields start at byte boundary instead of the bit-field flag.
22249
22250 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
22251
22252 PR driver/47137
22253 * gcc.c (main): Revert revision 168407.
22254
22255 2011-01-03 Martin Jambor <mjambor@suse.cz>
22256
22257 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
22258
22259 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22260
22261 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
22262 vector optab to expand vector/scalar shift, update gimple to vector.
22263
22264 2011-01-03 Martin Jambor <mjambor@suse.cz>
22265
22266 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
22267 a thunk.
22268
22269 2011-01-03 Martin Jambor <mjambor@suse.cz>
22270
22271 PR tree-optimization/46984
22272 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
22273 HOST_WIDE_INT.
22274 (cgraph_create_indirect_edge): Fixed line length.
22275 (cgraph_indirect_call_info): Declare.
22276 (cgraph_make_edge_direct) Update declaration.
22277 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
22278 (cgraph_create_indirect_edge): Use it.
22279 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
22280 callees.
22281 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
22282 the new thunk_delta representation.
22283 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
22284 HOST_WIDE_INT.
22285 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
22286 (ipa_read_indirect_edge_info): Likewise.
22287 * lto-cgraph.c (output_edge_opt_summary): New function.
22288 (output_node_opt_summary): Call it on all outgoing edges.
22289 (input_edge_opt_summary): New function.
22290 (input_node_opt_summary): Call it on all outgoing edges.
22291
22292 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
22293
22294 PR driver/47137
22295 * gcc.c (main): Don't check have_o when settting combine_inputs.
22296
22297 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
22298
22299 * regrename.c: Add general comment describing the pass.
22300 (struct du_head): Remove 'length' field.
22301 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
22302 (regrename_optimize): Do not sort chains. Rework comments, add others.
22303 Force renaming to the preferred class (if any) in the first pass and do
22304 not consider registers that belong to it in the second pass.
22305 (create_new_chain): Do not set 'length' field.
22306 (scan_rtx_reg): Likewise.
22307
22308 2011-01-02 Jakub Jelinek <jakub@redhat.com>
22309
22310 PR tree-optimization/47140
22311 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
22312 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
22313 to bit_value_binop.
22314
22315 PR rtl-optimization/47028
22316 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
22317 parm_birth_insn instead of at the beginning of first bb.
22318
22319 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
22320
22321 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
22322 Remove the word "see" before "@pxref".
22323 * doc/rtl.texi: Remove the word "see" before "@pxref".
22324
22325 2011-01-01 Jan Hubicka <jh@suse.cz>
22326
22327 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
22328 memory.
22329
22330 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
22331
22332 PR target/38662
22333 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
22334
22335 \f
22336 Copyright (C) 2011 Free Software Foundation, Inc.
22337
22338 Copying and distribution of this file, with or without modification,
22339 are permitted in any medium without royalty provided the copyright
22340 notice and this notice are preserved.