1 2011-07-20 Michael Eager <eager@eagercon.com>
3 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
5 2011-07-20 Richard Henderson <rth@redhat.com>
7 * cfg.c (dump_bb_info): Dump basic_block->flags.
8 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
10 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
12 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
13 of DImode hard registers in index.
14 (ix86_legitimate_address_p): Allow subregs of base and index to span
15 more than a word. Assert that subregs of base and index satisfy
16 register_no_elim_operand predicates. Reject addresses where
17 base and index have different modes.
19 2011-07-20 Robert Millan <rmh@gnu.org>
21 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
23 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
26 removing now-unnecessary assignment.
28 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
31 memory address space to the type's address space.
33 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
37 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
38 and expand appropriately if there is a CONST_INT in operand2.
39 (usmulqihi3): New insn.
40 (*sumulqihi3): New insn.
41 (*osmulqihi3): New insn.
42 (*oumulqihi3): New insn.
43 (*muluqihi3.uconst): New insn_and_split.
44 (*muluqihi3.sconst): New insn_and_split.
45 (*mulsqihi3.sconst): New insn_and_split.
46 (*mulsqihi3.uconst): New insn_and_split.
47 (*mulsqihi3.oconst): New insn_and_split.
48 (*ashifthi3.signx.const): New insn_and_split.
49 (*ashifthi3.signx.const7): New insn_and_split.
50 (*ashifthi3.zerox.const): New insn_and_split.
51 (mulsqihi3): New insn.
52 (muluqihi3): New insn.
53 (muloqihi3): New insn.
54 * config/avr/predicates.md (const_2_to_7_operand): New.
55 (const_2_to_6_operand): New.
60 (register_or_s9_operand): New.
62 2011-07-20 Kai Tietz <ktietz@redhat.com>
64 * builtins.c (fold_builtin_expect): See through the cast
65 from truthvalue_type_node to long.
67 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
69 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
70 where we can use them from the standard and altivec instruction
71 sets, instead of always using the 3 operand VSX forms that require
72 the destination to overlap one of the inputs.
77 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
83 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
85 * genrecog.c (make_insn_sequence): Correct position numbering
86 when filtering out match_scratch and match_dup.
88 2011-07-20 Richard Guenther <rguenther@suse.de>
90 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
91 against already removed statements.
92 (forward_propagate_into_comparison): Remove dead defining stmts.
93 (forward_propagate_into_gimple_cond): Likewise.
94 (forward_propagate_into_cond): Simplify.
95 (ssa_forward_propagate_and_combine): Handle changed cfg from
96 forward_propagate_into_comparison.
97 * tree-ssa-phiopt.c (conditional_replacement): Use proper
98 locations for newly built statements.
100 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
102 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
104 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
106 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
107 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
109 2011-07-20 Richard Guenther <rguenther@suse.de>
112 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
113 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
114 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
116 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
118 * config/frv/frv.c (frv_register_move_cost): Define explicitly
119 costs for subclasses of GR_REGS.
121 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
124 * config/i386/predicates.md (no_seg_addres_operand): No more special.
125 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
126 of DImode hard registers in base.
127 (ix86_legitimate_address_p): Allow SImode and DImode base and index
130 2011-07-20 Richard Guenther <rguenther@suse.de>
132 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
133 (unify_nodes): Deal with that.
134 (solve_graph): Likewise.
136 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
138 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
139 canonicalize left operand from ZERO_EXTEND to AND.
141 2011-07-20 Anatoly Sokolov <aesok@post.ru>
143 * target.def (class_max_nregs): New hook.
144 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
145 * doc/tm.texi: Regenerate.
146 * targhooks.c (default_class_max_nregs): New function.
147 * targhooks.h (default_class_max_nregs): Declare.
148 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
149 x_ira_reg_class_min_nregs arrays to unsigned char.
150 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
151 hook instead of CLASS_MAX_NREGS macro.
152 * reginfo.c (restore_register_info): Ditto.
153 * ira-conflicts.c (process_regs_for_copy): Use
154 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
155 Change type rclass and aclass vars to reg_class_t.
156 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
157 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
159 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
160 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
162 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
163 * config/i386/i386.c (ix86_class_max_nregs): New function.
164 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
165 instead of CLASS_MAX_NREGS macro.
166 (TARGET_CLASS_MAX_NREGS): Define.
167 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
168 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
169 * config/avr/avr.c (class_max_nregs): Remove function.
170 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
171 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
172 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
173 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
174 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
175 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
176 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
177 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
178 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
179 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
180 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
181 * config/score/score.h (CLASS_MAX_NREGS): Remove.
182 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
183 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
184 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
186 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
188 * cif-code.def (OVERWRITABLE): Fix typo and move around.
189 (TARGET_OPTIMIZATION_MISMATCH): Delete.
190 (EH_PERSONALITY): Fix typo.
191 (NON_CALL_EXCEPTIONS): Fix message.
192 (OPTIMIZATION_MISMATCH): Adjust message.
193 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
195 2011-07-19 Ian Lance Taylor <iant@google.com>
197 * doc/install.texi (Configuration): Document
198 --enable-build-poststage1-with-cxx.
200 2011-07-19 Robert Millan <rmh@gnu.org>
202 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
203 (GLIBC_DYNAMIC_LINKER): Remove.
205 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
206 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
207 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
208 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
209 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
210 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
212 * config/mips/linux.h: Remove everything except for ...
213 (GLIBC_DYNAMIC_LINKER): ... this macro.
215 * config/mips/linux64.h: Remove everything except for ...
216 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
217 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
218 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
219 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
220 (GNU_USER_LINK_EMULATIONN32): New macros.
222 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
225 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
227 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
228 Add offset_known_p and size_known_p fields.
229 (MEM_OFFSET_KNOWN_P): Update accordingly.
230 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
231 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
232 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
233 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
234 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
235 (init_emit_regs): Likewise.
237 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
239 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
240 (MEM_OFFSET): Change from returning an rtx to returning a
242 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
243 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
244 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
245 (clear_mem_offset): Declare.
246 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
247 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
248 MEM_OFFSET to get a HOST_WIDE_INT offset.
249 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
250 (adjust_offset_for_component_ref): Take a bool "known_p"
251 parameter and a HOST_WIDE_INT "offset" parameter.
252 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
253 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
254 than an rtx. Use clear_mem_offset to clear the offset.
255 * cfgcleanup.c (merge_memattrs): Likewise.
256 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
257 * function.c (assign_parm_find_stack_rtl): Likewise.
258 (assign_parm_setup_stack): Likewise.
259 * print-rtl.c (print_rtx): Likewise.
260 * reload.c (find_reloads_subreg_address): Likewise.
261 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
262 * var-tracking.c (INT_MEM_OFFSET): Likewise.
263 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
264 (get_mem_align_offset): Likewise.
265 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
266 (clear_mem_offset): New function.
267 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
268 offset rather than an rtx. Assume both the expressio and offset
270 (r10k_needs_protection_p_1): Update accordingly, checking the
271 expression and offset availability here instead.
273 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
275 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
276 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
277 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
278 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
279 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
280 (clear_mem_size): Declare.
281 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
282 (clear_mem_size): New function.
283 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
284 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
285 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
286 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
288 (nonoverlapping_memrefs_p): Likewise.
289 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
290 (expand_builtin_init_trampoline): Likewise.
291 * calls.c (compute_argument_addresses): Likewise.
292 * cfgcleanup.c (merge_memattrs): Likewise.
293 * dce.c (find_call_stack_args): Likewise.
294 * dse.c (record_store, scan_insn): Likewise.
295 * dwarf2out.c (dw_sra_loc_expr): Likewise.
296 * expr.c (emit_block_move_hints): Likewise.
297 * function.c (assign_parm_find_stack_rtl): Likewise.
298 * print-rtl.c (print_rtx): Likewise.
299 * reload.c (find_reloads_subreg_address): Likewise.
300 * rtlanal.c (may_trap_p_1): Likewise.
301 * var-tracking.c (track_expr_p): Likewise.
302 * varasm.c (assemble_trampoline_template): Likewise.
303 * config/arm/arm.c (arm_print_operand): Likewise.
304 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
305 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
306 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
307 (expand_constant_setmem_prologue): Likewise.
308 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
309 * config/rs6000/rs6000.c (expand_block_move): Likewise.
310 (adjacent_mem_locations): Likewise.
311 * config/s390/s390.c (s390_expand_setmem): Likewise.
312 (s390_expand_insv): Likewise.
313 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
314 (*extendqi<mode>2_short_displ): Likewise.
315 * config/sh/sh.c (expand_block_move): Likewise.
316 * config/sh/sh.md (extv, extzv): Likewise.
318 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
320 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
321 (mem_attrs_htab_eq): ...here.
322 (find_mem_attrs): Replace with...
323 (set_mem_attrs): ...this function. Take a mem_attrs structure
324 rather than individual fields.
325 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
326 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
327 (set_mem_size, change_address, adjust_address_1, offset_address)
328 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
331 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
333 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
334 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
335 Provide a dummy definition of MEM_ADDR_SPACE for generators.
336 (target_rtl): Add x_mode_mem_attrs.
337 (mode_mem_attrs): New macro.
338 (get_mem_attrs): New function.
339 * emit-rtl.c (get_mem_attrs): Rename to...
340 (find_mem_attrs): ...this.
341 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
342 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
343 (set_mem_size, change_address, adjust_address_1, offset_address)
344 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
346 (init_emit_regs): Initialize mode_mem_attrs.
348 2011-07-19 Richard Guenther <rguenther@suse.de>
350 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
351 TRUTH_*_EXPR handling.
352 * tree-ssa-operands.c (get_expr_operands): Likewise.
353 * tree-ssa-pre.c (fully_constant_expression): Likewise.
354 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
356 (is_and_or_or): Likewise.
357 (is_norm_cond_subset_of): Likewise.
359 2011-07-19 Richard Guenther <rguenther@suse.de>
361 * tree.h (fold_build_pointer_plus_loc): New helper function.
362 (fold_build_pointer_plus_hwi_loc): Likewise.
363 (fold_build_pointer_plus): Define.
364 (fold_build_pointer_plus_hwi): Likewise.
365 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
366 (fold_builtin_memory_op): Likewise.
367 (fold_builtin_stpcpy): Likewise.
368 (fold_builtin_memchr): Likewise.
369 (fold_builtin_strstr): Likewise.
370 (fold_builtin_strchr): Likewise.
371 (fold_builtin_strrchr): Likewise.
372 (fold_builtin_strpbrk): Likewise.
373 (fold_builtin_strcat): Likewise.
374 (expand_builtin_memory_chk): Likewise.
375 (fold_builtin_memory_chk): Likewise.
376 * c-typeck.c (build_unary_op): Likewise.
377 * cgraphunit.c (thunk_adjust): Likewise.
378 * fold-const.c (build_range_check): Likewise.
379 (fold_binary_loc): Likewise.
380 * omp-low.c (extract_omp_for_data): Likewise.
381 (expand_omp_for_generic): Likewise.
382 (expand_omp_for_static_nochunk): Likewise.
383 (expand_omp_for_static_chunk): Likewise.
384 * tree-affine.c (add_elt_to_tree): Likewise.
385 * tree-data-ref.c (split_constant_offset_1): Likewise.
386 * tree-loop-distribution.c (generate_memset_zero): Likewise.
387 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
388 * tree-predcom.c (ref_at_iteration): Likewise.
389 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
390 (add_to_parts): Likewise.
391 (create_mem_ref): Likewise.
392 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
393 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
394 (number_of_iterations_le): Likewise.
395 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
396 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
397 (vect_create_addr_base_for_vector_ref): Likewise.
398 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
399 (vect_create_cond_for_alias_checks): Likewise.
400 * tree-vrp.c (extract_range_from_assert): Likewise.
401 * config/alpha/alpha.c (alpha_va_start): Likewise.
402 (alpha_gimplify_va_arg_1): Likewise.
403 * config/i386/i386.c (ix86_va_start): Likewise.
404 (ix86_gimplify_va_arg): Likewise.
405 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
406 * config/mep/mep.c (mep_expand_va_start): Likewise.
407 (mep_gimplify_va_arg_expr): Likewise.
408 * config/mips/mips.c (mips_va_start): Likewise.
409 (mips_gimplify_va_arg_expr): Likewise.
410 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
411 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
412 (rs6000_gimplify_va_arg): Likewise.
413 * config/s390/s390.c (s390_va_start): Likewise.
414 (s390_gimplify_va_arg): Likewise.
415 * config/sh/sh.c (sh_va_start): Likewise.
416 (sh_gimplify_va_arg_expr): Likewise.
417 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
418 * config/spu/spu.c (spu_va_start): Likewise.
419 (spu_gimplify_va_arg_expr): Likewise.
420 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
422 (xstormy16_gimplify_va_arg_expr): Likewise.
423 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
424 (xtensa_gimplify_va_arg_expr): Likewise.
426 2011-07-19 Richard Guenther <rguenther@suse.de>
428 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
429 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
433 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
434 result of BIT_*_EXPR to bitfield precision.
436 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
438 PR tree-optimization/49742
439 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
440 as a potential write.
442 2011-07-19 Richard Guenther <rguenther@suse.de>
444 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
445 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
446 (forward_propagate_comparison): Simplify, remove obsolete code.
448 2011-07-19 Richard Guenther <rguenther@suse.de>
450 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
451 BIT_XOR_EXPR, same as the RTL expander does.
452 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
453 (verify_gimple_assign_unary): Likewise.
454 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
455 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
456 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
458 2011-07-19 Jakub Jelinek <jakub@redhat.com>
460 PR tree-optimization/49768
461 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
462 if offset is smaller than bitoffset, but offset+size is bigger
465 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
467 PR tree-optimization/49771
468 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
469 zero step, set segment length to the size of the data-ref's type.
471 2011-07-18 Martin Jambor <mjambor@suse.cz>
473 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
475 (ipcp_values_pool): Declare.
476 (ipcp_sources_pool): Likewise.
477 (ipcp_lattice): Changed to forward declaration.
478 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
480 (ipa_node_params): New fields descriptors, lattices, known_vals,
481 clone_for_all_contexts and node dead, removed fields params and
483 (ipa_set_param_count): Removed.
484 (ipa_get_param_count): Made to work with descriptors vector.
485 (ipa_get_param): Updated.
486 (ipa_param_cannot_devirtualize_p): Removed.
487 (ipa_param_types_vec_empty): Likewise.
488 (ipa_set_param_used): New function.
489 (ipa_get_param_used): Updated to use descriptors vector.
490 (ipa_func_list): Removed.
491 (ipa_init_func_list): Removed declaration.
492 (ipa_push_func_to_list_1): Likewise.
493 (ipa_pop_func_from_list): Likewise.
494 (ipa_push_func_to_list): Removed.
495 (ipa_lattice_from_jfunc): Remove declaration.
496 (ipa_get_jf_pass_through_result): Declare.
497 (ipa_get_jf_ancestor_result): Likewise.
498 (ipa_value_from_jfunc): Likewise.
499 (ipa_get_lattice): Update.
500 (ipa_lat_is_single_const): New function.
501 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
502 (ipa_init_func_list): Likewise.
503 (ipa_pop_func_from_list): Likewise.
504 (ipa_get_param_decl_index): Fix coding style.
505 (count_formal_params): Removed.
506 (count_formal_params_1): Renamed to count_formal_params.
507 (ipa_populate_param_decls): Update to use descriptors vector.
508 (ipa_initialize_node_params): Likewise.
509 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
510 (ipa_analyze_params_uses): Likewise.
511 (ipa_free_node_params_substructures): Likewise and free also lattices
513 (duplicate_array): Removed.
514 (ipa_edge_duplication_hook): Add the new edge to the list of edge
516 (ipa_node_duplication_hook): Update to use new lattices.
517 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
518 (ipa_free_all_structures_after_iinln): Likewise.
519 (ipa_write_node_info): Update to use new lattices.
520 (ipa_read_node_info): Likewise.
521 (ipa_get_jf_pass_through_result): New function.
522 (ipa_get_jf_ancestor_result): Likewise.
523 (ipa_value_from_jfunc): Likewise.
524 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
525 * ipa-cp.c: Reimplemented.
526 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
527 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
528 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
529 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
530 * doc/invoke.texi (devirt-type-list-size): Removed description.
531 (ipa-cp-value-list-size): Added description.
533 2011-07-18 Richard Henderson <rth@redhat.com>
535 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
536 before calling create_basic_block.
538 2011-07-18 Jakub Jelinek <jakub@redhat.com>
541 * tree.c (build_common_builtin_nodes): Register
542 __builtin_return_address, __cyg_profile_func_enter
543 and __cyg_profile_func_exit.
545 2011-07-18 Richard Henderson <rth@redhat.com>
547 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
548 (add_labels_and_missing_jumps): ... here.
549 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
551 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
554 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
555 of DImode hard registers in PLUS address chains.
557 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
560 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
561 (alpha*-*-freebsd*): Likewise.
562 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
563 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
564 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
565 crtprec80.o, crtfastmath.o to extra_parts for all targets.
566 (ia64*-*-elf*): Remove extra_parts.
567 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
568 (sparc64-*-linux*): Likewise.
569 (sparc64-*-freebsd*): Likewise.
572 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
573 (ia64*-*-linux*): Likewise.
574 (mips64*-*-linux*): Likewise.
575 (mips*-*-linux*): Likewise.
577 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
579 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
581 2011-07-18 Richard Guenther <rguenther@suse.de>
583 * gimplify.c (gimplify_expr): Use input_location, not saved_location
584 when building new trees.
586 2011-07-18 Richard Guenther <rguenther@suse.de>
588 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
589 expansion result to bitfield precision if required.
591 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
593 * config.gcc (i[3456x]86-*-netware*): Remove.
595 * gthr-nks.h: Remove.
596 * configure.ac (enable_threads): Remove nks.
597 * configure: Regenerate.
599 * config/i386/i386.c (ix86_encode_section_info): Remove netware
601 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
602 <netware.h> reference.
604 * config/i386/netware-libgcc.c,
605 gcc/config/i386/netware-libgcc.def,
606 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
607 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
608 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
609 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
611 * doc/extend.texi (Function Attributes,
612 callee_pop_aggregate_return): Remove i?86-netware reference.
613 * doc/install.texi (Configuration, --enable-threads): Remove nks.
615 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
619 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
621 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
624 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
627 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
629 2011-07-16 Matthias Klose <doko@ubuntu.com>
631 * doc/install.texi: Document --enable-static-libjava.
633 2011-07-15 Richard Henderson <rth@redhat.com>
635 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
636 Replace all three arguments by returning a VEC of edges.
637 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
639 (fix_edges_for_rarely_executed_code): Merge ...
640 (rest_of_handle_partition_blocks): ... into...
641 (partition_hot_cold_basic_blocks): ... here. Return todo items if
642 any work was performed.
643 (pass_partition_blocks): Clear todo_flags_finish.
645 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
646 Jakub Jelinek <jakub@redhat.com>
647 Jonathan Wakely <jwakely.gcc@gmail.com>
650 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
651 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
653 2011-07-15 Jason Merrill <jason@redhat.com>
656 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
657 rather than --tool_opts.
659 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
661 * doc/plugins.texi (Building GCC plugins): gengtype needs its
662 corresponding gtype.state.
664 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
667 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
669 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
672 * doc/md.texi (Standard Names): Document window_save.
673 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
674 expand_debug_expr and expand_debug_source_expr. If the target has
675 a window_save instruction, adjust the ENTRY_VALUE_EXP.
676 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
677 SSA_NAME_VAR is a parameter.
678 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
679 * var-tracking.c (parm_reg_t): New type and associated vector type.
680 (windowed_parm_regs): New variable.
681 (adjust_insn): If the target has a window_save instruction and this
682 is the instruction, make its effect on parameter registers explicit.
683 (next_non_note_insn_var_location): New function.
684 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
685 (vt_add_function_parameter): If the target has a window_save insn,
686 adjust the incoming RTL and record that in windowed_parm_regs.
687 (vt_finalize): Free windowed_parm_regs.
689 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
691 * doc/invoke.texi (C6X Options): New section.
692 * doc/md.texi (TI C6X family): New section.
693 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
695 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
696 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
697 Provide C6X definitions.
698 * config/c6x/c6x.md: New file.
699 * config/c6x/constraints.md: New file.
700 * config/c6x/predicates.md: New file.
701 * config/c6x/c6x-sched.md.in: New file.
702 * config/c6x/c6x-sched.md: New file.
703 * config/c6x/gensched.sh: New file.
704 * config/c6x/c6x-mult.md.in: New file.
705 * config/c6x/genmult.sh: New file.
706 * config/c6x/c6x-mult.md: New file.
707 * config/c6x/sync.md: New file.
708 * config/c6x/c6x-protos.h: New file.
709 * config/c6x/sfp-machine.h: New file.
710 * config/c6x/c6x.c: New file.
711 * config/c6x/c6x.h: New file.
712 * config/c6x/crti.s: New file.
713 * config/c6x/crtn.s: New file.
714 * config/c6x/lib1funcs.asm: New file.
715 * config/c6x/c6x-modes.def: New file.
716 * config/c6x/genopt.sh: New file.
717 * config/c6x/c6x.opt: New file.
718 * config/c6x/c6x-tables.opt: New file.
719 * config/c6x/c6x-opts.h: New file.
720 * config/c6x/c6x-isas.def: New file.
721 * config/c6x/elf.h: New file.
722 * config/c6x/elf-common.h: New file.
723 * config/c6x/uclinux-elf.h: New file.
724 * config/c6x/t-c6x: New file.
725 * config/c6x/t-c6x-elf: New file.
726 * config/c6x/t-c6x-uclinux: New file.
727 * config/c6x/t-c6x-softfp: New file.
728 * config/c6x/gtd.c: New file.
729 * config/c6x/gtf.c: New file.
730 * config/c6x/ltd.c: New file.
731 * config/c6x/ltf.c: New file.
732 * config/c6x/ged.c: New file.
733 * config/c6x/gef.c: New file.
734 * config/c6x/led.c: New file.
735 * config/c6x/lef.c: New file.
736 * config/c6x/eqd.c: New file.
737 * config/c6x/eqf.c: New file.
738 * config/c6x/libgcc-c6xeabi.ver: New file.
741 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
742 PR rtl-optimization/11320
743 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
744 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
745 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
746 current_sched_info->compute_jump_reg_dependencies. Record which
747 registers are used and which registers are set by the jump.
748 Clear deps->reg_conditional_sets after a barrier.
749 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
750 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
751 (init_deps): Initialize reg_conditional_sets.
752 (free_deps): Clear reg_conditional_sets.
753 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
754 Mark registers live on entry of the fallthrough block and conditionally
755 set as set by the jump. Mark registers live on entry of non-fallthrough
756 blocks as used by the jump.
757 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
758 Mark new parameters as unused.
760 2011-07-14 Andrew Pinski <pinskia@gmail.com>
763 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
764 Use fold_build2_loc instead of build2.
765 Use the correct type for the new tree.
767 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
769 PR rtl-optimization/11320
770 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
771 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
773 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
776 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
778 (*rotw<mode>): Use const_int_operand for operand2.
779 Use match_scatch for operand3.
781 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
783 2011-07-14 Richard Guenther <rguenther@suse.de>
785 PR tree-optimization/49651
786 * tree-ssa-structalias.c (get_constraint_for_1): Properly
787 handle dereferences with subvariables.
789 2011-07-14 Richard Guenther <rguenther@suse.de>
791 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
792 (fold_stmt_1): Do it here directly on gimple and as a first thing.
794 2011-07-14 Richard Guenther <rguenther@suse.de>
796 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
797 not bool_var when folding bool_var != 1 or bool_var == 0.
799 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
801 * haifa-sched.c (schedule_insns): Remove outdated comment.
802 (schedule_block): When computing a known value for TODO_SPEC,
803 just set it rather than using logical operations.
804 (try_ready): Likewise. Use a local variable rather than a
805 pointer to TODO_SPEC. Reorder an if statement to move the
806 easy case to the then block.
807 * sched-deps.c (dep_spec_p): New static function.
808 (update_dep): Use it to decide whether to call
809 change_spec_dep_to_hard.
810 (get_back_and_forw_lists): Use it.
811 (sd_resolve_dep): Likewise.
812 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
813 (haifa_note_mem_dep): Likewise.
814 (check_dep): Likewise.
815 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
816 (sched_free_deps): Free in two passes.
818 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
821 * expr.c (all_zeros_p): Undo bogus part of last change.
823 2011-07-14 Matthias Klose <doko@ubuntu.com>
825 * doc/extend.texi (optimize attribute): Fix typo.
827 2011-07-14 Richard Guenther <rguenther@suse.de>
829 * gimplify.c (gimplify_expr): Only do required conversions.
831 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
834 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
835 i.e. use default_elf_select_section.
836 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
837 (READONLY_DATA_SECTION_ASM_OP): Remove.
838 (TARGET_ASM_NAMED_SECTION): Move from here...
839 * config/avr/avr.c: ...to here.
840 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
841 (avr_asm_named_section): Make static.
843 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
846 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
847 and crtfastmath.o for Linux/x86.
849 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
851 * haifa-sched.c: Include "hashtab.h"
852 (sched_no_dce): New global variable.
853 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
854 SHADOW_P): New macros.
855 (last_clock_var, cycle_issued_insns): Move declarations.
856 (must_backtrack): New static variable.
857 (struct delay_pair): New structure.
858 (delay_htab, delay_htab_i2): New static variables.
859 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
860 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
862 (dep_cost_1): If delay pairs exist, try to look up the insns and
863 use the correct pair delay if we find them.
864 (rank-for_schedule): Tweak priority for insns that must be scheduled
865 soon to avoid backtracking.
866 (queue_insn): Detect conditions which force backtracking.
867 (ready_add): Likewise.
868 (struct sched_block_state): Add member shadows_only_p.
869 (struct haifa_save_data): New structure.
870 (backtrack_queue): New static variable.
871 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
872 unschedule_insns_until, restore_last_backtrack_point,
873 free_topmost_backtrack_point, free_backtrack_queue,
874 estimate_insn_tick, estimate_shadow_tick): New functions.
875 (prune_ready_list): New arg shadows_only_p. All callers changed.
876 If true, remove everything that isn't SHADOW_P. Look up delay
877 pairs and estimate ticks to avoid scheduling the first insn too early.
878 (verify_shadows): New function.
879 (schedule_block): Add machinery to enable backtracking.
880 (sched_init): Take sched_no_dce into account when setting
882 (free_delay_pairs): New function.
883 (init_h_i_d): Initialize INSN_EXACT_TICK.
884 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
885 * sched-deps.c (sd_unresolve_dep): New function.
886 * sched-int. (struct haifa_sched_info): New fields save_state
888 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
889 feeds_backtrack_insn and shadow_p.
890 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
891 (sched_no_dce): Declare variable.
892 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
893 sd_unresolve_dep): Declare functions.
894 * modulo-sched.c (sms_sched_info): Clear the two new fields.
895 * sched-rgn.c (rgn_const_sched_info): Likewise.
896 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
897 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
898 (ebb_sched_info): Add them for the two new fields.
899 (add_deps_for_risky_insns): Call add_delay_dependencies.
901 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
903 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
905 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
906 (rs6000_call_indirect_aix): Ditto.
907 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
908 (call_indirect_aix<ptrsize>_internal): Ditto.
909 (call_indirect_aix<ptrsize>_nor11): Ditto.
910 (call_indirect_aix<ptrsize>_internal2): Ditto.
911 (call_value_indirect_aix<ptrsize>): Ditto.
912 (call_value_indirect_aix<ptrsize>_internal): Ditto.
913 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
914 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
915 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
917 2011-07-13 Jason Merrill <jason@redhat.com>
919 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
921 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
923 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
924 * config/spu/spu.md ("clrsb<mode>2"): New expander.
926 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
928 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
929 * configure: Regenerate.
931 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
933 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
934 (asm_file_start): Remove.
935 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
936 free_bb_for_insn around code that modifies insns before
937 restarting df analysis.
939 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
942 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
943 (LINK_SPEC): ... here.
945 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
947 * haifa-sched.c (struct sched_block_state): New.
948 (schedule_block): Move some local variables into such a structure.
950 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
952 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
953 * config/i386/t-crtpc: Remove.
954 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
955 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
957 (x86_64-*-darwin*): Likewise.
958 (i[34567]86-*-linux*): Likewise.
959 (x86_64-*-linux*): Likewise.
961 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
962 Handle -mpc32, -mpc64, -mpc80.
964 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
966 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
967 * config/alpha/t-crtfm: Remove.
968 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
969 * config/i386/t-crtfm: Remove.
970 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
971 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
972 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
973 * config/sparc/t-crtfm: Remove.
975 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
976 (alpha*-*-freebsd*): Likewise.
977 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
978 (x86_64-*-darwin*): Likewise.
979 (i[34567]86-*-linux*): Likewise.
980 (x86_64-*-linux*): Likewise.
981 (x86_64-*-mingw*): Likewise.
982 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
983 (ia64*-*-freebsd*): Likewise.
984 (ia64*-*-linux*): Likewise.
985 (mips64*-*-linux*): Likewise.
986 (mips*-*-linux*): Likewise.
987 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
988 (sparc64-*-linux*): Likewise.
989 (sparc64-*-freebsd*): Likewise.
991 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
993 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
994 * config/darwin-crt3.c: Move to ../libgcc/config.
995 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
996 ($(T)crt3$(objext)): Remove.
997 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
998 ($(T)crt2$(objext)): Remove.
999 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
1000 (powerpc64-*-darwin*): Likewise.
1002 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
1004 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
1006 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
1007 (addsi_1_zext): This.
1009 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
1011 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
1012 * doc/tm.texi: Regenerate.
1013 * target.def (mergeable_rodata_prefix): New defhookpod.
1014 * varasm.c (mergeable_string_section, mergeable_constant_section):
1015 Use it. Allocate name with alloca.
1017 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
1019 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
1021 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
1023 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
1026 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
1028 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
1029 (count_type_elements): Delete.
1030 (complete_ctor_at_level_p): Declare.
1031 * expr.c (flexible_array_member_p): New function, split out from...
1032 (count_type_elements): ...here. Make static. Replace allow_flexarr
1033 parameter with for_ctor_p. When for_ctor_p is true, return the
1034 number of elements that should appear in the top-level constructor,
1035 otherwise return an estimate of the number of scalars.
1036 (categorize_ctor_elements): Replace p_must_clear with p_complete.
1037 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
1038 (complete_ctor_at_level_p): New function, borrowing union logic
1039 from old categorize_ctor_elements_1.
1040 (mostly_zeros_p): Return true if the constructor is not complete.
1041 (all_zeros_p): Update call to categorize_ctor_elements.
1042 * gimplify.c (gimplify_init_constructor): Update call to
1043 categorize_ctor_elements. Don't call count_type_elements.
1044 Unconditionally prevent clearing for variable-sized types,
1045 otherwise rely on categorize_ctor_elements to detect
1046 incomplete initializers.
1048 2011-07-13 Richard Guenther <rguenther@suse.de>
1050 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
1051 the final type is integral.
1053 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
1055 * sched-int.h (struct _dep): Add member cost.
1056 (DEP_COST, UNKNOWN_DEP_COST): New macros.
1057 * sched-deps.c (init_dep_1): Initialize DEP_COST.
1058 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
1059 (sched_change_pattern): Reset it for dependent insns.
1061 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1063 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
1064 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
1065 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
1066 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
1067 (CRT0_S, MCRT0_S): Remove.
1068 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
1071 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
1073 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1075 * cse.c (insert_with_costs): Put semi-colon after empty loop body
1077 * emit-rtl.c (push_to_sequence): Likewise.
1078 * haifa-sched.c (max_issue): Likewise.
1079 * matrix-reorg.c (add_allocation_site): Likewise.
1080 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1081 * reload.c (alternative_allows_const_pool_ref): Likewise.
1082 * sched-rgn.c (rgn_add_block): Likewise.
1083 (rgn_fix_recovery_cfg): Likewise.
1084 * tree.c (attribute_list_contained): Likewise.
1086 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
1088 * config/i386/i386.c: Tidy processor feature bitmasks.
1091 2011-07-12 Andrew Pinski <pinskia@gmail.com>
1094 * cprop.c (find_implicit_sets): Correct the condition.
1096 2011-07-12 Richard Henderson <rth@redhat.com>
1099 * dwarf2out.h (dwarf_frame_regnum): Remove.
1100 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
1101 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
1102 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
1103 (execute_dwarf2_frame): Initialize them.
1104 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
1105 users of the macros with the variables.
1106 (expand_builtin_dwarf_sp_column): Revert last change.
1107 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
1108 result of DWARF_FRAME_REGNUM into a local variable.
1110 2011-07-12 Richard Henderson <rth@redhat.com>
1113 * config/i386/i386.c (x86_output_mi_thunk): Use
1114 machopic_indirect_call_target instead of machopic_indirection_name
1117 2011-07-12 Laurent GUERBY <laurent@guerby.net>
1118 Eric Botcazou <ebotcazou@adacore.com>
1120 * prefix.h: Wrap up in extern "C" block.
1122 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
1124 AMD bdver2 Enablement
1125 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
1126 (case ${target}): Add bdver2.
1127 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1128 -march=native recognize bdver2 processors.
1129 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1130 bdver2 def_and_undef
1131 * config/i386/i386.c (struct processor_costs bdver2_cost): New
1133 (m_BDVER2): New definition.
1134 (m_AMD_MULTIPLE): Includes m_BDVER2.
1135 (initial_ix86_tune_features): Add bdver2 tuning.
1136 (processor_target_table): Add bdver2 entry.
1137 (static const char *const cpu_names): Add bdver2 entry.
1138 (ix86_option_override_internal): Add bdver2 instruction sets.
1139 (ix86_issue_rate): Add bdver2.
1140 (ix86_adjust_cost): Add bdver2.
1141 (has_dispatch): Add bdver2.
1142 * config/i386/i386.h (TARGET_BDVER2): New definition.
1143 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
1144 (enum processor_type): Add PROCESSOR_BDVER2.
1145 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
1146 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
1149 2011-07-12 Richard Henderson <rth@redhat.com>
1152 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
1153 destination address in memory on some paths.
1155 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
1157 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
1158 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
1159 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
1160 * function.c (locate_and_pad_parm): Take it into account.
1161 * target.def (function_arg_round_boundary): New hook.
1162 * targhooks.c (default_function_arg_round_boundary): New function.
1163 * targhooks.h (default_function_arg_round_boundary): Declare.
1164 * doc/tm.texi: Regenerate.
1166 2011-07-12 Richard Guenther <rguenther@suse.de>
1168 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
1169 Do not perform no-op changes.
1171 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
1173 * config/arm/predicates.md (neon_struct_operand): Make a normal
1175 (neon_struct_or_register_operand): New predicate.
1176 * config/arm/neon.md (movmisalign<mode>): Replace predicates
1177 with neon_struct_or_register_operand.
1178 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
1179 neon_struct_operand instead of memory_operand.
1181 2011-07-12 Martin Jambor <mjambor@suse.cz>
1183 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
1184 * cgraph.c (cgraph_get_node_or_alias): Removed.
1185 (change_decl_assembler_name): Changed all calls to
1186 cgraph_get_node_or_alias to a call to cgraph_get_node.
1187 (cgraph_make_decl_local): Likewise.
1188 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
1189 * varasm.c (default_binds_local_p_1): Likewise.
1190 (decl_binds_to_current_def_p): Likewise.
1192 2011-07-12 Jakub Jelinek <jakub@redhat.com>
1194 PR tree-optimization/49712
1195 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
1197 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
1199 * genautomata.c (add_arc): Return void. All callers changed.
1200 (make_automaton): Remove dead code.
1202 2011-07-11 Richard Henderson <rth@redhat.com>
1204 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
1205 (DW_FRAME_POINTER_REGNUM): New.
1206 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
1207 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
1209 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
1210 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
1211 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
1213 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
1214 * dwarf2out.h (dwarf_frame_regnum): New.
1215 (struct cfa_loc): Document the domain of the reg member.
1217 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
1219 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
1220 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
1222 2011-07-11 Jakub Jelinek <jakub@redhat.com>
1225 * dwarf2out.c (int_shift_loc_descriptor): New function.
1226 (int_loc_descriptor): If shorter, emit i as
1227 (i >> shift), shift, DW_OP_shl for suitable shift value.
1228 Similarly, try to optimize large negative values using
1229 DW_OP_neg of a positive value if shorter.
1230 (size_of_int_shift_loc_descriptor): New function.
1231 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
1233 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
1234 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
1235 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
1237 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
1238 addend as added DW_OP_plus if it is shorter.
1240 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1242 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
1243 (DTORS_SECTION_ASM_OP): Define.
1245 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1247 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
1248 * config/t-dfprules: Move to ../libgcc/config.
1249 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1250 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1251 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
1252 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
1254 (i[34567]86-*-cygwin*): Likewise.
1255 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
1256 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
1257 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
1258 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
1259 D64PBIT_FUNCS, D128PBIT_FUNCS.
1261 2011-07-11 Richard Guenther <rguenther@suse.de>
1263 * tree-vrp.c (simplify_conversion_using_ranges): Manually
1264 translate the source value-range through the conversion chain.
1266 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
1268 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
1270 2011-07-11 Arthur Loiret <aloiret@debian.org>
1272 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
1273 a bi-arch compiler defaulting to 31-bit. In this case:
1274 (tmake_file): Add s390/t-linux64.
1275 * doc/install.texi: Add s390-linux to the list of targets supporting
1276 --enable-targets=all.
1278 2011-07-11 Arthur Loiret <aloiret@debian.org>
1279 Matthias Klose <doko@debian.org>
1281 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
1282 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
1283 (tm_file): Add mips/linux64.h.
1284 (tmake_file): Add mips/t-linux64.
1285 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1286 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
1287 instead of hardcoded mabi=n32.
1288 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1289 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1292 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1294 * passes.c (init_optimization_passes): Add invariant motion pass
1295 after induction variable optimization.
1297 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
1300 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
1301 offsets 1..5 set cc0 in a usable way.
1303 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
1305 * tree.h (call_expr_arg): Remove.
1306 (call_expr_argp): Likewise.
1308 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
1310 * config/sparc/sparc.md (save_register_window_1): Rename to...
1311 (window_save): ...this.
1312 * config/sparc/sparc.c (emit_save_register_window): Rename to...
1313 (emit_window_save): ...this.
1314 (sparc_expand_prologue): Adjust to above renaming.
1316 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
1318 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
1321 2011-07-10 Richard Henderson <rth@redhat.com>
1323 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
1324 run final, instead of emitting text directly.
1326 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
1328 * config/i386/i386.c (ix86_option_override_internal): Turn on
1329 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
1330 small PIC models for TARGET_X32.
1332 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
1335 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
1339 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
1340 stray notes and debug insns by using prev_nonnote_nondebug_insn
1341 instead of PREV_INSN.
1343 2011-07-09 Richard Henderson <rth@redhat.com>
1345 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
1346 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
1347 * dwarf2out.c: ... here.
1348 (output_all_cfis): Remove.
1349 (dwarf2out_switch_text_section): Use output_cfis directly.
1350 (size_of_locs): Export.
1351 (output_loc_sequence, output_loc_sequence_raw): Export.
1352 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
1353 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
1354 output_cfa_loc_raw): Move to ...
1355 * dwarfcfi.c: ... here.
1356 * dwarf2out.h: Update decls.
1358 2011-07-09 Richard Henderson <rth@redhat.com>
1360 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
1361 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
1362 * dwarf2cfi.c: ... here.
1363 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
1364 (DWARF_ROUND, DWARF_CIE_ID): Remove.
1365 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
1366 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
1367 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
1369 2011-07-09 Richard Henderson <rth@redhat.com>
1371 * dwarf2cfi.c (cie_return_save): New.
1372 (queue_reg_save): Use compare_reg_or_pc.
1373 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
1374 (dwarf2out_frame_debug_expr): Likewise.
1375 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
1376 (initial_return_save): Likewise.
1377 (execute_dwarf2_frame): Save and restore initial return save from
1379 * config/mips/mips.c (mips_frame_set): Remove special case for
1380 DWARF_FRAME_RETURN_COLUMN.
1382 2011-07-09 Richard Henderson <rth@redhat.com>
1384 * dwarf2cfi.c (lookup_cfa): Remove.
1385 (execute_dwarf2_frame): Assert queues are empty on entry.
1386 Setup initial cfa directly, not via lookup_cfa.
1387 Don't clear args_size state here.
1389 2011-07-09 Richard Henderson <rth@redhat.com>
1391 * dwarf2cfi.c (add_cfi_vec): New.
1392 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
1393 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
1394 (execute_dwarf2_frame): Set add_cfi_vec.
1396 2011-07-09 Richard Henderson <rth@redhat.com>
1398 * defaults.h (ASM_COMMENT_START): Move here...
1399 * dwarf2asm.c: ... from here.
1400 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
1401 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
1402 * varasm.c: Likewise.
1404 2011-07-09 Richard Henderson <rth@redhat.com>
1407 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
1408 (create_cfi_notes): ... do it here instead.
1410 2011-07-09 Jakub Jelinek <jakub@redhat.com>
1413 * dwarf2out.c (size_of_int_loc_descriptor): New function.
1414 (address_of_int_loc_descriptor): Use it.
1415 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
1417 2011-07-09 Richard Henderson <rth@redhat.com>
1419 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
1420 (prologue, epilogue): New.
1421 (return, *rts): New.
1422 (blockage, setd, seti): New.
1423 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
1424 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
1425 (pdp11_saved_regno): New.
1426 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
1427 generate rtl instead of text.
1428 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
1429 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
1430 * config/pdp11/pdp11-protos.h: Update.
1432 2011-07-09 Richard Henderson <rth@redhat.com>
1434 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
1435 try to insert an rtl prologue here.
1436 (rs6000_output_function_epilogue): Similarly.
1437 * config/rs6000/rs6000.md (prologue): Emit a barrier to
1438 satisfy !TARGET_SCHED_PROLOG.
1439 (epilogue, sibcall_epilogue): Likewise.
1441 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
1443 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
1445 (IN_OR_GLOBAL_P): Likewise.
1447 2011-07-08 Jason Merrill <jason@redhat.com>
1450 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
1451 compound assignment.
1453 * cgraph.c (cgraph_add_to_same_comdat_group): New.
1454 * cgraph.h: Declare it.
1455 * ipa.c (function_and_variable_visibility): Make sure thunks
1456 have the right visibility.
1458 2011-07-08 Richard Henderson <rth@redhat.com>
1461 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
1462 any tablejump vector.
1465 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
1466 end of the prologue.
1468 2011-07-08 Jakub Jelinek <jakub@redhat.com>
1471 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
1472 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
1473 * config/rs6000/vector.md (vector_select_<mode>,
1474 vector_select_<mode>_uns): Change second operand of NE to
1475 CONST0_RTX (<MODE>mode) instead of const0_rtx.
1476 * config/rs6000/altivec.md (*altivec_vsel<mode>,
1477 *altivec_vsel<mode>_uns): Expect second operand of NE to be
1478 zero_constant of the corresponding vector mode.
1479 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
1482 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
1484 * graphite-dependences.c (build_alias_set_powerset): Remove
1485 continue from loop, add one more assert.
1487 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
1490 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
1491 In particular, allow 8-bit values in r28 and r29.
1492 (avr_hard_regno_scratch_ok): Disallow any register that might be
1493 part of the frame pointer.
1494 (avr_hard_regno_rename_ok): Same.
1495 (avr_legitimate_address_p): Don't allow SUBREGs.
1497 2011-07-08 Julian Brown <julian@codesourcery.com>
1499 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
1501 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
1502 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
1503 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
1504 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
1505 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
1506 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
1507 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
1508 registers in big-endian mode.
1510 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
1512 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
1513 in terms of another.
1514 (write_attr_value): Write a cast if necessary.
1516 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
1517 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
1518 (REG_WORDS_BIG_ENDIAN): Document.
1519 * doc/tm.texi: Regenerate.
1520 * reload.c (operands_match_p): Take it into account.
1521 (reload_adjust_reg_for_mode): Likewise.
1522 * rtlanal.c (subreg_get_info): Likewise.
1524 2011-07-08 Richard Guenther <rguenther@suse.de>
1526 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
1529 2011-07-08 Kai Tietz <ktietz@redhat.com>
1531 * fold-const.c (fold_truth_andor): Factored out truth_andor
1532 label from fold_binary as function.
1533 (fold_binary_loc): Replace truth_andor lable
1534 by function fold_truth_andor.
1536 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
1539 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
1540 check if address is stored in register. If so - give up.
1541 (check_sibcall_argument_overlap_1): Do not perform check of
1542 overlapping when it is call to address.
1544 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
1546 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
1549 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
1551 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
1552 GET_MODE_BITSIZE where appropriate.
1553 (widen_leading, expand_parity, expand_ctz, expand_ffs,
1554 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
1555 expand_float, expand_fix): Likewise.
1556 * expr.c (convert_move, convert_modes, expand_expr_real_2,
1557 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
1558 * stor-layout.c (get_mode_bounds): Likewise.
1559 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
1561 * convert.c (convert_to_integer): Likewise.
1562 * expmed.c (expand_shift_1): Likewise.
1564 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
1567 * optabs.c (expand_binop): Tighten conditions for doubleword
1569 (widen_bswap): Assert that mode bitsize and precision are the same.
1570 * stor-layout.c (get_best_mode): Skip modes that have lower
1571 precision than bitsize.
1572 * recog.c (simplify_while_replacing): Assert that bitsize and
1573 precision are the same.
1575 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1577 * Makefile.in (LIBGCOV): Remove.
1578 (libgcc.mvars): Remove LIBGCOV.
1579 * libgov.c: Move to ../libgcc.
1581 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1583 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
1585 2011-07-08 Martin Jambor <mjambor@suse.cz>
1587 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
1588 is too big for total scalarization.
1590 2011-07-07 Richard Henderson <rth@redhat.com>
1592 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
1593 (DBX_DEBUGGING_INFO): Undef.
1595 2011-07-07 Richard Henderson <rth@redhat.com>
1597 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
1598 Handle some opcodes specially for debugging.
1599 * print-rtl.c: Include dwarf2out.h
1600 (print_rtx): Handle NOTE_INSN_CFI.
1601 * Makefile.in (print-rtl.o): Update.
1603 2011-07-07 Richard Henderson <rth@redhat.com>
1605 * tree-pass.h (pass_dwarf2_frame): Declare.
1606 * passes.c (init_optimization_passes): Add it.
1607 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
1608 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
1609 make static, do not call add_cfis_to_fde.
1610 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
1611 dwarf2out_frame_init): Merge into...
1612 (execute_dwarf2_frame): ... here. New function.
1613 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
1614 saved_do_cfi_asm to a tri-state variable.
1615 (gate_dwarf2_frame, pass_dwarf2_frame): New.
1616 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
1617 if it has yet to be done. Don't call dwarf2cfi_function_init.
1618 * dwarf2out.h, debug.h: Update decls.
1619 * final.c (final_start_function): Don't call
1620 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
1621 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
1622 * toplev.c (lang_dependent_init): Likewise.
1624 2011-07-07 Richard Henderson <rth@redhat.com>
1626 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
1627 FDE_TABLE_INCREMENT): Replace with...
1628 (fde_vec): ... this, a new vector.
1629 (current_fde): Remove. Replace all users with cfun->fde.
1630 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
1631 (size_of_aranges, dwarf2out_finish): Likewise.
1632 (dwarf2out_alloc_current_fde): Break out from ...
1633 (dwarf2out_begin_prologue): ... here.
1634 (dwarf2out_frame_init): Remove.
1635 * dwarf2cfi.c: Update all users of current_fde.
1636 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
1637 * dwarf2out.h: Update decls.
1638 (dw_fde_node): Add fde_index member.
1639 * function.h (struct function): Add fde member.
1641 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1642 Richard Henderson <rth@redhat.com>
1644 * dwarf2cfi.c (add_cfi): Remove.
1645 (dwarf2out_cfi_label): Remove force argument. Only generate the
1647 (add_fde_cfi): Simplify the different code paths.
1649 (old_cfa, old_cfa_remember): New.
1650 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
1651 (last_reg_save_label): Remove.
1652 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
1653 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1654 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1655 dwarf2out_frame_debug_cfa_expression,
1656 dwarf2out_frame_debug_cfa_restore,
1657 dwarf2out_frame_debug_cfa_window_save,
1658 dwarf2out_frame_debug_expr): Remove label parameter.
1659 (cfi_label_required_p, add_cfis_to_fde): New.
1660 (dwarf2out_frame_debug_after_prologue): New.
1661 (dwarf2cfi_frame_init): Initialize old_cfa.
1662 (dwarf2out_frame_debug_restore_state): Likewise.
1663 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
1664 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
1665 * final.c (final_start_function): Call
1666 dwarf2out_frame_debug_after_prologue.
1668 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1669 Richard Henderson <rth@redhat.com>
1671 * dwarf2cfi.c (cfi_insn): New.
1672 (dwarf2out_cfi_label): Don't emit cfi label here.
1673 (add_fde_cfi): Create a NOTE_INSN_CFI.
1674 (dwarf2out_frame_debug): Setup cfi_insn.
1675 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
1676 (dwarf2out_cfi_begin_epilogue): Make static.
1677 (dwarf2out_frame_debug_restore_state): Make static.
1678 * dwarf2out.c (output_cfi_directive): Make static.
1679 (dwarf2out_emit_cfi): New.
1680 * dwarf2out.h: Update.
1681 * final.c (final): Remove CFI notes.
1682 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
1683 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
1684 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
1685 * insn-notes.def (NOTE_INSN_CFI): New.
1686 (NOTE_INSN_CFI_LABEL): New.
1687 * rtl.h (union rtunion_def): Add rt_cfi member.
1688 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
1690 2011-07-07 Richard Henderson <rth@redhat.com>
1692 * dwarf2cfi.c: New file.
1693 * Makefile.in (OBJS): Add it.
1694 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
1695 * gengtype.c (open_base_files): Include dwarf2out.h.
1696 * coretypes.h (enum var_init_status): Move from ...
1698 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
1699 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
1700 expand_builtin_dwarf_sp_column, init_return_column_size,
1701 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
1702 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
1703 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
1704 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
1705 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
1706 compute_barrier_args_size, dwarf2out_args_size,
1707 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
1708 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
1709 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
1710 queue_reg_save, dwarf2out_flush_queued_reg_saves,
1711 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
1712 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1713 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1714 dwarf2out_frame_debug_cfa_expression,
1715 dwarf2out_frame_debug_cfa_restore,
1716 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
1717 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
1718 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
1719 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
1720 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
1721 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
1722 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
1723 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
1724 dw_loc_descr_node): Move to dwarf2out.h.
1725 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
1726 mem_loc_descriptor): Export.
1727 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
1728 (dwarf2out_frame_init): Extract CIE generation code to
1729 dwarf2cfi_frame_init.
1731 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
1734 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
1735 MASK_V8PLUS, remove commented out flag and reorder.
1737 2011-07-07 Jakub Jelinek <jakub@redhat.com>
1740 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
1741 one non-complex and one complex argument, call c_save_expr on both
1744 2011-07-07 Martin Jambor <mjambor@suse.cz>
1747 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
1748 (verify_cgraph_node): Some functinality moved to
1749 verify_edge_corresponds_to_fndecl, call it.
1751 2011-07-07 Joseph Myers <joseph@codesourcery.com>
1753 * config.gcc (*local*): Remove.
1754 * doc/install-old.texi: Don't mention local configurations.
1756 2011-07-07 Jakub Jelinek <jakub@redhat.com>
1759 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
1760 referencing debug insns that have been reset.
1761 (dead_debug_insert_before): Don't assert reg is non-NULL,
1762 instead return immediately if it is NULL.
1764 2011-07-07 Joseph Myers <joseph@codesourcery.com>
1766 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
1768 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1770 * hw-doloop.c: New file.
1771 * hw-doloop.h: New file.
1772 * Makefile.in (OBJS): Add hw-doloop.o.
1773 (hw-doloop.o): New rule.
1774 ($(obj_out_file)): Add hw-doloop.h dependency.
1775 * config/bfin/bfin.c: Include "hw-doloop.h".
1776 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
1777 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
1778 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
1779 type changed to hwloop_info. Return bool, true if the loop was
1780 successfully optimized. Remove code that was moved to
1781 hw-doloop.c, and adjust other parts.
1782 (hwloop_fail): New static function, containing parts that used
1783 to be in bfin_optimize_loop.
1784 (bfin_discover_loop, bfin_discover_loops, free_loops,
1785 bfin_reorder_loops): Remove.
1786 (hwloop_pattern_reg): New static function.
1787 (bfin_doloop_hooks): New variable.
1788 (bfin_reorg_loops): Remove most code, call reorg_loops.
1789 * config/bfin/bfin.md (doloop_end splitter): Also enable if
1790 loop counter is a memory_operand.
1792 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
1794 * config.gcc: Support --with-multilib-list for x86 Linux targets.
1796 * configure.ac: Mention x86-64 for --with-multilib-list.
1797 * configure: Regenerated.
1799 * config/i386/gnu-user64.h (SPEC_64): Support x32.
1800 (SPEC_32): Likewise.
1801 (ASM_SPEC): Likewise.
1802 (LINK_SPEC): Likewise.
1803 (TARGET_THREAD_SSP_OFFSET): Likewise.
1804 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
1807 * config/i386/i386.h (TARGET_X32): New.
1809 (LONG_TYPE_SIZE): Likewise.
1810 (POINTER_SIZE): Likewise.
1811 (POINTERS_EXTEND_UNSIGNED): Likewise.
1812 (OPT_ARCH64): Support x32.
1813 (OPT_ARCH32): Likewise.
1815 * config/i386/i386.opt (mx32): New.
1817 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
1818 (GLIBC_DYNAMIC_LINKERX32): Likewise.
1819 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
1820 (GLIBC_DYNAMIC_LINKERX32): Likewise.
1822 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
1823 (BIONIC_DYNAMIC_LINKERX32): Likewise.
1824 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
1826 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
1828 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
1830 * doc/invoke.texi: Document -mx32.
1832 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
1834 * doc/invoke.texi (mwords-little-endian): Deprecate.
1835 * config/arm/arm.opt (mwords-little-endian): Likewise.
1836 * config/arm/arm.c (arm_option_override): Warn about the deprecation
1837 of -mwords-little-endian.
1839 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
1841 * reload1.c (choose_reload_regs): Use mode sizes to check whether
1842 an old reload register completely defines the required value.
1844 2011-07-07 Richard Guenther <rguenther@suse.de>
1846 * fold-const.c (fold_unary_loc): Do not strip sign-changes
1849 2011-07-07 Richard Guenther <rguenther@suse.de>
1851 * tree-vrp.c (simplify_conversion_using_ranges): New function.
1852 (simplify_stmt_using_ranges): Call it.
1854 2011-07-07 Kai Tietz <ktietz@redhat.com>
1856 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
1857 (lookup_logical_inverted_value): Likewise.
1858 (simplify_bitwise_binary_1): Likewise.
1859 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
1861 2011-07-07 Joseph Myers <joseph@codesourcery.com>
1863 * gcc.c (%[Spec]): Don't document.
1864 (struct spec_list): Update comment.
1865 (do_spec_1): Don't handle %[Spec].
1866 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
1868 2011-07-07 Joseph Myers <joseph@codesourcery.com>
1870 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
1871 default based on TARGET_ASM_NAMED_SECTION.
1872 * common/common-target.def (have_named_sections): Default to true.
1873 * common/config/default-common.c: Don't include tm.h.
1874 * common/config/picochip/picochip-common.c
1875 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
1876 * common/config/m32c/m32c-common.c: Remove.
1877 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
1878 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1879 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1880 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1881 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1882 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1883 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1885 2011-07-07 Jakub Jelinek <jakub@redhat.com>
1888 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
1889 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
1891 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1894 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
1896 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1899 * configure.ac (gcc_cv_as_hidden): Also accept
1900 x86_64-*-solaris2.1[0-9]*.
1901 (gcc_cv_as_cfi_directive): Likewise.
1902 (gcc_cv_as_comdat_group_group): Likewise.
1903 (set_have_as_tls): Likewise.
1904 * configure: Regenerate.
1905 * config.gcc (i[34567]86-*-solaris2*): Also handle
1906 x86_64-*-solaris2.1[0-9]*.
1907 * config.host (i[34567]86-*-solaris2*): Likewise.
1908 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
1909 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
1910 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
1911 (TARGET_LD_EMULATION): Use it.
1912 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
1913 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
1914 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
1915 (ASM_CPU64_DEFAULT_SPEC): Define.
1916 (ASM_CPU_SPEC): Use %(asm_cpu_default).
1917 (ASM_SPEC): Redefine.
1918 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
1919 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
1920 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
1921 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
1923 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
1925 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1927 * config/sol2.h (ASM_SPEC): Split into ...
1928 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
1929 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
1930 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
1931 (ASM_SPEC): Use ASM_SPEC_BASE.
1932 * config/sparc/sol2.h (ASM_SPEC): Redefine.
1934 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
1936 * config/avr/avr.md (*reload_insi): Change predicate #1 to
1937 const_int_operand. Ditto for peep2 producing this insn.
1938 Add argument to output_reload_insisf call.
1939 (*movsi,*movsf): Add argument to output_movsisf call.
1940 (*reload_insf): New insn and new peep2 to produce it.
1941 * config/avr/avr-protos.h (output_movsisf): Change prototype.
1942 (output_reload_insisf): Change prototype.
1943 * config/avr/avr.c (avr_asm_len): New function.
1944 (output_reload_insisf): Rewrite.
1945 (output_movsisf): Change prototype. output_reload_insisf for
1946 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
1947 (adjust_insn_length): Add argument to output_movsisf and
1948 output_reload_insisf call.
1950 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1952 * emit-rtl.c (paradoxical_subreg_p): New function.
1953 * rtl.h (paradoxical_subreg_p): Declare.
1954 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
1955 apply_distributive_law, simplify_comparison, simplify_set): Use it.
1956 * cse.c (record_jump_cond, cse_insn): Likewise.
1957 * expr.c (force_operand): Likewise.
1958 * rtlanal.c (num_sign_bit_copies1): Likewise.
1959 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
1960 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
1961 (push_reload): Use precision to check for paradoxical subregs.
1962 * expmed.c (extract_bit_field_1): Likewise.
1964 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
1965 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
1966 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
1967 simplify_set, simplify_logical, expand_compound_operation,
1968 make_extraction, force_to_mode, if_then_else_cond, extended_count,
1969 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
1970 record_value_for_reg): Likewise.
1971 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
1972 * simplify-rtx. c (simplify_unary_operation_1,
1973 simplify_binary_operation_1, simplify_const_relational_operation):
1976 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
1977 instead of GET_MODE_BITSIZE where appropriate.
1978 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
1979 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
1980 init_num_sign_bit_copies_in_rep): Likewise.
1981 * cse.c (fold_rtx, cse_insn): Likewise.
1982 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
1983 * simplify-rtx.c (simplify_unary_operation_1,
1984 simplify_const_unary_operation, simplify_binary_operation_1,
1985 simplify_const_binary_operation, simplify_ternary_operation,
1986 simplify_const_relational_operation, simplify_subreg): Likewise.
1987 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
1988 simplify_if_then_else, simplify_set, expand_compound_operation,
1989 expand_field_assignment, make_extraction, if_then_else_cond,
1990 make_compound_operation, force_to_mode, make_field_assignment,
1991 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
1992 extended_count, try_widen_shift_mode, simplify_shift_const_1,
1993 simplify_comparison, record_promoted_value, simplify_compare_const,
1994 record_dead_and_set_regs_1): Likewise.
1997 * simplify-rtx.c (simplify_const_binary_operation): Use the
1998 shift_truncation_mask hook instead of performing modulo by width.
1999 Compare against mode precision, not bitsize.
2000 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
2001 Use shift_truncation_mask instead of constructing the value manually.
2003 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2005 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
2007 (rs6000_save_toc_in_prologue_p): Ditto.
2009 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
2010 up the static chain (r11) during indirect function calls.
2011 (-msave-toc-indirect): New undocumented debug switch.
2013 * config/rs6000/rs6000.c (struct machine_function): Add
2014 save_toc_in_prologue field to note whether the prologue needs to
2015 save the TOC value in the reserved stack location.
2016 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
2017 to save the TOC in the prologue, do so.
2018 (rs6000_trampoline_init): Don't allow creating AIX style
2019 trampolines if -mno-r11 is in effect.
2020 (rs6000_call_indirect_aix): New function to create AIX style
2021 indirect calls, adding support for -mno-r11 to suppress loading
2022 the static chain, and saving the TOC in the prologue instead of
2024 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
2025 TOC in the prologue.
2027 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
2029 (TOC_REGNUM): Ditto.
2030 (STATIC_CHAIN_REGNUM): Ditto.
2031 (ARG_POINTER_REGNUM): Ditto.
2032 (SFP_REGNO): Delete, unused.
2033 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
2034 function descriptor offsets.
2035 (TOC_SAVE_OFFSET_64BIT): Ditto.
2036 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
2037 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
2038 (AIX_FUNC_DESC_SC_32BIT): Ditto.
2039 (AIX_FUNC_DESC_SC_64BIT): Ditto.
2040 (ptrload): New mode attribute for the appropriate load of a pointer.
2041 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
2042 (call_indirect_aix64): Ditto.
2043 (call_value_indirect_aix32): Ditto.
2044 (call_value_indirect_aix64): Ditto.
2045 (call_indirect_nonlocal_aix32_internal): Ditto.
2046 (call_indirect_nonlocal_aix32): Ditto.
2047 (call_indirect_nonlocal_aix64_internal): Ditto.
2048 (call_indirect_nonlocal_aix64): Ditto.
2049 (call): Rewrite AIX indirect function calls. Add support for
2050 eliminating the static chain, and for moving the save of the TOC
2051 to the function prologue.
2052 (call_value): Ditto.
2053 (call_indirect_aix<ptrsize>): Ditto.
2054 (call_indirect_aix<ptrsize>_internal): Ditto.
2055 (call_indirect_aix<ptrsize>_internal2): Ditto.
2056 (call_indirect_aix<ptrsize>_nor11): Ditto.
2057 (call_value_indirect_aix<ptrsize>): Ditto.
2058 (call_value_indirect_aix<ptrsize>_internal): Ditto.
2059 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2060 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2061 (call_nonlocal_aix32): Relocate in the rs6000.md file.
2062 (call_nonlocal_aix64): Ditto.
2064 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
2065 -mno-r11 documentation.
2067 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2070 * doc/extend.texi (Compound Literals): Fix typo.
2072 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
2074 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
2076 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
2078 * configure.ac (plugin-version.h): Generate
2079 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
2080 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
2083 * configure: Regenerate.
2085 * doc/plugins.texi (Building GCC plugins): Mention
2086 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
2088 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2090 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
2091 * combine.c (make_extraction, gen_lowpart_or_truncate,
2092 apply_distributive_law, simplify_comparison,
2093 reg_truncated_to_mode, record_truncated_value): Use it.
2094 * cse.c (notreg_cost): Likewise.
2095 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
2096 * expr.c (convert_move, convert_modes): Likewise.
2097 * optabs.c (expand_binop, expand_unop): Likewise.
2098 * postreload.c (move2add_last_label): Likewise.
2099 * regmove.c (optimize_reg_copy_3): Likewise.
2100 * rtlhooks.c (gen_lowpart_general): Likewise.
2101 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2103 2011-07-06 Joseph Myers <joseph@codesourcery.com>
2105 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
2107 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2109 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
2110 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
2111 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
2112 (simplify_const_unary_operation, simplify_binary_operation_1,
2113 simplify_const_binary_operation, simplify_const_relational_operation):
2114 Use them. Use GET_MODE_MASK for masking and sign-extensions.
2115 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
2116 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
2117 simplify_shift_const_1, simplify_comparison): Likewise.
2118 * expr.c (convert_modes): Likewise.
2119 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
2120 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2121 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
2123 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
2125 2011-07-06 Richard Guenther <rguenther@suse.de>
2127 PR tree-optimization/49645
2128 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
2130 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
2131 in type qualification here ...
2132 (copy_reference_ops_from_ref): ... not here.
2133 (vn_reference_lookup_3): ... or here.
2134 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
2135 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
2137 2011-07-06 Ian Lance Taylor <iant@google.com>
2139 * doc/install.texi (Configuration): It's
2140 --enable-gnu-indirect-function, not --enable-indirect-function.
2142 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2144 * simplify-rtx.c (simplify_const_binary_operation): Use the
2145 shift_truncation_mask hook instead of performing modulo by width.
2146 Compare against mode precision, not bitsize.
2147 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
2148 Use shift_truncation_mask instead of constructing the value manually.
2150 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
2153 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
2154 address computation and convert to address_mode if needed.
2156 2011-07-06 Richard Guenther <rguenther@suse.de>
2158 * tree.c (build_common_tree_nodes_2): Merge with
2159 build_common_tree_nodes.
2160 * tree.h (build_common_tree_nodes): Adjust prototype.
2161 (build_common_tree_nodes_2): Remove.
2162 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
2163 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
2165 2011-07-05 Jakub Jelinek <jakub@redhat.com>
2167 PR tree-optimization/49618
2168 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
2169 t recurse on the decl.
2170 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
2171 return true if expr isn't known to be defined in current
2172 TU or some other LTO partition.
2174 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2176 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
2177 override CASE_VALUES_THRESHOLD.
2179 * stmt.c (toplevel): Include params.h.
2180 (case_values_threshold): Use the --param case-values-threshold
2181 value if non-zero, otherwise use machine dependent value.
2182 (expand_case): Use case_values_threshold.
2184 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
2186 * doc/invoke.texi (--param case-values-threshold): Document.
2188 2011-07-05 Richard Henderson <rth@redhat.com>
2190 * dwarf2out.c (dwarf2out_cfi_label): Make static.
2191 (dwarf2out_flush_queued_reg_saves): Make static.
2192 (dwarf2out_reg_save): Remove.
2193 (dwarf2out_return_save): Remove.
2194 (dwarf2out_return_reg): Remove.
2195 (dwarf2out_reg_save_reg): Remove.
2196 (dwarf2out_def_cfa): Merge into ...
2197 (dwarf2out_frame_init): ... here.
2198 * dwarf2out.h, tree.h: Remove declarations as necessary.
2200 2011-07-05 Richard Henderson <rth@redhat.com>
2202 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
2203 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2204 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
2207 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
2208 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
2209 (process_epilogue): Don't call dwarf2out_def_cfa.
2211 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
2212 indicate the return address save.
2213 (process_cfa_register): Likewise.
2215 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
2216 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
2218 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
2219 for ar.pfs save at alloc insn.
2221 2011-07-05 Richard Henderson <rth@redhat.com>
2223 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
2224 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2225 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
2227 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
2228 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
2229 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
2230 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
2232 2011-07-05 Richard Henderson <rth@redhat.com>
2234 * config/vax/vax.md (define_c_enum unspecv): New. Define the
2235 VUNSPEC_* constants here instead of via define_constants.
2236 (VUNSPEC_PEM): New constant.
2237 (procedure_entry_mask): New insn.
2238 (prologue): New expander.
2239 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
2240 (vax_expand_prologue): Rename from vax_output_function_prologue;
2241 emit rtl instead of text.
2242 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
2243 (print_operand): Add 'x' prefix.
2245 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
2248 * calls.c (precompute_register_parameters): Promote the function
2249 argument before checking non-legitimate constant.
2251 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2253 PR tree-optimization/47654
2254 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
2255 (lst_do_strip_mine_loop): Return an int.
2256 (lst_do_strip_mine): Same.
2257 (scop_do_strip_mine): Same.
2258 (scop_do_block): Loop blocking should strip-mine at least two loops.
2259 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
2260 (scop_do_interchange): Same.
2261 * graphite-poly.h (scop_do_interchange): Update declaration.
2262 (scop_do_strip_mine): Same.
2264 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2266 * graphite-clast-to-gimple.c (precision_for_value): Removed.
2267 (precision_for_interval): Removed.
2268 (gcc_type_for_interval): Use mpz_sizeinbase.
2270 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2272 * graphite-ppl.h (value_max): Correct computation of max.
2274 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2276 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
2278 2011-07-05 Richard Guenther <rguenther@suse.de>
2280 * c-decl.c (c_init_decl_processing): Defer building common
2281 tree nodes to c_common_nodes_and_builtins.
2283 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
2285 PR tree-optimization/49580
2286 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
2287 the loop's number of iterations.
2288 * tree-parloops.c (transform_to_exit_first_loop): Add the
2289 handling of the loop's number of iterations before the call
2290 to gimple_duplicate_sese_tail.
2291 Insert the stmt caclculating the new rhs of the loop's
2292 condition stmt to the preheader instead of iters_bb.
2294 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
2296 PR rtl-optimization/47449
2297 * fwprop.c (forward_propagate_subreg): Don't propagate hard
2298 register nor zero/sign extended hard register.
2300 2011-07-05 Richard Guenther <rguenther@suse.de>
2302 PR tree-optimization/49518
2303 PR tree-optimization/49628
2304 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
2305 irrelevant and invariant data-references.
2306 (vect_analyze_data_ref_access): For invariant loads clear the
2309 2011-07-04 Jakub Jelinek <jakub@redhat.com>
2311 PR rtl-optimization/49619
2312 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
2313 pass VOIDmode as op0_mode to recursive call, and return temp even
2314 when different from tor, just if it is not IOR of the original
2317 PR rtl-optimization/49472
2318 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
2319 negating MULT, negate the second operand instead of first.
2320 (simplify_binary_operation_1) <case MULT>: If one operand is
2321 a NEG and the other is MULT, don't attempt to optimize by negation
2322 of the MULT operand if it only moves the NEG operation around.
2325 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
2326 get_current_def return value if it can't be trusted to be
2327 the current value of the variable in the current bb.
2329 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
2332 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
2333 general register to memory for !TARGET_INTER_UNIT_MOVES.
2335 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
2338 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
2339 instead of TREE_READONLY.
2341 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
2343 * doc/extend.texi (AVR Built-in Functions): Update documentation
2344 of __builtin_avr_fmul*.
2345 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
2346 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
2347 * config/avr/avr.md (fmul): Rename to fmul_insn.
2348 (fmuls): Rename to fmuls_insn.
2349 (fmulsu): Rename to fmulsu_insn.
2350 (fmul,fmuls,fmulsu): New expander.
2351 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
2352 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
2353 * config/avr/libgcc.S (__fmul): New function.
2354 (__fmuls): New function.
2355 (__fmulsu,__fmulsu_exit): New function.
2357 2011-07-04 Richard Guenther <rguenther@suse.de>
2359 PR tree-optimization/49615
2360 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
2361 basic-block index check.
2363 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
2365 * longlong.h (count_leading_zeros, count_trailing_zeros,
2366 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
2369 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
2371 PR tree-optimization/49610
2372 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
2375 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
2376 Olivier Hainque <hainque@adacore.com>
2377 Nicolas Setton <setton@adacore.com>
2379 * tree.h (TYPE_ARTIFICIAL): New flag.
2380 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
2381 the DIE of the type if it is artificial.
2382 (gen_array_type_die): Likewise.
2383 (gen_enumeration_type_die): Likewise.
2384 (gen_struct_or_union_type_die): Likewise.
2385 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
2386 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
2388 2011-07-01 Jakub Jelinek <jakub@redhat.com>
2390 * tree-object-size.c (pass_through_call): Handle
2391 BUILT_IN_ASSUME_ALIGNED.
2393 2011-07-01 Martin Jambor <mjambor@suse.cz>
2395 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
2397 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
2400 * explow.c (update_nonlocal_goto_save_area): Use proper mode
2401 for stack save area.
2402 * function.c (expand_function_start): Likewise.
2404 2011-07-01 Richard Guenther <rguenther@suse.de>
2407 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
2408 may have unknown refs.
2410 2011-07-01 Kai Tietz <ktietz@redhat.com>
2412 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
2414 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2416 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
2417 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
2418 (Specific, mips-sgi-irix6): Likewise.
2420 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2423 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
2425 2011-07-01 Jakub Jelinek <jakub@redhat.com>
2427 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
2428 [idx]= and [idx1 ... idx2]= before initializers if needed for
2431 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
2433 * config.gcc (score-*-elf): Remove score7.o.
2434 * config/score/t-score-elf: Likewise.
2435 * config/score/score.c: Merge score7 to score.c and
2436 remove forwarding functions.
2437 * config/score/score7.c: Deleted.
2438 * config/score/score7.h: Deleted.
2440 2011-07-01 Richard Guenther <rguenther@suse.de>
2442 PR tree-optimization/49603
2443 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
2445 2011-06-30 Martin Jambor <mjambor@suse.cz>
2447 * tree-sra.c (struct access): Rename total_scalarization to
2448 grp_total_scalarization
2449 (completely_scalarize_var): New function.
2450 (sort_and_splice_var_accesses): Set total_scalarization in the
2451 representative access.
2452 (analyze_access_subtree): Propagate total scalarization accross the
2453 tree, no holes in totally scalarized trees, simplify coverage
2455 (analyze_all_variable_accesses): Call completely_scalarize_var instead
2456 of completely_scalarize_record.
2458 2011-06-30 Richard Henderson <rth@redhat.com>
2460 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
2461 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
2462 * config/i386/i386.c: Don't include dwarf2out.h.
2463 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
2464 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
2465 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
2466 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
2467 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
2469 2011-06-30 Richard Henderson <rth@redhat.com>
2471 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
2472 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
2473 * final.c (final_scan_insn): Look for it, and invoke
2474 dwarf2out_frame_debug before the insn if found.
2476 2011-06-30 Richard Henderson <rth@redhat.com>
2478 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
2479 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
2481 2011-06-30 Richard Henderson <rth@redhat.com>
2483 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
2484 Define a vector of this type.
2485 (regs_saved_in_regs): Use a VEC.
2486 (num_regs_saved_in_regs): Remove.
2487 (compare_reg_or_pc): New.
2488 (record_reg_saved_in_reg): Split out from...
2489 (dwarf2out_flush_queued_reg_saves): ... here.
2490 (clobbers_queued_reg_save): Update for VEC.
2491 (reg_saved_in): Likewise.
2492 (dwarf2out_frame_debug_init): Likewise.
2493 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
2494 (dwarf2out_frame_debug_cfa_register): Likewise.
2496 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
2498 PR tree-optimization/49572
2499 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
2500 type of the RHS instead of that of the LHS for the expression type.
2502 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
2504 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
2507 2011-06-30 Richard Guenther <rguenther@suse.de>
2509 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
2510 * tree-ssa-structalias.c (create_variable_info_for): Do not
2511 add initial constraints for non-var-decls. Properly handle
2512 globals in other ltrans partitions.
2513 (intra_create_variable_infos): Manually create constraints for
2514 the fake no-alias parameter.
2515 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
2516 and assert there are no clones.
2518 2011-06-30 Richard Guenther <rguenther@suse.de>
2520 PR tree-optimization/46787
2521 * tree-data-ref.c (dr_address_invariant_p): Remove.
2522 (find_data_references_in_stmt): Invariant accesses are ok now.
2523 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
2524 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
2527 2011-06-30 Martin Jambor <mjambor@suse.cz>
2529 PR tree-optimization/49094
2530 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
2531 (build_accesses_from_assign): Use it.
2533 2011-06-30 Jakub Jelinek <jakub@redhat.com>
2535 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2536 handling of BUILT_IN_ASSUME_ALIGNED.
2539 * dwarf2out.c (output_abbrev_section): Don't return early
2540 if abbrev_die_table_in_use is 1.
2541 (dwarf2out_finish): Instead don't call output_abbrev_section
2542 nor emit abbrev_section_label in that case.
2544 2011-06-30 Nick Clifton <nickc@redhat.com>
2546 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
2549 2011-06-30 Jakub Jelinek <jakub@redhat.com>
2551 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2552 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
2554 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
2556 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2557 both pattern and original statements if necessary.
2558 (vect_transform_loop): Likewise.
2559 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
2560 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
2561 Mark the pattern statement only if the original statement doesn't
2563 (process_use): Call vect_mark_relevant with additional parameter.
2564 (vect_mark_stmts_to_be_vectorized): Likewise.
2565 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
2566 (vect_analyze_stmt): Handle both pattern and original statements
2568 (vect_transform_stmt): Don't store vectorized pattern statement
2569 in the original statement.
2570 (vect_is_simple_use_1): Use related pattern statement only if the
2571 original statement is irrelevant.
2572 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
2574 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
2576 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
2578 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
2580 (TARGET_AVX128_OPTIMAL): New definition.
2581 * config/i386/i386.c (initial_ix86_tune_features): Initialize
2582 X86_TUNE_AVX128_OPTIMAL entry.
2583 (ix86_option_override_internal): Enable the generation
2584 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
2585 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
2586 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
2588 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
2590 PR tree-optimization/49539
2591 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
2592 names by means of stmt_references_abnormal_ssa_name.
2593 (associate_plusminus): Call can_propagate_from before propagating
2594 from definition statements.
2595 (ssa_forward_propagate_and_combine): Remove superfluous newline.
2597 2011-06-29 Richard Guenther <rguenther@suse.de>
2599 * doc/invoke.texi: Document -scev dump modifier.
2600 * tree-pass.h (TDF_SCEV): New dump flag.
2601 * tree-dump.c (dump_option_value_in): Add scev.
2602 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
2603 * tree-scalar-evolution.c: Likewise.
2605 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
2607 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
2608 (cxa_type_match): Correct declaration.
2609 (__gnu_unwind_pr_common): Reconstruct additional indirection
2610 when __cxa_type_match returns succeeded_with_ptr_to_base.
2612 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2614 PR rtl-optimization/49114
2615 * reload.c (struct replacement): Remove SUBREG_LOC member.
2616 (push_reload): Do not set it.
2617 (push_replacement): Likewise.
2618 (subst_reload): Remove dead code.
2619 (copy_replacements): Remove assertion.
2620 (copy_replacements_1): Do not handle SUBREG_LOC.
2621 (move_replacements): Likewise.
2622 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
2623 Detect subregs via recursive descent instead of via SUBREG_LOC.
2625 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
2627 * config/avr/avr.c (avr_encode_section_info): Dispatch to
2628 default_encode_section_info.
2630 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
2632 PR tree-optimization/49545
2633 * builtins.c (get_object_alignment_1): Update function comment.
2634 Do not use DECL_ALIGN for functions, but test
2635 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
2636 * fold-const.c (get_pointer_modulus_and_residue): Don't check
2638 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
2640 2011-06-29 Jakub Jelinek <jakub@redhat.com>
2643 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
2644 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
2646 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
2649 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
2650 about uninitialized data attributed 'progmem' from here...
2651 (avr_encode_section_info): ...to this new function.
2652 (TARGET_ENCODE_SECTION_INFO): New define.
2653 (avr_section_type_flags): For data in ".progmem.data", remove
2654 section flag SECTION_WRITE.
2656 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
2658 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
2660 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
2661 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
2662 (__umulhisi3): Ditto.
2663 * config/avr/avr.md (mulhisi3): New insn expender.
2664 (umulhisi3): New insn expender.
2665 (*mulhisi3_call): New insn.
2666 (*umulhisi3_call): New insn.
2668 2011-06-28 Joseph Myers <joseph@codesourcery.com>
2670 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
2672 2011-06-28 Richard Henderson <rth@redhat.com>
2674 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
2675 all code and arguments that handled pushes. Update all callers.
2677 2011-06-28 Richard Henderson <rth@redhat.com>
2679 * config/arm/arm.c (arm_output_function_prologue): Don't call
2680 thumb1_output_function_prologue.
2681 (arm_expand_prologue): Avoid dead store.
2682 (number_of_first_bit_set): Use ctz_hwi.
2683 (thumb1_emit_multi_reg_push): New.
2684 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
2685 to emit the entire prologue as rtl.
2686 (thumb1_output_interwork): Split out from
2687 thumb1_output_function_prologue.
2688 (thumb1_output_function_prologue): Remove.
2689 (arm_attr_length_push_multi): Handle thumb1.
2690 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
2691 (prologue_thumb1_interwork): New.
2692 (*push_multi): Allow thumb1; use push_mult_memory_operand.
2693 * config/arm/predicates.md (push_mult_memory_operand): New.
2695 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
2697 * config/sparc/sync.md (*stbar): Delete.
2698 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
2700 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
2702 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
2704 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2706 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
2707 (TARGET_64BIT_DEFAULT): Define.
2708 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
2710 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
2712 2011-06-28 Joseph Myers <joseph@codesourcery.com>
2714 * common.opt (in_lto_p): New Variable entry.
2715 * flags.h (in_lto_p): Move to common.opt.
2716 * gcc.c: Include params.h.
2717 (set_option_handlers): Also use common_handle_option and
2718 target_handle_option.
2719 (main): Call global_init_params, finish_params and init_options_struct.
2720 * opts.c (debug_type_names): Move from toplev.c.
2721 (print_filtered_help): Access quiet_flag through opts pointer.
2722 (common_handle_option): Return early in the driver for some options.
2723 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
2725 * toplev.c (in_lto_p): Move to common.opt.
2726 (debug_type_names): Move to opts.c.
2727 * Makefile.in (OBJS): Remove opts.o.
2728 (OBJS-libcommon-target): Add opts.o.
2729 (gcc.o): Update dependencies.
2731 2011-06-28 Kai Tietz <ktietz@redhat.com>
2733 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
2735 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2737 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
2738 with '=' constraint modifier.
2739 (*divdf3_vfp): Likewise.
2740 ("*mulsf3_vfp"): Likewise.
2741 ("*muldf3_vfp"): Likewise.
2742 ("*mulsf3negsf_vfp"): Likewise.
2743 ("*muldf3negdf_vfp"): Likewise.
2745 2011-06-28 Nick Clifton <nickc@redhat.com>
2747 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
2748 relaxation when performing an incremental link.
2750 2011-06-28 Kai Tietz <ktietz@redhat.com>
2752 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
2753 within BB from last to first.
2755 2011-06-28 Joseph Myers <joseph@codesourcery.com>
2757 * genattr-common.c: New. Based on genattr.c.
2758 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
2759 (MOSTLYCLEANFILES): Add insn-attr-common.h.
2760 (opts.o): Update dependencies.
2761 (.PRECIOUS): Add insn-attr-common.h.
2762 (simple_rtl_generated_h): Add insn-attr-common.h.
2763 (build/genattr-common.o): New.
2764 (genprogrtl): Add attr-common.
2765 * genattr.c (main): Include insn-attr-common.h. Don't generate
2766 definitions of DELAY_SLOTS or INSN_SCHEDULING.
2767 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
2769 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
2771 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
2772 avr-*-* and avr-*-rtems* targets.
2774 * config/avr/elf.h: New file.
2775 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
2776 (TARGET_ASM_SELECT_SECTION): Define.
2777 (INIT_SECTION_ASM_OP): Undefine.
2778 (FINI_SECTION_ASM_OP): Undefine.
2779 (READONLY_DATA_SECTION_ASM_OP): Undefine.
2780 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
2781 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
2783 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
2784 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
2785 (MAX_OFILE_ALIGNMENT): Move to elf.h.
2786 (STRING_LIMIT): Move to elf.h.
2787 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
2788 (ASM_DECLARE_OBJECT_NAME): Remove.
2790 (ASM_OUTPUT_SKIP): Remove.
2791 (DWARF2_DEBUGGING_INFO): Remove.
2792 (OBJECT_FORMAT_ELF): Remove.
2793 (USER_LABEL_PREFIX): Remove.
2794 (ASM_OUTPUT_EXTERNAL): Remove.
2795 (ASM_OUTPUT_ASCII): Remove.
2796 (TYPE_ASM_OP): Remove.
2797 (SIZE_ASM_OP): Remove.
2798 (WEAK_ASM_OP): Remove.
2799 (STRING_ASM_OP): Remove.
2800 (SET_ASM_OP): Remove.
2801 (ASM_WEAKEN_LABEL): Remove.
2802 (TYPE_OPERAND_FMT): Remove.
2803 (ASM_DECLARE_FUNCTION_SIZE): Remove.
2804 (ASM_FINISH_DECLARE_OBJECT): Remove.
2805 (NO_DOLLAR_IN_LABEL): Remove.
2806 (ASM_GENERATE_INTERNAL_LABEL): Remove.
2807 (ASM_OUTPUT_CASE_LABEL): Remove.
2808 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
2809 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
2810 (gas_output_ascii): Remove.
2811 (gas_output_limited_string): Remove.
2812 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
2813 * config/avr/avr-protos.h
2814 (gas_output_ascii): Remove prototye.
2815 (gas_output_limited_string): Remove prototype.
2817 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
2820 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
2823 2011-06-27 Jan Hubicka <jh@suse.cz>
2825 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
2826 node instead of references in node.
2828 2011-06-27 Richard Henderson <rth@redhat.com>
2830 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
2831 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
2834 2011-06-27 Jakub Jelinek <jakub@redhat.com>
2836 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
2838 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
2839 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
2840 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
2841 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
2842 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
2843 (evaluate_stmt, execute_fold_all_builtins): Handle
2844 BUILT_IN_ASSUME_ALIGNED.
2845 * tree-ssa-dce.c (propagate_necessity): Likewise.
2846 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2847 call_may_clobber_ref_p_1): Likewise.
2848 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
2849 (expand_builtin_assume_aligned): New function.
2850 * doc/extend.texi (__builtin_assume_aligned): Document.
2853 * cselib.c (promote_debug_loc): If cselib_preserve_constants
2854 and l has two DEBUG_INSN owned locs instead of just one, adjust
2855 the second location's setting_insn too.
2857 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2860 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
2862 2011-06-27 Nick Clifton <nickc@redhat.com>
2864 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
2865 bit position of highest bit set into a count of the high zero bits.
2867 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2869 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
2871 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2874 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
2877 2011-06-27 Richard Guenther <rguenther@suse.de>
2879 PR tree-optimization/49394
2880 * passes.c (execute_one_pass): Restore current_pass after
2881 applying IPA transforms.
2883 2011-06-27 Kai Tietz <ktietz@redhat.com>
2885 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
2886 out of type precision after operation.
2887 (find_bswap): Take for limit value the integer auto-promotion
2890 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2892 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
2893 forward scan as well.
2895 2011-06-27 Tristan Gingold <gingold@adacore.com>
2898 * config/vms/vms-protos.h: New file.
2899 * config/vms/vms-crtlmap.map: New file.
2900 * config/vms/vms.c: New file.
2901 * config/vms/make-crtlmap.awk: New file.
2902 * config/vms/vms-crtl.h: File removed.
2903 * config/vms/vms-crtl-64.h: File removed.
2904 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
2905 * config/alpha/vms64.h: Do not include vms-crtl-64.h
2906 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
2907 clear some builtins on VMS. Calls vms_patch_builtins.
2908 (avms_asm_output_external): Remove.
2909 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
2910 (struct crtl_name_spec): Remove
2911 (DO_CTRL_NAMES): Remove.
2912 * config/ia64/vms.h (struct crtl_name_spec): Remove
2913 (DO_CTRL_NAMES): Remove.
2914 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
2915 clear some builtins on VMS. Calls vms_patch_builtins.
2916 (ia64_asm_output_external): Remove DO_CRTL_NAME.
2917 * config/ia64/vms64.h: Do not include vms-crtl-64.h
2918 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
2920 2011-06-27 Tristan Gingold <gingold@adacore.com>
2922 * config/alpha/alpha.c (alpha_end_function): Always generate .end
2925 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2927 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
2928 the function receives nonlocal gotos.
2930 2011-06-27 Richard Guenther <rguenther@suse.de>
2932 PR tree-optimization/49536
2933 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
2934 For non-scalar inner types use a scalar type according to
2935 the scalar inner mode.
2937 2011-06-27 Richard Guenther <rguenther@suse.de>
2939 PR tree-optimization/49365
2940 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
2942 2011-06-27 Richard Guenther <rguenther@suse.de>
2944 PR tree-optimization/49169
2945 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
2946 the alignment of function decls.
2948 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
2951 * config/darwin.c (darwin_mergeable_string_section): Place string
2952 constants in '.cstring' rather than '.const' when CF/NSStrings are
2955 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
2957 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
2958 (emit_save_register_window): Likewise.
2959 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
2960 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
2961 Swap back %o7/%i7 in register naming.
2963 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
2966 * config/darwin.c (darwin_override_options): Improve warning when
2967 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
2968 is given with fpie/fPIE.
2969 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
2970 * config/darwin9.h (PIE_SPEC): New.
2972 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
2974 * timevar.c (timevar_print): Increase width for display of timevar
2977 2011-06-24 Jakub Jelinek <jakub@redhat.com>
2980 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
2981 instead of TYPE_CHAIN for chain_next for types.
2983 2011-06-24 Richard Henderson <rth@redhat.com>
2985 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
2986 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
2987 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
2988 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
2989 (sparc_flat_expand_prologue): Emit individual instructions
2990 instead of one of the above.
2992 2011-06-24 Easwaran Raman <eraman@google.com>
2994 PR rtl-optimization/49429
2996 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
2997 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
2998 used to copy y into x.
2999 * calls.c (initialize_argument_information): Mark
3000 an argument addressable if it is passed by invisible reference.
3001 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
3002 if it is passed by reference.
3004 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
3006 PR rtl-optimization/49504
3007 * rtlanal.c (nonzero_bits1): Properly handle addition or
3008 subtraction of a pointer in Pmode if pointers extend unsigned.
3009 (num_sign_bit_copies1): Likewise.
3011 2011-06-24 Martin Jambor <mjambor@suse.cz>
3013 PR tree-optimizations/49516
3014 * tree-sra.c (sra_modify_assign): Choose the safe path for
3015 aggregate copies if we also did scalar replacements.
3017 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3020 * config/arm/predicates.md (add_operator): New.
3021 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
3023 2011-06-24 Andi Kleen <ak@linux.intel.com>
3025 * tree-sra.c (type_internals_preclude_sra_p): Add msg
3026 parameter. Split up ifs and report reason in *msg.
3028 (find_var_candiate): Add msg variable.
3029 Split up ifs and report reason to reject.
3030 (find_param_candidates): Add msg variable.
3031 Pass msg to type_internals_preclude_sra_p.
3033 2011-06-23 Jeff Law <law@redhat.com>
3036 * reload.h (reload): Change to return a bool.
3037 * ira.c (ira): If requested by reload, run a fast DCE pass after
3038 reload has completed. Fix comment typo.
3039 * reload1.c (need_dce): New file scoped static.
3040 (reload): Set reload_completed here. Return whether or not a DCE
3041 pass after reload is needed.
3042 (delete_dead_insn): Set need_dce as needed.
3045 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
3046 to detect threading through joiner block. If there was already
3047 an edge to the new target, then do not change the PHI nodes.
3049 2011-06-23 Jakub Jelinek <jakub@redhat.com>
3051 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
3052 get_pointer_alignment to see if base isn't sufficiently aligned.
3054 2011-06-23 Jan Hubicka <jh@suse.cz>
3056 PR tree-optimize/49373
3057 * tree-pass.h (all_late_ipa_passes): Declare.
3058 * cgraphunit.c (init_lowered_empty_function): Fix properties.
3059 (cgraph_optimize): Execute late passes; remove unreachable funcions
3060 after materialization.
3061 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
3063 * passes.c (all_late_ipa_passes): Declare.
3064 (dump_passes, register_pass): Handle late ipa passes.
3065 (init_optimization_passes): Move ipa_pta to late passes; schedule
3066 fixup_cfg at beggining of all_passes.
3067 (apply_ipa_transforms): New function.
3068 (execute_one_pass): When doing simple ipa pass, apply all transforms.
3070 2011-06-23 Joseph Myers <joseph@codesourcery.com>
3072 * params.c: Include common/common-target.h. Don't include tm.h.
3073 (lang_independent_params): Move from toplev.c.
3074 (global_init_params): New.
3075 * params.h (global_init_params): Declare.
3076 * target.def (default_params): Move to common-target.def.
3077 * toplev.c (lang_independent_options): Remove.
3078 (lang_independent_params): Move to params.c.
3079 (general_init): Use global_init_params.
3080 * common/common-target.def (option_default_params): Move from
3082 * common/config/ia64/ia64-common.c: Include params.h.
3083 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3085 * common/config/rs6000/rs6000-common.c: Include params.h.
3086 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3088 * common/config/sh/sh-common.c: Include params.h.
3089 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3091 * common/config/spu/spu-common.c: Include params.h.
3092 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3094 * config/ia64/ia64.c (ia64_option_default_params,
3095 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
3096 * config/rs6000/rs6000.c (rs6000_option_default_params,
3097 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
3098 * config/sh/sh.c (sh_option_default_params,
3099 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
3100 * config/spu/spu.c (spu_option_default_params,
3101 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
3102 * Makefile.in (OBJS): Remove params.o.
3103 (OBJS-libcommon-target): Add params.o.
3104 (params.o, $(common_out_object_file)): Update dependencies.
3105 * doc/tm.texi: Regenerate.
3107 2011-06-23 Alan Modra <amodra@gmail.com>
3110 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
3111 invocation for 2011-06-09 changes.
3113 2011-06-22 Jakub Jelinek <jakub@redhat.com>
3116 * omp-low.c (expand_omp_for_static_nochunk): Only
3117 use n ceil/ nthreads size for the first n % nthreads threads in the
3118 team instead of all threads except for the last few ones which
3119 get less work or none at all.
3122 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
3125 2011-06-22 Richard Guenther <rguenther@suse.de>
3127 PR tree-optimization/49493
3128 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
3129 Refer to the alias target of variables.
3130 (associate_varinfo_to_alias_1): Remove.
3131 (ipa_pta_execute): Do not associate aliases with anything.
3132 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
3133 (cgraph_function_node): Likewise.
3134 (cgraph_function_or_thunk_node): Likewise.
3135 (varpool_variable_node): Likewise.
3137 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
3139 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
3140 * config.gcc (arm*-*-linux*): Default to gnu tls.
3141 (arm*-*-*): Add --with-tls option.
3142 (all_defaults): Add 'tls'.
3144 2011-06-22 Richard Henderson <rth@redhat.com>
3146 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
3147 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3148 (dwarf2out_frame_debug_cfa_window_save): Rename from
3149 dwarf2out_window_save; make static.
3150 * tree.h (dwarf2out_window_save): Don't declare.
3152 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
3153 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3154 (emit_save_register_window): Rename from gen_save_register_window;
3155 emit the insn and add REG_CFA_* notes.
3156 (sparc_expand_prologue): Update to match.
3157 * config/sparc/sparc.md (save_register_window_1): Simplify from
3158 save_register_window<P:mode>.
3160 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
3163 * config/i386/i386.md (*lea_general_2): Always allow SImode.
3164 (*lea_general_2_zext): Likewise.
3165 (imul to lea peepholes): Use const359_operand and check
3166 TARGET_PARTIAL_REG_STALL.
3168 * config/i386/predicates.md (const359_operand): New.
3170 2011-06-22 Michael Matz <matz@suse.de>
3172 * cgraphunit.c (assemble_thunk): Use correct return type.
3174 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
3175 Dmitry Melnik <dm@ispras.ru>
3177 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
3178 (neon_output_shift_immediate): Ditto.
3179 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
3181 (neon_output_shift_immediate): Ditto.
3182 * config/arm/neon.md (vashl<mode>3): Modified constraint.
3183 (vashr<mode>3_imm): New insn pattern.
3184 (vlshr<mode>3_imm): Ditto.
3185 (vashr<mode>3): Modified constraint.
3186 (vlshr<mode>3): Ditto.
3187 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
3189 (imm_for_neon_rshift_operand): Ditto.
3190 (imm_lshift_or_reg_neon): Ditto.
3191 (imm_rshift_or_reg_neon): Ditto.
3193 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
3195 2011-06-22 Jakub Jelinek <jakub@redhat.com>
3197 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
3198 builtin calls even if likelyvalue is not CONSTANT.
3199 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
3200 Return get_value_for_expr of first operand
3201 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
3202 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3203 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
3204 their non-checking counterparts.
3205 (call_may_clobber_ref_p_1): Likewise.
3206 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
3207 like their non-checking counterparts.
3208 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3209 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
3210 like their non-checking counterparts.
3211 (find_func_clobbers): Likewise.
3212 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
3213 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
3215 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
3216 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
3217 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
3218 of base type reference as argument.
3219 (resolve_addr_in_expr): Likewise. Fix keep computation.
3220 (convert_descriptor_to_signed): Renamed to...
3221 (convert_descriptor_to_mode): ... this. For wider types convert to
3222 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
3223 (typed_binop): New function.
3224 (scompare_loc_descriptor, ucompare_loc_descriptor,
3225 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
3226 default to unsigned type instead of signed.
3229 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
3230 (gimple_build_debug_source_bind_stat): New prototype.
3231 (gimple_build_debug_source_bind): Define.
3232 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
3233 gimple_debug_source_bind_get_value,
3234 gimple_debug_source_bind_get_value_ptr,
3235 gimple_debug_source_bind_set_var,
3236 gimple_debug_source_bind_set_value): New inlines.
3237 * gimple.c (gimple_build_debug_source_bind_stat): New function.
3238 * gimple-pretty-print.c (dump_gimple_debug): Handle
3239 GIMPLE_DEBUG_SOURCE_BIND.
3240 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
3241 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3242 * tree-parloops.c (eliminate_local_variables,
3243 separate_decls_in_region): Likewise.
3244 (separate_decls_in_region_debug): Renamed from
3245 separate_decls_in_region_debug_bind. Handle
3246 gimple_debug_source_bind_p.
3247 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
3249 (DECL_HAS_DEBUG_ARGS_P): Define.
3250 (struct tree_function_decl): Add has_debug_args_flag field.
3251 * tree.c (debug_args_for_decl): New variable.
3252 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
3253 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
3254 (rewrite_debug_stmt_uses): New function.
3255 (rewrite_stmt): Use it to rewrite debug stmt uses.
3256 * rtl.def (DEBUG_PARAMETER_REF): New.
3257 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
3258 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
3259 DEBUG_PARAMETER_REF.
3260 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
3261 * print-rtl.c (print_rtx): Likewise.
3262 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
3263 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
3264 debug stmts in the first bb.
3265 * tree-inline.c (remap_ssa_name): If remapping default def
3266 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
3267 a source bind debug stmt.
3268 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
3269 (maybe_move_debug_stmts_to_successors): Likewise.
3270 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
3271 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
3272 debug args vector from old_decl to new_decl.
3273 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
3274 or modified parameters, add debug bind stmts before call
3275 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
3276 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
3277 on DECL_DEBUG_EXPRs from debug args vector.
3278 (expand_debug_source_expr): New function.
3279 (expand_debug_locations): Use it for source bind insns.
3280 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
3281 * var-tracking.c (prepare_call_arguments): Add debug args
3282 to call_arguments if any.
3283 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
3284 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
3285 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
3286 (get_ref_die_offset, parameter_ref_descriptor): New functions.
3287 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
3288 (gen_subprogram_die): Handle parameters identified by
3289 DEBUG_PARAMETER_REF.
3291 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
3293 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
3294 * doc/install.texi (Configuration): Document --with-tls.
3295 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
3296 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
3297 (arm_tls_descseq_addr): New.
3298 (legitimize_tls_address): Add tlsdesc support.
3299 (arm_cannot_copy_insn_p): Check for tlscall.
3300 (arm_emit_tls_decoration): Likewise.
3301 * config/arm/arm.h (TARGET_GNU2_TLS): New.
3302 (OPTION_DEFAULT_SPECS): Add with-tls support.
3303 * config/arm/arm.md (R1_REGNUM): Define.
3305 * config/arm/arm.opt (tls_type): New enumeration type and values.
3306 (mtls-dialect): New switch.
3307 * config/arm/arm-opts.h (enum tls_type): New.
3309 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
3311 * attribs.c (register_attribute): Added assert to check that all
3312 attribute specs are registered with a name that is not empty and
3313 does not start with '_'.
3314 (decl_attributes): Avoid the lookup of the "naked" attribute spec
3315 if the function has no attributes.
3316 * tree.c (is_attribute_with_length_p): Removed.
3317 (is_attribute_p): Removed.
3318 (private_is_attribute_p): New.
3319 (private_lookup_attribute): New.
3320 (lookup_attribute): Removed.
3321 (lookup_ident_attribute): New.
3322 (remove_attribute): Require the first argument to be in the form
3323 'text', not '__text__'. Updated asserts.
3324 (merge_attributes): Use lookup_ident_attributes instead of
3326 (merge_dllimport_decl_attributes): Use remove_attribute.
3327 (attribute_list_contained): Likewise.
3328 (attribute_list_equal): Immediately return 1 if the arguments are
3330 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
3331 'int'. Require the first argument to be in the form 'text', not
3332 '__text__'. Require the second argument to be an identifier.
3333 (lookup_attribute): Made inline. Require the first argument to be
3334 in the form 'text', not '__text__'.
3335 (private_is_attribute_p, private_lookup_attribute): New.
3338 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
3340 * builtins.c: Add sync_ or SYNC__ to builtin names.
3341 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
3342 * omp-low.c: Add sync_ or SYNC__ to builtin names.
3344 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
3347 * config/avr/avr.md (extzv): New expander.
3349 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
3350 * config/avr/constraints.md (C04): New constraint.
3351 * doc/md.texi (Machine Constraints): Document it.
3353 2011-06-21 Jakub Jelinek <jakub@redhat.com>
3356 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
3357 unsignedp argument instead of 1 for clrsb_optab.
3358 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
3359 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
3360 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
3361 * optabs.c (widen_leading): Call widen_operand and expand_unop
3362 with 0 as unsignedp argument instead of 1 for clrsb_optab.
3363 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
3365 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
3367 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
3369 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
3371 * gensupport.c (add_define_attr): New static function.
3372 (is_predicable): Allow multi-alternative lists for the "predicable"
3374 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
3375 (process_one_cond_exec): Call alter_attrs_for_insn.
3376 * doc/md.texi (Defining Attributes): Mention some standard names.
3377 (Conditional Execution): Update documentation for "predicable".
3379 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
3380 __builtin_clrsbll): Document.
3381 * doc/rtl.texi (clrsb): New entry.
3382 * optabs.c (widen_leading): Renamed from widen_clz. New argument
3383 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
3384 (expand_unop): Handle clrsb_optab.
3385 (init_optabs): Initialize it.
3386 * optabs.h (enum optab_index): New entry OTI_clrsb.
3387 (clrsb_optab): Define.
3388 * genopinit.c (optabs): Add an entry for it.
3389 * builtins.c (expand_builtin): Handle clrsb builtin functions.
3390 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
3391 BUILT_IN_CLRSBLL): New.
3392 * rtl.def (CLRSB): New code.
3393 * dwarf2out.c (mem_loc_descriptor): Handle it.
3394 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3395 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
3397 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
3398 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
3399 (__ctzDI2): Move declaration.
3400 * config/bfin/bfin.md (clrsbsi2): New expander.
3401 (signbitssi2): Use the CLRSB rtx.
3402 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
3403 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
3405 2011-06-21 Richard Guenther <rguenther@suse.de>
3407 * ipa-inline-transform.c (inline_transform): Fix previous change.
3409 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
3411 PR tree-optimization/49478
3412 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
3413 with constant operand.
3415 2011-06-21 Richard Guenther <rguenther@suse.de>
3417 * ipa-inline-transform.c (inline_transform): Fix typo.
3419 2011-06-21 Richard Guenther <rguenther@suse.de>
3421 PR tree-optimization/49483
3422 * tree-vect-stmts.c (vectorizable_assignment): Also handle
3423 VIEW_CONVERT_EXPR conversions.
3425 2011-06-21 Joseph Myers <joseph@codesourcery.com>
3427 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
3428 * config/avr/avr-tables.opt: New file (generated).
3429 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
3430 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
3432 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
3433 (avr_option_override): Don't process -mmcu= argument here. Set
3434 avr_current_device using avr_mcu_index.
3435 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
3436 * config/avr/avr.opt (mmcu=): Use Enum.
3437 * config/avr/t-avr (avr-devices.o): Update dependencies.
3438 ($(srcdir)/config/avr/avr-tables.opt): New.
3439 * target.def (help): Remove.
3440 * doc/tm.texi.in (TARGET_HELP): Remove.
3441 * doc/tm.texi: Regenerate.
3442 * opts.c: Don't include target.h.
3443 (common_handle_option): Don't call targetm.help.
3444 * system.h (TARGET_HELP): Poison.
3445 * Makefile.in (opts.o): Update dependencies.
3447 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3449 * config/usegld.h: New file.
3450 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
3451 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
3452 (LIB_SPEC): Likewise. Search /lib.
3453 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
3454 (RDYNAMIC_SPEC): Handle GNU ld.
3455 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
3457 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
3458 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
3459 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
3460 (STACK_CHECK_STATIC_BUILTIN): Define.
3461 * config/sol2.opt (compat-bsd): Remove.
3462 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
3463 * config/sol2-bi.h: New file.
3464 * config/sol2-gld.h: Remove.
3465 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
3466 (NO_DBX_BNSYM_ENSYM): Remove.
3467 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3468 (STACK_CHECK_STATIC_BUILTIN): Remove.
3469 Test USE_GLD instead of TARGET_GNU_LD.
3470 * config/i386/sol2-10.h: Rename to ...
3471 * config/i386/sol2-bi.h .. this.
3472 (SUBTARGET_EXTRA_SPECS): Redefine.
3473 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
3474 (MULTILIB_DEFAULTS): Remove.
3475 (DEFAULT_ARCH32_P): Define.
3476 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
3477 (ARCH64_SUBDIR): Define.
3478 Test USE_GLD instead of TARGET_GNU_LD.
3479 (I386_EMULATION): Rename to ...
3480 (ARCH32_EMULATION): ... this.
3481 (X86_64_EMULATION): Rename to ...
3482 (ARCH64_EMULATION): ... this.
3483 (TARGET_LD_EMULATION): Remove.
3484 (LINK_ARCH_SPEC): Remove.
3485 * config/i386/sol2-gas.h: Remove.
3486 * config/i386/t-sol2-10: Rename to ...
3487 * config/i386/t-sol2-64: ... this.
3488 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
3489 (AS_SPARC64_FLAG): Define.
3490 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
3491 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
3492 depending on TARGET_CPU_DEFAULT.
3493 (CPP_CPU_SPEC): Redefine.
3494 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
3495 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
3496 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
3497 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
3498 ASM_ARCH_DEFAULT_SPEC): Redefine.
3499 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
3500 LINK_ARCH_DEFAULT_SPEC.
3501 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
3502 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
3503 (ARCH64_SUBDIR): Define.
3504 (LINK_ARCH64_SPEC): Redefine.
3505 (CC1_SPEC): Redefine.
3506 (OPTION_DEFAULT_SPECS): Redefine.
3507 (MULTILIB_DEFAULTS): Define.
3508 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
3509 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
3510 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
3511 (NO_DBX_BNSYM_ENSYM): Remove.
3512 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3513 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
3514 (TARGET_ASM_NAMED_SECTION): Likewise.
3515 (STACK_CHECK_STATIC_BUILTIN): Remove.
3516 * config/sparc/sol2-bi.h: Remove.
3517 * config/sparc/sol2-gas-bi.h: Remove.
3518 * config/sparc/sol2-gas.h: Remove.
3519 * config/sparc/sol2-gld-bi.h: Remove.
3520 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
3522 (*-*-solaris2*): ... here.
3524 2011-06-21 Christian Bruel <christian.bruel@st.com>
3527 * ipa-inline.c (can_inline_edge_p): Check
3528 !DECL_DISREGARD_INLINE_LIMITS.
3530 2011-06-21 Christian Bruel <christian.bruel@st.com>
3533 * cgraphunit.c (process_function_and_variable_attributes): warn when
3534 always_inline functions that are not inline.
3535 * ipa-inline-transform.c (inline_transform): Always call
3537 * tree-inline.c (tree_inlinable_function_p): Use error instead
3539 (expand_call_inline): Likewise.
3541 2011-06-21 Jakub Jelinek <jakub@redhat.com>
3543 * Makefile.in (dg_target_exps): Set.
3544 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
3545 instead of 7, try to divide it more evenly.
3547 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
3550 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
3551 (avx256_split_unaligned_store): New definition.
3552 (ix86_option_override_internal): Enable avx256 unaligned load/store
3553 splitting only when avx256_split_unaligned_load/store is set.
3555 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
3557 * regrename.c (scan_rtx_reg): Handle the case where we write to an
3558 open chain in a smaller mode without failing the entire block.
3560 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
3563 * combine.c (cant_combine_insn_p): Don't check zero/sign
3564 extended hard registers.
3566 2011-06-21 Alan Modra <amodra@gmail.com>
3568 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
3569 CONST high part large-toc address.
3570 (rs6000_tls_referenced_p): Make static.
3571 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
3573 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
3576 * combine.c (cant_combine_insn_p): Check zero/sign extended
3579 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3582 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
3583 one of the operands is a register.
3585 2011-06-20 Kai Tietz <ktietz@redhat.com>
3587 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
3588 operations in combination with binary and.
3590 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
3592 * regrename.c (do_replace): Don't update notes.
3594 2011-06-20 Alan Modra <amodra@gmail.com>
3596 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
3597 of toc-relative address in CONST.
3598 (rs6000_delegitimize_address): Recognize changed address.
3599 (rs6000_legitimize_reload_address): Likewise.
3600 (rs6000_emit_move): Don't force these constants to memory.
3601 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
3602 toc-relative address in CONST.
3603 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
3604 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
3606 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
3608 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
3609 (count_trailing_zeros): Likewise.
3611 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
3614 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
3615 .init_array can be used with .ctors on targets.
3616 * configure: Regenerated.
3618 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
3620 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
3621 if the element type is volatile.
3623 2011-06-18 Jan Hubicka <jh@suse.cz>
3625 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
3627 (lto_symtab_resolve_can_prevail_p): Likewise.
3628 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
3629 * cgraphbuild.c (record_reference): Remove extra body alias code.
3630 (mark_load): Likewise.
3631 (mark_store): Likewise.
3632 * cgraph.h (varpool_node): Remove extra_name filed;
3633 add alias_of and extraname_alias.
3634 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
3635 (varpool_alias_aliased_node): New inline function.
3636 (varpool_variable_node): New function.
3637 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
3638 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
3639 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
3640 (input_varpool_node): Likewise.
3641 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
3642 (varpool_externally_visible_p): Remove extra body alias code.
3643 (function_and_variable_visibility): Likewise.
3644 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
3645 (ipa_pta_execute): Use it.
3646 * varpool.c (varpool_remove_node): Remove extra name alias code.
3647 (varpool_mark_needed_node): Likewise.
3648 (varpool_analyze_pending_decls): Analyze aliases.
3649 (assemble_aliases): New functoin.
3650 (varpool_assemble_decl): Use it.
3651 (varpool_create_variable_alias): New function.
3652 (varpool_extra_name_alias): Rewrite.
3653 (varpool_for_node_and_aliases): New function.
3655 2011-06-18 Jakub Jelinek <jakub@redhat.com>
3658 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
3659 last_arg_constant and last argument doesn't match its predicate,
3660 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
3661 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
3662 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
3663 spelling of error message.
3664 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
3665 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
3666 const_0_to_255_operand instead of const_int_operand.
3669 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3671 * config/i386/sse.md (blendbits): Remove mode attribute.
3672 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3673 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3674 Check integer value of operand 3 in insn constraint.
3676 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
3678 PR rtl-optimization/48542
3679 * reload.c (find_equiv_reg): Stop looking when finding a
3681 * reload1.c (reload_as_needed): Invalidate all reload
3682 registers when crossing a setjmp-type call.
3684 2011-06-16 Jeff Law <law@redhat.com>
3686 * tree-ssa-threadupdate.c (struct redirection_data): New field
3688 (THREAD_TARGET2): Define.
3689 (redirection_data_eq): Also check that the intermediate edge is equal.
3690 (lookup_redirection_data): Drop useless argument. Extract the
3691 outgoing_edge and intermediate edge from E. Callers updated.
3692 (copy_phi_args, update_destination_phis): New functions.
3693 (fix_duplicate_block_edges): Likewise.
3694 (create_edge_and_update_destination_phis): Duplicate all the edges
3695 hung off e->aux. Use copy_phi_args.
3696 (create_duplicates): Use fix_duplicate_block_edges.
3697 (fixup_template_block): Likewise.
3698 (redirect_edges): If necessary, redirect the joiner block's incoming
3699 edge to the duplicate of the joiner block.
3700 (thread_block): Don't muck up loops when threading through a joiner
3702 (thread_through_loop_header): Handle threading through a joiner block.
3703 (mark_threaded_blocks, register_jump_thread): Likewise.
3704 * tree-flow.h (register_jump_thread): Add new argument. Callers
3706 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
3707 (thread_across_edge): Handle threading through a joiner block.
3709 2011-06-16 Martin Jambor <mjambor@suse.cz>
3711 PR tree-optimization/49343
3712 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
3713 calculate offset, provide 2nd operand for the new COMPONENT_REF.
3715 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
3717 * config/darwin-protos.h (machopic_select_rtx_section): Move to
3718 inside RTX_CODE ifdef.
3720 2011-06-16 Tom de Vries <tom@codesourcery.com>
3723 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
3724 Disallow NULL pointer for pointer arithmetic.
3726 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3730 2011-06-10 Wei Guozhi <carrot@google.com>
3733 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
3734 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
3735 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
3737 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
3739 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
3740 (arm_legitimate_ldrd_p): New prototype.
3741 (arm_output_ldrd): New prototype.
3742 * config/arm/arm.c (arm_check_ldrd_operands): New function.
3743 (arm_legitimate_ldrd_p): New function.
3744 (arm_output_ldrd): New function.
3746 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
3749 * doc/tm.texi.in: Update Copyright date.
3750 * doc/tm.texi: Regenerate.
3751 * targhooks.c (default_setup_incoming_varargs): Replace
3752 CUMULATIVE_ARGS* argument type with cumulative_args_t.
3753 (default_pretend_outgoing_varargs_named): Likewise.
3754 (hook_pass_by_reference_must_pass_in_stack): Likewise.
3755 (hook_callee_copies_named): Likewise.
3756 (default_function_arg_advance): Likewise.
3757 (default_function_arg): Likewise.
3758 (default_function_incoming_arg): Likewise.
3759 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
3760 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
3761 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
3762 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
3763 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
3764 * targhooks.h (default_setup_incoming_varargs): Likewise.
3765 (default_pretend_outgoing_varargs_named): Likewise.
3766 (hook_pass_by_reference_must_pass_in_stack): Likewise.
3767 (hook_callee_copies_named): Likewise.
3768 (default_function_arg_advance): Likewise.
3769 (default_function_arg): Likewise.
3770 (default_function_incoming_arg): Likewise.
3771 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
3772 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
3773 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
3774 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
3775 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
3776 * target.def (pass_by_reference): Likewise.
3777 (setup_incoming_varargs, strict_argument_naming): Likewise.
3778 (pretend_outgoing_varargs_named, callee_copies): Likewise.
3779 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
3780 (function_incoming_arg): Likewise.
3781 * target.h: Don't include "tm.h" .
3782 (cumulative_args_t): New typedef.
3783 [GCC_TM_H] (get_cumulative_args): New static inline function.
3784 [GCC_TM_H] (pack_cumulative_args): Likewise.
3785 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
3786 argument type with cumulative_args_t.
3787 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
3788 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
3789 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
3790 (frv_arg_partial_bytes, frv_function_arg): Likewise.
3791 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
3792 (frv_function_arg_1): Likewise.
3793 * config/s390/s390.c (s390_pass_by_reference): Likewise.
3794 (s390_function_arg_advance, s390_function_arg): Likewise.
3795 * config/m32c/m32c.c (m32c_function_arg): Likewise.
3796 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
3797 (m32c_strict_argument_naming): Likewise.
3798 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
3799 (spu_function_arg_advance): Likewise.
3800 (spu_setup_incoming_varargs): Likewise. Make static.
3801 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
3803 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
3804 CUMULATIVE_ARGS* argument type with cumulative_args_t.
3805 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
3806 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
3807 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
3808 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
3809 (mep_pass_by_reference, mep_function_arg): Likewise.
3810 (mep_function_arg_advance): Likewise.
3811 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
3812 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
3813 (m32r_function_arg, m32r_function_arg_advance): Likewise.
3814 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
3815 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
3816 (ix86_function_arg, ix86_pass_by_reference): Likewise.
3817 (ix86_setup_incoming_varargs): Likewise.
3818 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
3819 (sh_strict_argument_naming): Likewise.
3820 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
3821 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
3822 (sh_function_arg_advance, sh_function_arg): Likewise.
3823 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
3824 (pdp11_function_arg_advance): Likewise.
3825 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
3827 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
3828 * config/avr/avr.c (avr_function_arg): Likewise.
3829 (avr_function_arg_advance): Likewise.
3830 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
3831 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
3832 (xtensa_function_arg_1): Likewise.
3833 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
3835 (xstormy16_function_arg): Likewise.
3836 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
3837 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
3838 (fr30_function_arg_advance): Likewise.
3839 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
3840 (lm32_function_arg, lm32_function_arg_advance): Likewise.
3841 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
3842 (moxie_function_arg, moxie_function_arg_advance): Likewise.
3843 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
3844 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
3845 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
3846 (cris_function_arg, cris_function_incoming_arg): Likewise.
3847 (cris_function_arg_advance, cris_function_arg_1): Likewise.
3848 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
3849 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
3850 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
3851 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
3852 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
3853 (mn10300_arg_partial_bytes): Likewise.
3854 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
3855 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
3856 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
3857 (ia64_function_arg_1): Likewise.
3858 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
3859 (m68k_function_arg): Likewise.
3860 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
3861 (rs6000_function_arg, setup_incoming_varargs): Likewise.
3862 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
3863 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
3864 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
3865 (picochip_arg_advance): Likewise.
3866 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
3867 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
3868 (mcore_function_arg_advance): Likewise.
3869 * config/score/score.c (score_pass_by_reference): Likewise.
3870 (score_function_arg_advance): Likewise.
3871 (score_arg_partial_bytes): Likewise. Make static.
3872 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
3873 * config/arm/arm.c (arm_arg_partial_bytes): Replace
3874 CUMULATIVE_ARGS* argument type with cumulative_args_t.
3875 (arm_function_arg, arm_function_arg_advance): Likewise.
3876 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
3877 * config/pa/pa.c (pa_pass_by_reference): Likewise.
3878 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
3879 (pa_function_arg): Likewise.
3880 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
3881 (mips_function_arg, mips_function_arg_advance): Likewise.
3882 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
3883 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
3884 * config/vax/vax.c (vax_function_arg): Likewise.
3885 (vax_function_arg_advance): Likewise.
3886 * config/h8300/h8300.c (h8300_function_arg): Likewise.
3887 (h8300_function_arg_advance): Likewise.
3888 * config/v850/v850.c (v850_pass_by_reference): Likewise.
3889 (v850_strict_argument_naming, v850_function_arg): Likewise.
3890 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
3891 (v850_setup_incoming_varargs): Likewise.
3892 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
3893 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
3894 (mmix_function_arg, mmix_pass_by_reference): Likewise.
3895 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
3897 * config/bfin/bfin.c (setup_incoming_varargs): Replace
3898 CUMULATIVE_ARGS* argument type with cumulative_args_t.
3899 (bfin_function_arg_advance, bfin_function_arg): Likewise.
3900 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
3901 * calls.c (emit_call_1): Change type of args_so_far to
3902 cumulative_args_t. Changed all callers.
3903 (initialize_argument_information): Likewise.
3904 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
3905 * dse.c (get_call_args): Likewise.
3906 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
3907 * function.c (pass_by_reference, reference_callee_copied): Likewise.
3908 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
3909 New member args_so_far_v. Changed all users.
3910 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
3911 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
3912 * config/mips/mips.c (mips_output_args_xfer): Likewise.
3913 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
3914 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3915 * config/microblaze/microblaze.c (microblaze_expand_prologue):
3917 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
3918 m32r_pass_by_reference.
3920 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
3922 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
3923 argument to be a VEC of statements.
3924 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
3925 assert that pattern statements have to have their vector type set.
3926 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
3927 Change the first argument to be a VEC of statements. Update
3929 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
3930 (vect_handle_widen_mult_by_const): New function.
3931 (vect_recog_widen_mult_pattern): Change the first argument to be a
3932 VEC of statements. Update documentation. Check that the constant is
3933 INTEGER_CST. Support multiplication by a constant that fits an
3934 intermediate type - call vect_handle_widen_mult_by_const.
3935 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
3936 call. Handle additional pattern statements if necessary.
3938 2011-06-16 Nick Clifton <nickc@redhat.com>
3941 * config.gcc: Set cpu_type to v850 for any V850 architecture.
3942 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
3943 md_file, extra_modes, out_file and extra_options are these are all
3944 deduced from cpu_type.
3946 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
3948 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
3949 truncation mask to 63.
3951 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
3955 * longlong.h: Add AVR support:
3956 (count_leading_zeros): New macro.
3957 (count_trailing_zeros): New macro.
3958 (COUNT_LEADING_ZEROS_0): New macro.
3959 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
3960 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
3961 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
3962 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
3963 (LIB2FUNCS_EXCLUDE): Add _clz.
3964 * config/avr/libgcc.S (XCALL): Move up in file.
3965 (XJMP): New C Macro.
3966 (DEFUN): New asm macro.
3967 (ENDF): New asm macro.
3968 (__ffssi2): New function.
3969 (__ffshi2): New function.
3970 (__loop_ffsqi2): New function.
3971 (__ctzsi2): New function.
3972 (__ctzhi2): New function.
3973 (__clzdi2): New function.
3974 (__clzsi2): New function.
3975 (__clzhi2): New function.
3976 (__paritydi2): New function.
3977 (__paritysi2): New function.
3978 (__parityhi2): New function.
3979 (__parityqi2): New function.
3980 (__popcounthi2): New function.
3981 (__popcountsi2): New function.
3982 (__popcountdi2): New function.
3983 (__popcountqi2): New function.
3984 (__bswapsi2): New function.
3985 (__bswapdi2): New function.
3986 (__ashldi3): New function.
3987 (__ashrdi3): New function.
3988 (__lshrdi3): New function.
3989 Fix suspicous lines.
3991 2011-06-16 Richard Guenther <rguenther@suse.de>
3993 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
3995 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
3997 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
3998 equality compares against zero for the lower bit.
4000 2011-06-16 Jakub Jelinek <jakub@redhat.com>
4002 PR tree-optimization/49419
4003 * tree-vrp.c (execute_vrp): Call init_range_assertions
4004 before estimate_numbers_of_iterations, call
4005 free_number_of_iterations_estimates before calling
4006 remove_range_assertions.
4008 2011-06-16 Revital Eres <revital.eres@linaro.org>
4010 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
4011 (struct partial_schedule): Add rows_length field.
4012 (verify_partial_schedule): Check rows_length.
4013 (ps_insert_empty_row): Handle rows_length.
4014 (create_partial_schedule): Likewise.
4015 (free_partial_schedule): Likewise.
4016 (reset_partial_schedule): Likewise.
4017 (create_ps_insn): Remove rest_count argument.
4018 (remove_node_from_ps): Update rows_length.
4019 (add_node_to_ps): Update rows_length and call create_ps_insn
4020 without passing row_rest_count.
4021 (rotate_partial_schedule): Update rows_length.
4023 2011-06-16 Revital Eres <revital.eres@linaro.org>
4025 * ddg.c (add_intra_loop_mem_dep): New function.
4026 (build_intra_loop_deps): Call it.
4028 2011-06-13 Jeff Law <law@redhat.com>
4030 * df-problems.c (df_lr_local_compute): Manually CSE
4031 PIC_OFFSET_TABLE_REGNUM.
4032 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
4033 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
4035 2011-06-13 Jan Hubicka <jh@suse.cz>
4037 * cgraphunit.c (handle_alias_pairs): New function.
4038 (cgraph_finalize_compilation_unit): Use it.
4039 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
4040 as externally visible.
4042 2011-06-15 Richard Guenther <rguenther@suse.de>
4044 * expr.c (expand_expr_real_2): Reduce all integral types to
4046 (expand_expr_real_1): Likewise.
4048 2011-06-15 Martin Jambor <mjambor@suse.cz>
4050 PR tree-optimization/48613
4051 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
4052 ipa_node_params_vector is NULL.
4054 2011-06-15 Jakub Jelinek <jakub@redhat.com>
4057 * dwarf2out.c (dw_loc_list_node): Add force field.
4058 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
4059 location in the list, even if it is modified before first real insn.
4060 (output_loc_list): Emit empty ranges with force flag set.
4061 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
4063 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
4066 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
4067 (fence_to_rewind). Use it to notice when bookkeeping will be placed
4068 above a fence. Update comments.
4069 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
4070 placed just above it. Do not allow NULL place_to_insert.
4072 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
4074 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
4075 (slpeel_tree_peel_loop_to_edge): Don't call
4076 remove_dead_stmts_from_loop.
4077 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4078 remove irrelevant pattern statements. For irrelevant statements
4079 check if it is the last statement of a detected pattern, use
4080 corresponding pattern statement instead.
4081 (destroy_loop_vec_info): No need to remove pattern statements,
4082 only free stmt_vec_info.
4083 (vect_transform_loop): For irrelevant statements check if it is
4084 the last statement of a detected pattern, use corresponding
4085 pattern statement instead.
4086 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
4087 pattern statements. Set basic block for the new statement.
4088 (vect_pattern_recog): Update documentation.
4089 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
4090 operands of pattern statements.
4091 (vectorizable_call): Fix printing. In case of a pattern statement
4092 use the lhs of the original statement when creating a dummy
4093 statement to replace the original call.
4094 (vect_analyze_stmt): For irrelevant statements check if it is
4095 the last statement of a detected pattern, use corresponding
4096 pattern statement instead.
4097 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
4098 statements use gsi of the original statement.
4100 2011-06-14 Joseph Myers <joseph@codesourcery.com>
4102 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
4103 common/common-target-def.h.
4104 * target.def (default_target_flags, handle_option,
4105 supports_split_stack, optimization_table, init_struct,
4106 except_unwind_info, unwind_tables_default, have_named_sections):
4107 Move to common/common-target.def.
4108 * target.h (enum opt_levels, struct default_options): Move to
4109 common/common-target.h.
4110 * targhooks.c (default_except_unwind_info,
4111 dwarf2_except_unwind_info, sjlj_except_unwind_info,
4112 default_target_handle_option, empty_optimization_table): Move to
4113 common/common-targhooks.c.
4114 * targhooks.h (default_except_unwind_info,
4115 dwarf2_except_unwind_info, sjlj_except_unwind_info,
4116 default_target_handle_option, empty_optimization_table): Move to
4117 common/common-targhooks.h.
4118 * common/common-target-def.h: Include common/common-targhooks.h.
4119 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
4121 * common/common-target.def (handle_option, option_init_struct,
4122 option_optimization_table, default_target_flags,
4123 except_unwind_info, supports_split_stack, unwind_tables_default,
4124 have_named_sections): Move from target.def.
4125 (HOOK_PREFIX): Undefine at end of file.
4126 * common/common-target.h: Include input.h.
4127 (enum opt_levels, struct default_options): Move from target.h.
4128 * common/common-targhooks.c, common/common-targhooks.h: New.
4129 * config.gcc (target_has_targetm_common): Default to yes.
4130 (moxie*): Set target_has_targetm_common=no.
4131 (hppa*-*-*): Don't set target_has_targetm_common=yes.
4132 * doc/tm.texi: Regenerate.
4133 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
4134 (C_TARGET_DEF_H): Add common/common-targhooks.h.
4135 (GCC_OBJS): Remove vec.o.
4136 (OBJS): Remove hooks.o and vec.o.
4137 (OBJS-libcommon-target): Add vec.o, hooks.o and
4138 common/common-targhooks.o.
4139 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
4140 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
4141 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
4142 cfglayout.o, $(out_object_file), $(common_out_object_file)):
4143 Update dependencies.
4144 (common/common-targhooks.o): New.
4145 * common/config/default-common.c: Include tm.h. Add FIXME comment.
4146 * common/config/pa/pa-common.c: Include more headers. Take
4147 copyright dates from pa.c.
4148 (pa_option_optimization_table, pa_handle_option,
4149 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
4150 TARGET_HANDLE_OPTION): Move from pa.c.
4151 * common/config/alpha/alpha-common.c,
4152 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
4153 common/config/bfin/bfin-common.c,
4154 common/config/cris/cris-common.c,
4155 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
4156 common/config/h8300/h8300-common.c,
4157 common/config/i386/i386-common.c,
4158 common/config/ia64/ia64-common.c,
4159 common/config/iq2000/iq2000-common.c,
4160 common/config/lm32/lm32-common.c,
4161 common/config/m32c/m32c-common.c,
4162 common/config/m32r/m32r-common.c,
4163 common/config/m68k/m68k-common.c,
4164 common/config/mcore/mcore-common.c,
4165 common/config/mep/mep-common.c,
4166 common/config/microblaze/microblaze-common.c,
4167 common/config/mips/mips-common.c,
4168 common/config/mmix/mmix-common.c,
4169 common/config/mn10300/mn10300-common.c,
4170 common/config/pdp11/pdp11-common.c,
4171 common/config/picochip/picochip-common.c,
4172 common/config/rs6000/rs6000-common.c,
4173 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
4174 common/config/score/score-common.c, common/config/sh/sh-common.c,
4175 common/config/sparc/sparc-common.c,
4176 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
4177 common/config/vax/vax-common.c,
4178 common/config/xstormy16/xstormy16-common.c,
4179 common/config/xtensa/xtensa-common.c: New.
4180 * config/alpha/alpha.c: Include common/common-target.h.
4181 (alpha_option_optimization_table, alpha_handle_option,
4182 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4183 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
4184 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
4185 * config/arm/arm.c (arm_option_optimization_table,
4186 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4187 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
4189 * config/avr/avr.c (avr_option_optimization_table,
4190 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4192 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
4193 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
4194 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
4195 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
4196 * config/cris/cris.c (cris_option_optimization_table,
4197 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4198 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
4200 * config/fr30/fr30.c (fr30_option_optimization_table,
4201 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
4203 * config/frv/frv.c (frv_option_optimization_table,
4204 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
4205 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
4206 * config/h8300/h8300.c (h8300_option_optimization_table,
4207 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4208 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
4209 * config/i386/i386-protos.h (ix86_handle_option): Declare.
4210 * config/i386/i386.c: Include common/common-target.h.
4211 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
4212 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
4213 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
4214 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
4215 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
4216 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
4217 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
4218 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
4219 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
4220 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
4221 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
4222 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
4223 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
4224 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
4225 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
4226 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
4227 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
4228 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
4229 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
4230 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
4231 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
4232 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
4233 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
4234 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
4235 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
4236 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
4237 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
4238 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
4239 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
4240 ix86_option_optimization_table, ix86_option_init_struct,
4241 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
4242 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4243 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
4245 * config/i386/t-i386 (i386.o): Update dependencies.
4246 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
4247 * config/ia64/ia64.c (ia64_option_optimization_table,
4248 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4249 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4250 ia64_handle_option): Move to ia64-common.c.
4251 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
4252 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
4253 * config/lm32/lm32.c (lm32_option_optimization_table,
4254 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4256 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
4258 * config/m32r/m32r.c (m32r_option_optimization_table,
4259 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4260 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4261 m32r_handle_option): Move to m32r-common.c.
4262 (m32r_memory_move_cost): Remove comment referring to
4263 TARGET_HANDLE_OPTION.
4264 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
4265 Move to m68k-common.c.
4266 * config/mcore/mcore.c (mcore_option_optimization_table,
4267 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4268 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
4269 * config/mep/mep.c (mep_option_optimization_table,
4270 mep_handle_option, TARGET_HANDLE_OPTION,
4271 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
4272 Move to mep-common.c.
4273 * config/microblaze/microblaze.c
4274 (microblaze_option_optimization_table,
4275 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4276 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
4277 * config/mips/mips.c (mips_handle_option,
4278 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4279 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
4281 * config/mmix/mmix.c (mmix_option_optimization_table,
4282 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4283 Move to mmix-common.c.
4284 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
4285 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
4286 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4287 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
4288 * config/pa/pa.c: Include common/common-target.h.
4289 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4290 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4291 pa_handle_option): Move to pa-common.c.
4292 (pa_option_override): Use targetm_common.except_unwind_info.
4293 (pa_asm_output_mi_thunk, pa_function_section): Use
4294 targetm_common.have_named_sections.
4295 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
4296 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4297 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4298 pdp11_handle_option, pdp11_option_init_struct): Move to
4300 * config/picochip/picochip.c (picochip_option_optimization_table,
4301 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
4302 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
4303 * config/rs6000/rs6000.c: Include common/common-target.h.
4304 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
4305 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
4306 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
4307 rs6000_handle_option): Move to rs6000-common.c.
4308 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
4309 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
4310 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4311 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
4312 * config/s390/s390.c (processor_flags_table,
4313 s390_option_optimization_table, s390_option_init_struct,
4314 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
4315 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4316 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
4317 * config/s390/s390.h (processor_flags_table): Declare.
4318 * config/score/score.c (score_option_optimization_table,
4319 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4320 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
4321 score_handle_option): Move to score-common.c.
4322 * config/sh/sh.c (sh_option_optimization_table,
4323 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4324 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4325 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
4326 * config/sparc/sparc.c: Include common/common-target.h.
4327 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4328 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
4329 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
4330 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
4331 spu_option_init_struct): Move to spu-common.c.
4332 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
4333 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
4334 * config/v850/v850.c (small_memory_physical_max,
4335 v850_handle_memory_optionn v850_handle_option,
4336 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4337 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
4339 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
4340 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
4341 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4342 Move to xtensa-common.c.
4343 * cfglayout.c: Include common/common-target.h.
4344 (fixup_reorder_chain): Use targetm_common.have_named_sections.
4345 * cfgrtl.c: Include common/common-target.h.
4346 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
4347 targetm_common.have_named_sections.
4348 * dbxout.c: Include common/common-target.h.
4349 (dbxout_function_end): Use targetm_common.have_named_sections.
4350 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
4351 targetm_common.except_unwind_info.
4352 * dwarf2out.c: Include common/common-target.h.
4353 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
4354 dwarf2out_begin_prologue, dwarf2out_frame_init,
4355 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
4356 targetm_common.except_unwind_info.
4357 * except.c: Include common/common-target.h.
4358 (init_eh, finish_eh_generation,
4359 output_one_function_exception_table): Use
4360 targetm_common.except_unwind_info.
4361 (switch_to_exception_section): Use targetm_common.have_named_sections.
4362 * explow.c: Include common/common-target.h.
4363 * expr.c: Include common/common-target.h.
4364 (build_personality_function): Use targetm_common.except_unwind_info.
4365 * function.c: Include common/common-target.h.
4366 (expand_function_end): Use targetm_common.except_unwind_info.
4367 * haifa-sched.c: Include common/common-target.h.
4368 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
4369 * lto-opts.c: Include common/common-target.h instead of target.h.
4370 (lto_reissue_options): Use targetm_common.handle_option.
4371 * opts.c: Include common/common-target.h.
4372 (target_handle_option): Use targetm_common.handle_option.
4373 (init_options_struct): Update comment referring to
4374 targetm.target_option.optimization. Use
4375 targetm_common.default_target_flags,
4376 targetm_common.unwind_tables_default and
4377 targetm_common.option_init_struct.
4378 (default_options_optimization): Use
4379 targetm_common.option_optimization_table.
4380 (finish_options): Use targetm_common.except_unwind_info,
4381 targetm_common.unwind_tables_default,
4382 targetm_common.have_named_sections and
4383 targetm_common.supports_split_stack.
4384 * toplev.c: Include common/common-target.h.
4385 (process_options): Use targetm_common.have_named_sections.
4386 * tree-tailcall.c: Include common/common-target.h.
4387 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
4388 * tree.c: Include common/common-target.h.
4389 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
4390 * varasm.c: Include common/common-target.h.
4391 (resolve_unique_section, hot_function_section,
4392 default_function_section): Use targetm_common.have_named_sections.
4394 2011-06-14 Easwaran Raman <eraman@google.com>
4396 PR rtl-optimization/44194
4397 * dse.c: Include tree-flow.h
4398 (insn_info): Add new field non_frame_wild_read.
4399 (group_info): Add new fields escaped_n and escaped_p.
4400 (kill_on_calls): New variable.
4401 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
4402 (dse_step0): Initialize kill_on_calls.
4403 (can_escape): New function.
4404 (set_usage_bits): Add additional parameter; record information
4405 about escaped locations.
4406 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
4407 (dse_step2_nospill): Set kill_on_calls based on
4408 group->escaped_n and group->escaped_n.
4409 (add_wild_read): Refactor into...
4410 (reset_active_stores): ... New function, and
4411 (free_read_records): ... New function.
4412 (add_non_frame_wild_read): New function.
4413 (scan_insn): Call add_non_frame_wild_read on non-const calls.
4414 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
4415 (dse_step5_nospill): Call scan_reads_nospill for instructions
4416 marked as non_frame_wild_read.
4417 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
4419 2011-06-14 Joseph Myers <joseph@codesourcery.com>
4421 * common/common-target-def.h, common/common-target.def,
4422 common/common-target.h, common/config/default-common.c,
4423 common/config/pa/pa-common.c: New files.
4424 * Makefile.in (common_out_file, common_out_object_file,
4425 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
4426 (OBJS-libcommon-target): Include $(common_out_object_file).
4427 (prefix.o): Update dependencies.
4428 ($(common_out_object_file), common/common-target-hooks-def.h,
4429 s-common-target-hooks-def-h): New.
4430 (s-tm-texi): Also check timestamp on common-target.def.
4431 (build/genhooks.o): Update dependencies.
4432 * config.gcc (common_out_file, target_has_targetm_common): Define.
4433 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
4434 TARGET_ALWAYS_STRIP_DOTDOT.
4435 * configure.ac (common_out_object_file): Define.
4436 (common_out_file, common_out_object_file): Substitute.
4437 (common): Create directory.
4438 * configure: Regenerate.
4439 * doc/tm.texi.in (targetm_common): Document.
4440 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
4441 * doc/tm.texi: Regenerate.
4442 * genhooks.c (hook_array): Also include common/common-target.def.
4443 * prefix.c (tm.h): Don't include.
4444 (common/common-target.h): Include.
4445 (ALWAYS_STRIP_DOTDOT): Don't define.
4446 (update_path): Use targetm_common.always_strip_dotdot instead of
4447 ALWAYS_STRIP_DOTDOT.
4448 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
4450 2011-06-14 David Li <davidxl@google.com>
4452 * passes.c (execute_function_todo): Remove TODO_dump_func.
4453 (execute_one_pass): Remove TODO_dump_func.
4454 (execute_function_dump): New function.
4455 * tree-vrp.c: Remove TODO_dump_func.
4456 * regrename.c: Remove TODO_dump_func.
4457 * fwprop.c: Remove TODO_dump_func.
4458 * tree-into-ssa.c: Remove TODO_dump_func.
4459 * tree-complex.c: Remove TODO_dump_func.
4460 * tracer.c: Remove TODO_dump_func.
4461 * tree-loop-distribution.c: Remove TODO_dump_func.
4462 * postreload-gcse.c: Remove TODO_dump_func.
4463 * postreload.c: Remove TODO_dump_func.
4464 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
4465 * tree-tailcall.c: Remove TODO_dump_func.
4466 * ipa-cp.c: Remove TODO_dump_func.
4467 * final.c: Remove TODO_dump_func.
4468 * tree-emutls.c: Remove TODO_dump_func.
4469 * omp-low.c: Remove TODO_dump_func.
4470 * tree-ssa-dse.c: Remove TODO_dump_func.
4471 * tree-ssa-uncprop.c: Remove TODO_dump_func.
4472 * auto-inc-dec.c: Remove TODO_dump_func.
4473 * reorg.c: Remove TODO_dump_func.
4474 * tree-ssa-copyrename.c: Remove TODO_dump_func.
4475 * tree-ssa-ccp.c: Remove TODO_dump_func.
4476 * compare-elim.c: Remove TODO_dump_func.
4477 * mode-switching.c: Remove TODO_dump_func.
4478 * modulo-sched.c: Remove TODO_dump_func.
4479 * tree-call-cdce.c: Remove TODO_dump_func.
4480 * cse.c: Remove TODO_dump_func.
4481 * web.c: Remove TODO_dump_func.
4482 * tree-stdarg.c: Remove TODO_dump_func.
4483 * lto-streamer-out.c: Remove TODO_dump_func.
4484 * tree-ssa-math-opts.c: Remove TODO_dump_func.
4485 * tree-ssa-dom.c: Remove TODO_dump_func.
4486 * tree-nrv.c: Remove TODO_dump_func.
4487 * loop-init.c: Remove TODO_dump_func.
4488 * gimple-low.c: Remove TODO_dump_func.
4489 * ipa-inline.c: Remove TODO_dump_func.
4490 * tree-ssa-sink.c: Remove TODO_dump_func.
4491 * jump.c: Remove TODO_dump_func.
4492 * ifcvt.c: Remove TODO_dump_func.
4493 * tree-ssa-loop.c: Remove TODO_dump_func.
4494 * recog.c: Remove TODO_dump_func.
4495 * dse.c: Remove TODO_dump_func.
4496 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
4497 * matrix-reorg.c: Remove TODO_dump_func.
4498 * tree-eh.c: Remove TODO_dump_func.
4499 * regmove.c: Remove TODO_dump_func.
4500 * function.c: Remove TODO_dump_func.
4501 * tree-vectorizer.c: Remove TODO_dump_func.
4502 * ipa-split.c: Remove TODO_dump_func.
4503 * gcse.c: Remove TODO_dump_func.
4504 * tree-if-conv.c: Remove TODO_dump_func.
4505 * init-regs.c: Remove TODO_dump_func.
4506 * tree-ssa-phiopt.c: Remove TODO_dump_func.
4507 * implicit-zee.c: Remove TODO_dump_func.
4508 * lower-subreg.c: Remove TODO_dump_func.
4509 * bt-load.c: Remove TODO_dump_func.
4510 * tree-dfa.c: Remove TODO_dump_func.
4511 * except.c: Remove TODO_dump_func.
4512 * emit-rtl.c: Remove TODO_dump_func.
4513 * store-motion.c: Remove TODO_dump_func.
4514 * cfgexpand.c: Remove TODO_dump_func.
4515 * tree-cfgcleanup.c: Remove TODO_dump_func.
4516 * cfgcleanup.c: Remove TODO_dump_func.
4517 * tree-ssa-pre.c: Remove TODO_dump_func.
4518 * tree-sra.c: Remove TODO_dump_func.
4519 * tree-mudflap.c: Remove TODO_dump_func.
4520 * tree-ssa-copy.c: Remove TODO_dump_func.
4521 * cfglayout.c: Remove TODO_dump_func.
4522 * tree-ssa-forwprop.c: Remove TODO_dump_func.
4523 * tree-ssa-dce.c: Remove TODO_dump_func.
4524 * ira.c: Remove TODO_dump_func.
4525 * tree-ssa.c: Remove TODO_dump_func.
4526 * integrate.c: Remove TODO_dump_func.
4527 * tree-optimize.c: Remove TODO_dump_func.
4528 * tree-ssa-phiprop.c: Remove TODO_dump_func.
4529 * tree-object-size.c: Remove TODO_dump_func.
4530 * combine.c: Remove TODO_dump_func.
4531 * bb-reorder.c: Remove TODO_dump_func.
4532 * cprop.c: Remove TODO_dump_func.
4533 * var-tracking.c: Remove TODO_dump_func.
4534 * tree-profile.c: Remove TODO_dump_func.
4535 * tree-vect-generic.c: Remove TODO_dump_func.
4536 * reg-stack.c: Remove TODO_dump_func.
4537 * sched-rgn.c: Remove TODO_dump_func.
4538 * tree-ssa-structalias.c: Remove TODO_dump_func.
4539 * tree-switch-conversion.c: Remove TODO_dump_func.
4540 * tree-cfg.c: Remove TODO_dump_func.
4541 * tree-ssa-reassoc.c: Remove TODO_dump_func.
4542 * combine-stack-adj.c: Remove TODO_dump_func.
4543 * dce.c: Remove TODO_dump_func.
4544 * tree-ssanames.c: Remove TODO_dump_func.
4545 * regcprop.c: Remove TODO_dump_func.
4547 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
4550 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
4551 and properly handle result not in Pmode.
4553 2011-06-14 Robert Millan <rmh@gnu.org>
4555 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
4556 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
4559 * config/i386/kfreebsd-gnu64.h: New file.
4560 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
4561 with `i386/kfreebsd-gnu64.h'.
4563 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
4564 (GNU_USER_LINK_EMULATION64): New macros.
4565 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
4566 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
4567 of hardcoding `elf_i386' and `elf_x86_64'.
4569 2011-06-14 Nick Clifton <nickc@redhat.com>
4572 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
4575 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
4577 2011-06-14 Jakub Jelinek <jakub@redhat.com>
4580 * tree.h (DECL_NONSHAREABLE): Define.
4581 (struct tree_decl_common): Change decl_common_unused to
4582 decl_nonshareable_flag.
4583 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
4584 Ignore vars with DECL_NONSHAREABLE bit set.
4585 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
4586 on stores to automatic aggregate vars.
4588 PR rtl-optimization/49390
4590 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
4592 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
4595 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
4596 Tom de Vries <tom@codesourcery.com>
4599 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
4600 Document changed semantics.
4601 (max_stmt_executions, max_stmt_executions_int): Declare.
4602 * tree-data-ref.c (estimated_loop_iterations)
4603 (estimated_loop_iterations_int): Move functions...
4604 * tree-ssa-loop-niter.c (estimated_loop_iterations)
4605 (estimated_loop_iterations_int): here.
4606 (record_estimate): Change nb_iterations_upper_bound and
4607 nb_iterations_estimate semantics.
4608 (max_stmt_executions, max_stmt_executions_int): New function.
4609 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
4610 (max_stmt_executions_tree): this.
4611 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
4612 estimated_loop_iterations_tree.
4613 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
4614 max_stmt_executions_int instead of estimated_loop_iterations_int.
4615 * predict.c (predict_loops): Idem.
4616 * tree-parloops.c (parallelize_loops): Idem.
4617 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
4618 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
4619 (init_omega_for_ddr_1): Idem.
4620 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
4621 (loop_prefetch_arrays): Idem
4622 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
4623 max_stmt_executions instead of estimated_loop_iterations.
4624 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
4625 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
4626 instead of nb_iterations_upper_bound.
4628 2011-06-13 Jan Hubicka <jh@suse.cz>
4630 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
4632 2011-06-14 Richard Henderson <rth@redhat.com>
4635 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
4636 (based_loc_descr): Assert it's true.
4637 (compute_frame_pointer_to_fb_displacement): Set it, rather than
4638 aborting immediately.
4640 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
4641 Mingfeng Wu <mingfeng@faraday-tech.com>
4643 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
4645 2011-06-13 Jan Hubicka <jh@suse.cz>
4647 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
4649 2011-06-13 Jan Hubicka <jh@suse.cz>
4651 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
4652 similarly to DECL_COMDAT.
4653 * cgraphunit.c (cgraph_analyze_function): Likewise.
4654 * ipa.c (function_and_variable_visibility): Likewise.
4656 2011-06-13 Jan Hubicka <jh@suse.cz>
4658 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
4659 BINFO_VIRTUALS when streaming for ltrans unit.
4661 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
4663 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
4664 (movdi_internal64): Same.
4666 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
4669 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
4670 a set of similar patterns, where the MATCH_OPERAND for the function
4671 argument is replaced with individual references to hardware registers.
4672 (save_fpregs_<mode>): Ditto
4673 (restore_gpregs_<mode>): Ditto
4674 (return_and_restore_gpregs_<mode>): Ditto
4675 (return_and_restore_fpregs_<mode>): Ditto
4676 (return_and_restore_fpregs_aix_<mode>): Ditto
4678 2011-06-13 Jan Hubicka <jh@suse.cz>
4680 * ipa-utils.c (postorder_stack): New structure.
4681 (ipa_reverse_postorder): Handle aliases.
4683 2011-06-13 Jan Hubicka <jh@suse.cz>
4685 * ipa-inline.c (reset_edge_caches): Walk aliases.
4686 (update_caller_keys): Do not test inlinability of aliases.
4687 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
4688 (do_estimate_growth): Fix typo.
4690 2011-06-13 Jan Hubicka <jh@suse.cz>
4692 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
4693 (can_remove_node_now_p): ... here; handle same comdat groups.
4694 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
4695 (inline_call): Update use of can_remove_node_now_p.
4697 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4699 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
4700 condition to disallow non-identical memory locations.
4701 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
4702 preference to bit manipulation instructions.
4704 2011-06-13 Jan Hubicka <jh@suse.cz>
4706 * cgraph.c (cgraph_for_node_thunks_and_aliases,
4707 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
4708 (nonremovable_p): New function.
4709 (cgraph_can_remove_if_no_direct_calls_p): New function.
4710 (used_from_object_file_p): New functoin.
4711 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
4712 references from aliases.
4713 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
4714 * ipa-inline.c (check_caller_edge): New function.
4715 (want_inline_function_called_once_p): Use it; accept aliases called
4717 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
4719 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4722 * config/arm/neon.md (vec_pack_trunc): Set the lengths
4723 correctly for the case with Quad vectors.
4725 2011-06-13 Jakub Jelinek <jakub@redhat.com>
4726 Ira Rosen <ira.rosen@linaro.org>
4728 PR tree-optimization/49352
4729 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
4730 all, make sure loop_use_stmt after the loop is a def stmt of a used
4731 SSA_NAME that is the only one defined inside of the loop. Don't
4732 check for COND_EXPR and GIMPLE_BINARY_RHS.
4733 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
4734 check_reduction is true.
4736 2011-06-11 Jan Hubicka <jh@suse.cz>
4739 * ipa.c (cgraph_externally_visible_p): Check resolution info.
4741 2011-06-11 Jan Hubicka <jh@suse.cz>
4744 * ipa-inline-transform.c: Include tree-pass.h
4745 (inline_transform): Set TODO_update_ssa_only_virtuals.
4746 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
4748 2011-06-11 Jan Hubicka <jh@suse.cz>
4751 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
4754 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
4756 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
4757 Take number of iterations to peel into account for equally frequent
4758 misalignment values.
4760 2011-06-11 Jan Hubicka <jh@suse.cz>
4762 * lto-streamer-out.c (produce_symtab): Stream out the newly
4763 represented aliases.
4765 2011-06-11 Jan Hubicka <jh@suse.cz>
4767 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
4769 (ipa_update_after_lto_read): Likewise.
4770 (ipa_write_node_info): Do not sream call_with_var_arguments.
4771 (ipa_read_node_info): Likewise.
4773 2011-06-11 Jan Hubicka <jh@suse.cz>
4775 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
4777 2011-06-11 Jan Hubicka <jh@suse.cz>
4779 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
4780 (lto_symtab_resolve_can_prevail_p): Likewise.
4781 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
4782 * cgraph.c (same_body_aliases_done): New global var.
4783 (cgraph_same_body_alias_1): Rename to ...
4784 (cgraph_create_function_alias): ... this one; reorg to new
4786 (cgraph_same_body_alias): Use cgraph_create_function_alias;
4787 record references when asked to.
4788 (cgraph_add_thunk): Fix formating.
4789 (cgraph_get_node): Kill same body alias code.
4790 (cgraph_node_for_asm): Likewise.
4791 (cgraph_remove_same_body_alias): Remove.
4792 (cgraph_remove_node): Kill same body alias code.
4793 (cgraph_mark_address_taken_node): Mark also the aliased function
4794 as having address taken.
4795 (dump_cgraph_node): Dump same body aliases.
4796 (cgraph_for_node_thunks_and_aliases): Update for new alias
4798 (cgraph_for_node_and_aliases): Likewise.
4799 * cgraph.h (same_body): Kll pointer.
4800 (same_body_alias): Update comment.
4801 (same_body_aliases_done): Declare.
4802 (cgraph_remove_same_body_alias): Remove declaration.
4803 (cgraph_create_function_alias): Declare.
4804 (cgraph_process_same_body_aliases): Declare.
4805 (cgraph_function_with_gimple_body_p): Check for alias.
4806 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
4807 (cgraph_alias_aliased_node): New function.
4808 (cgraph_function_node): Update for new aliases.
4809 (cgraph_function_or_thunk_node): Likewise.
4810 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
4811 (inline_call): Remove dead aliases.
4812 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
4813 name hack for same body aliases.
4814 (clone_of_p): Look through aliases.
4815 (verify_cgraph_node): Verify aliases.
4816 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
4817 (cgraph_process_same_body_aliases): New function.
4818 (process_function_and_variable_attributes): Disable weakref warning on
4820 (cgraph_analyze_functions): Handle aliases.
4821 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
4822 (assemble_thunks): Rename to ...
4823 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
4824 (cgraph_expand_function): Remove alias output code.
4825 (cgraph_output_in_order): Skip aliases.
4826 (cgraph_preserve_function_body_p): Aliases don't need preserving.
4827 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
4828 (ipa_record_reference): Do not assert on alias references.
4829 (ipa_ref_has_aliases_p): New function.
4830 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
4831 (ipa_ref_has_aliases_p): Declare.
4832 * lto-cgraph.c (lto_output_node): Handle aliases.
4833 (input_node): Likewise.
4834 * lto-streamer-out.c (lto_output): Skip aliases.
4835 (produce_symtab): Kill same_body_alias code.
4836 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
4837 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
4838 * ipa-inline.c (update_caller_keys): Walk aliases.
4839 (inline_small_functions): Fix thinko in previous patch.
4840 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
4841 (function_and_variable_visibility): Do not walk same body aliases.
4842 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
4843 (ipa_pta_execute): Use it.
4845 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
4847 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
4848 (*vec_dupv2df): Rename from vec_dupv2df.
4849 (vec_dupv2df): New expander.
4851 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
4853 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
4855 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
4857 * config/i386/i386.md: Use default value in "isa" attribute.
4858 * config/i386/sse.md: Ditto.
4859 * config/i386/mmx.md: Ditto.
4861 2011-06-10 Wei Guozhi <carrot@google.com>
4864 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
4865 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
4866 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
4868 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
4870 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
4871 (arm_legitimate_ldrd_p): New prototype.
4872 (arm_output_ldrd): New prototype.
4873 * config/arm/arm.c (arm_check_ldrd_operands): New function.
4874 (arm_legitimate_ldrd_p): New function.
4875 (arm_output_ldrd): New function.
4877 2011-06-10 David Li <davidxl@google.com>
4879 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
4880 * passes.c (passr_eq): New function.
4881 (create_pass_tab): New function.
4882 (pass_traverse): New function.
4883 (dump_one_pass): New function.
4884 (dump_pass_list): New function.
4885 (dump_passes): New function.
4887 2011-06-10 Jan Hubicka <jh@suse.cz>
4889 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
4890 setting the nothrow flag.
4891 * ipa-reference.c (propagate): Skip aliases.
4892 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
4893 (propagate_nothrow): Skip aliases; do not update cgraph.
4894 (local_pure_const): Do not update cgraph.
4895 * tree-profile.c (tree_profiling): Do fixup_cfg.
4897 2011-06-10 Jan Hubicka <jh@suse.cz>
4899 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
4900 (cgraph_local_node_p): ... here; handle aliases.
4901 (has_addr_references_p): Break out from ...;
4902 (cgraph_remove_unreachable_nodes) ... here.
4904 2011-06-10 Jan Hubicka <jh@suse.cz>
4906 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
4907 * common.opt (flag_inline_functions_called_once): Do not
4910 2011-06-10 Jan Hubicka <jh@suse.cz>
4912 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
4913 (ipcp_initialize_node_lattices): Do not deal with aliases;
4914 Do not try to propagate through thunks.
4915 (ipcp_change_tops_to_bottom): Do not deal with aliases.
4917 2011-06-10 Jan Hubicka <jh@suse.cz>
4919 * ipa-prop.c (ipa_write_node_info): Stream jump functions
4921 (ipa_read_node_info): Likewise.
4923 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4926 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
4927 (build_and_insert_call): Likewise.
4928 (build_and_insert_ref): New.
4929 (gimple_expand_builtin_pow): Minor cleanup.
4930 (gimple_expand_builtin_cabs): New.
4931 (execute_cse_sincos): Add case for BUILT_IN_CABS.
4933 2011-06-10 Jan Hubicka <jh@suse.cz>
4935 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
4936 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
4937 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
4938 (ipcp_propagate_stage): Skip aliases when propagating.
4939 (ipcp_need_redirect_p): Skip aliases.
4940 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
4941 collect_callers_of_node.
4942 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
4944 (ipa_compute_jump_functions): Look through aliases.
4946 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4948 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
4950 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
4952 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
4954 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
4956 2011-06-10 Jan Hubicka <jh@suse.cz>
4958 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
4959 Update call of gimple_get_virt_method_for_binfo.
4960 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
4961 refuse_thunks parameter.
4962 (gimple_fold_call): Update.
4963 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
4965 2011-06-10 Jan Hubicka <jh@suse.cz>
4967 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
4968 (not_all_callers_have_enough_arguments_p): ... this one; turn into
4969 worker for cgraph_for_node_and_aliases.
4970 (convert_callers_for_node): Break out from ...
4971 (convert_callers): ... here.
4972 (modify_function): Use collect_callers_of_node.
4973 (ipa_early_sra): Use cgraph_for_node_and_aliases.
4975 2011-06-10 Richard Guenther <rguenther@suse.de>
4977 PR tree-optimization/49361
4978 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
4979 when not already in gimple form.
4981 2011-06-10 Richard Guenther <rguenther@suse.de>
4984 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
4985 FOR_EACH_PHI_OR_STMT_USE.
4987 2011-06-10 Jan Hubicka <jh@suse.cz>
4989 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
4990 (clone_inlined_nodes): ... here.
4991 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
4992 to real destination prior inlining.
4993 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
4994 can_early_inline_edge_p, want_early_inline_function_p,
4995 want_early_inline_function_p, want_inline_small_function_p,
4996 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
4997 edge_badness, update_all_callee_keys, lookup_recursive_calls,
4998 add_new_edges_to_heap, inline_small_functions, flatten_function,
4999 inline_always_inline_functions, early_inline_small_functions): Use
5000 cgraph_function_or_thunk_node.
5001 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
5002 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
5003 (do_estimate_edge_growth_1): Break out from ...
5004 (do_estimate_growth) ... here; walk aliases.
5005 (inline_generate_summary): Skip aliases.
5007 2011-06-10 Richard Guenther <rguenther@suse.de>
5009 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
5010 forward when combining, visit inserted stmts when a stmt was changed.
5012 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
5014 * tree.h (error_operand_p): Add.
5015 * dbxout.c (dbxout_type_fields): Use the latter.
5016 * c-decl.c (add_stmt): Likewise.
5017 * gimplify.c (omp_add_variable, omp_notice_variable,
5018 gimplify_scan_omp_clauses): Likewise.
5020 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
5022 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
5023 when a value is actually passed in regs.
5025 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
5026 Laurent Rougé <laurent.rouge@menta.fr>
5028 * doc/invoke.texi (SPARC options): Add -mflat.
5029 * config/sparc/sparc.opt: Likewise.
5030 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
5031 (sparc_flat_expand_prologue): Declare.
5032 (sparc_flat_expand_epilogue): Likewise.
5033 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
5034 (CPP_ENDIAN_SPEC): Replace with...
5035 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
5036 (CPP_SPEC): Adjust to above change.
5037 (EXTRA_SPECS): Likewise.
5038 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
5039 (INCOMING_REGNO): Likewise.
5040 (OUTGOING_REGNO): Likewise.
5041 (LOCAL_REGNO): Likewise.
5042 (SETUP_FRAME_ADDRESSES): Likewise.
5043 (FIXED_REGISTERS): Set 0 for %fp.
5044 (CALL_USED_REGISTERS): Likewise.
5045 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
5046 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
5047 (RETURN_ADDR_REGNUM): Define.
5048 (RETURN_ADDR_RTX): Use it.
5049 (INCOMING_RETURN_ADDR_REGNUM): Define.
5050 (INCOMING_RETURN_ADDR_RTX): Use it.
5051 (DWARF_FRAME_RETURN_COLUMN): Likewise.
5052 (EH_RETURN_REGNUM): Define.
5053 (EH_RETURN_STACKADJ_RTX): Use it.
5054 (EH_RETURN_HANDLER_RTX): Delete.
5055 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
5056 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
5058 (struct machine_function): Add frame_size, apparent_frame_size,
5059 frame_base_reg, frame_base_offset, n_global_fp_regs and
5060 save_local_in_regs_p fields.
5061 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
5062 sparc_frame_base_offset, sparc_n_global_fp_regs,
5063 sparc_save_local_in_regs_p): New macros.
5064 (sparc_option_override): Error out if -fcall-saved-REG is specified
5066 (eligible_for_restore_insn): Fix formatting.
5067 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
5068 (eligible_for_sibcall_delay): Likewise.
5069 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
5070 (sparc_legitimate_address_p): Adjust to above change.
5071 (save_global_or_fp_reg_p): New predicate.
5072 (return_addr_reg_needed_p): Likewise.
5073 (save_local_or_in_reg_p): Likewise.
5074 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
5075 (SORR_SAVE, SORR_RESTORE): Delete.
5076 (sorr_pred_t): New typedef.
5077 (sorr_act_t): New enum.
5078 (save_or_restore_regs): Rename to...
5079 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
5080 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
5081 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
5082 mechanism. Add CFI information for double-word saves in 32-bit mode.
5083 (emit_adjust_base_to_offset): New function extracted from...
5084 (emit_save_or_restore_regs): ...this. Rename the rest to...
5085 (emit_save_or_restore_regs_global_fp_regs): ...this.
5086 (emit_save_or_restore_regs_local_in_regs): New function.
5087 (gen_create_flat_frame_[123]): New functions.
5088 (sparc_expand_prologue): Use SIZE local variable. Adjust.
5089 (sparc_flat_expand_prologue): New function.
5090 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
5091 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
5092 (sparc_flat_expand_epilogue): New function.
5093 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
5094 (output_return): Likewise.
5095 (output_sibcall): Likewise.
5096 (sparc_output_mi_thunk): Likewise.
5097 (sparc_frame_pointer_required): Likewise.
5098 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
5099 function optimization.
5100 * config/sparc/sparc.md (flat): New attribute.
5101 (prologue): Add TARGET_FLAT handling.
5102 (save_register_window): Disable if TARGET_FLAT.
5103 (create_flat_frame_[123]): New patterns.
5104 (epilogue): Add TARGET_FLAT handling.
5105 (sibcall_epilogue): Likewise.
5106 (eh_return): New expander.
5107 (eh_return_internal): New insn and splitter.
5108 (return_internal): Add TARGET_FLAT handling.
5109 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
5110 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
5111 (nonlocal_goto): Add TARGET_FLAT handling.
5112 * config/sparc/t-elf: Add -mflat multilib.
5113 * config/sparc/t-leon: Likewise.
5115 2011-06-10 Jan Hubicka <jh@suse.cz>
5117 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
5118 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
5119 (self_recursive_p): Use cgraph_function_node.
5120 (propagate_pure_const): Likewise.
5121 (propagate_nothrow): Likewise.
5122 * ipa-reference.c (ipa_reference_get_not_read_global): Use
5123 cgraph_function_node.
5124 (propagate_bits): Likewise.
5125 (propagate): Likewise.
5127 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5128 Richard Earnshaw <rearnsha@arm.com>
5130 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
5131 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
5132 (*thumb2_movdi_vfp): Delete.
5133 (*arm_movdi_vfp_cortexa8): Delete.
5134 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
5135 (*movdi_vfp_cortexa8): Likewise.
5137 2011-06-10 Richard Guenther <rguenther@suse.de>
5139 * stor-layout.c (initialize_sizetypes): Give names to all
5142 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
5144 PR tree-optimization/49318
5145 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
5146 irrelevant pattern statements.
5148 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
5150 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
5153 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
5156 2011-06-09 Jan Hubicka <jh@suse.cz>
5158 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
5159 do not recompute reachable flag.
5160 (cgraph_finalize_function, cgraph_analyze_functions): Set
5161 redefined_extern_inline here.
5163 2011-06-09 Jan Hubicka <jh@suse.cz>
5165 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
5166 (cgraph_only_called_directly_p): ... this one; bring offline.
5167 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5168 varpool_used_from_object_file_p): Drop names from the declaratoin.
5169 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
5170 collect_callers_of_node): New.
5171 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
5172 (cgraph_edge_recursive_p): Use cgraph_function_node.
5173 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
5174 (cgraph_node_cannot_be_local_p_1): Break out from ...
5175 (cgraph_node_can_be_local_p): ... here; walk aliases.
5176 (cgraph_for_node_thunks_and_aliases): New function.
5177 (cgraph_for_node_and_aliases): New function.
5178 (cgraph_make_node_local_1): Break out from ...
5179 (cgraph_make_node_local) ... here; use
5180 cgraph_for_node_thunks_and_aliases.
5181 (cgraph_set_nothrow_flag_1): Break out from ...
5182 (cgraph_set_nothrow_flag) ... here;
5183 use cgraph_for_node_thunks_and_aliases.
5184 (cgraph_set_const_flag_1): Break out from ...
5185 (cgraph_set_const_flag) ... here;
5186 use cgraph_for_node_thunks_and_aliases.
5187 (cgraph_set_pure_flag_1): Break out from ...
5188 (cgraph_set_pure_flag) ... here;
5189 use cgraph_for_node_thunks_and_aliases.
5190 (cgraph_propagate_frequency_1): Break out from ...
5191 (cgraph_propagate_frequency) ... here; use
5192 cgraph_for_node_thunks_and_aliases.
5193 (cgraph_used_from_object_file_p): Do not care about aliases.
5194 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
5196 (collect_callers_of_node_1, collect_callers_of_node): New functions.
5198 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
5200 PR rtl-optimization/49154
5201 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
5202 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
5203 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
5204 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
5205 * config/cris/cris.h (cris_register_move_cost): Remove
5206 !TARGET_V32 code. Tweak comments.
5208 2011-06-09 Jan Hubicka <jh@suse.cz>
5210 * cgraphbuild.c (record_eh_tables): Mark personality function as having
5213 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
5215 PR rtl-optimization/49154
5216 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
5217 is a matching slot in the hashtable, assign it to classes_ptr.
5219 PR rtl-optimization/49154
5220 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
5222 * doc/tm.texi: Regenerate.
5224 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
5227 * config/sh/sh.md (UNSPEC_CHKADD): New.
5228 (chk_guard_add): New define_insn_and_split.
5229 (symGOT_load): Use chk_guard_add instead of blockage.
5231 2011-06-09 Kai Tietz <ktietz@redhat.com>
5233 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
5235 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
5237 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
5239 2011-06-09 Wei Guozhi <carrot@google.com>
5242 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
5243 (peephole2 for conditional move): Generate 16 bit instructions.
5245 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
5247 * config/i386/i386.md (*movdi_internal_rex64): Merge
5248 alternatives 6 and 8.
5250 2011-06-09 David Li <davidxl@google.com>
5252 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5253 * passes.c (passr_eq): New function.
5254 (create_pass_tab): New function.
5255 (pass_traverse): New function.
5256 (dump_one_pass): New function.
5257 (dump_pass_list): New function.
5258 (dump_passes): New function.
5260 2011-06-09 David Li <davidxl@google.com>
5262 * tree-complex.c (tree_lower_complex): Gate cleanup.
5263 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
5264 (execute_optimize_stdarg): Ditto.
5265 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
5266 (execute_cleanup_eh_1): Ditto.
5267 (execute_cleanup_eh): Ditto.
5268 * gcse.c (gate_rtl_pre): Ditto.
5269 (execute_rtl_pre): Ditto.
5270 * except.c (finish_eh_generation): Ditto.
5271 (convert_to_eh_region_ranges): Ditto.
5272 * cprop.c (one_cprop_pass): Ditto.
5274 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
5277 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
5278 in all basic blocks.
5280 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5282 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
5283 (HAVE_ENABLE_EXECUTE_STACK): Define.
5284 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
5285 (HAVE_ENABLE_EXECUTE_STACK): Define.
5286 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
5287 (HAVE_ENABLE_EXECUTE_STACK): Define.
5288 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
5289 (ENABLE_EXECUTE_STACK): Remove.
5290 (HAVE_ENABLE_EXECUTE_STACK): Define.
5291 [IN_LIBGCC2]: Don't include <windows.h>.
5292 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5293 (HAVE_ENABLE_EXECUTE_STACK): Define.
5294 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
5295 (HAVE_ENABLE_EXECUTE_STACK): Define.
5296 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
5297 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
5298 (HAVE_ENABLE_EXECUTE_STACK): Define.
5299 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
5300 (HAVE_ENABLE_EXECUTE_STACK): Define.
5301 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
5302 (HAVE_ENABLE_EXECUTE_STACK): Define.
5303 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5304 (HAVE_ENABLE_EXECUTE_STACK): Define.
5305 * config/alpha/alpha.c (alpha_trampoline_init): Test
5306 HAVE_ENABLE_EXECUTE_STACK.
5307 * config/i386/i386.c (ix86_trampoline_init): Likewise.
5308 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5309 (sparc64_initialize_trampoline): Likewise.
5310 * libgcc2.c [L_enable_execute_stack]: Remove.
5311 * system.h (ENABLE_EXECUTE_STACK): Poison.
5312 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
5313 * doc/tm.texi: Regenerate.
5314 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
5316 2011-06-09 Jakub Jelinek <jakub@redhat.com>
5319 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
5320 variable. After resetting and rescanning insn continue with previous
5323 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5325 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
5326 (gcc_cv_ld_hidden): Likewise.
5327 * configure: Regenerate.
5328 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
5329 (ix86_stack_protect_fail): Mark unused.
5330 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
5331 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
5332 [TARGET_MACHO]: Don't define.
5333 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
5334 (TARGET_STACK_PROTECT_FAIL): Likewise.
5335 (rs6000_stack_protect_fail): Mark unused.
5336 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
5337 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
5339 2011-06-08 Andi Kleen <ak@linux.intel.com>
5341 * varasm.c (get_section): Print location of other conflict
5342 for section conflicts.
5344 2011-06-08 Andi Kleen <ak@linux.intel.com>
5346 * config/i386/driver-i386.c (host_detect_local_cpu):
5347 Add model 0x2d Intel CPU.
5349 2011-06-08 Andi Kleen <ak@linux.intel.com>
5351 * reginfo.c (global_regs_decl): Add.
5352 (globalize_reg): Add decl parameter. Compute location. Pass location
5353 to warnings and add inform. Store decl in global_regs_decl.
5354 * rtl.h (globalize_reg): Update prototype.
5355 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
5357 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
5359 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
5361 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
5364 * config/sh/predicates.md (general_movsrc_operand): Check
5365 mode for memory with indexed address for QI and HImode.
5366 (general_movdst_operand): Likewise.
5368 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
5370 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
5372 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
5374 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
5375 (num_ssa_operands): Likewise.
5376 (op_iter_init_phiuse): Forward-declare.
5377 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
5379 2011-06-08 Nick Clifton <nickc@redhat.com>
5381 * doc/invoke.texi (ARM Options): Update description of
5384 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
5386 * config/i386/driver-i386.c (host_detect_local_cpu): Support
5387 unknown Intel family 0x6 CPUs.
5389 2011-06-08 Martin Jambor <mjambor@suse.cz>
5391 * tree-sra.c (mark_rw_status): Removed.
5392 (analyze_access_subtree): New parameter parent instead of
5393 mark_read and mark_write, propagate from that.
5395 2011-06-08 Julian Brown <julian@codesourcery.com>
5397 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
5398 for double-precision helper functions in hard-float mode if only
5399 single-precision arithmetic is supported in hardware.
5401 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
5403 PR rtl-optimization/49303
5404 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
5405 code_motion_path_driver returned 0 or 1.
5406 (sel_region_finish): Clear h_d_i_d.
5408 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
5410 * config/sh/sh.c (prepare_move_operands): Set pic register
5411 appropriately for global and local dynamic tls models even
5412 if flag_pic is unset.
5414 2011-06-07 Jason Merrill <jason@redhat.com>
5416 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
5418 2011-06-07 Xinliang David Li <davidxl@google.com>
5419 * passes.c (enable_disable_pass): Handle assembler name.
5420 (is_pass_explicitly_enabled_or_disabled): Ditto.
5422 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5424 PR tree-optimization/48497
5425 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
5427 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5429 PR tree-optimization/46728
5430 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
5431 to use gimple_val_nonnegative_real_p.
5432 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
5433 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
5435 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
5437 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
5439 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
5441 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
5444 2011-06-07 Richard Guenther <rguenther@suse.de>
5446 * stor-layout.c (initialize_sizetypes): Initialize all
5447 sizetypes based on target definitions.
5448 (set_sizetype): Remove.
5449 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
5450 * tree.h (set_sizetype): Remove.
5452 2011-06-07 Nick Clifton <nickc@redhat.com>
5454 * config.gcc: Unify V850 architecture options and add support for
5455 newer V850 architectures.
5456 * config/v850/t-v850e: Delete.
5458 2011-06-07 Richard Guenther <rguenther@suse.de>
5460 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
5461 Call set_sizetype from here.
5463 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
5465 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
5466 (*maddhisi4tb, *maddhisi4tt): New define_insns.
5468 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
5469 Andrew Stubbs <ams@codesourcery.com>
5471 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
5473 * doc/md.texi (Canonicalization of Instructions): Document widening
5474 multiply canonicalization.
5476 2011-06-07 Jakub Jelinek <jakub@redhat.com>
5478 PR gcov-profile/49299
5479 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
5481 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
5483 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
5485 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
5486 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
5487 vect_recog_pow_pattern): Likewise.
5488 (vect_pattern_recog_1): Remove declaration.
5489 (widened_name_p): Remove declaration. Add new argument to specify
5490 whether to check that both types are either signed or unsigned.
5491 (vect_recog_widen_mult_pattern): Update documentation. Handle
5492 unsigned patterns and multiplication by constants.
5493 (vect_pattern_recog_1): Update vect_recog_func references. Use
5494 statement information from the statement returned from pattern
5495 detection functions.
5496 (vect_pattern_recog): Update vect_recog_func reference.
5497 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
5498 multiplication by a constant use the type of the other operand.
5500 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
5502 PR rtl-optimization/49145
5503 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
5505 2011-06-06 Jakub Jelinek <jakub@redhat.com>
5508 * dwarf2out.c (native_encode_initializer): Decrement count in each
5512 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
5516 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
5517 if stmt folded into nothing.
5518 * tree-inline.c (fold_marked_statements): If a builtin at the end of
5519 a bb folded into nothing, just update cgraph edges and move to next bb.
5520 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
5521 to be NULL. Don't compute count and frequency if new_call is NULL.
5523 2011-06-04 Diego Novillo <dnovillo@google.com>
5525 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
5526 (cgraph.o): Likewise.
5527 (cgraphunit.o): Likewise.
5528 * cgraphunit.c: Include lto-streamer.h
5529 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
5531 * lto-streamer-in.c (unpack_value_fields): Call
5532 streamer_hooks.unpack_value_fields if set.
5533 (lto_materialize_tree): For unhandled nodes, first try to
5534 call lto_streamer_hooks.alloc_tree, if it exists.
5535 (lto_input_ts_decl_common_tree_pointers): Move reading of
5536 DECL_INITIAL to lto_streamer_read_tree.
5537 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
5538 (lto_streamer_read_tree): New.
5539 (lto_reader_init): Rename from lto_init_reader.
5540 Move initialization code to lto/lto.c.
5541 * lto-streamer-out.c (pack_value_fields): Call
5542 streamer_hooks.pack_value_fields if set.
5543 (lto_output_tree_ref): For tree nodes that are not normally indexable,
5544 call streamer_hooks.indexable_with_decls_p before giving up.
5545 (lto_output_ts_decl_common_tree_pointers): Move handling
5546 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
5547 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
5548 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
5549 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
5550 (lto_streamer_write_tree): New.
5551 (lto_output): Call lto_streamer_init directly.
5552 (lto_writer_init): Remove.
5553 * lto-streamer.c (streamer_hooks): New.
5554 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
5555 instead of lto_preload_common_nodes.
5556 (lto_is_streamable): Move from lto-streamer.h
5557 (lto_streamer_hooks_init): New.
5558 (streamer_hooks): New.
5559 (streamer_hooks_init): New.
5560 * lto-streamer.h (struct output_block): Forward declare.
5561 (struct lto_input_block): Likewise.
5562 (struct data_in): Likewise.
5563 (struct bitpack_d): Likewise.
5564 (struct streamer_hooks): Declare.
5565 (streamer_hooks): Declare.
5566 (lto_streamer_hooks_init): Declare.
5567 (lto_streamer_write_tree): Declare.
5568 (lto_streamer_read_tree): Declare.
5569 (streamer_hooks_init): Declare.
5570 (lto_is_streamable): Move to lto-streamer.c
5572 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5574 * longlong.h (smul_ppmm): The resulting register pair contains the
5575 higher order word first.
5577 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5579 PR tree-optimization/46728
5580 * builtins.c (powi_table): Remove.
5581 (powi_lookup_cost): Remove.
5582 (powi_cost): Remove.
5583 (expand_powi_1): Remove.
5584 (expand_powi): Remove.
5585 (expand_builtin_pow_root): Remove.
5586 (expand_builtin_pow): Remove.
5587 (expand_builtin_powi): Eliminate handling of constant exponent.
5588 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
5590 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
5592 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
5594 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
5596 * dce.c (reset_unmarked_insns_debug_uses): New.
5597 (delete_unmarked_insns): Skip debug insns.
5598 (prescan_insns_for_dce): Likewise.
5599 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
5600 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
5601 active reg can be found.
5602 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
5603 (convert_regs_1): Use it.
5605 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
5607 * tree-pretty-print.c (dump_function_header): Add flags.
5608 Don't dump decl_uid with nouid.
5609 * tree-pretty-print.h (dump_function_header): Adjust.
5610 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
5611 * passes.c (pass_init_dump_file): Pass dump_flags on.
5612 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
5614 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
5617 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
5619 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
5621 PR tree-optimization/49243
5622 * calls.c (setjmp_call_p): Also check if fndecl has the
5623 returns_twice attribute.
5625 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5627 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
5630 2011-06-06 Richard Henderson <rth@redhat.com>
5631 Georg-Johann Lay <avr@gjlay.de>
5634 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
5636 * config/avr/avr.md ("insv"): New insn expander.
5637 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
5638 "*insv.not.io", "*insv.reg"): New insns.
5640 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
5643 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
5644 to nonimmediate_operand from memory_operand for the operand that is to
5645 be forced to memory by the expander. Lose the constraints.
5647 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
5649 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
5650 EH return when delayed branches are disabled.
5652 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
5654 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
5655 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
5657 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
5658 Simplify MODE_V1DF and MODE_V2SF handling.
5659 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
5660 Simplify MODE_SF handling.
5662 2011-06-04 Jan Hubicka <jh@suse.cz>
5664 PR tree-optimization/48893
5665 PR tree-optimization/49091
5666 PR tree-optimization/49179
5667 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
5670 2011-06-04 Jan Hubicka <jh@suse.cz>
5673 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
5676 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
5678 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
5680 2011-06-04 Jakub Jelinek <jakub@redhat.com>
5683 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
5684 to be strictly smaller than 1 << shiftcount.
5686 2011-06-04 Jan Hubicka <jh@suse.cz>
5688 PR tree-optimize/48929
5689 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
5692 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
5695 * calls.c (emit_call_1): Prefer the __builtin declaration of
5698 2011-06-03 Diego Novillo <dnovillo@google.com>
5700 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
5701 (lto_input_tree_pointers): Likewise.
5702 * lto-streamer-out.c (pack_value_fields): Likewise.
5703 (lto_output_tree_pointers): Likewise.
5704 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
5705 and OPTIMIZATION_NODE.
5707 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5709 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
5710 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
5711 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
5712 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
5713 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
5714 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
5715 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
5716 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
5717 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
5718 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
5719 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
5720 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
5721 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
5722 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
5723 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
5724 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
5725 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
5726 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
5727 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
5728 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
5729 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
5730 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
5731 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
5732 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
5733 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
5734 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
5735 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
5736 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
5737 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
5738 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
5739 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
5740 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
5741 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
5742 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
5743 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
5744 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
5745 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
5746 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
5747 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
5748 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
5749 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
5750 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
5751 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
5752 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
5753 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
5754 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
5755 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
5756 * system.h (MD_UNWIND_SUPPORT): Poison.
5757 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
5758 * doc/tm.texi: Regenerate.
5759 * unwind-dw2.c: Include md-unwind-support.h instead of
5761 * config/ia64/unwind-ia64.c: Likewise.
5762 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
5764 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
5766 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
5768 2011-06-03 Richard Henderson <rth@redhat.com>
5769 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5771 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
5772 (sigill_hdlr): Correct insn, insn size.
5773 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
5775 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5777 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
5779 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
5780 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
5781 * config/mips/t-iris: Remove.
5782 * config/mips/t-irix6: New file.
5783 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
5785 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5787 * Makefile.in (LIB2ADDEHDEP): Remove.
5788 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
5789 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
5790 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
5791 * config/t-darwin (LIB2ADDEHDEP): Remove.
5792 * config/t-freebsd (LIB2ADDEHDEP): Remove.
5793 * config/t-linux (LIB2ADDEHDEP): Remove.
5795 2011-06-03 Diego Novillo <dnovillo@google.com>
5797 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
5798 (lto_register_var_decl_in_symtab): Likewise.
5799 (lto_register_function_decl_in_symtab): Likewise.
5800 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
5801 logic to uniquify_nodes.
5803 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5805 * config/alpha/t-osf5: Remove.
5806 * config/alpha/t-osf-pthread: Remove.
5807 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
5808 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
5810 2011-06-03 Julian Brown <julian@codesourcery.com>
5812 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
5813 (strongarm1110): Use strongarm tuning.
5814 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
5815 * config/arm/arm.c (arm_strongarm_tune): New.
5816 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
5817 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
5818 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
5819 setting, using previous defaults or 1 for Cortex-A5.
5820 (arm_option_override): Set max_insns_skipped from current tuning.
5822 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
5824 * doc/install.texi (Options specification): Document --with-specs.
5826 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5828 * config/arm/neon.md (orndi3_neon): Actually split it.
5830 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
5832 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
5833 * var-tracking.c (reverse_op): Limite recurse depth to 5.
5835 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
5838 * target.def (delay_sched2, delay_vartrack): New.
5839 * doc/tm.texi.in: Update.
5840 * doc/tm.texi: Rebuild.
5841 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
5842 * var-tracking.c (gate_handle_var_tracking): Likewise.
5843 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
5844 (bfin_flag_var_tracking): Drop.
5845 (output_file_start): Don't save and override flag_var_tracking.
5846 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
5847 (bfin_reorg): Test original variables.
5848 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5849 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
5850 (ia64_flag_var_tracking): Drop.
5851 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5852 (ia64_file_start): Don't save and override flag_var_tracking.
5853 (ia64_override_options_after_change): Ditto
5854 flag_schedule_insns_after_reload.
5855 (ia64_reorg): Test original variables.
5856 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
5857 (picochip_flag_var_tracking): Drop.
5858 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5859 (picochip_option_override): Don't save and override
5860 flag_schedule_insns_after_reload.
5861 (picochip_asm_file_start): Ditto flag_var_tracking.
5862 (picochip_reorg): Test original variables.
5863 * config/spu/spu.c (spu_flag_var_tracking): Drop.
5864 (TARGET_DELAY_VARTRACK): Define.
5865 (spu_var_tracking): New.
5866 (spu_machine_dependent_reorg): Call it.
5867 (asm_file_start): Don't save and override flag_var_tracking.
5869 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
5872 * config/sh/predicates.md (general_movsrc_operand): Return 0
5873 for memory and memory subreg of which address is an invalid
5874 indexed address for QI and HImode.
5875 (general_movdst_operand): Likewise.
5877 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
5879 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
5880 edges only, when there is a non-local label in the function.
5881 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
5883 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
5885 * config/i386/constraints.md (Y3): New register constraint.
5886 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
5887 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
5888 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
5889 *sse2_interleave_lowv2df.
5891 2011-06-02 Julian Brown <julian@codesourcery.com>
5893 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
5894 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
5895 (arm_cortex_a5_tune): New.
5897 2011-06-02 Julian Brown <julian@codesourcery.com>
5899 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
5900 * config/arm/arm.c (arm_default_branch_cost): New.
5901 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
5902 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
5903 (arm_fa726_tune): Set branch_cost field using
5904 arm_default_branch_cost.
5905 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
5906 current_tune structure.
5907 * dojump.c (tm_p.h): Include file.
5909 2011-06-02 Julian Brown <julian@codesourcery.com>
5911 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
5913 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
5914 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
5915 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
5917 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
5918 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
5919 (arm_fa726te_tune): Add prefer_constant_pool setting.
5920 (arm_v6t2_tune, arm_cortex_tune): New.
5921 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
5922 prefer_constant_pool setting.
5924 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
5926 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
5928 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
5929 (*movdf_internal) <case 6,7,8>: Ditto.
5931 * config/i386/constraints.md (Y4): New register constraint.
5932 * config/i386/sse.md (vec_set<mode>_0): Merge with
5933 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
5934 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
5935 *vec_extractv2di_1_sse.
5936 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
5937 and *vec_concatv2di_rex64_sse.
5939 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
5942 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
5943 of cgraph_local_info for null before attempting to use it.
5945 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
5947 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
5948 (current_function_dynamic_alloc_count): Delete.
5949 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
5950 (expand_builtin_nonlocal_goto): Remove obsolete comment.
5951 (expand_builtin_update_setjmp_buf): Remove dead code.
5952 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
5953 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
5955 * function.c (instantiate_virtual_regs): Likewise.
5956 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
5957 for a block with a single abnormal incoming edge.
5958 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
5959 (SETJMP_VIA_SAVE_AREA): Delete.
5960 * config/sparc/sparc-protos.h (load_got_register): Declare.
5961 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
5962 (load_got_register): Make global.
5963 (sparc_frame_pointer_required): Add 'static'.
5964 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
5965 (sparc_builtin_setjmp_frame_value): New function.
5966 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
5967 (save_stack_nonlocal): New expander.
5968 (restore_stack_nonlocal): Likewise.
5969 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
5970 (nonlocal_goto_internal): New insn.
5971 (goto_handler_and_restore): Delete.
5972 (builtin_setjmp_setup): Likewise.
5973 (do_builtin_setjmp_setup): Likewise.
5975 (builtin_setjmp_receiver): New expander.
5977 2011-06-01 David Li <davidxl@google.com>
5980 * tree-pretty-print.c (dump_function_header): Format cleanup.
5982 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
5985 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
5986 needed when original operands are used for msw_skip comparison.
5988 2011-06-01 Jakub Jelinek <jakub@redhat.com>
5991 * var-tracking.c (add_uses, add_stores): Don't call
5992 cselib_subst_to_values on ENTRY_VALUE.
5994 2011-06-01 Diego Novillo <dnovillo@google.com>
5996 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
5997 output_record_start with LTO_null instead of output_zero.
5998 (lto_output_ts_binfo_tree_pointers): Likewise.
5999 (lto_output_tree): Likewise.
6000 (output_eh_try_list): Likewise.
6001 (output_eh_region): Likewise.
6002 (output_eh_lp): Likewise.
6003 (output_eh_regions): Likewise.
6004 (output_bb): Likewise.
6005 (output_function): Likewise.
6006 (output_unreferenced_globals): Likewise.
6007 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
6008 instead of NUM_TREE_CODES.
6009 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
6010 (lto_output_int_in_range): Change << to >> when shifting VAL.
6012 2011-06-01 Diego Novillo <dnovillo@google.com>
6014 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
6015 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
6017 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6020 * optabs.h (valid_multiword_target_p): Declare.
6021 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
6022 doing multi-word operations.
6023 * optabs.c (expand_binop): Likewise.
6024 (expand_doubleword_bswap): Likewise.
6025 (expand_absneg_bit): Likewise.
6026 (expand_unop): Likewise.
6027 (expand_copysign_bit): Likewise.
6028 (multiword_target_p): New function.
6030 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6032 PR rtl-optimization/48830
6033 PR rtl-optimization/48808
6034 PR rtl-optimization/48792
6035 * reload.c (push_reload): Check contains_reg_of_mode.
6036 * reload1.c (strip_paradoxical_subreg): New function.
6037 (gen_reload_chain_without_interm_reg_p): Use it to handle
6038 paradoxical subregs.
6039 (emit_output_reload_insns, gen_reload): Likewise.
6041 2011-06-01 David Li <davidxl@google.com>
6043 * predict.c : Change pass name
6046 * tree-profile.c: Ditto.
6049 2011-06-01 David Li <davidxl@google.com>
6051 * tree-pretty-print.c (dump_function_header): New function.
6052 * final.c (rest_of_clean_state): Use header dumper.
6053 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
6054 * passes.c (pass_init_dump_file): Use header dumper.
6056 2011-06-01 Jakub Jelinek <jakub@redhat.com>
6058 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
6059 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
6060 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
6062 (mem_loc_descriptor): Use them.
6064 * var-tracking.c (create_entry_value): New function.
6065 (vt_add_function_parameter): Use it.
6067 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6069 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
6070 Include <signal.h>, <ucontext.h>.
6071 (sigill_caught): Define.
6072 (sigill_hdlr): New function.
6073 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
6074 insns can be executed.
6075 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
6076 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
6078 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6080 * config/t-slibgcc-darwin: Move to ...
6081 * config/t-slibgcc-dummy: ... this. Clarify comments.
6082 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
6083 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
6084 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
6085 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
6086 Remove i386/t-crtstuff from tmake_file.
6087 (i[34567]86-*-solaris2*): Remove t-svr4,
6088 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
6090 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
6091 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
6092 sparc/t-crtfm from tmake_file.
6093 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
6094 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
6096 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
6097 * config/i386/t-nwld (SHLIB_LINK): Remove.
6098 * config/i386/t-rtems-i386: Rename to ...
6099 * config/i386/t-rtems: ... this.
6100 ($(T)crti.o, $(T)crtn.o): Remove.
6101 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
6102 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
6103 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
6104 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
6105 EXTRA_MULTILIB_PARTS): Remove.
6106 * config/sparc/t-sol2-64: Likewise.
6107 * config/sparc/t-sol2: Remove.
6108 * config/sparc/t-crtin: Remove.
6109 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
6110 * config/i386/gmon-sol2.c: Remove.
6111 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
6112 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
6113 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
6114 * config/i386/sol2-gc1.asm: Remove.
6115 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
6116 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
6117 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
6118 * config/t-slibgcc-sld: Remove.
6120 2011-06-01 Jakub Jelinek <jakub@redhat.com>
6122 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
6123 base_type_for_mode with op_mode instead of mode.
6125 2011-06-01 Paul Brook <paul@cpodesourcery.com>
6127 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
6129 * config/arm/arm-tune.md: Regenerate.
6130 * config/arm/arm-tables.opt: Regenerate.
6131 * config/arm/arm.c (FL_DIV): Rename...
6132 (FL_THUMB_DIV): ... to this.
6133 (FL_ARM_DIV): Define.
6134 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
6135 (arm_arch_hwdiv): Remove.
6136 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
6137 (arm_issue_rate): Add cortexr5.
6138 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
6139 __ARM_ARCH_EXT_IDIV__.
6140 (TARGET_IDIV): Define.
6141 (arm_arch_hwdiv): Remove.
6142 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
6143 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
6144 (divsi3, udivsi3): New patterns.
6145 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
6146 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
6148 2011-06-01 Martin Jambor <mjambor@suse.cz>
6150 * ipa-utils.c (ipa_dfs_info): New field scc_no.
6151 * ipa-utils.c (searchc): Set scc_no.
6153 2011-06-01 Martin Jambor <mjambor@suse.cz>
6155 * ipa-utils.c (searchc_env): New field allow_overwritable.
6156 (searchc): do not ignore edges to overwritable nodes if indicated
6157 by env->allow_overwritable.
6158 (ipa_reduced_postorder): Set env.allow_overwritable.
6160 2011-06-01 Richard Guenther <rguenther@suse.de>
6162 * tree.c (free_lang_data): Do not reset boolean_type_node nor
6164 * lto-streamer.c (lto_record_common_node): Take node pointer,
6165 do not register types.
6166 (lto_preload_common_nodes): Explicitly skip preloading nodes
6167 that differ between frontends.
6169 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
6171 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
6174 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
6176 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
6177 parameter value for dump. Dump cost on outermost call only.
6178 (rs6000_memory_move_cost): Dump cost on outermost call only.
6180 2011-05-31 Jakub Jelinek <jakub@redhat.com>
6182 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
6183 DW_OP_GNU_convert ops.
6185 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
6186 cselib_preserve_constants.
6187 (cselib_lookup_1): If cselib_preserve_constants,
6188 a new VALUE is being created for REG and there is a VALUE for the
6189 same register in wider mode, add another loc with lowpart SUBREG of
6191 (cselib_subst_to_values): Handle ENTRY_VALUE.
6192 * var-tracking.c (replace_expr_with_values): Return NULL for
6194 * dwarf2out.c (convert_descriptor_to_signed): New function.
6195 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
6196 instead of two shifts.
6197 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
6198 the right mode if needed.
6199 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
6200 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
6201 convert_descriptor_to_signed.
6202 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
6203 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
6206 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
6208 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
6210 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
6211 of X87MODEI12 and SWI48x instead of SSEMODEI24.
6212 (SWI248x): New mode iterator, rename from X87MODEI.
6213 (X87MODEI): Remove mode iterator.
6214 (X87MODEI12): Ditto.
6215 (SSEMODEI24): Ditto.
6217 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6219 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
6220 * doc/invoke.texi: Document max-vartrack-expr-depth.
6221 * var-tracking.c (EXPR_DEPTH): New.
6222 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
6224 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6226 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
6227 * config/i386/sse.md: Add n to negated FMA pattern names.
6229 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6231 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
6233 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6235 * gengtype-state.c (read_state_params_structs): Initialize previous.
6237 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
6239 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
6240 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
6242 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
6244 * config/i386/i386.md (*movtf_internal): Avoid allocating general
6245 registers. Penalize F*r->o alternative to prevent partial memory
6246 stalls. Slightly penalize *roF->*r alternative. Generate SSE
6247 CONST_DOUBLE immediates when optimizing function for size. Do not move
6248 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6249 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
6250 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
6251 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
6253 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
6255 (fp_register_operand splitters): Use fp_register_operand
6256 constraint. Do not use FP_REG_P in insn condition.
6257 (any_fp_register_operand splitters): Use any_fp_register_operand
6258 constraint. Do not use ANY_FP_REG_P in insn condition.
6260 2011-05-31 Jan Hubicka <jh@suse.cz>
6262 * cgraph.h (cgraph_inline_failed_t): Give enum a name
6263 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
6264 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
6265 (lto_output_edge): Use output_enum and var_len_unsigned.
6266 (lto_output_varpool_node): Likewise.
6267 (input_overwrite_node): Do not take resolution parameter;
6268 extract it from a bitpack.
6269 (input_node): Do not read resolution; use input_enum and
6271 (input_varpool_node): Likewise.
6272 (input_edge): Likewise.
6273 (input_cgraph_1): Likewise.
6275 2011-05-31 Richard Guenther <rguenther@suse.de>
6277 * gimple.c (gimple_register_canonical_type): Do not register
6278 any types via gimple_register_type.
6280 2011-05-31 Jan Hubicka <jh@suse.cz>
6282 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
6285 2011-05-31 Jakub Jelinek <jakub@redhat.com>
6287 PR rtl-optimization/49235
6288 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
6289 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
6291 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
6293 PR tree-optimization/49093
6294 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
6297 2011-05-31 Dodji Seketeli <dodji@redhat.com>
6300 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6301 for concrete functions containing the code of cloned functions.
6303 2011-05-31 Richard Guenther <rguenther@suse.de>
6305 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
6307 (forward_propagate_into_comparison_1): ... this.
6308 (forward_propagate_comparison): Rename to ...
6309 (forward_propagate_into_comparison): ... this. Split out
6310 real forward propagation code to ...
6311 (forward_propagate_comparison): ... this.
6312 (forward_propagate_into_gimple_cond): Remove looping.
6313 (forward_propagate_into_cond): Likewise.
6314 (simplify_not_neg_expr): Return whether we have done something.
6315 (simplify_gimple_switch): Likewise.
6316 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
6317 (ssa_forward_propagate_and_combine): ... this. Re-structure
6318 to do a forward forward-propagation walk on BBs and a backward
6319 stmt combining walk on BBs. Consistently re-scan changed statements.
6320 (pass_forwprop): Adjust.
6322 2011-05-30 Ian Lance Taylor <iant@google.com>
6324 * godump.c (go_format_type): Correct length of name added to
6325 obstack for anonymous field.
6327 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
6330 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
6331 part of the second operand is 0.
6333 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
6335 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
6336 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
6337 to memory for !TARGET_MEMORY_MISMATCH_STALL.
6338 (*movdf_internal_rex64): Do not penalize F->r alternative.
6339 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
6340 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
6341 when optimizing function for size. Do not move CONST_DOUBLEs
6342 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6343 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
6344 SUBREGs. Do not check for MEM_P operands in the insn condition,
6345 check for ANY_FP_REGNO_P instead.
6346 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
6347 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
6349 * config/i386/i386.c (ix86_option_override_internal): Do not
6350 set TARGET_INTEGER_DFMODE_MOVES here.
6352 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
6355 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
6357 2011-05-30 Jakub Jelinek <jakub@redhat.com>
6359 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
6360 DW_TAG_rvalue_reference_type even for
6361 -gdwarf-4 -fno-debug-types-section.
6363 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6365 PR tree-optimization/46728
6366 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
6367 (build_and_insert_binop): New.
6368 (gimple_expand_builtin_pow): Reorder args for
6369 build_and_insert_call; use build_and_insert_binop; add more
6370 optimizations for fractional exponents.
6372 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
6377 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6379 * tree.h (struct tree_identifier): Inherit from tree_typed, not
6381 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6382 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6383 TS_BASE instead of TS_COMMON.
6384 * varasm.c (assemble_name): Remove assert.
6386 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
6388 * config.gcc: Keep obselete list sorted.
6390 2011-05-30 Jakub Jelinek <jakub@redhat.com>
6391 Eric Botcazou <ebotcazou@adacore.com>
6393 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
6394 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
6395 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
6396 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
6397 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
6399 2011-05-30 Richard Guenther <rguenther@suse.de>
6401 * gimple.c (gimple_types_compatible_p_1): Compare record
6402 and union type members properly.
6404 2011-05-30 Richard Guenther <rguenther@suse.de>
6406 PR tree-optimization/49210
6407 * ipa-split.c (split_function): Care for the case where the call
6408 result is not trivially convertible to the result holding variable.
6410 2011-05-30 Richard Guenther <rguenther@suse.de>
6412 PR tree-optimization/49218
6413 * tree-vrp.c (adjust_range_with_scev): Properly check whether
6416 2011-05-30 Richard Guenther <rguenther@suse.de>
6418 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
6419 New function split out from ...
6420 (forward_propagate_into_gimple_cond): ... here. Adjust.
6421 (forward_propagate_into_cond): Likewise.
6422 (forward_propagate_comparison): Also propagate into
6423 comparisons on assignment RHS. Change return value to
6424 behave similar to forward_propagate_into_cond.
6425 (tree_ssa_forward_propagate_single_use_vars): Handle
6426 strict-overflow warnings properly for forward_propagate_comparison.
6428 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6430 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
6432 * configure: Regenerate.
6434 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
6436 PR tree-optimization/49199
6437 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
6438 non-reduction operands are either defined in the loop or by induction.
6440 2011-05-29 Xinliang David Li <davidxl@google.com>
6442 * opts-global.c (handle_common_deferred_options): Handle new options.
6443 * passes.c (register_one_dump_file): Call register_pass_name.
6444 (execute_one_pass): Check explicit enable/disable flag.
6445 (passr_hash): New function.
6447 (register_pass_name): Ditto.
6448 (get_pass_by_name): Ditto.
6451 (enable_pass): Ditto.
6452 (disable_pass): Ditto.
6453 (is_pass_explicitly_enabled_or_disabled): Ditto.
6455 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
6457 * config/i386/i386.md (*movoi_internal_avx): Use
6458 standard_sse_constant_opcode for alternative 0.
6459 (*movti_internal_sse): Ditto.
6460 (*movti_internal_rex64): Use standard_sse_constant_opcode for
6462 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
6464 (*movsi_internal): Ditto.
6465 (*movdi_internal): Ditto. Add ssecvt type moves.
6467 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
6470 * rtlanal.c (simplify_subreg_regno): Adjust comment.
6472 2011-05-29 Jakub Jelinek <jakub@redhat.com>
6474 PR rtl-optimization/49095
6475 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
6476 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
6478 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
6481 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
6482 recurse_p argument. Only follow register copies if it is set,
6483 and prevent mips_find_pic_call_symbol from recursing.
6484 (mips_find_pic_call_symbol): Add a recurse_p argument.
6485 Pass it to mips_pic_call_symbol_from_set.
6486 (mips_annotate_pic_calls): Update accordingly.
6488 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
6490 * emit-rtl.c (try_split): Use a loop to search for
6491 NOTE_INSN_CALL_ARG_LOCATIONs.
6493 2011-05-29 Richard Guenther <rguenther@suse.de>
6495 PR tree-optimization/49217
6496 * ipa-pure-const.c (propagate_pure_const): Fix typos.
6498 2011-05-28 Jan Hubicka <jh@suse.cz>
6500 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
6502 (string_slot_free): Remove
6503 (create_output_block): Initialize obstack.
6504 (destroy_output_block): Free obstack.
6505 (lto_string_index): Add PERSISTENT parameter; do not duplicate
6506 the string unless it needs to be added into the hash.
6507 (lto_output_string_with_length): Add persistent attribute;
6508 handle NULL strings.
6509 (lto_output_string): Add PERSISTENT parameter.
6510 (output_string_cst, output_identifier): Simplify.
6511 (lto_output_location_bitpack): Update.
6512 (lto_output_builtin_tree): Update.
6513 * lto-streamer.h (struct output_block): Add obstack.
6514 (lto_output_string, lto_output_string_with_length): Remove
6515 declarations; functions are static now.
6517 2011-05-28 Jan Hubicka <jh@suse.cz>
6519 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
6520 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
6521 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
6522 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
6523 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
6524 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
6525 unpack_ts_decl_with_vis_value_fields,
6526 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
6527 lto_get_builtin_tree): Use enum and variable length i/o.
6528 * basic-block.h (profile_status_d): Add PROFILE_LAST.
6529 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
6531 (bp_pack_enum, bp_unpack_enum): New macros.
6533 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6535 * genrecog.c: Remove redundant forward declarations.
6537 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6539 * config.gcc: Deprecate mips*-*-openbsd*.
6541 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6544 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
6547 2011-05-27 Andrew Pinski <pinskia@gmail.com>
6550 * gengtype.c (vec_prefix_type): New function.
6551 (note_def_vec): Use vec_prefix_type and change the length
6552 attribute to be based on the prefix.
6553 * vec.c: Include coretypes.h before vec.h.
6554 (struct vec_prefix): Remove.
6555 (vec_gc_p_reserve): Change the offsetof to sizeof.
6556 (vec_gc_p_reserve_exact): Likewise.
6557 (vec_heap_p_reserve): Likewise.
6558 (vec_heap_p_reserve_exact): Likewise.
6559 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
6560 (vec_stack_p_reserve): Change the offsetof to sizeof.
6561 (vec_stack_p_reserve_exact): Likewise.
6562 * vec.h (struct vec_prefix): New struct definition.
6563 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
6564 (VEC_T_GTY(T,B)): Likewise.
6565 (DEF_VEC_FUNC_P(T)): Use prefix field.
6566 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
6567 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
6569 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6571 PR tree-optimization/46728
6572 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
6573 (powi_as_mults): Add gimple_set_location.
6574 (build_and_insert_call): New.
6575 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
6576 0.5, 0.25, 0.75, 1./3., or 1./6.
6578 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
6580 * doc/contrib.texi: Update copyright years.
6581 (Contributors): Add Zdenek Sojka.
6583 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
6585 * c-decl.c (c_push_function_context): Copy the current statement
6587 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
6588 (finish_struct): Call building_stmt_list_p instead of checking
6590 * c-parser.c (c_parser_postfix_expression): Likewise.
6591 * c-typeck.c (c_end_compound_stmt): Likewise.
6592 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
6593 * tree-iterator.c (stmt_list_cache): Change to a VEC.
6594 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
6595 (free_stmt_list): Likewise.
6596 * tree.h (struct tree_statement_list): Include typed_tree instead
6598 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
6599 as TS_TYPED instead of TS_COMMON.
6601 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6602 Uros Bizjak <ubizjak@gmail.com>
6604 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
6605 (HAVE_AS_IX86_TLSGDPTL): Define.
6606 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
6607 (HAVE_AS_IX86_TLSLDMPLT): Define.
6608 * configure: Regenerate.
6609 * config.in: Regenerate.
6610 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
6611 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
6612 TARGET_SUN_TLS, use @tlsgdplt or @plt.
6613 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
6614 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
6616 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
6618 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
6620 * sched-int.h (struct _haifa_deps_insn_data): New members cond
6622 (INSN_COND, INSN_REVERSE_COND): New macros.
6623 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
6625 (sched_get_condition_with_rev): Cache the results, and look them up
6627 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
6628 are clobbered by the current insn.
6629 * target.def (exposed_pipline): New sched data hook.
6630 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
6631 * doc/tm.texi: Regenerate.
6633 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6635 PR tree-optimization/49170
6636 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
6639 2011-05-27 Richard Guenther <rguenther@suse.de>
6642 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
6645 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
6647 * haifa-sched.c (sched_scan_info): Remove.
6648 (schedule_block): Call sched_extend_luids rather than sched_init_luids
6650 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
6652 (sched_scan): Remove.
6653 (sched_extend_luids): Renamed from luids_extend_insn and no longer
6654 static. All callers changed.
6655 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
6656 static. All callers changed.
6657 (sched_init_luids): Remove all arguments except the first. All
6658 callers changed. Don't use sched_scan.
6659 (haifa_init_h_i_d): Likewise.
6660 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
6661 manually rather than using sched_init_luids. Likewise with
6662 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
6663 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
6664 rather than sched_init_luids with NULL args.
6665 * sel-sched-ir.c (new_insns): Remove variable.
6666 (sched_scan): New static function, previously in haifa-sched.c. Remove
6667 all arguments but the first two; all callers changed.
6668 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
6669 rather than sched_init_luids.
6670 (sel_init_bbs): Remove second argument. All callers changed.
6671 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
6672 with NULL arguments.
6673 (create_insn_rtx_from_pattern): Likewise.
6674 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
6675 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
6676 (sched_init_insn_luid, sched_extend_luids): Declare.
6677 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
6680 2011-05-27 Richard Guenther <rguenther@suse.de>
6683 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
6684 A CMP B ? (T) true : (T) false for non-integral types T again.
6686 2011-05-27 Jan Hubicka <jh@suse.cz>
6688 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
6689 so 0 means NULL string.
6690 (lto_output_string_with_length): ... here.
6691 (lto_output_string, output_string_cst, output_identifier): Update
6692 handling of NULL strings.
6693 (lto_output_location_bitpack): New function.
6694 (lto_output_location): Use it.
6695 (lto_output_tree_ref): Use output_record_start.
6696 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
6698 * lto-streamer-in.c (string_for_index): Break out from ...; offset
6700 (input_string_internal): ... here;
6701 (input_string_cst, input_identifier, lto_input_string): Update handling
6703 (lto_input_location_bitpack): New function
6704 (lto_input_location): Use it.
6705 (unpack_ts_type_common_value_fields): Pack align & alias in var len
6707 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
6708 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
6709 (bp_pack_value): Sanity check the value range.
6710 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
6712 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
6715 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
6717 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
6718 call_arg_location instructions down the floor.
6720 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
6722 PR rtl-optimization/49154
6723 * ira.c (setup_pressure_classes): Process class without sublcasses
6724 as a candidate for pressure classes.
6726 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
6728 PR rtl-optimization/48575
6729 * genrecog.c (position_type): New enum.
6730 (position): New structure.
6731 (decision): Use position structure instead of a string.
6732 (root_pos, peep2_insn_pos_list): New variables.
6733 (next_position, compare_positions): New functions.
6734 (new_decision): Use position structures instead of strings.
6735 (maybe_both_true): Likewise.
6736 (change_state): Likewise.
6737 (write_tree): Likewise.
6738 (make_insn_sequence): Likewise.
6740 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6742 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
6743 TS_BASE instead of TS_COMMON.
6744 (find_decls_types_r): Check for TS_TYPED structure before looking at
6746 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
6748 (BLOCK_CHAIN): Use new chain field.
6750 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
6752 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
6753 moves expensive on Power7 also.
6755 2011-05-26 Richard Guenther <rguenther@suse.de>
6757 * fold-const.c (fold_unary_loc): Remove bogus code.
6759 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6761 * tree.h (struct tree_identifier): Inherit from tree_typed, not
6763 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6764 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6765 TS_BASE instead of TS_COMMON.
6766 * varasm.c (assemble_name): Remove assert.
6768 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
6770 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
6772 * libgcc-std.ver: Delete file.
6774 2011-05-26 Richard Guenther <rguenther@suse.de>
6776 PR tree-optimization/48702
6777 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
6778 only when we know the base address is within bounds.
6779 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
6780 assume the base address of TARGET_MEM_REFs is in bounds.
6782 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6785 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
6786 declaration in TARGET_SOLARIS.
6788 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
6790 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
6791 The instruction is then expanded explicitly.
6792 (supported_compare): Callable instruction.
6793 (compare): Likewise.
6795 2011-05-26 Jakub Jelinek <jakub@redhat.com>
6798 * gimplify.c (shortcut_cond_r): Don't special case
6799 COND_EXPRs if they have void type on one of their arms.
6801 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
6803 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
6804 to reduce duplication, and to achieve a slightly more logical order
6807 2011-05-26 Jakub Jelinek <jakub@redhat.com>
6809 PR tree-optimization/49161
6810 * tree-vrp.c (struct case_info): New type.
6811 (compare_case_labels): Sort case_info structs instead of
6812 trees, and not primarily by CASE_LABEL uids but by
6813 label_for_block indexes.
6814 (find_switch_asserts): Put case labels into struct case_info
6815 array instead of TREE_VEC, adjust sorting, compare label_for_block
6816 values instead of CASE_LABELs.
6818 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6820 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
6821 ("orndi3_neon"): Likewise.
6822 ("bic<mode>3_neon"): Likewise.
6824 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
6826 PR tree-optimization/49038
6827 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
6828 Ensure at least one epilogue iteration if required by data
6830 * tree-vectorizer.h (struct _loop_vec_info): Add new field
6831 to mark loops that require peeling for gaps.
6832 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
6833 (vect_get_known_peeling_cost): Take peeling for gaps into
6835 (vect_transform_loop): Generate epilogue if required by data
6837 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
6838 loop as requiring an epilogue if there are gaps in the end of
6841 2011-05-25 Ian Lance Taylor <iant@google.com>
6843 * godump.c (go_format_type): Output the first field with a usable
6846 2011-05-25 Ian Lance Taylor <iant@google.com>
6848 * godump.c (go_format_type): Check for invalid type names, pointer
6849 target types, and struct field types.
6851 2011-05-25 Jason Merrill <jason@redhat.com>
6853 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
6855 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
6857 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
6859 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
6861 * config/i386/i386.md (*movqi_extv_1)): Put back
6862 "register_operand" check in "type" calculation.
6863 (*movqi_extzv_2): Likewise.
6865 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
6867 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6869 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
6872 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
6873 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
6874 __divxc3, __divtc3): Wrap definitions in #ifndef.
6876 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
6879 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
6880 "register_operand" check and replace q_regs_operand with
6881 QIreg_operand in "type" calculation.
6882 (*movqi_extv_1): Likewise.
6883 (*movqi_extzv_2_rex64): Likewise.
6884 (*movqi_extzv_2): Likewise.
6886 * config/i386/predicates.md (QIreg_operand): New.
6888 2011-05-25 Richard Guenther <rguenther@suse.de>
6890 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
6891 type-based offset disambiguation, streamline MEM_REF and
6892 TARGET_MEM_REF handling.
6894 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
6896 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
6897 (bdesc_special_args): Add pause intrinsic.
6899 * config/i386/i386.md (UNSPEC_PAUSE): New.
6902 * config/i386/ia32intrin.h (__pause): Likewise.
6904 * doc/extend.texi (X86 Built-in Functions): Add documentation for
6907 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6909 PR tree-optimization/46728
6910 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
6911 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
6913 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
6915 * tree.h (struct tree_exp): Inherit from struct tree_typed.
6916 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
6917 instead of TS_COMMON.
6919 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
6921 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
6922 LIBGCC2_GNU_PREFIX is defined.
6924 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
6925 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
6926 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
6927 __clz_tab): Define using __N.
6928 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
6929 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
6930 * target.def (libfunc_gnu_prefix): New hook.
6931 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
6932 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
6933 * doc/tm.texi: Regenerate.
6934 * system.h (LIBGCC2_GNU_PREFIX): Poison.
6935 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
6937 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
6938 (init_optabs): Likewise for the bswap libfuncs.
6939 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
6941 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
6942 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
6943 * libgcc-std.ver: Remove.
6944 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
6945 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
6947 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
6948 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
6949 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
6950 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
6951 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
6952 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
6953 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
6954 * config/fixed-bit.h (FIXED_OP): Define differently depending on
6955 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
6956 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
6958 2011-05-25 Jan Hubicka <jh@suse.cz>
6960 * lto-streamer-out.c (output_record_start): Use lto_output_enum
6961 (lto_output_tree): Use output_record_start.
6962 * lto-streamer-in.c (input_record_start): Use lto_input_enum
6963 (lto_get_pickled_tree): Use input_record_start.
6964 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
6965 (lto_value_range_error): New function.
6966 * lto-streamer.h (lto_value_range_error): Declare.
6967 (lto_output_int_in_range, lto_input_int_in_range): New functions.
6968 (lto_output_enum, lto_input_enum): New macros.
6970 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
6972 * common.opt (flag_stack_usage_info): New variable.
6973 (-Wstack-usage): New option.
6974 * doc/invoke.texi (Warning options): Document -Wstack-usage.
6975 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
6976 <OPT_fstack_usage>: Likewise.
6977 * toplev.c (output_stack_usage): Handle -Wstack-usage.
6978 * calls.c (expand_call): Test flag_stack_usage_info variable instead
6979 of flag_stack_usage.
6980 (emit_library_call_value_1): Likewise.
6981 * explow.c (allocate_dynamic_stack_space): Likewise.
6982 * function.c (instantiate_virtual_regs ): Likewise.
6983 (prepare_function_start): Likewise.
6984 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
6985 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
6986 * config/arm/arm.c (arm_expand_prologue): Likewise.
6987 (thumb1_expand_prologue): Likewise.
6988 * config/avr/avr.c (expand_prologue): Likewise.
6989 * config/i386/i386.c (ix86_expand_prologue): Likewise.
6990 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
6991 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
6992 * config/mips/mips.c (mips_expand_prologue): Likewise.
6993 * config/pa/pa.c (hppa_expand_prologue): Likewise.
6994 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6995 * config/s390/s390.c (s390_emit_prologue): Likewise.
6996 * config/sh/sh.c (sh_expand_prologue): Likewise.
6997 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6998 * config/spu/spu.c (spu_expand_prologue): Likewise.
7000 2011-05-25 Richard Guenther <rguenther@suse.de>
7002 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
7003 (gimple_canonical_types_compatible_p): Likewise.
7005 2011-05-25 Jan Hubicka <jh@suse.cz>
7008 * ipa.c (function_and_variable_visibility): Only add to same
7009 comdat group list if DECL_ONE_ONLY.
7011 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
7013 PR rtl-optimization/49014
7014 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
7016 2011-05-25 Jakub Jelinek <jakub@redhat.com>
7019 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
7021 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7023 PR rtl-optimization/48757
7024 * ira-build.c (loop_with_eh_edge_p): Rename to
7025 loop_with_complex_edge_p, check edges on complexity, make function
7027 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
7030 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7032 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
7033 force flag_ira_share_save_slots to 0.
7035 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7037 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
7038 (vt_initialize): Set PROLOGUE_BB unconditionally.
7039 Add block comment about CFA_BASE_RTX machinery.
7040 Reset FP_CFA_OFFSET to -1 on all invalid paths.
7041 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
7043 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
7046 * c-parser.c (c_parser_objc_class_instance_variables): More robust
7047 parsing of syntax error in ObjC instance variable lists. In
7048 particular, avoid an infinite loop if there is a stray ']'.
7049 Updated error message.
7051 2011-05-24 Ian Lance Taylor <iant@google.com>
7053 * godump.c (go_define): Don't accept a string immediately after
7056 2011-05-24 Ian Lance Taylor <iant@google.com>
7058 * godump.c (struct godump_container): Add invalid_hash field.
7059 (go_format_type): Return false if type is found in invalid_hash.
7060 (go_output_typedef): Add invalid type to invalid_hash.
7061 (go_finish): Create and delete invalid_hash.
7063 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7065 PR tree-optimization/46728
7066 * tree-ssa-math-opts.c (powi_table): New.
7067 (powi_lookup_cost): New.
7069 (powi_as_mults_1): New.
7070 (powi_as_mults): New.
7071 (gimple_expand_builtin_powi): New.
7072 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
7073 (gate_cse_sincos): Remove sincos/cexp restriction.
7075 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7078 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
7080 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
7081 * mips-tdump.c: Likewise.
7083 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
7086 * config/i386/driver-i386.c (host_detect_local_cpu): Always
7087 add -mno-XXX. Handle FMA.
7089 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7091 PR rtl-optimization/48633
7092 * ira-build.c (loop_with_eh_edge_p): New function.
7093 (mark_loops_for_removal): Use it.
7095 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7097 PR rtl-optimization/48971
7098 * ira.c (setup_pressure_classes): Don't check register move cost
7099 for classes with one registers. Don't add pressure class if there
7100 is a pressure class with the same available hard registers.
7101 Check contains_reg_of_mode. Fix a typo in collecting
7102 temp_hard_regset. Ignore hard registers not belonging to a class.
7104 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
7107 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
7109 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7110 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7112 PR gcov-profile/48845
7113 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
7115 2011-05-24 Richard Guenther <rguenther@suse.de>
7117 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
7118 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
7119 (gimple_types_compatible_p_1): Adjust.
7120 (iterative_hash_canonical_type): Do not bother about complete vs.
7122 (gimple_canonical_types_compatible_p): Likewise.
7124 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7126 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
7128 2011-05-24 Richard Guenther <rguenther@suse.de>
7131 * gimple.c (gimple_register_canonical_type): Revert
7133 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
7134 does not for a tree for the case where it matters. Cache
7135 pointer-type alias-sets.
7137 2011-05-24 Joseph Myers <joseph@codesourcery.com>
7139 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
7140 (OBJS): Remove options.o, opts-common.o and prefix.o.
7141 (OBJS-libcommon-target): New.
7142 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
7143 (BACKEND): Include libcommon-target.a.
7144 (MOSTLYCLEANFILES): Include libcommon-target.a.
7145 (libcommon-target.a): New.
7146 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
7149 2011-05-23 Joseph Myers <joseph@codesourcery.com>
7151 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
7152 parts of output shared with the driver.
7153 * optc-gen.awk: Don't generate parts of output not shared with the
7155 * opth-gen.awk: Remove GCC_DRIVER conditionals.
7156 * doc/options.texi (SourcerInclude): Mention options-save.c.
7157 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
7158 (OBJS): Add options-save.o.
7159 (options-save.c, options-save.o): New.
7160 (options.o): Update dependencies.
7161 (gcc-options.o): Remove.
7162 (mostlyclean): Remove options-save.c.
7164 2011-05-23 Jakub Jelinek <jakub@redhat.com>
7167 * dbxout.c: Include cgraph.h.
7168 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
7169 and without value expr, return NULL if no varpool node exists for
7170 it or if it is not needed.
7171 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
7174 * c-decl.c (start_decl): Convert expr to void_type_node.
7176 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
7178 PR rtl-optimization/48826
7179 * emit-rtl.c (try_split): When splitting a call that is followed
7180 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
7182 2011-05-23 Jakub Jelinek <jakub@redhat.com>
7184 * cfgexpand.c (expand_debug_expr): For unused non-addressable
7185 parameters passed in memory prefer using DECL_INCOMING_RTL over
7186 the pseudos it will be copied into.
7188 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
7191 * config/i386/i386.c (ix86_option_override_internal): Save the
7192 initial options after checking vzeroupper.
7194 2011-05-23 David Li <davidxl@google.com>
7196 PR tree-optimization/48988
7197 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
7198 Initialize has_valid_pred for each pred chain.
7200 2011-05-23 Richard Guenther <rguenther@suse.de>
7202 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
7203 (iterative_hash_gimple_type): Always hash type names.
7205 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
7207 * c-typeck.c (build_function_call_vec): Tweak call to
7208 check_function_arguments.
7210 2011-05-23 Richard Guenther <rguenther@suse.de>
7212 PR tree-optimization/49115
7213 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
7214 is not necessarily carried out, do not claim it kills the ref.
7215 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7217 2011-05-23 Richard Guenther <rguenther@suse.de>
7220 * builtins.c (fold_builtin_memory_op): Be less restrictive about
7221 what pointer types we accept for folding.
7223 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7225 * gthr-gnat.c: Remove.
7226 * gthr-gnat.h: Remove.
7227 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
7228 * config/t-freebsd (LIB2ADDEH): Likewise.
7229 * config/t-linux (LIB2ADDEH): Likewise.
7230 * config/t-sol2 (LIB2ADDEH): Likewise.
7231 * config/ia64/t-vms (LIB2ADDEH): Likewise.
7232 * configure.ac (target_thread_file): Remove gnat handling.
7233 * configure: Regenerate.
7234 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
7236 2011-05-23 Tristan Gingold <gingold@adacore.com>
7237 Eric Botcazou <ebotcazou@adacore.com>
7239 * gcov.c (create_file_names): If no object directory is specified,
7240 keep the directory of the file.
7242 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7244 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
7245 * configure: Regenerate.
7247 2011-05-23 Jakub Jelinek <jakub@redhat.com>
7250 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
7251 failed and the comparison has a single bit signed type, use
7252 constm1_rtx instead of const1_rtx for true value.
7253 (do_store_flag): If ops->type is single bit signed type, disable
7254 signel bit test optimization and pass -1 instead of 1 as last
7255 parameter to emit_store_flag_force.
7257 2011-05-23 Tom de Vries <tom@codesourcery.com>
7260 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
7262 (infer_loop_bounds_from_undefined): Use new function.
7264 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
7266 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
7267 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
7268 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
7270 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
7272 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7274 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
7275 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
7278 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
7280 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
7282 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7284 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
7285 UNSPEC_MOVE_PIC pattern.
7287 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7289 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
7290 (sparc-*-rtems*): Likewise.
7291 (sparc64-*-elf*): Likewise.
7292 (sparc64-*-rtems*): Likewise.
7293 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
7294 * config/sparc/t-crtin: New file.
7295 * config/sparc/t-sol2 (crti.o): Delete rule.
7297 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
7298 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
7299 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
7300 (ENDFILE_SPEC): Add crtn.o.
7302 2011-05-22 Tom de Vries <tom@codesourcery.com>
7305 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
7306 CODE_CONTAINS_STRUCT (TS_COMMON).
7308 2011-05-22 Jakub Jelinek <jakub@redhat.com>
7311 * expmed.c (extract_fixed_bit_field): Test whether target can be used
7312 only after deciding which mode to use.
7314 2011-05-22 Tom de Vries <tom@codesourcery.com>
7317 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
7318 for call to get_shiftadd_cost.
7320 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
7323 * config/i386/cpuid.h (bit_MMXEXT): New define.
7325 2011-05-22 Nick Clifton <nickc@redhat.com>
7327 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
7328 initialisation of non-existant args[2] element. Use args[] array
7329 not arg[] array to pass arguments to build_function_type_list.
7331 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
7333 PR tree-optimization/49087
7334 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
7336 2011-05-21 Jason Merrill <jason@redhat.com>
7339 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
7340 static storage duration.
7342 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
7344 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
7347 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
7349 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
7350 false if there are call-saved registers here...
7351 (sparc_can_use_return_insn_p): ...but here instead.
7352 (save_or_restore_regs): Fix thinko.
7353 (sparc_expand_prologue): Use current_function_is_leaf.
7354 (sparc_frame_pointer_required): Likewise.
7356 2011-05-21 Nick Clifton <nickc@redhat.com>
7359 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
7361 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
7363 * gengtype.c (walk_type): Implemented "atomic" GTY option.
7364 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
7366 2011-05-21 Joseph Myers <joseph@codesourcery.com>
7368 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
7369 * optc-gen.awk: Move common code to opt-read.awk.
7370 * opth-gen.awk: Likewise.
7371 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
7373 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
7375 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
7377 2011-05-20 Tom de Vries <tom@codesourcery.com>
7380 * tree-ssa-loop-ivopts.c: Include expmed.h.
7381 (get_shiftadd_cost): New function.
7382 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
7384 2011-05-20 Jakub Jelinek <jakub@redhat.com>
7387 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
7388 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
7390 2011-05-20 Joseph Myers <joseph@codesourcery.com>
7392 * Makefile.in: Update comment referring to $(OBJS-common).
7394 2011-05-20 Ian Lance Taylor <iant@google.com>
7396 * godump.c (go_output_typedef): Put enum constants in the macro
7397 hash table to avoid duplicate Go const definitions.
7399 2011-05-20 Joseph Myers <joseph@codesourcery.com>
7401 * Makefile.in (LIBDEPS): Add libcommon.a.
7403 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
7404 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
7405 pretty-print.o and version.o.
7406 (OBJS-libcommon): New.
7407 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
7408 (BACKEND): Add libcommon.a.
7409 (MOSTLYCLEANFILES): Likewise.
7411 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
7412 (cpp$(exeext)): Likewise.
7413 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
7414 pretty-print.o and input.o.
7415 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
7416 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
7418 (mips-tfile): Don't explicitly use version.o.
7419 (mips-tdump): Likewise.
7420 (gcov.o): Depend on $(DIAGNOSTIC_H).
7421 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
7422 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
7423 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
7424 * gcov-dump.c: Include intl.h and diagnostic.h.
7425 (main): Initialize diagnostics.
7426 * gcov.c: Include diagnostic.h.
7428 (main): Initialize diagnostics.
7429 * lto-wrapper.c: Include diagnostic.h.
7430 (main): Initialize diagnostics.
7432 2011-05-20 Michael Matz <matz@suse.de>
7434 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
7436 2011-05-20 Michael Matz <matz@suse.de>
7437 Richard Guenther <rguenther@suse.de>
7439 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
7440 use lto_streamer_cache_append directly instead of returning a VEC.
7441 (preload_common_node): Remove.
7442 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
7444 (lto_streamer_cache_create): Call lto_preload_common_nodes.
7446 2011-05-20 Richard Guenther <rguenther@suse.de>
7448 PR tree-optimization/49079
7449 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
7450 MEM_REFs correctly for the trailing array access detection.
7451 Special case constants the same way as decls for overall size
7454 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
7456 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
7459 2011-05-20 Jakub Jelinek <jakub@redhat.com>
7461 PR tree-optimization/49073
7462 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
7463 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
7464 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
7466 2011-05-20 Richard Guenther <rguenther@suse.de>
7469 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
7470 of pointer types the same way the middle-end does.
7472 2011-05-20 Richard Guenther <rguenther@suse.de>
7474 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
7475 or pointer-to chains. Delay all fixup to uniquify_nodes.
7477 2011-05-19 Quentin Neill <quentin.neill@amd.com>
7479 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
7480 (fma4_fmaddsub): Likewise
7482 2011-05-19 Jan Hubicka <jh@suse.cz>
7484 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
7485 (GIMPLE_TYPE_PAIR_SIZE): New macro.
7486 (type_pair_cache): New static var.
7487 (lookup_type_pair): Use fixed sized custom hash; make inline.
7488 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
7489 calls of lookup_type_pair.
7490 (print_gimple_types_stats): Remove cache stats.
7491 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
7494 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
7496 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
7497 when TARGET_RDRND is active.
7498 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
7499 Generate dummy SImode target register when target is NULL.
7501 2011-05-19 Joseph Myers <joseph@codesourcery.com>
7503 * config/arm/arm-fpus.def: New.
7504 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
7506 * config/arm/arm-tables.opt: Regenerate.
7507 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
7508 (arm_option_override): Don't decode FPU name to string here.
7509 * config/arm/arm.opt (mfpu=): Use Enum.
7510 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
7511 Update dependencies.
7513 2011-05-19 Joseph Myers <joseph@codesourcery.com>
7515 * collect2.c: Include diagnostic.h.
7516 (fatal_perror, fatal, error, fancy_abort): Remove.
7517 (main): Set progname. Call xmalloc_set_program_name and
7518 diagnostic_initialize.
7519 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
7520 scan_libraries, resolve_lib_name): Call fatal_error instead of
7521 fatal and fatal_perror.
7522 * collect2.h (error, fatal, fatal_perror): Don't declare.
7523 * tlink.c: Include diagnostic-core.h.
7524 (recompile_files): Call fatal_error instead of fatal_perror.
7525 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
7526 pretty-print.o and input.o.
7527 (collect2.o, tlink.o): Update dependencies.
7529 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7531 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
7533 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7536 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
7537 COMDAT group syntax, both SPARC and x86 variants.
7538 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
7539 * configure: Regenerate.
7540 * config/sol2.h (TARGET_SOLARIS): Define.
7541 (PUSHSECTION_FORMAT): Remove.
7542 (SECTION_NAME_FORMAT): Define.
7543 * config/sol2.c: Include hashtab.h.
7544 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
7545 expansion, using SECTION_NAME_FORMAT.
7546 (solaris_comdat_htab): New variable.
7547 (struct comdat_entry): Define.
7548 (comdat_hash): New function.
7549 (comdat_eq): New function.
7550 (solaris_elf_asm_comdat_section): New function.
7551 (solaris_define_comdat_signature): New function.
7552 (solaris_code_end): New function.
7553 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
7554 (solaris_code_end): Declare.
7555 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
7556 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
7558 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
7559 Remove ATTRIBUTE_UNUSED.
7560 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
7561 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
7562 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
7563 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
7564 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
7565 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
7566 (PUSHSECTION_FORMAT): Remove.
7567 (SECTION_NAME_FORMAT): Redefine.
7569 2011-05-19 Kai Tietz <ktietz@redhat.com>
7571 * tree-cfg.c (verify_gimple_assign_binary): Barf on
7572 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
7573 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
7575 2011-05-19 Anatoly Sokolov <aesok@post.ru>
7576 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7578 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
7580 2011-05-19 Richard Guenther <rguenther@suse.de>
7583 * tree-object-size.c (addr_object_size): If the pointed-to
7584 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
7586 2011-05-19 Richard Guenther <rguenther@suse.de>
7588 * gimple.c (gimple_types_compatible_p_1): Compare names of
7589 the types themselves.
7590 (iterative_hash_gimple_type): And hash them that way.
7591 (gimple_register_type_1): If we register a main variant properly
7592 initialize the leader to ourselves.
7594 2011-05-19 Tom de Vries <tom@codesourcery.com>
7597 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
7598 get_loop_invariant_expr_id.
7599 (get_loop_invariant_expr_id): Use get_expr_id.
7600 (parm_decl_cost): New function.
7601 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
7602 Improve bound cost estimation. Use different inv_expr_id for elim and
7605 2011-05-19 Tom de Vries <tom@codesourcery.com>
7608 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
7609 cost_base.cost == 0.
7611 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
7614 * config/i386/sse.md
7615 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
7618 2011-05-18 Jakub Jelinek <jakub@redhat.com>
7620 PR tree-optimization/49039
7621 * tree-vrp.c (extract_range_from_binary_expr): For
7622 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
7623 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
7625 2011-05-18 Tom de Vries <tom@codesourcery.com>
7628 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
7630 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
7632 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
7633 (*tls_global_dynamic_64): Ditto.
7634 (*tls_local_dynamic_base_32_gnu): Ditto.
7635 (*tls_local_dynamic_base_64): Ditto.
7636 (tls_initial_exec_64_sun): Ditto.
7638 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
7640 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
7641 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
7643 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
7644 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
7645 * config/bfin/bfin.c (bfin_cpus): Add bf592.
7646 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
7647 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
7648 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
7649 * config/bfin/elf.h (LIB_SPEC): Add bf592.
7651 2011-05-18 Joseph Myers <joseph@codesourcery.com>
7653 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
7654 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
7655 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
7656 target_thread_pointer, arm_structure_size_boundary, struct
7657 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
7658 struct abi_name, arm_all_abis): Remove.
7659 (arm_option_override) Don't process most enumerated option values here.
7660 Don't process target_fpe_name here. Work with integer not string for
7661 structure size boundary; use separate diagnostics for each case.
7662 * config/arm/arm.h (enum float_abi_type, enum
7663 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
7665 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
7666 arm_structure_size_boundary): Remove.
7667 * config/arm/arm.opt (mabi=): Use Enum and Init.
7668 (arm_abi_type): New Enum and EnumValue entries.
7669 (mfloat-abi=): Use Enum and Init.
7670 (float_abi_type): New Enum and EnumValue entries.
7671 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
7672 (mfp16-format=): Use Enum and Init.
7673 (arm_fp16_format_type): New Enum and EnumValue entries.
7674 (mstructure-size-boundary=): Use UInteger and Init.
7675 (mtp=): Use Enum and Init.
7676 (arm_tp_type): New Enum and EnumValue entries.
7678 2011-05-18 Richard Guenther <rguenther@suse.de>
7680 PR tree-optimization/49018
7681 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
7682 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
7683 gimple_has_side_effects.
7685 2011-05-18 Richard Guenther <rguenther@suse.de>
7687 * gimple.c (gimple_register_type_1): New function, split out from ...
7688 (gimple_register_type): ... here. Avoid infinite recursion.
7690 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
7692 PR tree-optimization/41881
7693 * tree-vectorizer.h (struct _loop_vec_info): Add new field
7694 reduction_chains along with a macro for its access.
7695 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
7696 (destroy_loop_vec_info): Free reduction chains.
7697 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
7698 (vect_is_slp_reduction): New function.
7699 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
7700 (vect_create_epilog_for_reduction): Support SLP reduction chains.
7701 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
7702 definition types for reduction chains.
7703 (vect_supported_load_permutation_p): Don't allow permutations for
7705 (vect_analyze_slp_instance): Support reduction chains.
7706 (vect_analyze_slp): Try to build SLP instance from reduction chains.
7707 (vect_get_constant_vectors): Handle reduction chains.
7708 (vect_schedule_slp_instance): Mark the first statement of the
7709 reduction chain as reduction.
7711 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
7713 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
7714 names for group elements access.
7715 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
7716 reduction chains as well. Remove data reference and interleaving
7717 related words from the fields names.
7718 * tree-vect-loop.c (vect_transform_loop): Use new names for group
7720 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
7721 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
7722 vect_update_interleaving_chain, vect_same_range_drs,
7723 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
7724 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
7725 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
7726 vect_analyze_group_access, vect_analyze_data_ref_access,
7727 vect_create_data_ref_ptr, vect_transform_strided_load,
7728 vect_record_strided_load_vectors): Likewise.
7729 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
7730 vect_model_load_cost, vectorizable_store, vectorizable_load,
7731 vect_remove_stores, new_stmt_vec_info): Likewise.
7732 * tree-vect-slp.c (vect_build_slp_tree,
7733 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
7735 2011-05-18 Richard Guenther <rguenther@suse.de>
7738 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
7739 operand verification.
7740 (verify_gimple_assign_binary): Likewise.
7741 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
7742 to non-1-precision BOOLEAN_TYPEs.
7744 2011-05-18 Tom de Vries <tom@codesourcery.com>
7747 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
7749 2011-05-18 Jakub Jelinek <jakub@redhat.com>
7751 PR tree-optimization/49000
7752 * tree-ssa.c (execute_update_addresses_taken): Call
7753 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
7754 be rewritten and decl has been marked for renaming, reset
7757 2011-05-17 Joseph Myers <joseph@codesourcery.com>
7759 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
7760 enum_opts_set when testing if attributes have set -mfpmath=.
7762 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
7764 * config/mips/mips.c (mips_handle_option): Remove unused variable.
7766 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
7768 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
7770 * tree-inline.c (maybe_inline_call_in_expr): Initialize
7771 id.transform_lang_insert_block with NULL.
7773 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
7775 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
7776 (output_fp_compare): Change args 3 and 4 to bool.
7777 (ix86_expand_call): Change arg 6 to bool.
7778 (ix86_attr_length_immediate_default): Change arg 2 to bool.
7779 (ix86_attr_length_vex_default): Change arg 3 to bool.
7780 * config/i386/i386.md: Update all uses.
7781 * config/i386/i386.c: Ditto.
7782 (ix86_flags_dependent): Change return type to bool.
7784 2011-05-17 Richard Guenther <rguenther@suse.de>
7786 * gimple.c (type_hash_pair_compare): Fix comparison.
7788 2011-05-17 Richard Guenther <rguenther@suse.de>
7790 * gimple.c (iterative_hash_gimple_type): Simplify singleton
7791 case some more, fix final hash value of the non-singleton case.
7793 2011-05-17 Richard Guenther <rguenther@suse.de>
7797 2011-05-16 Richard Guenther <rguenther@suse.de>
7799 * gimple.c (gimple_types_compatible_p_1): Use names of the
7800 type itself, not its main variant.
7801 (iterative_hash_gimple_type): Likewise.
7803 2011-05-17 Richard Guenther <rguenther@suse.de>
7805 * gimple.c (gimple_register_canonical_type): Use the main-variant
7806 leader for computing the canonical type.
7808 2011-05-17 Nick Clifton <nickc@redhat.com>
7810 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
7813 * config/rx/rx.md: Add peephole to remove redundant extensions
7815 (bitset_in_memory): Use rx_restricted_mem_operand.
7816 (bitinvert_in_memory): Likewise.
7817 (bitclr_in_memory): Likewise.
7819 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
7820 Nick Clifton <nickc@redhat.com>
7822 * config/rx/rx.md: Add peepholes to match a register move followed
7823 by a comparison of the moved register. Replace these with an
7824 addition of zero that does both actions in one instruction.
7826 2011-05-17 Jakub Jelinek <jakub@redhat.com>
7829 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
7830 predicate to allow CONST_INT.
7831 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
7833 2011-05-16 Joseph Myers <joseph@codesourcery.com>
7835 * opts-common.c (opt_enum_arg_to_value): New.
7836 * opts.h (opt_enum_arg_to_value): Declare.
7837 * config/i386/i386.opt (fpmath): Remove.
7838 (mfpmath=): Use Enum, Init and Save.
7839 (fpmath_unit): New Enum and EnumValue entries.
7840 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
7841 name for function fpmath state.
7842 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
7843 * config/i386/i386.c: Include diagnostic.h.
7844 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
7845 (ix86_target_string): Take enum fpmath_unit value instead of string.
7846 (ix86_debug_options): Update call to ix86_target_string.
7847 (ix86_option_override_internal): Don't process fpmath strings here.
7848 (x86_function_specific_save, ix86_function_specific_restore):
7849 Don't handle fpmath state specially.
7850 (ix86_function_specific_print): Pass fpmath state to
7851 ix86_target_string instead of printing in this function.
7852 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
7853 Handle enum attributes.
7854 (IX86_ATTR_ENUM, ix86_opt_enum): New.
7855 (ix86_valid_target_attribute_tree): Update option_strings
7856 handling. Handle fpmath as enum option.
7857 (ix86_can_inline_p): Update field names for function fpmath state.
7858 (ix86_expand_builtin): Update call to ix86_target_string.
7859 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
7860 (ix86_fpmath): Remove.
7861 * config/i386/t-i386 (i386.o): Update dependencies.
7863 2011-05-16 Joseph Myers <joseph@codesourcery.com>
7865 PR preprocessor/48677
7866 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
7867 from decoded_options[0], not from itself.
7869 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
7871 * config/i386/constraints.md (z): New constraint.
7872 * config/i386/i386.c (c): New mode attribute.
7873 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
7874 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
7875 constraint for operand 0.
7876 (*call_vzeroupper): Ditto.
7877 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
7878 (*call_rex64_ms_sysv_vzeroupper): Ditto.
7879 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
7880 Use "lzm" constraint for operand 0.
7881 (*call_pop_vzeroupper): Ditto.
7882 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
7883 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
7884 constraint for operand 0.
7885 (*sibcall_vzeroupper): Ditto.
7886 (*sibcall_rex64_ms_sysv): Ditto.
7887 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
7888 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
7889 *sibcall_pop_1. Use "Uz" constraint for operand 0.
7890 (*sibcall_pop_vzeroupper): Ditto.
7891 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
7892 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
7893 mode iterator. Use "<c>zm" constraint for operand 1.
7894 (*call_value_vzeroupper): Ditto.
7895 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
7897 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
7898 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
7899 *call_value_pop_1. Use "lzm" constraint for operand 1.
7900 (*call_value_pop_vzeroupper): Ditto.
7901 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
7902 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
7903 mode iterator. Use "Uz" constraint for operand 1.
7904 (*sibcall_value_vzeroupper): Ditto.
7905 (*sibcall_value_rex64_ms_sysv): Ditto.
7906 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
7907 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
7908 constraint for operand 1.
7909 (*sibcall_value_pop_vzeroupper): Ditto.
7910 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
7911 and "z" constraint for operand 2.
7912 (*tls_global_dynamic_32_gnu): Ditto.
7913 (*tls_local_dynamic_base_32_gnu): Ditto.
7914 (*tls_local_dynamic_base_64): Ditto.
7915 (*tls_local_dynamic_32_once): Ditto.
7916 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
7918 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
7920 2011-05-16 Richard Guenther <rguenther@suse.de>
7922 * gimple.c (gimple_types_compatible_p_1): Use names of the
7923 type itself, not its main variant.
7924 (iterative_hash_gimple_type): Likewise.
7926 2011-05-16 Richard Guenther <rguenther@suse.de>
7928 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
7929 always visit pointer target and function result and argument types.
7931 2011-05-16 Jason Merrill <jason@redhat.com>
7934 * tree-inline.c (copy_statement_list): Put back recursion.
7936 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
7940 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
7941 * config/avr/avr.md ("*ior<mode>qi.byte0",
7942 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
7944 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
7947 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
7948 register is needed for a function argument.
7950 2011-05-16 Richard Guenther <rguenther@suse.de>
7952 * gimple.c (struct type_hash_pair): New type.
7953 (type_hash_pair_compare): New function.
7954 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
7956 2011-05-16 Revital Eres <revital.eres@linaro.org>
7958 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
7960 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
7962 * config/i386/i386.md (floating point move splitters): Fix
7963 usage of standard_80387_constant_p.
7964 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
7966 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
7968 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
7970 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
7972 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
7973 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
7974 (tree_ssa_lim_finalize): Likewise.
7976 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
7978 * config/i386/constraint.md (Yd, Yx): New register constraints.
7979 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
7980 Yd conditional register constraint.
7981 (*movtf_internal): Use standard_sse_constant_opcode.
7982 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
7983 Yx conditional register constraint.
7984 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
7985 Yd conditional register constraint. Use standard_sse_constant_p to
7986 check for valid SSE constants and call standard_sse_constant_opcode to
7988 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
7989 constants and call standard_sse_constant_opcode to output SSE insn.
7990 * config/i386/i386.c (ix86_option_ovverride_internal): Set
7991 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
7992 optimize_size is set.
7993 (standard_sse_constant_opcode): Output conditional AVX insn templates.
7995 2011-05-14 Tobias Burnus <burnus@net-b.de>
7997 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
7999 2011-05-13 Martin Jambor <mjambor@suse.cz>
8001 * ipa-prop.c (ipa_cst_from_jfunc): New function.
8002 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
8003 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
8004 (evaluate_conditions_for_ipcp_clone): Removed.
8005 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
8006 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
8007 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
8009 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
8011 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
8012 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
8013 lieu of MAY_HAVE_DEBUG_STMTS.
8014 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
8015 debug statements if !MAY_HAVE_DEBUG_STMTS.
8017 2011-05-13 Martin Thuresson <martint@google.com>
8019 PR gcov-profile/47793
8020 * libgcov.c (gcov_exit): Support relative profile paths.
8021 * doc/invoke.texi (-fprofile-dir): Update for above change.
8023 2011-05-13 Richard Guenther <rguenther@suse.de>
8025 * gimple.c (gimple_canonical_types_compatible_p): Do not use
8026 type-pair caching, do not compare hashes.
8028 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
8031 * tree-cfg.c (edge_to_cases_cleanup): Return true.
8032 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
8034 2011-05-13 Kai Tietz <ktietz@redhat.com>
8036 * gimplify.c (gimplify_expr): Make sure operand is boolified.
8037 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
8038 compatible type for TRUTH_NOT_EXPR.
8040 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
8042 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
8043 (ix86_hard_regno_mode_ok): Change return value to bool. Use
8044 can_create_pseudo_p ().
8046 2011-05-13 Richard Guenther <rguenther@suse.de>
8049 * gimple.c (iterative_hash_gimple_type): Revert change in
8050 pointer target and function result and argument hashing.
8052 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
8054 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
8055 (*movxf_internal_nointeger): Ditto.
8056 (*movdf_internal_rex64): Ditto.
8057 (*movdf_internal): Ditto.
8058 (*movdf_internal_nointeger): Ditto.
8059 (*movsf_internal): Ditto.
8060 (sincos splitters): Use can_create_pseudo ().
8062 2011-05-13 Joseph Myers <joseph@codesourcery.com>
8064 * config/i386/i386-opts.h: New.
8065 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
8066 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
8067 ix86_section_threshold): Remove.
8068 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
8069 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
8071 (ix86_option_override_internal): Don't decode strings for options
8072 other than -march=, -mtune= and -mfpmath=. Don't allow for
8073 __attribute__ uses in remaining diagnostics for options with
8074 string arguments. Don't check for integer arguments being negative.
8075 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
8076 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
8077 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
8078 ix86_branch_cost, ix86_section_threshold): Remove.
8079 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
8081 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
8083 (masm=): Use Enum and Init.
8084 (asm_dialect): New Enum and EnumValue entries.
8085 (mbranch-cost=): Use UInteger.
8086 (mlarge-data-threshold=): Use UInteger and Init.
8087 (mcmodel=): Use Enum and Init.
8088 (cmodel): New Enum and EnumValue entries.
8089 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
8090 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
8091 mregparm=): Use UInteger.
8092 (mstringop-strategy=): Use Enum and Init.
8093 (stringop_alg): New Enum and EnumValue entries.
8094 (mtls-dialect=): Use Enum and Init.
8095 (tls_dialect): New Enum and EnumValue entries.
8096 (mabi=): Use Enum and Init.
8097 (calling_abi): New Enum and EnumValue entries.
8098 (mveclibabi=): Use Enum and Init.
8099 (ix86_veclibabi): New Enum and EnumValue entries.
8101 2011-05-13 Nick Clifton <nickc@redhat.com>
8103 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
8104 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
8106 2011-05-13 Kai Tietz <ktietz@redhat.com>
8109 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
8110 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
8111 (gimple_boolify): Check for cast for boolean_type_node instead for
8114 2011-05-13 Richard Guenther <rguenther@suse.de>
8116 PR tree-optimization/48172
8117 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
8118 multiplying by number of iterations for equal step.
8119 (vect_create_cond_for_alias_checks): Likewise.
8121 2011-05-13 Andreas Schwab <schwab@redhat.com>
8123 * configure.ac: Use AS_HELP_STRING throughout.
8124 * configure: Regenerate.
8126 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
8128 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
8129 (ix86_emit_restore_regs_using_mov): Likewise.
8130 (ix86_emit_restore_sse_regs_using_mov): Likewise.
8132 2011-05-12 Anatoly Sokolov <aesok@post.ru>
8134 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
8135 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
8136 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
8137 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
8138 RTX_OK_FOR_OLO10_P): ...here.
8139 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
8142 2011-05-12 Kai Tietz <ktietz@redhat.com>
8144 * gimplify.c (gimple_boolify): Re-boolify expression
8145 arguments even if expression type is of kind BOOLEAN_TYPE.
8146 (gimplify_boolean_expr): Removed.
8147 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
8148 and XOR. Additional take care that we keep expression's type.
8149 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
8150 of TRUTH_AND|OR|XOR_EXPR.
8152 2011-05-12 Jakub Jelinek <jakub@redhat.com>
8154 PR tree-optimization/48975
8155 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
8156 on all bbs here and free and clear ifc_bbs at the end.
8158 2011-05-12 Richard Guenther <rguenther@suse.de>
8160 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
8161 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
8162 until after simple checks.
8163 (gimple_types_compatible_p): Likewise.
8164 (iterative_hash_gimple_type): Always hash pointer targets
8165 and function return and argument types.
8166 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
8167 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
8168 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
8169 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
8170 completely in the simple compare section.
8171 (gimple_register_canonical_type): Query the cache again after
8174 2011-05-12 Richard Guenther <rguenther@suse.de>
8176 PR tree-optimization/48172
8177 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
8178 the number of iterations from the segment size calculation.
8179 (vect_create_cond_for_alias_checks): Adjust.
8181 2011-05-12 Jakub Jelinek <jakub@redhat.com>
8184 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
8185 if validate_subreg fails.
8187 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
8189 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
8190 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
8193 2011-05-12 DJ Delorie <dj@redhat.com>
8195 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
8196 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
8197 created builtin into rx_builtins array.
8198 (rx_builtin_decl): New function.
8199 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
8201 2011-05-12 DJ Delorie <dj@redhat.com>
8202 Nick Clifton <nickc@redhat.com>
8204 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
8205 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
8206 (rx_is_legitimate_address): Add pre-decrement and post-increment
8207 addressing in HImode and QImode. Fix test for out of range
8209 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
8210 (rx_align_for_label): Test label before extracting its usage count.
8211 (rx_adjust_insn_lengths): Fix selection of insn codes.
8212 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
8214 2011-05-11 Jason Merrill <jason@redhat.com>
8216 * tree.c (type_hash_canon): Use struct tree_type_non_common.
8218 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
8220 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
8221 reindent the subsequent block.
8223 2011-05-11 Satoru Takabayashi <satorux@google.com>
8224 Paul Pluzhnikov <ppluzhnikov@google.com>
8226 * doc/install.texi (Configuration): Document --with-linker-hash-style.
8227 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
8228 * config.in: Add LINKER_HASH_STYLE.
8229 * configure.ac: Add --with-linker-hash-style.
8230 * configure: Regenerate.
8232 2011-05-11 Richard Guenther <rguenther@suse.de>
8235 * gimple.c (iterative_hash_canonical_type): Fix typo.
8237 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
8239 * config/i386/i386.c (legitimize_tls_address)
8240 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8241 expanders directly for TARGET_GNU2_TLS. Determine pic and
8242 __tls_get_addr symbol reference here. Update call to
8243 gen_tls_global_dynamic_{32,64} for added arguments.
8244 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8245 expanders directly for TARGET_GNU2_TLS. Determine
8246 __tls_get_addr symbol reference here. Update call to
8247 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
8248 unique UNSPEC REG_EQUIV to libcall block.
8249 (ix86_tls_get_addr): Declare static.
8250 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
8251 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
8252 Do not determine pic and __tls_get_addr symbol reference here. Do not
8253 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
8254 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
8255 (tls_global_dynamic_64): Add operand 2. Do not determine
8256 __tls_get_addr symbol reference here. Do not call
8257 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
8258 (tls_local_dynamic_base64): Ditto for operand 1.
8260 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
8262 * function.c (expand_function_start): Initialize stack_check_probe_note
8263 only if the generic stack checking mechanism is used.
8265 2011-05-11 Richard Guenther <rguenther@suse.de>
8267 PR tree-optimization/15256
8268 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
8269 (A & B) | C, combine (A op CST1) op CST2.
8270 (tree_ssa_forward_propagate_single_use_vars): Only bother to
8271 visit assigns that have uses.
8273 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
8275 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
8276 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
8277 (unpack_ts_type_common_value_fields): ...this. Update comment.
8278 (unpack_value_fields): Adjust for renaming.
8279 (lto_input_ts_type_tree_pointers): Split into...
8280 (lto_input_ts_type_common_tree_pointer): ...this and...
8281 (lto_input_ts_type_non_common_tree_pointers): ...this.
8282 (lto_input_tree_pointers): Adjust for above split.
8283 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
8284 (pack_ts_type_common_value_fields): ...this. Update comment.
8285 (lto_output_ts_type_tree_pointers): Split into...
8286 (lto_output_ts_type_common_tree_pointers): ...this and...
8287 (lto_output_ts_type_non_common_tree_pointers): ...this.
8288 (lto_output_tree_pointers): Adjust for above split.
8289 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
8290 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
8291 * stor-layout.c (vector_type_mode): Adjust location of mode field.
8292 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
8294 (struct tree_type): Split into...
8295 (struct tree_type_common: ...this and...
8296 (struct tree_type_with_lang_specific): ...this and...
8297 (struct tree_type_non_common): ...this. Adjust accessor macros
8299 (TYPE_VALUES_RAW): Define.
8300 (union tree_node): Update for above changes.
8301 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
8303 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
8304 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
8305 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
8306 * treestructu.def (TS_TYPE): Remove.
8307 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
8310 2011-05-11 Jakub Jelinek <jakub@redhat.com>
8313 * tree-ssa.c (reset_debug_uses): New function.
8314 * tree-flow.h (reset_debug_uses): New prototype.
8315 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
8316 * tree-loop-distribution.c (generate_loops_for_partition): Call
8317 reset_debug_uses on the stmts that will be removed. Keep around
8318 all debug stmts, don't count them as bits in partition bitmap.
8319 (generate_builtin): Don't count debug stmts or labels as bits in
8322 2011-05-11 Richard Guenther <rguenther@suse.de>
8324 * gimple.c (gimple_type_hash_1): Merge with ...
8325 (gimple_type_hash): ... this.
8326 (gtc_visit): Remove mode parameter and simplify accordingly.
8327 (gimple_types_compatible_p_1): Likewise.
8328 (gimple_types_compatible_p): Likewise.
8329 (iterative_hash_gimple_type): Likewise.
8331 (gimple_type_eq): Adjust.
8333 2011-05-11 Revital Eres <revital.eres@linaro.org>
8335 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
8336 enters the branch create an anti edge in the opposite direction
8337 to prevent the creation of reg-moves.
8338 * modulo-sched.c: Adjust comment to reflect the fact we are
8339 scheduling closing branch.
8340 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
8341 (stage_count): New field in struct partial_schedule.
8342 (calculate_stage_count): New function.
8343 (normalize_sched_times): Rename to reset_sched_times and handle
8344 incrementing the sched time of the nodes by a constant value
8345 passed as parameter.
8346 (duplicate_insns_of_cycles): Skip closing branch.
8347 (sms_schedule_by_order): Schedule closing branch.
8348 (ps_insn_find_column): Handle closing branch.
8349 (sms_schedule): Call reset_sched_times and adjust the code to
8350 support scheduling of the closing branch.
8351 (ps_insert_empty_row): Update calls to normalize_sched_times
8352 and rotate_partial_schedule functions.
8354 2011-05-11 Richard Guenther <rguenther@suse.de>
8357 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
8359 2011-05-11 Joseph Myers <joseph@codesourcery.com>
8361 * opts.c (finish_options): Move warning settings from process_options.
8362 * toplev.c (process_options): Move warning settings to finish_options.
8364 2011-05-11 Richard Guenther <rguenther@suse.de>
8366 PR tree-optimization/18041
8367 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
8368 (simplify_bitwise_binary): ... this. Handle operand conversions
8369 by applying them to the result instead.
8370 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
8372 2011-05-11 Richard Guenther <rguenther@suse.de>
8374 * gimple.c (gimple_canonical_types_compatible_p): Split out
8375 from gimple_types_compatible_p and friends. Do not recurse
8376 to pointed-to types.
8377 (gimple_canonical_type_eq): Use it.
8378 (iterative_hash_canonical_type): Split out from
8379 iterative_hash_gimple_type and friends. Do not recurse
8380 to pointed-to types.
8381 (gimple_canonical_type_hash): Use it, allocate the hash here.
8383 2011-05-11 Revital Eres <revital.eres@linaro.org>
8385 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
8388 2011-05-11 Revital Eres <revital.eres@linaro.org>
8390 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
8391 instead of PREV_INSN.
8393 2011-05-11 Revital Eres <revital.eres@linaro.org>
8395 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
8396 * loop-doloop.c (doloop_condition_get): Likewise.
8397 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
8399 * config/arm/arm.md (*addsi3_compare0): Remove "*".
8401 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
8403 * tree.def (CASE_LABEL_EXPR): Add an operand.
8404 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
8406 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8408 * c-decl.c (c_override_global_bindings_to_false): Remove.
8409 (global_bindings_p): Don't check
8410 c_override_global_bindings_to_false.
8411 * c-tree.h (c_override_global_bindings_to_false): Remove.
8412 * c-typeck.c (composite_type): Don't set
8413 c_override_global_bindings_to_false.
8415 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
8417 PR target/48857, 48495
8418 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
8420 (VSX_MOVE_MODE): Ditto.
8421 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
8422 VSX vector types. Add V2DImode.
8423 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
8424 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
8425 (MODES_TIEABLE_P): Ditto.
8427 * config/rs6000/rs6000.c (rs6000_emit_move): Use
8428 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
8430 (init_cumulative_args): Ditto.
8431 (rs6000_function_arg_boundary): Ditto.
8432 (rs6000_function_arg_advance_1): Ditto.
8433 (rs6000_function_arg): Ditto.
8434 (rs6000_function_ok_for_sibcall): Ditto.
8435 (emit_frame_save): Ditto.
8436 (rs6000_function_value): Ditto.
8437 (rs6000_libcall_value): Ditto.
8439 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8441 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8442 i386/darwin-lib.h to $libgcc_tm_file.
8443 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
8445 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8447 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
8449 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8451 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
8452 * config/rs6000/rs6000-tables.opt: New file (generated).
8453 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
8454 rs6000/rs6000-tables.opt to extra_options.
8455 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
8456 * config/rs6000/rs6000.c (rs6000_select): Remove.
8457 (processor_target_table): Move contents to rs6000-cpus.def.
8458 (darwin_rs6000_override_options): Check
8459 global_options_set.x_rs6000_cpu_index instead of
8460 rs6000_select[1].string.
8461 (rs6000_option_override_internal): Likewise.
8462 (rs6000_handle_option): Don't assert that global structures are in
8463 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
8464 (rs6000_default_cpu): New variable.
8465 (rs6000_file_start): Set it instead of local default_cpu. Check
8466 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
8467 global_options_set.x_rs6000_tune_index instead of rs6000_select.
8468 (rs6000_darwin_file_start): Check rs6000_default_cpu and
8469 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
8470 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
8471 rs6000_select): Remove.
8472 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
8474 (mcpu=, mtune=): Use Var, Init, Enum and Save.
8475 * config/rs6000/t-rs6000
8476 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
8477 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8478 global_options_set.x_rs6000_cpu_index instead of
8479 rs6000_select[1].string.
8480 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8481 global_options_set.x_rs6000_cpu_index instead of
8482 rs6000_select[1].string.
8484 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8486 * config.gcc (libgcc_tm_file): Define instead of including files
8487 from ../../libgcc/config/ in tm_file.
8488 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
8489 * configure: Regenerate.
8490 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
8491 libgcc_tm.h, cs-libgcc_tm.h): New.
8492 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
8493 (clean): Remove libgcc_tm.h.
8494 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
8495 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
8496 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
8498 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
8501 * config/avr/avr.c (avr_ret_register): Return unsigned int
8503 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
8504 it to avr_libcall_value.
8505 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
8507 (avr_expand_binop_builtin): Ditto.
8508 (avr_expand_unop_builtin): Ditto.
8510 2011-05-10 DJ Delorie <dj@redhat.com>
8512 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
8513 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
8514 * config/rx/rx.c (rx_align_for_label): Add label and
8515 uses_threshold parameters. Do not align when the label is not
8517 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
8519 2011-05-10 Richard Guenther <rguenther@suse.de>
8521 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
8522 a series of conversions and apply foldings similar to what
8524 (tree_ssa_forward_propagate_single_use_vars): Call it.
8526 2011-05-10 Jakub Jelinek <jakub@redhat.com>
8528 PR tree-optimization/48611
8529 PR tree-optimization/48794
8530 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
8531 referenced from RESX or EH_DISPATCH arguments.
8534 * dfp.c (decimal_to_decnumber): Handle conversion from
8535 dconst{1,2,m1,half}.
8537 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8539 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
8540 for !flag_prefer_avx128.
8541 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
8543 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
8545 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
8546 (fold_ternary_loc): Use expr_location_or.
8548 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
8551 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
8552 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
8553 Pmode and mem_mode is not VOIDmode.
8555 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
8557 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
8558 TYPE_QUAL_RESTRICT): Convert to enum.
8560 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8562 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
8563 (const_pow2_1_to_8_operand): Ditto.
8564 (const_pow2_1_to_128_operand): Ditto.
8565 (const_pow2_1_to_32768_operand): Ditto.
8566 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
8567 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
8568 in insn constraint to check integer value of operand 3.
8569 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
8571 (PINSR_MODE): New mode iterator.
8572 (sse2p4_1): New mode attribute.
8573 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
8574 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
8575 iterator. Use const_int_operand instead of
8576 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
8577 exact_log2 in insn constraint to check integer value of operand 3.
8579 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8581 * config/i386/sse.md (blendbits): Remove mode attribute.
8582 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
8583 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
8584 Check integer value of operand 3 in insn constraint.
8586 2011-05-09 Richard Guenther <rguenther@suse.de>
8588 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
8590 (lto_symtab_merge): Likewise. Do not register types here.
8591 (lto_symtab_merge_decls_2): Likewise.
8592 (lto_symtab_merge_decls_1): Likewise.
8593 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
8594 * gimple.c (enum gtc_mode): Declare.
8595 (gimple_types_compatible_p): Make static.
8597 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8599 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
8600 temporary register to match Pmode.
8602 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8604 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
8605 and *vec_concatv4si_1_avx.
8607 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8609 PR rtl-optimization/48927
8610 * ira-conflicts.c (commutative_constraint_p): Use
8611 recog_data.alternative_enabled_p to disable alternatives where
8612 "enabled" attribute is false.
8613 (get_dup_num): Ditto.
8614 * ira-lives.c (single_reg_class): Ditto.
8615 (ira_implicitly_set_insn_hard_regs): Ditto.
8617 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
8619 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
8620 (dataflow_set_preserve_mem_locs): Likewise.
8622 2011-05-09 Philipp Thomas <pth@suse.de>
8624 * config/mep/mep.c (mep_validate_vliw): Syntax description
8625 should not be translated.
8627 2011-05-09 Joseph Myers <joseph@codesourcery.com>
8629 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
8630 * config/mips/mips-tables.opt: New file (generated).
8631 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
8632 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
8633 MIPS_ARCH_OPTION_NATIVE): Define.
8634 * config/mips/mips.c (mips_cpu_info_table): Move contents to
8636 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
8637 mips_parse_cpu): Remove.
8638 (mips_cpu_info_from_opt, mips_default_arch): New.
8639 (mips_handle_option): Don't assert that global structures are in
8640 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
8641 (mips_option_override): Use new variables and functions to set
8642 state of these options. Use strcmp to check for individual CPU names.
8643 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
8645 * config/mips/mips.opt (march=): Use ToLower and Enum.
8646 (mips): Use ToLower, Enum and Var.
8647 (mtune=): Use ToLower and Enum.
8648 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
8650 2011-05-08 Jan Hubicka <jh@suse.cz>
8652 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
8653 Arrange type pairs to be UID ordered.
8654 (gimple_lookup_type_leader): Make inline.
8656 2011-05-09 Nick Clifton <nickc@redhat.com>
8659 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
8663 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
8666 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
8668 * combine.c (simplify_comparison): Abstract out parts into...
8669 (simplify_compare_const): ... new function.
8670 (try_combine): Generalize parallel arithmetic/compare combining
8671 to call simplify_compare_const() and CANONICALIZE_COMPARE().
8673 2011-05-08 Jan Hubicka <jh@suse.cz>
8675 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
8676 (cgraph_create_virtual_clone): Call hooks once virtual clone
8678 * cgraph.h (cgraph_clone_node): Update prototype.
8679 * ipa-cp.c (ipcp_estimate_growth): Use
8680 estimate_ipcp_clone_size_and_time.
8681 * ipa-inline-transform.c (clone_inlined_nodes): Update.
8682 * lto-cgraph.c (input_node): Update.
8683 * ipa-inline.c (recursive_inlining): Update.
8684 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
8685 (evaluate_conditions_for_known_args): Break out from ...
8686 (evaluate_conditions_for_edge): ... here.
8687 (evaluate_conditions_for_ipcp_clone): New function.
8688 (inline_node_duplication_hook): Update clone summary based
8690 (estimate_callee_size_and_time): Rename to ...
8691 (estimate_node_size_and_time): take NODE instead of EDGE;
8692 take POSSIBLE_TRUTHS as argument.
8693 (estimate_callee_size_and_time): Update.
8694 (estimate_ipcp_clone_size_and_time): New function.
8695 (do_estimate_edge_time): Update.
8697 2011-05-08 Richard Guenther <rguenther@suse.de>
8701 * expmed.c (expand_shift_1): Compute adjusted constant shift
8704 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
8706 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
8708 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
8710 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
8712 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
8714 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
8716 2011-05-07 Jan Hubicka <jh@suse.cz>
8718 * ipa-inline-transform.c (inline_call): Account when program size
8720 * ipa-inline.c (relative_time_benefit): New function.
8721 (edge_badness): Reorganize to be power 2 based; fix thinko when
8722 computing badness for negative growth; update comments to match
8723 reality; better dumps.
8725 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
8727 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
8728 type to bool and adjust comment.
8729 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
8730 (fold_mathfn_compare): Remove calls to global_bindings_p.
8731 (fold_inf_compare): Likewise.
8732 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
8733 * c-tree.h (global_bindings_p): Adjust prototype.
8734 * c-decl.c (global_bindings_p): Return bool and simplify.
8736 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
8738 PR tree-optimization/48837
8739 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
8740 when accumulator transformation is performed.
8742 2011-05-06 Jan Hubicka <jh@suse.cz>
8744 * i386.h (ix86_tune_indices): Add
8745 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
8746 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
8747 * i386.c (initial_ix86_tune_features): Add
8748 X86_SOFTARE_PREFETCHING_BENEFICIAL.
8749 (software_prefetching_beneficial_p): Remove predicate.
8750 (ix86_option_override_internal): Use new macro.
8752 2011-05-06 Jan Hubicka <jh@suse.cz>
8754 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
8756 2011-05-06 Jan Hubicka <jh@suse.cz>
8758 * cgraph.c (cgraph_add_thunk): Create real function node instead
8759 of alias node; finalize it and mark needed/reachale; arrange visibility
8760 to be right and add it into the corresponding same comdat group list.
8761 (dump_cgraph_node): Dump thunks.
8762 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
8763 cgraph_function_with_gimple_body_p,
8764 cgraph_first_function_with_gimple_body,
8765 cgraph_next_function_with_gimple_body): New functions.
8766 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
8768 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
8769 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
8770 * cgraphunit.c (cgraph_finalize_function): Only look into possible
8771 devirtualization when optimizing.
8772 (verify_cgraph_node): Verify thunks.
8773 (cgraph_analyze_function): Analyze thunks.
8774 (cgraph_mark_functions_to_output): Output thunks only in combination
8775 with function they are assigned to.
8776 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
8777 alias into normal node.
8778 (assemble_thunks): New functoin.
8779 (cgraph_expand_function): Use it.
8780 * lto-cgraph.c (lto_output_node): Stream thunks.
8781 (input_overwrite_node): Stream in thunks.
8782 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
8783 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
8784 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
8785 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
8786 (inline_analyze_function): Do not care about thunk jump functions.
8787 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
8788 * ipa-prop.c (ipa_prop_write_jump_functions): Use
8789 cgraph_function_with_gimple_body_p.
8790 * passes.c (do_per_function_toporder): Use
8791 cgraph_function_with_gimple_body_p.
8792 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
8793 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
8794 (function_called_by_processed_nodes_p): Likewise.
8796 2011-05-06 Joseph Myers <joseph@codesourcery.com>
8798 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
8799 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
8801 (mabi=): Replace with separate entries for mabi=altivec,
8802 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
8803 mabi=ieeelongdouble and mabi=ibmlongdouble.
8804 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
8805 check for -mabi=spe without SPE ABI support here.
8806 (rs6000_handle_option): Replace OPT_mabi_ handling with
8807 OPT_mabi_altivec and OPT_mabi_spe handling.
8809 2011-05-06 Cary Coutant <ccoutant@google.com>
8811 * dwarf2out.c (contains_subprogram_definition): New function.
8812 (should_move_die_to_comdat): Call it.
8814 2011-05-06 Jeff Law <law@redhat.com>
8816 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
8817 remove_ctrl_stmt_and_useless_edges.
8818 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
8819 (fixup_template_block, thread_single_edge): Likewise.
8820 (mark_threaded_blocks): Use THREAD_TARGET.
8822 2011-05-06 Alan Modra <amodra@gmail.com>
8825 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
8826 const0_rtx as the arg to the dummy __tls_get_addr libcall.
8828 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
8830 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
8831 constraint modifier to "r".
8833 2011-05-06 Joseph Myers <joseph@codesourcery.com>
8835 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
8836 fall through for OPT_mcmodel_.
8838 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8840 * config/s390/s390.c (s390_asm_trampoline_template): Comment
8842 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
8844 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8847 * config/arm/arm.opt (marm): Document it.
8848 (mthumb): Reject negative variant.
8850 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
8853 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8854 Fix typo in "ccvt" variable name.
8856 2011-05-06 Tristan Gingold <gingold@adacore.com>
8859 * config/vms/vms-ar.c (main): Remove cwd variable.
8861 2011-05-06 Jakub Jelinek <jakub@redhat.com>
8864 * var-tracking.c (prepare_call_arguments): Move else before #endif.
8866 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
8868 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
8869 * gimplify.c (gimplify_switch_expr): Likewise.
8870 * omp-low.c (expand_omp_sections): Likewise.
8871 * tree-eh.c (lower_try_finally_switch): Likewise.
8872 (lower_eh_dispatch): Likewise.
8873 * tree.h (build_case_label): Declare.
8874 * tree.c (build_case_label): Define.
8876 2011-05-05 Jason Merrill <jason@redhat.com>
8879 * tree-inline.c (copy_tree_r): Use copy_statement_list.
8880 (copy_statement_list): Don't recurse.
8881 * stor-layout.c (copy_self_referential_tree_r): Don't allow
8884 2011-05-05 Joseph Myers <joseph@codesourcery.com>
8886 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
8887 through from -mfpu= handling.
8888 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
8890 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
8892 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
8895 2011-05-05 Steve Ellcey <sje@cup.hp.com>
8897 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
8899 (hppa[12]*-*-hpux11*): Ditto.
8900 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
8901 * config/ia64/hpux-unix2003.h: New.
8902 * config/pa/pa-hpux1131.opt: New.
8903 * config/pa/pa-hpux1131.h: New.
8904 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
8905 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
8906 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
8908 2011-05-05 Jakub Jelinek <jakub@redhat.com>
8911 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
8912 instead of mode as 3rd argument to recursive call.
8913 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
8914 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
8916 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
8917 don't give up if mode is Pmode and mem_mode is not VOIDmode.
8918 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
8919 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
8921 2011-05-05 Julian Brown <julian@codesourcery.com>
8923 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
8924 parenthesis in D-register case.
8926 2011-05-05 Joseph Myers <joseph@codesourcery.com>
8928 * opt-functions.awk (var_type_struct): Handle Enum options.
8929 * optc-gen.awk: Don't check range of variables of character type.
8930 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
8931 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
8932 rs6000_sdata_name, rs6000_explicit_options): Remove.
8933 (rs6000_option_override_internal): Check for -malign-power here.
8934 Use global_options_set instead of rs6000_explicit_options.
8935 (rs6000_parse_fpu_option): Remove.
8936 (rs6000_handle_option): Access variables via opts and opts_set
8937 pointers. Use error_at and warning_at. Add fall-through
8938 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
8939 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
8940 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
8941 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
8942 here. Don't use rs6000_parse_fpu_option.
8943 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
8944 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
8945 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
8947 (mspe): Use Var and Save.
8948 (mtraceback=): Use Enum and Var.
8949 (rs6000_traceback_type): New Enum and EnumValue entries.
8950 (mfloat-gprs=): Use Enum, Var and Save.
8951 (rs6000_float_gprs): New Enum and EnumValue entries.
8952 (mlong-double-): use Var and Save.
8953 (msched-costly-dep=, minsert-sched-nops=): Use Var.
8954 (malign-): Use Enum and Var.
8955 (rs6000_alignment_flags): New Enum and EnumValue entries.
8957 (fpu_type_t): New Enum and EnumValue entries.
8958 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
8959 global_options_set instead of rs6000_explicit_options.
8960 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
8961 global_options_set instead of rs6000_explicit_options.
8962 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
8963 global_options_set instead of rs6000_explicit_options.
8964 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
8965 global_options_set instead of rs6000_explicit_options.
8966 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
8967 global_options_set instead of rs6000_explicit_options.
8968 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
8969 global_options_set instead of rs6000_explicit_options.
8970 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
8972 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
8973 global_options_set instead of rs6000_explicit_options.
8974 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
8975 (rs6000_cmodel): New Enum and EnumValue entries.
8976 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
8977 global_options_set instead of rs6000_explicit_options.
8978 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
8979 (mtls-size=): Use Enum and Var.
8980 (rs6000_tls_size): New Enum and EnumValue entries.
8982 2011-05-05 Michael Matz <matz@suse.de>
8984 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
8985 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
8986 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
8987 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
8988 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
8989 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
8990 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
8991 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
8992 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
8993 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
8994 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
8995 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
8996 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
8997 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
8998 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
8999 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
9001 2011-05-05 Richard Guenther <rguenther@suse.de>
9003 * expmed.c (expand_variable_shift): Rename to ...
9004 (expand_shift_1): ... this. Take an expanded shift amount.
9005 For rotates recurse directly not building trees for the shift amount.
9006 (expand_variable_shift): Wrap around expand_shift_1.
9007 (expand_shift): Adjust.
9009 2011-05-05 Jakub Jelinek <jakub@redhat.com>
9011 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
9013 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
9015 * tree.h (get_pending_sizes): Remove prototype.
9016 (put_pending_size): Likewise.
9017 (put_pending_sizes): Likewise.
9018 * stor-layout.c (pending_sizes): Delete.
9019 (get_pending_sizes): Likewise.
9020 (put_pending_size): Likewise.
9021 (put_pending_sizes): Likewise.
9022 (variable_size): Do not call put_pending_size and tidy up.
9023 * function.h (struct function): Remove dont_save_pending_sizes_p.
9024 * lto-streamer-in.c (input_function): Do not stream it.
9025 * lto-streamer-out.c (output_function): Likewise.
9026 * tree-inline.c (initialize_cfun): Do not copy it.
9027 * c-decl.c (store_parm_decls): Do not set it.
9028 * omp-low.c (create_task_copyfn): Likewise.
9029 * tree-optimize.c (tree_rest_of_compilation): Likewise.
9031 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
9033 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
9035 (*movdf_internal): Ditto.
9036 (*movdf_internal_nointeger): Ditto.
9037 (*movsf_internal): Ditto.
9039 2011-05-05 Joseph Myers <joseph@codesourcery.com>
9041 * c-decl.c (finish_decl): Don't call get_pending_sizes.
9042 (grokparm): Add parameter expr. Pass it to grokdeclarator.
9043 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
9044 (c_variable_size): Remove.
9045 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
9046 call put_pending_sizes.
9047 (get_parm_info): Add parameter expr. Use it to set
9048 arg_info->pending_sizes.
9049 (store_parm_decls): Use arg_info->pending_sizes instead or calling
9051 * c-parser.c (c_parser_parms_declarator): Update call to
9052 c_parser_parms_list_declarator.
9053 (c_parser_parms_list_declarator): Take parameter expr. Update
9054 call to push_parm_decl. Update recursive call. Don't call
9055 get_pending_sizes. Update calls to get_parm_info.
9056 (c_parser_objc_method_definition): Update calls to
9057 c_parser_objc_method_decl and objc_start_method_definition.
9058 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
9059 (c_parser_objc_method_decl): Add parameter expr. Update call to
9061 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
9062 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
9063 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
9065 2011-05-05 Michael Hope <michael.hope@linaro.org>
9068 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
9071 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9073 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
9074 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
9075 (spu_output_mi_thunk): New function.
9077 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9079 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
9080 targetm.asm_out.print_operand.
9081 * config/sol2.c: Include target.h.
9083 2011-05-04 Jan Hubicka <jh@suse.cz>
9085 * ipa-inline.c (reset_edge_caches): New function.
9086 (update_caller_keys): Add check_inlinablity_for; do not
9087 reset edge caches; remove now unnecesary loop.
9088 (update_callee_keys): Add comments; reset node_growth_cache of callee.
9089 (update_all_callee_keys): Likewise.
9090 (inline_small_functions): Sanity check cache; update code
9093 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
9095 PR rtl-optimization/47612
9096 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
9097 as the last insn of the sequence to be moved.
9099 2011-05-04 Tobias Burnus <burnus@net-b.de>
9102 * doc/invoke.texi (Ofast): Document that it
9103 enables Fortran's -fno-protect-parens.
9105 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
9107 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
9109 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
9111 * stor-layout.c (variable_size): Do not issue errors.
9113 2011-05-04 Richard Guenther <rguenther@suse.de>
9115 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
9116 for array-ref indices.
9117 (tree_coverage_counter_addr): Likewise.
9118 (build_fn_info_type): Use size_int for index types.
9119 (build_gcov_info): Likewise.
9121 2011-05-04 Richard Guenther <rguenther@suse.de>
9123 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
9125 * c-typeck.c (really_start_incremental_init): Use bitsize_int
9126 for constructor indices.
9127 (push_init_level): Likewise.
9129 2011-05-04 Richard Guenther <rguenther@suse.de>
9131 * explow.c (promote_mode): Move variable declarations before code.
9133 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
9135 * tree.h (build_function_type_array): Declare.
9136 (build_varargs_function_type_array): Declare.
9137 (build_function_type_vec, build_varargs_function_type_vec): Define.
9138 * tree.c (build_function_type_array_1): New function.
9139 (build_function_type_array): New function.
9140 (build_varargs_function_type_array): New function.
9142 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
9144 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
9145 before setting STMT_VINFO_TYPE.
9147 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9149 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
9150 instead of spu_pass_by_reference.
9152 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9154 * calls.c (emit_library_call_value_1): Invoke
9155 promote_function_mode hook on libcall arguments.
9156 * explow.c (promote_function_mode, promote_mode): Handle TYPE
9157 argument being NULL.
9158 * targhooks.c (default_promote_function_mode): Lisewise.
9159 * config/s390/s390.c (s390_promote_function_mode): Likewise.
9160 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
9162 * doc/tm.texi: Document that TYPE argument might be NULL.
9164 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9166 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
9168 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9171 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
9173 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9175 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
9176 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
9178 * mips-tfile.c: ... here.
9179 Don't include coretypes.h, tm.h, filenames.h.
9180 (saber_stop): Remove definition and all calls.
9181 [__SABER__]: Remove.
9182 (__LINE__): Remove default.
9183 (Size_t, Ptrdiff_t): Remove definitions.
9184 Replace by size_t, ptrdiff_t.
9185 [!MIPS_DEBUGGING_INFO]: Remove.
9186 (SHASH_SIZE, THASH_SIZE): Remove defaults.
9187 (progname): Add const.
9189 Replace all uses by static.
9190 (ALIGN_SYMTABLE_OFFSET): Remove default.
9191 * mips-tdump.c: Don't include coretypes.h, tm.h.
9192 Remove !MIPS_IS_STAB guard.
9193 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
9194 $(TM_H), filenames.h dependencies.
9195 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
9197 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9200 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
9201 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
9203 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9206 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
9207 account and save/restore RETS.
9208 (PROFILE_BEFORE_PROLOGUE): Define.
9209 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
9210 the push insn to use predecrement.
9212 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9215 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
9217 2011-05-04 Nick Clifton <nickc@redhat.com>
9219 * config/mn10300/mn10300.c: Include cfgloop.h.
9221 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
9222 Lcc or a FLcc insn into the instruction stream.
9223 (mn10300_block_contains_call): New function. Returns true if the
9224 given basic block contains a CALL insn.
9225 (mn10300_loop_contains_call_insn): New function. Returns true if
9226 the given loop contains a CALL insn.
9227 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
9228 to use the SETLB and Lcc or FLcc insns.
9229 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
9230 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
9231 * config/mn10300/mn10300.opt (msetlb): New option. Used to
9232 disable the SETLB optimization.
9233 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
9234 __SETLB__ or __NO_SETLB__.
9235 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
9236 (movsf_internal): Handle MDR register.
9237 (cmpsi): Make visible.
9238 (setlb): New pattern.
9240 (FLcc): New pattern.
9242 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
9245 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
9246 for reg<->xmm moves.
9247 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
9248 (vec_concatv2di_rex64_sse): Ditto.
9249 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
9250 (*vec_extractv2di_1_rex64): Ditto.
9253 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
9255 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9257 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
9259 2011-05-04 Richard Guenther <rguenther@suse.de>
9261 * tree.h (int_const_binop): Remove notrunc argument.
9262 * fold-const.c (int_const_binop): Remove notrunc argument. Always
9263 create integer constants that are properly truncated.
9264 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
9265 (const_binop): Remove zero notrunc argument to int_const_binop.
9266 (size_binop_loc): Likewise.
9267 (fold_div_compare): Likewise.
9268 (maybe_canonicalize_comparison_1): Likewise.
9269 (fold_comparison): Likewise.
9270 (fold_binary_loc): Likewise.
9271 (multiple_of_p): Likewise.
9272 * expr.c (store_constructor): Likewise.
9273 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9274 (maybe_fold_stmt_addition): Likewise.
9275 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
9276 * stor-layout.c (layout_type): Likewise.
9277 * tree-data-ref.c (tree_fold_divides_p): Likewise.
9278 * tree-sra.c (build_ref_for_offset): Likewise.
9279 (build_user_friendly_ref_for_offset): Likewise.
9280 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
9281 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9282 * tree-ssa-loop-niter.c (inverse): Likewise.
9283 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9284 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
9285 * tree-switch-conversion.c (check_range): Likewise.
9286 (build_constructors): Likewise.
9287 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
9288 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
9289 (extract_range_from_assert): Likewise.
9290 (vrp_int_const_binop): Likewise.
9291 (extract_range_from_binary_expr): Likewise.
9292 (extract_range_from_unary_expr): Likewise.
9293 (check_array_ref): Likewise.
9294 (find_case_label_range): Likewise.
9295 (simplify_div_or_mod_using_ranges): Likewise.
9296 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
9297 comparing case labels for merging.
9299 2011-05-03 Mark Wielaard <mjw@redhat.com>
9301 * dwarf2out.c (debug_str_hash_forced): Removed.
9302 (gen_label_for_indirect_string): Removed.
9303 (get_debug_string_label): Removed.
9304 (AT_string_form): Generate label directly.
9305 (output_indirect_string): Test indirect_string_node for
9306 DW_FORM_strp instead of checking label and refcount.
9307 (prune_indirect_string): Removed.
9308 (prune_unused_types): Don't check debug_str_hash_forced or
9309 call prune_indirect_string.
9311 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
9314 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
9316 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
9320 * combine.c (try_combine): Skip debug insns at m_split tests.
9322 2011-04-26 Mark Wielaard <mjw@redhat.com>
9325 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
9326 when info_section_emitted.
9328 2011-05-03 Joseph Myers <joseph@codesourcery.com>
9330 * config/mips/mips-opts.h: New.
9331 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
9333 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
9334 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
9335 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
9337 * config/mips/mips.h (enum mips_code_readable_setting): Move to
9339 (mips_abi, mips_code_readable): Don't declare.
9340 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
9341 (mabi=): Use Enum and Var.
9342 (mips_abi): New Enum and EnumValue entries.
9343 (mcode-readable=): Use Enum and Var.
9344 (mips_code_readable_setting): New Enum and EnumValue entries.
9345 (mr10k-cache-barrier=): Use Enum and Var.
9346 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
9348 2011-05-03 Jan Hubicka <jh@suse.cz>
9350 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
9351 replace hash by pointer map.
9352 (cgraph_node_set_element_def, cgraph_node_set_element,
9353 const_cgraph_node_set_element, varpool_node_set_element_def,
9354 varpool_node_set_element, const_varpool_node_set_element): Remove.
9355 (free_cgraph_node_set, free_varpool_node_set): New function.
9356 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
9357 * tree-emutls.c: Free varpool node set.
9358 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
9359 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9360 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
9361 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9362 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
9363 Move here from ipa.c; implement using pointer_map
9364 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
9365 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9366 debug_cgraph_node_set, varpool_node_set_new,
9367 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9368 dump_varpool_node_set, debug_varpool_node_set):
9369 Move to ipa-uitls.c.
9370 * passes.c (ipa_write_summaries): Update.
9372 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9374 From Mike Frysinger:
9375 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
9376 bf542/bf544/bf547/bf548/bf549.
9378 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
9380 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
9382 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9385 * config/bfin/bfin.md (MOVCC): New mode_macro.
9386 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
9387 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
9388 comments from generated assembly.
9390 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9393 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
9394 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
9395 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
9396 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
9397 * config/bfin/lib1funcs.asm (___muldi3): New function.
9399 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9401 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
9402 build_function_type_list instead of build_function_type.
9403 Rearrange initialization of `args' to do so.
9405 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9407 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
9408 instead of build_function_type.
9410 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9412 * config/rs6000/rs6000.c (spe_init_builtins): Call
9413 build_function_type_list instead of build_function_type.
9414 (paired_init_builtins, altivec_init_builtins): Likewise.
9415 (builtin_function_type): Likewise.
9417 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9419 * config/sh/sh.c (sh_media_init_builtins): Call
9420 build_function_type_list instead of build_function_type.
9422 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9424 * config/sparc/sparc.c (sparc_file_end): Call
9425 build_function_type_list instead of build_function_type.
9427 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9429 * config/alpha/alpha.c (alpha_init_builtins): Call
9430 build_function_type_list instead of build_function_type.
9432 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9434 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
9435 build_function_type_list instead of build_function_type.
9437 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9439 * config/iq2000/i2000.c (iq2000_init_builtins): Call
9440 build_function_type_list instead of build_function_type.
9441 Delete `endlink' variable.
9443 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9445 * config/avr/avr.c (avr_init_builtins): Call
9446 build_function_type_list instead of build_function_type.
9448 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9450 * config/picochip/picochip.c (picochip_init_builtins): Call
9451 build_function_type_list instead of build_function_type.
9452 Delete `endlink' variable.
9454 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9456 * config/bfin/bfin.c (bfin_init_builtins): Call
9457 build_function_type_list instead of build_function_type.
9459 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9462 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
9463 that's not CONST_INT. Seemingly redundant check is due to PR39768.
9465 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9468 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
9469 libbffastfp overrides libgcc when -mfast-fp.
9471 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9473 Originally from Bernd Schmidt
9474 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
9475 * config/bfin/bfin.c (override_options): Test it and error if
9478 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9480 Originally From Bernd Schmidt
9481 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
9484 2011-05-03 Jeff Law <law@redhat.com>
9486 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
9487 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
9488 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
9489 than accessing AUX field directly. Free the AUX field before
9491 (thread_block, thread_through_loop_header): Likewise.
9492 (thread_single_edge, mark_threaded_blocks): Likewise.
9493 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
9494 (register_jump_thread): Do not attempt to thread to a NULL edge.
9496 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
9498 * function.c (init_function_start): Call decide_function_section.
9499 * varasm.c (decide_function_section): New function.
9500 (assemble_start_function): When not using
9501 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
9502 or first_function_block_is_cold.
9503 * rtl.h (decide_function_section): Declare.
9505 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
9506 Jakub Jelinek <jakub@redhat.com>
9509 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
9510 only succeed if req_mode is the same as set_mode.
9512 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
9514 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
9515 * genemit.c (gen_exp): Handle RETURN.
9516 * emit-rtl.c (verify_rtx_sharing): Likewise.
9517 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
9518 * rtl.c (copy_rtx): RETURN is shared.
9519 * rtl.h (enum global_rtl_index): Add GR_RETURN.
9521 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
9522 * config/s390/s390.c (s390_emit_epilogue): Likewise.
9523 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
9524 * config/cris/cris.c (cris_expand_return): Likewise.
9525 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
9526 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
9527 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
9528 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
9529 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
9531 * config/v850/v850.c (expand_epilogue): Likewise.
9532 * config/bfin/bfin.c (bfin_expand_call): Likewise.
9533 * config/arm/arm.md (epilogue): Likewise.
9534 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
9535 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
9536 variable to ret_reg.
9538 2011-05-03 Richard Guenther <rguenther@suse.de>
9541 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
9542 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
9543 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9545 2011-05-03 Richard Guenther <rguenther@suse.de>
9547 * c-decl.c (grokdeclarator): Instead of looking at
9548 TREE_OVERFLOW check if the constant fits in the index type.
9550 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9552 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
9553 (vec_store_lanes<mode><mode>): Likewise.
9555 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9557 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
9558 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
9559 convert_optab_index values.
9560 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
9561 * genopinit.c (optabs): Initialize the new optabs.
9562 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
9563 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
9564 (expand_STORE_LANES): New functions.
9565 * tree.h (build_array_type_nelts): Declare.
9566 * tree.c (build_array_type_nelts): New function.
9567 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
9568 (vect_model_load_cost): Likewise.
9569 (vect_store_lanes_supported, vect_load_lanes_supported)
9570 (vect_record_strided_load_vectors): Declare.
9571 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
9572 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
9573 (vect_transform_strided_load): Split out statement recording into...
9574 (vect_record_strided_load_vectors): ...this new function.
9575 * tree-vect-stmts.c (create_vector_array, read_vector_array)
9576 (write_vector_array, create_array_ref): New functions.
9577 (vect_model_store_cost): Add store_lanes_p argument.
9578 (vect_model_load_cost): Add load_lanes_p argument.
9579 (vectorizable_store): Try to use store-lanes functions for
9581 (vectorizable_load): Likewise load-lanes and loads.
9582 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
9583 to vect_model_store_cost.
9584 (vect_build_slp_tree): Likewise vect_model_load_cost.
9586 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9588 * hooks.h (hook_bool_mode_uhwi_false): Declare.
9589 * hooks.c (hook_bool_mode_uhwi_false): New function.
9590 * target.def (array_mode_supported_p): New hook.
9591 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
9592 * doc/tm.texi: Regenerate.
9593 * stor-layout.c (mode_for_array): New function.
9594 (layout_type): Use it.
9595 * config/arm/arm.c (arm_array_mode_supported_p): New function.
9596 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
9598 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
9601 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
9602 for -fstack-check if the size to allocate is negative.
9604 2011-05-02 Lawrence Crowl <crowl@google.com>
9606 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
9607 (timevar_cond_start): New for starting a timer only when it is not
9609 (timevar_cond_stop): New for stopping a timer when it was not already
9612 * timevar.c (timevar_stop): Enable start/stop timers to start again.
9613 (timevar_cond_start): New as above.
9614 (timevar_cond_stop): New as above.
9616 * timevar.def: Add start/stop timers for compiler phases,
9617 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
9618 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
9619 and TV_PHASE_FINALIZE.
9620 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
9621 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
9622 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
9623 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
9624 Make unused TV_OVERLOAD into a start/stop timer.
9626 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
9627 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
9628 to indicate that they are start/stop timers.
9630 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
9631 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
9632 Move initialization to do_compile.
9633 (do_compile): Add initialization from above.
9634 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
9636 * c-decl.c (c_write_global_declarations): Add start/stop of
9637 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
9639 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
9640 or TV_PARSE_INLINE, as appropriate.
9641 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
9642 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
9644 2011-05-02 Jason Merrill <jason@redhat.com>
9647 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
9649 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
9652 * c-decl.c (finish_decl): Only create a composite if the types are
9655 2011-05-02 Joseph Myers <joseph@codesourcery.com>
9657 * config/fr30/fr30-protos.h (Mmode): Don't define.
9658 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
9659 definition where used.
9660 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
9661 define. Expand definitions where used.
9662 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
9663 Expand definitions where used.
9664 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
9665 rx_function_arg, rx_function_arg_advance,
9666 rx_function_arg_boundary): Expand definitions of those macros.
9667 * config/v850/v850-protos.h (Mmode): Don't define. Expand
9668 definition where used.
9670 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
9672 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9674 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
9675 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
9676 with *movv2sf_internal_rex64_avx.
9677 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
9678 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
9679 Use %v prefix in insn mnemonic to handle TARGET_AVX.
9680 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
9681 "vex" in "prefix" attribute calculation.
9682 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
9684 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
9687 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
9688 inputs match the output.
9690 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
9693 * config/m68k/m68k.c (m68k_expand_prologue): Set
9694 current_function_static_stack_size.
9696 2011-05-02 Jan Hubicka <jh@suse.cz>
9698 * lto-streamer.c (lto_streamer_cache_insert_1,
9699 lto_streamer_cache_lookup, lto_streamer_cache_create,
9700 lto_streamer_cache_delete): Use pointer map instead of hashtable.
9701 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
9703 2011-05-02 Joseph Myers <joseph@codesourcery.com>
9705 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
9706 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
9707 config/m68k/t-opts: New files.
9708 * config/m68k/m68k-tables.opt: New file (generated).
9709 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
9710 extra_options and m68k/t-opts to tmake_file.
9711 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
9712 (all_isas): Initialize using m68k-isas.def.
9713 (all_microarchs): Initialize using m68k-microarchs.def.
9714 (m68k_find_selection): Remove.
9715 (m68k_handle_option): Don't assert that global structures are in
9716 use. Use error_at. Access variables via opts pointer. Don't
9717 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
9718 directly for -m68020-40 and -m68020-60.
9719 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
9720 m68k_tune_entry here.
9721 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
9723 (m68k_library_id_string): Remove declaration.
9724 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
9725 (m68k_library_id_string): New Variable.
9726 (march=, mcpu=, mtune=): Use Enum and Var.
9728 2011-05-02 Richard Guenther <rguenther@suse.de>
9730 * varasm.c (output_constructor_regular_field): Compute zero-based
9731 index with double-ints. Make sure to ICE instead of producing
9733 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
9734 in asserts. Properly use a signed type.
9736 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
9738 * config/i386/sse.md (V): New mode iterator.
9739 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
9741 (V_256): Rename from AVX256MODE.
9742 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
9743 condition to all users.
9745 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
9746 condition to all users.
9747 (VF_128): Make V4SF mode unconditional.
9748 (VF_256): Rename from AVX256MODEF2P.
9749 (VI4F_128): Rename from SSEMODE4S.
9750 (VI8F_128): Rename from SSEMODE2D.
9751 (VI4F_256): Rename from AVX256MODE8P.
9752 (VI8F_256): Rename from AVX256MODE4P.
9753 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
9754 (ssescalarmodesuffix): Remove SF and DF modes.
9755 (SSEMODE124): Remove.
9756 (SSEMODE1248): Ditto.
9757 (SSEMODEF2P): Ditto.
9758 (AVXMODEF2P): Ditto.
9759 (AVXMODEFDP): Ditto.
9760 (AVXMODEFSP): Ditto.
9761 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
9763 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
9765 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
9766 xop_pcmov_<mode>256. Use V mode iterator.
9768 Adjust RTX patterns globally for renamed mode attributes.
9770 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9772 * haifa-sched.c (sched_emit_insn): Emit insn before first
9773 non-scheduled insn. Inform back-end about new insn. Add
9774 new insn to scheduled_insns list.
9776 2011-05-02 Richard Guenther <rguenther@suse.de>
9778 PR tree-optimization/48822
9779 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
9780 (process_scc): Indicate which iteration we start.
9782 2011-05-02 Jan Hubicka <jh@suse.cz>
9784 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
9785 (lto_section_overrun): New.
9786 * lto-section-out.c (append_block): Rename to ...
9787 (lto_append_block): ... this one; export.
9788 (lto_output_1_stream): Move lto lto-streamer.h
9789 (lto_output_data_stream): Update.
9790 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
9791 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
9794 2011-05-02 Richard Guenther <rguenther@suse.de>
9796 * tree.c (tree_code_counts): New global array.
9797 (record_node_allocation_statistics): Count individual tree codes.
9798 (dump_tree_statistics): Dump individual code stats.
9800 2011-05-01 Jan Hubicka <jh@suse.cz>
9802 * ipa-inline.c (caller_growth_limits): Fix thinko when
9803 looking for largest stack frame.
9804 * ipa-inline.h (dump_inline_summary): Declare.
9805 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
9807 (dump_inline_summary): Export.
9808 (debug_inline_summary): Declare as DEBUG_FUNCTION.
9810 2011-05-01 Anatoly Sokolov <aesok@post.ru>
9812 * reginfo.c (memory_move_cost): Change rclass argument type form
9813 'enum reg_class' to reg_class_t.
9814 * reload.h (memory_move_cost): Update prototype.
9815 * postreload.c reload_cse_simplify_set): Change type dclass var to
9817 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
9819 (ira_allocate_and_set_costs): Change aclass argument type form
9820 'enum reg_class' to reg_class_t.
9821 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
9822 Change aclass argument type to reg_class_t.
9823 (update_conflict_hard_reg_costs): Change type aclass and pref vars
9825 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
9826 memory_move_cost call.
9828 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
9829 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
9830 Change type tmp var to reg_class_t.
9832 2011-04-30 Jan Hubicka <jh@suse.cz>
9834 * ipa-inline.c (can_inline_edge_p): Disregard limits when
9835 inlining into function with flatten attribute.
9836 (want_inline_small_function_p): Be more realistic about inlining
9837 cold calls where callee size grows.
9839 2011-04-30 Jan Hubicka <jh@suse.cz>
9841 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
9844 2011-04-30 Anatoly Sokolov <aesok@post.ru>
9846 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9847 PRINT_OPERAND_PUNCT_VALID_P): Remove.
9848 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
9849 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
9850 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9851 (print_operand): Rename to...
9852 (sparc_print_operand): ...this. Make static. Adjust
9853 sparc_print_operand function call.
9854 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
9857 2011-04-30 Jan Hubicka <jh@suse.cz>
9860 * ipa-inline.c (early_inliner): Disable when doing late
9861 addition of function.
9863 2011-04-30 Jakub Jelinek <jakub@redhat.com>
9865 * dwarf2out.c (get_address_mode): New inline.
9866 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
9867 if not dwarf_strict emit
9868 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
9869 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
9870 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
9871 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
9872 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
9873 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
9874 mem_loc_descriptor callers.
9875 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9876 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
9877 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
9878 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
9879 (base_types): New variable.
9880 (get_base_type_offset, calc_base_type_die_sizes,
9881 base_type_for_mode, mark_base_types, base_type_cmp,
9882 move_marked_base_types): New functions.
9883 (calc_die_sizes): Assert that die_offset is 0 or equal to
9885 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
9886 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
9887 callers. If not dwarf_strict, call mem_loc_descriptor even for
9888 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
9889 (gen_subprogram_die): Don't give up on call site parameters
9890 with non-integral or large integral modes. Adjust
9891 mem_loc_descriptor callers.
9892 (prune_unused_types): Call prune_unused_types_mark on base_types
9894 (resolve_addr): Call mark_base_types.
9895 (dwarf2out_finish): Call move_marked_base_types.
9897 PR tree-optimization/48809
9898 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
9900 (gen_inbound_check): Don't compute index_expr - range_min in utype
9901 again, instead reuse SSA_NAME initialized in build_arrays.
9902 Remove two useless gsi_for_stmt calls.
9904 2011-04-29 Jeff Law <law@redhat.com>
9906 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
9908 2011-04-29 Martin Jambor <mjambor@suse.cz>
9910 * cgraph.h (cgraph_postorder): Remove declaration.
9911 * ipa-utils.h (ipa_free_postorder_info): Declare.
9912 (ipa_reverse_postorder): Likewise.
9913 * cgraphunit.c: Include ipa-utils.h.
9914 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
9915 * ipa-inline.c: Include ipa-utils.h.
9916 (ipa_inline): Update call to ipa_reverse_postorder.
9917 * ipa-pure-const.c (propagate_pure_const): Update call to
9918 ipa_reduced_postorder and ipa_print_order. Call
9919 ipa_free_postorder_info to clean up.
9920 (propagate_nothrow): Likewise.
9921 * ipa-reference.c (propagate): Removed a useless call to
9922 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
9923 and ipa_print_order. Call ipa_free_postorder_info to clean up.
9924 * ipa.c: Include ipa-utils.h.
9925 (ipa_profile): Update call to ipa_reverse_postorder.
9926 (cgraph_postorder): Moved to...
9927 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
9928 (ipa_utils_print_order): Renamed to ipa_print_order.
9929 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
9931 (ipa_free_postorder_info): New function.
9932 * passes.c: Include ipa-utils.h.
9933 (do_per_function_toporder): Update call to ipa_reverse_postorder.
9934 (ipa_write_summaries): Likewise.
9935 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
9936 (cgraphunit.o): Likewise.
9938 (ipa-inline.o): Likewise.
9940 2011-04-29 Jan Hubicka <jh@suse.cz>
9942 * gcc.dg/tree-ssa/inline-10.c: New testcase.
9943 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
9944 * ipa-inline.h (clause_t): Turn into unsigned int.
9945 * ipa-inline-analysis.c (add_clause): Do more simplification.
9946 (and_predicates): Shortcut more cases.
9947 (predicates_equal_p): Move forward; check that clauses are properly
9949 (or_predicates): Shortcut more cases.
9950 (edge_execution_predicate): Rewrite as...
9951 (set_cond_stmt_execution_predicate): ... this function; handle
9952 __builtin_constant_p.
9953 (set_switch_stmt_execution_predicate): New .
9954 (compute_bb_predicates): New.
9955 (will_be_nonconstant_predicate): Update TODO.
9956 (estimate_function_body_sizes): Use compute_bb_predicates
9957 and free them later, always try to estimate if stmt is constant.
9958 (estimate_time_after_inlining, estimate_size_after_inlining):
9959 Gracefully handle optimized out edges.
9960 (read_predicate): Fix off by one error.
9962 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
9964 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
9966 2011-04-27 Xinliang David Li <davidxl@google.com>
9968 * tree-profile.c (init_ic_make_global_vars): Set
9969 tls attribute on ic vars.
9970 * coverage.c (coverage_end_function): Initialize
9971 function_list with zero.
9973 2011-04-29 Richard Guenther <rguenther@suse.de>
9975 * builtins.c (fold_builtin_classify_type): Use integer_type_node
9976 for the type of the result.
9977 (fold_builtin_isascii): Likewise.
9978 (fold_builtin_toascii): Use integer_type_node where appropriate.
9979 (fold_builtin_logb): Likewise.
9980 (fold_builtin_frexp): Likewise.
9981 (fold_builtin_strstr): Likewise.
9982 (fold_builtin_strpbrk): Likewise.
9983 (fold_builtin_fputs): Likewise.
9984 (fold_builtin_sprintf): Likewise.
9985 (fold_builtin_snprintf): Likewise.
9986 (fold_builtin_printf): Likewise.
9987 (do_mpfr_remquo): Use a proper type for the assigned constant.
9988 (do_mpfr_lgamma_r): Likewise.
9989 * dwarf2out.c (resolve_one_addr): Use size_int.
9990 * except.c (init_eh): Likewise.
9991 (assign_filter_values): Use integer_type_node for filter values.
9992 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
9994 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
9995 for EH region numbers.
9996 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
9997 for the shift amount.
9999 2011-04-29 Richard Guenther <rguenther@suse.de>
10001 * expr.h (expand_shift): Rename to ...
10002 (expand_variable_shift): ... this.
10003 (expand_shift): Take a constant shift amount.
10004 * expmed.c (expand_shift): Rename to ...
10005 (expand_variable_shift): ... this.
10006 (expand_shift): New wrapper around expand_variable_shift.
10007 * expr.c (convert_move, emit_group_load_1, emit_group_store,
10008 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
10009 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
10010 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
10011 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
10012 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
10013 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
10014 emit_store_flag_1, emit_store_flag): Likewise.
10015 * builtins.c (expand_builtin_signbit): Likewise.
10016 * calls.c (load_register_parameters): Likewise.
10017 * function.c (assign_parm_setup_block): Likewise.
10018 * lower-subreg.c (resolve_shift_zext): Likewise.
10019 * optabs.c (widen_bswap, expand_abs_nojump,
10020 expand_one_cmpl_abs_nojump, expand_float): Likewise.
10021 * spu/spu.c (spu_expand_extv): Likewise.
10022 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10024 2011-04-29 Richard Guenther <rguenther@suse.de>
10026 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
10027 for the remapped region number.
10028 * predict.c (build_predict_expr): Use integer_type_node for the
10030 * fold-const.c (fold_binary_loc): Use integer_type_node for
10031 the shift amount. Use a proper type for the PLUS_EXPR operand.
10033 2011-04-29 Michael Matz <matz@suse.de>
10035 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
10036 other trees that just builtins.
10037 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
10039 2011-04-29 Richard Guenther <rguenther@suse.de>
10041 * tree-nested.c (get_trampoline_type): Use size_int.
10042 (get_nl_goto_field): Likewise.
10043 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
10045 (lower_eh_constructs_2): Likewise.
10046 (lower_resx): Likewise.
10047 (lower_eh_dispatch): Likewise.
10048 * tree-mudflap.c (mf_build_string): Use size_int.
10049 (mudflap_register_call): Use integer_type_node for the flag.
10050 (mudflap_enqueue_constant): Use size_int.
10051 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
10052 instead of rebuilding it.
10054 2011-04-29 Richard Guenther <rguenther@suse.de>
10056 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
10057 Handle OBJ_TYPE_REF.
10058 (find_func_aliases_for_call): Use it more consistently.
10060 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
10062 * haifa-sched.c (last_nondebug_scheduled_insn): New.
10063 (rank_for_schedule): Use it.
10064 (schedule_block): Set it.
10066 2011-04-28 David Li <davidxl@google.com>
10068 * tree.c (crc32_string): Use crc32_byte.
10069 (crc32_byte): New function.
10070 * tree.h (crc32_byte): New function.
10071 * gcov.c (read_graph_file): Handle new cfg_cksum.
10072 (read_count_file): Ditto.
10073 * profile.c (instrument_values): Ditto.
10074 (get_exec_counts): Ditto.
10075 (read_profile_edge_counts): Ditto.
10076 (compute_branch_probabilities): Ditto.
10077 (compute_value_histograms): Ditto.
10078 (branch_prob): Ditto.
10079 (end_branch_prob): Ditto.
10080 * coverage.c (read_counts_file): Ditto.
10081 (get_coverage_counts): Ditto.
10082 (tree_coverage_counter_addr): Ditto.
10083 (coverage_checksum_string): Ditto.
10084 (coverage_begin_output): Ditto.
10085 (coverage_end_function): Ditto.
10086 (build_fn_info_type): Ditto.
10087 (build_fn_info_value): Ditto.
10088 * libgcov.c (gcov_exit): Ditto.
10089 * gcov-dump.c (tag_function): Ditto.
10090 (compute_checksum): Remove.
10092 2011-04-29 Alan Modra <amodra@gmail.com>
10094 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10095 unspec plus offset. Tidy macho code.
10097 2011-04-29 Martin Jambor <mjambor@suse.cz>
10099 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
10100 node instead of a decl. Update all callers.
10101 * cgraph.h: Update declaration.
10103 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
10105 PR tree-optimization/48765
10106 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
10107 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
10108 to indicate if loop aware SLP is being used. Scan the statements
10109 and update the vectorization factor according to the type of
10110 vectorization before statement analysis.
10111 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
10112 pass it to vect_analyze_loop_operations.
10113 (vectorizable_reduction): Set number of copies to 1 in case of pure
10115 * tree-vect-stmts.c (vectorizable_conversion,
10116 vectorizable_assignment, vectorizable_shift,
10117 vectorizable_operation, vectorizable_type_demotion,
10118 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
10120 (vectorizable_condition): Move the check that it is not SLP
10121 vectorization before the number of copies check.
10122 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
10123 to vectorize the loop using SLP.
10125 2011-04-28 Jakub Jelinek <jakub@redhat.com>
10127 PR middle-end/48597
10128 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
10131 2011-04-28 Joseph Myers <joseph@codesourcery.com>
10133 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
10134 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
10135 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10136 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10137 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
10139 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
10140 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10141 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10142 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10143 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10144 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
10146 * config/i386/linux.h (REG_NAME): Don't define.
10147 * config/i386/linux64.h (REG_NAME): Don't define.
10148 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
10149 Undefine before defining.
10151 2011-04-28 Jan Hubicka <jh@suse.cz>
10153 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
10154 nonconstant_names array.
10155 (estimate_function_body_sizes): Build nonconstant_names array; handle
10156 BUILT_IN_CONSTANT_P.
10158 2011-04-28 Richard Guenther <rguenther@suse.de>
10162 2011-04-28 Richard Guenther <rguenther@suse.de>
10164 * tree-ssa-structalias.c (solve_constraints): Build succ graph
10165 as late as possible.
10167 2011-04-28 Richard Guenther <rguenther@suse.de>
10169 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
10170 (debug_constraint): Do it here.
10171 (dump_constraints): And here.
10172 (rewrite_constraints): And here.
10173 (dump_constraint_edge): Remove.
10174 (dump_constraint_graph): Rewrite to produce DOT output.
10175 (solve_constraints): Build succ graph as late as possible.
10176 Dump constraint graphs before and after solving.
10178 2011-04-28 Richard Guenther <rguenther@suse.de>
10180 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10181 New function split out from ...
10182 (find_func_aliases): ... here. Call it.
10183 (find_func_aliases_for_call): Likewise.
10185 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
10187 * internal-fn.h (internal_fn_name_array): Declare.
10188 (internal_fn_flags_array): Likewise.
10190 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
10192 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
10193 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
10195 (ssemodefsuffix): Remove.
10196 (ssevecmodesuffix): New mode attribute.
10197 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
10198 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
10199 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
10200 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
10201 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
10202 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
10203 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
10204 ssemodesuffix mode attribute.
10205 (float splitters): Use ssevecmodesuffix mode attribute.
10206 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
10207 (sseinsmode): Rename from avxvecmode.
10208 (avxsizesuffix): Rename from avxmodesuffix.
10209 (sseintvecmode): Rename from avxpermvecmode.
10210 (ssedoublevecmode): Rename from ssedoublesizemode.
10211 (ssehalfvecmode): Rename from avxhalfvecmode.
10212 (ssescalarmode): Rename from avxscalarmode.
10213 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
10214 templates for ssemodesuffix mode attribute.
10215 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
10218 Adjust RTX patterns globally for renamed mode attributes.
10220 2011-04-27 Jan Hubcika <jh@suse.cz>
10222 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
10223 * ipa-inline-analysis.c: Include alloc-pool.h.
10224 (edge_predicate_pool): New.
10225 (trye_predicate_p): New function
10226 (false_predicate_p): New function.
10227 (add_clause): Sanity check that false clauses are "optimized";
10228 never add clauses to predicate that is already known to be false.
10229 (and_predicate): Use flase_predicate_p.
10230 (evaulate_predicate): Rename to ...
10231 (evaluate_predicate): ... this one; update all callers; assert
10232 that false is not listed among possible truths.
10233 (dump_predicate): Use true_predicate_p.
10234 (account_size_time): Use false_predicate_p.
10235 (evaulate_conditions_for_edge): Rename to ...
10236 (evaluate_conditions_for_edge) ... this one.
10237 (edge_set_predicate): New function.
10238 (inline_edge_duplication_hook): Duplicate edge predicates.
10239 (inline_edge_removal_hook): Free edge predicates.
10240 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
10241 (dump_inline_summary): Update.
10242 (estimate_function_body_sizes): Set edge predicates.
10243 (estimate_calls_size_and_time): Handle predicates.
10244 (estimate_callee_size_and_time): Update.
10245 (remap_predicate): Add toplev_predicate; update comment.
10246 (remap_edge_predicates): New function.
10247 (inline_merge_summary): Compute toplev predicate; update.
10248 (read_predicate): New function.
10249 (read_inline_edge_summary): Use it.
10250 (inline_read_section): Likewise.
10251 (write_predicate): New function.
10252 (write_inline_edge_summary): Use it.
10253 (inline_write_summary): Likewise.
10254 (inline_free_summary): Free alloc pool and edge summary vec.
10256 2011-04-27 Richard Guenther <rguenther@suse.de>
10258 * tree-ssa-structalias.c (changed_count): Remove.
10259 (changed): Use a bitmap.
10260 (unify_nodes): Adjust.
10261 (do_sd_constraint): Likewise.
10262 (do_ds_constraint): Likewise.
10263 (do_complex_constraint): Likewise.
10264 (solve_graph): Likewise.
10266 2011-04-27 Jan Hubicka <jh@suse.cz>
10268 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
10270 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
10272 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
10273 (avx_vperm2f128_*_operand): Ditto.
10274 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
10275 Use avx_vpermilp_parallel in insn condition.
10276 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
10277 Use avx_vperm2f128_parallel in insn condition.
10279 2011-04-27 Richard Guenther <rguenther@suse.de>
10281 * Makefile.in (tree-ssa-structalias.o): Remove
10282 gt-tree-ssa-structalias.h dependency.
10283 (GTFILES): Remove tree-ssa-structalias.c.
10284 * tree.c (allocate_decl_uid): New function.
10285 (make_node_stat): Use it.
10286 (copy_node_stat): Likewise.
10287 * tree.h (allocate_decl_uid): Declare.
10288 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
10289 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
10290 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
10291 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
10292 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
10293 (struct heapvar_map): Likewise.
10294 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
10295 heapvar_insert): Likewise.
10296 (make_heapvar_for): Rename to ...
10297 (make_heapvar): ... this. Simplify.
10298 (fake_var_decl_obstack): New global var.
10299 (build_fake_var_decl): New function.
10300 (make_constraint_from_heapvar): Adjust.
10301 (handle_lhs_call): Likewise.
10302 (create_function_info_for): Likewise.
10303 (intra_create_variable_infos): Likewise.
10304 (init_alias_vars): Allocate fake_var_decl_obstack.
10305 (init_alias_heapvars, delete_alias_heapvars): Remove.
10306 (compute_points_to_sets): Do not call init_alias_heapvars.
10307 (ipa_pta_execute): Likewise.
10308 (delete_points_to_sets): Free fake_var_decl_obstack.
10310 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10312 * config/spu/divmovti4.c (union qword_UTItype): New data type.
10313 (si_from_UTItype, si_to_UTItype): New functions.
10314 (__udivmodti4): Use them to implement type-punning.
10315 * config/spu/multi3.c (union qword_TItype): New data type.
10316 (si_from_TItype, si_to_TItype): New functions.
10317 (__multi3): Use them to implement type-punning.
10319 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10321 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
10323 2011-04-27 Jan Hubicka <jh@suse.cz>
10325 * ipa-prop.c (function_insertion_hook_holder): New holder.
10326 (ipa_add_new_function): New function.
10327 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
10328 Register/deregister holder.
10330 2011-04-27 Richard Guenther <rguenther@suse.de>
10332 PR tree-optimization/48772
10333 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
10335 2011-04-27 Richard Guenther <rguenther@suse.de>
10337 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
10338 TARGET_MEM_REF handling.
10340 2011-04-27 Nick Clifton <nickc@redhat.com>
10342 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
10343 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
10344 (REG_CLASS_NAMES): Likewise.
10345 (REG_CLASS_CONTENTS): Likewise.
10346 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
10347 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
10348 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
10349 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
10350 (EVEN_REGS): New macro. Alias for QUAD_REGS.
10351 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
10352 duplicate register classes.
10353 (frv_class_likely_spilled_p): Likewise.
10354 (frv_register_move_cost): Likewise.
10356 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
10357 end of the regno_reg_class array.
10359 2011-04-27 Jakub Jelinek <jakub@redhat.com>
10362 * c-typeck.c (build_binary_op): Don't wrap arguments if
10363 int_operands is true.
10365 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
10368 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
10369 targetm.calls.must_pass_in_stack for void type.
10371 2011-04-26 Jan Hubicka <jh@suse.cz>
10373 * cgraphbuild.c (build_cgraph_edges): Update call
10374 of cgraph_create_edge and cgraph_create_indirect_edge.
10375 * cgraph.c (cgraph_create_edge_including_clones,
10376 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
10377 cgraph_update_edges_for_call_stmt_node): Do not take nest
10378 argument; do not initialize call_stmt_size/time.
10379 (dump_cgraph_node): Do not dump nest.
10380 (cgraph_clone_edge): Do not take loop_nest argument;
10381 do not propagate it; do not clone call_stmt_size/time.
10382 (cgraph_clone_node): Likewise.
10383 (cgraph_create_virtual_clone): Update.
10384 * cgraph.h (struct cgraph_edge): Remove
10385 call_stmt_size/call_stmt_time/loop_nest.
10386 (cgraph_create_edge, cgraph_create_indirect_edge,
10387 cgraph_create_edge_including_clones, cgraph_clone_node): Update
10389 * tree-emutls.c (gen_emutls_addr): Update.
10390 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
10391 loop_nest; handle indirect calls, too.
10392 (clone_inlined_nodes): Do not care about updating inline summaries.
10393 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
10394 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
10395 stream call_stmt_size/call_stmt_time/loop_nest.
10396 * ipa-inline.c (edge_badness): Update.
10397 (ipa_inline): dump summaries after inlining.
10398 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
10400 (inline_edge_summary): New function.
10401 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
10402 (inline_edge_removal_hook): Handle edge summaries.
10403 (inline_edge_duplication_hook): New hook.
10404 (inline_summary_alloc): Alloc hooks.
10405 (initialize_growth_caches): Do not register removal hooks.
10406 (free_growth_caches); Do not free removal hook.
10407 (dump_inline_edge_summary): New function.
10408 (dump_inline_summary): Use it.
10409 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
10410 (inline_update_callee_summaries): New function.
10411 (inline_merge_summary): Use it.
10412 (do_estimate_edge_time, do_estimate_edge_growth): Update.
10413 (read_inline_edge_summary): New function.
10414 (inline_read_section): Use it.
10415 (write_inline_edge_summary): New function.
10416 (inline_write_summary): Use it.
10417 (inline_free_summary): Free edge new holders.
10418 * tree-inline.c (copy_bb): Update.
10420 2011-04-26 Jason Merrill <jason@redhat.com>
10422 * tree-eh.c (lower_try_finally_switch): Create the label along with
10423 the CASE_LABEL_EXPR.
10425 2011-04-26 David S. Miller <davem@davemloft.net>
10426 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10428 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
10429 * configure: Regenerate.
10431 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
10434 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
10436 (VEC_reduc): New code iterator and splitters for vector reduction.
10437 (VEC_reduc_name): Ditto.
10438 (VEC_reduc_rtx): Ditto.
10439 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
10440 (reduc_<VEC_reduc_name>_v4sf): Ditto.
10442 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10443 support for extracting SF on VSX.
10445 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
10446 generating xscvspdp.
10447 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
10448 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
10449 double add, minimum, maximum vector reduction.
10450 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
10451 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
10452 optimize double vector reduction.
10453 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
10455 2011-04-26 Joseph Myers <joseph@codesourcery.com>
10457 * config/fr30/fr30.h (inhibit_libc): Don't define.
10458 * config/m32r/m32r-protos.h: Correct comment.
10459 * config/v850/v850.h (GHS_default_section_names,
10460 GHS_current_section_names): Use tree, not union tree_node *.
10462 2011-04-26 Xinliang David Li <davidxl@google.com>
10464 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
10465 * c-family/c-opts.c (c_common_handle_option): Set
10466 warn_maybe_uninitialized.
10467 * opts.c (common_handle_option): Ditto.
10468 * common.opt: New option.
10469 * tree-ssa.c (warn_uninit): Add one more parameter.
10470 (warn_uninitialized_var): Pass warning code.
10471 * tree-flow.h: Interface change.
10473 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10475 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
10476 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
10477 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
10479 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10481 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
10482 * config/mips/mips.opt (mmips-tfile): Remove.
10484 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
10485 mips-tdump reference to ...
10486 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
10487 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
10488 reference by Tru64 UNIX.
10490 2011-04-26 Jakub Jelinek <jakub@redhat.com>
10493 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
10494 is error_mark_node, set value to NULL.
10496 PR tree-optimization/48734
10497 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
10498 if return value from maybe_fold_*_comparsions isn't something
10499 the code is prepared to handle.
10501 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
10503 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
10505 (ext_QIreg_nomode_operands): Remove.
10506 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
10510 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
10512 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
10514 2011-04-26 Richard Guenther <rguenther@suse.de>
10516 * c-typeck.c (build_unary_op): Do not expand array-refs via
10517 pointer arithmetic. Only adjust qualifiers for function types.
10519 2011-04-26 Richard Guenther <rguenther@suse.de>
10521 PR middle-end/48694
10522 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
10523 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
10524 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
10525 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
10527 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
10529 * doc/extend.texi: Document __underlying_type.
10531 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
10533 * config/rs6000/titan.md (automata_option "progress"): Remove.
10535 2011-04-25 Jeff Law <law@redhat.com>
10537 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
10539 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10541 * system.h (ENUM_BITFIELD): Remove.
10543 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
10544 Eric Botcazou <ebotcazou@adacore.com>
10546 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
10547 for STORE_FLAG_VALUE==-1 case.
10549 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
10552 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
10553 LEGITIMATE_PIC_OPERAND_P.
10555 2011-04-24 Jan Hubicka <jh@suse.cz>
10557 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
10559 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
10560 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
10561 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
10562 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
10563 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
10564 Sanity check predicate length.
10565 (remap_predicate): Likewise; sanity check jump functions.
10566 (inline_read_section, inline_write_summary): Sanity check
10569 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
10572 * doc/extend.texi (Type Traits): Document __is_standard_layout,
10573 __is_literal_type, and __is_trivial; update throughout about
10574 possibly cv-qualified void types.
10576 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
10578 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
10579 testsuite and make it version agnostic.
10581 2011-04-22 Jan Hubicka <jh@suse.cz>
10583 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
10585 2011-04-23 Jakub Jelinek <jakub@redhat.com>
10588 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
10589 to VOID_TYPE even around MODIFY_EXPR.
10591 2011-04-22 Mike Stump <mikestump@comcast.net>
10593 * gensupport.c (read_md_rtx): Fix typo in comment.
10594 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
10597 2011-04-22 Jan Hubicka <jh@suse.cz>
10599 * gengtype.c (open_base_files): Add ipa-inline.h include.
10600 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
10601 ipa-prop.c; update all uses.
10602 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
10603 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
10604 merge summary of inlined function into former caller.
10605 * ipa-inline.c (max_benefit): Remove.
10606 (edge_badness): Compensate for removal of benefits.
10607 (update_caller_keys): Use
10608 reset_node_growth_cache/reset_edge_growth_cache.
10609 (update_callee_keys): Likewise.
10610 (update_all_callee_keys): Likewise.
10611 (inline_small_functions): Do not collect max_benefit; do not reset
10612 estimated_growth; call free_growth_caches and initialize_growth_caches.
10613 * ipa-inline.h (struct condition, type clause_t, struct predicate,
10614 struct size_time_entry): New structures.
10615 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
10616 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
10617 and estimated_growth.
10618 (edge_growth_cache_entry): New structure.
10619 (node_growth_cache, edge_growth_cache): New global vars.
10620 (estimate_growth): Turn into inline.
10621 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
10622 initialize_growth_caches, free_growth_caches): Declare.
10623 (estimate_edge_growth): Rewrite.
10624 (estimate_edge_time): Implement as inline cache lookup.
10625 (reset_node_growth_cache, reset_edge_growth_cache): New inline
10627 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
10628 (NUM_CONDITIONS): New constant.
10629 (predicate_conditions): New enum.
10630 (IS_NOT_CONSTANT): New constant.
10631 (edge_removal_hook_holder): New var.
10632 (node_growth_cache, edge_growth_cache): New global vars.
10633 (true_predicate, single_cond_predicate, false_predicate,
10634 not_inlined_predicate, add_condition, add_clause, and_predicates,
10635 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
10636 dump_clause, dump_predicate, account_size_time,
10637 evaulate_conditions_for_edge): New functions.
10638 (inline_summary_alloc): Move to heap.
10639 (inline_node_removal_hook): Clear condition and entry vectors.
10640 (inline_edge_removal_hook): New function.
10641 (initialize_growth_caches, free_growth_caches): New function.
10642 (dump_inline_summary): Update.
10643 (edge_execution_predicate): New function.
10644 (will_be_nonconstant_predicate): New function.
10645 (estimate_function_body_sizes): Compute BB and constantness predicates.
10646 (compute_inline_parameters): Do not clear estimated_growth.
10647 (estimate_edge_size_and_time): New function.
10648 (estimate_calls_size_and_time): New function.
10649 (estimate_callee_size_and_time): New function.
10650 (remap_predicate): New function.
10651 (inline_merge_summary): New function.
10652 (do_estimate_edge_time): New function based on...
10653 (estimate_edge_time): ... this one.
10654 (do_estimate_edge_growth): New function.
10655 (do_estimate_growth): New function based on....
10656 (estimate_growth): ... this one.
10657 (inline_analyze_function): Analyze after deciding on jump functions.
10658 (inline_read_section): New function.
10659 (inline_read_summary): Use it.
10660 (inline_write_summary): Write all the new data.
10661 * ipa-prop.c (ipa_get_param_decl_index): Export.
10662 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
10663 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
10665 (ipa_get_lattice): Move here from ipa-cp.c
10666 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
10667 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
10668 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
10669 cgraph_edge_inlinable_p): Remove.
10670 * cgraphunit.c: Include ipainline.h
10671 (cgraph_process_new_functions): Update call of
10672 compute_inline_parameters.
10674 2011-04-22 Richard Guenther <rguenther@suse.de>
10676 * tree.c (build_int_cst): Properly create canonicalized integer
10678 (build_int_cst_type): Remove scary comments.
10680 2011-04-22 Xinliang David Li <davidxl@google.com>
10682 * toplev.c (process_options): Enable -Werror=coverage-mismatch
10683 by default when -Wno-error is not specified.
10684 * opts-global.c (decode_options): Remove call to
10685 control_warning_options.
10687 2011-04-22 Jakub Jelinek <jakub@redhat.com>
10689 PR tree-optimization/48717
10690 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
10691 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
10693 2011-04-22 Joseph Myers <joseph@codesourcery.com>
10695 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
10696 definition where used.
10698 2011-04-22 Jakub Jelinek <jakub@redhat.com>
10701 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
10702 TREE_STATIC variables declared inside of some OpenMP construct.
10704 2011-04-22 Martin Jambor <mjambor@suse.cz>
10706 PR middle-end/48585
10707 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
10709 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
10712 * c-typeck.c (pop_init_level): Do not warn about initializing
10715 2011-04-22 Alan Modra <amodra@gmail.com>
10717 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
10718 when returning call_cookie.
10719 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
10720 pointers, to functions with no more vector args than the current
10721 function, and some non-local calls for ABI_V4.
10722 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
10723 sibcall_nonlocal_aix64): Combine to ..
10724 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
10725 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
10726 (sibcall_value_nonlocal_aix<mode>): ..likewise.
10727 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
10728 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
10730 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
10731 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
10732 sibcall_value_symbolic_64): Delete.
10734 2011-04-21 Xinliang David Li <davidxl@google.com>
10736 * cgraph.h: Remove pid.
10737 * cgraph.c: Remove pid.
10738 * value-prof.c (init_node_map): New function.
10739 (del_node_map): New function.
10740 (find_func_by_funcdef_no): New function.
10741 (gimple_ic_transform): Call new function.
10742 * cgraphunit.c (cgraph_finalize_function): Remove pid.
10743 * function.c (get_last_funcdef_no): New function.
10744 * function.h (get_last_funcdef_no): New function.
10745 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
10746 to libgcov function.
10747 (tree-profiling): Call node map init and delete function.
10749 2011-04-21 Ian Lance Taylor <iant@google.com>
10751 * godump.c (go_format_type): Use exported Go name for anonymous
10754 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10756 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
10757 Call builtin_function_type_list instead of builtin_function_type.
10758 (UNARY, BINARY, TRINARY, QUAD): Likewise.
10760 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10762 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
10763 build_function_type_list instead of build_function_type.
10764 Delete variable `endlink'.
10766 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10768 * config/s390/s390.c (s390_init_builtins): Call
10769 build_function_type_list instead of build_function_type.
10771 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10773 * config/ia64/ia64.c (ia64_init_builtins): Call
10774 build_function_type_list instead of builtin_function_type.
10776 2011-04-21 Easwaran Raman <eraman@google.com>
10778 * cfgexpand.c (stack_var): Remove OFFSET...
10779 (add_stack_var): ...and its reference here...
10780 (expand_stack_vars): ...and here.
10781 (stack_var_cmp): Sort by descending order of size.
10782 (partition_stack_vars): Change heuristic.
10783 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
10784 (dump_stack_var_partition): Add newline after each partition.
10786 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
10787 Jeff Law <law@redhat.com>
10789 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
10790 * gengtype.c (matching_file_name_substitute): Likewise.
10792 2011-04-21 Richard Guenther <rguenther@suse.de>
10795 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
10797 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
10799 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
10801 2011-04-21 Richard Guenther <rguenther@suse.de>
10803 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
10806 2011-04-21 Richard Guenther <rguenther@suse.de>
10808 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
10809 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
10810 Use DECL_P, not SSA_VAR_P.
10811 (ptr_derefs_may_alias_p): Likewise.
10812 (ptr_deref_may_alias_ref_p_1): Likewise.
10813 (decl_refs_may_alias_p): Likewise.
10814 (refs_may_alias_p_1): Likewise.
10815 (ref_maybe_used_by_call_p_1): Likewise.
10816 (call_may_clobber_ref_p_1): Likewise.
10817 (indirect_ref_may_alias_decl_p): Assume indirect refrences
10818 are either MEM_REF or TARGET_MEM_REF.
10819 (indirect_refs_may_alias_p): Likewise.
10820 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
10821 for MEM_EXPR of indirect calls.
10823 2011-04-21 Tristan Gingold <gingold@adacore.com>
10825 * vmsdbgout.c (write_srccorr): Compute file length from the string.
10826 (dst_file_info_struct): Remove flen field.
10827 (lookup_filename): Remove code that set flen field.
10829 2011-04-21 Tristan Gingold <gingold@adacore.com>
10831 * config/ia64/ia64.c (ia64_start_function): Add a guard.
10833 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
10836 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
10837 vec_extract and vec_concat for non-SSE4_1 targets.
10839 2011-04-21 Richard Guenther <rguenther@suse.de>
10841 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
10844 2011-04-21 Joseph Myers <joseph@codesourcery.com>
10846 * config/i386/cygming.h (union tree_node, TREE): Don't define or
10848 (FILE): Don't undefine.
10850 2011-04-21 Joseph Myers <joseph@codesourcery.com>
10852 * config/alpha/alpha.c (struct machine_function): Use rtx, not
10854 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
10856 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
10857 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
10858 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
10860 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
10861 definitions where used.
10862 * config/microblaze/microblaze.h (struct microblaze_args): Use
10863 rtx, not struct rtx_def *.
10864 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
10866 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
10867 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
10868 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
10869 not struct rtx_def *.
10870 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
10872 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
10874 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
10876 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
10878 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
10879 operand_equal_p to compare DR_BASE_ADDRESSes.
10880 (vect_check_interleaving): Likewise.
10882 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
10885 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
10886 for all Neon struct constants.
10888 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
10890 * target.def (legitimate_constant_p): New hook.
10891 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
10892 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
10893 * doc/tm.texi: Regenerate.
10894 * hooks.h (hook_bool_mode_rtx_true): Declare.
10895 * hooks.c (hook_bool_mode_rtx_true): Define.
10896 * system.h (LEGITIMATE_CONSTANT_P): Poison.
10897 * calls.c (precompute_register_parameters): Replace uses of
10898 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
10899 (emit_library_call_value_1): Likewise.
10900 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
10901 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
10902 * ira-costs.c (scan_one_insn): Likewise.
10903 * recog.c (general_operand, immediate_operand): Likewise.
10904 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
10905 * reload1.c (init_eliminable_invariants): Likewise.
10907 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
10909 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
10910 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
10912 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10913 * config/alpha/predicates.md (input_operand): Update call to
10914 alpha_legitimate_constant_p.
10916 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
10917 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
10918 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
10919 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10920 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
10921 (arm_legitimate_constant_p): New functions.
10922 (arm_cannot_force_const_mem): Make static.
10924 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
10926 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
10927 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
10928 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
10929 instead of bfin_legitimate_constant_p.
10930 (bfin_legitimate_constant_p): Make static. Add a mode argument.
10931 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10933 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
10935 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
10937 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
10938 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
10939 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10940 (frv_legitimate_constant_p): Make static. Add a mode argument.
10942 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
10943 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
10944 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
10946 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
10947 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
10948 * config/i386/i386.c (legitimate_constant_p): Rename to...
10949 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
10951 (ix86_cannot_force_const_mem): Update accordingly.
10952 (ix86_legitimate_address_p): Likewise.
10953 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10954 * config/i386/i386.md: Update commentary.
10956 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
10957 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
10958 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10959 (ia64_legitimate_constant_p): Make static. Add a mode argument.
10961 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
10963 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
10964 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
10965 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10966 (lm32_legitimate_constant_p): Make static. Add a mode argument.
10968 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
10969 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
10970 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
10972 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
10973 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10974 (m32r_legitimate_constant_p): New function.
10976 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
10977 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
10978 LEGITIMATE_CONSTANT_P.
10979 (LEGITIMATE_CONSTANT_P): Delete.
10980 * config/m68k/m68k.c (m68k_expand_prologue): Call
10981 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
10982 (m68k_legitimate_constant_p): New function.
10983 * config/m68k/m68k.md: Update comments.
10985 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
10986 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10987 (mcore_legitimate_constant_p): New function.
10989 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
10990 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
10991 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
10992 Add a mode argument.
10993 (mep_legitimate_address): Update accordingly.
10994 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10996 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
10998 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
10999 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
11000 static. Check OP's mode for VOIDmode.
11001 (microblaze_legitimate_constant_p): New function.
11002 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11004 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
11005 * config/mips/mips.c (mips_legitimate_constant_p): New function.
11006 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
11007 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11008 * config/mips/predicates.md: Update comments.
11010 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
11011 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
11012 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11013 (mmix_legitimate_constant_p): Make static, return a bool, and take
11015 (mmix_print_operand_address): Update accordingly.
11017 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
11019 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
11020 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
11021 static. Add a mode argument.
11022 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11024 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
11026 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
11027 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11028 (pa_legitimate_constant_p): New function.
11030 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
11032 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
11033 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11034 (pdp11_legitimate_constant_p): New function.
11036 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
11037 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11038 (rs6000_legitimate_constant_p): New function.
11040 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
11041 (rx_legitimate_constant_p): ...this.
11042 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
11043 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
11044 (rx_legitimate_constant_p): ...this.
11045 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11046 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
11048 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
11049 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
11050 * config/s390/s390.c (legitimate_constant_p): Rename to...
11051 (s390_legitimate_constant_p): ...this. Make static, return a bool,
11052 and add a mode argument.
11053 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11055 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
11057 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
11058 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11059 (sh_legitimate_constant_p): New function.
11061 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
11062 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
11063 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11064 (legitimate_constant_p): Rename to...
11065 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
11067 (constant_address_p): Update accordingly.
11069 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
11070 argument and return a bool.
11071 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
11072 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11073 (spu_legitimate_constant_p): Add a mode argument and return a bool.
11074 (spu_rtx_costs): Update accordingly.
11075 * config/spu/predicates.md (vec_imm_operand): Likewise.
11077 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
11079 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
11080 * config/v850/v850.c (v850_legitimate_constant_p): New function.
11081 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11083 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
11084 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
11085 * config/vax/vax.c (legitimate_constant_p): Likewise.
11087 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
11088 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11089 (xtensa_legitimate_constant_p): New function.
11091 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11093 * target.def (cannot_force_const_mem): Add a mode argument.
11094 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
11095 * doc/tm.texi: Regenerate.
11096 * hooks.h (hook_bool_mode_rtx_false): Declare.
11097 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
11098 (hook_bool_mode_const_rtx_true): Likewise.
11099 (hook_bool_mode_rtx_false): New function.
11100 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
11101 to be non-VOID. Update call to cannot_force_const_mem.
11102 (find_reloads): Update accordingly.
11103 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
11104 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
11106 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
11107 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
11108 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
11109 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
11110 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
11111 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
11112 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
11113 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11114 (m68k_cannot_force_const_mem): ...this new function.
11115 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
11117 (mips_const_insns, mips_legitimize_const_move): Update calls.
11118 (mips_secondary_reload_class): Likewise.
11119 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11120 (pa_cannot_force_const_mem): ...this new function.
11121 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
11122 (rs6000_cannot_force_const_mem): ...this new function.
11123 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
11125 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
11126 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
11128 (xtensa_cannot_force_const_mem): ...this new function.
11130 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11132 * config/mips/mips.c (mips16_build_function_stub): Call
11133 build_function_type_list instead of build_function_type.
11134 (mips16_build_call_stub): Likewise.
11136 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11138 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
11139 instead of build_function_type.
11141 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11143 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
11144 instead of build_function_type.
11146 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
11149 * config/i386/i386.md (insv): Change operand 0 constraint to
11150 "register_operand". Change operand 1 and 2 constraint to
11151 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
11152 * config/i386/sse.md (sse4_1_pinsrb): Export.
11153 (sse2_pinsrw): Ditto.
11154 (sse4_1_pinsrd): Ditto.
11155 (sse4_1_pinsrq): Ditto.
11156 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
11157 * config/i386/i386.c (ix86_expand_pinsr): New.
11159 2011-04-20 Easwaran Raman <eraman@google.com>
11161 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
11162 containing union type only with -fstrict-aliasing.
11164 2011-04-20 Jim Meyering <meyering@redhat.com>
11166 Remove useless if-before-free tests.
11167 * calls.c (expand_call, save_area): Likewise.
11168 * cfgcleanup.c (try_forward_edges): Likewise.
11169 * collect2.c (collect_execute): Likewise.
11170 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
11171 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
11172 * coverage.c (coverage_checksum_string): Likewise.
11173 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
11174 * cselib.c (cselib_init): Likewise.
11175 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
11176 (df_set_clean_cfg): Likewise.
11177 * function.c (free_after_compilation): Likewise.
11178 * gcc.c (do_spec_1, main): Likewise.
11179 * gcov.c (create_file_names): Likewise.
11180 * gensupport.c (identify_predicable_attribute): Likewise.
11181 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
11182 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
11183 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
11184 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
11185 * ipa-pure-const.c (local_pure_const): Likewise.
11186 * ipa-reference.c (propagate): Likewise.
11187 * ira-costs.c (free_ira_costs): Likewise.
11188 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
11189 * matrix-reorg.c (mat_free): Likewise.
11190 * prefix.c (get_key_value): Likewise.
11191 * profile.c (compute_value_histograms): Likewise.
11192 * reload1.c (free_reg_equiv): Likewise.
11193 * sched-deps.c (free_deps): Likewise.
11194 * sel-sched-ir.c (fence_clear): Likewise.
11195 * sese.c (set_rename, if_region_set_false_region): Likewise.
11196 * tree-data-ref.c (free_rdg): Likewise.
11197 * tree-eh.c (lower_try_finally): Likewise.
11198 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
11199 * tree-ssa-live.c (delete_var_map): Likewise.
11200 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
11201 * tree-ssa-pre.c (phi_trans_add): Likewise.
11203 2011-04-20 Jakub Jelinek <jakub@redhat.com>
11205 PR tree-optimization/48611
11206 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
11207 beyond ERT_MUST_NOT_THROW region.
11209 2011-04-20 Catherine Moore <clm@codesourcery.com>
11211 * config/mips/mips.opt (mfix-24k): New.
11212 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
11213 * config/mips/mips.md (length): Increase by 4 for stores if
11215 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
11216 all noreorder if fixing 24K errata.
11217 * doc/invoke.texi: Document mfix-24k.
11219 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
11221 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
11222 quad-word modes, reduce to 9-bit index range when above 1016 limit.
11224 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
11226 * config/arm/arm.c (arm_gen_constant): Move movw support ....
11227 (const_ok_for_op): ... to here.
11229 2011-04-20 Kai Tietz <ktietz@redhat.com>
11231 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
11232 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
11234 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
11236 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
11238 2011-04-20 Richard Guenther <rguenther@suse.de>
11240 PR tree-optimization/47892
11241 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
11242 are if-convertible.
11244 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
11246 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
11248 2011-04-20 Tristan Gingold <gingold@adacore.com>
11250 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
11252 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
11256 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
11257 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
11258 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
11259 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
11260 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
11262 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
11265 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
11266 (avr_asm_named_section, avr_asm_output_aligned_common,
11267 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
11268 New functions to update...
11269 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
11270 (avr_asm_init_sections): Overwrite section callbacks for
11271 data_section, bss_section.
11272 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
11274 (avr_file_end): ...here.
11276 2011-04-20 Richard Guenther <rguenther@suse.de>
11278 PR middle-end/48695
11279 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
11280 objects and types here. Adjust for their offset before comparing.
11282 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
11284 * tree-vect-stmts.c (vectorizable_store): Only chain one related
11285 statement per copy.
11287 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
11289 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
11290 (GIMPLE_H): Include $(INTERNAL_FN_H).
11291 (OBJS-common): Add internal-fn.o.
11292 (internal-fn.o): New rule.
11293 * internal-fn.def: New file.
11294 * internal-fn.h: Likewise.
11295 * internal-fn.c: Likewise.
11296 * gimple.h: Include internal-fn.h.
11297 (GF_CALL_INTERNAL): New gf_mask.
11298 (gimple_statement_call): Put fntype into a union with a new
11300 (gimple_build_call_internal): Declare.
11301 (gimple_build_call_internal_vec): Likewise.
11302 (gimple_call_same_target_p): Likewise.
11303 (gimple_call_internal_p): New function.
11304 (gimple_call_internal_fn): Likewise.
11305 (gimple_call_fntype): Return null for internal calls.
11306 (gimple_call_set_fntype): Assert that the function is not internal.
11307 (gimple_call_set_fn): Likewise.
11308 (gimple_call_set_fndecl): Likewise.
11309 (gimple_call_set_internal_fn): New function.
11310 (gimple_call_addr_fndecl): Handle null functions.
11311 (gimple_call_return_type): Likewise null types.
11312 * gimple.c (gimple_build_call_internal_1): New function.
11313 (gimple_build_call_internal): Likewise.
11314 (gimple_build_call_internal_vec): Likewise.
11315 (gimple_call_same_target_p): Likewise.
11316 (gimple_call_flags): Handle calls to internal functions.
11317 (gimple_call_fnspec): New function.
11318 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
11319 (gimple_has_side_effects): Handle null functions.
11320 (gimple_rhs_has_side_effects): Likewise.
11321 (gimple_call_copy_skip_args): Handle calls to internal functions.
11322 * cfgexpand.c (expand_call_stmt): Likewise.
11323 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
11324 * gimple-fold.c (gimple_fold_call): Handle null functions.
11325 (gimple_fold_stmt_to_constant_1): Don't fold
11326 calls to internal functions.
11327 * gimple-low.c (gimple_check_call_args): Handle calls to internal
11329 * gimple-pretty-print.c (dump_gimple_call): Likewise.
11330 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
11331 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
11332 (do_warn_unused_result): Likewise.
11333 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
11334 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
11335 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
11336 the target of a call.
11337 (initialize_hash_element): Update accordingly.
11338 (hashable_expr_equal_p): Use gimple_call_same_target_p.
11339 (iterative_hash_hashable_expr): Handle calls to internal functions.
11340 (print_expr_hash_elt): Likewise.
11341 * tree-ssa-pre.c (can_value_number_call): Likewise.
11342 (eliminate): Handle null functions.
11343 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
11344 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
11345 (find_func_aliases): Likewise.
11346 * value-prof.c (gimple_ic_transform): Likewise.
11347 (gimple_indirect_call_to_profile): Likewise.
11348 * lto-streamer-in.c (input_gimple_stmt): Likewise.
11349 * lto-streamer-out.c (output_gimple_stmt): Likewise.
11351 2011-04-19 Jan Hubicka <jh@suse.cz>
11353 * ipa-inline-transform.c (save_inline_function_body): Add comments.
11354 * ipa-inline.c (inline_small_functions): Compute summaries first,
11355 populate heap later.
11357 2011-04-19 Jan Hubicka <jh@suse.cz>
11359 * cgraph.h (save_inline_function_body): Remove.
11360 * ipa-inline-transform.c: New file, broke out of...
11361 * ipa-inline.c: ... this one; Update toplevel comment.
11362 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
11364 (update_noncloned_frequencies): Move to ipa-inline-transform.c
11365 (cgraph_mark_inline_edge): Rename to inline_call; move to
11366 ipa-inline-transform.c.
11367 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
11368 move to ipa-inline-transform.c
11369 (recursive_inlining, inline_small_functions, flatten_function,
11370 ipa_inline, inline_always_inline_functions,
11371 early_inline_small_functions): Update.
11372 (inline_transform): Move to ipa-inline-transform.c.
11373 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
11375 * Makefile.in (ipa-inline-transform.o): New file.
11376 * cgraphunit.c (save_inline_function_body): Move to
11377 ipa-inline-transform.c
11379 2011-04-19 DJ Delorie <dj@redhat.com>
11381 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
11382 registers if we already know there aren't any.
11383 (m32c_emit_epilogue): Don't emit a barrier here.
11384 (m32c_emit_eh_epilogue): Likewise.
11385 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
11386 operands at expand time.
11387 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
11389 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
11390 duplicates. Provide aliases instead.
11391 * config/m32c/prologue.md (eh_return): Emit a barrier here.
11392 (eh_epilogue): Add a "(return)" here as a hint to other parts of
11395 2011-04-19 Anatoly Sokolov <aesok@post.ru>
11397 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
11398 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
11399 (general_or_i64_p, sparc_register_move_cost): New function.
11401 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11403 * doc/install.texi (Configuration, --enable-threads): Remove mach.
11404 Add lynx, mipssde. Sort table.
11406 2011-04-19 Xinliang David Li <davidxl@google.com>
11408 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
11411 2011-04-19 Jakub Jelinek <jakub@redhat.com>
11414 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
11415 is a SUBREG with non-MODE_INT mode inside of it.
11417 2011-04-19 Martin Jambor <mjambor@suse.cz>
11419 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
11420 also according to actual contants.
11421 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
11422 (gimple_fold_call): Use it.
11423 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
11425 2011-04-19 Martin Jambor <mjambor@suse.cz>
11427 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
11428 non-pointer assignments.
11430 2011-04-19 Martin Jambor <mjambor@suse.cz>
11432 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
11433 account anc_offset and otr_type from the indirect edge info.
11434 * ipa-prop.c (get_ancestor_addr_info): New function.
11435 (compute_complex_ancestor_jump_func): Assignment analysis moved to
11436 get_ancestor_addr_info, call it.
11437 (ipa_note_param_call): Do not initialize information about polymorphic
11438 calls, return the indirect call graph edge. Remove the last
11439 parameter, adjust all callers.
11440 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
11441 parameters. Initialize polymorphic information in the indirect edge.
11443 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
11446 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
11447 the types if they have different enumeration identifiers.
11449 2011-04-19 Jan Hubicka <jh@suse.cz>
11451 * cgraph.h (cgraph_optimize_for_size_p): Declare.
11452 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
11453 * predict.c (cgraph_optimize_for_size_p): Break out from ...
11454 (optimize_function_for_size_p) ... here.
11456 2011-04-19 Richard Guenther <rguenther@suse.de>
11459 * tree.c (free_lang_data): Do not reset the decl-assembler-name
11462 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
11464 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
11465 if DECL_NO_INLINE_WARNING_P is set on the function.
11467 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
11470 * reload1.c (inc_for_reload): Return void. All callers changed.
11471 (emit_input_reload_insns): Don't try to delete previous output
11472 reloads to a register, or record spill_reg_store for autoincs.
11474 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
11476 * gengtype.h: Updated copyright year.
11477 (struct input_file_st): Add inpisplugin field.
11478 (type_fileloc): New function.
11480 (write_typed_struct_alloc_def): Add gcc_assert.
11481 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
11482 (write_typed_alloc_defns): Don't output for plugin files.
11483 (input_file_by_name): Clear inpisplugin field.
11484 (main): Set inpisplugin field for plugin files.
11486 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
11488 * gengtype-state.c (string_eq): New.
11489 (read_state): Use string_eq instead of strcmp when creating the
11492 2011-04-19 Wei Guozhi <carrot@google.com>
11495 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
11496 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
11498 * config/arm/constraints.md (Uu): New constraint.
11499 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
11501 2011-04-19 Tristan Gingold <gingold@adacore.com>
11503 * config.gcc (-*-*-*vms): Added.
11504 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
11506 * config/vms/vms-ld.c: New file.
11507 * config/vms/vms-ar.c: New file.
11508 * config/vms/t-vmsnative: New file.
11510 2011-04-18 Xinliang David Li <davidxl@google.com>
11512 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
11514 2011-04-18 Jakub Jelinek <jakub@redhat.com>
11516 PR middle-end/48661
11517 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
11518 if TREE_TYPE (v) is non-NULL.
11520 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
11521 gimple_get_virt_mehtod_for_binfo.
11522 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
11523 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
11525 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
11527 2011-04-18 Michael Matz <matz@suse.de>
11528 Steve Ellcey <sje@cup.hp.com>
11530 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
11531 use its mode as source mode if it isn't VOIDmode.
11533 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
11535 * doc/passes.texi: Fill crossref nodes.
11537 2011-04-18 Jim Meyering <meyering@redhat.com>
11539 Fix doubled-word typos in comments and strings
11540 * config/alpha/vms-unwind.h: s/for for/for/
11541 * config/arm/unwind-arm.h: Likewise.
11542 * config/microblaze/microblaze.c: Likewise.
11543 * config/sh/constraints.md: s/in in/in/
11544 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
11546 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
11548 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
11549 (AVX_FLOAT_MODE_P): Ditto.
11550 (AVX128_VEC_FLOAT_MODE_P): Ditto.
11551 (AVX256_VEC_FLOAT_MODE_P): Ditto.
11552 (AVX_VEC_FLOAT_MODE_P): Ditto.
11553 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
11554 (UNSPEC_MASKSTORE): Ditto.
11555 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
11556 Merge from <sse>_movmsk<ssemodesuffix> and
11557 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
11558 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
11560 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
11561 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
11562 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
11564 2011-04-18 Jan Hubicka <jh@suse.cz>
11566 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
11568 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
11569 (want_inline_function_called_once_p): Break out the logic from
11571 (edge_badness): Ensure that profile is not misupdated.
11572 (lookup_recursive_calls): Prioritize by call frequencies.
11573 (inline_small_functions): Move program size estimates here;
11574 actually process whole queue even when unit growth has been
11575 met. (to properly compute inline_failed reasons and for the
11576 case unit size decrease.) Revisit comments on recursive inlining.
11577 (ipa_inline): Remove unit summary code; first inline hot calls
11578 of functions called once, cold calls next.
11579 (order, nnodes): Remove unused variables.
11580 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
11581 (GTFILES): Remove ipa-inline.c
11582 * sel-sched.c (fill_insns): Silence uninitialized var warning.
11584 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
11586 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
11588 2011-04-18 Jie Zhang <jie@codesourcery.com>
11589 Richard Earnshaw <rearnsha@arm.com>
11591 * arm.c (neon_builtin_type_bits): Remove.
11592 (typedef enum neon_builtin_mode): New.
11593 (T_MAX): Don't define.
11594 (typedef enum neon_builtin_datum): Remove bits, codes[],
11595 num_vars and base_fcode. Add mode, code and fcode.
11596 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
11597 VAR10): Change accordingly.
11598 (neon_builtin_data[]): Change accordingly
11599 (arm_init_neon_builtins): Change accordingly.
11600 (neon_builtin_compare): Remove.
11601 (locate_neon_builtin_icode): Remove.
11602 (arm_expand_neon_builtin): Change accordingly.
11604 * arm.h (enum arm_builtins): Move to ...
11605 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
11607 * arm.c (arm_builtin_decl): Declare.
11608 (TARGET_BUILTIN_DECL): Define.
11609 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
11610 (arm_builtin_decls[]): New.
11611 (arm_init_neon_builtins): Store builtin declarations in
11612 arm_builtin_decls[].
11613 (arm_init_tls_builtins): Likewise.
11614 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
11615 (arm_builtin_decl): New.
11617 2011-04-18 Richard Guenther <rguenther@suse.de>
11619 * tree.c (upper_bound_in_type): Build properly canonicalized
11621 (lower_bound_in_type): Likewise.
11623 2011-04-18 Richard Guenther <rguenther@suse.de>
11625 * gimple.h (gimple_call_addr_fndecl): New function.
11626 (gimple_call_fndecl): Use it.
11627 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
11629 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
11630 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
11632 2011-04-18 Richard Guenther <rguenther@suse.de>
11634 PR middle-end/48650
11635 * tree.c (build_string): STRING_CST is now derived from tree_typed.
11637 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
11640 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
11641 DECL_IN_CONSTANT_POOL without RTL.
11643 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
11644 Ira Rosen <ira.rosen@linaro.org>
11647 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
11648 to match neon_vzip/vuzp/vtrn_internal.
11649 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
11650 outputs explicitly dependent on both inputs.
11651 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
11653 2011-04-18 Jakub Jelinek <jakub@redhat.com>
11655 PR tree-optimization/48616
11656 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
11657 whether the shift is by scalar or vector based on whether all SLP
11658 scalar stmts have the same rhs.
11660 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
11662 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
11665 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
11668 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
11671 2011-04-17 Jan Hubicka <jh@suse.cz>
11673 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
11674 * cgrpahunit.c (cgraph_finalize_function): Do not set
11675 finalized_by_frontend.
11676 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
11677 finalized_by_frontend.
11679 2011-04-17 Jan Hubicka <jh@suse.cz>
11681 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
11682 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
11683 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
11684 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
11686 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
11688 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
11690 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
11693 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
11694 is non-null before accessing it.
11695 (input_cgraph): Remove trailing spaces.
11697 2011-04-17 Revital Eres <revital.eres@linaro.org>
11699 * params.def (sms-min-sc): New param flag.
11700 * modulo-sched.c (sms_schedule): Use it.
11701 * doc/invoke.texi (sms-min-sc): Document it.
11703 2011-04-17 Jan Hubicka <jh@suse.cz>
11705 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
11706 present, also set gimple_call_set_cannot_inline.
11707 * ipa-inline.c: Update toplevel comment.
11708 (MAX_TIME): Remove.
11709 (cgraph_clone_inlined_nodes): Fix linebreaks.
11710 (cgraph_check_inline_limits): Restructure to ...
11711 (caller_growth_limits): ... this one; be more tolerant
11712 on growth in nested inline chains; add explanatory comment;
11713 fix stack accounting thinko introduced by previous patch.
11714 (cgraph_default_inline_p): Remove.
11715 (report_inline_failed_reason): New function.
11716 (can_inline_edge_p): New function.
11717 (can_early_inline_edge_p): New function.
11718 (leaf_node_p): Move upwards in file.
11719 (want_early_inline_function_p): New function.
11720 (want_inline_small_function_p): New function.
11721 (want_inline_self_recursive_call_p): New function.
11722 (cgraph_edge_badness): Rename to ...
11723 (edge_badness) ... this one; fix linebreaks.
11724 (update_edge_key): Update call of edge_baddness; add
11725 detailed dump about queue updates.
11726 (update_caller_keys): Use can_inline_edge_p and
11727 want_inline_small_function_p.
11728 (cgraph_decide_recursive_inlining): Rename to...
11729 (recursive_inlining): Use can_inline_edge_p and
11730 want_inline_self_recursive_call_p; simplify and remove no longer
11732 (cgraph_set_inline_failed): Remove.
11733 (add_new_edges_to_heap): Use can_inline_edge_p and
11734 want_inline_small_function_p.
11735 (cgraph_decide_inlining_of_small_functions): Rename to ...
11736 (inline_small_functions): ... this one; cleanup; use
11737 can/want predicates; cleanup debug ouput; work edges till fibheap
11738 is exhausted and do not stop once unit growth is reached; remove
11739 later loop processing remaining edges.
11740 (cgraph_flatten): Rename to ...
11741 (flatten_function): ... this one; use can_inline_edge_p
11742 and can_early_inline_edge_p predicates.
11743 (cgraph_decide_inlining): Rename to ...
11744 (ipa_inline): ... this one; remove unreachable nodes before
11745 inlining functions called once; simplify the pass.
11746 (cgraph_perform_always_inlining): Rename to ...
11747 (inline_always_inline_functions): ... this one; use
11748 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
11749 (cgraph_decide_inlining_incrementally): Rename to ...
11750 (early_inline_small_functions): ... this one; simplify
11751 using new predicates; cleanup; make dumps prettier.
11752 (cgraph_early_inlining): Rename to ...
11753 (early_inliner): newer inline regular functions into always-inlines;
11754 fix updating of call stmt summaries.
11755 (pass_early_inline): Update for new names.
11756 (inline_transform): Fix formating.
11757 (gate_cgraph_decide_inlining): Rename to ...
11758 (pass_ipa_inline): ... this one.
11759 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
11760 * ipa-inline-analysis.c (dump_inline_summary): Update.
11761 (compute_inline_parameters): Do not compute disregard_inline_limits;
11762 look for mismatching arguments.
11763 (estimate_growth): Fix handlig of non-trivial self recursion.
11764 (inline_read_summary): Do not read info->disregard_inline_limits.
11765 (inline_write_summary): Do not write info->disregard_inline_limits.
11766 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
11767 and move all checks into can_inline_edge_p predicate; re-enable code
11768 comparing optimization levels.
11769 (expand_call_inline): Do not test inline_forbidden_into_p.
11770 * Makefile.in (ipa-inline.o): Update arguments.
11772 2011-04-17 Revital Eres <revital.eres@linaro.org>
11774 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
11776 2011-04-17 Revital Eres <revital.eres@linaro.org>
11778 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
11780 2011-04-17 Michael Matz <matz@suse.de>
11782 PR tree-optimization/48622
11784 * ipa-inline-analysis.c (inline_read_summary): Read size/time
11785 in same order as they're written.
11787 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11789 * config/pa/predicates.md: Reorganize and simplify predicates.
11790 Eliminate duplicate code checks.
11791 (arith_operand): Rename to arith14_operand
11792 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
11793 * config/pa/pa.md: Use renamed operands.
11794 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
11795 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
11796 arith11_operand, adddi3_operand, indexed_memory_operand,
11797 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
11798 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
11799 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
11800 move_dest_operand, move_src_operand, prefetch_cc_operand,
11801 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
11802 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
11803 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
11804 div_operand, int5_operand, movb_comparison_operator,
11805 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
11806 arith_double_operand, ireg_operand, lhs_lshift_operand,
11807 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
11808 integer_store_memory_operand): Likewise.
11809 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
11810 (integer_store_memory_operand, read_only_operand,
11811 function_label_operand, borx_reg_operand,
11812 non_hard_reg_operand): Likewise.
11813 (eq_neq_comparison_operator): Delete unused operator.
11814 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
11815 function_label_operand.
11816 (emit_move_sequence): Likewise.
11818 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
11820 * config/i386/sse.md (sseunpackmode): New mode attribute.
11821 (ssepackmode): Ditto.
11822 (vec_pack_trunc_<mode>): Macroize expander from
11823 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
11824 (vec_unpacks_lo_<mode>): Macroize expander from
11825 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11826 (vec_unpacks_hi_<mode>): Macroize expander from
11827 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11828 (vec_unpacku_lo_<mode>): Macroize expander from
11829 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11830 (vec_unpacku_hi_<mode>): Macroize expander from
11831 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11832 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
11833 ix86_expand_sse4_unpack.
11834 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
11836 2011-04-16 Jan Hubicka <jh@suse.cz>
11838 * cgraphbuild.c: Include ipa-inline.h.
11839 (reset_inline_failed): Use initialize_inline_failed.
11840 * cgraph.c: Include ipa-inline.h.
11841 (cgraph_create_node_1): Do not initialize estimated_growth.
11842 (initialize_inline_failed): More to ipa-inline-analysis.c
11843 (dump_cgraph_node): Do not dump inline flags.
11844 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
11845 and disregard_inline_limits flags.
11846 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
11847 time, size, estimated_growth.
11848 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
11850 * cgraphunit.c (cgraph_decide_is_function_needed): Use
11851 DECL_DISREGARD_INLINE_LIMITS.
11852 (cgraph_analyze_function): Do not initialize
11853 node->local.disregard_inline_limits.
11854 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
11855 inlinable, versionable and disregard_inline_limits.
11856 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
11857 cgraph_check_inline_limits, cgraph_default_inline_p,
11858 cgraph_edge_badness, update_caller_keys, update_callee_keys,
11859 add_new_edges_to_heap): Update.
11860 (cgraph_decide_inlining_of_small_function): Update; set
11861 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
11862 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
11863 cgraph_decide_inlining_incrementally): Update.
11864 * ipa-inline.h (inline_summary): Add inlinable, versionable,
11865 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
11866 time, size and estimated_growth parameters.
11867 (estimate_edge_growth): Update.
11868 (initialize_inline_failed): Declare.
11869 * ipa-split.c: Include ipa-inline.h
11870 (execute_split_functions): Update.
11871 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
11872 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
11873 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
11874 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
11875 estimated_growth to INT_MIN.
11876 (inline_node_duplication_hook): Likewise.
11877 (dump_inline_summary): Dump new fields.
11878 (compute_inline_parameters): Update.
11879 (estimate_edge_time, estimate_time_after_inlining,
11880 estimate_size_after_inlining, estimate_growth, inline_read_summary,
11881 inline_write_summary):
11882 (initialize_inline_failed): Move here from cgraph.c.
11883 * tree-sra.c: Include ipa-inline.h.
11884 (ipa_sra_preliminary_function_checks): Update.
11885 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
11888 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
11890 * config/i386/sse.md (V16): New mode iterator.
11892 (AVXMODEQI, AVXMODEDI): Remove.
11893 (sse2, sse3): New mode attribute.
11894 (mov<mode>): Use V16 mode iterator.
11895 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
11896 (push<mode>1): Use V16 mode iterator.
11897 (movmisalign<mode>): Ditto.
11898 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
11899 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
11900 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
11901 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
11902 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
11903 avx_movdqu<avxmodesuffix>.
11904 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
11905 *avx_movdqu<avxmodesuffix>.
11906 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
11907 avx_lddqu<avxmodesuffix>.
11908 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
11909 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
11910 avx_movnt<AVXMODEDI:mode>.
11911 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
11912 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
11914 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
11917 * haifa-sched.c (prune_ready_list, schedule_block): Use
11918 sched_pressure_p rather than flag_sched_pressure.
11920 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
11922 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
11923 cgraph_get_node instead of cgraph_get_create_node.
11925 2011-04-15 Jakub Jelinek <jakub@redhat.com>
11927 * cfgexpand.c (expand_debug_expr): Use
11928 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
11930 2011-04-15 Michael Matz <matz@suse.de>
11932 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
11933 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
11934 * function.c (gimplify_parameters): Ditto.
11935 * gimplify.c (gimplify_vla_decl): Ditto.
11937 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
11938 (gimple_call_set_alloca_for_var): New inline function.
11939 (gimple_call_alloca_for_var_p): Ditto.
11940 * gimple.c (gimple_build_call_from_tree): Remember
11941 CALL_ALLOCA_FOR_VAR_P state.
11942 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
11944 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
11945 calls if they were for VLA objects.
11947 2011-04-15 Martin Jambor <mjambor@suse.cz>
11949 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
11952 2011-04-15 Martin Jambor <mjambor@suse.cz>
11954 PR middle-end/48601
11955 * tree-emutls.c (lower_emutls_function_body): Call
11956 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
11957 result is non-NULL.
11959 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
11961 * c-decl.c (detect_field_duplicates): Call
11962 objc_detect_field_duplicates instead of objc_get_interface_ivars.
11964 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
11966 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
11967 * gimple.c (gimple_asm_clobbers_memory_p): Define.
11968 * ipa-pure-const.c (check_stmt): Call it.
11969 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
11971 2011-04-15 Richard Guenther <rguenther@suse.de>
11973 PR tree-optimization/48290
11974 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
11975 Properly decide inhibiting propagation based on the valueized
11976 operand. Do loop-closed SSA form preserving here ...
11977 (init_copy_prop): ... not here.
11979 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
11982 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
11983 (*ieee_smax<mode>3): Likewise.
11985 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11987 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
11988 Replace match_operand with match_dup for the third operand in
11991 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
11993 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
11994 to track processing of conditionals. Update all callers.
11995 (try_combine, simplify_if_then_else): Update.
11997 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
11999 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
12002 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
12004 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
12005 instead of match_operand for operand 3.
12007 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
12009 * recog.h (insn_operand_data): Add an "allows_mem" field.
12010 * genoutput.c (output_operand_data): Initialize it.
12011 * optabs.c (maybe_legitimize_operand_same_code): New function.
12012 (maybe_legitimize_operand): Use it when matching the original
12015 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
12017 * gimplify.c: Fix issues in comments throughout.
12018 (voidify_wrapper_expr): Fix long line.
12019 (build_stack_save_restore): Likewise.
12020 (gimplify_loop_expr): Likewise.
12021 (gimplify_compound_lval): Likewise.
12022 (gimplify_init_ctor_eval): Likewise.
12023 (gimplify_modify_expr_rhs): Likewise.
12024 (omp_notice_threadprivate_variable): Likewise.
12026 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
12028 * cfgexpand.c (expand_call_stmt): Convert the function type to the
12029 original one if this is not a builtin function.
12031 2011-04-14 Jakub Jelinek <jakub@redhat.com>
12034 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
12035 offset it as needed based on top 2 bits in operands[3], change
12036 MEM mode to SFmode and mask those 2 bits away from operands[3].
12038 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
12040 * c-parser.c (c_parser_objc_protocol_definition): Updated for
12041 change from objc_declare_protocols() to objc_declare_protocol().
12043 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
12045 * config/i386/sse.md (sse4_1): New mode attribute.
12046 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
12047 avx_blend<ssemodesuffix><avxmodesuffix> and
12048 sse4_1_blend<ssemodesuffix> using VF mode iterator.
12049 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
12050 avx_blendv<ssemodesuffix><avxmodesuffix> and
12051 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
12052 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
12053 avx_dp<ssemodesuffix><avxmodesuffix> and
12054 sse4_1_dp<ssemodesuffix> using VF mode iterator.
12055 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
12056 (sse4_1_packusdw): Merge with *avx_packusdw.
12057 (sse4_1_pblendvb): Merge with *avx_pblendvb.
12058 (sse4_1_pblendw): Merge with *avx_pblendw.
12059 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
12060 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
12061 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
12063 (sse4_1_round<ssescalarmodesuffix>): Merge with
12064 *avx_round<ssescalarmodesuffix>.
12065 (aesenc): Merge with *avx_aesenc.
12066 (aesenclast): Merge with *avx_aesenclast.
12067 (aesdec): Merge with *avx_aesdec.
12068 (aesdeclast): Merge with *avx_aesdeclast.
12069 (pclmulqdq): Merge with *pclmulqdq.
12070 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
12072 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
12074 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
12076 PR middle-end/48608
12077 * cfgexpand.c (get_decl_align_unit): Renamed to ...
12078 (align_local_variable): This. Update DECL_ALIGN.
12079 (add_stack_var): Updated.
12080 (expand_one_stack_var): Likewise.
12082 2011-04-14 Richard Guenther <rguenther@suse.de>
12084 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
12086 (dse_initialize_block_local_data, dse_leave_block,
12087 record_voperand_set, get_stmt_uid): Likewise.
12088 (dse_possible_dead_store_p): Allow any kind of killing stmt.
12089 (dse_optimize_stmt): Remove voperand set handling code.
12090 Simplify and improve to handle any kind of killing stmt.
12091 (dse_record_phi): Remove.
12092 (dse_enter_block): Simplify.
12093 (tree_ssa_dse): Likewise.
12094 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
12096 2011-04-14 Jan Hubicka <jh@suse.cz>
12098 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
12099 * cgraph.h (struct inline_summary): Move to ipa-inline.h
12100 (cgraph_local_info): Remove inline_summary.
12101 * ipa-cp.c: Include ipa-inline.h.
12102 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
12103 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
12105 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
12106 (input_overwrite_node): Do not set inline summary.
12107 (input_node): Do not stream inline summary.
12108 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
12109 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
12110 growth; we do not have inline parameters computed for that anyway.
12111 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
12112 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
12113 (inline_summary_t): New type and VECtor.
12114 (debug_inline_summary, dump_inline_summaries): Declare.
12115 (inline_summary): Use VOCtor.
12116 (estimate_edge_growth): Kill hack computing call stmt size directly.
12117 * lto-section-in.c (lto_section_name): Add inline section.
12118 * ipa-inline-analysis.c: Include lto-streamer.h
12119 (node_removal_hook_holder, node_duplication_hook_holder): New holders
12120 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
12121 (inline_summary_vec): Define.
12122 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
12123 dump_inline_summaries): New functions.
12124 (estimate_function_body_sizes): Properly compute size/time of outgoing
12126 (compute_inline_parameters): Alloc inline_summary; do not compute
12127 size/time of incomming calls.
12128 (estimate_edge_time): Avoid missing time summary hack.
12129 (inline_read_summary): Read inline summary info.
12130 (inline_write_summary): Write inline summary info.
12131 (inline_free_summary): Free all hooks and inline summary vector.
12132 * lto-streamer.h: Add LTO_section_inline_summary section.
12133 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
12134 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
12136 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12138 * tree-vectorizer.h (vect_strided_store_supported): Add a
12139 HOST_WIDE_INT argument.
12140 (vect_strided_load_supported): Likewise.
12141 (vect_permute_store_chain): Return void.
12142 (vect_transform_strided_load): Likewise.
12143 (vect_permute_load_chain): Delete.
12144 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
12145 count argument. Check that the count is a power of two.
12146 (vect_strided_load_supported): Likewise.
12147 (vect_permute_store_chain): Return void. Update after above changes.
12148 Assert that the access is supported.
12149 (vect_permute_load_chain): Likewise.
12150 (vect_transform_strided_load): Return void.
12151 * tree-vect-stmts.c (vectorizable_store): Update calls after
12152 above interface changes.
12153 (vectorizable_load): Likewise.
12154 (vect_analyze_stmt): Don't check for strided powers of two here.
12156 2011-04-14 Richard Guenther <rguenther@suse.de>
12158 PR tree-optimization/48590
12159 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12160 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12161 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
12162 BUILT_IN_STACK_SAVE.
12163 * tree-ssa-dce.c (propagate_necessity): Handle
12164 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12166 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
12168 * c-parser.c (c_parser_objc_class_declaration): Updated call to
12169 objc_declare_class.
12171 2011-04-14 Richard Guenther <rguenther@suse.de>
12173 * tree.h (get_object_alignment_1): Declare.
12174 * builtins.c (get_object_alignment_1): Split out worker from ...
12175 (get_object_alignment): ... here.
12176 * fold-const.c (get_pointer_modulus_and_residue): Use
12177 get_object_alignment_1.
12179 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12181 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
12183 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
12184 parameter. Generalise code to handle arrays as well as vectors.
12185 (vect_setup_realignment): Update accordingly.
12186 * tree-vect-stmts.c (vectorizable_store): Likewise.
12187 (vectorizable_load): Likewise.
12189 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12191 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
12192 within the per-copy loop.
12194 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12196 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
12199 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12201 * doc/options.texi (Negative): Explicitly mention that the
12202 Negative chain must be circular.
12204 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
12206 * function.h (block_chainon): Declare.
12207 * function.c (block_chainon): Define.
12209 2011-04-14 Anatoly Sokolov <aesok@post.ru>
12210 Eric Weddington <eric.weddington@atmel.com>
12211 Georg-Johann Lay <avr@gjlay.de>
12213 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
12215 (avr_init_builtins, avr_expand_builtin,
12216 avr_expand_delay_cycles, avr_expand_unop_builtin,
12217 avr_expand_binop_builtin ): New functions.
12218 (avr_builtin_id): New enum
12219 (struct avr_builtin_description): New struct
12220 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
12221 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
12223 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
12224 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
12225 UNSPECV_DELAY_CYCLES): new enumeration values
12226 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
12227 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
12228 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
12229 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
12230 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
12231 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
12232 "fmulsu"): New insns
12234 * config/avr/avr-c.c: fix line endings
12235 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
12236 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
12237 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
12238 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
12239 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
12241 * doc/extend.texi (AVR Built-in Functions): New node
12242 (Target Builtins): Add documentation of AVR
12243 built-in functions.
12245 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
12248 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
12249 alone. Error if non-const data has attribute progmem.
12251 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12253 * tree.h (struct tree_constructor): Include tree_typed instead of
12255 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
12256 TS_TYPED instead of TS_COMMON.
12258 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
12260 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
12261 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
12262 (sse2_psadbw): Merge with *avx_psadbw.
12263 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
12264 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
12265 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
12266 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
12267 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
12268 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
12269 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
12270 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
12271 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
12272 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
12273 (ssse3_palignrti): Merge with *avx_palignrti.
12275 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12277 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
12278 * tree-ssanames.c (fini_ssanames): VEC_free it.
12279 (make_ssa_name_fn): Update for VECness of free_ssanames.
12280 (release_ssa_name, release_dead_ssa_names): Likewise.
12281 * tree.h (struct tree_ssa_name): Include tree_typed instead of
12283 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
12284 TS_TYPED instead of TS_COMMON.
12286 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12288 * postreload-gcse.c (gcse_after_reload_main): Add calls to
12289 statistics_counter_event.
12290 * tree-ssa-copyrename.c (stats): Define.
12291 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
12292 statistics_counter_event.
12293 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
12294 (bswap_stats, widen_mul_stats): Define.
12295 (insert_reciprocals): Increment rdivs_inserted.
12296 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
12297 rfuncs_inserted. Add calls to statistics_counter_event.
12298 (execute_cse_sincos_1): Increment inserted.
12299 (execute_cse_sincos): Zeroize sincos_stats. Add call to
12300 statistics_counter_event.
12301 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
12302 of bswap_stats. Add calls to statistics_counter_event.
12303 (convert_mult_to_widen): Increment widen_mults_inserted.
12304 (convert_plusminus_to_widen): Increment maccs_inserted.
12305 (convert_mult_to_fma): Increment fmas_inserted.
12306 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
12307 calls to statistics_counter_event.
12309 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
12311 PR rtl-optimization/48455
12312 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
12313 `temp_costs->mem_cost'.
12315 2011-04-13 Jan Hubicka <jh@suse.cz>
12317 * ipa-inline.h: New file.
12318 * ipa-inline-analysis.c: New file. Broken out of ...
12319 * ipa-inline.c: ... this file; update toplevel comment;
12320 include ipa-inline.h
12321 (inline_summary): Move to ipa-inline.h
12322 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
12323 ipa-inline-analysis.c.
12324 (cgraph_estimate_time_after_inlining): Rename to
12325 estiamte_time_after_inlining; move to ipa-inline-analysis.c
12326 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
12327 to estimate_edge_growth.
12328 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
12329 rename to estimate_size_after_inlining.
12330 (cgraph_mark_inline_edge): Update for new naming convention.
12331 (cgraph_check_inline_limits): Likewise.
12332 (cgraph_edge_badness): Likewise.
12333 (cgraph_decide_recursive_inlining): Likewise.
12334 (cgraph_decide_inlining_of_small_functions): Likewise.
12335 (cgraph_decide_inlining_incrementally): Likewise.
12336 (cgraph_estimate_growth): Rename to estimate_growth; move to
12337 ipa-inline-analysis.c.
12338 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
12339 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
12340 (compute_inline_parameters): Likewise.
12341 (compute_inline_parameters_for_current): Likewise.
12342 (pass_inline_parameters): Likewise.
12343 (inline_indirect_intraprocedural_analysis): Likewise.
12344 (analyze_function): Rename to inline_analyze_function; likewise.
12345 (add_new_function): Move to ipa-inline-analysis.c.
12346 (inline_generate_summary): Likewise.
12347 (inline_read_summary): Likewise.
12348 (inline_write_summary): Likewise.
12349 * Makefile.in (ipa-inline-analysis.c): New file.
12351 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12353 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
12354 * configure: Regenerate.
12356 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12358 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
12359 instead of tree_common.
12360 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
12362 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
12363 TS_TYPED rather than TS_COMMON.
12364 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
12366 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
12369 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
12370 r20 around calls of __tablejump_elpm__
12372 2011-04-13 Jakub Jelinek <jakub@redhat.com>
12374 PR middle-end/48591
12375 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
12377 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
12379 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
12381 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
12382 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
12383 (cfi_vec): New typedef.
12384 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
12385 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
12386 (cie_cfi_vec): New static variable.
12387 (cie_cfi_head): Delete.
12388 (add_cfi): Accept a cfi_vec * as first argument. All callers and
12389 declaration changed. Use vector rather than list operations.
12390 (new_cfi): Don't initialize the dw_cfi_next field.
12391 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
12392 rather than list operations.
12393 (lookup_cfa): Use vector rather than list operations.
12394 (output_cfis): New argument upto. Accept a cfi_vec rather than
12395 a dw_cfi_ref list head as argument. All callers changed.
12396 Iterate over the vector using upto as a maximum index.
12397 (output_all_cfis): New static function.
12398 (output_fde): Use vector rather than list operations. Use the
12399 new upto argument for output_cfis rather than manipulating a
12401 (dwarf2out_begin_prologue): Change initializations to match
12402 new struct members.
12403 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
12404 from the vector length rather than searching for the end of a list.
12405 Use output_all_cfis.
12406 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
12408 2011-04-13 Nick Clifton <nickc@redhat.com>
12410 * config/rx/rx.md (movmemsi): Do not use this pattern when
12411 volatile pointers are involved.
12413 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
12415 * config/i386/sse.md (pinsrbits): Remove.
12416 (sse2_packsswb): Merge with *avx_packsswb.
12417 (sse2_packssdw): Merge with *avx_packssdw.
12418 (sse2_packuswb): Merge with *avx_packuswb.
12419 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
12420 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
12421 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
12422 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
12423 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
12424 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
12425 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
12426 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
12427 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
12428 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
12429 (sse2_loadld): Merge with *avx_loadld.
12430 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
12431 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
12432 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
12433 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
12434 (vec_concatv2di): Merge with *vec_concatv2di_avx.
12436 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
12438 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
12439 calling TREE_CHAIN.
12440 * print-tree.c (print_node): Likewise.
12441 * tree-inline.c (copy_tree_r): Likewise.
12442 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
12443 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
12444 instead of TS_COMMON.
12445 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
12446 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
12447 (copy_node_stat): Zero TREE_CHAIN only if necessary.
12448 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
12449 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
12451 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
12453 (TREE_CHAIN): Check for a TS_COMMON structure.
12454 (TREE_TYPE): Check for a TS_TYPED structure.
12456 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
12458 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
12459 cgraph_get_create_node instead of cgraph_node.
12461 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
12463 * c-parser.c (c_parser_initelt): Updated call to
12464 objc_build_message_expr.
12465 (c_parser_postfix_expression): Likewise.
12467 2011-04-12 Kai Tietz <ktietz@redhat.com>
12469 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
12470 MASK_MS_BITFIELD_LAYOUT bit.
12472 2011-04-12 Jakub Jelinek <jakub@redhat.com>
12474 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
12475 assert it is always true.
12476 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
12479 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
12481 * c-parser.c (c_lex_one_token): Rewritten conditional used when
12482 compiling Objective-C to be more efficient.
12484 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
12486 * opts-common.c (decode_cmdline_options_to_array): Remove variable
12489 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12491 * recog.h, genoutput.c, optabs.c: Revert last patch.
12493 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12496 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
12498 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12500 * recog.h (insn_operand_data): Add an "allows_mem" field.
12501 * genoutput.c (output_operand_data): Initialize it.
12502 * optabs.c (maybe_legitimize_operand_same_code): New function.
12503 (maybe_legitimize_operand): Use it when matching the original
12506 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12508 * genpreds.c (process_define_predicate): Move most processing
12509 to gensupport.c. Continue to validate the expression.
12510 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
12511 (process_define_predicate): Move processing to gensupport.c.
12512 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
12513 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
12514 (compute_predicate_codes): Moved from genrecog.c. Add lineno
12516 (valid_predicate_name_p): New function, split out from old
12517 genpreds.c:process_define_predicate.
12518 (process_define_predicate): New function, combining code from
12519 old genpreds.c and genrecog.c functions.
12520 (process_rtx): Call it for DEFINE_PREDICATE and
12521 DEFINE_SPECIAL_PREDICATE.
12523 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12525 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
12526 size of a '%A' memory reference.
12527 (T_DREG, T_QREG): New neon_builtin_type_bits.
12528 (arm_init_neon_builtins): Assert that the load and store operands
12529 are neon_struct_operands.
12530 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
12531 (NEON_ARG_MEMORY): New builtin_arg.
12532 (neon_dereference_pointer): New function.
12533 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
12534 Handle NEON_ARG_MEMORY.
12535 (arm_expand_neon_builtin): Update after above interface changes.
12536 Use NEON_ARG_MEMORY for loads and stores.
12537 * config/arm/predicates.md (neon_struct_operand): New predicate.
12538 * config/arm/iterators.md (V_two_elem): Tweak formatting.
12539 (V_three_elem): Use BLKmode for accesses that have no associated mode.
12540 (V_four_elem): Tweak formatting.
12541 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
12542 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
12543 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
12544 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
12545 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
12546 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
12547 (neon_vst4<mode>): Replace pointer operand with a memory operand.
12548 Use %A in the output template.
12549 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
12550 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
12551 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
12552 the width of the memory access. Remove post-increment.
12553 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
12555 2011-04-12 Nick Clifton <nickc@redhat.com>
12557 * config/v850/v850.c (expand_prologue): Do not use the CALLT
12558 instruction for interrupt handlers if the target is the basic V850
12560 (expand_epilogue): Likewise.
12562 2011-04-12 Jakub Jelinek <jakub@redhat.com>
12564 PR rtl-optimization/48549
12565 * combine.c (propagate_for_debug): Also stop after BB_END of
12566 this_basic_block. Process LAST and just stop processing after it.
12567 (combine_instructions): If last_combined_insn has been deleted,
12568 set last_combined_insn to its PREV_INSN.
12570 2011-04-12 Richard Guenther <rguenther@suse.de>
12572 PR tree-optimization/46076
12573 * gimple.h (struct gimple_statement_call): Add fntype field.
12574 (gimple_call_fntype): Adjust.
12575 (gimple_call_set_fntype): New function.
12576 * gimple.c (gimple_build_call_1): Set the call function type.
12577 * gimplify.c (gimplify_call_expr): Preserve the function
12578 type the frontend used for the call.
12579 (gimplify_modify_expr): Likewise.
12580 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
12582 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
12584 * tree-ssa.c (useless_type_conversion_p): Function pointer
12585 conversions are useless.
12587 2011-04-12 Martin Jambor <mjambor@suse.cz>
12589 * cgraph.h (cgraph_node): Remove function declaration.
12590 (cgraph_create_node): Declare.
12591 (cgraph_get_create_node): Likewise.
12592 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
12593 Updated all callers.
12594 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
12595 the decl does not already exist. Call cgraph_get_create_node instead
12597 (cgraph_get_create_node): New function.
12598 (cgraph_same_body_alias): Update comment.
12599 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
12600 assert it does not return NULL.
12601 (cgraph_update_edges_for_call_stmt): Likewise.
12602 (cgraph_clone_edge): Likewise.
12603 (cgraph_create_virtual_clone): Likewise.
12604 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
12605 instead of cgraph_node.
12606 (cgraph_add_new_function): Call cgraph_create_node or
12607 cgraph_get_create_node instead of cgraph_node.
12608 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
12609 instead of cgraph_node.
12610 (record_eh_tables): Likewise.
12611 (mark_address): Likewise.
12612 (mark_load): Likewise.
12613 (build_cgraph_edges): Call cgraph_get_create_node instead
12615 (rebuild_cgraph_edges): Likewise.
12616 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
12617 instead of cgraph_node.
12618 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
12620 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
12621 cgraph_create_node instead of cgraph_node.
12622 * c-decl.c (finish_function): Call cgraph_get_create_node instead
12624 * lto-cgraph.c (input_node): Likewise.
12625 * lto-streamer-in.c (input_function): Likewise.
12626 * varasm.c (mark_decl_referenced): Likewise.
12627 (assemble_alias): Likewise.
12629 2011-04-12 Martin Jambor <mjambor@suse.cz>
12631 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
12632 instead of cgraph_node and assert it does not return NULL.
12633 * lto-streamer-in.c (lto_read_body): Likewise.
12634 * omp-low.c (new_omp_context): Likewise.
12635 (create_task_copyfn): Likewise.
12636 * tree-emutls.c (lower_emutls_function_body): Likewise.
12637 * matrix-reorg.c (transform_allocation_sites): Likewise.
12639 2011-04-12 Jakub Jelinek <jakub@redhat.com>
12642 * c-typeck.c (build_asm_expr): Error out on attempts to use
12643 void type outputs or inputs for constraints that allow reg or
12644 don't allow memory.
12646 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
12647 Richard Earnshaw <rearnsha@arm.com>
12650 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
12651 to use sign-magnitude offsets. Reject unsupported unaligned
12652 cases. Add detailed description in comments.
12653 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
12654 condition from TARGET_32BIT to TARGET_ARM.
12656 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
12658 * tree.h (struct typed_tree): New.
12659 (struct tree_common): Include it instead of tree_base.
12660 (TREE_TYPE): Update for new location of type field.
12661 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
12662 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
12663 (union tree_node): Add typed field.
12664 * treestruct.def (TS_TYPED): New.
12665 * lto-streamer.c (check_handled_ts_structures): Handle it.
12666 * tree.c (MARK_TS_TYPED): New macro.
12667 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
12669 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
12671 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
12672 (force_nonfallthru): Do not alter the loop nest if no basic block
12675 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
12677 * config/i386/sse.md (VI): New mode iterator.
12678 (SSEMODEI): Remove.
12679 (AVX256MODEI): Ditto.
12680 (AVXMODEF4P): Ditto.
12681 (avxvecpsmode): Ditto.
12682 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
12683 (sse2_andnot<mode>3): New expander.
12684 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
12685 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
12686 (<any_logic:code><mode>3): Use VI mode iterator.
12687 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
12688 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
12689 (*andnottf3): Handle AVX three-operand constraints.
12690 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
12692 2011-04-11 Joseph Myers <joseph@codesourcery.com>
12693 Robert Millan <rmh@gnu.org>
12695 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
12696 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
12697 GNU_USER_DYNAMIC_LINKER64): Define.
12698 (REG_NAME): Don't undefine.
12699 (MD_UNWIND_SUPPORT): Undefine.
12700 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
12701 (REG_NAME): Don't undefine.
12702 (MD_UNWIND_SUPPORT): Undefine.
12703 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
12705 2011-04-11 Joseph Myers <joseph@codesourcery.com>
12707 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
12708 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
12710 2011-04-11 Xinliang David Li <davidxl@google.com>
12712 * value-profile.c (check_ic_target): New function.
12713 (gimple_ic_transform): Sanity check indirect call target.
12714 * gimple-low.c (gimple_check_call_args): Interface change.
12715 (gimple_check_call_matching_types): New function.
12716 * tree-inline.c (tree_can_inline_p): Call new function.
12718 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
12720 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
12721 tree-pretty-print.h & realmpfr.h.
12723 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
12725 PR middle-end/48464
12726 * ira.c (setup_pressure_classes): Fix typo in loop condition.
12727 (setup_allocno_and_important_classes): Ditto.
12729 2011-04-11 Joseph Myers <joseph@codesourcery.com>
12731 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
12732 GNU_USER_DYNAMIC_LINKER.
12733 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
12734 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12735 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
12736 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12737 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12738 GNU_USER_TARGET_OS_CPP_BUILTINS.
12739 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
12740 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12741 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12742 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12743 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
12744 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12745 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12746 GNU_USER_TARGET_OS_CPP_BUILTINS.
12747 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12748 GNU_USER_DYNAMIC_LINKER.
12749 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12750 GNU_USER_TARGET_OS_CPP_BUILTINS.
12751 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
12752 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12753 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
12754 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12755 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
12756 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
12757 GNU_USER_DYNAMIC_LINKER64): Remove.
12758 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
12759 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12760 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12761 GNU_USER_DYNAMIC_LINKER.
12762 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12763 GNU_USER_TARGET_OS_CPP_BUILTINS.
12764 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12765 GNU_USER_TARGET_OS_CPP_BUILTINS.
12766 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
12767 to GNU_USER_TARGET_OS_CPP_BUILTINS.
12768 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12769 GNU_USER_TARGET_OS_CPP_BUILTINS.
12770 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
12771 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
12772 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
12773 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
12774 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12775 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12776 GNU_USER_DYNAMIC_LINKER.
12777 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12778 GNU_USER_TARGET_OS_CPP_BUILTINS.
12779 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
12780 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12781 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12782 GNU_USER_DYNAMIC_LINKER.
12783 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12784 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12785 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
12786 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12787 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12788 GNU_USER_DYNAMIC_LINKER.
12789 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
12790 GNU_USER_DYNAMIC_LINKERN32.
12791 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
12792 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
12793 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
12794 GNU_USER_DYNAMIC_LINKER32.
12795 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
12796 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12797 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12798 GNU_USER_DYNAMIC_LINKER.
12799 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12800 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12801 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
12802 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12803 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12804 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
12805 GNU_USER_DYNAMIC_LINKER32.
12806 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
12807 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
12808 GNU_USER_DYNAMIC_LINKER.
12809 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
12810 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12811 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
12812 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
12813 GNU_USER_DYNAMIC_LINKER64.
12814 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
12815 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12816 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12817 GNU_USER_DYNAMIC_LINKER.
12818 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
12819 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12820 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12821 GNU_USER_DYNAMIC_LINKER.
12822 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
12823 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12824 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
12825 GNU_USER_DYNAMIC_LINKER32.
12826 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
12827 GNU_USER_DYNAMIC_LINKER64.
12828 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
12829 GNU_USER_DYNAMIC_LINKER64.
12830 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
12831 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12832 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
12833 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12834 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12836 2011-04-11 Joseph Myers <joseph@codesourcery.com>
12838 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
12839 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
12840 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
12841 GNU_USER_DYNAMIC_LINKER.
12842 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
12843 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
12844 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
12845 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
12846 GNU_USER_DYNAMIC_LINKER64.
12847 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
12848 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
12849 GNU_USER_LINK_EMULATION.
12850 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
12851 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
12852 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
12853 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
12854 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
12855 CPP_SPEC, CC1_SPEC): Remove.
12856 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
12857 (GNU_USER_DYNAMIC_LINKER): Define.
12858 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
12859 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
12860 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
12861 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
12862 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
12863 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
12864 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
12865 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
12866 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
12867 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
12868 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
12869 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
12870 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
12871 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
12872 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
12873 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
12874 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12875 GNU_USER_DYNAMIC_LINKER.
12876 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12877 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
12878 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12879 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
12880 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12881 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
12882 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
12883 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
12884 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
12885 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
12887 2011-04-11 Kai Tietz <ktietz@redhat.com>
12891 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
12892 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
12894 (ix86_is_msabi_thiscall): Removed.
12895 (ix86_is_type_thiscall): Likewise.
12896 (ix86_get_callcvt): New function.
12897 (ix86_comp_type_attributes): Simplify check.
12898 (ix86_function_regparm): Use ix86_get_callcvt for calling
12899 convention attribute checks.
12900 (ix86_return_pops_args): Likewise.
12901 (ix86_static_chain): Likewise.
12902 (x86_this_parameter): Likewise.
12903 (x86_output_mi_thunk): Likewise.
12904 (ix86_function_type_abi): Optimize check for types without attributes.
12905 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
12906 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
12907 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
12909 (IX86_BASE_CALLCVT): Helper macro.
12910 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
12911 Use ix86_get_callcvt for calling convention attribute checks and avoid
12912 symbol-decoration for stdcall in TARGET_RTD case.
12913 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
12915 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
12918 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
12920 * config/i386/sse.md (VI_128): New mode iterator.
12921 (VI12_128): Rename from SSEMODE12.
12922 (VI14_128): Rename from SSEMODE14.
12923 (VI124_128): New mode iterator.
12924 (VI24_128): Rename from SSEMODE248.
12925 (VI248_128): Rename from SSEMODE248.
12926 (SSEMODE124C8): Remove.
12927 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
12928 (*sse2_<plusminus_insn><mode>3): Merge with
12929 *avx_<plusminus_insn><mode>3.
12930 (*mulv8hi3): Merge with *avx_mulv8hi3.
12931 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
12932 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
12933 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
12934 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
12935 (ashr<mode>3): Merge with *avx_ashr<mode>3.
12936 (lshr<mode>3): Merge with *avx_lshr<mode>3.
12937 (ashl<mode>3): Merge with *avx_ashl<mode>3.
12938 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
12939 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
12940 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
12941 (*<smaxmin:code>v8hi3): Ditto.
12942 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
12943 (*<smaxmin:code>v16qi3): Ditto.
12944 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
12945 (*sse2_eq<mode>3): Ditto.
12946 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
12947 (*sse2_gt<mode>3): Ditto.
12948 (vcondv2di): Split out of vcond<mode>.
12949 (vconduv2di): Split out of vcondu<mode>.
12951 2011-04-11 Richard Guenther <rguenther@suse.de>
12953 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
12954 before calling tree_low_cst.
12956 2011-04-11 Richard Guenther <rguenther@suse.de>
12958 * stor-layout.c (layout_type): Compute all array index size operations
12959 in the original type.
12960 (initialize_sizetypes): Add comment.
12961 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
12963 2011-04-11 Joseph Myers <joseph@codesourcery.com>
12965 * common.opt (Tbss=, Tdata=, Ttext=): New options.
12967 2011-04-11 Martin Jambor <mjambor@suse.cz>
12969 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
12970 of cgraph_node, handle NULL return value.
12971 (cgraph_global_info): Likewise.
12972 (cgraph_rtl_info): Likewise.
12973 * tree-inline.c (estimate_num_insns): Likewise.
12974 * gimplify.c (unshare_body): Likewise.
12975 (unvisit_body): Likewise.
12976 (gimplify_body): Likewise.
12977 * predict.c (optimize_function_for_size_p): Likewise.
12978 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
12979 (call_may_clobber_ref_p_1): Likewise.
12980 * varasm.c (function_section_1): Likewise.
12981 (assemble_start_function): Likewise.
12983 2011-04-11 Martin Jambor <mjambor@suse.cz>
12985 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
12987 * final.c (rest_of_clean_state): Likewise.
12988 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
12989 * passes.c (pass_init_dump_file): Likewise.
12990 (execute_all_ipa_transforms): Likewise.
12991 (function_called_by_processed_nodes_p): Likewise.
12992 * predict.c (maybe_hot_frequency_p): Likewise.
12993 (probably_never_executed_bb_p): Likewise.
12994 (compute_function_frequency): Likewise.
12995 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
12996 (unnest_nesting_tree_1): Likewise.
12997 (lower_nested_functions): Likewise.
12998 * tree-optimize.c (execute_fixup_cfg): Likewise.
12999 (tree_rest_of_compilation): Likewise.
13000 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
13001 * tree-sra.c (ipa_early_sra): Likewise.
13002 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13003 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
13004 * ipa.c (record_cdtor_fn): Likewise.
13005 * ipa-inline.c (cgraph_early_inlining): Likewise.
13006 (compute_inline_parameters_for_current): Likewise.
13007 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
13008 * ipa-pure-const.c (local_pure_const): Likewise.
13009 * ipa-split.c (split_function): Likewise.
13010 (execute_split_functions): Likewise.
13011 * cgraphbuild.c (build_cgraph_edges): Likewise.
13012 (rebuild_cgraph_edges): Likewise.
13013 (cgraph_rebuild_references): Likewise.
13014 (remove_cgraph_callee_edges): Likewise.
13015 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
13016 (verify_cgraph_node): Likewise.
13017 (cgraph_analyze_functions): Likewise.
13018 (cgraph_preserve_function_body_p): Likewise.
13019 (save_inline_function_body): Likewise.
13020 (save_inline_function_body): Likewise.
13021 * tree-inline.c (copy_bb): Likewise.
13022 (optimize_inline_calls): Likewise.
13024 2011-04-11 Martin Jambor <mjambor@suse.cz>
13026 PR tree-optimization/48195
13027 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
13028 ipa_check_create_edge_args.
13029 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
13030 ipa_check_create_edge_args.
13031 * ipa-inline.c (inline_generate_summary): Do not call
13032 ipa_check_create_node_params and ipa_check_create_edge_args.
13033 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
13034 ipa_check_create_edge_args.
13036 2011-04-09 Anatoly Sokolov <aesok@post.ru>
13038 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
13040 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13041 * function.c (record_hard_reg_sets): Likewise.
13042 * ira.c (compute_regs_asm_clobbered): Likewise.
13043 * sched-deps.c (sched_analyze_1): Likewise.
13044 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
13046 2011-04-09 Xinliang David Li <davidxl@google.com>
13048 PR tree-optimization/PR48484
13049 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
13050 has_valid_pred lazily
13052 2011-04-09 Duncan Sands <baldrick@free.fr>
13054 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
13056 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
13058 * combine.c (combine_validate_cost): Adjust comments. Set registered
13059 cost of I0 to zero at the end, if any.
13061 2011-04-08 Xinliang David Li <davidxl@google.com>
13063 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
13064 to insane profile data.
13066 2011-04-08 Xinliang David Li <davidxl@google.com>
13068 * ipa-cp.c (ipcp_update_profiling): Correct
13069 negative scale factor due to insane profile data.
13071 2011-04-08 Xinliang David Li <davidxl@google.com>
13073 * final.c (dump_basic_block_info): New function.
13074 (final): Dump basic block.
13075 (final_scan_insn): Remove old dump.
13077 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
13080 * config.gcc (i386-*-freebsd): Disable unwind table generation for
13083 2011-04-08 Michael Matz <matz@suse.de>
13085 PR middle-end/48389
13086 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
13088 (rebuild_jump_labels): Call rebuild_jump_labels_1.
13089 * rtl.h (rebuild_jump_labels_chain): Declare.
13090 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
13091 insns inserted on edges.
13093 2011-04-08 Joseph Myers <joseph@codesourcery.com>
13095 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
13096 * config/arm/arm-arches.def: New.
13097 * config/arm/arm-opts.h: New.
13098 * config/arm/genopt.sh: New.
13099 * config/arm/arm-tables.opt: New (generated).
13100 * config/arm/arm.c (arm_handle_option, arm_target_help,
13101 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
13102 (all_architectures): Get most table contents from arm-arches.def.
13103 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
13104 arm_selected_tune here.
13105 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
13106 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
13107 (march=, mcpu=, mtune=): Use Enum and Var.
13108 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
13109 (arm.o): Update dependencies.
13111 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
13113 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
13115 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
13116 (write_typed_alloc_defns): Likewise.
13117 (main): Calls write_typed_alloc_defns with output_header.
13119 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
13121 PR inline-asm/48435
13122 * ira-color.c (setup_profitable_hard_regs): Add comments.
13123 Don't take prohibited hard regs into account.
13124 (setup_conflict_profitable_regs): Rename to
13125 get_conflict_profitable_regs.
13126 (check_hard_reg_p): Check prohibited hard regs.
13128 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
13130 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
13131 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
13132 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
13134 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13137 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
13138 move from floating point to shift amount register.
13139 (emit_move_sequence): Remove secondary reload support for floating
13140 point to shift amount amount register copies.
13141 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
13142 amount register copies.
13143 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
13144 register, return false if mode isn't a scalar integer mode.
13145 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
13147 2011-04-08 Richard Guenther <rguenther@suse.de>
13149 * gimple.c (gimple_call_flags): Remove kludge.
13151 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13153 * sel-sched.c (sel_region_init): Move call to
13154 sel_setup_region_sched_flags after setup_current_loop_nest.
13156 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
13158 PR rtl-optimization/48272
13159 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
13160 init_insn_reg_pressure_info. Adjust a caller.
13161 * sched-int.h (init_insn_reg_pressure_info): Declare.
13162 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
13163 when sched-pressure is enabled.
13165 2011-04-08 Richard Guenther <rguenther@suse.de>
13167 * gimple.c (gimple_set_modified): Do not queue calls to
13168 MODIFIED_NORETURN_CALLS here ...
13169 * tree-ssa-operands.c (update_stmt_operands): ... but here.
13171 2011-04-08 Richard Guenther <rguenther@suse.de>
13174 * toplev.c (lang_dependent_init): Do not open asm_out_file
13175 in WPA mode, nor perform debug machinery initialization.
13176 (finalize): Do not unlink asm_out_file in WPA mode.
13178 2011-04-08 Richard Guenther <rguenther@suse.de>
13180 * gimple.h (gimple_call_fntype): New function.
13181 (gimple_call_return_type): Use it.
13182 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
13183 * gimple-low.c (gimple_check_call_args): Likewise.
13184 * gimple.c (gimple_call_flags): Likewise.
13185 (gimple_call_arg_flags): Likewise.
13186 (gimple_call_return_flags): Likewise.
13187 * tree-cfg.c (verify_gimple_call): Likewise.
13188 (do_warn_unused_result): Likewise.
13189 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
13190 * value-prof.c (gimple_ic_transform): Fix fndecl check.
13192 2011-04-08 Dmitry Melnik <dm@ispras.ru>
13194 PR rtl-optimization/48235
13195 * sel-sched.c (code_motion_process_successors): Recompute the last
13196 insn in basic block if control flow changed.
13197 (code_motion_path_driver): Ditto. Recompute the first insn as well.
13198 Update condition for ilist_remove.
13200 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13202 PR rtl-optimization/48302
13203 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
13204 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
13205 it to record added preheader blocks.
13206 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
13207 on to sel_add_loop_preheaders.
13208 (sel_region_init): Move call to setup_current_loop_nest after
13211 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13214 * cfgloop.h (loop_has_exit_edges): New helper.
13215 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
13217 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
13218 that have no exit edges.
13220 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13222 PR rtl-optimization/48442
13223 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
13224 all callers. Adjust assert.
13226 2011-04-08 Jakub Jelinek <jakub@redhat.com>
13228 PR tree-optimization/48377
13229 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
13230 is_packed to true even for types with smaller TYPE_ALIGN than
13233 2011-04-08 Richard Guenther <rguenther@suse.de>
13236 * doc/tm.texi: Re-generate.
13238 2011-04-08 Wei Guozhi <carrot@google.com>
13241 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
13242 * config/arm/arm.c (arm_attr_length_push_multi): New function.
13243 * config/arm/arm.md (*push_multi): Change the length computation to
13246 2011-04-08 Anatoly Sokolov <aesok@post.ru>
13248 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
13249 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
13250 * doc/tm.texi: Regenerate.
13251 * system.h (ASM_OUTPUT_BSS): Poison.
13252 * varasm.c (asm_output_bss): Remove function.
13253 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
13255 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
13256 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
13257 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
13258 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13260 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13262 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13264 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13266 2011-04-07 Joseph Myers <joseph@codesourcery.com>
13268 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
13271 2011-04-07 Joseph Myers <joseph@codesourcery.com>
13273 * config/m68k/m68k.c (m68k_handle_option): Don't handle
13274 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
13275 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
13277 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13278 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
13279 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
13280 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
13281 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
13282 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
13283 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13284 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
13285 options. Don't map other m68k options manually. Don't handle
13286 old-style options as canonical.
13287 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13288 * doc/install.texi (m68k-*-*): Document binutils version requirement.
13290 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
13292 * basic-block.h (force_nonfallthru): Move to...
13293 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
13294 (force_nonfallthru): ...here.
13295 * cfghooks.c (force_nonfallthru): New function.
13296 * cfgrtl.c (force_nonfallthru): Rename into...
13297 (rtl_force_nonfallthru): ...this.
13298 (commit_one_edge_insertion): Do not set AUX field.
13299 (commit_edge_insertions): Do not discover new basic blocks.
13300 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
13301 (cfg_layout_rtl_cfg_hooks): Likewise.
13302 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
13303 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
13304 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
13306 2011-04-07 Anatoly Sokolov <aesok@post.ru>
13308 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13311 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
13313 * config/i386/sse.md: Update copyright year.
13314 (avxcvtvecmode): Remove.
13315 (sse_movhlps): Merge with *avx_movhlps.
13316 (sse_movlhps): Merge with *avx_movlhps.
13317 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
13318 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
13319 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
13320 (sse_loadhps): Merge with *avx_loadhps.
13321 (sse_storelps): Merge with *avx_storelps.
13322 (sse_loadlps): Merge with *avx_loadlps.
13323 (sse_movss): Merge with *avx_movss.
13324 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
13325 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
13326 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
13327 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
13328 (vec_set<mode>_0): Ditto.
13329 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
13330 (sse4_1_insertps): Merge with *avx_insertps.
13331 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
13332 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
13333 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
13334 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
13335 (sse2_storehpd): Merge with *avx_storehpd.
13336 (sse2_loadhpd): Merge with *avx_loadhpd.
13337 (sse2_loadlpd): Merge with *avx_loadlpd.
13338 (sse2_movsd): Merge with *avx_movsd.
13339 (*vec_concatv2df): Merge with *vec_concatv2df.
13341 2011-04-07 Jakub Jelinek <jakub@redhat.com>
13344 * combine.c (combine_instructions): Add last_combined_insn,
13345 update it if insn is after it, pass it to all try_combine calls.
13346 (try_combine): Add last_combined_insn parameter, pass it instead of
13347 i3 to propagate_for_debug.
13349 2011-04-07 Nick Clifton <nickc@redhat.com>
13351 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
13352 to handle MDR <-> data register transfers.
13353 (movhi_internal): Likewise.
13355 2011-04-07 Alan Modra <amodra@gmail.com>
13357 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
13358 previous stack info.
13360 2011-04-07 Tom de Vries <tom@codesourcery.com>
13363 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
13364 flow_find_cross_jump. Swap variables to implement backward replacement.
13365 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
13367 2011-04-07 Tom de Vries <tom@codesourcery.com>
13370 * cfgcleanup.c (walk_to_nondebug_insn): New function.
13371 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
13373 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
13374 src1 or src2. Redirect edges to the last basic block. Update
13375 frequency and count on multiple basic blocks in case of fallthru.
13377 2011-04-07 Tom de Vries <tom@codesourcery.com>
13380 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
13382 (old_insns_match_p): Change return type. Replace return false/true
13383 with return dir_none/dir_both. Use can_replace_by.
13384 (flow_find_cross_jump): Add dir_p parameter. Init replacement
13385 direction from dir_p. Register replacement direction in dir, last_dir
13386 and afterlast_dir. Handle new return type of old_insns_match_p using
13387 merge_dir. Return replacement direction in dir_p.
13388 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
13389 return type of old_insns_match_p.
13390 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
13391 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
13392 flow_find_cross_jump.
13393 * basic-block.h (enum replace_direction): New type.
13394 (flow_find_cross_jump): Add parameter to declaration.
13396 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
13398 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
13399 (AVXMODEDCVTPS2DQ): Ditto.
13400 (VEC_FLOAT_MODE): Ditto.
13401 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
13402 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13403 (<any_logic:code><mode>3): Use VF mode iterator.
13404 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
13405 Use VF mode iterator.
13406 (copysign<mode>3): Use VF mode iterator.
13407 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
13408 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13409 (*<any_logic:code><MODEF:mode>3): Merge with
13410 *avx_<any_logic:code><MODEF:mode>3.
13411 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
13412 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
13413 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
13414 (avx_cvtdq2ps<avxmodesuffix>): Remove.
13415 (sse2_cvtdq2ps): Use %v modifier.
13416 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
13417 (avx_cvtps2dq<avxmodesuffix>): Remove.
13418 (sse2_cvtps2dq): Use %v modifier.
13419 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
13420 (avx_cvttps2dq<avxmodesuffix>): Remove.
13421 (sse2_cvttps2dq): Use %v modifier.
13422 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
13423 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
13424 (sse2_cvtsd2siq): Fix insn template.
13425 (sse2_cvtsd2siq_2): Ditto.
13426 (sse2_cvttsd2siq): Ditto.
13427 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
13428 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
13430 2011-04-06 Joseph Myers <joseph@codesourcery.com>
13432 * gcov-io.c: Use GCC Runtime Library Exception.
13434 2011-04-06 Jakub Jelinek <jakub@redhat.com>
13437 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
13438 as base_reg whatever register reg has been eliminated to, instead
13439 of hardcoding STACK_POINTER_REGNUM.
13441 2011-04-06 Joseph Myers <joseph@codesourcery.com>
13443 * doc/tm.texi.in: Document C target hooks as separate from general
13445 * doc/tm.texi: Regenerate.
13446 * genhooks.c (struct hook_desc): Add docname field.
13447 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
13449 (hook_array): Include c-target.def.
13450 (emit_documentation): Use docname field in output.
13451 (emit_init_macros): Take docname argument. Only emit definitions
13452 for hooks matching docname.
13453 (main): Expect additional arguments in all cases. Pass argument
13454 to emit_init_macros.
13455 * target.def: Move initial macro definitions and comments to
13456 target-hooks-macros.h.
13457 (gcc_targetcm): Move to c-family/c-target.def.
13458 * target.h (targetcm): Move declaration to c-family/c-target.h.
13459 * targhooks.c (default_handle_c_option): Move to
13461 * targhooks.h (default_handle_c_option): Move declaration to
13462 c-family/c-common.h.
13463 * target-hooks-macros.h: New file.
13464 * config.gcc (target_has_targetcm): Define and use to add to
13465 c_target_objs and cxx_target_objs.
13466 * config/default-c.c: New file.
13467 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
13468 of target.h and target-def.h.
13469 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
13470 (darwin_objc_construct_string, darwin_cfstring_ref_p,
13471 darwin_check_cfstring_format_arg): Make static.
13472 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13473 TARGET_STRING_OBJECT_REF_TYPE_P,
13474 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
13475 * config/darwin-protos.h (darwin_objc_construct_string,
13476 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
13478 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13479 TARGET_STRING_OBJECT_REF_TYPE_P,
13480 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
13481 * config/t-darwin (darwin-c.o): Update dependencies.
13482 * system.h (TARGET_HAS_TARGETCM): Poison.
13483 * Makefile.in (TARGET_H): Update.
13484 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
13485 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
13486 (default-c.o): New target.
13487 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
13488 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
13489 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
13491 (build/genhooks.o): Update dependencies.
13493 2011-04-06 Richard Guenther <rguenther@suse.de>
13495 * ipa-inline.c (enum inlining_mode): Remove.
13496 (cgraph_flatten): Use some other token.
13497 (cgraph_edge_early_inlinable_p): New function, split out from ...
13498 (cgraph_perform_always_inlining): New function, split out from ...
13499 (cgraph_decide_inlining_incrementally): ... here.
13500 (cgraph_mark_inline_edge): Adjust.
13501 (cgraph_early_inlining): Re-structure.
13502 (pass_early_inline): Require SSA form.
13504 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
13505 Julian Brown <julian@codesourcery.com>
13506 Mark Shinwell <shinwell@codesourcery.com>
13508 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
13509 LO_REGS only for Thumb-1.
13510 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
13511 be used in short instructions when optimising for size on Thumb-2.
13513 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
13515 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
13516 associated with user returns to be preserved.
13518 2011-04-06 Tristan Gingold <gingold@adacore.com>
13520 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
13521 symbol_queue_size, DBXOUT_DECR_NESTING,
13522 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
13523 if XCOFF_DEBUGGING_INFO.
13525 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
13527 * config/i386/i386.md (attribute isa): New.
13528 (attribute enabled): New.
13529 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
13530 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
13531 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
13532 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
13533 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
13534 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13535 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
13536 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
13538 * config/i386/sse.md (VF): New mode iterator.
13542 (SSEMODEF4): Remove.
13543 (attribute sse): Handle V8SF and V4DF modes.
13544 (<absneg:code><mode>2): Use VF mode iterator.
13545 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
13547 (<plusminus_insn><mode>3): Use VF mode iterator.
13548 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
13549 Use VF mode iterator.
13550 (<sse>_vm<plusminus_insn><mode>3): Merge with
13551 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
13552 (mul<mode>3): Use VF mode iterator.
13553 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
13554 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
13556 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
13557 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
13558 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
13559 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
13561 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
13562 Use VF1 mode iterator.
13563 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
13564 (sqrt<VF2:mode>2): New expander.
13565 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
13566 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
13567 and sqrtv2df2. Use VF mode iterator.
13568 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
13570 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
13571 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
13572 Use VF1 mode iterator.
13573 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
13574 (<smaxmin:code><mode>3): Use VF mode iterator.
13575 (*<smaxmin:code><mode>3_finite): Merge with
13576 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
13577 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13578 (<sse>_vm<smaxmin:code><mode>2): Merge with
13579 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
13580 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
13582 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
13584 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
13585 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
13586 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
13587 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
13588 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
13590 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
13591 Use VF_128 mode iterator.
13592 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
13594 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
13595 VF_128 mode iterator.
13596 (vcond<mode>): Use VF mode iterator.
13597 * config/i386/predicates.md (sse_comparison_operator): Merge with
13598 avx_comparison_float_operator. Do not declare as special_predicate.
13599 * config/i386/i386.c (struct builtin_description): Update for renamed
13601 (ix86_expand_args_builtin): Ditto.
13602 (ix86_expand_sse_compare_mask): Ditto.
13604 2011-04-06 Richard Guenther <rguenther@suse.de>
13606 * tree-inline.c (estimate_num_insns): For calls simply account
13607 for all passed arguments and a used return value.
13609 2011-04-06 Richard Guenther <rguenther@suse.de>
13611 PR tree-optimization/47663
13612 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
13613 call_stmt_time fields.
13614 (cgraph_edge_inlinable_p): Declare.
13615 (cgraph_edge_recursive_p): New inline function.
13616 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
13617 (cgraph_clone_edge): Copy it.
13618 * ipa-inline.c (cgraph_estimate_edge_time): New function.
13619 Account for call stmt time.
13620 (cgraph_estimate_time_after_inlining): Take edge argument.
13621 (cgraph_estimate_edge_growth): Account call stmt size.
13622 (cgraph_estimate_size_after_inlining): Take edge argument.
13623 (cgraph_mark_inline_edge): Adjust.
13624 (cgraph_check_inline_limits): Likewise.
13625 (cgraph_recursive_inlining_p): Remove.
13626 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
13627 (cgraph_decide_recursive_inlining): Take edge argument and
13629 (cgraph_decide_inlining_of_small_functions): Do not avoid
13630 diags for recursive inlining here.
13631 (cgraph_flatten): Adjust.
13632 (cgraph_decide_inlining_incrementally): Likewise.
13633 (estimate_function_body_sizes): Remove call cost handling.
13634 (compute_inline_parameters): Initialize caller edge call costs.
13635 (cgraph_estimate_edge_growth): New function.
13636 (cgraph_estimate_growth): Use it.
13637 (cgraph_edge_badness): Likewise.
13638 (cgraph_check_inline_limits): Take an edge argument.
13639 (cgraph_decide_inlining_of_small_functions): Adjust.
13640 (cgraph_decide_inlining): Likewise.
13641 * tree-inline.c (estimate_num_insns): Only account for call
13642 return value if it is used.
13643 (expand_call_inline): Avoid diagnostics on recursive inline
13645 * lto-cgraph.c (lto_output_edge): Output edge call costs.
13646 (input_edge): Input edge call costs.
13648 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13650 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
13652 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
13654 * doc/invoke.texi (Spec Files): Fix typo.
13656 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
13658 * profile.c (branch_prob): Move declaration of local variable. Remove
13659 obsolete ??? comment. Expand the location explicitly instead of using
13660 the LOCATION_FILE and LOCATION_LINE macros.
13662 2011-04-06 Wei Guozhi <carrot@google.com>
13665 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
13666 (arm_cond_branch): Likewise.
13667 (arm_cond_branch_reversed): Likewise.
13668 (arm_jump): Likewise.
13669 (push_multi): Likewise.
13670 * config/arm/constraints.md (Py): New constraint.
13672 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13675 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
13677 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
13678 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
13679 #ifdef DBX_DEBUGGING_INFO.
13681 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
13684 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
13685 if old and new states differ.
13687 2011-04-05 Joseph Myers <joseph@codesourcery.com>
13689 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
13690 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
13691 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13692 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
13693 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
13694 mcfv4e): Use Alias.
13695 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
13696 ColdFire options to -mcpu= options.
13698 2011-04-05 Jeff Law <law@redhat.com>
13700 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
13701 check if BB is a successor of LOOP->header and return
13702 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
13704 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
13706 * cprop.c (struct reg_use): Remove.
13707 (reg_use_table): Make an array of RTX.
13708 (find_used_regs, constprop_register, local_cprop_pass,
13709 bypass_block): Simplify users of reg_use_table.
13710 (cprop_insn): Likewise. Iterate if copy propagation succeeded
13711 on one of the uses found by find_used_regs.
13713 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13716 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
13719 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13721 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
13723 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
13725 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
13727 PR middle-end/48441
13728 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
13730 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13732 * combine.c: Include obstack.h.
13733 (struct insn_link): Define.
13734 (uid_log_links): Adjust type.
13735 (FOR_EACH_LOG_LINK): New macro.
13736 (insn_link_obstack): Declare.
13737 (alloc_insn_link): Define.
13738 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
13739 type of link variables.
13740 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
13741 (try_combine, record_promoted_values, distribute_notes): Likewise.
13742 (distribute_links): Likewise. Tweak prototype.
13743 (clear_log_links): Delete.
13744 (adjust_for_new_dest): Call alloc_insn_link.
13745 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
13747 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13749 * gcse.c (modify_mem_list): Convert to an array of VECs.
13750 (canon_modify_mem_list, compute_transp): Tweak formatting.
13751 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
13752 (load_killed_in_block_p): Likewise.
13753 (record_last_mem_set_info): Likewise.
13754 (clear_modify_mem_tables): Likewise.
13756 2011-04-05 Tom de Vries <tom@codesourcery.com>
13758 PR middle-end/48461
13759 * function.c (emit_use_return_register_into_block): Only define if
13762 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
13764 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
13766 2011-04-05 Joseph Myers <joseph@codesourcery.com>
13768 * config/rx/rx-opts.h: New.
13769 * config/rx/rx.c (rx_cpu_type): Remove.
13770 (rx_handle_option): Don't assert that global structures are in
13771 use. Access variables via opts pointer. Defer most handling of
13772 OPT_mint_register_. Use error_at.
13773 (rx_option_override): Handle deferred OPT_mint_register_ here.
13774 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
13775 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
13776 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
13777 (rx_cpu_types): New Enum and EnumValue entries.
13778 (mint-register=): Use Defer and use Var accordingly.
13780 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13782 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
13783 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
13784 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
13786 (debug_free_queue, debug_nesting, symbol_queue_index):
13788 * dbxout.c: ...to here. Make static.
13790 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13792 * gcse.c (modify_pair): Define. Define a VEC of it.
13793 (canon_modify_mem_list): Convert to an array of VECs.
13794 (free_insn_expr_list_list): Delete.
13795 (clear_modify_mem_tables): Call VEC_free instead.
13796 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
13797 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
13798 (canon_list_insert, compute_transp): Likewise.
13800 2011-04-05 Tom de Vries <tom@codesourcery.com>
13803 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
13806 2011-04-05 Tom de Vries <tom@codesourcery.com>
13809 * function.c (emit_use_return_register_into_block): New function.
13810 (thread_prologue_and_epilogue_insns): Use
13811 emit_use_return_register_into_block.
13813 2011-04-05 Tom de Vries <tom@codesourcery.com>
13816 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
13819 2011-04-05 Tom de Vries <tom@codesourcery.com>
13821 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
13823 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
13825 * config/arm/arm.md (define_constants for unspec): Replace with
13827 (define_constants for unspecv): Replace with define_c_enum.
13828 * config/arm/neon.md (define_constants for unspec): Replace with
13831 2011-04-04 Richard Henderson <rth@redhat.com>
13834 * dwarf2out.c (output_line_info): Always emit line info from
13835 at least one section.
13836 (dwarf2out_init): Create text_section_line_info here ...
13837 (set_cur_line_info_table): ... not here.
13839 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
13842 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
13845 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
13847 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
13849 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
13850 (expr_equiv_p): Remove.
13851 (insert_set_in_table): Look at <dest, src> pair instead of expr.
13852 (hash_scan_set): Update call to insert_set_in_table.
13853 (dump_hash_table): Dump <dest, src> pair.
13854 (lookup_set): Simplify. Lookup <dest, src> pair.
13855 (compute_transp): Remove, fold heavily simplified code into...
13856 (compute_local_properties): ...here. Expect COMP and TRANSP
13858 (find_avail_set): Take set directly from struct expr.
13859 (find_bypass-set): Likewise.
13860 (bypass_block): Likewise.
13861 (cprop_insn): Likewise. Remove redundant INSN_P test.
13863 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
13864 checks on form of COND from find_implicit_sets to here.
13865 (find_implicit_sets): Cleanup control flow. Split critical edges
13866 if it exposes implicit sets. Allocate/resize implicit_sets as
13868 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
13869 changed something. Run df_analyze after find_implicit_sets if any
13870 edges were split. Do not allocate implicit_sets here.
13872 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
13873 (gcse_obstack): Renamed to cprop_obstack.
13874 (GNEW, GNEWVEC, GNEWVAR): Remove.
13876 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
13877 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
13878 (gcse_alloc): Likewise, and rename to cprop_alloc.
13879 (alloc_gcse_men, free_gcse_mem): Remove.
13880 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
13881 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
13882 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
13884 * cprop.c (oprs_not_set_p): Remove.
13885 (mark_set, mark_clobber): Remove.
13886 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
13887 (reg_not_set_p): New function.
13888 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
13889 (cprop_insn): Likewise.
13890 (cprop_jump): Use FOR_EACH_EDGE.
13892 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
13895 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
13896 (rank_for_schedule): Use scheduled_insns vector instead of
13897 last_scheduled_insn.
13898 (ok_for_early_queue_removal): Likewise.
13899 (queue_to_ready): Search forward in nonscheduled_insns_begin if
13901 (choose_ready): Likewise.
13902 (commit_schedule): Use VEC_iterate.
13903 (schedule_block): Initialize nonscheduled_insns_begin. If we have
13904 a dbg_cnt, use it and ensure the first insn is in the ready list.
13905 (haifa_sched_init): Allocate scheduled_insns.
13906 (sched_extend_ready_list): Don't allocate it; reserve space.
13907 (haifa_sched_finish): Free it.
13909 2011-04-04 Joseph Myers <joseph@codesourcery.com>
13911 * optc-gen.awk: Always remove type from Variable entry before
13912 recording in var_seen.
13914 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
13916 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
13917 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
13918 call to tidy_fallthru_edges.
13920 2011-04-04 Joseph Myers <joseph@codesourcery.com>
13922 * doc/options.texi (ToLower): Document.
13923 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
13924 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
13925 * opts.h (cl_option): Add cl_tolower field.
13926 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
13927 arguments with lowercase strings.
13928 * config/rx/rx.opt (mcpu=): Add ToLower.
13929 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
13932 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
13934 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
13936 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
13938 * config/vax/vax.c: Include reload.h.
13940 2011-04-04 Anatoly Sokolov <aesok@post.ru>
13942 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
13943 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13944 (sparc_preferred_reload_class): New function.
13946 2011-04-04 Jakub Jelinek <jakub@redhat.com>
13949 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
13950 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
13952 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
13954 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
13955 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
13957 2011-04-03 Anatoly Sokolov <aesok@post.ru>
13959 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
13960 (ASM_OUTPUT_ALIGNED_BSS): Define.
13962 2011-04-03 Michael Matz <matz@suse.de>
13964 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
13965 and next_slot members.
13966 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
13967 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
13968 (lto_streamer_cache_append): Declare.
13969 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
13970 unsigned index, remove offset parameter, ensure that we append
13971 or update existing entries.
13972 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
13973 parameter, update next_slot for append.
13974 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
13976 (lto_streamer_cache_insert_at): Likewise.
13977 (lto_streamer_cache_append): New function.
13978 (lto_streamer_cache_lookup): Use unsigned index.
13979 (lto_streamer_cache_get): Likewise.
13980 (lto_record_common_node): Don't test tree_node_can_be_shared.
13981 (preload_common_node): Adjust call to lto_streamer_cache_insert.
13982 (lto_streamer_cache_delete): Don't free offsets member.
13983 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
13984 (lto_output_string_with_length): Use lto_output_data_stream.
13985 (lto_output_tree_header): Remove ix parameter, don't write it.
13986 (lto_output_builtin_tree): Likewise.
13987 (lto_write_tree): Adjust callers to above, don't track and write
13988 offset, write unsigned index.
13989 (output_unreferenced_globals): Don't emit all global vars.
13990 (write_global_references): Use unsigned indices.
13991 (lto_output_decl_state_refs): Likewise.
13992 (write_symbol): Likewise.
13993 * lto-streamer-in.c (lto_input_chain): Move earlier.
13994 (input_function): Use unsigned index.
13995 (input_alias_pairs): Don't read and then ignore all global vars.
13996 (lto_materialize_tree): Remove ix_p parameter, don't read index,
13997 don't pass it back, use lto_streamer_cache_append.
13998 (lto_register_var_decl_in_symtab): Use unsigned index.
13999 (lto_register_function_decl_in_symtab): Likewise.
14000 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
14002 (lto_get_builtin_tree): Don't read index, use
14003 lto_streamer_cache_append.
14004 (lto_read_tree): Adjust call to lto_materialize_tree.
14006 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
14007 don't use function calls in arguments to MIN.
14009 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
14012 * gimple.c (gimple_type_leader_entry): Mark deletable.
14014 2011-04-03 Alan Modra <amodra@gmail.com>
14016 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
14018 2011-04-03 Michael Matz <matz@suse.de>
14020 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
14022 * tree.h (tree_decl_non_common.vindex): Adjust comment.
14024 2011-04-03 Michael Matz <matz@suse.de>
14026 * cgraphbuild.c (record_reference): Canonicalize constructor values.
14027 * gimple-fold.c (canonicalize_constructor_val): Accept being called
14028 without function context.
14029 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
14030 current_function_decl and cfun.
14032 2011-04-03 Michael Matz <matz@suse.de>
14034 * tree.c (decl_init_priority_insert): Don't create entry for
14036 (decl_fini_priority_insert): Ditto.
14037 (fields_compatible_p, find_compatible_field): Remove.
14038 * tree.h (fields_compatible_p, find_compatible_field): Remove.
14039 * gimple.c (gimple_compare_field_offset): Adjust block comment.
14041 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
14043 * combine.c (try_combine): Remove useless local variable.
14045 2011-04-03 Richard Guenther <rguenther@suse.de>
14046 Ira Rosen <ira.rosen@linaro.org>
14048 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
14049 non-variable offsets and compare the remaining bases of the two
14050 accesses instead of looking for exact same data-ref.
14052 2011-04-02 Kai Tietz <ktietz@redhat.com>
14055 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
14057 * i386.c (ix86_is_msabi_thiscall): New helper function.
14058 (ix86_is_type_thiscall): New helper function.
14059 (ix86_comp_type_attributes): Handle thiscall for method-functions
14061 (init_cumulative_args): Likewise.
14062 (find_drap_reg): Likewise.
14063 (ix86_static_chain): Likewise.
14064 (x86_this_parameter): Likewise.
14065 (x86_output_mi_thunk): Likewise.
14067 2011-04-01 Olivier Hainque <hainque@adacore.com>
14068 Nicolas Setton <setton@adacore.com>
14069 Eric Botcazou <ebotcazou@adacore.com>
14071 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
14072 (add_gnat_descriptive_type_attribute): New function.
14073 (gen_array_type_die): Call it.
14074 (gen_enumeration_type_die): Likewise.
14075 (gen_struct_or_union_type_die): Likewise.
14076 (modified_type_die): Likewise.
14077 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
14078 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
14079 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
14081 2011-04-01 Jakub Jelinek <jakub@redhat.com>
14084 * dwarf2out.c (resolve_addr): Don't call force_decl_die
14085 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
14088 2011-03-17 Richard Guenther <rguenther@suse.de>
14091 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14092 origin for decls in other ltrans units.
14093 (input_varpool_node): Likewise.
14095 2011-04-01 Jakub Jelinek <jakub@redhat.com>
14097 PR middle-end/48335
14098 * expr.c (expand_assignment): Handle all possibilities
14099 if TO_RTX is CONCAT.
14100 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
14101 (store_split_bit_field): If SUBREG_REG (op0) or
14102 op0 itself has smaller mode than word, return it
14103 for offset 0 and const0_rtx for out-of-bounds stores.
14104 If word is const0_rtx, skip it.
14106 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
14108 * config/h8300/h8300.c (print_operand_address): Rename to...
14109 (h8300_print_operand_address): ...this. Make static. Adjust comments.
14110 Call h8300_print_operand and h8300_print_operand_address instead of
14111 print_operand and print_operand_address. Declare.
14112 (print_operand): Renake to...
14113 (h8300_print_operand): ...this. Make static. Adjust comments.
14114 Call h8300_print_operand instead of print_operand. Declare.
14115 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
14116 (h8300_register_move_cost): Likewise.
14117 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
14118 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
14119 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
14120 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
14121 * config/h8300/h8300-protos.h (print_operand): Delete.
14122 (print_operand_address): Delete.
14124 2011-04-01 Richard Henderson <rth@redhat.com>
14127 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
14128 in strict mode before dwarf4. Re-order tests to early out
14129 before switching sections.
14131 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
14133 * config/h8300/constraints.md: New file.
14134 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
14135 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
14136 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
14137 * config/h8300/predicates.md (bit_operand): Likewise.
14138 (incdec_operand): Use satisfies_constraint_M and
14139 satisfies_constraint_O. Don't use C code block.
14140 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
14141 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
14142 (compute_mov_length): Use satisfies_constraint_G.
14143 (fix_bit_operand): Use satisfies_constraint_U.
14144 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
14145 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
14146 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
14147 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
14148 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
14149 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
14150 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14151 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
14152 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
14153 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
14154 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
14155 (EXTRA_MEMORY_CONSTRAINT): Delete.
14157 2011-04-01 Andrew Pinski <pinskia@gmail.com>
14158 Michael Meissner <meissner@linux.vnet.ibm.com>
14161 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
14162 operands, as per the specifications.
14164 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
14165 (vec_extract_evenv4sf): Ditto.
14166 (vec_extract_evenv8hi): Ditto.
14167 (vec_extract_evenv16qi): Ditto.
14168 (vec_extract_oddv4si): Ditto.
14170 2011-03-31 Mark Wielaard <mjw@redhat.com>
14172 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
14173 high_pc attribute if the CU has no associated code. Only output
14174 DW_AT_entry_pc for CU if not generating strict dwarf and
14177 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
14179 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
14180 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
14182 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
14183 * final.c (final_start_function): Call the new function rather
14184 than using a NULL argument for dwarf2out_frame_debug.
14186 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
14187 that contains the prologue.
14189 * haifa-sched.c (queue_insn): New arg REASON. All callers
14190 changed. Print it in debugging output.
14192 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
14194 * sched-ebb.c (begin_schedule_ready): Remove second argument.
14195 Split most of the code into...
14196 (begin_move_insn): ... here. New function.
14197 (ebb_sched_info): Add a pointer to it.
14198 * haifa-sched.c (scheduled_insns): New static variable.
14199 (sched_extend_ready_list): Allocate it.
14200 (schedule_block): Use it to record the order of scheduled insns.
14201 Perform RTL changes to move insns only after all scheduling
14202 decisions have been made.
14203 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
14204 begin_move_insn field.
14205 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
14206 * sched-int.h (struct haifa_sched_info): Remove second argument
14207 from begin_schedule_ready hook. Add new member begin_move_insn.
14208 * sched-rgn.c (begin_schedule_ready): Remove second argument.
14209 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
14211 * haifa-sched.c (prune_ready_list): New function, broken out of
14213 (schedule_block): Use it.
14215 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14217 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
14219 2011-04-01 Kai Tietz <ktietz@redhat.com>
14221 * config.gcc (*-*-mingw*): Allow as option the
14222 posix threading model.
14223 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
14224 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
14226 (CPP_SPEC): Add pthread/no-pthread handling.
14227 (LIB_SPEC): Likewise.
14228 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
14229 (LIB_SPEC): Likewise.
14230 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
14231 flag to pass -pthread option for shared libgcc build.
14232 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
14233 for shared libgcc build.
14234 * config/i386/t-mingw-pthread: New file.
14235 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
14236 New define to enable use of library pthread by default.
14237 * config/i386/mingw.opt (pthread): New driver option.
14238 (no-pthread): New driver option.
14239 * config/i386/cygming.opt: Make sure trailing empty line is retained.
14240 * config/i386/mingw-w64.opt: Likewise.
14242 2011-04-01 Gary Funck <gary@intrepid.com>
14244 * c-decl.c (grokdeclarator): Fix formatting.
14246 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14248 * expr.c (emit_block_move_via_movmem): Use n_generator_args
14249 instead of n_operands.
14250 (set_storage_via_setmem): Likewise.
14251 * optabs.c (maybe_gen_insn): Likewise.
14252 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
14253 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
14254 (mips_expand_builtin_direct): Likewise.
14255 * config/spu/spu.c (expand_builtin_args): Likewise.
14257 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14259 * recog.h (insn_data_d): Add n_generator_args.
14260 * genoutput.c (data): Likewise.
14261 (output_insn_data): Print it.
14262 (max_opno, num_dups): Delete.
14263 (scan_operands): Just fill in "d->operand[...]".
14264 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
14266 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14268 * gensupport.h (pattern_stats): New structure.
14269 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
14270 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
14271 (max_operand_1, max_operand_vec): Delete.
14272 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
14274 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
14276 * emit-rtl.c (emit_pattern_after_setloc): New function.
14277 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
14278 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
14279 (emit_pattern_after): New function.
14280 (emit_insn_after, emit_jump_insn_after): Call it.
14281 (emit_call_insn_after, emit_debug_insn_after): Likewise.
14282 (emit_pattern_before_setloc): New function.
14283 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
14284 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
14286 (emit_pattern_before): New function.
14287 (emit_insn_before, emit_jump_insn_before): Call it.
14288 (emit_call_insn_before, emit_debug_insn_before): Likewise.
14290 2011-03-31 Richard Henderson <rth@redhat.com>
14292 * dwarf2out.c (dw_separate_line_info_ref): Remove.
14293 (dw_separate_line_info_entry): Remove.
14294 (enum dw_line_info_opcode): New.
14295 (dw_line_info_entry): Use it.
14296 (dw_line_info_table, dw_line_info_table_p): New.
14297 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
14298 (line_info_table, line_info_label_num): Remove.
14299 (line_info_table_in_use): Remove.
14300 (separate_line_info_table): Remove.
14301 (separate_line_info_table_allocated): Remove.
14302 (separate_line_info_table_in_use): Remove.
14303 (LINE_INFO_TABLE_INCREMENT): Remove.
14304 (line_info_label_num): New.
14305 (cur_line_info_table): New.
14306 (text_section_line_info, cold_text_section_line_info): New.
14307 (separate_line_info): New.
14308 (SEPARATE_LINE_CODE_LABEL): Remove.
14309 (print_dwarf_line_table): Remove.
14310 (debug_dwarf): Don't dump it.
14311 (output_one_line_info_table): New.
14312 (output_line_info): Use it.
14313 (new_line_info_table): New.
14314 (set_cur_line_info_table): New.
14315 (dwarf2out_switch_text_section): Use it.
14316 (dwarf2out_begin_function): Likewise.
14317 (push_dw_line_info_entry): New.
14318 (dwarf2out_source_line): Rewrite for new line info tables.
14319 (dwarf2out_init): Remove dead initailizations.
14321 2011-03-31 Joseph Myers <joseph@codesourcery.com>
14323 * opts.h (cl_option): Add comments to fields. Add bit-fields for
14325 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
14326 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
14327 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
14328 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
14329 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
14330 * opt-functions.awk (flag_init, switch_bit_fields): New.
14331 (switch_flags): Don't handle flags moved to bit-fields. Don't
14332 generate CL_MISSING_OK or CL_SAVE.
14333 * optc-gen.awk: Update to generate bit-field output as well as
14335 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
14336 bit-field instead of CL_REJECT_DRIVER flag.
14337 * opts-common.c (generate_canonical_option,
14338 decode_cmdline_option): Use bit-fields instead of CL_* flags.
14339 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
14340 instead of CL_REJECT_NEGATIVE flag.
14341 * toplev.c (print_switch_values): Use cl_report bit-field instead
14344 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
14346 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
14347 a zero minimum index only if it is redundant.
14349 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
14351 PR rtl-optimization/48381
14352 * ira-color.c (assign_hard_reg): Use hard reg set intersection
14353 instead of ira_class_hard_reg_index for calculating conflicting
14356 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
14358 * cprop.c: Clean up hash table building.
14359 (reg_avail_info): Remove.
14360 (oprs_available_p): Remove.
14361 (record_last_reg_set_info): Remove.
14362 (record_last_set_info): Remove.
14363 (reg_available_p): New function.
14364 (gcse_constant_p): Do not treat unfolded conditions as constants.
14365 (make_set_regs_unavailable): New function.
14366 (hash_scan_set): Simplify with new reg_available_p.
14367 (compute_hash_table_work): Traverse insns stream only once.
14368 Do not compute reg_avail_info. Traverse insns in reverse order.
14369 Record implicit sets after recording explicit sets from the block.
14371 2011-03-31 Michael Matz <matz@suse.de>
14373 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
14375 2011-03-31 Anatoly Sokolov <aesok@post.ru>
14377 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
14378 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
14379 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14380 (h8300_mode_dependent_address_p): New function.
14381 (h8300_get_index): Make static.
14383 2011-03-31 Jeff Law <law@redhat.com>
14385 * reload1.c (elimination_effects): Fix typo in recent change.
14387 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
14388 typo potentially leading to null pointer dereference.
14390 * caller-save.c (new_saved_hard_reg): Eliminate return value.
14391 (setup_save_areas): Corresponding changes to avoid useless
14394 * jump.c (reversed_comparison_code_parts): Avoid successive return
14395 statements when REVERSE_CONDITION is defined.
14397 * expr.c (expand_assignment): Avoid useless assignments.
14398 (expand_expr_real_1): Likewise.
14399 (expand_expr_real_2): Avoid useless statements.
14401 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
14403 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14405 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
14408 * stmt.c (expand_expr_stmt): Avoid useless assignment.
14410 2011-03-31 Joseph Myers <joseph@codesourcery.com>
14413 * doc/tm.texi.in (TARGET_VERSION): Remove.
14414 * doc/tm.texi: Regenerate.
14415 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
14416 * collect2.c (main): Don't use TARGET_VERSION.
14417 * mips-tdump.c (main): Don't use TARGET_VERSION.
14418 * mips-tfile.c (main): Don't use TARGET_VERSION.
14419 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
14420 * config/rs6000/vxworksae.h: Remove.
14421 * config/alpha/alpha.h (TARGET_VERSION): Remove.
14422 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
14423 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
14424 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
14425 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14426 * config/arm/arm.h (TARGET_VERSION): Remove.
14427 * config/arm/coff.h (TARGET_VERSION): Remove.
14428 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
14429 * config/arm/elf.h (TARGET_VERSION): Remove.
14430 * config/arm/freebsd.h (TARGET_VERSION): Remove.
14431 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
14432 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
14433 * config/arm/pe.h (TARGET_VERSION): Remove.
14434 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
14435 * config/arm/semi.h (TARGET_VERSION): Remove.
14436 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
14437 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
14438 * config/arm/vxworks.h (TARGET_VERSION): Remove.
14439 * config/avr/avr.h (TARGET_VERSION): Remove.
14440 * config/bfin/bfin.h (TARGET_VERSION): Remove.
14441 * config/fr30/fr30.h (TARGET_VERSION): Remove.
14442 * config/frv/frv.h (TARGET_VERSION): Remove.
14443 * config/h8300/h8300.h (TARGET_VERSION): Remove.
14444 * config/i386/cygwin.h (TARGET_VERSION): Remove.
14445 * config/i386/darwin.h (TARGET_VERSION): Remove.
14446 * config/i386/darwin64.h (TARGET_VERSION): Remove.
14447 * config/i386/djgpp.h (TARGET_VERSION): Remove.
14448 * config/i386/freebsd.h (TARGET_VERSION): Remove.
14449 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
14450 * config/i386/gnu.h (TARGET_VERSION): Remove.
14451 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
14452 * config/i386/i386elf.h (TARGET_VERSION): Remove.
14453 * config/i386/linux.h (TARGET_VERSION): Remove.
14454 * config/i386/linux64.h (TARGET_VERSION): Remove.
14455 * config/i386/lynx.h (TARGET_VERSION): Remove.
14456 * config/i386/mingw32.h (TARGET_VERSION): Remove.
14457 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
14458 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
14459 * config/i386/netware.h (TARGET_VERSION): Remove.
14460 * config/i386/nto.h (TARGET_VERSION): Remove.
14461 * config/i386/openbsd.h (TARGET_VERSION): Remove.
14462 * config/i386/vxworks.h (TARGET_VERSION): Remove.
14463 * config/ia64/elf.h (TARGET_VERSION): Remove.
14464 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
14465 * config/ia64/hpux.h (TARGET_VERSION): Remove.
14466 * config/ia64/linux.h (TARGET_VERSION): Remove.
14467 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14468 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
14469 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14470 * config/lm32/lm32.h (TARGET_VERSION): Remove.
14471 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
14472 * config/m32c/m32c.h (TARGET_VERSION): Remove.
14473 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
14474 * config/m32r/m32r.h (TARGET_VERSION): Remove.
14475 * config/m68k/linux.h (TARGET_VERSION): Remove.
14476 * config/m68k/m68k.h (TARGET_VERSION): Remove.
14477 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
14478 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
14479 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
14480 * config/mep/mep.h (TARGET_VERSION): Remove.
14481 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
14482 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14483 * config/mips/iris6.h (MACHINE_TYPE): Remove.
14484 * config/mips/linux.h (TARGET_VERSION): Remove.
14485 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
14486 * config/mips/vxworks.h (TARGET_VERSION): Remove.
14487 * config/mmix/mmix.h (TARGET_VERSION): Remove.
14488 * config/mn10300/linux.h (TARGET_VERSION): Remove.
14489 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
14490 * config/pa/pa.h (TARGET_VERSION): Remove.
14491 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
14492 * config/picochip/picochip.h (TARGET_VERSION): Remove.
14493 * config/rs6000/aix.h (TARGET_VERSION): Remove.
14494 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
14495 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
14496 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
14497 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
14498 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
14499 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
14500 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
14501 * config/rs6000/linux.h (TARGET_VERSION): Remove.
14502 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
14503 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
14504 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
14505 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
14506 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
14507 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
14508 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
14509 * config/s390/linux.h (TARGET_VERSION): Remove.
14510 * config/s390/s390.h (TARGET_VERSION): Remove.
14511 * config/s390/tpf.h (TARGET_VERSION): Remove.
14512 * config/score/score.h (TARGET_VERSION): Remove.
14513 * config/sh/linux.h (TARGET_VERSION): Remove.
14514 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
14515 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
14516 * config/sh/sh.h (TARGET_VERSION): Remove.
14517 * config/sh/sh64.h (TARGET_VERSION): Remove.
14518 * config/sh/superh.h (TARGET_VERSION): Remove.
14519 * config/sh/vxworks.h (TARGET_VERSION): Remove.
14520 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
14521 * config/sparc/linux.h (TARGET_VERSION): Remove.
14522 * config/sparc/linux64.h (TARGET_VERSION): Remove.
14523 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
14524 TARGET_NAME32, TARGET_NAME): Remove.
14525 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
14526 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
14527 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
14528 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
14529 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
14530 * config/spu/spu.h (TARGET_VERSION): Remove.
14531 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
14532 * config/v850/v850.h (TARGET_VERSION): Remove.
14533 * config/vax/linux.h (TARGET_VERSION): Remove.
14534 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
14535 * config/xtensa/elf.h (TARGET_VERSION): Remove.
14536 * config/xtensa/linux.h (TARGET_VERSION): Remove.
14538 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
14541 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
14542 frame-related from frame-unrelated adjustments to the stack pointer.
14544 2011-03-31 Jakub Jelinek <jakub@redhat.com>
14546 * common.opt (fdebug-types-section): Move earlier.
14547 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
14549 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
14551 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
14554 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
14556 * tree.h (CASE_CHAIN): Define.
14557 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
14558 (gimple_redirect_edge_and_branch): Likewise.
14560 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
14562 PR middle-end/48367
14563 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
14566 2011-03-30 Jeff Law <law@redhat.com>
14568 * PR bootstrap/48371
14569 * reload1.c (reload): Fix botch in last change.
14571 * reload.h (struct reload): Fix typo introduced in last change.
14573 2011-03-30 Joseph Myers <joseph@codesourcery.com>
14575 * config/arm/arm.opt (mhard-float, msoft-float): Mark
14576 Undocumented. Remove help text.
14577 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
14580 2011-03-30 Joseph Myers <joseph@codesourcery.com>
14582 * doc/options.texi (NegativeAlias): Document.
14583 (Alias): Mention NegativeAlias.
14584 * opt-functions.awk: Handle NegativeAlias.
14585 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
14586 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
14587 * opts.h (CL_NEGATIVE_ALIAS): Define.
14588 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
14589 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
14591 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
14593 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14594 mno-spe and mno-isel instead of mspe=no and -misel=no.
14596 2011-03-29 Mark Wielaard <mjw@redhat.com>
14598 * common.opt (fdebug-types-section): New flag.
14599 * doc/invoke.texi: Document new -fno-debug-types-section flag.
14600 * dwarf2out.c (use_debug_types): New define.
14601 (struct die_struct): Mark die_id with GTY desc use_debug_types.
14602 (print_die): Guard output of type unit signatures using
14604 (build_abbrev_table): Replace assert of dwarf_version >= 4
14605 with assert on use_debug_types.
14606 (size_of_die): Likewise.
14607 (unmark_dies): Likewise.
14608 (value_format): Decide AT_ref_external form on use_debug_types.
14609 (output_die): Replace dwarf_version version check guard with
14610 use_debug_types where appropriate.
14611 (modified_type_die): Likewise.
14612 (gen_reference_type_die): Likewise.
14613 (dwarf2out_start_source_file): Likewise.
14614 (dwarf2out_end_source_file): Likewise.
14615 (prune_unused_types_walk_attribs): Likewise.
14616 (dwarf2out_finish): Likewise.
14618 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
14620 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
14622 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14624 PR rtl-optimization/48332
14625 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
14626 mode of input operand N and modeN to its actual mode.
14628 2011-03-30 Jeff Law <law@redhat.com>
14630 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
14631 define accessor macro.
14632 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
14633 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
14634 (reg_equiv_init): Likewise.
14635 (reg_equivs_size): New variable.
14636 (reg_equiv_init_size): Remove.
14637 (allocate_initial_values): Move prototype to here from....
14638 * integrate.h (allocate_initial_values): Remove prototype.
14639 * integrate.c: Include reload.h.
14640 (allocate_initial_values): Corresponding changes.
14641 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
14642 (fix_reg_equiv_init, no_equiv): Corresponding changes.
14643 (update_equiv_regs): Corresponding changes.
14644 (ira): Corresponding changes.
14645 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
14646 (push_secondary_reload): Corresponding changes.
14647 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
14648 (make_memloc, find_reloads_address): Corresponding changes.
14649 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
14650 (find_reloads_address_1): Corresponding changes.
14651 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
14652 (refers_to_regno_for_reload_p): Corresponding changes.
14653 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
14654 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
14655 * reload1.c: Include ggc.h.
14656 (grow_reg_equivs): New function.
14657 (replace_pseudos_in, reload): Corresponding changes.
14658 (calculate_needs_all_insns, alter_regs): Corresponding changes.
14659 (eliminate_regs_1, elimination_effects): Corresponding changes.
14660 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
14661 (delete_output_reload): Likewise.
14662 * caller-save.c (mark_referenced_regs): Corresponding changes.
14663 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
14664 * frv/predicates.md (frv_load_operand): Corresponding changes.
14665 * microblaze/microblaze.c (double_memory_operand): Corresponding
14667 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
14668 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
14669 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
14670 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
14671 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
14673 * pa/pa.c (emit_move_sequence): Corresponding changes.
14674 * vax/vax.c (nonindexed_address_p): Corresponding changes.
14676 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14679 * config/arm/arm.c (coproc_secondary_reload_class): Handle
14680 structure modes. Don't check neon_vector_mem_operand for
14681 vector or structure modes.
14683 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14684 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14687 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
14688 operand 1 and reshuffle the operands to match.
14689 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
14691 2011-03-30 Christian Schüler <cschueler@gmx.de>
14694 * config/c.opt (F): Added 'Driver' to -F option.
14697 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
14699 * config/darwin.opt: Added '-arch' option.
14701 2011-03-30 Nick Clifton <nickc@redhat.com>
14703 * config/rx/rx.md: Add peepholes and patterns to combine
14704 extending loads and simple arithmetic instructions.
14705 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
14706 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
14707 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
14708 modes to use pre-decrement and post-increment addressing.
14709 (rx_is_restricted_memory_address): Add range checking of REG+INT
14711 (rx_print_operand): Add support for %Q. Fix handling of %Q.
14712 (rx_memory_move_cost): Adjust cost of stores.
14713 (rx_adjust_insn_length): New function.
14715 2011-03-30 Jakub Jelinek <jakub@redhat.com>
14718 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14719 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
14720 matching arg00/arg01 types.
14722 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
14724 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
14725 last_location to UNKNOWN_LOCATION.
14727 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
14730 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
14733 2011-03-30 Joseph Myers <joseph@codesourcery.com>
14734 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14737 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
14738 Init(PROCESSOR_V7).
14739 (sparc_cpu): Likewise.
14740 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
14743 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
14746 PR middle-end/48342
14747 PR rtl-optimization/48345
14748 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
14749 hard regs for given mode from profitable regs when doing secondary
14752 2011-03-29 Jeff Law <law@redhat.com>
14755 * tree-ssa-threadupdate.c (struct redirection_data): Remove
14756 do_not_duplicate field.
14757 (lookup_redirection_data): Corresponding changes.
14758 (create_duplicates): Always create a template block.
14759 (redirect_edges): Remove code which reused the original block
14760 when it was going to become unreachable code.
14761 (thread_block): Don't set do_not_duplicate field.
14763 2011-03-29 Joseph Myers <joseph@codesourcery.com>
14765 * lto-opts.c (register_user_option_p, lto_register_user_option):
14766 Make type argument unsigned.
14767 * lto-streamer.h (lto_register_user_option): Make type argument
14769 * opth-gen.awk: Make CL_* macros unsigned.
14770 * opts-common.c (find_opt): Make lang_mask argument unsigned.
14771 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
14772 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
14773 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
14774 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
14775 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
14776 (find_opt): Make lang_mask argument unsigned.
14778 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
14780 PR rtl-optimization/48331
14781 PR rtl-optimization/48334
14782 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
14783 for any used algorithm.
14785 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
14787 * ira-conflicts.c (build_object_conflicts): Add unused attribute
14790 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
14792 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
14793 (alpha_option_override): Don't set alpha_sr_alias_set.
14794 (emit_frame_store_1): Use gen_frame_mem rather than calling
14796 (alpha_expand_epilogue): Ditto.
14798 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
14800 PR tree-optimization/48290
14801 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
14802 vectorization, check that relevant phis in the basic block after
14803 the inner loop are really inner loop's exit phis.
14805 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
14808 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
14809 (cached_dw_loc_list_def): New structure.
14810 (cached_dw_loc_list): New typedef.
14811 (cached_dw_loc_list_table): New variable.
14812 (cached_dw_loc_list_table_hash): New function.
14813 (cached_dw_loc_list_table_eq): Likewise.
14814 (add_location_or_const_value_attribute): Take a bool cache_p.
14815 Cache the list when the parameter is true.
14816 (gen_formal_parameter_die): Update caller.
14817 (gen_variable_die): Likewise.
14818 (dwarf2out_finish): Likewise.
14819 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
14820 while generating debug info for the decl.
14821 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
14822 (dwarf2out_init): Initialize cached_dw_loc_list_table.
14823 (resolve_addr): Cache the result of resolving a chain of
14826 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
14828 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
14829 conflict object hard regset nodes have intersecting hard reg sets.
14831 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
14832 after regstat_init_n_sets_and_refs.
14834 * ira.c: Add more comments at the top.
14835 (setup_stack_reg_pressure_class, setup_pressure_classes):
14836 Add comments how we compute the register pressure classes.
14837 (setup_allocno_and_important_classes): Add more comments.
14838 (setup_class_translate_array, reorder_important_classes)
14839 (setup_reg_class_relations): Add comments.
14841 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
14844 * ira-color.c: Add 2011 to the Copyright line.
14845 (assign_hard_reg): Add more comments.
14846 (improve_allocation): Ditto.
14848 * ira-costs.c: Add 2011 to the Copyright line.
14849 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
14851 (setup_regno_cost_classes_by_mode): Ditto.
14853 Initial patches from ira-improv branch:
14855 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
14857 * ira-build.c (ira_create_object): Remove initialization of
14858 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
14859 (ira_create_allocno): Remove initialization of
14860 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
14861 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
14862 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
14863 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
14864 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
14865 Initialize ALLOCNO_ADD_DATA.
14866 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
14867 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
14869 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
14870 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
14872 * ira.c (ira_reallocate): Remove.
14873 (setup_pressure_classes): Call
14874 ira_init_register_move_cost_if_necessary. Use
14875 ira_register_move_cost instead of ira_get_register_move_cost.
14876 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
14877 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
14879 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
14880 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
14881 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
14882 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
14883 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
14884 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
14886 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
14887 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
14888 (struct allocno_color_data): New.
14889 (allocno_color_data_t): New typedef.
14890 (allocno_color_data): New definition.
14891 (ALLOCNO_COLOR_DATA): New macro.
14892 (struct object_color_data): New.
14893 (object_color_data_t): New typedef.
14894 (object_color_data): New definition.
14895 (OBJECT_COLOR_DATA): New macro.
14896 (update_copy_costs, calculate_allocno_spill_cost): Call
14897 ira_init_register_move_cost_if_necessary. Use
14898 ira_register_move_cost instead of ira_get_register_move_cost.
14899 (move_spill_restore, update_curr_costs): Ditto.
14900 (allocno_spill_priority): Make it inline.
14901 (color_pass): Allocate and free allocno_color_dat and object_color_data.
14902 (struct coalesce_data, coalesce_data_t): New.
14903 (allocno_coalesce_data): New definition.
14904 (ALLOCNO_COALESCE_DATA): New macro.
14905 (merge_allocnos, coalesced_allocno_conflict_p): Use
14906 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
14907 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
14908 (coalesce_allocnos): Ditto.
14909 (setup_coalesced_allocno_costs_and_nums): Ditto.
14910 (collect_spilled_coalesced_allocnos): Ditto.
14911 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
14912 (setup_slot_coalesced_allocno_live_ranges): Ditto.
14913 (coalesce_spill_slots): Ditto.
14914 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
14915 free allocno_coalesce_data.
14917 * ira-conflicts.c: Fix formatting.
14918 (process_regs_for_copy): Call
14919 ira_init_register_move_cost_if_necessary. Use
14920 ira_register_move_cost instead of ira_get_register_move_cost.
14921 (build_object_conflicts): Optimize.
14923 * ira-costs.c (record_reg_classes): Optimize. Call
14924 ira_init_register_move_cost_if_necessary. Use
14925 ira_register_move_cost, ira_may_move_in_cost, and
14926 ira_may_move_out_cost instead of ira_get_register_move_cost and
14927 ira_get_may_move_cost.
14928 (record_address_regs): Ditto.
14929 (scan_one_insn): Optimize.
14930 (find_costs_and_classes): Optimize.
14931 (process_bb_node_for_hard_reg_moves): Call
14932 ira_init_register_move_cost_if_necessary. Use
14933 ira_register_move_cost instead of ira_get_register_move_cost.
14935 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
14936 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
14937 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
14938 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
14940 (ira_initiate_emit_data, ira_finish_emit_data)
14941 (create_new_allocno): New functions.
14942 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
14943 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
14944 Use ira_register_move_cost instead of ira_get_register_move_cost.
14946 * ira-int.h: Fix some comments.
14947 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
14948 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
14949 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
14950 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
14952 (struct ira_allocno): Make mode and aclass a bitfield. Move other
14953 bitfield after mode. Make hard_regno a short int. Make
14954 hard_regno short. Remove first_coalesced_allocno and
14955 next_coalesced_allocno. Move mem_optimized_dest_p,
14956 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
14957 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
14958 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
14959 temp, colorable_p. Add new member add_data.
14960 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
14961 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
14962 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
14963 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
14964 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
14965 (ALLOCNO_ADD_DATA): New macro.
14966 (ira_emit_data_t): New typedef.
14967 (struct ira_emit_data): New. Move mem_optimized_dest_p,
14968 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
14969 from struct ira_allocno.
14970 (ALLOCNO_EMIT_DATA): New macro.
14971 (ira_allocno_emit_data, allocno_emit_reg): New.
14972 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
14973 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
14974 (OBJECT_ADD_DATA): New macro.
14975 (ira_reallocate): Remove.
14976 (ira_initiate_emit_data, ira_finish_emit_data): New.
14977 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
14978 (ira_init_register_move_cost_if_necessary): New.
14979 (ira_object_conflict_iter_next): Merge into
14980 ira_object_conflict_iter_cond.
14981 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
14983 * ira-live.c (process_single_reg_class_operands): Call
14984 ira_init_register_move_cost_if_necessary. Use
14985 ira_register_move_cost instead of ira_get_register_move_cost.
14987 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
14989 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
14991 * ira-costs.c: Fix formatting.
14992 (cost_classes, cost_classes_num): Remove.
14993 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
14994 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
14995 (cost_classes_del, cost_classes_htab): New.
14996 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
14997 (initiate_regno_cost_classes, setup_cost_classes): New.
14998 (setup_regno_cost_classes_by_aclass): New.
14999 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
15000 (record_reg_classes): Use regno_cost_classes instead of
15001 cost_classes. Move checking opposite operand up.
15002 (record_address_regs): Use regno_cost_classes
15003 instead of cost_classes.
15004 (scan_one_insn): Ditto. Use always general register.
15005 (print_allocno_costs): Use regno_cost_classes instead of
15007 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
15008 (find_costs_and_classes): Set up cost classes for each registers.
15009 Use also their mode for this. Use regno_cost_classes instead of
15011 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
15013 (free_ira_costs, ira_init_costs): Don't use cost_classes.
15014 (ira_costs, ira_set_pseudo_classes): Call
15015 initiate_regno_cost_classes and finish_regno_cost_classes.
15017 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
15019 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
15021 * target.def (ira_cover_classes): Remove.
15023 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
15025 * doc/tm.texi.in: Ditto.
15027 * ira-conflicts.c: Remove mentioning cover classes from the file.
15028 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
15029 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
15031 * targhooks.c (default_ira_cover_classes): Remove.
15033 * targhooks.h (default_ira_cover_classes): Ditto.
15035 * haifa-sched.c: Remove mentioning cover classes from the file.
15036 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
15037 ira_pressure_classes and ira_pressure_classes_num instead of
15038 ira_reg_class_cover_size and ira_reg_class_cover. Use
15039 sched_regno_pressure_class instead of sched_regno_cover_class.
15040 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
15041 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15043 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
15044 classes from the file.
15045 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
15046 (struct object_hard_regs, struct object_hard_regs_node): New.
15047 (struct ira_object): New members profitable_hard_regs,
15048 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
15049 (struct ira_allocno): Rename cover_class to aclass. Rename
15050 cover_class_cost and updated_cover_class_cost to class_cost and
15051 updated_class_cost. Remove splay_removed_p and
15052 left_conflict_size. Add new members colorable_p.
15053 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
15054 (ALLOCNO_COLORABLE_P): New macro.
15055 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
15056 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
15057 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
15058 (OBJECT_...): Rename parameter C to O.
15059 (OBJECT_PROFITABLE_HARD_REGS): New macro.
15060 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
15061 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
15062 (struct target_ira_int): New members x_ira_max_memory_move_cost,
15063 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
15064 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
15065 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
15066 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
15067 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
15068 x_ira_reg_class_subunion.
15069 (ira_max_memory_move_cost, ira_max_register_move_cost)
15070 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
15071 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
15072 (ira_important_class_nums, ira_reg_class_superunion): New macros.
15073 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
15074 (ira_reg_class_union): Rename to ira_reg_class_subunion.
15075 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15076 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15077 (ira_tune_allocno_costs_and_cover_classes): Rename to
15078 ira_tune_allocno_costs.
15079 (ira_debug_hard_regs_forest): New.
15080 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
15081 (ira_object_conflict_iter_next): Fix comments.
15082 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
15083 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
15084 cover_class to aclass.
15085 (ira_allocate_and_accumulate_costs): Ditto.
15086 (ira_allocate_and_set_or_copy_costs): Ditto.
15088 * opts.c (decode_options): Remove ira_cover_class check.
15090 * ira-color.c: Remove mentioning cover classes from the file. Use
15091 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
15092 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
15093 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
15094 (splay-tree.h): Remove include.
15095 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
15096 before copy_freq_compare_func.
15097 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
15098 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
15100 (hard_regs_roots, hard_regs_node_vec): Ditto.
15101 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
15102 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
15103 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
15104 (create_new_object_hard_regs_node): Ditto.
15105 (add_new_object_hard_regs_node_to_forest): Ditto.
15106 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
15107 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
15109 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
15110 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
15111 (remove_unused_object_hard_regs_nodes): Ditto.
15112 (enumerate_object_hard_regs_nodes): Ditto.
15113 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
15114 (object_hard_regs_subnode_t): Ditto.
15115 (struct object_hard_regs_subnode): Ditto.
15116 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
15117 (setup_object_hard_regs_subnode_index): Ditto.
15118 (get_object_hard_regs_subnodes_num): Ditto.
15119 (form_object_hard_regs_nodes_forest): Ditto.
15120 (finish_object_hard_regs_nodes_tree): Ditto.
15121 (finish_object_hard_regs_nodes_forest): Ditto.
15122 (allocnos_have_intersected_live_ranges_p): Rename to
15123 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
15124 (pseudos_have_intersected_live_ranges_p): Rename to
15125 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
15126 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
15127 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
15128 (update_copy_costs): Remove assert. Skip cost update if the hard
15129 reg does not belong the class.
15130 (assign_hard_reg): Process only profitable hard regs.
15131 (uncolorable_allocnos_num): Make it scalar.
15132 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
15133 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
15134 and ira_reg_class_max_nregs.
15135 (bucket_allocno_compare_func): Check frequency first.
15136 (sort_bucket): Add compare function as a parameter.
15137 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
15138 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
15139 (push_allocno_to_stack): Rewrite for checking new allocno
15141 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
15142 (push_only_colorable): Pass new parameter to sort_bucket.
15143 (push_allocno_to_spill): Remove.
15144 (allocno_spill_priority_compare): Make it inline and rewrite.
15145 (splay_tree_allocate, splay_tree_free): Remove.
15146 (allocno_spill_sort_compare): New function.
15147 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
15148 build and use splay tree. Choose first allocno in uncolorable
15149 allocno bucket to spill. Remove setting spill cost.
15150 (all_conflicting_hard_regs): Remove.
15151 (setup_allocno_available_regs_num): Check only profitable hard
15152 regs. Print info about hard regs nodes.
15153 (setup_allocno_left_conflicts_size): Remove.
15154 (put_allocno_into_bucket): Don't call
15155 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
15156 (improve_allocation): New.
15157 (color_allocnos): Call setup_profitable_hard_regs,
15158 form_object_hard_regs_nodes_forest, improve_allocation,
15159 finish_object_hard_regs_nodes_forest. Setup spill cost.
15160 (print_loop_title): Use pressure classes.
15161 (color_allocnso): Ditto.
15162 (do_coloring): Remove allocation and freeing splay_tree_node_pool
15163 and allocnos_for_spilling.
15164 (ira_sort_regnos_for_alter_reg): Don't setup members
15165 {first,next}_coalesced_allocno.
15166 (color): Remove allocating and freeing removed_splay_allocno_vec.
15167 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
15168 prohibited_class_mode_regs.
15170 * ira-lives.c: Remove mentioning cover classes from the file. Fix
15172 (update_allocno_pressure_excess_length): Use pressure classes.
15173 (inc_register_pressure, dec_register_pressure): Check for pressure
15175 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
15176 pressure class. Use ira_reg_class_nregs instead of
15177 ira_reg_class_max_nregs.
15178 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
15179 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
15180 (single_reg_class): Use ira_reg_class_nregs instead of
15181 ira_reg_class_max_nregs.
15182 (process_bb_node_lives): Use pressure classes.
15184 * ira-emit.c: Remove mentioning cover classes from the file. Use
15185 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
15186 (change_loop): Use pressure classes.
15187 (modify_move_list): Call ira_set_allocno_class instead of
15188 ira_set_allocno_cover_class.
15190 * ira-build.c: Remove mentioning cover classes from the file. Use
15191 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
15192 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
15193 ALLOCNO_UPDATED_CLASS_COST instead of
15194 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
15195 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
15196 (ira_create_allocno): Remove initialization of
15197 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
15198 ALLOCNO_COLORABLE_P.
15199 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15200 Update conflict regs for the objects.
15201 (create_cap_allocno): Remove assert. Don't propagate
15202 ALLOCNO_AVAILABLE_REGS_NUM.
15203 (ira_free_allocno_costs): New function.
15204 (finish_allocno): Change a part of code into call of
15205 ira_free_allocno_costs.
15206 (low_pressure_loop_node_p): Use pressure classes.
15207 (object_range_compare_func): Don't compare classes.
15208 (setup_min_max_conflict_allocno_ids): Ditto.
15210 * loop-invariant.c: Remove mentioning cover classes from the file.
15211 Use ira_pressure_classes and ira_pressure_classes_num instead of
15212 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
15213 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
15214 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15215 Use reg_allocno_class instead of reg_cover_class.
15216 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
15217 STACK_REG_COVER_CLASS.
15218 (get_regno_cover_class): Rename to get_regno_pressure_class.
15219 (move_loop_invariants): Initialize and finalize regstat.
15221 * ira.c: Remove mentioning cover classes from the file. Add
15222 comments about coloring without cover classes. Use ALLOCNO_CLASS
15223 instead of ALLOCNO_COVER_CLASS. Fix formatting.
15224 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
15225 setup_class_subset_and_memory_move_costs.
15226 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
15227 (setup_cover_and_important_classes): Rename to
15228 setup_allocno_and_important_classes.
15229 (setup_class_translate_array): New.
15230 (setup_class_translate): Call it for allocno and pressure classes.
15231 (cover_class_order): Rename to allocno_class_order.
15232 (comp_reg_classes_func): Use ira_allocno_class_translate instead
15233 of ira_class_translate.
15234 (reorder_important_classes): Set up ira_important_class_nums.
15235 (setup_reg_class_relations): Set up ira_reg_class_superunion.
15236 (print_class_cover): Rename to print_classes. Add parameter.
15237 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15238 Print pressure classes too.
15239 (find_reg_class_closure): Rename to find_reg_classes. Don't call
15240 setup_reg_subclasses.
15241 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15242 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15243 (setup_prohibited_class_mode_regs): Use
15244 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
15245 (clarify_prohibited_class_mode_regs): New function.
15246 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
15247 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
15248 (ira_init_once): Initialize them.
15249 (free_register_move_costs): Process them.
15250 (ira_init): Move calls of find_reg_classes and
15251 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
15252 Call clarify_prohibited_class_mode_regs.
15253 (ira_no_alloc_reg): Remove.
15254 (too_high_register_pressure_p): Use pressure classes.
15256 * sched-deps.c: Remove mentioning cover classes from the file.
15257 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
15258 ira_pressure_classes and ira_pressure_classes_num instead of
15259 ira_reg_class_cover_size and ira_reg_class_cover.
15260 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
15261 sched_regno_pressure_class instead of sched_regno_cover_class.
15262 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
15263 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15265 * ira.h: Add 2010 to Copyright.
15266 (ira_no_alloc_reg): Remove external.
15267 (struct target_ira): Rename x_ira_hard_regno_cover_class,
15268 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
15269 x_ira_class_translate to x_ira_hard_regno_allocno_class,
15270 x_ira_allocno_classes_num, x_ira_allocno_classes, and
15271 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
15272 x_ira_pressure_classes, x_ira_pressure_class_translate, and
15273 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
15274 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
15275 x_ira_no_alloc_regs.
15276 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15277 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
15278 ira_allocno_classes_num and ira_allocno_classes.
15279 (ira_class_translate): Rename to ira_allocno_class_translate.
15280 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
15281 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
15282 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15283 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
15284 (ira_no_alloc_regs): New.
15286 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
15287 classes from the file. Use ALLOCNO_CLASS instead of
15288 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
15289 ALLOCNO_COVER_CLASS_COST.
15290 (regno_cover_class): Rename to regno_aclass.
15291 (record_reg_classes): Use ira_reg_class_subunion instead of
15292 ira_reg_class_union.
15293 (record_address_regs): Check overflow.
15294 (scan_one_insn): Ditto.
15295 (print_allocno_costs): Print total mem cost fore regional allocation.
15296 (print_pseudo_costs): Use REG_N_REFS.
15297 (find_costs_and_classes): Use classes intersected with them on the
15298 1st pass. Check overflow. Use ira_reg_class_subunion instead of
15299 ira_reg_class_union. Use ira_allocno_class_translate and
15300 regno_aclass instead of ira_class_translate and regno_cover_class.
15301 Modify code for finding regno_aclass. Setup preferred classes for
15303 (setup_allocno_cover_class_and_costs): Rename to
15304 setup_allocno_class_and_costs. Use regno_aclass instead of
15305 regno_cover_class. Use ira_set_allocno_class instead of
15306 ira_set_allocno_cover_class.
15307 (init_costs, finish_costs): Use regno_aclass instead of
15309 (ira_costs): Use setup_allocno_class_and_costs instead of
15310 setup_allocno_cover_class_and_costs.
15311 (ira_tune_allocno_costs_and_cover_classes): Rename to
15312 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
15313 by processing objects. Use ira_reg_class_max_nregs instead of
15314 ira_reg_class_nregs.
15316 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
15318 * sched-int.h: Remove mentioning cover classes from the file.
15319 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
15321 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
15322 classes from the file.
15323 (struct reg_pref): Rename coverclass into allocnoclass.
15324 (reg_cover_class): Rename to reg_allocno_class.
15326 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
15328 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
15330 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
15332 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
15334 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
15336 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
15338 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
15340 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
15342 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
15344 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
15346 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
15347 (i386_ira_cover_classes): Ditto.
15349 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
15351 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
15353 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
15355 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
15357 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
15359 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
15361 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
15362 (mips_ira_cover_classes): Ditto.
15364 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
15366 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
15368 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
15370 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
15372 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
15374 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
15375 (IRA_COVER_CLASSES_VSX): Ditto.
15377 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
15378 (rs6000_ira_cover_classes): Ditto.
15380 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
15382 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
15384 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
15386 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
15388 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
15390 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
15392 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
15394 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
15396 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
15398 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
15400 2011-03-29 Jakub Jelinek <jakub@redhat.com>
15403 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
15404 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
15405 dw_fde_unlikely_section_end_label, cold_in_std_section,
15406 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
15407 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
15409 (output_fde): Use dw_fde_second_{begin,end} if second is
15410 true, otherwise dw_fde_{begin,end}.
15411 (output_call_frame_info): Test dw_fde_second_begin != NULL
15412 instead of dw_fde_switched_sections.
15413 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
15414 fields, initialize new fields. Initialize in_std_section
15415 unconditionally from the first partition.
15416 (dwarf2out_end_epilogue): Don't override dw_fde_end when
15417 dw_fde_second_begin is non-NULL.
15418 (dwarf2out_switch_text_section): Stop initializing removed
15419 dw_fde_struct fields, initialize new fields, initialize
15420 also dw_fde_end here. Set dw_fde_switch_cfi even when
15421 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
15422 (struct var_loc_list_def): Add last_before_switch field.
15423 (arange_table, arange_table_allocated, arange_table_in_use,
15424 ARANGE_TABLE_INCREMENT, add_arange): Removed.
15425 (size_of_aranges): Count !in_std_section and !second_in_std_section
15426 hunks in fdes, instead of looking at arange_table_in_use.
15427 (output_aranges): Add aranges_length argument, don't call
15428 size_of_aranges here. Instead of using aranges_table*
15429 emit ranges for fdes when !in_std_section resp.
15430 !second_in_std_section.
15431 (dw_loc_list): Break ranges crossing section switch.
15432 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
15433 use dw_fde_second_end instead of dw_fde_end as end of last range.
15434 (gen_subprogram_die): Don't call add_arange. Use
15435 dw_fde_{begin,end} for first partition and if switched
15436 section dw_fde_second_{begin,end} for the second.
15437 (var_location_switch_text_section_1,
15438 var_location_switch_text_section): New functions.
15439 (dwarf2out_begin_function): Initialize cold_text_section even
15440 when function_section () isn't text_section.
15441 (prune_unused_types): Don't walk arange_table.
15442 (dwarf2out_finish): Don't needlessly test
15443 flag_reorder_blocks_and_partition when testing cold_text_section_used.
15444 If info_section_emitted, call size_of_aranges and if it indicates
15445 non-empty .debug_aranges, call output_aranges with the computed
15446 size. Stop using removed dw_fde_struct fields, use
15447 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
15451 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
15452 create ENTRY_VALUE if incoming or address of incoming's MEM
15454 * dwarf2out.c (mem_loc_descriptor): Don't emit
15455 DW_OP_GNU_entry_value of DW_OP_fbreg.
15456 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
15457 on ENTRY_VALUE is able to find the canonical parameter VALUE.
15458 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
15459 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
15461 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
15462 is a REG_P or MEM_P with REG_P address, compute hash directly
15463 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
15464 (preserve_only_constants): Don't clear VALUES forwaring
15465 ENTRY_VALUE to some other VALUE.
15467 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
15469 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
15470 instead of GEN_INT.
15472 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
15474 * cfgexpand.c (expand_gimple_cond): Always set the source location and
15475 block before expanding the statement.
15476 (expand_gimple_stmt_1): Likewise. Set them here...
15477 (expand_gimple_stmt): ...and not here. Tidy.
15478 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
15481 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
15483 * Makefile.in: New rule for cprop.o.
15484 * gcse.c: Move constant/copy propagation to cprop.c.
15485 (compute_local_properties): Only handle expression tables.
15486 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
15487 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
15488 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
15489 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
15490 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
15491 compute_cprop_data, find_used_regs, try_replace_reg,
15492 find_avail_set, cprop_jump, constprop_register, cprop_insn,
15493 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
15494 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
15495 find_bypass_set, reg_killed_on_edge, bypass_block,
15496 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
15497 execute_rtl_cprop, pass_rtl_cprop): Move to...
15498 * cprop.c: ...here. New file, constant/copy propagation for RTL
15499 moved from gcse.c to here with minor cleanups in duplicated code.
15501 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
15503 * config/i386/i386.c (flag_opts): Fix a typo in
15504 -mavx256-split-unaligned-store.
15506 2011-03-28 Anatoly Sokolov <aesok@post.ru>
15508 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
15509 LIBCALL_VALUE): Remove macros.
15510 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15511 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15512 (h8300_function_value, h8300_libcall_value,
15513 h8300_function_value_regno_p): New functions.
15515 2011-03-28 Anatoly Sokolov <aesok@post.ru>
15517 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
15519 2011-03-28 Jeff Law <law@redhat.com>
15521 * tree-ssa-threadupdate.c (redirect_edges): Call
15522 create_edge_and_update_destination_phis as needed.
15523 (create_edge_and_update_destination_phis): Accept new BB argument.
15524 All callers updated.
15525 (thread_block): Do not update the profile when threading around
15526 intermediate blocks.
15527 (thread_single_edge): Likewise.
15528 (determine_bb_domination_status): If BB is not a successor of the
15529 loop header, return NONDOMINATING.
15530 (register_jump_thread): Note when we register a jump thread around
15531 an intermediate block.
15532 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
15533 (thread_across_edge): Use it.
15535 2011-03-28 Tristan Gingold <gingold@adacore.com>
15537 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
15538 when for_return is 2.
15540 2011-03-28 Jeff Law <law@redhat.com>
15542 * var-tracking.c (canonicalize_values_mark): Delete unused
15544 (canonicalize_values_star, set_variable_part): Likewise.
15545 (clobber_variable_part, delete_variable_part): Likewise.
15547 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
15549 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
15551 2011-03-28 Martin Jambor <mjambor@suse.cz>
15553 * tree-inline.c (expand_call_inline): Do not check that destination
15555 (optimize_inline_calls): Assert that destination node is analyzed.
15556 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
15557 not call tree_lowering_passes.
15558 * cgraph.h (cgraph_analyze_function): Declare.
15559 * cgraphunit.c (cgraph_analyze_function): Make public.
15561 2011-03-28 Joseph Myers <joseph@codesourcery.com>
15563 * config/sparc/sparc-opts.h: New.
15564 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
15565 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
15566 (sparc_option_override): Store processor_type enumeration rather
15567 than string in cpu_default. Remove name and enumeration from
15568 cpu_table. Directly default -mcpu then default -mtune from -mcpu
15569 without using sparc_select. Use target_flags_explicit instead of
15571 * config/sparc/sparc.h (enum processor_type): Move to
15573 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
15574 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
15575 HeaderInclude entry.
15576 (mcpu=, mtune=): Use Var and Enum.
15577 (sparc_processor_type): New Enum and EnumValue entries.
15579 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15580 Iain Sandoe <iains@gcc.gnu.org>
15583 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
15585 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
15587 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
15588 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
15589 Insert new statements at it in lieu of STMT.
15590 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
15591 * tree-vect-stmts.c (vectorizable_store): Likewise.
15592 (vectorizable_load): Likewise.
15594 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
15596 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
15601 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
15603 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
15604 unaligned 256bit load/store.
15605 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
15606 (*avx_movdqu<avxmodesuffix>): Likewise.
15608 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15611 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
15612 * config/pa/pa.md (iordi3): Use new predicate in expander.
15613 (iorsi3): Likewise.
15615 2011-03-27 Anatoly Sokolov <aesok@post.ru>
15617 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
15618 FUNCTION_VALUE_REGNO_P): Remove macros.
15619 * config/mips/mips-protos.h (mips_function_value): Remove.
15620 * config/mips/mips.c (mips_function_value): Rename to...
15621 (mips_function_value_1): ... this. Make static. Handle receiving
15622 the function type in 'fn_decl_or_type' argument.
15623 (mips_function_value, mips_libcall_value,
15624 mips_function_value_regno_p): New function.
15625 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15626 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15628 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
15630 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
15631 and -mavx256-split-unaligned-store.
15632 (ix86_option_override_internal): Split 32-byte AVX unaligned
15633 load/store by default.
15634 (ix86_avx256_split_vector_move_misalign): New.
15635 (ix86_expand_vector_move_misalign): Use it.
15637 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
15638 -mavx256-split-unaligned-store.
15640 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
15641 256bit load/store. Generate unaligned store on misaligned memory
15643 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
15645 (*avx_movdqu<avxmodesuffix>): Likewise.
15647 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
15648 -mavx256-split-unaligned-store.
15650 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
15653 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
15656 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
15658 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
15659 opno arguments with an expand_operand. Use create_input_operand.
15660 (mips_prepare_builtin_target): Delete.
15661 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
15663 (mips_expand_builtin_direct): Use create_output_operand and
15664 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
15665 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
15666 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
15668 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
15670 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
15672 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
15674 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
15676 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
15677 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
15678 basic blocks and call commit_edge_insertions directly.
15679 (fixup_abnormal_edges): Move from here to...
15680 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
15681 on the edges and return whether some have actually been inserted.
15682 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
15685 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
15687 PR rtl-optimization/48144
15688 * sel-sched-ir.c (merge_history_vect): Factor out from ...
15689 (merge_expr_data): ... here.
15690 (av_set_intersect): Rename to av_set_code_motion_filter.
15691 Update all callers. Call merge_history_vect when an expression
15692 is found in both sets.
15693 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
15695 2011-03-26 Alan Modra <amodra@gmail.com>
15697 * config/rs6000/predicates.md (word_offset_memref_op): Handle
15698 cmodel medium addresses.
15699 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
15700 64-bit gpr loads and stores.
15701 (rs6000_secondary_reload_ppc64): New function.
15702 * config/rs6000/rs6000-protos.h: Declare it.
15703 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
15705 2011-03-26 Alan Modra <amodra@gmail.com>
15708 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
15709 GNU Go in traceback table.
15711 2011-03-25 Richard Henderson <rth@redhat.com>
15713 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
15714 if there are exactly 6 operands.
15715 (set_storage_via_setmem): Similarly.
15717 2011-03-25 Kai Tietz <ktietz@redhat.com>
15719 * collect2.c (write_c_file_stat): Handle backslash
15720 as right-hand directory separator.
15721 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
15722 checking just for slash.
15723 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
15724 instead of checking for trailing slash.
15725 * gcc.c (record_temp_file): Use filename_cmp instead
15727 (do_spec_1): Likewise.
15728 (replace_outfile_spec_function): Likewise.
15729 (is_directory): Use filename_ncmp instead of strncmp.
15730 (print_multilib_info): Likewise.
15731 * gcov.c (find_source): Use filename_cmp instead
15733 (make_gcov_file_name): Fix order of slash/backslash
15735 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
15736 (add_standard_paths): Likewise.
15737 * mips-tfile.c (saber_stop): Handle backslash.
15738 * prefix.c (update_path): Use filename_ncmp instead of
15740 * profile.c (output_location): Use filename_cmp instead
15742 * read-md.c (handle_toplevel_file): Handle backslash.
15743 * tlink.c (frob_extension): Likewise.
15744 * tree-cfg.c (same_line_p): Use filename_cmp instead of
15746 * tree-dump.c (dequeue_and_dump): Handle backslash.
15747 * tree.c (get_file_function_name): Likewise.
15748 * gengtype.c (read_input_list): Likewise.
15749 (get_file_realbasename): Likewise.
15750 (get_output_file_with_visibility): Use filename_cmp
15753 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
15755 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
15758 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
15760 * fold-const.c (expr_location_or): New function.
15761 (fold_truth_not_expr): Call it.
15763 2011-03-25 Jeff Law <law@redhat.com>
15765 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
15767 * c-family/c-common.c (def_fn_type): Likewise.
15768 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
15769 * emit-rtl.c (gen_rtvec): Likewise.
15770 * lto/lto-lang.c (def_fn_type): Likewise.
15772 2011-03-25 Richard Guenther <rguenther@suse.de>
15774 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
15775 also generate copies.
15776 (fini_copy_prop): Handle constant values properly.
15778 2011-03-25 Jakub Jelinek <jakub@redhat.com>
15780 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
15781 mode size instead of bitsize with DWARF2_ADDR_SIZE.
15782 (hash_loc_operands, compare_loc_operands): Handle
15783 DW_OP_GNU_entry_value.
15785 2011-03-25 Kai Tietz <ktietz@redhat.com>
15787 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
15788 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
15789 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
15790 comment and use macro TARGET_64BIT_MS_ABI instead.
15791 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
15792 and change default behavior for 32-bit MS_ABI.
15793 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
15794 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
15796 (ix86_cfun_abi): Likewise.
15797 (ix86_maybe_switch_abi): Adjust comment.
15798 (init_cumulative_args): Check for bit-ness in MS_ABI case.
15799 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
15800 instead of checking for SYSV_ABI.
15801 (ix86_nsaved_sseregs): Likewise.
15802 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
15804 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
15805 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
15806 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
15807 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
15808 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
15810 2011-03-25 Richard Guenther <rguenther@suse.de>
15812 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
15813 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
15814 (verify_gimple): Remove.
15815 * tree-cfg.c (verify_gimple_call): Merge verification
15817 (verify_gimple_phi): Merge verification from verify_stmts.
15818 (verify_gimple_label): New function.
15819 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
15820 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
15821 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
15822 (verify_stmts): Rename to verify_gimple_in_cfg.
15823 (verify_gimple_in_cfg): New function.
15824 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
15825 * tree-ssa.c (verify_ssa): Likewise.
15826 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
15828 2011-03-25 Richard Guenther <rguenther@suse.de>
15830 * passes.c (init_optimization_passes): Add FRE pass after
15833 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
15834 Andrew Stubbs <ams@codesourcery.com>
15836 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
15838 (arm_movdi_vfp_cortexa8): New pattern.
15839 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
15840 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
15841 instructions when tuning for Cortex-A8. Set attribute "arch".
15842 * config/arm/arm.md: Move include arm-tune.md up a bit.
15843 (define_attr "arch"): Add "onlya8" and "nota8" values.
15844 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
15846 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
15850 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
15852 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
15853 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
15854 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
15855 * passes.c (init_optimization_passes): Move
15856 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
15858 2011-03-25 Kai Tietz <ktietz@redhat.com>
15860 * c-typeck.c (comptypes_internal): Replace target
15861 hook call of comp_type_attributes by version in tree.c file.
15862 * gimple.c (gimple_types_compatible_p_1): Likewise.
15863 * tree-ssa.c (useless_type_conversion_p): Likewise.
15864 * tree.c (build_type_attribute_qual_variant): Likewise.
15865 (attribute_value_equal): New static helper function.
15866 (comp_type_attributes): New function.
15867 (merge_attributes): Use attribute_value_equal for comparison.
15868 (attribute_list_contained): Likewise.
15869 * tree.h (comp_type_attributes): New prototype.
15871 2011-03-25 Richard Guenther <rguenther@suse.de>
15873 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
15874 of complex types at -O0.
15875 (verify_gimple_assign_binary): Likewise.
15876 (verify_gimple_assign_ternary): Likewise.
15878 2011-03-24 Mark Wielaard <mjw@redhat.com>
15880 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
15881 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
15883 2011-03-24 Mark Wielaard <mjw@redhat.com>
15886 * dwarf2out.c (output_abbrev_section): Only write table when
15887 abbrev_die_table_in_use > 1.
15889 2011-02-24 Richard Henderson <rth@redhat.com>
15891 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
15892 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
15893 (alpha_expand_unaligned_load_words): Use extql.
15894 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
15895 (emit_insxl): Handle all modes for consistency.
15897 2011-02-24 Richard Henderson <rth@redhat.com>
15899 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
15900 (alpha_expand_unaligned_load): Likewise.
15901 (alpha_expand_unaligned_store): Likewise.
15902 (alpha_expand_unaligned_load_words): Likewise.
15903 (alpha_expand_unaligned_store_words): Likewise.
15904 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
15905 (alpha_split_lock_test_and_set_12): Likewise.
15906 (print_operand, alpha_fold_builtin_extxx): Likewise.
15907 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
15908 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
15909 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
15910 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
15911 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
15912 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
15913 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
15914 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
15915 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
15916 (extwl, extll, extql): Similarly.
15917 (inswh, inslh, insqh): Similarly.
15918 (mskbl, mskwl, mskll, mskql): Similarly.
15919 (mskwh, msklh, mskqh): Similarly.
15921 2011-02-24 Richard Henderson <rth@redhat.com>
15923 * config/alpha/alpha.md (attribute isa): Add er, ner.
15924 (attribute enabled): Handle them.
15925 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
15927 2011-02-24 Richard Henderson <rth@redhat.com>
15929 * config/alpha/alpha.md (attribute isa): Add vms.
15930 (attribute enabled): Handle it.
15931 (*movsf): Merge *movsf_{nofix,fix,nofp}.
15932 (*movdf): Merge *movdf_{nofix,fix,nofp}.
15933 (*movtf): Rename from *movtf_internal for consistency.
15934 (*movsi): Merge with *movsi_nt_vms.
15935 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
15936 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
15937 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
15938 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
15940 2011-02-24 Richard Henderson <rth@redhat.com>
15942 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
15943 (extendqisi2, extendhisi2): Likewise.
15944 (extendqidi2): Simplify BWX/non-BWX expansions.
15945 (extendhidi2): Similarly.
15947 2011-02-24 Richard Henderson <rth@redhat.com>
15949 * config/alpha/alpha.md (attribute isa): New.
15950 (attribute enabled): New.
15951 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
15952 (zero_extendqisi2, zero_extendqidi2): Similarly.
15953 (zero_extendhisi2, zero_extendhidi2): Similarly.
15954 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
15956 2011-02-24 Richard Henderson <rth@redhat.com>
15958 * config/alpha/predicates.md (input_operand): Revert last change;
15959 update comment to mention 32-bit VMS rather than Windows.
15961 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
15963 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
15964 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
15965 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
15966 * passes.c (init_optimization_passes): Move
15967 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
15969 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
15971 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
15973 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
15975 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
15978 2011-03-24 Jakub Jelinek <jakub@redhat.com>
15981 * simplify-rtx.c (simplify_const_unary_operation): Call
15982 real_convert when changing mode class with FLOAT_EXTEND.
15984 2011-03-24 Nick Clifton <nickc@redhat.com>
15986 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
15987 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
15988 * config/rx/rx.c (rx_option_override): Set align_jumps,
15989 align_loops and align_labels if not set by the user.
15990 (rx_align_for_label): New function.
15991 (rx_max_skip_for_label): New function.
15992 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
15993 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
15994 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
15995 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
15996 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
15998 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16000 PR rtl-optimization/48263
16001 * optabs.c (expand_binop_directly): Reinstate convert_modes code
16002 and original commutative_p handling. Use maybe_gen_insn.
16004 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16006 * reload.c (find_reloads_subreg_address): Add address_reloaded
16007 parameter and return true there if the full address has been
16009 (find_reloads_toplev): Pass address_reloaded flag.
16010 (find_reloads_address_1): Don't use address_reloaded parameter.
16012 2011-03-24 Jeff Law <law@redhat.com>
16014 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
16015 unused variable "ann".
16016 (remove_unused_locals): Likewise.
16018 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
16021 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
16024 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16026 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
16027 for invalid symbolic addresses.
16028 (s390_secondary_reload): Don't use s390_check_symref_alignment for
16031 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16033 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
16034 the argument in calls to fold_truth_not_expr.
16036 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16038 * tree.c (record_node_allocation_statistics): New function.
16039 (make_node_stat, copy_node_stat, build_string): Call it.
16040 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
16041 (build1_stat, build_omp_clause): Likewise.
16043 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16045 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
16048 2011-03-24 Richard Guenther <rguenther@suse.de>
16050 PR tree-optimization/48271
16051 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
16052 blocks that still exist.
16054 2011-03-24 Richard Guenther <rguenther@suse.de>
16056 PR tree-optimization/48270
16057 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
16058 not free datarefs before ddrs.
16060 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16062 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
16063 from the address built for a reference with variable offset.
16065 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
16068 * config/i386/i386.md (*movdf_internal_rex64): Do not split
16069 alternatives that can be handled with movq or movabsq insn.
16070 (*movdf_internal): Disable for !TARGET_64BIT.
16071 (*movdf_internal_nointeger): Ditto.
16072 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
16074 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16076 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
16077 (FUNCTION_ARG_ADVANCE): Likewise.
16078 * tm.texi.in: Change references to them to hook references.
16079 * tm.texi: Regenerate.
16080 * targhooks.c (default_function_arg): Eliminate check for target macro.
16081 (default_function_incoming_arg): Likewise.
16082 (default_function_arg_advance): Likewise.
16083 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
16084 (function_arg_advance): Likewise.
16085 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
16087 2011-03-24 Richard Guenther <rguenther@suse.de>
16089 PR middle-end/48269
16090 * tree-object-size.c (addr_object_size): Do not double-account
16091 for MEM_REF offsets.
16093 2011-03-24 Diego Novillo <dnovillo@google.com>
16095 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
16096 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
16097 (lto_input_data_block): Move from lto-opts.c. Make extern.
16099 (lto_input_string): Rename from input_string. Make extern.
16101 * lto-streamer-out.c (lto_output_string_with_length): Rename from
16102 output_string_with_length.
16103 Output 0 to indicate a non-NULL string. Update all callers to
16105 (lto_output_string): Rename from output_string. Make extern.
16107 (lto_output_decl_state_streams): Make extern.
16108 (lto_output_decl_state_refs): Make extern.
16109 * lto-streamer.h (lto_input_string): Declare.
16110 (lto_input_data_block): Declare.
16111 (lto_output_string): Declare.
16112 (lto_output_string_with_length): Declare.
16113 (lto_output_decl_state_streams): Declare.
16114 (lto_output_decl_state_refs): Declare.
16116 2011-03-24 Richard Guenther <rguenther@suse.de>
16118 PR tree-optimization/46562
16119 * tree.c (build_invariant_address): New function.
16120 * tree.h (build_invariant_address): Declare.
16121 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
16122 a renamed function moved ...
16123 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
16124 Take valueization callback parameter.
16125 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
16126 * gimple-fold.h: New file.
16127 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
16128 (ccp_fold, fold_const_aggregate_ref,
16129 fold_ctor_reference, fold_nonarray_ctor_reference,
16130 fold_array_ctor_reference, fold_string_cst_ctor_reference,
16131 get_base_constructor): Move ...
16132 * gimple-fold.c: ... here.
16133 (gimple_fold_stmt_to_constant_1): New function
16134 split out from ccp_fold. Take a valueization callback parameter.
16135 Valueize all operands.
16136 (gimple_fold_stmt_to_constant): New wrapper function.
16137 (fold_const_aggregate_ref_1): New function split out from
16138 fold_const_aggregate_ref. Take a valueization callback parameter.
16139 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
16140 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
16141 invariant POINTER_PLUS_EXPRs to invariant form.
16142 (vn_valueize): New function.
16143 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
16144 * tree-vrp.c (vrp_valueize): New function.
16145 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
16146 to fold statements to constants.
16147 * tree-ssa-pre.c (eliminate): Properly guard propagation of
16148 function declarations.
16149 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
16150 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
16152 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16154 * config/h8300/predicates.md (jump_address_operand): Fix register
16157 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
16159 * doc/invoke.texi (max-stores-to-sink): Document.
16160 * params.h (MAX_STORES_TO_SINK): Define.
16161 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
16162 if either vectorization or if-conversion is disabled.
16163 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
16164 tree-vect-data-refs.c vect_equal_offsets.
16165 (dr_equal_offsets_p): New function.
16166 (find_data_references_in_bb): Remove static.
16167 * tree-data-ref.h (find_data_references_in_bb): Declare.
16168 (dr_equal_offsets_p): Likewise.
16169 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
16170 (vect_drs_dependent_in_basic_block): Update calls to
16171 vect_equal_offsets.
16172 (vect_check_interleaving): Likewise.
16173 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
16174 (cond_if_else_store_replacement): Rename to...
16175 (cond_if_else_store_replacement_1): ... this. Change arguments and
16177 (cond_if_else_store_replacement): New function.
16178 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
16179 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
16181 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
16184 * config/arm/arm.md (casesi): Use the gen_int_mode() function
16185 to subtract lower bound instead of GEN_INT().
16187 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
16192 * doc/extend.texi (Alignment): Move section to match order in TOC.
16193 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
16194 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
16196 2011-03-23 Jeff Law <law@redhat.com>
16198 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
16199 before removing the edge.
16201 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
16202 it may have been freed by redirect_branch_edge or
16203 redirect_edge_succ_nodup.
16205 2011-03-23 Richard Guenther <rguenther@suse.de>
16207 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
16208 (check_va_list_escapes): Likewise.
16209 (check_all_va_list_escapes): Likewise.
16211 2011-03-23 Richard Guenther <rguenther@suse.de>
16213 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
16214 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
16215 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
16216 (alias.o): Likewise.
16217 (ipa-type-escape.o): Remove.
16218 (ipa-struct-reorg.o): Likewise.
16219 (GTFILES): Remove ipa-struct-reorg.c.
16220 * alias.c: Do not include ipa-type-escape.h.
16221 * tree-ssa-alias.c: Likewise.
16222 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
16223 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
16224 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
16225 and ipa-type-escape passes.
16226 * tree-pass.h (pass_ipa_type_escape): Remove.
16227 (pass_ipa_struct_reorg): Likewise.
16228 * ipa-struct-reorg.h: Remove.
16229 * ipa-struct-reorg.c: Likewise.
16230 * ipa-type-escape.h: Likewise.
16231 * ipa-type-escape.c: Likewise.
16232 * doc/invoke.texi (-fipa-struct-reorg): Remove.
16233 (--param struct-reorg-cold-struct-ratio): Likewise.
16234 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16235 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16236 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
16238 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16240 * config/s390/2084.md: Enable all insn reservations also for z9_ec
16241 cpu attribute value.
16242 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
16243 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
16244 * config/s390/s390.c (processor_flags_table): New constant array.
16245 (s390_handle_arch_option): Remove.
16246 (s390_handle_option): Remove s390_handle_arch_option invocations
16247 and OPT_mwarn_framesize_ handling.
16248 (s390_option_override): Remove s390_handle_arch_option invocation.
16249 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
16251 * config/s390/s390.md (cpu attribute): Add z9_ec value.
16252 * config/s390/s390.opt (s390_tune, s390_arch)
16253 (march=): Replace s390_arch_option enum and values with
16254 processor_type. Set variable name to s390_arch. Set
16255 initialization value.
16256 (mtune=): Replace s390_arch_option with processor_type. Set
16257 variable name to s390_tune. Set initialization value.
16259 2011-03-23 Julian Brown <julian@codesourcery.com>
16261 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
16262 accesses which are not naturally aligned.
16264 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
16267 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
16269 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
16271 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
16272 parameter from "int" to "enum insn_code".
16273 (expand_operand_type): New enum.
16274 (expand_operand): New structure.
16275 (create_expand_operand): New function.
16276 (create_fixed_operand, create_output_operand): Likewise
16277 (create_input_operand, create_convert_operand_to): Likewise.
16278 (create_convert_operand_from, create_address_operand): Likewise.
16279 (create_integer_operand): Likewise.
16280 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
16281 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16282 (expand_insn, expand_jump_insn): Likewise.
16283 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
16284 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
16285 (expand_movstr, expand_builtin___clear_cache): Likewise.
16286 (expand_builtin_lock_release): Likewise.
16287 * explow.c (allocate_dynamic_stack_space): Likewise.
16288 (probe_stack_range): Likewise. Allow check_stack to FAIL,
16289 and use the default handling in that case.
16290 * expmed.c (check_predicate_volatile_ok): Delete.
16291 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
16292 (emit_cstore): Likewise.
16293 * expr.c (emit_block_move_via_movmem): Likewise.
16294 (set_storage_via_setmem, expand_assignment): Likewise.
16295 (emit_storent_insn, try_casesi): Likewise.
16296 (emit_single_push_insn): Likewise. Allow the expansion to fail.
16297 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
16298 (expand_vec_shift_expr, expand_binop_directly): Likewise.
16299 (expand_twoval_unop, expand_twoval_binop): Likewise.
16300 (expand_unop_direct, emit_indirect_jump): Likewise.
16301 (emit_conditional_move, vector_compare_rtx): Likewise.
16302 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
16303 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
16304 (expand_sync_lock_test_and_set): Likewise.
16305 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
16306 (emit_unop_insn): Likewise.
16307 (expand_copysign_absneg): Change icode to an insn_code.
16308 (create_convert_operand_from_type): New function.
16309 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
16310 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16311 (expand_insn, expand_jump_insn): Likewise.
16312 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
16313 than const_int_operand for operand 2.
16315 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16317 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
16320 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16322 * emit-rtl.c (emit_pattern_before_noloc): New function.
16323 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
16324 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
16325 (emit_pattern_after_noloc): New function.
16326 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
16327 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
16329 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16331 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
16332 (__ffsDI2): Likewise.
16334 2011-03-22 Richard Henderson <rth@redhat.com>
16336 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
16337 of !TARGET_ABI_OPEN_VMS.
16338 (alpha_trampoline_init, alpha_start_function): Likewise.
16339 (alpha_expand_epilogue, alpha_file_start): Likewise.
16340 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
16341 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
16342 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
16343 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
16344 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
16346 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16348 * config/s390/s390-opts.h: New.
16349 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
16350 s390_arch_flags, s390_warn_framesize, s390_stack_size,
16351 s390_stack_guard): Remove.
16352 (s390_handle_arch_option): Return void. Take enum
16353 s390_arch_option value instead of string and searching array.
16354 (s390_handle_option): Don't assert that global structures are in
16355 use. Access variables via opts pointer. Use error_at. Don't use
16356 sscanf for -mstack-guard= or -mstack-size=. Update call to
16357 s390_handle_arch_option.
16358 (s390_option_override): Update call to s390_handle_arch_option.
16359 (s390_emit_prologue): Use %d format for s390_stack_size in
16360 diagnostic. Use %wd for HOST_WIDE_INT.
16361 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
16362 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
16363 * config/s390/s390.opt (config/s390/s390-opts.h): New
16364 HeaderInclude entry.
16365 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
16366 s390_arch_flags, s390_warn_framesize): New Variable entries.
16367 (s390_arch_option): New Enum and EnumValue entries.
16368 (march=): Use Enum instead of Var.
16369 (mstack-guard=, mstack-size=): Use UInteger and Var.
16370 (mtune=): Use Enum.
16372 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16374 * config/score/score.c (score_handle_option): Don't assert that
16375 global structures are in use. Access target_flags via opts
16376 pointer. Use value of -march= option to determine target_flags
16378 * config/score/score.opt (march=): Use Enum.
16379 (score_arch): New Enum and EnumValue entries.
16381 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16383 * config/mep/mep.c (option_mtiny_specified): Remove.
16384 (mep_option_override): Move register handling for -mivc2 from
16385 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
16386 instead of option_mtiny_specified.
16387 (mep_handle_option): Access target_flags via opts pointer. Don't
16388 assert that global structures are in use. Defer part of -mivc2
16389 handling and move it to mep_option_override.
16390 * config/mep/mep.opt (IVC2): New Mask entry.
16391 (mivc2): Use Var and Defer instead of Mask.
16393 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16395 * config/v850/v850-opts.h: New.
16396 * config/v850/v850.c (small_memory): Replace with
16397 small_memory_physical_max array. Make that array static const.
16398 (v850_handle_memory_option): Take integer value of argument. Take
16399 gcc_options pointer, option text and location. Return void.
16400 Update for changes to small memory structures.
16401 (v850_handle_option): Access target_flags via opts pointer. Don't
16402 assert that global structures are in use. Update calls to
16403 v850_handle_memory_option.
16404 (v850_encode_data_area): Update references to small memory settings.
16405 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
16406 (enum small_memory_type): Move to v850-opts.h.
16407 * config/v850/v850.opt (config/v850/v850-opts.h): New
16408 HeaderInclude entry.
16409 (small_memory_max): New Variable entry.
16410 (msda): Replace by pair of options msda= and msda-. Use UInteger.
16411 (mtda, mzda): Likewise.
16413 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16415 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
16416 pointer. Don't assert that global structures are in use.
16418 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16420 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
16421 via opts pointer. Don't assert that global structures are in use.
16423 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16425 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
16426 (munix=93): Use Var.
16427 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
16428 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
16429 * config/pa/pa-opts.h: New.
16430 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
16431 (pa_handle_option): Don't assert that global structures are in
16432 use. Access target_flags via opts pointer. Don't handle
16433 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
16435 (pa_option_override): Handle deferred OPT_mfixed_range_.
16437 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16439 * config/mn10300/mn10300-opts.h: New.
16440 * config/mn10300/mn10300.c (mn10300_processor,
16441 mn10300_tune_string): Remove.
16442 (mn10300_handle_option): Don't assert that global structures are
16443 in use. Access mn10300_processor via opts pointer. Don't handle
16445 * config/mn10300/mn10300.h (enum processor_type): Move to
16447 (mn10300_processor): Remove.
16448 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
16449 HeaderInclude entry.
16450 (mn10300_processor): New Variable entry.
16453 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16455 * config/microblaze/microblaze.c: Don't include opts.h.
16456 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
16457 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
16458 (mno-clearbss): Use Var and Warn.
16460 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16462 * config/m32r/m32r-opts.h: New.
16463 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
16464 (m32r_handle_option): Don't assert that global structures are in
16465 use. Access target_flags and m32r_cache_flush_func via opts
16466 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
16467 OPT_mno_flush_trap here.
16468 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
16469 include of m32r-opts.h.
16470 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
16471 HeaderInclude entry.
16472 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
16473 (mmodel=): Use Enum and Var.
16474 (m32r_model): New Enum and EnumValue entries.
16475 (mno-flush-trap): Use Var.
16476 (msdata=): Use Enum and Var.
16477 (m32r_sdata): New Enum and EnumValue entries.
16479 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16481 * config/m32c/m32c.c: Don't include opts.h.
16482 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
16483 m32c_handle_option): Remove.
16484 (m32c_option_override): Check global_options_set.x_target_memregs
16485 instead of target_memregs_set.
16486 * config/m32c/m32c.h (target_memregs): Remove.
16487 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
16490 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16492 * config/iq2000/iq2000-opts.h: New.
16493 * config/iq2000/iq2000.c: Don't include opts.h.
16494 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
16495 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
16496 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
16497 HeaderInclude entry.
16498 (iq2000_tune): New Variable entry.
16499 (march=): Add comment. Use Enum.
16500 (iq2000_arch): New Enum and EnumValue entries.
16501 (mcpu=): Use Enum and Var.
16502 (iq2000_tune): New Enum and EnumValue entries.
16504 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16506 * config/ia64/ia64-opts.h: New.
16507 * config/ia64/ia64.c (ia64_tune): Remove.
16508 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
16509 here. Use error_at.
16510 (ia64_option_override): Handle deferred OPT_mfixed_range_.
16511 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
16512 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
16513 HeaderInclude entry.
16514 (ia64_tune): New Variable entry.
16515 (mfixed-range=): Use Defer and Var.
16516 (mtune=): Use Enum and Var.
16517 (ia64_tune): New Enum and EnumValue entries.
16519 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16521 * config/frv/frv-opts.h: New.
16522 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
16524 (frv_cpu_type): Remove.
16525 * config/frv/frv.c: Don't include opts.h.
16526 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
16527 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
16528 (frv_cpu_type): New Variable entry.
16529 (frv_cpu): New Enum and EnumValue entries.
16531 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16533 * config/cris/cris.c (cris_handle_option): Access target_flags via
16534 opts pointer. Don't assert that global structures are in use.
16535 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
16536 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
16538 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16540 * config/bfin/bfin-opts.h: New.
16541 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
16542 bfin_si_revision, bfin_workarounds): Remove.
16543 (bfin_cpus): Make static const.
16544 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
16545 not bfin_lib_id_given.
16546 (bfin_handle_option): Don't set bfin_lib_id_given. Access
16547 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
16548 pointer. Use error_at. Don't assert that global structures are in use.
16549 * config/bfin/bfin.h: Include bfin-opts.h.
16550 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
16551 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
16552 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
16553 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
16556 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16558 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
16559 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
16560 or -msoft-float here.
16561 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
16562 -msoft-float and -mhard-float.
16563 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
16564 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16566 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
16568 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
16569 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
16571 (LIBGCC_SPEC): Don't handle -msoft-float.
16572 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
16574 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16576 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
16577 -mfloat-abi=*, not -msoft-float and -mhard-float.
16578 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
16580 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
16581 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
16582 mhard-float and msoft-float.
16583 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
16584 mfloat-abi=soft in comments, not mhard-float and msoft-float.
16585 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
16586 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
16588 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
16589 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
16591 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
16593 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
16596 2011-03-22 Richard Henderson <rth@redhat.com>
16598 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
16599 TARGET_ABI_WINDOWS_NT.
16600 (alpha_output_function_end_prologue): Likewise.
16601 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
16602 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16603 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
16604 (trap, *movsi_nt_vms): Likewise.
16605 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
16606 (*tablejump_osf_nt_internal): Remove.
16607 * config/alpha/predicates.md (input_operand): Only test Pmode.
16609 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16611 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
16612 via opts pointer. Use error_at. Don't assert that global
16613 structures are in use.
16615 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16617 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
16618 (ix86_handle_option): Access ix86_isa_flags and
16619 ix86_isa_flags_explicit via opts pointer. Don't assert that
16620 global structures are in use.
16621 (ix86_function_specific_save, ix86_function_specific_restore):
16622 Update ix86_isa_flags_explicit field name.
16623 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
16624 (ix86_isa_flags_explicit): Rename TargetSave entry to
16625 x_ix86_isa_flags_explicit.
16627 2011-03-22 Richard Henderson <rth@redhat.com>
16629 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
16630 (alpha_option_override, direct_return): Likewise.
16631 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
16632 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
16633 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
16634 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16635 (alpha_expand_epilogue, alpha_end_function): Likewise.
16636 (alpha_init_libfuncs): Likewise.
16637 (struct machine_function): Remove unicosmk members.
16638 (print_operand) ['t']: Remove.
16639 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
16640 unicosmk_output_module_name, unicosmk_output_common,
16641 current_section_align, unicosmk_output_text_section_asm_op,
16642 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
16643 unicosmk_section_type_flags, unicosmk_unique_section,
16644 unicosmk_asm_named_section, unicosmk_insert_attributes,
16645 unicosmk_output_align, unicosmk_defer_case_vector,
16646 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
16647 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
16648 unicosmk_output_ssib, unicosmk_add_call_info_word,
16649 unicosmk_extern_head, unicosmk_output_default_externs,
16650 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
16651 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
16652 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
16653 * config/alpha/alpha-protos.h: Update.
16654 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
16655 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
16656 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
16657 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
16658 (*mulsi_se, mulvsi3): Likewise.
16659 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
16660 (*divmodsi_internal, call, call_value, realign): Likewise.
16661 (moddi3, umoddi3): Likewise; remove duplicate expander.
16662 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
16663 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
16664 (*movdi_nofix): Remove r/U alternative.
16665 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
16666 * config/alpha/constraints.md ("U"): Remove.
16667 * config/alpha/predicates.md (call_operand"): Don't test
16668 TARGET_ABI_UNICOSMK.
16670 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16672 * target.def (handle_option): Take gcc_options and
16673 cl_decoded_option pointers and location_t.
16674 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
16675 * doc/tm.texi: Regenerate.
16676 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
16677 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
16678 * lto-opts.c (lto_reissue_options): Generate option structure for
16679 targetm.handle_option call.
16680 * opts.c (target_handle_option): Update call to
16681 targetm.handle_option. Remove assertions about values now passed
16683 * targhooks.c (default_target_handle_option): New.
16684 * targhooks.h (default_target_handle_option): Declare.
16685 * config/alpha/alpha.c: Include opts.h.
16686 (alpha_handle_option): Update to new hook interface.
16687 * config/arm/arm.c: Include opts.h.
16688 (arm_handle_option): Update to new hook interface.
16689 * config/arm/t-arm (arm.o): Update dependencies.
16690 * config/bfin/bfin.c: Include opts.h.
16691 (bfin_handle_option): Update to new hook interface.
16692 * config/cris/cris.c: Include opts.h.
16693 (cris_handle_option): Update to new hook interface.
16694 * config/frv/frv.c: Include opts.h.
16695 (frv_handle_option): Update to new hook interface.
16696 * config/i386/i386.c: Include opts.h.
16697 (ix86_handle_option): Update to new hook interface.
16698 (ix86_valid_target_attribute_inner_p): Generate option structure
16699 for call to ix86_handle_option.
16700 * config/i386/t-i386 (i386.o): Update dependencies.
16701 * config/ia64/ia64.c: Include opts.h.
16702 (ia64_handle_option): Update to new hook interface.
16703 * config/ia64/t-ia64 (ia64.o): Update dependencies.
16704 * config/iq2000/iq2000.c: Include opts.h.
16705 (iq2000_handle_option): Update to new hook interface.
16706 * config/m32c/m32c.c: Include opts.h.
16707 (m32c_handle_option): Update to new hook interface.
16708 * config/m32r/m32r.c: Include opts.h.
16709 (m32r_handle_option): Update to new hook interface.
16710 * config/m68k/m68k.c: Include opts.h.
16711 (m68k_handle_option): Update to new hook interface.
16712 * config/mep/mep.c: Include opts.h.
16713 (mep_handle_option): Update to new hook interface.
16714 * config/microblaze/microblaze.c: Include opts.h.
16715 (microblaze_handle_option): Update to new hook interface.
16716 * config/mips/mips.c: Include opts.h.
16717 (mips_handle_option): Update to new hook interface.
16718 * config/mn10300/mn10300.c: Include opts.h.
16719 (mn10300_handle_option): Update to new hook interface.
16720 * config/pa/pa.c: Include opts.h.
16721 (pa_handle_option): Update to new hook interface.
16722 * config/pdp11/pdp11.c: Include opts.h.
16723 (pdp11_handle_option): Update to new hook interface.
16724 * config/rs6000/rs6000.c: Include opts.h.
16725 (rs6000_handle_option): Update to new hook interface.
16726 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
16727 * config/rx/rx.c: Include opts.h.
16728 (rx_handle_option): Update to new hook interface.
16729 * config/s390/s390.c: Include opts.h.
16730 (s390_handle_option): Update to new hook interface.
16731 * config/score/score.c: Include opts.h.
16732 (score_handle_option): Update to new hook interface.
16733 * config/sh/sh.c: Include opts.h.
16734 (sh_handle_option): Update to new hook interface.
16735 * config/sparc/sparc.c: Include opts.h.
16736 (sparc_handle_option): Update to new hook interface.
16737 * config/v850/v850.c: Include opts.h.
16738 (v850_handle_option): Update to new hook interface.
16740 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16742 * gcc.c (driver_unknown_option_callback): Only permit and save
16743 unknown -Wno- options.
16744 (driver_wrong_lang_callback): Save options directly instead of via
16745 driver_unknown_option_callback.
16747 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
16749 * combine.c (simplify_set): Try harder to find the best CC mode when
16750 simplifying a nested COMPARE on the RHS.
16752 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16754 * config/alpha/gnu.h: Remove.
16755 * config/arc: Remove directory.
16756 * config/arm/netbsd.h: Remove.
16757 * config/arm/t-pe: Remove.
16758 * config/crx: Remove directory.
16759 * config/i386/netbsd.h: Remove.
16760 * config/m68hc11: Remove directory.
16761 * config/m68k/uclinux-oldabi.h: Remove.
16762 * config/mcore/mcore-pe.h: Remove.
16763 * config/mcore/t-mcore-pe: Remove.
16764 * config/netbsd-aout.h: Remove.
16765 * config/rs6000/gnu.h: Remove.
16766 * config/sh/sh-symbian.h: Remove.
16767 * config/sh/symbian-base.c: Remove.
16768 * config/sh/symbian-c.c: Remove.
16769 * config/sh/symbian-cxx.c: Remove.
16770 * config/sh/symbian-post.h: Remove.
16771 * config/sh/symbian-pre.h: Remove.
16772 * config/sh/t-symbian: Remove.
16773 * config/svr3.h: Remove.
16774 * config/vax/netbsd.h: Remove.
16775 * config.build: Don't handle i[34567]86-*-pe.
16776 * config.gcc: Remove handling of deprecations for most deprecated
16778 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
16779 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
16780 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
16781 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
16782 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
16783 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
16785 * config.host: Don't handle i[34567]86-*-pe.
16786 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
16787 (ASM_SPEC32): Don't handle -mcall-gnu.
16788 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
16790 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
16791 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
16792 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
16793 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
16794 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
16795 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
16796 conditional on SYMBIAN.
16797 * configure.ac: Don't handle powerpc*-*-gnu*.
16798 * configure: Regenerate.
16799 * doc/extend.texi (interrupt attribute): Don't mention CRX.
16800 * doc/install-old.texi (m6811, m6812): Don't mention.
16801 * doc/install.texi (arc-*-elf*): Don't document multilib option.
16802 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
16803 (m68k-uclinuxoldabi): Don't mention.
16804 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
16806 (-mcall-gnu): Remove.
16807 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
16808 families): Remove constraint documentation.
16810 2011-03-22 Marius Strobl <marius@FreeBSD.org>
16812 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
16813 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
16814 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
16816 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16819 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
16820 vector when peeking at the next token for vector, don't expand the
16823 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
16825 * config/avr/avr-protos.h (expand_epilogue): Change prototype
16826 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
16827 * config/avr/avr.c (init_cumulative_args)
16828 (avr_function_arg_advance): Use it.
16829 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
16831 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
16832 (avr_function_ok_for_sibcall): ...this new function.
16833 (avr_lookup_function_attribute1): New static Function.
16834 (avr_naked_function_p, interrupt_function_p)
16835 (signal_function_p, avr_OS_task_function_p)
16836 (avr_OS_main_function_p): Use it.
16837 * config/avr/avr.md ("sibcall", "sibcall_value")
16838 ("sibcall_epilogue"): New expander.
16839 ("*call_insn", "*call_value_insn"): New insn.
16840 ("call_insn", "call_value_insn"): Remove
16841 ("call", "call_value", "epilogue"): Change expander to handle
16844 2011-03-21 Nick Clifton <nickc@redhat.com>
16846 * doc/invoke.texi (Overall Options): Move closing brace to end of
16848 (Optimization Options): Add missing @gol.
16849 (Directory Options): Likewise.
16850 (i386 and x86-64 Options): Likewise.
16851 (RS6000 and PowerPC Options): Likewise.
16852 (i386 and x86-64 Windows Options): Likewise.
16853 (V850 Options): Add text missing from descriptions.
16855 2011-03-22 Richard Henderson <rth@redhat.com>
16857 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
16858 (avr_incoming_return_addr_rtx): New.
16859 (emit_push_byte): New.
16860 (expand_prologue): Use it. Remove incorrect dwarf annotation for
16861 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
16862 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
16863 (emit_pop_byte): New.
16864 (expand_epilogue): Use it. Pop frame pointer by bytes.
16865 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
16866 (INCOMING_RETURN_ADDR_RTX): New.
16867 (INCOMING_FRAME_SP_OFFSET): New.
16868 (ARG_POINTER_CFA_OFFSET): New.
16869 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
16870 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
16873 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
16875 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16877 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
16878 (FUNCTION_ARG_ADVANCE): Likewise.
16879 * tm.texi.in: Change references to them to hook references.
16880 * tm.texi: Regenerate.
16881 * targhooks.c (default_function_arg): Eliminate check for target
16883 (default_function_incoming_arg): Likewise.
16884 (default_function_arg_advance): Likewise.
16885 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
16886 (function_arg_advance): Likewise.
16887 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
16889 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16891 * tree.c (build_call_1): New function.
16892 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
16894 2011-03-22 Richard Guenther <rguenther@suse.de>
16896 PR tree-optimization/48228
16897 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
16898 for single-arg PHIs.
16900 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
16902 PR rtl-optimization/48143
16903 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
16904 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
16905 sse2_cvtps2pd): Likewise.
16907 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16909 * recog.c (canonicalize_change_group): Use validate_unshare_change.
16911 2011-03-22 Richard Guenther <rguenther@suse.de>
16913 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
16914 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
16915 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
16916 and REALIGN_LOAD_EXPR.
16917 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
16918 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
16919 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
16920 DOT_PROD_EXPR case ...
16921 (expand_expr_real_2): ... here.
16922 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
16923 and REALIGN_LOAD_EXPR.
16924 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
16925 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
16926 (vect_create_epilog_for_reduction): Likewise.
16927 (vectorizable_reduction): Likewise.
16928 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
16929 * tree-vect-stmts.c (vectorizable_load): Likewise.
16931 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
16933 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
16935 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16937 * config/s390/s390.c (s390_delegitimize_address): Fix offset
16938 handling for PLTOFF/GOTOFF.
16940 2011-03-22 Nick Clifton <nickc@redhat.com>
16942 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
16943 trailing backslash from the end of the macro definition.
16945 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16947 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
16950 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
16952 * expr.h (prepare_operand): Move to...
16953 * optabs.h (prepare_operand): ...here and change the insn code
16954 parameter from "int" to "enum insn_code".
16955 (insn_operand_matches): Declare.
16956 * expr.c (init_expr_target): Use insn_operand_matches.
16957 (compress_float_constant): Likewise.
16958 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
16959 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
16960 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
16961 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
16963 (gen_cond_trap): Likewise.
16964 (prepare_operand): Likewise. Change icode to an insn_code.
16965 (insn_operand_matches): New function.
16966 * reload.c (find_reloads_address_1): Use insn_operand_matches.
16967 * reload1.c (gen_reload): Likewise.
16968 * targhooks.c (default_secondary_reload): Likewise.
16970 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
16972 * config/alpha/alpha.md (unspec): New define_c_enum.
16975 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
16978 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
16979 between a call and its CALL_ARG_LOCATION note.
16981 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
16983 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
16985 2011-03-21 Jakub Jelinek <jakub@redhat.com>
16989 * c-common.c (shorten_compare): If primopN is first sign-extended
16990 to opN and then zero-extended to result type, set primopN to opN.
16992 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
16994 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
16995 for barrier handlers.
16997 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16999 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
17000 UNSPEC constants to be in the unspec enumeration, and redefine
17001 all UNSPECV constants to be in the unspecv enumeration, so that
17002 dumps print which unspec/unspec_volatile this is.
17003 * config/rs6000/vector.md (UNSPEC_*): Ditto.
17004 * config/rs6000/paired.md (UNSPEC_*): Ditto.
17005 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
17006 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
17007 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
17009 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
17010 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
17011 UNSPECV_LWSYNC, since these are used as unspec_volatile.
17012 * config/rs6000/sync.md (isync, lwsync): Ditto.
17014 2011-03-21 Richard Guenther <rguenther@suse.de>
17016 * params.def (lto-min-partition): Fix typo.
17018 2011-03-21 Richard Guenther <rguenther@suse.de>
17021 * c-decl.c (grokdeclarator): Drop to the main variant only
17022 for array types. Drop flag_gen_aux_info check.
17024 2011-03-21 Richard Guenther <rguenther@suse.de>
17026 PR translation/47911
17027 * params.def (lto-partitions): Fix typo.
17028 (lto-min-partition): Fix wording.
17030 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
17032 * config/rs6000/t-freebsd: Remove duplication from file.
17034 2011-03-21 Richard Guenther <rguenther@suse.de>
17036 PR middle-end/47661
17037 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
17039 2011-03-21 Richard Guenther <rguenther@suse.de>
17042 * params.def (lto-partitions): Require at least 1 partition.
17044 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17046 * gthr-solaris.h: Remove.
17047 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
17048 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
17049 (LIB_SPEC): Likewise.
17050 * config/sol2.opt (threads): Remove.
17051 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
17052 (sparc*-*-solaris2*): Likewise.
17053 * configure.ac (enable_threads): Enable solaris support.
17054 * configure: Regenerate.
17055 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
17056 * doc/install.texi (Configuration, --enable-threads=lib): Remove
17059 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17061 * config.gcc: Obsolete *-*-solaris2.8*.
17062 * doc/install.texi (Specific, *-*-solaris2*): Document it.
17064 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17067 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
17068 reference. Solaris 8 perl works.
17070 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17073 * doc/install.texi (Prerequisites): Move jar etc. up.
17074 Explain support library version requirements.
17076 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17079 * doc/install.texi (Prerequisites): Move Perl to build
17080 requirements. Always necessary on Solaris 2 with Sun ld.
17082 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17084 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
17086 (Specific, i?86-*-solaris2.[89]): Likewise.
17087 (Specific, i?86-*-solaris2.10): Likewise.
17088 (Specific, mips-sgi-irix6): Likewise.
17089 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
17090 Update for binutils 2.21.
17092 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17094 * configure.ac (gcc_cv_lto_plugin): Fix typo.
17095 Allow -fuse-linker-plugin for non-default plugin linker.
17096 * configure: Regenerate.
17098 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
17101 * gengtype.c (files_rules): Added rule for cp/parser.h.
17103 2011-03-21 Jakub Jelinek <jakub@redhat.com>
17106 * config/s390/s390.c (s390_delegitimize_address): Don't call
17107 lowpart_subreg if orig_x has BLKmode.
17109 2011-03-21 Kai Tietz <ktietz@redhat.com>
17112 * doc/plugins.texi: Adjust documentation for plugin register_callback.
17113 * tree.h (attribute_spec): Add new member affects_type_identity.
17114 * attribs.c (empty_attribute_table): Adjust attribute_spec
17116 * config/alpha/alpha.c: Likewise.
17117 * config/arc/arc.c: Likewise.
17118 * config/arm/arm.c: Likewise.
17119 * config/avr/avr.c: Likewise.
17120 * config/bfin/bfin.c: Likewise.
17121 * config/crx/crx.c: Likewise.
17122 * config/darwin.h: Likewise.
17123 * config/h8300/h8300.c: Likewise.
17124 * config/i386/cygming.h: Likewise.
17125 * config/i386/i386.c: Likewise.
17126 * config/ia64/ia64.c: Likewise.
17127 * config/m32c/m32c.c: Likewise.
17128 * config/m32r/m32r.c: Likewise.
17129 * config/m68hc11/m68hc11.c: Likewise.
17130 * config/m68k/m68k.c: Likewise.
17131 * config/mcore/mcore.c: Likewise.
17132 * config/mep/mep.c: Likewise.
17133 * config/microblaze/microblaze.c: Likewise.
17134 * config/mips/mips.c: Likewise.
17135 * config/rs6000/rs6000.c: Likewise.
17136 * config/rx/rx.c: Likewise.
17137 * config/sh/sh.c: Likewise.
17138 * config/sol2.h: Likewise.
17139 * config/sparc/sparc.c: Likewise.
17140 * config/spu/spu.c: Likewise.
17141 * config/stormy16/stormy16.c: Likewise.
17142 * config/v850/v850.c: Likewise.
17144 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
17146 * simplify-rtx.c (simplify_binary_operation_1): Handle
17147 (xor (and A B) C) case when B and C are both constants.
17149 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
17151 * tree-dfa.c (add_referenced_var): Fix typo in comment.
17153 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
17156 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
17158 2011-03-20 Jakub Jelinek <jakub@redhat.com>
17160 PR rtl-optimization/48156
17161 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
17162 assume df and df_lr are not NULL.
17164 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17167 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
17168 between a call and its CALL_ARG_LOCATION note.
17170 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
17173 * config/sh/sh.c (find_barrier): Don't emit a constant pool
17174 between a call and its corresponding CALL_ARG_LOCATION note.
17176 2011-03-19 Anatoly Sokolov <aesok@post.ru>
17178 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
17179 instead of loop. Use HARD_REGISTER_NUM_P predicate.
17180 * haifa-sched.c (setup_ref_regs): Ditto.
17181 * caller-save.c (add_used_regs_1): Ditto.
17182 * dse.c (look_for_hardregs): Ditto.
17183 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
17184 * sched-rgn.c (check_live_1): Ditto.
17186 2011-03-18 Joseph Myers <joseph@codesourcery.com>
17188 * c-decl.c (diagnose_mismatched_decls): Give an error for
17189 redefining a typedef with variably modified type.
17191 2011-03-18 Joseph Myers <joseph@codesourcery.com>
17193 * c-decl.c (grokfield): Don't allow typedefs for structures or
17194 unions with no tag by default.
17195 * doc/extend.texi (Unnamed Fields): Update.
17197 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
17199 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
17200 Rewrite using indirect functions.
17201 (lwp_slwpcb): Ditto.
17202 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
17203 (avx_vinsertf128<mode>): Ditto.
17205 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17207 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
17210 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17212 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
17213 splitting between a call and its corresponding CALL_ARG_LOCATION note.
17215 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
17217 PR rtl-optimization/48170
17218 * gcse.c (hoist_code): Remove bogus asserts.
17220 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
17222 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
17223 computation for prologue/epilogue.
17225 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17227 * Makefile.in (check-consistency): Remove.
17229 2011-03-18 Jakub Jelinek <jakub@redhat.com>
17232 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
17233 arange_table_in_use is 0, but either text_section_used or
17234 cold_text_section_used is true. Don't call it if
17235 !info_section_emitted.
17237 2011-03-18 Anatoly Sokolov <aesok@post.ru>
17239 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
17240 FUNCTION_VALUE_REGNO_P): Remove.
17241 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
17243 * config/avr/avr.c (avr_ret_register): Make static inline.
17244 (avr_function_value_regno_p): New function.
17245 (avr_libcall_value): Make static. Add 'func' argument.
17246 (avr_function_value): Make static. Rename 'func' argument to
17247 'fn_decl_or_type', forward it to avr_libcall_value. Call
17248 avr_ret_register function instead of RET_REGISTER macro.
17249 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17251 2011-03-18 Jason Merrill <jason@redhat.com>
17254 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
17256 2011-03-18 Richard Guenther <rguenther@suse.de>
17258 * doc/install.texi (--enable-gold): Remove.
17259 (--with-plugin-ld): Document.
17260 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
17262 2011-03-18 Andrew Pinski <pinskia@gmail.com>
17264 PR middle-end/47790
17265 * expr.c (optimize_bitfield_assignment_op): Revamp to work
17266 again after expansion changes.
17268 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
17270 * combine.c (try_combine): Do simplification only call of
17271 subst() on i2 even when i1 is present. Update comments.
17273 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
17275 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
17276 and UNSPEC_PCREL_SYMOFF.
17278 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17280 * config/s390/s390.md: Use define_c_enum for the unspec constant
17283 2011-03-18 Richard Henderson <rth@redhat.com>
17284 Jakub Jelinek <jakub@redhat.com>
17287 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
17288 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
17290 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17292 PR middle-end/47725
17293 * combine.c (cant_combine_insn_p): Don't check zero/sign
17294 extended hard registers.
17296 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17298 PR middle-end/47725
17299 * combine.c (cant_combine_insn_p): Check zero/sign extended
17302 2011-03-17 Anatoly Sokolov <aesok@post.ru>
17304 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17305 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
17306 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
17307 Change return type to bool.
17308 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17310 2011-03-17 Jakub Jelinek <jakub@redhat.com>
17313 * var-tracking.c (prepare_call_arguments): If CALL target
17314 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
17315 pc instead of looking it up using cselib_lookup and use
17316 Pmode for it if x has VOIDmode.
17317 * dwarf2out.c (gen_subprogram_die): If also both first and
17318 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
17321 * function.c (assign_parms): For data.passed_pointer parms
17322 use MEM of data.entry_parm instead of data.entry_parm itself
17323 as DECL_INCOMING_RTL.
17324 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
17325 also when passed and declared mode is the same, DECL_RTL
17326 is a MEM with pseudo as address and DECL_INCOMING_RTL is
17329 2011-03-16 Jeff Law <law@redhat.com>
17331 PR rtl-optimization/37273
17332 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17333 handle them like argument loads from stack slots. Do not double
17334 count memory for memory constants and argument loads from stack slots.
17336 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17339 * var-tracking.c (prepare_call_arguments): Check SUBREG.
17341 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17344 * config/i386/i386.opt: Add Save to -mavx and -mfma.
17346 2011-03-17 Jakub Jelinek <jakub@redhat.com>
17349 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
17351 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
17352 Clear call_arg_locations and call_arg_loc_last always.
17354 PR middle-end/48152
17355 * var-tracking.c (prepare_call_arguments): If argument needs to be
17356 passed by reference, adjust argtype and mode.
17358 2011-03-17 Richard Guenther <rguenther@suse.de>
17360 PR middle-end/48134
17361 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
17362 a value make sure to fold the statement.
17364 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
17367 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
17368 return condition with !cfun->calls_alloca.
17370 2011-03-17 Richard Guenther <rguenther@suse.de>
17373 * lto-cgraph.c (input_overwrite_node): Clear the abstract
17374 origin for decls in other ltrans units.
17375 (input_varpool_node): Likewise.
17377 2011-03-17 Richard Guenther <rguenther@suse.de>
17379 PR middle-end/48165
17380 * tree-object-size.c (compute_object_offset): Properly return
17381 the offset operand of MEM_REFs as sizetype.
17383 2011-03-17 Jakub Jelinek <jakub@redhat.com>
17385 PR rtl-optimization/48141
17386 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
17387 * dse.c: Include params.h.
17388 (active_local_stores_len): New variable.
17389 (add_wild_read, dse_step1): Clear it when setting active_local_stores
17391 (record_store, check_mem_read_rtx): Decrease it when removing
17393 (scan_insn): Likewise. Increase it when adding to chain, if it
17394 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
17395 set active_local_stores to NULL before the addition.
17396 * Makefile.in (dse.o): Depend on $(PARAMS_H).
17398 PR rtl-optimization/48141
17399 * dse.c (record_store): If no positions are needed in an insn
17400 that cannot be deleted, at least unchain it from active_local_stores.
17402 2011-03-16 Dodji Seketeli <dodji@redhat.com>
17405 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
17406 (lookup_type_die_strip_naming_typedef): ... here.
17407 (get_context_die): Use it.
17408 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
17409 the anonymous struct named by the naming typedef.
17411 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
17414 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
17415 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17417 2011-03-16 Jeff Law <law@redhat.com>
17419 * tree-vrp.c (identify_jump_threads): Slightly simplify type
17420 check for operands of conditional. Allow type to be a pointer.
17422 2011-03-16 Richard Guenther <rguenther@suse.de>
17424 PR tree-optimization/48149
17425 * fold-const.c (fold_binary_loc): Fold
17426 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
17428 2011-03-16 Richard Guenther <rguenther@suse.de>
17430 PR tree-optimization/26134
17431 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
17432 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
17433 (non_rewritable_mem_ref_base): Handle complex type component
17434 accesses, constrain offsets for vector and complex extracts
17437 2011-03-16 Richard Guenther <rguenther@suse.de>
17439 PR tree-optimization/48146
17440 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
17441 operands avoiding the need for renaming.
17443 2011-03-16 Richard Guenther <rguenther@suse.de>
17445 * gimple-fold.c (maybe_fold_reference): Open-code relevant
17446 constant folding. Move MEM_REF canonicalization first.
17447 Rely on fold_const_aggregate_ref for initializer folding.
17448 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
17450 2011-03-16 Jakub Jelinek <jakub@redhat.com>
17452 PR middle-end/48136
17453 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
17454 arg0/arg1 or their arguments are always fold converted to matching
17457 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
17460 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17463 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
17464 Handle in-tree gold.
17465 (ld_vers): Extract binutils version for gold.
17466 (gcc_cv_ld_hidden): Handle gold here.
17467 (gcc_cv_lto_plugin): Determine level of linker plugin support.
17468 * configure: Regenerate.
17469 * config.in: Regenerate.
17470 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
17471 -fuse-linker-plugin otherwise.
17472 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
17473 (LINK_COMMAND_SPEC): Use it.
17474 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
17476 2011-03-16 Jakub Jelinek <jakub@redhat.com>
17478 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
17479 * calls.c: Remove debug.h include.
17480 (emit_call_1): Don't call virtual_call_token debug hook.
17481 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
17482 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
17483 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
17484 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
17485 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
17486 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
17487 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
17488 dwarf2out_virtual_call): Remove.
17489 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
17490 copy_call_info and virtual_call hooks.
17491 (dwarf2out_init): Don't initialize vcall_insn_table,
17492 debug_dcall_section and debug_vcall_section.
17493 (prune_unused_types): Don't mark nodes from dcall_table.
17494 (dwarf2out_finish): Don't output dcall or vcall tables.
17495 * final.c (final_scan_insn): Don't call direct_call or
17496 virtual_call debug hooks.
17497 * debug.h (struct gcc_debug_hooks): Remove direct_call,
17498 virtual_call_token, copy_call_info and virtual_call hooks.
17499 (debug_nothing_uid): Remove prototype.
17500 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
17501 copy_call_info and virtual_call hooks.
17502 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17503 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
17504 * debug.c (do_nothing_debug_hooks): Likewise.
17505 (debug_nothing_uid): Remove.
17506 * doc/invoke.texi (-fenable-icf-debug): Remove.
17507 * common.opt (-fenable-icf-debug): Likewise.
17509 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
17510 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
17511 call's MEM. Handle functions returning aggregate through a hidden
17512 first pointer. For virtual calls add clobbered pc to call arguments
17514 * dwarf2out.c (gen_subprogram_die): Emit
17515 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
17519 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
17520 * rtl.h (ENTRY_VALUE_EXP): Define.
17521 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
17522 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
17523 * print-rtl.c (print_rtx): Likewise.
17524 * gengtype.c (adjust_field_rtx_def): Likewise.
17525 * var-tracking.c (vt_add_function_parameter): Adjust
17526 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
17527 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
17528 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
17529 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
17530 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
17532 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
17533 Call var_location debug hook even on CALL_INSNs.
17534 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
17535 * rtl.def (ENTRY_VALUE): New.
17536 * dwarf2out.c: Include cfglayout.h.
17537 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17538 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
17539 (struct call_arg_loc_node): New type.
17540 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
17541 tail_call_site_count): New variables.
17542 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
17543 DW_TAG_GNU_call_site_parameter.
17544 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
17545 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
17546 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
17547 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
17548 and DW_AT_GNU_all_source_call_sites.
17549 (mem_loc_descriptor): Handle ENTRY_VALUE.
17550 (add_src_coords_attributes): Don't add enything if
17551 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
17552 (dwarf2out_abstract_function): Save and clear call_arg_location,
17553 call_site_count and tail_call_site_count around dwarf2out_decl call.
17554 (gen_call_site_die): New function.
17555 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
17556 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
17557 (dwarf2out_function_decl): Clear call_arg_locations,
17558 call_arg_loc_last, set call_site_count and tail_call_site_count
17559 to -1 and free block_map.
17560 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
17561 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
17562 followed by any real instructions.
17563 (dwarf2out_begin_function): Set call_site_count and
17564 tail_call_site_count to 0.
17565 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
17566 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
17567 attempt to force a DIE for it and worst case remove the attribute.
17568 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
17569 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
17571 * var-tracking.c: Include tm_p.h.
17572 (vt_stack_adjustments): For calls call note_register_arguments.
17573 (argument_reg_set): New variable.
17574 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
17575 ensure the VALUE is resolved.
17576 (call_arguments): New variable.
17577 (prepare_call_arguments): New function.
17578 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
17579 (struct expand_loc_callback_data): Add ignore_cur_loc field.
17580 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
17581 always use the best expression.
17582 (vt_expand_loc): Add ignore_cur_loc argument.
17583 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
17584 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
17585 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
17586 note for all calls.
17587 (vt_add_function_parameter): Use cselib_lookup_from_insn.
17588 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
17589 argument. Don't call cselib_preserve_only_values and
17590 cselib_reset_table.
17591 (note_register_arguments): New function.
17592 (vt_initialize): Compute argument_reg_set. Call
17593 vt_add_function_parameters before processing basic blocks instead of
17594 afterwards. For calls call prepare_call_arguments before calling
17595 cselib_process_insn.
17596 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
17597 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
17598 (var-tracking.o): Depend on $(TM_P_H).
17599 * cfglayout.h (insn_scope): New prototype.
17600 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
17601 * cfglayout.c (insn_scope): No longer static.
17602 * insn-notes.def (CALL_ARG_LOCATION): New.
17603 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
17604 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
17605 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
17606 nothing for DECL_EXTERNAL BLOCK_VARS.
17608 2011-03-16 Alan Modra <amodra@gmail.com>
17611 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
17612 create invalid offset address for vsx splat insn.
17613 * config/rs6000/predicates.md (splat_input_operand): New.
17614 * config/rs6000/vsx.md (vsx_splat_*): Use it.
17616 2011-03-15 Xinliang David Li <davidxl@google.com>
17619 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
17620 (normalize_preds): New function.
17621 (is_use_properly_guarded): Normalize def predicates.
17623 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17626 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
17627 in the output template.
17629 2011-03-15 Richard Guenther <rguenther@suse.de>
17631 PR middle-end/47650
17632 * tree-pretty-print.c (dump_function_declaration): Properly
17633 dump unprototyped and varargs function types.
17635 2011-03-15 Richard Guenther <rguenther@suse.de>
17637 PR tree-optimization/13954
17638 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
17641 2011-03-15 Richard Guenther <rguenther@suse.de>
17643 PR tree-optimization/48037
17644 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
17645 selects into BIT_FIELD_REFs.
17646 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
17649 2011-03-15 Jakub Jelinek <jakub@redhat.com>
17651 PR tree-optimization/48129
17652 * builtins.c (fold_builtin_snprintf): Convert to type of
17653 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
17654 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
17656 2011-03-15 Richard Guenther <rguenther@suse.de>
17658 PR tree-optimization/41490
17659 * tree-ssa-dce.c (propagate_necessity): Handle returns without
17660 value but with VUSE.
17661 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
17663 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
17664 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
17665 * tree-tailcall.c (find_tail_calls): Ignore returns.
17667 2011-03-15 Richard Guenther <rguenther@suse.de>
17669 PR middle-end/48031
17670 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
17671 or variable-indexed array accesses when in gimple form.
17673 2011-03-15 Richard Guenther <rguenther@suse.de>
17675 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
17677 2011-03-15 Alan Modra <amodra@gmail.com>
17680 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
17681 presume symbol_refs without a symbol_ref_decl are suitably
17682 aligned, nor other trees we may see here. Handle anchor symbols.
17683 (legitimate_constant_pool_address_p): Comment. Add mode param.
17684 Check cmodel=medium addresses. Adjust all calls.
17685 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
17686 creating cmodel=medium optimized access to locals.
17687 * config/rs6000/constraints.md (R): Pass QImode to
17688 legitimate_constant_pool_address_p.
17689 * config/rs6000/predicates.md (input_operand): Pass mode to
17690 legitimate_constant_pool_address_p.
17691 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
17694 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17697 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
17698 64-bit constants being loaded into registers other than GPRs such
17699 as loading 0 into a VSX register.
17701 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17703 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
17705 2011-03-14 Jakub Jelinek <jakub@redhat.com>
17707 PR middle-end/47917
17708 * builtins.c (fold_builtin_snprintf): New function.
17709 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
17710 (fold_builtin_4): Likewise.
17712 PR middle-end/38878
17713 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
17714 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
17715 and C - X == X also strip nops from +/-/p+ operand.
17716 When optimizing -X == C, fold C to arg0's type.
17719 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
17720 emit it as add_AT_int instead of add_AT_unsigned.
17722 2011-03-14 Tom Tromey <tromey@redhat.com>
17724 * unwind-dw2.c: Include sys/sdt.h if it exists.
17725 (_Unwind_DebugHook): Use STAP_PROBE2.
17726 * config.in, configure: Rebuild.
17727 * configure.ac: Check for sys/sdt.h.
17729 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
17731 * config/i386/i386.md (ROUND_FLOOR): New constant.
17732 (ROUND_CEIL): Ditto.
17733 (ROUND_TRUNC): Ditto.
17734 (ROUND_MXCSR): Ditto.
17735 (ROUND_NO_EXC): Ditto.
17736 (rint<mode>2): Use new defines instead of numerical constants.
17737 (floor<mode>2): Ditto.
17738 (ceil<mode>2): Ditto.
17739 (btrunc<mode>2): Ditto.
17740 * config/i386/i386-builtin-types.def: Define ROUND function type
17742 * config/i386/i386.c (enum ix86_builtins): Add
17743 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
17744 (struct builtin_description): Add
17745 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
17746 (ix86_expand_sse_round): New static function.
17747 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
17749 (ix86_builtin_vectorized_function): Handle
17750 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17752 2011-03-14 Tom Tromey <tromey@redhat.com>
17754 * c-parser.c (c_parser_asm_string_literal): Clear
17755 warn_overlength_strings.
17757 2011-03-14 Tom Tromey <tromey@redhat.com>
17759 * c-parser.c (disable_extension_diagnostics): Save
17760 warn_overlength_strings.
17761 (restore_extension_diagnostics): Restore warn_overlength_strings.
17763 2011-03-14 Jakub Jelinek <jakub@redhat.com>
17765 * BASE-VER: Change to 4.7.0.
17767 2011-03-14 Richard Guenther <rguenther@suse.de>
17769 PR middle-end/48098
17770 * tree.c (build_vector_from_val): Adjust assert to requirements
17773 2011-03-14 Jakub Jelinek <jakub@redhat.com>
17776 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
17778 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
17780 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
17781 terms of target_flags_explicit. Adjust copyright year.
17783 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
17784 * config/rs6000/t-freebsd: New file. Add override for
17787 2011-03-13 Chris Demetriou <cgd@google.com>
17789 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
17790 (-fno-diagnostics-show-option): this, to reflect current default.
17791 (-Werror=): Update text about -fno-diagnostics-show-option.
17793 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
17796 * config/rs6000/predicates.md (easy_vector_constant_add_self,
17797 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
17798 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
17799 mode is not V2DImode or V2DFmode.
17800 (vspltis_constant): Do not handle V2DImode and V2DFmode.
17801 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
17802 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
17804 (movdi_internal64): Likewise.
17806 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
17808 PR tree-optimization/47127
17809 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
17811 (set_cloog_options): Same.
17812 (scop_to_clast): Same.
17813 (print_clast_stmt): Do not call cloog_state_malloc and
17815 (print_generated_program): Same.
17817 * graphite-clast-to-gimple.h (cloog_state): Declared.
17818 (scop_to_clast): Adjust declaration.
17819 * graphite.c (cloog_state): Defined here.
17820 (graphite_initialize): Call cloog_state_malloc.
17821 (graphite_finalize): Call cloog_state_free.
17823 2011-03-11 Jason Merrill <jason@redhat.com>
17825 * attribs.c (lookup_attribute_spec): Take const_tree.
17828 2011-03-11 Joseph Myers <joseph@codesourcery.com>
17830 * config/sparc/sparc.c (sparc_option_override): Use
17831 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
17833 2011-03-11 Richard Guenther <rguenther@suse.de>
17835 PR tree-optimization/48067
17836 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
17837 multiplication result will be only used once on the target
17840 2011-03-11 Richard Guenther <rguenther@suse.de>
17842 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
17844 2011-03-11 Richard Guenther <rguenther@suse.de>
17847 * tree.c (find_decls_types_r): Do not walk types only reachable
17848 from IDENTIFIER_NODEs.
17850 2011-03-11 Jakub Jelinek <jakub@redhat.com>
17852 PR middle-end/48044
17853 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
17854 all vnode->force_output nodes as needed.
17856 2011-03-11 Jason Merrill <jason@redhat.com>
17859 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
17860 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
17862 2011-03-11 Martin Jambor <mjambor@suse.cz>
17864 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
17867 2011-03-11 Jakub Jelinek <jakub@redhat.com>
17869 PR tree-optimization/48063
17870 * ipa-inline.c (cgraph_decide_inlining): Don't try to
17871 inline functions called once if !tree_can_inline_p (node->callers).
17873 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
17875 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
17877 * config/score/score3.c: Delete.
17878 * config/score/score3.h: Delete.
17879 * config/score/mul-div.S: Delete.
17880 * config/score/sfp-machine.h: Add new file.
17881 * config/score/constraints.md: Add new file.
17882 * config/score/t-score-softfp: Add new file.
17883 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
17884 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
17885 (score7_extra_constraint): Delete.
17886 (score7_option_override): Remove unused code.
17887 * config/score/score.c: Remove score3 and score5 define and code.
17888 * config/score/score.h: Remove score3 and score5 define and code.
17889 * config/score/score.md: Remove score3 template and unusual insn.
17890 * config/score/score.opt: Remove score3 and score5 options.
17892 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17894 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
17895 when _HPUX_SOURCE is defined.
17896 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
17898 2011-03-10 Jason Merrill <jason@redhat.com>
17901 * stor-layout.c (layout_type): Don't set structural equality
17902 on arrays of incomplete type.
17903 * tree.c (type_hash_eq): Handle comparing them properly.
17905 2011-03-10 Jakub Jelinek <jakub@redhat.com>
17908 * config/s390/s390.c (s390_delegitimize_address): Make sure the
17909 result mode matches original rtl mode.
17911 2011-03-10 Nick Clifton <nickc@redhat.com>
17913 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
17914 (andsi3, andsi3_flags): Fix timings for three operand alternative.
17916 2011-03-09 Jakub Jelinek <jakub@redhat.com>
17918 PR rtl-optimization/47866
17919 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
17920 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
17921 if target wasn't scalar.
17922 * function.c (assign_stack_temp_for_type): Assert that neither
17923 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
17924 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
17926 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
17928 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17930 * config/s390/s390-protos.h (s390_label_align): New prototype.
17931 * config/s390/s390.c (s390_label_align): New function.
17932 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
17934 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
17937 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
17938 V2DI/V2DF constants. Only all 0's or all 1's are easy.
17939 (output_vec_const_move): Ditto.
17941 2011-03-08 Anatoly Sokolov <aesok@post.ru>
17943 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
17944 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
17945 * config/mips/mips.c (mips_preferred_reload_class): Make static.
17946 Change 'rclass' argument and result type to reg_class_t.
17947 (TARGET_PREFERRED_RELOAD_CLASS): Define.
17949 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
17951 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17952 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
17953 (TARGET_MEMORY_MOVE_COST): Define.
17954 (avr_register_move_cost, avr_memory_move_cost): New Functions.
17956 2011-03-08 Jakub Jelinek <jakub@redhat.com>
17959 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
17962 PR tree-optimization/48022
17963 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
17966 2011-03-07 Jakub Jelinek <jakub@redhat.com>
17969 * var-tracking.c (find_use_val): Return NULL for
17970 cui->sets && cui->store_p BLKmode MEMs.
17972 2011-03-07 Anatoly Sokolov <aesok@post.ru>
17974 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
17976 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
17977 xstormy16_print_operand_address): Remove.
17978 * config/stormy16/stormy16.c (xstormy16_print_operand,
17979 xstormy16_print_operand_address): Make static.
17980 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
17982 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
17985 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
17986 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
17989 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
17992 * cfgloopmanip.c (fix_bb_placements): Return immediately
17993 if FROM is BASE_LOOP's header.
17995 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
17997 * gimplify.c (gimplify_function_tree): Fix building calls
17998 to __builtin_return_address.
18000 2011-03-07 Alan Modra <amodra@gmail.com>
18002 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
18003 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
18004 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
18005 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
18007 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
18008 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
18009 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
18010 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
18011 * config/rs6000/rs6000.c
18012 (rs6000_elf_end_indicate_exec_stack): Rename to..
18013 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
18014 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
18015 (rs6000_file_start): ..here.
18016 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
18017 file scope variables.
18018 (call_ABI_of_interest): New function.
18019 (init_cumulative_args): Set above vars when function return value
18020 is a float, vector, or small struct.
18021 (rs6000_function_arg_advance_1): Likewise for function args.
18022 (rs6000_va_start): Set rs6000_passes_float if variable arg function
18023 references float args.
18025 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
18027 * doc/cfg.texi: Remove "See" before @ref.
18028 * doc/invoke.texi: Likewise.
18030 2011-03-05 Jason Merrill <jason@redhat.com>
18032 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
18034 2011-03-05 Anthony Green <green@moxielogic.com>
18036 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
18038 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
18040 PR rtl-optimization/47899
18041 * cfgloopmanip.c (fix_bb_placements): Fix first argument
18042 to flow_loop_nested_p when moving the loop upward.
18044 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
18047 * arm.md (movhi_insn_arch4): Accept any immediate constant.
18049 2011-03-05 Jakub Jelinek <jakub@redhat.com>
18051 PR tree-optimization/47967
18052 * ipa-cp.c (build_const_val): Return NULL instead of creating
18053 VIEW_CONVERT_EXPR for mismatching sizes.
18054 (ipcp_create_replace_map): Return NULL if build_const_val failed.
18055 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
18056 give up on versioning.
18058 2011-03-05 Alan Modra <amodra@gmail.com>
18061 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18062 full cmodel medium/large lo_sum + high addresses.
18064 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18066 * config/s390/s390.c (s390_decompose_address): Reject non-literal
18067 pool references in UNSPEC_LTREL_OFFSET.
18069 2011-03-04 Jan Hubicka <jh@suse.cz>
18072 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
18073 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
18074 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
18076 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
18077 cgraph_add_thunk): Add node pointers.
18078 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
18079 associated to right node.
18080 (input_node): Update use of cgraph_same_body_alias
18081 and cgraph_add_thunk.
18083 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
18085 * config/i386/i386.opt (mprefer-avx128): New flag.
18086 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
18087 modes when the flag -mprefer-avx128 is on.
18089 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
18091 * dwarf2out.c (compare_loc_operands): Fix address handling.
18093 2011-03-04 Alan Modra <amodra@gmail.com>
18095 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
18097 2011-03-04 Richard Guenther <rguenther@suse.de>
18099 PR middle-end/47968
18100 * expmed.c (extract_bit_field_1): Prefer vector modes that
18101 vec_extract patterns can handle.
18103 2011-03-04 Richard Guenther <rguenther@suse.de>
18105 PR middle-end/47975
18106 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
18108 2011-03-04 Richard Henderson <rth@redhat.com>
18110 * explow.c (emit_stack_save): Remove 'after' parameter.
18111 (emit_stack_restore): Likewise.
18112 * expr.h: Update to match.
18113 * builtins.c, calls.c, stmt.c: Likewise.
18114 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
18115 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
18116 * function.c (expand_function_end): Insert the emit_stack_save
18117 sequence before parm_birth_insn instead of after.
18119 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
18121 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
18122 (ssse3_pmaddubsw128): Ditto.
18123 (ssse3_pmaddubsw): Ditto.
18125 2011-03-03 Steve Ellcey <sje@cup.hp.com>
18127 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
18129 2011-03-03 Jakub Jelinek <jakub@redhat.com>
18132 * gimplify.c (omp_add_variable): Only call omp_notice_variable
18133 on TYPE_SIZE_UNIT if it is a DECL.
18136 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
18137 first operand is not is_gimple_mem_ref_addr, try to fold it.
18138 If the operand still isn't is_gimple_mem_ref_addr, clear
18141 2011-03-03 Richard Guenther <rguenther@suse.de>
18143 PR middle-end/47283
18144 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
18146 (refs_may_alias_p_1): For release branches return true if
18147 we are confused by our input.
18149 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18151 * config/s390/s390.c (s390_function_value): Rename to ...
18152 (s390_function_and_libcall_value): ... this.
18153 (s390_function_value): New function.
18154 (s390_libcall_value): New function.
18155 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
18156 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
18157 target macro definitions.
18158 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
18160 2011-03-02 Joseph Myers <joseph@codesourcery.com>
18162 * config/i386/freebsd64.h (CC1_SPEC): Define.
18163 * config/i386/linux64.h (CC1_SPEC): Define.
18164 * config/i386/x86-64.h (CC1_SPEC): Don't define.
18166 2011-03-02 Anatoly Sokolov <aesok@post.ru>
18168 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18170 * config/stormy16/stormy16.c: Include reload.h.
18171 (xstormy16_memory_move_cost): New function.
18172 (TARGET_MEMORY_MOVE_COST): Define.
18174 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
18176 PR rtl-optimization/47925
18177 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
18178 with side effects. Remove the more-specific check for volatile asms.
18180 2011-03-02 Alan Modra <amodra@gmail.com>
18183 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
18184 toc relative addresses for valid offsets.
18186 2011-03-01 Richard Guenther <rguenther@suse.de>
18188 PR tree-optimization/47890
18189 * tree-vect-loop.c (get_initial_def_for_induction): Set
18190 related stmt properly.
18192 2011-03-01 Richard Guenther <rguenther@suse.de>
18195 * lto-streamer.c (lto_record_common_node): Also register
18196 the canonical type.
18198 2011-03-01 Richard Guenther <rguenther@suse.de>
18201 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18202 Do not stream DECL_ABSTRACT_ORIGIN.
18203 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18204 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18205 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18206 Do not stream DECL_ABSTRACT_ORIGIN.
18207 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18208 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18210 2011-02-28 Anatoly Sokolov <aesok@post.ru>
18212 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
18213 FUNCTION_VALUE_REGNO_P): Remove.
18214 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
18215 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
18216 Add 'outgoing' argument.
18217 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
18219 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18220 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18222 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
18225 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
18226 (lookup_filename): Likewise.
18227 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
18229 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
18230 Jakub Jelinek <jakub@redhat.com>
18232 PR middle-end/47893
18233 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
18234 (assign_stack_local_1): Change last argument type to int.
18235 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
18236 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
18237 don't record padding space into frame_space_list nor use those areas.
18238 (assign_stack_local): Adjust caller.
18239 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
18240 of assign_stack_local, pass 0 as last argument.
18241 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
18244 2011-02-28 Jakub Jelinek <jakub@redhat.com>
18247 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
18248 Use target address_mode and pointer_mode hooks instead of hardcoded
18249 Pmode and ptr_mode. Handle some simple cases of extending if
18250 POINTERS_EXTEND_UNSIGNED < 0.
18251 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
18252 Call convert_debug_memory_address.
18253 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
18254 convert_debug_memory_address.
18256 PR middle-end/46790
18257 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
18258 * configure: Regenerated.
18259 * config.in: Regenerated.
18260 * varasm.c (default_function_section): Return NULL
18261 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
18263 2011-02-28 Martin Jambor <mjambor@suse.cz>
18265 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
18266 the description to match the printed values.
18268 2011-02-28 Richard Guenther <rguenther@suse.de>
18270 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
18271 of the copied scope tree.
18273 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18275 * doc/extend.texi (Function Attributes): Avoid deeply (and
18276 wrongly) nested tables.
18278 2011-02-27 Jakub Jelinek <jakub@redhat.com>
18280 PR middle-end/47903
18281 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
18282 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
18283 r isn't op0 nor op1.
18285 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
18287 * config/avr/avr.md: Remove magic comment for emacs.
18289 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
18292 * config/avr/avr.c (avr_option_override): Use error on bad options.
18293 (avr_help): New function.
18294 (TARGET_HELP): Define.
18296 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
18299 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
18300 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
18302 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
18304 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
18305 (ARM Options): Ditto.
18306 (i386 and x86-64 Options): Ditto.
18307 (RX Options): Ditto.
18308 (SPARC Options): Ditto.
18310 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
18312 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
18313 FreeBSD 6 and later. Generally use cpu generic.
18315 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
18317 * doc/cpp.texi: Update copyright years.
18319 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
18322 * config/lm32/lm32.md (ashrsi3): Added needed variable.
18324 2011-02-25 Jon Beniston <jon@beniston.com>
18327 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
18328 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
18329 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
18330 (lm32_block_move_inline): Add type cast to remove warning.
18331 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
18332 (gen_int_relational): Move declarations to start of function.
18334 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
18336 PR tree-optimization/45470
18337 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
18338 can throw internally only.
18339 * tree-vect-stmts.c (vectorizable_call): Likewise.
18341 2011-02-24 Anatoly Sokolov <aesok@post.ru>
18343 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
18344 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
18345 * config/stormy16/stormy16-protos.h
18346 (xstormy16_preferred_reload_class): Remove.
18347 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
18348 static. Change 'rclass' argument and return type to reg_class_t.
18349 (TARGET_PREFERRED_RELOAD_CLASS,
18350 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
18352 2011-02-24 Richard Guenther <rguenther@suse.de>
18354 * lto-streamer-in.c (input_bb): Do not find referenced vars
18355 in debug statements.
18357 2011-02-23 Jason Merrill <jason@redhat.com>
18359 * common.opt (fabi-version): Document v5 and v6.
18361 2011-02-23 Richard Guenther <rguenther@suse.de>
18363 PR tree-optimization/47849
18364 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
18366 2011-02-23 Jie Zhang <jie@codesourcery.com>
18368 * opts-common.c (decode_cmdline_option): Print empty string
18369 argument as "" in decoded->orig_option_with_args_text.
18370 * gcc.c (execute): Print empty string argument as ""
18371 in the verbose output.
18372 (do_spec_1): Keep empty string argument.
18374 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
18376 * config.gcc: Declare score-* and crx-* obsolete.
18378 2011-02-23 Jie Zhang <jie@codesourcery.com>
18380 PR rtl-optimization/47763
18381 * web.c (web_main): Ignore naked clobber when replacing register.
18383 2011-02-22 Anatoly Sokolov <aesok@post.ru>
18385 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18388 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
18391 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
18393 2011-02-22 Mike Stump <mikestump@comcast.net>
18395 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
18397 * configure: Regenerate.
18399 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
18401 PR rtl-optimization/46002
18402 * ira-color.c (update_copy_costs): Change class intersection
18403 test to reg_class_contents[] test of 'hard_regno'.
18405 2011-02-21 Joseph Myers <joseph@codesourcery.com>
18407 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
18408 than Driver option.
18409 * config/hpux11.opt (mt): Likewise.
18410 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
18411 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
18412 * config/vax/elf.opt (mno-asm-pic): Likewise.
18413 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
18415 2011-02-21 Mike Stump <mikestump@comcast.net>
18418 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
18419 tree so we can get save the type.
18420 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
18421 for CFString instead of trying to use past the end of the builtins.
18422 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
18423 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
18424 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
18425 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
18426 Rename to darwin_builtin_cfstring.
18427 (darwin_init_cfstring_builtins): Return the built type.
18429 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
18432 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
18433 (_mm256_insert_epi64): Use _mm_insert_epi64.
18435 2011-02-21 Anatoly Sokolov <aesok@post.ru>
18437 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18438 * config/stormy16/stormy16-protos.h
18439 (xstormy16_mode_dependent_address_p): Remove.
18440 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
18441 Make static. Change return type to bool. Change argument type to
18442 const_rtx. Remove dead code.
18443 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18445 2011-02-21 Richard Guenther <rguenther@suse.de>
18448 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18449 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18450 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
18452 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18453 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18455 2011-02-20 Richard Guenther <rguenther@suse.de>
18458 * tree.c (free_lang_data_in_decl): Clean builtins from
18459 the TU decl BLOCK_VARS.
18461 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
18465 * haifa-sched.c (fix_tick_ready): Skip tick computation
18468 2011-02-19 Richard Guenther <rguenther@suse.de>
18471 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
18472 Remove lazy BLOCK_VARS streaming.
18473 (lto_input_ts_block_tree_pointers): Likewise.
18474 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
18476 2011-02-19 Joseph Myers <joseph@codesourcery.com>
18478 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
18480 2011-02-19 Joseph Myers <joseph@codesourcery.com>
18482 * config/i386/biarch32.h, config/i386/mach.h,
18483 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
18485 2011-02-19 Jakub Jelinek <jakub@redhat.com>
18488 * config/i386/i386.md (peephole2 for shift and plus): Use
18489 operands[1] original mode in the first insn.
18491 2011-02-18 Mike Stump <mikestump@comcast.net>
18493 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
18495 2011-02-18 Jan Hubicka <jh@suse.cz>
18497 PR middle-end/47788
18498 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
18499 to zero when the function is not inlinable at all.
18501 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18503 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
18504 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
18505 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
18506 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
18507 * config/pa/t-pa64: Likewise.
18508 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
18510 2011-02-18 Jakub Jelinek <jakub@redhat.com>
18513 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
18515 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18518 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
18520 2011-02-18 Anatoly Sokolov <aesok@post.ru>
18522 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
18523 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
18524 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
18525 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18526 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
18527 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
18528 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
18529 m32r_load_postinc_p, m32r_store_preinc_predec_p,
18530 m32r_legitimate_address_p): New functions.
18531 * config/m32r/constraints.md (constraint "S"): Don't use
18532 STORE_PREINC_PREDEC_P.
18533 (constraint "U"): Don't use LOAD_POSTINC_P.
18535 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
18537 PR rtl-optimization/46178
18538 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
18539 compute ira_hard_regno_cover_class[].
18541 2011-02-18 Richard Guenther <rguenther@suse.de>
18544 * lto-streamer.h (lto_global_var_decls): Declare.
18545 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
18546 statics for global var processing.
18548 2011-02-18 Richard Guenther <rguenther@suse.de>
18550 PR tree-optimization/47737
18551 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
18552 edge dominance check.
18554 2011-02-18 Jakub Jelinek <jakub@redhat.com>
18557 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
18558 avoid invalid rtx sharing.
18560 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
18562 * doc/cpp.texi (Obsolete Features): Add background on the
18563 origin of assertions.
18565 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
18567 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
18569 * config/darwin.c (output_objc_section_asm_op): Added support for
18571 (is_objc_metadata): New.
18572 (darwin_objc2_section): New.
18573 (darwin_objc1_section): New.
18574 (machopic_select_section): Added support for ABI v1 and v2.
18575 (darwin_emit_objc_zeroed): New.
18576 (darwin_output_aligned_bss): Detect objc metadata and treat it
18578 (darwin_asm_output_aligned_decl_common): Same.
18579 (darwin_asm_output_aligned_decl_local): Same.
18580 * config/darwin-sections.def: Updated for ABI v1 and v2.
18581 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
18582 compiling Objective-C code for the NeXT runtime, default to using
18583 ABI version 0 for 32-bit, and version 2 for 64-bit.
18585 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18587 * common.opt (optimize_fast): New Variable.
18588 * opts.c (default_options_optimization): Use opts->x_optimize_fast
18589 instead of local variable ofast.
18591 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
18593 * doc/invoke.texi (fobjc-abi-version): Documented.
18594 (fobjc-nilcheck): Documented.
18595 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
18598 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18601 * common.opt (export-dynamic): New Driver option.
18602 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
18604 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18606 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
18608 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
18609 Jan Hubicka <jh@suse.cz>
18613 * cfgexpand.c (account_used_vars_for_block): Remove.
18614 (estimated_stack_frame_size): Use referenced vars.
18615 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
18616 that were referenced in the original function. Test src_fn
18617 rather than cfun. Drop redundant get_var_ann.
18618 (setup_one_parameter): Drop redundant get_var_ann.
18619 (declare_return_variable): Likewise.
18620 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
18621 (copy_arguments_for_versioning): Drop redundant get_var_ann.
18622 * ipa-inline.c (compute_inline_parameters): Do not compute
18623 disregard_inline_limits here.
18624 (compute_inlinable_for_current, pass_inlinable): New.
18625 (pass_inline_parameters): Require PROP_referenced_vars.
18626 * cgraphunit.c (cgraph_process_new_functions): Don't run
18627 compute_inline_parameters explicitly unless function is in SSA form.
18628 (cgraph_analyze_function): Set .disregard_inline_limits.
18629 * tree-sra.c (convert_callers): Compute inliner parameters
18630 only for functions already in SSA form.
18632 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18634 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
18635 -mlittle-endian-data.
18637 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18639 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
18640 -mno-fpu, not -fpu and -no-fpu.
18641 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
18642 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
18644 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
18647 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
18648 input reload with PLUS RTX.
18650 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18652 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
18653 of InverseVar(MDMX).
18655 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18657 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
18660 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18662 * config/mn10300/mn10300.opt (mno-crt0): New.
18664 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18666 * config/m68k/uclinux.opt (static-libc): New Driver option.
18668 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18670 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
18672 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18674 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
18675 %{muser-extend-enabled}.
18677 2011-02-16 Richard Guenther <rguenther@suse.de>
18679 PR tree-optimization/47738
18680 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
18681 the TODO from tree_predictive_commoning.
18683 2011-02-15 Jeff Law <law@redhat.com>
18686 2011-01-25 Jeff Law <law@redhat.com>
18688 PR rtl-optimization/37273
18689 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18690 handle them like argument loads from stack slots. Do not double
18691 count memory for memory constants and argument loads from stack slots.
18693 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
18695 PR middle-end/47725
18696 * combine.c (cant_combine_insn_p): Revert the last change.
18698 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18701 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
18702 mode for vector constants. Remove code that checks for TImode.
18704 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
18708 * cgraph.h (compute_inline_parameters): Return void.
18709 * ipa-inline.c (compute_inline_parameters): Adjust.
18711 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
18715 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
18717 * cfgexpand.c (estimated_stack_frame_size): Likewise.
18718 * ipa-inline.c (compute_inline_parameters): Adjust.
18720 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
18724 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
18725 Adjust all users. Pass FN to...
18726 * tree-flow-inline.h (first_referenced_var): ... this. Add
18728 * ipa-struct-reorg.c: Adjust.
18729 * tree-dfa.c: Adjust.
18730 * tree-into-ssa.c: Adjust.
18731 * tree-sra.c: Adjust.
18732 * tree-ssa-alias.c: Adjust.
18733 * tree-ssa-live.c: Adjust.
18734 * tree-ssa.c: Adjust.
18735 * tree-ssanames.c: Adjust.
18736 * tree-tailcall.c: Adjust.
18738 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
18742 * tree-flow.h (referenced_var_lookup): Add fn parameter.
18743 Adjust all callers.
18744 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
18745 * tree-flow-inline.h: Adjust.
18746 * gimple-pretty-print.c: Adjust.
18747 * tree-into-ssa.c: Adjust.
18748 * tree-ssa.c: Adjust.
18749 * cfgexpand.c: Adjust.
18751 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
18753 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
18754 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18755 (EXTRA_CONSTRAINT): Delete.
18756 * config/iq2000/constraints.md: New file.
18757 * config/iq2000/iq2000.md: Include it.
18758 (define_insn ""): Delete.
18759 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
18760 unsupported constraint letters from patterns.
18761 (call_value, call_value_internal1): Likewise.
18762 (call_value_multiple_internal1): Likewise.
18764 2011-02-15 Nick Clifton <nickc@redhat.com>
18766 * config/mn10300/mn10300.c: Include tm-constrs.h.
18767 (struct liw_data): New data structure describing an LIW candidate
18769 (extract_bundle): Use struct liw_data. Allow small integer
18770 operands for some instructions.
18771 (check_liw_constraints): Use struct liw_data. Remove swapped
18772 parameter. Add comments describing the checks. Fix bug when
18773 assigning the source of liw1 to the source of liw2.
18774 (liw_candidate): Delete. Code moved into extract_bundle.
18775 (mn10300_bundle_liw): Use struct liw_data. Check constraints
18777 * config/mn10300/predicates.md (liw_operand): New predicate.
18778 Allows registers and small integer constants.
18779 * config/mn10300/constraints.md (O): New constraint. Accetps
18780 integers in the range -8 to +7 inclusive.
18781 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
18782 for moving a small integer into a register. Give this alternative
18784 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
18785 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
18786 using the J,K,L and M constraints,
18787 (liw): Remove SI mode on second operands to allow for HI and QI
18789 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
18792 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
18794 PR middle-end/47725
18795 * combine.c (cant_combine_insn_p): Check zero/sign extended
18798 2011-02-15 Richard Guenther <rguenther@suse.de>
18800 PR tree-optimization/47743
18801 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
18802 for a non-type-compatible VN lookup bail out.
18804 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
18806 * config/fr30/constraints.md: New file.
18807 * config/fr30/fr30.md: Include it.
18808 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
18809 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18810 (EXTRA_CONSTRAINT): Delete.
18812 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
18814 * config/frv/constraints.md: New file.
18815 * config/frv/predicates.md: Include it.
18816 * config/frv/frv.c (reg_class_from_letter): Delete.
18817 (frv_option_override): Don't initialize it.
18818 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
18819 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
18820 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
18821 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
18822 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
18823 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18824 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
18825 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
18826 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
18827 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
18828 (REG_CLASS_FROM_CONSTRAINT): Delete.
18830 2011-02-15 Jakub Jelinek <jakub@redhat.com>
18832 PR middle-end/47581
18833 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
18834 if frame size is 0 in a leaf function.
18836 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18839 * config/alpha/host-osf.c: New file.
18840 * config/alpha/x-osf: New file.
18841 * config.host (alpha*-dec-osf*): Use it.
18843 2011-02-14 Anatoly Sokolov <aesok@post.ru>
18845 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18846 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
18847 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
18848 (rx_mode_dependent_address_p): ...this. Make static. Change argument
18850 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18852 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
18854 * config/stormy16/constraints.md: New file.
18855 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
18856 Use satisfies_constraint_Q and satisfies_constraint_R.
18857 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
18859 (xstormy16_legitiamte_address_p): Declare.
18860 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
18861 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18862 (EXTRA_CONSTRAINT): Delete.
18863 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
18865 (xstormy16_extra_constraint_p): Delete.
18867 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
18869 PR tree-optimization/46494
18870 * loop-unroll.c (split_edge_and_insert): Adjust comment.
18871 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
18872 (pass_rtl_loop_done): Add TODO_verify_flow.
18873 * fwprop.c (pass_rtl_fwprop): Likewise.
18874 * modulo-sched.c (pass_sms): Likewise.
18875 * tree-ssa-dom.c (pass_dominator): Likewise.
18876 * tree-ssa-loop-ch.c (pass_ch): Likewise.
18877 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
18878 (pass_tree_loop_done): Likewise.
18879 * tree-ssa-pre.c (execute_pre): Likewise.
18880 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
18881 * tree-ssa-sink.c (pass_sink_code): Likewise.
18882 * tree-vrp.c (pass_vrp): Likewise.
18884 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
18886 * config/v850/constraints.md: New file.
18887 * config/v850/v850.md: Include it.
18888 * config/v850/predicates.md (reg_or_0_operand): Use
18889 satisfies_constraint_G.
18890 (special_symbolref_operand): Use satisfies_constraint_K.
18891 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
18892 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
18893 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
18894 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
18895 (EXTRA_CONSTRAINT): Delete.
18896 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
18897 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
18898 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
18900 2011-02-14 Anatoly Sokolov <aesok@post.ru>
18903 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
18906 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
18908 * config/mcore/constraints.md: New file.
18909 * config/mcore/mcore.md: Include it.
18910 * config/mcore/mcore.c (reg_class_from_letter): Delete.
18911 * config/mcore/mcore.h (reg_class_from_letter): Delete.
18912 (REG_CLASS_FROM_LETTER): Delete.
18913 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
18914 insn_const_int_ok_for_constraint.
18915 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
18916 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
18917 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18918 (EXTRA_CONSTRAINT): Delete.
18920 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18923 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
18924 (IS_SIGHANDLER): Define.
18925 (sparc64_is_sighandler): New function, split off from
18926 sparc64_fallback_frame_state.
18927 (sparc_is_sighandler): New function, split off from
18928 sparc_fallback_frame_state.
18929 (sparc64_fallback_frame_state): Merge with ...
18930 (sparc_fallback_frame_state): ... this into ...
18931 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
18932 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
18933 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
18934 stack instead of hardcoded offsets.
18936 2011-02-14 Andriy Gapon <avg@freebsd.org>
18939 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
18941 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18943 * configure: Regenerate.
18945 2011-02-12 Joseph Myers <joseph@codesourcery.com>
18948 * gcc.c (asm_options): Correct spec matching --target-help.
18950 2011-02-12 Martin Jambor <mjambor@suse.cz>
18952 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
18953 to gimple call error.
18955 2011-02-12 Mike Stump <mikestump@comcast.net>
18957 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
18958 comments in backslash regions.
18960 2011-02-12 Mike Stump <mikestump@comcast.net>
18961 Jakub Jelinek <jakub@redhat.com>
18962 Iain Sandoe <iains@gcc.gnu.org>
18965 * dwarf2out.c (output_cfa_loc): When required, apply the
18966 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
18967 (output_loc_sequence): Likewise.
18968 (output_loc_operands_raw): Likewise.
18969 (output_loc_sequence_raw): Likewise.
18970 (output_cfa_loc): Likewise.
18971 (output_loc_list): Suppress register number adjustment when
18972 calling output_loc_sequence()
18973 (output_die): Likewise.
18975 2011-02-12 Anatoly Sokolov <aesok@post.ru>
18977 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18979 * config/xtensa/xtensa.c (xtensa_register_move_cost,
18980 xtensa_memory_move_cost): New functions.
18981 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
18983 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
18986 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
18987 in the current directory.
18988 * configure: Rebuilt.
18990 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
18992 * config/darwin.c (darwin_override_options): Add a hunk missed
18993 from the commit of r168571. Trim comment line lengths and
18994 correct indents of the preceding block.
18996 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
18998 * gcc.c (driver_handle_option): Concatenate the argument to -F with
19001 2011-02-11 Joseph Myers <joseph@codesourcery.com>
19003 * common.opt (nostartfiles): New Driver option.
19005 2011-02-11 Xinliang David Li <davidxl@google.com>
19007 PR tree-optimization/47707
19008 * tree-chrec.c (convert_affine_scev): Keep type precision.
19010 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
19012 PR tree-optimization/47420
19013 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
19015 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
19017 PR rtl-optimization/47614
19018 * rtl.h (check_for_inc_dec): Declare.
19019 * dse.c (check_for_inc_dec): Externalize...
19020 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
19021 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
19023 2011-02-11 Joseph Myers <joseph@codesourcery.com>
19026 * gcc.c (main): Do not compile inputs if there were errors in
19028 * opts-common.c (read_cmdline_option): Check for wrong language
19029 after other error checks.
19031 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
19033 * cgraph.c: Fix comment typos.
19034 * cgraph.h: Likewise.
19035 * cgraphunit.c: Likewise.
19036 * ipa-cp.c: Likewise.
19037 * ipa-inline.c: Likewise.
19038 * ipa-prop.c: Likewise.
19039 * ipa-pure-const.c: Likewise.
19040 * ipa-ref.c: Likewise.
19041 * ipa-reference.c: Likewise.
19043 2011-02-11 Jakub Jelinek <jakub@redhat.com>
19046 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
19048 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19051 * doc/sourcebuild.texi (Require Support): Document
19052 dg-require-ascii-locale.
19054 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
19056 * doc/lto.texi (Write summary): Fix missing parentheses.
19058 2011-02-10 DJ Delorie <dj@redhat.com>
19060 * config/m32c/m32c.c (m32c_option_override): Disable
19061 -fcombine-stack-adjustments until flag value tracking and compare
19062 optimization can be rewritten.
19064 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
19066 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
19068 (PROCESSOR_DEFAULT64): Likewise.
19070 2011-02-10 Richard Henderson <rth@redhat.com>
19072 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
19073 change from 2011-02-03.
19074 * config/rx/rx.c (flags_from_code): Likewise.
19075 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
19076 is valid, n/pz otherwise.
19077 (rx_select_cc_mode): Return CCmode if Y is not zero.
19079 2011-02-10 Richard Guenther <rguenther@suse.de>
19081 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
19083 2011-02-10 Richard Guenther <rguenther@suse.de>
19085 PR tree-optimization/47677
19086 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
19088 2011-02-10 Jakub Jelinek <jakub@redhat.com>
19091 * combine.c (make_compound_operation): Only change shifts into
19092 multiplication for SCALAR_INT_MODE_P.
19094 2011-02-10 Jie Zhang <jie@codesourcery.com>
19098 2011-02-05 Jie Zhang <jie@codesourcery.com>
19100 * web.c (entry_register): Don't clobber the number of the
19101 first uninitialized reference in used[].
19103 2011-02-09 Richard Guenther <rguenther@suse.de>
19105 PR tree-optimization/47664
19106 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
19109 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
19113 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
19115 (PROCESSOR_DEFAULT64): Same.
19116 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
19118 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19120 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
19122 2011-02-09 Martin Jambor <mjambor@suse.cz>
19124 PR middle-end/45505
19125 * tree-sra.c (struct access): New flags grp_scalar_read and
19126 grp_scalar_write. Changed description of assignment read and write
19128 (dump_access): Dump new flags, reorder all of them.
19129 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
19130 to detect multiple scalar reads.
19131 (analyze_access_subtree): Use the new scalar read write flags instead
19132 of the old flags. Adjusted comments.
19134 2011-02-08 DJ Delorie <dj@redhat.com>
19137 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
19140 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19142 * config/m68k/uclinux.opt: New.
19143 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
19145 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19147 * config/cris/elf.opt (sim): New Driver option.
19149 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19151 * config/xtensa/elf.opt: New.
19152 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
19154 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19156 * config/vax/elf.opt: New.
19157 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
19159 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19161 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
19163 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19165 * config/gnu-user.opt: New.
19166 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
19167 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
19168 *-*-uclinux*): Use gnu-user.opt.
19170 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
19172 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
19173 * config/i386/gnu.h (CPP_SPEC): Likewise.
19175 2011-02-08 Ian Lance Taylor <iant@google.com>
19177 * common.opt (fcx-limited-range): Add SetByCombined flag.
19178 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
19179 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
19180 (fassociative-math, freciprocal-math): Likewise.
19181 (funsafe-math-optimizations): Likewise.
19182 * opth-gen.awk: Handle SetByCombined.
19183 * optc-gen.awk: Likewise.
19184 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
19185 (set_unsafe_math_optimizations_flags): Likewise.
19186 * doc/options.texi (Option properties): Document SetByCombined.
19188 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19190 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
19191 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
19192 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
19193 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
19194 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
19196 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
19198 PR tree-optimization/46834
19199 PR tree-optimization/46994
19200 PR tree-optimization/46995
19201 * graphite-sese-to-poly.c (used_outside_reduction): New.
19202 (detect_commutative_reduction): Call used_outside_reduction.
19203 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
19204 translate_scalar_reduction_to_array only when at least one
19205 loop-phi/close-phi tuple has been detected.
19207 2011-02-08 Richard Guenther <rguenther@suse.de>
19209 PR middle-end/47639
19210 * tree-vect-generic.c (expand_vector_operations_1): Update
19212 (expand_vector_operations): ... not here. Cleanup EH info
19213 and the CFG if required.
19215 2011-02-08 Richard Guenther <rguenther@suse.de>
19217 PR tree-optimization/47641
19218 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
19219 require type compatibility.
19221 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19223 * gimple-low.c (lower_function_body): Don't remove the location of
19224 the return statement here.
19225 (lower_gimple_return): Do it here instead but only if the return
19226 statement is actually used twice.
19228 2011-02-08 Richard Guenther <rguenther@suse.de>
19230 PR tree-optimization/47632
19231 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
19232 unused up_to_stmt parameter, return whether cfg-cleanup is
19233 necessary, remove EH info properly.
19234 (forward_propagate_into_gimple_cond): Adjust caller.
19235 (forward_propagate_into_cond): Likewise.
19236 (forward_propagate_comparison): Likewise.
19237 (tree_ssa_forward_propagate_single_use_vars): Make
19238 forward_propagate_comparison case similar to the two others.
19240 2011-02-08 Nick Clifton <nickc@redhat.com>
19242 * config/mn10300/mn10300.opt (mliw): New command line option.
19243 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
19244 (liw_bundling): New automaton.
19245 (liw): New attribute.
19246 (liw_op): New attribute.
19247 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
19248 (movsi_internal): Add LIW attributes.
19249 (andsi3): Likewise.
19250 (iorsi3): Likewise.
19251 (xorsi3): Likewise.
19252 (addsi3): Separate register and immediate alternatives.
19253 Add LIW attributes.
19254 (subsi3): Likewise.
19256 (aslsi3): Likewise.
19257 (lshrsi3): Likewise.
19258 (ashrsi3): Likewise.
19259 (liw): New pattern.
19260 * config/mn10300/mn10300.c (liw_op_names): New
19261 (mn10300_print_operand): Handle 'W' operand descriptor.
19262 (extract_bundle): New function.
19263 (check_liw_constraints): New function.
19264 (liw_candidate): New function.
19265 (mn10300_bundle_liw): New function.
19266 (mn10300_reorg): New function.
19267 (TARGET_MACHINE_DEPENDENT_REORG): Define.
19268 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
19269 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
19270 __LIW__ or __NO_LIW__.
19271 * doc/invoke.texi: Describe the -mliw command line option.
19273 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19275 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
19276 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
19277 pthread_mutex_unlock): Remove.
19278 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
19279 * config/pa/t-pa64: Likewise.
19280 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
19281 shared libc if not linking against libpthread.
19282 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
19284 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
19287 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
19288 on 10.6 and later to ensure that we always use the unwinder from
19289 the system. Only add -no_compact_unwind when tarteting darwin
19292 2011-02-07 Steve Ellcey <sje@cup.hp.com>
19295 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
19296 (vec_interleave_lowv2sf): Ditto.
19297 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
19298 (vec_extract_oddv2sf): Ditto.
19300 2011-02-07 Mike Stump <mikestump@comcast.net>
19303 Add __ieee_divdc3 entry point.
19304 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
19306 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
19307 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
19308 * config/darwin.c (darwin_rename_builtins): Add.
19309 * config/darwin-protos.h (darwin_rename_builtins): Add.
19311 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
19314 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
19317 2011-02-07 Mike Stump <mikestump@comcast.net>
19319 * config/darwin.opt (mmacosx-version-min): Update default OS version.
19321 2011-02-07 Denis Chertykov <chertykov@gmail.com>
19324 * config/avr/libgcc.S (exit): Move .endfunc
19326 2011-02-07 Richard Guenther <rguenther@suse.de>
19328 PR tree-optimization/47615
19329 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
19330 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
19331 (run_scc_vn): Initialize it.
19332 (visit_reference_op_load): Use it.
19333 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
19335 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19337 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
19338 DImode trapping arithmetic libfuncs.
19340 2011-02-07 Richard Guenther <rguenther@suse.de>
19342 PR tree-optimization/47621
19343 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
19345 (execute_update_addresses_taken): ... here. Make it more
19346 conservative in what we accept.
19348 2011-02-06 Joseph Myers <joseph@codesourcery.com>
19350 * config/sparc/freebsd.h (ASM_SPEC): Define.
19351 * config/sparc/vxworks.h (ASM_SPEC): Define.
19353 2011-02-06 Joseph Myers <joseph@codesourcery.com>
19355 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19357 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
19359 * doc/invoke.texi: Remove reference to compiler internals from
19360 user documentation.
19362 * reg-notes.def: Remove REG_VALUE_PROFILE.
19363 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
19365 2011-02-05 Jakub Jelinek <jakub@redhat.com>
19367 PR middle-end/47610
19368 * varasm.c (default_section_type_flags): If decl is NULL,
19369 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
19371 2011-02-05 Jie Zhang <jie@codesourcery.com>
19374 * web.c (entry_register): Don't clobber the number of the
19375 first uninitialized reference in used[].
19377 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
19379 PR tree-optimization/46194
19380 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
19381 (build_classic_dist_vector_1): Do not represent classic distance
19382 vectors when the access functions are variating in different loops.
19384 2011-02-04 Joseph Myers <joseph@codesourcery.com>
19386 * config/mips/iris6.opt: New.
19387 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
19389 2011-02-04 Richard Henderson <rth@redhat.com>
19390 Steve Ellcey <sje@cup.hp.com>
19393 * config/ia64/predicates.md (mux1_brcst_element): New.
19394 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
19395 * config/ia64/ia64.c (ia64_unpack_assemble): New.
19396 (ia64_unpack_sign): New.
19397 (ia64_expand_unpack): Rewrite using new routines.
19398 (ia64_expand_widen_sum): Ditto.
19399 (ia64_expand_dot_prod_v8qi): Ditto.
19400 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
19401 routines, add endian check.
19402 (pmpy2_even): Rename from pmpy2_r, add endian check.
19403 (pmpy2_odd): Rename from pmpy2_l, add endian check.
19404 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
19405 (vec_widen_smult_hi_v4hi): Ditto.
19406 (vec_widen_umult_lo_v4hi): Ditto.
19407 (vec_widen_umult_hi_v4hi): Ditto.
19408 (mulv2si3): Change endian checks.
19409 (sdot_prodv4hi): Rewrite with new calls.
19410 (udot_prodv4hi): New.
19411 (vec_pack_ssat_v4hi): Add endian check.
19412 (vec_pack_usat_v4hi): Ditto.
19413 (vec_pack_ssat_v2si): Ditto.
19414 (max1_even): Rename from max1_r, add endian check.
19415 (max1_odd): Rename from max1_l, add endian check.
19416 (*mux1_rev): Format change.
19417 (*mux1_mix): Ditto.
19418 (*mux1_shuf): Ditto.
19419 (*mux1_alt): Ditto.
19420 (*mux1_brcst_v8qi): Use new predicate.
19421 (vec_extract_evenv8qi): Remove endian check.
19422 (vec_extract_oddv8qi): Ditto.
19423 (vec_interleave_lowv4hi): Format change.
19424 (vec_interleave_highv4hi): Ditto.
19425 (mix2_even): Rename from mix2_r, add endian check.
19426 (mix2_odd): Rename from mux2_l, add endian check.
19427 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
19428 (vec_extract_evenodd_helper): Format change.
19429 (vec_extract_evenv4hi): Remove endian check.
19430 (vec_extract_oddv4hi): Remove endian check.
19431 (vec_interleave_lowv2si): Format change.
19432 (vec_interleave_highv2si): Format change.
19433 (vec_initv2si): Remove endian check.
19434 (vecinit_v2si): Add endian check.
19435 (reduc_splus_v2sf): Add endian check.
19436 (reduc_smax_v2sf): Ditto.
19437 (reduc_smin_v2sf): Ditto.
19438 (vec_initv2sf): Remove endian check.
19439 (fpack): Add endian check.
19440 (fswap): Add endian check.
19441 (vec_interleave_highv2sf): Add endian check.
19442 (vec_interleave_lowv2sf): Add endian check.
19443 (fmix_lr): Add endian check.
19444 (vec_setv2sf): Format change.
19445 (*vec_extractv2sf_0_be): Use shift to extract operand.
19446 (*vec_extractv2sf_1_be): New.
19447 (vec_pack_trunc_v4hi): Add endian check.
19448 (vec_pack_trunc_v2si): Format change.
19450 2011-02-04 Jakub Jelinek <jakub@redhat.com>
19452 PR inline-asm/23200
19453 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
19454 do bb, locus and block comparison and disallow loads if it is not set.
19455 (stmt_is_replaceable_p): New function.
19456 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
19458 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
19459 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
19461 * tree-flow.h (stmt_is_replaceable_p): New prototype.
19463 2011-02-04 Joseph Myers <joseph@codesourcery.com>
19465 * config/rs6000/xilinx.opt: New.
19466 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
19468 2011-02-04 Joseph Myers <joseph@codesourcery.com>
19470 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
19472 2011-02-03 Anatoly Sokolov <aesok@post.ru>
19474 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
19475 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
19476 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
19477 secondary_reload_info, xtensa_secondary_reload): Remove.
19478 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
19479 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
19480 (xtensa_preferred_reload_class): Make static. Change return and
19481 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
19482 Use CONST_DOUBLE_P predicate.
19483 (xtensa_preferred_output_reload_class): New function.
19484 (xtensa_secondary_reload): Make static.
19486 2011-02-03 Joseph Myers <joseph@codesourcery.com>
19488 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
19489 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
19490 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
19492 2011-02-03 Jakub Jelinek <jakub@redhat.com>
19494 PR middle-end/31490
19495 * output.h (SECTION_RELRO): Define.
19496 (SECTION_MACH_DEP): Adjust.
19497 (get_variable_section): New prototype.
19498 * varpool.c (varpool_finalize_named_section_flags): New function.
19499 (varpool_assemble_pending_decls): Call it.
19500 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
19501 * cgraphunit.c (cgraph_output_in_order): Call
19502 varpool_finalize_named_section_flags.
19503 * varasm.c (get_section): Allow section flags conflicts between
19504 relro and read-only sections if the section hasn't been declared yet.
19505 Set SECTION_OVERRIDE after diagnosing section type conflict.
19506 (get_variable_section): No longer static.
19507 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
19508 readonly sections that need relocations.
19509 (decl_readonly_section_1): New function.
19510 (decl_readonly_section): Use it.
19513 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
19514 Steve Ellcey <sje@cup.hp.com>
19516 PR middle-end/31490
19517 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
19518 if section attribute used.
19520 2011-02-03 Jakub Jelinek <jakub@redhat.com>
19522 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
19523 * config/darwin.c (SECTION_NO_ANCHOR): Define.
19524 (darwin_init_sections): Remove assertion.
19526 2011-02-03 Nick Clifton <nickc@redhat.com>
19528 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
19530 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
19531 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
19532 instead of "n" and "pz".
19533 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
19536 2011-02-03 Jakub Jelinek <jakub@redhat.com>
19539 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
19540 fma, expand FMA_EXPR as fma{,f,l} call.
19543 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
19544 copy them into a unsigned char variable and pass address of it to
19545 lto_output_data_stream.
19548 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
19549 around backend_init_target and lang_dependent_init_target calls.
19550 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
19551 (verify_cgraph_node): Don't call set_cfun here. Use
19552 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
19553 Set error_found for incorrectly represented calls to thunks.
19555 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
19558 PR rtl-optimization/43494
19559 * rtl.h (for_each_inc_dec_fn): New type.
19560 (for_each_inc_dec): Declare.
19561 * rtlanal.c (struct for_each_inc_dec_ops): New type.
19562 (for_each_inc_dec_find_inc_dec): New fn.
19563 (for_each_inc_dec_find_mem): New fn.
19564 (for_each_inc_dec): New fn.
19565 * dse.c (struct insn_size): Remove.
19566 (replace_inc_dec, replace_inc_dec_mem): Remove.
19567 (emit_inc_dec_insn_before): New fn.
19568 (check_for_inc_dec): Use it, along with for_each_inc_dec.
19569 (canon_address): Pass mem modes to cselib_lookup.
19570 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
19571 (cselib_lookup_from_insn): Likewise.
19572 (cselib_subst_to_values): Likewise.
19573 * cselib.c (find_slot_memmode): New var.
19574 (cselib_find_slot): New fn. Use it instead of
19575 htab_find_slot_with_hash everywhere.
19576 (entry_and_rtx_equal_p): Use find_slot_memmode.
19577 (autoinc_split): New fn.
19578 (rtx_equal_for_cselib_p): Rename and implement in terms of...
19579 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
19580 Deal with autoinc. Special-case recursion into MEMs.
19581 (cselib_hash_rtx): Likewise.
19582 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
19583 address and MEM modes.
19584 (cselib_subst_to_values): Add memmode, pass it on.
19586 (cselib_lookup): Add memmode argument, pass it on.
19587 (cselib_lookup_from_insn): Add memmode.
19588 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
19589 (struct cselib_record_autoinc_data): New.
19590 (cselib_record_autoinc_cb): New fn.
19591 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
19592 mode to cselib_lookup. Reset autoinced REGs here instead of...
19593 (cselib_process_insn): ... here.
19594 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
19596 (add_uses): Likewise, also to cselib_subst_to_values.
19597 (add_stores): Likewise.
19598 * sched-deps.c (add_insn_mem_dependence): Pass mode to
19599 cselib_subst_to_values.
19600 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
19601 * gcse.c (do_local_cprop): Adjusted.
19602 * postreload.c (reload_cse_simplify_set): Adjusted.
19603 (reload_cse_simplify_operands): Adjusted.
19604 * sel-sched-dump (debug_mem_addr_value): Pass mode.
19606 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
19608 PR tree-optimization/45122
19609 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
19610 unsafe assumptions when there's more than one loop exit.
19612 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19615 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
19616 Document using vector double with the load/store builtins, and
19617 that the load/store builtins always use Altivec instructions.
19619 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
19620 to use altivec memory instructions, even on VSX.
19621 (vector_altivec_store_<mode>): Ditto.
19623 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
19626 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19627 V2DF, V2DI support to load/store overloaded builtins.
19629 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
19630 altivec load/store builtins for V2DF/V2DI types.
19632 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
19633 set avoid indexed addresses on power6 if -maltivec.
19634 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
19635 vector_altivec_load/vector_altivec_store builtins.
19636 (altivec_expand_st_builtin): Ditto.
19637 (altivec_expand_builtin): Add VSX memory builtins.
19638 (rs6000_init_builtins): Add V2DI types to internal types.
19639 (altivec_init_builtins): Add support for V2DF/V2DI altivec
19640 load/store builtins.
19641 (rs6000_address_for_altivec): Insure memory address is appropriate
19644 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
19645 vec_vsx_ld and vec_vsx_st.
19646 (vsx_store_<mode>): Ditto.
19648 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
19649 variables to hold long long types for VSX vector memory builtins.
19650 (RS6000_BTI_unsigned_long_long): Ditto.
19651 (long_long_integer_type_internal_node): Ditti.
19652 (long_long_unsigned_type_internal_node): Ditti.
19654 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
19655 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
19656 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
19658 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
19660 (vec_vsx_st): Ditto.
19662 2011-02-02 Joseph Myers <joseph@codesourcery.com>
19664 * config/pa/pa-hpux10.opt: New.
19665 * config/hpux11.opt (pthread): New Driver option.
19666 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
19667 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
19669 2011-02-02 Joseph Myers <joseph@codesourcery.com>
19671 * config/ia64/vms.opt: New.
19672 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
19674 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
19677 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
19678 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
19679 generator functions.
19680 (vsx_floatuns<VSi><mode>2): Ditto.
19681 (vsx_fix_trunc<mode><VSi>2): Ditto.
19682 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
19684 2011-02-02 Joseph Myers <joseph@codesourcery.com>
19686 * config/i386/djgpp.opt (posix): New Driver option.
19688 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
19690 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
19691 Move to the unsupported targets list.
19693 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
19695 PR rtl-optimization/47525
19696 * df-scan.c: Update copyright years.
19697 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
19698 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
19700 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19702 * config/i386/sysv4.h (TARGET_VERSION): Remove.
19703 (SUBTARGET_RETURN_IN_MEMORY): Remove.
19704 (ASM_OUTPUT_ASCII): Remove.
19705 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
19707 2011-02-02 Jeff Law <law@redhat.com>
19709 PR middle-end/47543
19710 * reload.c (find_reloads_address): Handle reg+d address where both
19711 components are invalid by reloading the entire address.
19713 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
19714 Richard Guenther <rguenther@suse.de>
19716 PR tree-optimization/40979
19718 * passes.c (init_optimization_passes): After LIM call copy_prop
19719 and DCE to clean up.
19720 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
19722 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
19724 PR tree-optimization/47576
19725 PR tree-optimization/47555
19726 * doc/invoke.texi (scev-max-expr-complexity): Documented.
19727 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
19728 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
19729 * tree-scalar-evolution.c (follow_ssa_edge): Use
19730 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
19732 2011-02-02 Richard Guenther <rguenther@suse.de>
19734 PR tree-optimization/47566
19735 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
19737 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
19741 * tree-inline.c (declare_return_variable): Remove unused caller
19746 * tree-flow-inline.h (clear_is_used, is_used_p): New.
19747 * cfgexpand.c (account_used_vars_for_block): Use them.
19748 * tree-nrv.c (tree_nrv): Likewise.
19749 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
19750 (dump_scope_block): Likewise.
19751 (remove_unused_locals): Likewise.
19755 * tree-inline.c (declare_return_variable): Add result decl to
19756 local decls only once.
19757 * gimple-low.c (record_vars_into): Mark newly-created variables
19760 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
19766 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
19768 (no_real_insns_p, schedule_block, set_priorities): Drop special
19769 treatment of boundary debug insns.
19770 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
19771 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
19772 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
19773 (BOUNDARY_DEBUG_INSN_P): Likewise.
19774 (SCHEDULE_DEBUG_INSN_P): Likewise.
19775 * sched-rgn.c (init_ready_list): Drop special treatment of
19776 boundary debug insns.
19777 * final.c (rest_of_clean_state): Clear notes' BB.
19779 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19781 * config/openbsd.opt (assert=): New Driver option.
19783 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19785 * config/i386/nto.opt: New.
19786 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
19788 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19790 * config/i386/netware.opt: New.
19791 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
19793 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19795 * config/interix.opt (posix): New Driver option.
19797 2011-02-01 DJ Delorie <dj@redhat.com>
19799 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
19801 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
19804 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
19806 PR tree-optimization/47561
19807 * toplev.c (process_options): Print the Graphite flags. Add
19808 flag_loop_flatten to the list of options requiring Graphite.
19810 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19812 * config/i386/cygming.opt (posix): New Driver option.
19814 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19816 * config/arm/vxworks.opt: New.
19817 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
19819 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19821 * config/alpha/elf.opt: New.
19822 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
19823 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
19825 2011-02-01 Richard Guenther <rguenther@suse.de>
19827 PR tree-optimization/47559
19828 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
19829 store-motion on references that can throw.
19831 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
19833 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
19834 * tree-pass.h (TDF_CSELIB): New macro.
19835 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
19836 cselib_lookup): Check for it rather than for TDF_DETAILS.
19838 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
19841 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
19842 is HOST_BIT_BUCKET.
19844 * opts.c (finish_options): Don't add x_aux_base_name if it is
19847 2011-02-01 Richard Guenther <rguenther@suse.de>
19849 PR tree-optimization/47555
19851 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
19853 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
19855 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
19858 * config/lm32/t-lm32: Add multilib for all CPU options.
19860 2011-02-01 Richard Guenther <rguenther@suse.de>
19862 PR tree-optimization/47541
19863 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
19864 sure to have a field at offset zero.
19866 2011-01-31 Joseph Myers <joseph@codesourcery.com>
19868 * config/arc/arc.opt (EB, EL): New Driver options.
19870 2011-01-31 Joseph Myers <joseph@codesourcery.com>
19872 * config/alpha/osf5.opt: New.
19873 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
19875 2011-01-31 Joseph Myers <joseph@codesourcery.com>
19877 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
19879 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
19881 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
19882 -floop-interchange.
19883 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
19884 is an alias of -floop-interchange and that it requires the
19885 Graphite infrastructure.
19886 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
19887 flag_loop_interchange based on the value of flag_tree_loop_linear.
19889 2011-01-31 Jakub Jelinek <jakub@redhat.com>
19890 Richard Guenther <rguenther@suse.de>
19892 PR tree-optimization/47538
19893 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
19894 type instead of r1type, except for comparisons. For right
19895 shifts and comparisons punt if there are mismatches in
19896 sizetype vs. non-sizetype types.
19898 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19900 * doc/sourcebuild.texi (Effective-Target Keywords): Document
19903 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19905 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
19907 * configure: Regenerate.
19909 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19911 * configure.ac (gcc_cv_ld_static_option): Define.
19912 (gcc_cv_ld_dynamic_option): Define.
19913 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
19915 (HAVE_LD_STATIC_DYNAMIC): Update message.
19916 (LD_STATIC_OPTION): Define.
19917 (LD_DYNAMIC_OPTION): Define.
19918 * configure: Regenerate.
19919 * config.in: Regenerate.
19920 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
19921 HAVE_LD_STATIC_DYNAMIC]: Use them.
19923 2011-01-31 Nick Clifton <nickc@redhat.com>
19925 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
19926 registers inside interrupt handlers if the handler is not a leaf
19929 2011-01-31 Nick Clifton <nickc@redhat.com>
19931 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
19932 reg_renumber returning an INVALID_REGNUM.
19934 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
19937 * doc/install.texi: Document host options discarded when cross
19938 configuring target libraries.
19940 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
19943 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
19946 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
19948 (no_real_insns_p, schedule_block, set_priorities): Drop special
19949 treatment of boundary debug insns.
19950 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
19951 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
19952 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
19953 (BOUNDARY_DEBUG_INSN_P): Likewise.
19954 (SCHEDULE_DEBUG_INSN_P): Likewise.
19955 * sched-rgn.c (init_ready_list): Drop special treatment of
19956 boundary debug insns.
19957 * final.c (rest_of_clean-state): Clear notes' BB.
19959 2011-01-31 Alan Modra <amodra@gmail.com>
19961 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
19962 toc relative expressions as we do in print_operand_address.
19964 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
19966 * doc/extend.texi: Follow spelling conventions.
19967 * doc/invoke.texi: Fix a typo.
19969 2011-01-30 Joseph Myers <joseph@codesourcery.com>
19971 * config/hpux11.opt: New.
19972 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
19973 ia64*-*-hpux*): Use hpux11.opt.
19975 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
19977 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
19980 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
19982 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
19985 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
19987 * doc/install.texi (Binaries): Remove outdated reference for
19988 Motorola 68HC11/68HC12 downloads.
19990 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
19992 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
19995 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
19998 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
20001 2011-01-28 Ahmad Sharif <asharif@google.com>
20003 * value-prof.c (check_counter): Corrected error message.
20005 2011-01-29 Jie Zhang <jie@codesourcery.com>
20007 * config/arm/arm.c (arm_legitimize_reload_address): New.
20008 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
20009 arm_legitimize_reload_address.
20010 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
20012 2011-01-28 Ian Lance Taylor <iant@google.com>
20014 * godump.c (go_define): Ignore macros whose definitions include
20015 two adjacent operands.
20017 2011-01-28 Jakub Jelinek <jakub@redhat.com>
20020 * varasm.c (force_const_mem): Store copy of x in desc->constant
20021 instead of x itself.
20022 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
20023 itself into REG_EQUAL note.
20025 2011-01-28 Joseph Myers <joseph@codesourcery.com>
20027 * config/freebsd.opt (posix, rdynamic): New Driver options.
20029 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20031 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
20032 -Bstatic/-Bdynamic.
20033 * configure: Regenerate.
20035 2011-01-27 Joseph Myers <joseph@codesourcery.com>
20037 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
20038 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
20040 2011-01-27 Anatoly Sokolov <aesok@post.ru>
20042 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
20043 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
20044 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
20045 (s390_preferred_reload_class): Make static. Change return and
20046 'rclass' argument type to reg_class_t.
20048 2011-01-27 Jan Hubicka <jh@suse.cz>
20050 PR middle-end/46949
20051 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
20052 (process_function_and_variable_attributes): Check defined weakrefs.
20054 2011-01-27 Martin Jambor <mjambor@suse.cz>
20056 PR tree-optimization/47228
20057 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
20058 build_ref_for_offset.
20060 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20062 * config/spu/spu-elf.h (ASM_SPEC): Remove.
20064 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
20066 PR rtl-optimization/46856
20067 * postreload.c (reload_combine_recognize_const_pattern): Do not
20068 separate cc0 setter and user on cc0 targets.
20070 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
20073 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
20074 passed a VOID_TYPE expression, immediately emit an error and
20075 return error_mark_node.
20077 2011-01-26 Jeff Law <law@redhat.com>
20079 PR rtl-optimization/47464
20080 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
20081 rather than may_trap_p as needed.
20083 2011-01-26 DJ Delorie <dj@redhat.com>
20085 PR rtl-optimization/46878
20086 * combine.c (insn_a_feeds_b): Check for the implicit cc0
20087 setter/user dependency as well.
20089 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
20091 PR rtl-optimization/44469
20092 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
20093 after removing trivially dead basic blocks.
20095 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20097 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
20098 * config/frv/frv.h (LINK_SPEC): Likewise.
20099 * config/i386/netware.h (LINK_SPEC): Likewise.
20100 * config/m68k/linux.h (ASM_SPEC): Likewise.
20101 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
20102 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20103 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20104 * config/sparc/linux.h (ASM_SPEC): Likewise.
20105 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20106 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20108 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20110 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
20111 * config/frv/frv.h (ASM_SPEC): Likewise.
20112 * config/m68k/linux.h (ASM_SPEC): Likewise.
20113 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20114 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
20115 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20116 * config/sparc/linux.h (ASM_SPEC): Likewise.
20117 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20118 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20120 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20122 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
20123 * config/frv/frv.h (LINK_SPEC): Likewise.
20124 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20126 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20128 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
20129 * config/frv/frv.h (ASM_SPEC): Likewise.
20130 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
20131 * config/m68k/linux.h (ASM_SPEC): Likewise.
20132 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20133 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20134 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20135 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
20136 * config/sparc/linux.h (ASM_SPEC): Likewise.
20137 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20138 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20139 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
20141 2011-01-26 Steve Ellcey <sje@cup.hp.com>
20144 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
20146 (vec_extract_evenodd_help): Ditto.
20147 (vec_extract_evenv4hi): Ditto.
20148 (vec_extract_oddv4hi): Ditto.
20149 (vec_interleave_lowv2si): Ditto.
20150 (vec_interleave_highv2si): Ditto.
20151 (vec_extract_evenv2si): Ditto.
20152 (vec_extract_oddv2si: Ditto.
20153 (vec_pack_trunc_v2si): Ditto.
20155 2011-01-22 Jan Hubicka <jh@suse.cz>
20158 * cgraph.h (cgraph_local_info): New field can_change_signature.
20159 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
20160 signature can change.
20161 (ipcp_estimate_growth): Call sequence simplify only if calle signature
20163 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
20164 (cgraph_function_versioning): We can not change signature of functions
20165 that don't allow that.
20166 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
20167 (lto_input_node): Likewise.
20168 * ipa-inline.c (compute_inline_parameters): Compute
20169 local.can_change_signature.
20170 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
20171 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
20172 functions that can not change signature.
20173 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
20174 init_cumulative_args): Do not use local calling conventions
20175 for functions that can not change signature.
20177 2011-01-22 Jan Hubicka <jh@suse.cz>
20179 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
20181 2011-01-26 Richard Guenther <rguenther@suse.de>
20183 PR tree-optimization/47190
20184 * cgraphunit.c (process_common_attributes): New function.
20185 (process_function_and_variable_attributes): Use it.
20187 2011-01-26 Richard Guenther <rguenther@suse.de>
20190 * cgraphbuild.c (record_eh_tables): Record reference to personality
20193 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
20196 * sel-sched.c (moveup_expr): Don't let debug insns prevent
20197 non-debug insns from moving up.
20199 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
20202 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
20203 t-dlldir{,-x} fragment for build and add it to tmake_file.
20204 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
20205 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
20206 * config/i386/t-dlldir: New file.
20207 (SHLIB_DLLDIR): Define.
20208 * config/i386/t-dlldir-x: New file.
20209 (SHLIB_DLLDIR): Define.
20210 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
20211 (SHLIB_INSTALL): Use it.
20213 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
20216 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
20217 lower bound of the allowed Thumb-2 coprocessor load/store
20218 index range to -256. Add explaining comment.
20220 2011-01-25 Ian Lance Taylor <iant@google.com>
20222 * godump.c (go_define): Improve lexing of macro expansion to only
20223 accept expressions which match Go spec.
20225 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
20228 * tree.c (handle_dll_attribute): Handle it.
20229 * doc/extend.texi (@item dllexport): Mention it.
20230 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
20232 2011-01-25 Ian Lance Taylor <iant@google.com>
20234 PR tree-optimization/26854
20235 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
20236 (decl_jump_unsafe): Move higher in file, with no other change.
20237 (bind): Set has_jump_unsafe_decl if appropriate.
20238 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
20239 (check_earlier_gotos): Likewise.
20240 (c_check_switch_jump_warnings): Likewise.
20242 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
20244 * doc/invoke.texi (Warning Options): Add missing hyphen.
20245 (-fprofile-dir): Minor grammatical fixes.
20246 (-fbranch-probabilities): Likewise.
20248 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
20252 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20254 (no_real_insns_p, schedule_block, set_priorities): Drop special
20255 treatment of boundary debug insns.
20256 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20257 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20258 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20259 (BOUNDARY_DEBUG_INSN_P): Likewise.
20260 (SCHEDULE_DEBUG_INSN_P): Likewise.
20261 * sched-rgn.c (init_ready_list): Drop special treatment of
20262 boundary debug insns.
20263 * final.c (rest_of_clean-state): Clear notes' BB.
20265 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20267 * Makefile.in (LAMBDA_H): Removed.
20268 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
20269 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
20270 lambda-trans.o, and tree-loop-linear.o.
20271 (lto-symtab.o): Remove dependence on LAMBDA_H.
20272 (tree-loop-linear.o): Remove rule.
20273 (lambda-mat.o): Same.
20274 (lambda-trans.o): Same.
20275 (lambda-code.o): Same.
20276 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
20277 (tree-vect-slp.o): Same.
20278 * hwint.h (gcd): Moved here.
20279 (least_common_multiple): Same.
20280 * lambda-code.c: Removed.
20281 * lambda-mat.c: Removed.
20282 * lambda-trans.c: Removed.
20283 * lambda.h: Removed.
20284 * tree-loop-linear.c: Removed.
20285 * lto-symtab.c: Do not include lambda.h.
20286 * omega.c (gcd): Removed.
20287 * passes.c (init_optimization_passes): Remove pass_linear_transform.
20288 * tree-data-ref.c (print_lambda_vector): Moved here.
20289 (lambda_vector_copy): Same.
20290 (lambda_matrix_copy): Same.
20291 (lambda_matrix_id): Same.
20292 (lambda_vector_first_nz): Same.
20293 (lambda_matrix_row_add): Same.
20294 (lambda_matrix_row_exchange): Same.
20295 (lambda_vector_mult_const): Same.
20296 (lambda_vector_negate): Same.
20297 (lambda_matrix_row_negate): Same.
20298 (lambda_vector_equal): Same.
20299 (lambda_matrix_right_hermite): Same.
20300 * tree-data-ref.h: Do not include lambda.h.
20301 (lambda_vector): Moved here.
20302 (lambda_matrix): Same.
20303 (dependence_level): Same.
20304 (lambda_transform_legal_p): Removed declaration.
20305 (lambda_collect_parameters): Same.
20306 (lambda_compute_access_matrices): Same.
20307 (lambda_vector_gcd): Same.
20308 (lambda_vector_new): Same.
20309 (lambda_vector_clear): Same.
20310 (lambda_vector_lexico_pos): Same.
20311 (lambda_vector_zerop): Same.
20312 (lambda_matrix_new): Same.
20313 * tree-flow.h (least_common_multiple): Removed declaration.
20314 * tree-parloops.c (lambda_trans_matrix): Moved here.
20315 (LTM_MATRIX): Same.
20316 (LTM_ROWSIZE): Same.
20317 (LTM_COLSIZE): Same.
20318 (LTM_DENOMINATOR): Same.
20319 (lambda_trans_matrix_new): Same.
20320 (lambda_matrix_vector_mult): Same.
20321 (lambda_transform_legal_p): Same.
20322 * tree-pass.h (pass_linear_transform): Removed declaration.
20323 * tree-ssa-loop.c (tree_linear_transform): Removed.
20324 (gate_tree_linear_transform): Removed.
20325 (pass_linear_transform): Removed.
20326 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
20327 flag_loop_interchange.
20329 2011-01-25 Jakub Jelinek <jakub@redhat.com>
20331 PR tree-optimization/47265
20332 PR tree-optimization/47443
20333 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
20334 if name still has some uses.
20336 2011-01-25 Martin Jambor <mjambor@suse.cz>
20338 PR tree-optimization/47382
20339 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
20340 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
20342 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
20344 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
20345 sjlj_except_unwind_info.
20347 2011-01-25 Richard Guenther <rguenther@suse.de>
20349 PR tree-optimization/47426
20350 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
20351 visible functions results escape.
20353 2011-01-25 Jakub Jelinek <jakub@redhat.com>
20356 * config/arm/arm.c (any_sibcall_uses_r3): New function.
20357 (arm_get_frame_offsets): Use it.
20359 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20360 Jakub Jelinek <jakub@redhat.com>
20362 PR tree-optimization/47271
20363 * tree-if-conv.c (bb_postdominates_preds): New.
20364 (if_convertible_bb_p): Call bb_postdominates_preds.
20365 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
20366 (predicate_scalar_phi): Call bb_postdominates_preds.
20368 2011-01-25 Nick Clifton <nickc@redhat.com>
20370 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
20371 * config/rx/rx.c (rx_function_value): Likewise.
20372 (rx_promote_function_mode): Likewise.
20373 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
20374 in order to make it legitimate.
20375 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
20376 make sure that the first operand is the same as the result register.
20377 (addsi3_unspec): Delete.
20378 (subdi3): Do not accept immediate operands.
20379 (subdi3_internal): Likewise.
20381 2011-01-25 Jeff Law <law@redhat.com>
20383 PR rtl-optimization/37273
20384 * ira-costs.c (scan_one_insn): Detect constants living in memory and
20385 handle them like argument loads from stack slots. Do not double
20386 count memory for memory constants and argument loads from stack slots.
20388 2011-01-25 Jakub Jelinek <jakub@redhat.com>
20390 PR tree-optimization/47427
20391 PR tree-optimization/47428
20392 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
20393 coalesce if the new root var would be TREE_READONLY.
20395 2011-01-25 Richard Guenther <rguenther@suse.de>
20397 PR middle-end/47414
20398 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
20399 correct type for TBAA.
20401 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20403 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
20404 (close_phi_written_to_memory): Call for_each_index with
20405 dr_indices_valid_in_loop.
20407 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20409 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
20410 when it is initialized.
20412 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20414 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
20415 call to graphite_find_data_references_in_stmt.
20416 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
20417 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
20418 call to graphite_find_data_references_in_stmt.
20419 (analyze_drs_in_stmts): Same.
20420 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
20421 in which the scalar analysis of indices is performed.
20422 (create_data_ref): Same. Update call to dr_analyze_indices.
20423 (find_data_references_in_stmt): Update call to create_data_ref.
20424 (graphite_find_data_references_in_stmt): Same.
20425 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
20427 (create_data_ref): Same.
20428 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
20429 call to create_data_ref.
20431 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20433 * graphite-sese-to-poly.c (build_poly_scop): Move
20434 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
20436 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20438 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
20439 VAR_DECL, PARM_DECL, and RESULT_DECL.
20441 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20443 * graphite-dependences.c (reduction_dr_1): Allow several reductions
20444 in a reduction PBB.
20445 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
20446 that have already been marked as PBB_IS_REDUCTION.
20448 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20450 * graphite-scop-detection.c (same_close_phi_node): New.
20451 (remove_duplicate_close_phi): New.
20452 (make_close_phi_nodes_unique): New.
20453 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
20455 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20457 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
20458 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
20459 of both data references to be the same.
20461 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20463 * graphite-dependences.c (build_lexicographical_constraint): Remove
20464 the gdim parameter.
20465 (build_lexicographical_constraint): Adjust call to
20466 ppl_powerset_is_empty.
20467 (dependence_polyhedron): Same.
20468 (graphite_legal_transform_dr): Same.
20469 (graphite_carried_dependence_level_k): Same.
20470 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
20472 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
20474 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20476 * graphite-sese-to-poly.c
20477 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
20478 (close_phi_written_to_memory): New.
20479 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
20482 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20484 * doc/install.texi: Update the expected version number of PPL to 0.11.
20485 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
20486 #if PPL_VERSION_MINOR < 11.
20488 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20490 * graphite-dependences.c: Include graphite-cloog-util.h.
20491 (new_poly_ddr): Inlined into dependence_polyhedron.
20492 (free_poly_ddr): Moved close by new_poly_ddr.
20493 (dependence_polyhedron_1): Renamed dependence_polyhedron.
20494 Early return NULL when ppl_powerset_is_empty returns true.
20495 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
20496 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
20497 (graphite_legal_transform_dr): Call new_poly_ddr.
20498 (graphite_carried_dependence_level_k): Same.
20499 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
20500 (dot_transformed_deps_stmt_1): Removed.
20501 (dot_deps_stmt_1): Call dot_deps_stmt_2.
20502 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
20503 (dot_deps_1): Call dot_deps_2.
20504 * Makefile.in (graphite-dependences.o): Add missing dependence on
20505 graphite-cloog-util.h.
20507 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20509 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
20510 (build_lexicographical_constraint): Same.
20511 (dependence_polyhedron_1): Same.
20512 (graphite_legal_transform_dr): Same.
20513 (graphite_carried_dependence_level_k): Same.
20514 * graphite-ppl.c (ppl_powerset_is_empty): New.
20515 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
20516 * tree-data-ref.c (dump_data_reference): Print the basic block index.
20518 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20520 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
20521 the "a followed by b" relation and document it.
20523 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20525 * graphite-dependences.c (build_lexicographical_constraint): Stop the
20526 iteration when the bag of constraints is empty.
20528 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20530 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
20532 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20534 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
20535 nest and two loop depths as parameters.
20536 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
20537 lst_perfect_nestify.
20539 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20541 * graphite-dependences.c (print_pddr): Call
20542 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
20544 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20546 * graphite-ppl.c (debug_gmp_value): New.
20547 * graphite-ppl.h (debug_gmp_value): Declared.
20549 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
20551 * doc/install.texi: Document availability of cloog-0.16.
20553 2011-01-25 Vladimir Kargov <kargov@gmail.com>
20555 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
20556 invalid postdominance info.
20558 2011-01-24 Jan Hubicka <jh@suse.cz>
20561 * doc/extend.texi (weak pragma): Drop claim that it must
20562 appear before definition.
20563 * varasm.c (merge_weak, declare_weak): Only sanity check
20564 that DECL is not output at a time it is declared weak.
20566 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
20568 * machmode.def: Fixed comments.
20570 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
20572 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
20574 2011-01-24 Paul Koning <ni1d@arrl.net>
20576 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
20579 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
20582 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
20583 (block_info): Add scanned and prev.
20584 (move_or_delete_vzeroupper_2): Return if the basic block
20585 has been scanned and the upper 128bit state is unchanged
20586 from the last scan.
20587 (move_or_delete_vzeroupper_1): Return true if the exit
20589 (move_or_delete_vzeroupper): Visit basic blocks using the
20590 work-list based algorithm based on vt_find_locations in
20593 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
20595 2011-01-24 Nick Clifton <nickc@redhat.com>
20597 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
20598 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
20599 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
20600 then define __v850e1__.
20601 * doc/invoke.texi: Document -mv850es.
20603 2011-01-24 Richard Henderson <rth@redhat.com>
20605 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
20606 compound unordered comparisons.
20607 * config/rx/rx.c (rx_split_fp_compare): Remove.
20608 * config/rx/rx-protos.h: Update.
20609 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
20610 (cbranchsf4): Don't call rx_split_fp_compare.
20611 (*cbranchsf4): Use rx_split_cbranch.
20612 (*cmpsf): Don't accept "i" constraint.
20613 (*conditional_branch): Only valid after reload.
20614 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
20616 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20619 * config/rs6000/altivec.md (vector constant splitters): Add
20620 support for creating vector single precision constants if -mvsx is
20621 used and we would create the constant using Altivec primitives.
20623 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
20624 Richard Sandiford <rdsandiford@googlemail.com>
20626 PR rtl-optimization/47166
20627 * reload1.c (emit_reload_insns): Disable the spill_reg_store
20628 mechanism for PRE_MODIFY and POST_MODIFY.
20629 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
20632 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
20634 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
20636 2011-01-22 Jan Hubicka <jh@suse.cz>
20639 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
20641 2011-01-22 Jan Hubicka <jh@suse.cz>
20643 PR tree-optimization/43884
20645 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
20646 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
20648 2011-01-22 Anatoly Sokolov <aesok@post.ru>
20650 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
20651 * config/s390/s390.c (s390_register_move_cost,
20652 s390_memory_move_cost): New.
20653 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
20655 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20657 PR middle-end/47401
20658 * except.c (sjlj_assign_call_site_values): Move setting the
20659 crtl->uses_eh_lsda flag to ...
20660 (sjlj_mark_call_sites): ... here.
20661 (sjlj_emit_function_enter): Support NULL dispatch label.
20662 (sjlj_build_landing_pads): In a function with no landing pads
20663 that still has must-not-throw regions, generate code to register
20664 a personality function with empty LSDA.
20666 2011-01-21 Richard Henderson <rth@redhat.com>
20668 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
20670 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
20672 * compare-elim.c: New file.
20673 * Makefile.in (OBJS-common): Add it.
20674 (compare-elim.o): New.
20675 * common.opt (fcompare-elim): New.
20676 * opts.c (default_options_table): Add OPT_fcompare_elim.
20677 * tree-pass.h (pass_compare_elim_after_reload): New.
20678 * passes.c (init_optimization_passes): Add it.
20679 * recog.h: Protect against re-inclusion.
20680 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
20681 * doc/invoke.texi (-fcompare-elim): Document it.
20682 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
20683 * doc/tm.texi: Rebuild.
20685 2011-01-22 Nick Clifton <nickc@redhat.com>
20687 * config/rx/rx.md (cstoresf4): Pass comparison operator to
20688 rx_split_fp_compare.
20690 2011-01-22 Nick Clifton <nickc@redhat.com>
20692 * config/rx/rx.md (UNSPEC_CONST): New.
20693 (deallocate_and_return): Wrap the amount popped off the stack in
20694 an UNSPEC_CONST in order to stop it being rejected by
20695 -mmax-constant-size.
20696 (pop_and_return): Add a "(return)" rtx.
20697 (call): Drop the immediate operand.
20698 (call_internal): Likewise.
20699 (call_value): Likewise.
20700 (call_value_internal): Likewise.
20701 (sibcall_internal): Likewise.
20702 (sibcall_value_internal): Likewise.
20703 (sibcall): Likewise. Generate an explicit call using
20705 (sibcall_value): Likewise.
20706 (mov<>): FAIL if a constant operand is not legitimate.
20707 (addsi3_unpsec): New pattern.
20709 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
20710 (ok_for_max_constant): New function.
20711 (gen_safe_add): New function.
20712 (rx_expand_prologue): Use gen_safe_add.
20713 (rx_expand_epilogue): Likewise.
20714 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
20717 2011-01-21 Jeff Law <law@redhat.com>
20719 PR tree-optimization/47053
20720 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
20721 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
20722 statements are deleted.
20723 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
20724 is nonempty, then purge dead edges and cleanup the CFG.
20726 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
20729 Temporarily revert:
20730 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
20732 * tree-dfa.c (create_var_ann): Mark variable as used.
20734 2011-01-21 Jakub Jelinek <jakub@redhat.com>
20736 PR middle-end/45566
20737 * except.c (convert_to_eh_region_ranges): Emit queued no-region
20738 notes from other section in hot/cold partitioning even if
20739 last_action is -3. Increment call_site_base.
20741 PR rtl-optimization/47366
20742 * fwprop.c (forward_propagate_into): Return bool. If
20743 any changes are made, -fnon-call-exceptions is used and
20744 REG_EH_REGION note is present, call purge_dead_edges
20745 and return true if it purged anything.
20746 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
20747 any EH edges were purged.
20749 2011-01-21 Jeff Law <law@redhat.com>
20751 PR rtl-optimization/41619
20752 * caller-save.c (setup_save_areas): Break out code to determine
20753 which hard regs are live across calls by examining the reload chains
20754 so that it is always used.
20755 Eliminate code which checked REG_N_CALLS_CROSSED.
20757 2011-01-21 Jakub Jelinek <jakub@redhat.com>
20759 PR tree-optimization/47355
20760 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
20761 NOP has non-debug uses beyond PHIs in new_bb.
20763 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
20766 * cfgexpand.c (account_used_vars_for_block): Only account vars
20767 that are annotated as used.
20768 (estimated_stack_frame_size): Don't set TREE_USED.
20769 * tree-dfa.c (create_var_ann): Mark variable as used.
20771 2011-01-21 Richard Guenther <rguenther@suse.de>
20773 PR middle-end/47395
20774 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
20776 2011-01-21 Richard Guenther <rguenther@suse.de>
20778 PR tree-optimization/47365
20779 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
20780 (vn_reference_lookup_pieces): Adjust.
20781 (vn_reference_lookup): Likewise.
20782 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
20783 (vn_reference_lookup_3): Only look through kills if in
20784 VN_WALKREWRITE mode.
20785 (vn_reference_lookup_pieces): Adjust.
20786 (vn_reference_lookup): Likewise.
20787 (visit_reference_op_load): Likewise.
20788 (visit_reference_op_store): Likewise.
20789 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
20790 (compute_avail): Likewise.
20791 (eliminate): Likewise.
20793 2011-01-21 Jakub Jelinek <jakub@redhat.com>
20795 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
20796 DECL_IGNORED_P non-reg vars if they are used.
20798 PR tree-optimization/47391
20799 * varpool.c (const_value_known_p): Return false if
20802 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
20805 * config/i386/i386.c (ix86_local_alignment): Handle
20806 case for va_list_type_node is nil.
20807 (ix86_canonical_va_list_type): Likewise.
20809 2011-01-21 Alan Modra <amodra@gmail.com>
20811 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
20812 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
20814 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20816 * config/arm/arm.md (define_attr type): Rename f_load
20817 and f_store to f_fpa_load and f_fpa_store. Update.
20818 (write_conflict): Deal with rename fallout.
20819 (*push_fp_multi): Likewise.
20820 * config/arm/fpa.md (f_load): Use f_fpa_load.
20821 (f_store): Use f_fpa_store.
20822 (*movsf_fpa): Likewise.
20823 (*movdf_fpa): Likewise.
20824 (*movxf_fpa): Likewise.
20825 (*thumb2_movsf_fpa): Likewise.
20826 (*thumb2_movdf_fpa): Likewise.
20827 (*thumb2_movxf_fpa): Likewise.
20828 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
20829 f_loadd and f_stored.
20830 (*thumb2_movdi_vfp): Likewise.
20831 (*thumb2_movsf_vfp): Fix attribute to f_loads.
20832 (*thumb2_movsi_vfp): Likewise.
20833 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
20834 Use f_loads instead of f_load.
20835 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
20837 2011-01-20 Anatoly Sokolov <aesok@post.ru>
20839 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20840 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
20841 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20842 (xtensa_mode_dependent_address_p): New function.
20843 (constantpool_address_p): Make static. Change return type to bool.
20844 Change argument type to const_rtx. Use CONST_INT_P predicate.
20846 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
20849 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
20851 2011-01-20 Jakub Jelinek <jakub@redhat.com>
20854 * cfgexpand.c (expand_debug_expr): Instead of generating
20855 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
20858 2011-01-20 Richard Guenther <rguenther@suse.de>
20860 PR middle-end/47370
20861 * tree-inline.c (remap_gimple_op_r): Recurse manually for
20862 the pointer operand of MEM_REFs.
20864 2011-01-20 Jakub Jelinek <jakub@redhat.com>
20866 PR tree-optimization/46130
20867 * ipa-split.c (consider_split): If return_bb contains non-virtual
20868 PHIs other than for retval or if split_function would not adjust it,
20871 2011-01-20 Richard Guenther <rguenther@suse.de>
20873 PR tree-optimization/47167
20874 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
20875 Revert previous change, only avoid enumeral type changes.
20877 2011-01-19 Mike Stump <mikestump@comcast.net>
20879 * doc/tm.texi.in (BRANCH_COST): Englishify.
20880 * doc/tm.texi (BRANCH_COST): Likewise.
20882 2011-01-19 Dodji Seketeli <dodji@redhat.com>
20885 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
20886 (gen_scheduled_generic_parms_dies): New functions.
20887 (gen_struct_or_union_type_die): Schedule template parameters DIEs
20888 generation for the end of CU compilation.
20889 (dwarf2out_finish): Generate template parameters DIEs here.
20891 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
20894 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
20895 debug bind stmt on merge edges.
20897 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
20901 * function.c (instantiate_expr): Instantiate incoming rtl of
20902 implicit arguments, and recurse on VALUE_EXPRs.
20903 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
20904 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
20906 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
20908 * c-parser.c (c_parser_for_statement): Initialize
20909 collection_expression.
20911 2011-01-19 Joseph Myers <joseph@codesourcery.com>
20913 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
20915 2011-01-19 Joseph Myers <joseph@codesourcery.com>
20917 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
20918 (LINK_SHLIB_SPEC): Don't use %(link_path).
20919 (SUBTARGET_EXTRA_SPECS): Remove link_path.
20921 2011-01-19 Joseph Myers <joseph@codesourcery.com>
20923 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
20924 (NO_SHARED_LIB_SUPPORT): Remove.
20925 (LINK_SHLIB_SPEC): Remove one conditional definition.
20927 2011-01-19 Joseph Myers <joseph@codesourcery.com>
20929 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
20931 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
20932 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
20933 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
20934 %{call_shared} and conditionals on these options not being passed.
20935 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
20938 2011-01-19 Jakub Jelinek <jakub@redhat.com>
20940 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
20943 * ipa-split.c: Spelling fixes.
20945 2011-01-19 Richard Henderson <rth@redhat.com>
20947 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
20948 (*mulsi3): Likewise.
20950 * longlong.h [__mn10300__] (count_leading_zeros): New.
20951 [__mn10300__] (umul_ppmm, smul_ppmm): New.
20952 [__mn10300__] (add_ssaaaa, subddmmss): New.
20953 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
20954 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
20956 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20958 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
20960 2011-01-19 Richard Henderson <rth@redhat.com>
20962 * config/mn10300/mn10300.md (addsi3_flags): New.
20963 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
20964 (subsi3_flags, subc_internal, subdi3): New.
20965 (subdi3_internal, *subdi3_degenerate): New.
20966 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
20968 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
20969 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
20970 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
20971 * config/mn10300/mn10300-protos.h: Update.
20972 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
20973 (return_ret): Likewise. Rename from return_internal_regs.
20974 (return_internal): Remove.
20976 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
20977 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
20978 (mn10300_legitimate_constant_p): Likewise.
20979 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
20980 (mn10300_frame_size): New.
20981 (mn10300_expand_prologue): Use it.
20982 (mn10300_expand_epilogue): Likewise.
20983 (mn10300_initial_offset): Likewise.
20984 * config/mn10300/mn10300-protos.h: Update.
20985 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
20986 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
20987 (prologue, epilogue, return_internal): Tidy output code.
20988 (mn10300_store_multiple_operation, return): Likewise.
20989 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
20990 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
20991 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
20992 (load_pic, am33_load_pic): New.
20993 (mn10300_load_pic0, mn10300_load_pic1): New.
20995 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
20996 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
20997 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
20998 (cc_flags_for_mode, cc_flags_for_code): New.
20999 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
21000 overflow flag is not valid. Validate that the flags we need
21001 for the comparison are valid.
21002 (mn10300_output_cmp): Remove.
21003 (mn10300_output_add): New.
21004 (mn10300_select_cc_mode): Use cc_flags_for_code.
21005 (mn10300_split_cbranch): New.
21006 (mn10300_match_ccmode): New.
21007 (mn10300_split_and_operand_count): New.
21008 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
21010 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
21011 (addsi3): ... here. Use mn10300_output_add.
21012 (*addsi3_flags): New.
21013 (*am33_subsi3, *mn10300_subsi3): Merge...
21014 (subsi3): ... here. Use attribute isa.
21015 (*subsi3_flags): New.
21016 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
21018 (*am33_andsi3, *mn10300_andsi3): Merge...
21019 (andsi3): ... here.
21020 (*andsi3_flags): New.
21021 (andsi3 splitters): New.
21022 (*am33_iorsi3, *mn10300_iorsi3): Merge...
21023 (iorsi3): ... here.
21024 (*iorsi3_flags): New.
21025 (*am33_xorsi3, *mn10300_xorsi3): Merge...
21026 (xorsi3): ... here.
21027 (*xorsi3_flags): New.
21028 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
21029 (one_cmplsi2): ... here.
21030 (*one_cmplsi2_flags): New.
21031 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
21032 instead of "dax" in constraints. Use mn10300_split_cbranch.
21033 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
21034 use matching constraints to eliminate a self-comparison.
21035 (*integer_conditional_branch): Rename from integer_conditional_branch.
21036 Use int_mode_flags to match CC_REG.
21037 (*cbranchsi4_btst, *btstsi): New.
21038 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
21039 mn10300_split_cbranch.
21040 (*am33_cmpsf): Rename from am33_cmpsf.
21041 (*float_conditional_branch): Rename from float_conditional_branch.
21042 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
21043 (zero_extendqisi2): ... here.
21044 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
21045 (zero_extendhisi2): ... here.
21046 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
21047 (extendqisi2): ... here.
21048 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
21049 (extendhisi2): ... here.
21050 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
21051 (ashlsi3): ... here.
21052 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
21053 (lshrsi3): ... here.
21054 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
21055 (ashrsi3): ... here.
21056 (consecutive add peephole): Remove.
21057 * config/mn10300/predicates.md (label_ref_operand): New.
21058 (int_mode_flags): New.
21059 (CCZN_comparison_operator): New.
21061 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
21062 (throughput_42_latency_43): New reservation.
21063 (mulsidi3, umulsidi3): New expanders.
21064 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
21065 the MDR register to allocation; separately allocate the low and
21066 high parts of the DImode result.
21067 (umulsidi3_internal): Similarly.
21068 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
21069 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
21070 (udivsi3, umodsi3): Remove.
21071 (udivmodsi4, divmodsi4): New expanders.
21072 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
21073 (*divmodsi4): Simiarly.
21074 (ext_internal): New.
21076 * config/mn10300/constraints.md ("z"): New constraint.
21077 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
21078 (FIXED_REGISTERS): Don't fix MDR.
21079 (CALL_USED_REGSITERS): Reformat nicely.
21080 (REG_ALLOC_ORDER): Add MDR.
21081 (enum regclass): Add MDR_REGS.
21082 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
21083 (IRA_COVER_CLASSES): Add MDR_REGS.
21084 (REGNO_REG_CLASS): Handle MDR_REG.
21085 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
21086 (mn10300_register_move_cost): Likewise.
21087 * config/mn10300/mn10300.md (MDR_REG): New.
21088 (*movsi_internal): Handle moves to/from MDR_REGS.
21090 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
21092 (mn10300_secondary_reload): Tidy combination reload classes.
21093 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
21094 addresses for AM33. Allow symbolic offsets for reg+imm.
21095 (mn10300_regno_in_class_p): New.
21096 (mn10300_legitimize_reload_address): New.
21097 * config/mn10300/mn10300.h (enum reg_class): Remove
21098 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
21099 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
21100 SP_OR_GENERAL_REGS.
21101 (REG_CLASS_NAMES): Update to match.
21102 (REG_CLASS_CONTENTS): Likewise.
21103 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
21104 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
21105 (REGNO_IN_RANGE_P): Remove.
21106 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
21107 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
21108 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
21109 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
21110 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
21111 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
21112 (REGNO_GENERAL_P): New.
21113 (HAVE_POST_MODIFY_DISP): New.
21114 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
21115 (LEGITIMIZE_RELOAD_ADDRESS): New.
21116 * config/mn10300/mn10300-protos.h: Update.
21118 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
21119 DATA_REGS for AM33 stack-pointer destination.
21120 (mn10300_preferred_output_reload_class): Likewise.
21121 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
21122 into a form appropriate for ...
21123 (TARGET_SECONDARY_RELOAD): New.
21124 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
21125 * config/mn10300/mn10300-protos.h: Update.
21126 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
21127 reload_insi; use the "A" constraint for the scratch; handle AM33
21128 moves of sp to non-address registers.
21130 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
21131 (*movqi_internal): ... here.
21132 (*am33_movhi, *mn10300_movhi): Merge into...
21133 (*movhi_internal): ... here.
21134 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
21135 as the source/destination of moves from/to SP.
21136 (movsf): Only allow for AM33-2.
21137 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
21138 any integer constant constraint. Only allow for AM33-2. Tidy
21139 all of the alternative outputs.
21140 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
21141 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
21143 (udivsi3, umodsi3): New patterns for MN103 only.
21145 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
21147 * doc/tm.texi.in: Spell out that a lack of register class unions
21149 * doc/tm.texi: Regenerate.
21151 2011-01-19 Jakub Jelinek <jakub@redhat.com>
21153 PR rtl-optimization/47337
21154 * dce.c (check_argument_store): New function.
21155 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
21157 PR tree-optimization/47290
21158 * tree-eh.c (infinite_empty_loop_p): New function.
21159 (cleanup_empty_eh): Use it.
21161 2011-01-18 Steve Ellcey <sje@cup.hp.com>
21164 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
21165 (a64_expand_widen_sum): Ditto.
21166 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
21167 (vec_extract_evenodd_help): Ditto.
21168 (vec_extract_evenv4hi): Ditto.
21169 (vec_extract_oddv4hi): Ditto.
21170 (vec_extract_evenv2si): Ditto.
21171 (vec_extract_oddv2si): Ditto.
21172 (vec_extract_evenv2sf): Ditto.
21173 (vec_extract_oddv2sf): Ditto.
21174 (vec_pack_trunc_v4hi: Ditto.
21175 (vec_pack_trunc_v2si): Ditto.
21176 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
21177 (vec_interleave_highv8qi): Ditto.
21179 (vec_extract_oddv8qi): Ditto.
21180 (vec_interleave_lowv4hi): Ditto.
21181 (vec_interleave_highv4hi): Ditto.
21182 (vec_interleave_lowv2si): Ditto.
21183 (vec_interleave_highv2si): Ditto.
21185 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21187 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
21188 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
21189 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
21190 (pa_c_mode_for_suffix): New.
21191 (TARGET_EXPAND_BUILTIN): Define.
21192 (TARGET_C_MODE_FOR_SUFFIX): Define.
21193 (pa_builtins): Define.
21194 (pa_init_builtins): Register __float128 type and init new support
21196 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
21197 * config/pa/quadlib.c (_U_Qfcopysign): New.
21199 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
21201 PR middle-end/46894
21202 * explow.c (allocate_dynamic_stack_space): Do not assume more than
21203 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
21206 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21208 PR tree-optimization/47179
21209 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
21210 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
21212 2011-01-18 Richard Guenther <rguenther@suse.de>
21214 PR rtl-optimization/47216
21215 * emit-rtl.c: Include tree-flow.h.
21216 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
21217 of replicating it with different semantics.
21218 * Makefile.in (emit-rtl.o): Adjust.
21220 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21222 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
21223 (cortex_a9_dp): Handle neon types correctly.
21225 2011-01-18 Jakub Jelinek <jakub@redhat.com>
21227 PR rtl-optimization/47299
21228 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
21229 subtarget. Use normal multiplication if both operands are constants.
21230 * expmed.c (expand_widening_mult): Don't try to optimize constant
21231 multiplication if op0 has VOIDmode. Convert op1 constant to mode
21234 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21236 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
21237 spacing after 'e.g.', typos, comma, hyphenation.
21239 2011-01-17 Richard Henderson <rth@redhat.com>
21241 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
21242 (rx_restricted_mem_operand): New.
21243 (rx_shift_operand): Use register_operand.
21244 (rx_source_operand, rx_compare_operand): Likewise.
21245 * config/rx/rx.md (addsi3_flags): New expander.
21246 (adddi3): Rewrite as expander.
21247 (adc_internal, *adc_flags, adddi3_internal): New patterns.
21248 (subsi3_flags): New expander.
21249 (subdi3): Rewrite as expander.
21250 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
21252 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
21253 (rx_init_builtins): Remove sat builtin.
21254 (rx_expand_builtin): Likewise.
21255 * config/rx/rx.md (ssaddsi3): New.
21256 (*sat): Rename from sat. Represent the CC_REG input.
21258 * config/rx/predicates.md (rshift_operator): New.
21259 * config/rx/rx.c (rx_expand_insv): Remove.
21260 * config/rx/rx-protos.h: Update.
21261 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
21262 operand to the canonical position.
21263 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
21264 (*bitclr, *bitclr_in_memory): Similarly.
21265 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
21266 (insv): Retain the zero_extract in the expansion.
21268 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
21269 (bswaphi2, bitinvert, revw): Likewise.
21271 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
21272 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
21273 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
21274 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
21275 (bitset, bitset_in_memory): Likewise.
21276 (bitinvert, bitinvert_in_memory): Likewise.
21277 (bitclr, bitclr_in_memory): Likewise.
21278 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
21279 (rx_strend, rx_cmpstrn): Likewise.
21280 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
21281 (bitop peep2 patterns): Remove.
21283 * config/rx/rx.c (rx_match_ccmode): New.
21284 * config/rx/rx-protos.h: Update.
21285 * config/rx/rx.md (abssi2): Clobber, don't set flags.
21286 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
21287 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
21288 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
21289 (fix_truncsfsi2, floatsisf2): Likewise.
21290 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
21291 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
21292 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
21293 (*subsi3_flags, *xorsi3_flags): New.
21295 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
21297 * config/rx/rx.c (rx_print_operand): Remove workaround for
21298 unsplit comparison operations.
21300 * config/rx/rx.md (movsicc): Split after reload.
21301 (*movsicc): Merge *movsieq and *movsine via match_operator.
21302 (*stcc): New pattern.
21304 * config/rx/rx.c (rx_float_compare_mode): Remove.
21305 * config/rx/rx.h (rx_float_compare_mode): Remove.
21306 * config/rx/rx.md (cstoresi4): Split after reload.
21307 (*sccc): New pattern.
21309 * config/rx/predicates.md (label_ref_operand): New.
21310 (rx_z_comparison_operator): New.
21311 (rx_zs_comparison_operator): New.
21312 (rx_fp_comparison_operator): New.
21313 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
21314 Validate that the flags are set properly for the comparison.
21315 (rx_gen_cond_branch_template): Remove.
21316 (rx_cc_modes_compatible): Remove.
21317 (mode_from_flags): New.
21318 (flags_from_code): Rename from flags_needed_for_conditional.
21319 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
21320 (rx_select_cc_mode): Likewise.
21321 (rx_split_fp_compare): New.
21322 (rx_split_cbranch): New.
21323 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
21324 (*cbranchsi4): Use match_operator and rx_split_cbranch.
21325 (*cbranchsf4): Similarly.
21326 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
21327 match_operator and rx_split_cbranch.
21328 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
21329 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
21330 (*cmpsi): Rename from cmpsi.
21331 (*tstsi): Rename from tstsi.
21332 (*cmpsf): Rename from cmpsf; use CC_Fmode.
21333 (*conditional_branch): Rename from conditional_branch.
21334 (*reveresed_conditional_branch): Remove.
21335 (b<code>): Remove expander.
21336 * config/rx/rx-protos.h: Update.
21338 * config/rx/rx.c (rx_compare_redundant): Remove.
21339 * config/rx/rx.md (cmpsi): Don't use it.
21340 * config/rx/rx-protos.h: Update.
21342 * config/rx/rx-modes.def (CC_F): New mode.
21343 * config/rx/rx.c (rx_select_cc_mode): New.
21344 * config/rx/rx.h (SELECT_CC_MODE): Use it.
21345 * config/rx/rx-protos.h: Update.
21347 2011-01-17 Richard Henderson <rth@redhat.com>
21349 * except.c (dump_eh_tree): Fix stray ; after for statement.
21351 2011-01-17 Richard Guenther <rguenther@suse.de>
21353 PR tree-optimization/47313
21354 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
21355 handling before copying the body. Properly deal with
21356 by-reference result in SSA form.
21358 2011-01-17 Ian Lance Taylor <iant@google.com>
21361 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
21362 (struct_value_alias_set): Don't define.
21363 (sparc_option_override): Don't set sparc_sr_alias_set and
21364 struct_value_alias_set.
21365 (save_or_restore_regs): Use gen_frame_mem rather than calling
21367 (sparc_struct_value_rtx): Likewise.
21369 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
21372 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
21373 (_mm_maskstore_pd): Likewise.
21374 (_mm_maskload_ps): Likewise.
21375 (_mm_maskstore_ps): Likewise.
21376 (_mm256_maskload_pd): Change mask to __m256i.
21377 (_mm256_maskstore_pd): Likewise.
21378 (_mm256_maskload_ps): Likewise.
21379 (_mm256_maskstore_ps): Likewise.
21381 * config/i386/i386-builtin-types.def: Updated.
21382 (ix86_expand_special_args_builtin): Likewise.
21384 * config/i386/i386.c (bdesc_special_args): Update
21385 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
21386 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
21387 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
21388 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
21390 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
21391 Use <avxpermvecmode> on mask register.
21392 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
21394 2011-01-17 Olivier Hainque <hainque@adacore.com>
21395 Michael Haubenwallner <michael.haubenwallner@salomon.at>
21396 Eric Botcazou <ebotcazou@adacore.com>
21399 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
21400 if <= USHRT_MAX in 32-bit mode.
21402 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21404 * doc/install.texi (Configuration, Specific): Wrap long
21405 lines in examples. Allow line wrapping in long options
21406 and URLs where beneficial for PDF output.
21408 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
21410 * config/mips/mips.c (mips_classify_symbol): Don't return
21411 SYMBOL_PC_RELATIVE for nonlocal labels.
21413 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
21415 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
21417 2011-01-15 Jan Hubicka <jh@suse.cz>
21419 PR tree-optimization/47276
21420 * ipa.c (function_and_variable_visibility): Do not try to mark alias
21421 declarations as needed.
21423 2011-01-15 Martin Jambor <mjambor@suse.cz>
21425 * common.opt (fdevirtualize): New flag.
21426 * doc/invoke.texi (Option Summary): Document it.
21427 * opts.c (default_options_table): Add devirtualize flag.
21428 * ipa-prop.c (detect_type_change): Return immediately if
21429 devirtualize flag is not set.
21430 (detect_type_change_ssa): Likewise.
21431 (compute_known_type_jump_func): Likewise.
21432 (ipa_analyze_virtual_call_uses): Likewise.
21434 2011-01-14 Martin Jambor <mjambor@suse.cz>
21436 PR tree-optimization/45934
21437 PR tree-optimization/46302
21438 * ipa-prop.c (type_change_info): New type.
21439 (stmt_may_be_vtbl_ptr_store): New function.
21440 (check_stmt_for_type_change): Likewise.
21441 (detect_type_change): Likewise.
21442 (detect_type_change_ssa): Likewise.
21443 (compute_complex_assign_jump_func): Check for dynamic type change.
21444 (compute_complex_ancestor_jump_func): Likewise.
21445 (compute_known_type_jump_func): Likewise.
21446 (compute_scalar_jump_functions): Likewise.
21447 (ipa_analyze_virtual_call_uses): Likewise.
21448 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
21450 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21452 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
21453 * config/i386/i386.opt (msse5): New Alias.
21455 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21457 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
21458 * config/sparc/linux64.h (CC1_SPEC): Likewise.
21459 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21460 * config/sparc/sparc.h (CC1_SPEC): Likewise.
21462 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21464 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
21466 * config/sparc/linux64.h (CC1_SPEC): Likewise.
21467 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21468 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
21469 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
21471 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
21473 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21475 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
21477 2011-01-14 Mike Stump <mikestump@comcast.net>
21479 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
21480 * config/fr30/fr30.md: Likweise
21481 (movsi_push): Likewise.
21482 (movsi_pop): Likewise.
21483 (enter_func): Likewise.
21484 * config/moxie/moxie.md (movsi_push): Likewise.
21485 (movsi_pop): Likewise.
21487 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21489 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
21490 %{no_archive} %{exact_version}.
21491 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
21492 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
21493 %{no_archive} %{exact_version}.
21494 * config/mips/openbsd.h (LINK_SPEC): Likewise.
21495 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
21496 * config/mips/vxworks.h: Likewise.
21498 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21500 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
21502 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21504 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
21505 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
21507 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21509 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
21512 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21514 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
21516 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
21517 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
21519 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
21520 Don't handle -shlib.
21522 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21524 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
21525 (CC1_SPEC): Don't handle -profile.
21527 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21529 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
21530 * config/mips/mips.h (CC1_SPEC): Likewise.
21532 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21534 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
21535 * config/mips/mips.h (CC1_SPEC): Likewise.
21537 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21539 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
21540 * config/m32r/linux.h (LINK_SPEC): Likewise.
21541 * config/mips/linux.h (LINK_SPEC): Likewise.
21542 * config/mips/linux64.h (LINK_SPEC): Likewise.
21543 * config/sparc/linux.h (LINK_SPEC): Likewise.
21544 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
21545 LINK_SPEC): Likewise.
21546 * config/xtensa/linux.h (LINK_SPEC): Likewise.
21548 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21550 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
21552 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
21554 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21556 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
21557 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
21559 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21561 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
21563 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21565 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
21566 supports -Bstatic/-Bdynamic.
21567 * configure: Regenerate.
21569 2011-01-14 Jan Hubicka <jh@suse.cz>
21570 Jack Howarth <howarth@bromo.med.uc.edu>
21573 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
21574 when checking debug_info_level. Test write_symbols instead of
21575 debug_hooks->var_location when setting flag_var_tracking_uninit.
21577 2011-01-14 Richard Guenther <rguenther@suse.de>
21579 PR tree-optimization/47179
21580 * target.def (ref_may_alias_errno): New target hook.
21581 * targhooks.h (default_ref_may_alias_errno): Declare.
21582 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
21583 (default_ref_may_alias_errno): New function.
21584 * target.h (struct ao_ref_s): Declare.
21585 * tree-ssa-alias.c: Include target.h.
21586 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
21587 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
21588 (targhooks.o): Likewise.
21589 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
21590 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
21592 2011-01-14 Richard Guenther <rguenther@suse.de>
21594 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
21596 2011-01-14 Richard Guenther <rguenther@suse.de>
21598 PR tree-optimization/47280
21599 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
21600 return CFG changes.
21601 (tree_ssa_forward_propagate_single_use_vars): Deal with
21602 CFG changes from associate_plusminus.
21604 2011-01-14 Richard Guenther <rguenther@suse.de>
21606 PR middle-end/47281
21608 2011-01-11 Richard Guenther <rguenther@suse.de>
21610 PR tree-optimization/46076
21611 * tree-ssa.c (useless_type_conversion_p): Conversions from
21612 unprototyped to empty argument list function types are useless.
21614 2011-01-14 Richard Guenther <rguenther@suse.de>
21616 PR tree-optimization/47286
21617 * tree-ssa-structalias.c (new_var_info): Register variables are global.
21619 2011-01-14 Martin Jambor <mjambor@suse.cz>
21621 PR middle-end/46823
21622 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
21624 2011-01-13 Anatoly Sokolov <aesok@post.ru>
21626 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
21627 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21628 * config/xtensa/xtensa.c (xtensa_libcall_value,
21629 xtensa_function_value_regno_p): New functions.
21630 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
21632 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
21635 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
21637 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
21638 New function prototype.
21639 * config/i386/winnt.c (i386_pe_assemble_visibility):
21640 Warn only if attribute was specified by user.
21642 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
21645 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
21647 (floatunsdidf2_fcfidu): Ditto.
21649 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21651 * config/s390/s390.c (print_operand_address): Replace 'error' with
21652 'output_operand_lossage'.
21653 (print_operand): Likewise.
21655 2011-01-13 Jeff Law <law@redhat.com>
21657 PR rtl-optimization/39077
21658 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
21659 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
21660 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
21661 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
21662 * gcse.c (prune_insertions_deletions): New function.
21663 (compute_pre_data): Use it.
21665 2011-01-13 Dodji Seketeli <dodji@redhat.com>
21668 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
21670 (prune_unused_types_mark): Use it.
21672 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
21674 PR rtl-optimization/45352
21675 * sel-sched.c: Update copyright years.
21676 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
21677 in the advancing loop when we have issued issue_rate insns.
21679 2011-01-12 Richard Henderson <rth@redhat.com>
21681 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
21682 (TARGET_MD_ASM_CLOBBERS): New.
21684 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
21685 (TARGET_DELEGITIMIZE_ADDRESS): New.
21687 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
21688 (clzsi2, *bsch): New patterns.
21690 * config/mn10300/mn10300.md (INT): New mode iterator.
21691 (*mov<INT>_clr): New pattern, and peep2 to generate it.
21693 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
21694 flag_split_wide_types.
21696 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
21697 (mn10300_trampoline_init): Rewrite without a template, an immediate
21698 load and a direct branch.
21699 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
21701 2011-01-12 Anatoly Sokolov <aesok@post.ru>
21703 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21704 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
21705 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
21706 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
21708 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
21711 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
21714 2011-01-12 Jan Hubicka <jh@suse.cz>
21717 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
21718 (PLUGIN_COND_CLOSE): New macro.
21719 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
21721 2011-01-12 Richard Guenther <rguenther@suse.de>
21724 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
21725 register variables in a MEM_REF.
21727 2011-01-12 Joseph Myers <joseph@codesourcery.com>
21729 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
21730 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
21731 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
21732 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
21733 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
21734 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
21735 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
21736 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
21737 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
21738 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
21739 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
21740 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
21741 * config/gnu-user.h: New. Copied from linux.h.
21742 (LINUX_TARGET_STARTFILE_SPEC): Rename to
21743 GNU_USER_TARGET_STARTFILE_SPEC.
21744 (LINUX_TARGET_ENDFILE_SPEC): Rename to
21745 GNU_USER_TARGET_ENDFILE_SPEC.
21746 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
21747 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
21748 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
21749 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
21750 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
21751 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
21752 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
21753 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
21754 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
21755 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
21756 * config/arm/linux-eabi.h (CC1_SPEC): Use
21757 GNU_USER_TARGET_CC1_SPEC.
21758 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
21759 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
21760 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
21761 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
21762 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
21763 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
21764 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
21765 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
21767 2011-01-12 Richard Guenther <rguenther@suse.de>
21770 * doc/invoke.texi (ffast-math): Document it is turned on
21773 2011-01-12 Jan Hubicka <jh@suse.cz>
21775 PR tree-optimization/47233
21776 * opts.c (common_handle_option): Disable ipa-reference with profile
21779 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
21781 * c-parser.c (c_parser_objc_at_property_declaration): Improved
21784 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
21786 * c-parser.c (c_lex_one_token): Updated and reindented some
21787 comments. No changes in code.
21789 2011-01-11 Ian Lance Taylor <iant@google.com>
21791 * godump.c (go_output_var): Don't output the variable if there is
21792 already a type with the same name.
21794 2011-01-11 Ian Lance Taylor <iant@google.com>
21796 * godump.c (go_format_type): Don't generate float80.
21798 2011-01-11 Richard Henderson <rth@redhat.com>
21800 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
21801 declaration. Rewrite for both speed and size.
21802 (mn10300_address_cost_1): Remove.
21803 (mn10300_register_move_cost): New.
21804 (mn10300_memory_move_cost): New.
21805 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
21806 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
21807 extensions, shifts, BSWAP, CLZ.
21808 (mn10300_wide_const_load_uses_clr): Remove.
21809 (TARGET_REGISTER_MOVE_COST): New.
21810 (TARGET_MEMORY_MOVE_COST): New.
21811 * config/mn10300/mn10300-protos.h: Update.
21812 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
21814 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
21815 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
21816 * config/mn10300/mn10300-protos.h: Update.
21817 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
21818 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
21819 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
21820 (*test_int_bitfield, *test_byte_bitfield): Remove.
21821 (*bit_test, *subreg_bit_test): Remove.
21822 * config/mn10300/predicates.md (const_8bit_operand): Remove.
21824 * config/mn10300/constraints.md ("c"): Rename from "A".
21825 ("A", "D"): New constraint letters.
21826 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
21827 (fmssf4, fnmasf4, fnmssf4): Likewise.
21829 * config/mn10300/mn10300.md (isa): New attribute.
21830 (enabled): New attribute.
21832 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
21833 (abssf2, negsf2): Define only for hardware fp.
21834 (sqrtsf2): Reformat.
21835 (addsf3, subsf3, mulsf3): Merge expander and insn.
21837 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
21838 (DEBUGGER_AUTO_OFFSET): Remove.
21839 (DEBUGGER_ARG_OFFSET): Remove.
21841 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
21842 Emit register stores with the same offsets as the hardware.
21843 (mn10300_store_multiple_operation): Don't check that the register
21844 save offsets are monotonic.
21845 * config/mn10300/mn10300-protos.h: Update.
21847 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
21849 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
21850 in terms of the value on the stack, not the MDR register.
21852 2011-01-11 Jan Hubicka <jh@suse.cz>
21856 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
21857 (symbol_alias_set_destroy, symbol_alias_set_contains,
21858 propagate_aliases_backward): Declare.
21859 * lto-streamer-out.c (struct sets): New sturcture.
21860 (trivally_defined_alias): New function.
21861 (output_alias_pair_p): Rewrite.
21862 (output_unreferenced_globals): Fix output of alias pairs.
21863 (produce_symtab): Likewise.
21864 * ipa.c (function_and_variable_visibility): Set weak alias destination
21866 * varasm.c (symbol_alias_set_t): Remove.
21867 (symbol_alias_set_destroy): Export.
21868 (propagate_aliases_forward, propagate_aliases_backward): New functions
21870 (compute_visible_aliases): ... this one; remove.
21871 (trivially_visible_alias): New
21872 (trivially_defined_alias): New.
21873 (remove_unreachable_alias_pairs): Rewrite.
21874 (finish_aliases_1): Reorganize code checking if alias is defined.
21875 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
21878 2011-01-11 Richard Guenther <rguenther@suse.de>
21880 PR tree-optimization/46076
21881 * tree-ssa.c (useless_type_conversion_p): Conversions from
21882 unprototyped to empty argument list function types are useless.
21884 2011-01-11 Richard Guenther <rguenther@suse.de>
21886 PR middle-end/45235
21887 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
21888 volatile MEMs as MEM_READONLY_P.
21890 2011-01-11 Richard Guenther <rguenther@suse.de>
21892 PR tree-optimization/47239
21893 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
21895 2011-01-11 Jeff Law <law@redhat.com>
21897 PR tree-optimization/47086
21898 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
21899 IVs from statements that might throw.
21901 2011-01-10 Jan Hubicka <jh@suse.cz>
21904 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
21906 2011-01-10 Jan Hubicka <jh@suse.cz>
21909 * profile.c (read_profile_edge_counts): Ignore profile inconistency
21910 when correcting profile.
21912 2011-01-10 Jan Hubicka <jh@suse.cz>
21915 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
21916 DECL_FINI_PRIORITY.
21917 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
21918 Restore DECL_FINI_PRIORITY.
21920 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21922 * doc/gimple.texi: Fix quoting of multi-word return values in
21923 @deftypefn statements. Ensure presence of return value. Wrap
21924 overlong @deftypefn lines.
21925 (is_gimple_operand, is_gimple_min_invariant_address): Remove
21926 descriptions of removed functions.
21927 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
21928 of multi-word return value in @deftypefn statement.
21930 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21932 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
21933 (Conditional Expressions, Logical Operators)
21934 (Statement and operand traversals): Do not indent smallexample
21935 code. Fix duplicate function argument in example.
21937 2011-01-10 Jeff Law <law@redhat.com>
21939 PR tree-optimization/47141
21940 * ipa-split.c (split_function): Handle case where we are
21941 returning a value and the return block has a virtual operand phi.
21943 2011-01-10 Jan Hubicka <jh@suse.cz>
21945 PR tree-optimization/47234
21946 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
21947 (pass_feedback_split_functions): Declare.
21948 * passes.c (init_optimization_passes): Add ipa-split as subpass of
21950 * ipa-split.c (gate_split_functions): Update comments; disable
21951 split-functions for profile_arc_flag and branch_probabilities.
21952 (gate_feedback_split_functions): New function.
21953 (execute_feedback_split_functions): New function.
21954 (pass_feedback_split_functions): New global var.
21956 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
21959 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
21960 calling gimple_call_set_cannot_inline.
21962 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
21964 * config/darwin-sections.def: Remove unused section.
21966 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
21969 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
21971 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
21974 * c-parser.c (c_parser_declaration_or_fndef): Improved
21977 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
21979 * config/i386/winnt.c (i386_pe_start_function): Make sure
21980 to switch back to function's section.
21982 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
21986 * plugin.c: Move include of dlfcn.h from here...
21987 * system.h: ... to here.
21989 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21991 * doc/cpp.texi (C++ Named Operators): Fix markup for header
21993 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
21994 two extra empty pages in PDF output.
21996 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
21999 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
22000 for error recovery purposes behave as if it was not specified so
22001 that the default type is usd.
22003 2011-01-07 Jan Hubicka <jh@suse.cz>
22005 PR tree-optmization/46469
22006 * ipa.c (function_and_variable_visibility): Clear needed flags on
22007 nodes with external decls; handle weakrefs merging correctly.
22009 2011-01-07 Joseph Myers <joseph@codesourcery.com>
22011 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
22014 2011-01-07 Jan Hubicka <jh@suse.cz>
22016 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
22017 and no longer claim that gold is required for linker plugin.
22018 * configure: Regenerate.
22019 * gcc.c (PLUGIN_COND): New macro.
22020 (LINK_COMMAND_SPEC): Use it.
22021 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
22022 * config.in (HAVE_LTO_PLUGIN): New.
22023 * configure.ac (--with-lto-plugin): New parameter; autodetect
22026 2011-01-07 Jan Hubicka <jh@suse.cz>
22028 PR tree-optimization/46367
22029 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
22030 when we can update original.
22031 (cgraph_mark_inline_edge): Sanity check.
22032 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
22034 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22036 * config/spu/spu.h (ASM_COMMENT_START): Define.
22038 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
22041 * gcc.c (%>S): New.
22042 (SWITCH_KEEP_FOR_GCC): Likewise.
22043 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
22044 (do_spec_1): Handle "%>".
22046 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
22048 2011-01-07 Jakub Jelinek <jakub@redhat.com>
22051 * config/i386/i386.c (ix86_delegitimize_address): If
22052 simplify_gen_subreg fails, return orig_x.
22055 * value-prof.c (gimple_stringop_fixed_value): Handle
22056 lhs of the call properly.
22058 2011-01-07 Jan Hubicka <jh@suse.cz>
22061 * lto-opt.c (lto_reissue_options): Set flag_shlib.
22063 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
22065 * target.def (function_switched_text_sections): New hook.
22066 * doc/tm.texi: Regenerated.
22067 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
22068 * final.c (default_function_switched_text_sections): New.
22069 (final_scan_insn): Call function_switched_text_sections when a
22070 mid-function section change occurs.
22071 * output.h (default_function_switched_text_sections): Declare.
22072 * config/darwin-protos.h (darwin_function_switched_text_sections):
22074 * config/darwin.c (darwin_function_switched_text_sections): New.
22075 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
22077 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
22079 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
22080 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
22081 the secondary code fragment when outputting for DWARF == 2.
22083 2011-01-07 Anatoly Sokolov <aesok@post.ru>
22085 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22086 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
22088 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
22089 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22091 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
22094 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
22095 when it is not empty.
22097 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
22100 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
22101 (case ${target}): Add btver1.
22102 * config/i386/driver-i386.c (host_detect_local_cpu): Let
22103 -march=native recognize btver1 processors.
22104 * config/i386/i386-c.c (ix86_target_macros_internal): Add
22105 btver1 def_and_undef
22106 * config/i386/i386.c (struct processor_costs btver1_cost): New
22108 (m_BTVER1): New definition.
22109 (m_AMD_MULTIPLE): Includes m_BTVER1.
22110 (initial_ix86_tune_features): Add btver1 tune.
22111 (processor_target_table): Add btver1 entry.
22112 (static const char *const cpu_names): Add btver1 entry.
22113 (software_prefetching_beneficial_p): Add btver1.
22114 (ix86_option_override_internal): Add btver1 instruction sets.
22115 (ix86_issue_rate): Add btver1.
22116 (ix86_adjust_cost): Add btver1.
22117 * config/i386/i386.h (TARGET_BTVER1): New definition.
22118 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
22119 (enum processor_type): Add PROCESSOR_BTVER1.
22120 * config/i386/i386.md (define_attr "cpu"): Add btver1.
22122 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22125 * config/i386/i386.c (legitimize_tls_address)
22126 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
22127 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
22128 (tls_initial_exec_64_sun): New pattern.
22130 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
22132 * doc/invoke.texi (Overall Options): Improve wording and markup
22133 of the description of -wrapper.
22135 2011-01-06 Joseph Myers <joseph@codesourcery.com>
22137 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
22138 rdynamic, threads): New Driver options.
22140 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22143 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
22144 if coming from .tdata.
22145 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
22147 2011-01-06 Jan Hubicka <jh@suse.cz>
22150 * collect2.c (main): Do not enable LTOmode when plugin is active.
22152 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22155 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
22156 --version output if supported.
22157 * configure: Regenerate.
22159 2011-01-06 Joseph Myers <joseph@codesourcery.com>
22161 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
22164 2011-01-06 Jakub Jelinek <jakub@redhat.com>
22167 * c-convert.c (convert): When converting a complex expression
22168 other than COMPLEX_EXPR to a different complex type, ensure
22169 c_save_expr is called instead of save_expr, unless in_late_binary_op.
22170 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
22171 when converting COMPLEX_TYPE.
22173 2011-01-06 Ira Rosen <irar@il.ibm.com>
22175 PR tree-optimization/47139
22176 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
22177 only the last reduction value is used outside the loop. Update
22180 2011-01-05 Joseph Myers <joseph@codesourcery.com>
22182 * config/rtems.opt: New.
22183 * config.gcc (*-*-rtems*): Use rtems.opt.
22185 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
22187 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
22188 processors do not support 3DNow instructions.
22190 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22192 * config/spu/spu.c (spu_option_override): Set parameter
22193 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
22195 2011-01-05 Jan Hubicka <jh@suse.cz>
22197 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
22198 at the command line.
22200 2011-01-05 Martin Jambor <mjambor@suse.cz>
22203 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
22204 deltas on streamed outgoing edges.
22205 (output_node_opt_summary): Output info for outgoing edges only when
22206 the node is in new parameter set.
22207 (output_cgraph_opt_summary): New parameter set, passed to the two
22208 aforementioned functions. Update its forward declaration and its
22211 2011-01-05 Tom Tromey <tromey@redhat.com>
22213 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
22214 operator to c_finish_omp_atomic.
22215 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
22216 (build_unary_op): Update.
22217 (build_modify_expr): Update.
22218 (build_asm_expr): Update.
22220 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22222 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
22223 newly inserted insns.
22224 (pad_bb): Likewise.
22225 (spu_emit_branch_hint): Likewise.
22226 (insert_hbrp_for_ilb_runout): Likewise.
22227 (spu_machine_dependent_reorg): Call df_finish_pass after
22228 schedule_insns returns.
22230 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22232 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
22234 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
22236 PR tree-optimization/47005
22237 * tree-sra.c (struct access): Add 'non_addressable' bit.
22238 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
22239 (decide_one_param_reduction): Return 0 if the parameter is passed by
22240 reference and one of the accesses in the group is non_addressable.
22242 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
22244 PR tree-optimization/47056
22245 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
22246 (mark_load): Likewise. Handle FUNCTION_DECL specially.
22247 (mark_store): Likewise. Pass STMT to ipa_record_reference.
22249 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
22251 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
22252 initializer. Skip view conversions from aggregate types.
22254 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
22257 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
22259 2011-01-04 Philipp Thomas <pth@suse.de>
22261 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
22264 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22266 * function.c (thread_prologue_and_epilogue_insns): Do not crash
22267 on empty epilogue sequences.
22269 2011-01-04 Joseph Myers <joseph@codesourcery.com>
22271 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
22272 non-static): New Driver options.
22274 2011-01-04 Jie Zhang <jie@codesourcery.com>
22277 * gcc.c (default_compilers[]): Set combinable field to 0
22278 for all assembly languages.
22280 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
22282 * config/mips/loongson3a.md: New file.
22283 * config/mips/mips.md: Include loongson3a.md.
22284 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
22287 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
22289 PR middle-end/47017
22290 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
22291 instead of convert_memory_address_addr_space on the base expression.
22293 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22295 * config/spu/spu.c (spu_option_override): Update error text
22296 for bad -march= / -mtune= values.
22298 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22300 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
22301 if branch-hint optimization will be performed.
22303 2011-01-03 Jakub Jelinek <jakub@redhat.com>
22305 PR tree-optimization/47148
22306 * ipa-split.c (split_function): Convert arguments to
22307 DECL_ARG_TYPE if possible.
22309 PR tree-optimization/47155
22310 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
22311 when computing uns.
22313 PR rtl-optimization/47157
22314 * combine.c (try_combine): If undobuf.other_insn becomes
22315 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
22316 and set *new_direct_jump_p too.
22318 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
22320 PR tree-optimization/47021
22321 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
22323 2011-01-03 Jakub Jelinek <jakub@redhat.com>
22325 * gcc.c (process_command): Update copyright notice dates.
22326 * gcov.c (print_version): Likewise.
22327 * gcov-dump.c (print_version): Likewise.
22328 * mips-tfile.c (main): Likewise.
22329 * mips-tdump.c (main): Likewise.
22331 2011-01-03 Martin Jambor <mjambor@suse.cz>
22333 PR tree-optimization/46801
22334 * tree-sra.c (type_internals_preclude_sra_p): Check whether
22335 aggregate fields start at byte boundary instead of the bit-field flag.
22337 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
22340 * gcc.c (main): Revert revision 168407.
22342 2011-01-03 Martin Jambor <mjambor@suse.cz>
22344 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
22346 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22348 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
22349 vector optab to expand vector/scalar shift, update gimple to vector.
22351 2011-01-03 Martin Jambor <mjambor@suse.cz>
22353 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
22356 2011-01-03 Martin Jambor <mjambor@suse.cz>
22358 PR tree-optimization/46984
22359 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
22361 (cgraph_create_indirect_edge): Fixed line length.
22362 (cgraph_indirect_call_info): Declare.
22363 (cgraph_make_edge_direct) Update declaration.
22364 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
22365 (cgraph_create_indirect_edge): Use it.
22366 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
22368 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
22369 the new thunk_delta representation.
22370 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
22372 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
22373 (ipa_read_indirect_edge_info): Likewise.
22374 * lto-cgraph.c (output_edge_opt_summary): New function.
22375 (output_node_opt_summary): Call it on all outgoing edges.
22376 (input_edge_opt_summary): New function.
22377 (input_node_opt_summary): Call it on all outgoing edges.
22379 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
22382 * gcc.c (main): Don't check have_o when settting combine_inputs.
22384 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
22386 * regrename.c: Add general comment describing the pass.
22387 (struct du_head): Remove 'length' field.
22388 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
22389 (regrename_optimize): Do not sort chains. Rework comments, add others.
22390 Force renaming to the preferred class (if any) in the first pass and do
22391 not consider registers that belong to it in the second pass.
22392 (create_new_chain): Do not set 'length' field.
22393 (scan_rtx_reg): Likewise.
22395 2011-01-02 Jakub Jelinek <jakub@redhat.com>
22397 PR tree-optimization/47140
22398 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
22399 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
22400 to bit_value_binop.
22402 PR rtl-optimization/47028
22403 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
22404 parm_birth_insn instead of at the beginning of first bb.
22406 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
22408 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
22409 Remove the word "see" before "@pxref".
22410 * doc/rtl.texi: Remove the word "see" before "@pxref".
22412 2011-01-01 Jan Hubicka <jh@suse.cz>
22414 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
22417 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
22420 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
22423 Copyright (C) 2011 Free Software Foundation, Inc.
22425 Copying and distribution of this file, with or without modification,
22426 are permitted in any medium without royalty provided the copyright
22427 notice and this notice are preserved.