1 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
3 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
5 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
6 Uros Bizjak <ubizjak@gmail.com>
7 Richard Henderson <rth@redhat.com>
9 * config/i386/constraints.md (w): New.
11 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
12 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
14 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
15 instead of TARGET_64BIT.
17 * config/i386/i386.md (indirect_jump): Replace
18 nonimmediate_operand with indirect_branch_operand.
19 (*indirect_jump): Likewise. Replace constraint "m" with "w".
20 (tablejump): Replace nonimmediate_operand with
21 indirect_branch_operand. Convert operand 0 to Pmode for x32 if
23 (*tablejump_1): Replace nonimmediate_operand with
24 indirect_branch_operand. Replace constraint "m" with "w".
25 (*call_vzeroupper): Replace constraint "m" with "w".
27 (*call_rex64_ms_sysv_vzeroupper): Likewise.
28 (*call_rex64_ms_sysv): Likewise.
29 (*call_value_vzeroupper): Likewise.
30 (*call_value): Likewise.
31 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
32 (*call_value_rex64_ms_sysv): Likewise.
33 (set_got_offset_rex64): Check TARGET_LP64 instead of
36 * config/i386/predicates.md (indirect_branch_operand): New.
37 (call_insn_operand): Support x32.
39 2011-07-20 Michael Eager <eager@eagercon.com>
41 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
43 2011-07-20 Richard Henderson <rth@redhat.com>
45 * cfg.c (dump_bb_info): Dump basic_block->flags.
46 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
48 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
50 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
51 of DImode hard registers in index.
52 (ix86_legitimate_address_p): Allow subregs of base and index to span
53 more than a word. Assert that subregs of base and index satisfy
54 register_no_elim_operand predicates. Reject addresses where
55 base and index have different modes.
57 2011-07-20 Robert Millan <rmh@gnu.org>
59 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
61 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
63 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
64 removing now-unnecessary assignment.
66 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
68 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
69 memory address space to the type's address space.
71 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
75 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
76 and expand appropriately if there is a CONST_INT in operand2.
77 (usmulqihi3): New insn.
78 (*sumulqihi3): New insn.
79 (*osmulqihi3): New insn.
80 (*oumulqihi3): New insn.
81 (*muluqihi3.uconst): New insn_and_split.
82 (*muluqihi3.sconst): New insn_and_split.
83 (*mulsqihi3.sconst): New insn_and_split.
84 (*mulsqihi3.uconst): New insn_and_split.
85 (*mulsqihi3.oconst): New insn_and_split.
86 (*ashifthi3.signx.const): New insn_and_split.
87 (*ashifthi3.signx.const7): New insn_and_split.
88 (*ashifthi3.zerox.const): New insn_and_split.
89 (mulsqihi3): New insn.
90 (muluqihi3): New insn.
91 (muloqihi3): New insn.
92 * config/avr/predicates.md (const_2_to_7_operand): New.
93 (const_2_to_6_operand): New.
98 (register_or_s9_operand): New.
100 2011-07-20 Kai Tietz <ktietz@redhat.com>
102 * builtins.c (fold_builtin_expect): See through the cast
103 from truthvalue_type_node to long.
105 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
107 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
108 where we can use them from the standard and altivec instruction
109 sets, instead of always using the 3 operand VSX forms that require
110 the destination to overlap one of the inputs.
115 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
118 (nfmadf4_fpr): Ditto.
119 (nfmsdf4_fpr): Ditto.
121 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
123 * genrecog.c (make_insn_sequence): Correct position numbering
124 when filtering out match_scratch and match_dup.
126 2011-07-20 Richard Guenther <rguenther@suse.de>
128 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
129 against already removed statements.
130 (forward_propagate_into_comparison): Remove dead defining stmts.
131 (forward_propagate_into_gimple_cond): Likewise.
132 (forward_propagate_into_cond): Simplify.
133 (ssa_forward_propagate_and_combine): Handle changed cfg from
134 forward_propagate_into_comparison.
135 * tree-ssa-phiopt.c (conditional_replacement): Use proper
136 locations for newly built statements.
138 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
140 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
142 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
144 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
145 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
147 2011-07-20 Richard Guenther <rguenther@suse.de>
150 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
151 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
152 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
154 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
156 * config/frv/frv.c (frv_register_move_cost): Define explicitly
157 costs for subclasses of GR_REGS.
159 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
162 * config/i386/predicates.md (no_seg_addres_operand): No more special.
163 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
164 of DImode hard registers in base.
165 (ix86_legitimate_address_p): Allow SImode and DImode base and index
168 2011-07-20 Richard Guenther <rguenther@suse.de>
170 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
171 (unify_nodes): Deal with that.
172 (solve_graph): Likewise.
174 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
176 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
177 canonicalize left operand from ZERO_EXTEND to AND.
179 2011-07-20 Anatoly Sokolov <aesok@post.ru>
181 * target.def (class_max_nregs): New hook.
182 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
183 * doc/tm.texi: Regenerate.
184 * targhooks.c (default_class_max_nregs): New function.
185 * targhooks.h (default_class_max_nregs): Declare.
186 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
187 x_ira_reg_class_min_nregs arrays to unsigned char.
188 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
189 hook instead of CLASS_MAX_NREGS macro.
190 * reginfo.c (restore_register_info): Ditto.
191 * ira-conflicts.c (process_regs_for_copy): Use
192 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
193 Change type rclass and aclass vars to reg_class_t.
194 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
195 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
197 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
198 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
200 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
201 * config/i386/i386.c (ix86_class_max_nregs): New function.
202 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
203 instead of CLASS_MAX_NREGS macro.
204 (TARGET_CLASS_MAX_NREGS): Define.
205 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
206 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
207 * config/avr/avr.c (class_max_nregs): Remove function.
208 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
209 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
210 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
211 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
212 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
213 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
214 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
215 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
216 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
217 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
218 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
219 * config/score/score.h (CLASS_MAX_NREGS): Remove.
220 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
221 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
222 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
224 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
226 * cif-code.def (OVERWRITABLE): Fix typo and move around.
227 (TARGET_OPTIMIZATION_MISMATCH): Delete.
228 (EH_PERSONALITY): Fix typo.
229 (NON_CALL_EXCEPTIONS): Fix message.
230 (OPTIMIZATION_MISMATCH): Adjust message.
231 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
233 2011-07-19 Ian Lance Taylor <iant@google.com>
235 * doc/install.texi (Configuration): Document
236 --enable-build-poststage1-with-cxx.
238 2011-07-19 Robert Millan <rmh@gnu.org>
240 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
241 (GLIBC_DYNAMIC_LINKER): Remove.
243 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
244 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
245 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
246 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
247 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
248 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
250 * config/mips/linux.h: Remove everything except for ...
251 (GLIBC_DYNAMIC_LINKER): ... this macro.
253 * config/mips/linux64.h: Remove everything except for ...
254 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
255 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
256 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
257 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
258 (GNU_USER_LINK_EMULATIONN32): New macros.
260 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
263 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
265 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
266 Add offset_known_p and size_known_p fields.
267 (MEM_OFFSET_KNOWN_P): Update accordingly.
268 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
269 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
270 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
271 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
272 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
273 (init_emit_regs): Likewise.
275 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
277 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
278 (MEM_OFFSET): Change from returning an rtx to returning a
280 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
281 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
282 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
283 (clear_mem_offset): Declare.
284 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
285 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
286 MEM_OFFSET to get a HOST_WIDE_INT offset.
287 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
288 (adjust_offset_for_component_ref): Take a bool "known_p"
289 parameter and a HOST_WIDE_INT "offset" parameter.
290 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
291 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
292 than an rtx. Use clear_mem_offset to clear the offset.
293 * cfgcleanup.c (merge_memattrs): Likewise.
294 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
295 * function.c (assign_parm_find_stack_rtl): Likewise.
296 (assign_parm_setup_stack): Likewise.
297 * print-rtl.c (print_rtx): Likewise.
298 * reload.c (find_reloads_subreg_address): Likewise.
299 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
300 * var-tracking.c (INT_MEM_OFFSET): Likewise.
301 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
302 (get_mem_align_offset): Likewise.
303 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
304 (clear_mem_offset): New function.
305 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
306 offset rather than an rtx. Assume both the expressio and offset
308 (r10k_needs_protection_p_1): Update accordingly, checking the
309 expression and offset availability here instead.
311 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
313 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
314 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
315 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
316 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
317 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
318 (clear_mem_size): Declare.
319 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
320 (clear_mem_size): New function.
321 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
322 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
323 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
324 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
326 (nonoverlapping_memrefs_p): Likewise.
327 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
328 (expand_builtin_init_trampoline): Likewise.
329 * calls.c (compute_argument_addresses): Likewise.
330 * cfgcleanup.c (merge_memattrs): Likewise.
331 * dce.c (find_call_stack_args): Likewise.
332 * dse.c (record_store, scan_insn): Likewise.
333 * dwarf2out.c (dw_sra_loc_expr): Likewise.
334 * expr.c (emit_block_move_hints): Likewise.
335 * function.c (assign_parm_find_stack_rtl): Likewise.
336 * print-rtl.c (print_rtx): Likewise.
337 * reload.c (find_reloads_subreg_address): Likewise.
338 * rtlanal.c (may_trap_p_1): Likewise.
339 * var-tracking.c (track_expr_p): Likewise.
340 * varasm.c (assemble_trampoline_template): Likewise.
341 * config/arm/arm.c (arm_print_operand): Likewise.
342 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
343 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
344 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
345 (expand_constant_setmem_prologue): Likewise.
346 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
347 * config/rs6000/rs6000.c (expand_block_move): Likewise.
348 (adjacent_mem_locations): Likewise.
349 * config/s390/s390.c (s390_expand_setmem): Likewise.
350 (s390_expand_insv): Likewise.
351 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
352 (*extendqi<mode>2_short_displ): Likewise.
353 * config/sh/sh.c (expand_block_move): Likewise.
354 * config/sh/sh.md (extv, extzv): Likewise.
356 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
358 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
359 (mem_attrs_htab_eq): ...here.
360 (find_mem_attrs): Replace with...
361 (set_mem_attrs): ...this function. Take a mem_attrs structure
362 rather than individual fields.
363 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
364 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
365 (set_mem_size, change_address, adjust_address_1, offset_address)
366 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
369 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
371 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
372 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
373 Provide a dummy definition of MEM_ADDR_SPACE for generators.
374 (target_rtl): Add x_mode_mem_attrs.
375 (mode_mem_attrs): New macro.
376 (get_mem_attrs): New function.
377 * emit-rtl.c (get_mem_attrs): Rename to...
378 (find_mem_attrs): ...this.
379 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
380 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
381 (set_mem_size, change_address, adjust_address_1, offset_address)
382 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
384 (init_emit_regs): Initialize mode_mem_attrs.
386 2011-07-19 Richard Guenther <rguenther@suse.de>
388 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
389 TRUTH_*_EXPR handling.
390 * tree-ssa-operands.c (get_expr_operands): Likewise.
391 * tree-ssa-pre.c (fully_constant_expression): Likewise.
392 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
394 (is_and_or_or): Likewise.
395 (is_norm_cond_subset_of): Likewise.
397 2011-07-19 Richard Guenther <rguenther@suse.de>
399 * tree.h (fold_build_pointer_plus_loc): New helper function.
400 (fold_build_pointer_plus_hwi_loc): Likewise.
401 (fold_build_pointer_plus): Define.
402 (fold_build_pointer_plus_hwi): Likewise.
403 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
404 (fold_builtin_memory_op): Likewise.
405 (fold_builtin_stpcpy): Likewise.
406 (fold_builtin_memchr): Likewise.
407 (fold_builtin_strstr): Likewise.
408 (fold_builtin_strchr): Likewise.
409 (fold_builtin_strrchr): Likewise.
410 (fold_builtin_strpbrk): Likewise.
411 (fold_builtin_strcat): Likewise.
412 (expand_builtin_memory_chk): Likewise.
413 (fold_builtin_memory_chk): Likewise.
414 * c-typeck.c (build_unary_op): Likewise.
415 * cgraphunit.c (thunk_adjust): Likewise.
416 * fold-const.c (build_range_check): Likewise.
417 (fold_binary_loc): Likewise.
418 * omp-low.c (extract_omp_for_data): Likewise.
419 (expand_omp_for_generic): Likewise.
420 (expand_omp_for_static_nochunk): Likewise.
421 (expand_omp_for_static_chunk): Likewise.
422 * tree-affine.c (add_elt_to_tree): Likewise.
423 * tree-data-ref.c (split_constant_offset_1): Likewise.
424 * tree-loop-distribution.c (generate_memset_zero): Likewise.
425 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
426 * tree-predcom.c (ref_at_iteration): Likewise.
427 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
428 (add_to_parts): Likewise.
429 (create_mem_ref): Likewise.
430 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
431 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
432 (number_of_iterations_le): Likewise.
433 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
434 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
435 (vect_create_addr_base_for_vector_ref): Likewise.
436 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
437 (vect_create_cond_for_alias_checks): Likewise.
438 * tree-vrp.c (extract_range_from_assert): Likewise.
439 * config/alpha/alpha.c (alpha_va_start): Likewise.
440 (alpha_gimplify_va_arg_1): Likewise.
441 * config/i386/i386.c (ix86_va_start): Likewise.
442 (ix86_gimplify_va_arg): Likewise.
443 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
444 * config/mep/mep.c (mep_expand_va_start): Likewise.
445 (mep_gimplify_va_arg_expr): Likewise.
446 * config/mips/mips.c (mips_va_start): Likewise.
447 (mips_gimplify_va_arg_expr): Likewise.
448 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
449 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
450 (rs6000_gimplify_va_arg): Likewise.
451 * config/s390/s390.c (s390_va_start): Likewise.
452 (s390_gimplify_va_arg): Likewise.
453 * config/sh/sh.c (sh_va_start): Likewise.
454 (sh_gimplify_va_arg_expr): Likewise.
455 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
456 * config/spu/spu.c (spu_va_start): Likewise.
457 (spu_gimplify_va_arg_expr): Likewise.
458 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
460 (xstormy16_gimplify_va_arg_expr): Likewise.
461 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
462 (xtensa_gimplify_va_arg_expr): Likewise.
464 2011-07-19 Richard Guenther <rguenther@suse.de>
466 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
467 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
471 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
472 result of BIT_*_EXPR to bitfield precision.
474 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
476 PR tree-optimization/49742
477 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
478 as a potential write.
480 2011-07-19 Richard Guenther <rguenther@suse.de>
482 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
483 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
484 (forward_propagate_comparison): Simplify, remove obsolete code.
486 2011-07-19 Richard Guenther <rguenther@suse.de>
488 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
489 BIT_XOR_EXPR, same as the RTL expander does.
490 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
491 (verify_gimple_assign_unary): Likewise.
492 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
493 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
494 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
496 2011-07-19 Jakub Jelinek <jakub@redhat.com>
498 PR tree-optimization/49768
499 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
500 if offset is smaller than bitoffset, but offset+size is bigger
503 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
505 PR tree-optimization/49771
506 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
507 zero step, set segment length to the size of the data-ref's type.
509 2011-07-18 Martin Jambor <mjambor@suse.cz>
511 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
513 (ipcp_values_pool): Declare.
514 (ipcp_sources_pool): Likewise.
515 (ipcp_lattice): Changed to forward declaration.
516 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
518 (ipa_node_params): New fields descriptors, lattices, known_vals,
519 clone_for_all_contexts and node dead, removed fields params and
521 (ipa_set_param_count): Removed.
522 (ipa_get_param_count): Made to work with descriptors vector.
523 (ipa_get_param): Updated.
524 (ipa_param_cannot_devirtualize_p): Removed.
525 (ipa_param_types_vec_empty): Likewise.
526 (ipa_set_param_used): New function.
527 (ipa_get_param_used): Updated to use descriptors vector.
528 (ipa_func_list): Removed.
529 (ipa_init_func_list): Removed declaration.
530 (ipa_push_func_to_list_1): Likewise.
531 (ipa_pop_func_from_list): Likewise.
532 (ipa_push_func_to_list): Removed.
533 (ipa_lattice_from_jfunc): Remove declaration.
534 (ipa_get_jf_pass_through_result): Declare.
535 (ipa_get_jf_ancestor_result): Likewise.
536 (ipa_value_from_jfunc): Likewise.
537 (ipa_get_lattice): Update.
538 (ipa_lat_is_single_const): New function.
539 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
540 (ipa_init_func_list): Likewise.
541 (ipa_pop_func_from_list): Likewise.
542 (ipa_get_param_decl_index): Fix coding style.
543 (count_formal_params): Removed.
544 (count_formal_params_1): Renamed to count_formal_params.
545 (ipa_populate_param_decls): Update to use descriptors vector.
546 (ipa_initialize_node_params): Likewise.
547 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
548 (ipa_analyze_params_uses): Likewise.
549 (ipa_free_node_params_substructures): Likewise and free also lattices
551 (duplicate_array): Removed.
552 (ipa_edge_duplication_hook): Add the new edge to the list of edge
554 (ipa_node_duplication_hook): Update to use new lattices.
555 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
556 (ipa_free_all_structures_after_iinln): Likewise.
557 (ipa_write_node_info): Update to use new lattices.
558 (ipa_read_node_info): Likewise.
559 (ipa_get_jf_pass_through_result): New function.
560 (ipa_get_jf_ancestor_result): Likewise.
561 (ipa_value_from_jfunc): Likewise.
562 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
563 * ipa-cp.c: Reimplemented.
564 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
565 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
566 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
567 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
568 * doc/invoke.texi (devirt-type-list-size): Removed description.
569 (ipa-cp-value-list-size): Added description.
571 2011-07-18 Richard Henderson <rth@redhat.com>
573 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
574 before calling create_basic_block.
576 2011-07-18 Jakub Jelinek <jakub@redhat.com>
579 * tree.c (build_common_builtin_nodes): Register
580 __builtin_return_address, __cyg_profile_func_enter
581 and __cyg_profile_func_exit.
583 2011-07-18 Richard Henderson <rth@redhat.com>
585 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
586 (add_labels_and_missing_jumps): ... here.
587 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
589 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
592 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
593 of DImode hard registers in PLUS address chains.
595 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
598 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
599 (alpha*-*-freebsd*): Likewise.
600 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
601 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
602 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
603 crtprec80.o, crtfastmath.o to extra_parts for all targets.
604 (ia64*-*-elf*): Remove extra_parts.
605 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
606 (sparc64-*-linux*): Likewise.
607 (sparc64-*-freebsd*): Likewise.
610 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
611 (ia64*-*-linux*): Likewise.
612 (mips64*-*-linux*): Likewise.
613 (mips*-*-linux*): Likewise.
615 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
617 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
619 2011-07-18 Richard Guenther <rguenther@suse.de>
621 * gimplify.c (gimplify_expr): Use input_location, not saved_location
622 when building new trees.
624 2011-07-18 Richard Guenther <rguenther@suse.de>
626 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
627 expansion result to bitfield precision if required.
629 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
631 * config.gcc (i[3456x]86-*-netware*): Remove.
633 * gthr-nks.h: Remove.
634 * configure.ac (enable_threads): Remove nks.
635 * configure: Regenerate.
637 * config/i386/i386.c (ix86_encode_section_info): Remove netware
639 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
640 <netware.h> reference.
642 * config/i386/netware-libgcc.c,
643 gcc/config/i386/netware-libgcc.def,
644 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
645 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
646 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
647 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
649 * doc/extend.texi (Function Attributes,
650 callee_pop_aggregate_return): Remove i?86-netware reference.
651 * doc/install.texi (Configuration, --enable-threads): Remove nks.
653 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
657 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
659 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
662 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
665 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
667 2011-07-16 Matthias Klose <doko@ubuntu.com>
669 * doc/install.texi: Document --enable-static-libjava.
671 2011-07-15 Richard Henderson <rth@redhat.com>
673 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
674 Replace all three arguments by returning a VEC of edges.
675 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
677 (fix_edges_for_rarely_executed_code): Merge ...
678 (rest_of_handle_partition_blocks): ... into...
679 (partition_hot_cold_basic_blocks): ... here. Return todo items if
680 any work was performed.
681 (pass_partition_blocks): Clear todo_flags_finish.
683 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
684 Jakub Jelinek <jakub@redhat.com>
685 Jonathan Wakely <jwakely.gcc@gmail.com>
688 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
689 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
691 2011-07-15 Jason Merrill <jason@redhat.com>
694 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
695 rather than --tool_opts.
697 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
699 * doc/plugins.texi (Building GCC plugins): gengtype needs its
700 corresponding gtype.state.
702 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
705 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
707 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
710 * doc/md.texi (Standard Names): Document window_save.
711 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
712 expand_debug_expr and expand_debug_source_expr. If the target has
713 a window_save instruction, adjust the ENTRY_VALUE_EXP.
714 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
715 SSA_NAME_VAR is a parameter.
716 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
717 * var-tracking.c (parm_reg_t): New type and associated vector type.
718 (windowed_parm_regs): New variable.
719 (adjust_insn): If the target has a window_save instruction and this
720 is the instruction, make its effect on parameter registers explicit.
721 (next_non_note_insn_var_location): New function.
722 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
723 (vt_add_function_parameter): If the target has a window_save insn,
724 adjust the incoming RTL and record that in windowed_parm_regs.
725 (vt_finalize): Free windowed_parm_regs.
727 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
729 * doc/invoke.texi (C6X Options): New section.
730 * doc/md.texi (TI C6X family): New section.
731 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
733 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
734 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
735 Provide C6X definitions.
736 * config/c6x/c6x.md: New file.
737 * config/c6x/constraints.md: New file.
738 * config/c6x/predicates.md: New file.
739 * config/c6x/c6x-sched.md.in: New file.
740 * config/c6x/c6x-sched.md: New file.
741 * config/c6x/gensched.sh: New file.
742 * config/c6x/c6x-mult.md.in: New file.
743 * config/c6x/genmult.sh: New file.
744 * config/c6x/c6x-mult.md: New file.
745 * config/c6x/sync.md: New file.
746 * config/c6x/c6x-protos.h: New file.
747 * config/c6x/sfp-machine.h: New file.
748 * config/c6x/c6x.c: New file.
749 * config/c6x/c6x.h: New file.
750 * config/c6x/crti.s: New file.
751 * config/c6x/crtn.s: New file.
752 * config/c6x/lib1funcs.asm: New file.
753 * config/c6x/c6x-modes.def: New file.
754 * config/c6x/genopt.sh: New file.
755 * config/c6x/c6x.opt: New file.
756 * config/c6x/c6x-tables.opt: New file.
757 * config/c6x/c6x-opts.h: New file.
758 * config/c6x/c6x-isas.def: New file.
759 * config/c6x/elf.h: New file.
760 * config/c6x/elf-common.h: New file.
761 * config/c6x/uclinux-elf.h: New file.
762 * config/c6x/t-c6x: New file.
763 * config/c6x/t-c6x-elf: New file.
764 * config/c6x/t-c6x-uclinux: New file.
765 * config/c6x/t-c6x-softfp: New file.
766 * config/c6x/gtd.c: New file.
767 * config/c6x/gtf.c: New file.
768 * config/c6x/ltd.c: New file.
769 * config/c6x/ltf.c: New file.
770 * config/c6x/ged.c: New file.
771 * config/c6x/gef.c: New file.
772 * config/c6x/led.c: New file.
773 * config/c6x/lef.c: New file.
774 * config/c6x/eqd.c: New file.
775 * config/c6x/eqf.c: New file.
776 * config/c6x/libgcc-c6xeabi.ver: New file.
779 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
780 PR rtl-optimization/11320
781 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
782 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
783 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
784 current_sched_info->compute_jump_reg_dependencies. Record which
785 registers are used and which registers are set by the jump.
786 Clear deps->reg_conditional_sets after a barrier.
787 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
788 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
789 (init_deps): Initialize reg_conditional_sets.
790 (free_deps): Clear reg_conditional_sets.
791 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
792 Mark registers live on entry of the fallthrough block and conditionally
793 set as set by the jump. Mark registers live on entry of non-fallthrough
794 blocks as used by the jump.
795 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
796 Mark new parameters as unused.
798 2011-07-14 Andrew Pinski <pinskia@gmail.com>
801 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
802 Use fold_build2_loc instead of build2.
803 Use the correct type for the new tree.
805 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
807 PR rtl-optimization/11320
808 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
809 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
811 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
814 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
816 (*rotw<mode>): Use const_int_operand for operand2.
817 Use match_scatch for operand3.
819 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
821 2011-07-14 Richard Guenther <rguenther@suse.de>
823 PR tree-optimization/49651
824 * tree-ssa-structalias.c (get_constraint_for_1): Properly
825 handle dereferences with subvariables.
827 2011-07-14 Richard Guenther <rguenther@suse.de>
829 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
830 (fold_stmt_1): Do it here directly on gimple and as a first thing.
832 2011-07-14 Richard Guenther <rguenther@suse.de>
834 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
835 not bool_var when folding bool_var != 1 or bool_var == 0.
837 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
839 * haifa-sched.c (schedule_insns): Remove outdated comment.
840 (schedule_block): When computing a known value for TODO_SPEC,
841 just set it rather than using logical operations.
842 (try_ready): Likewise. Use a local variable rather than a
843 pointer to TODO_SPEC. Reorder an if statement to move the
844 easy case to the then block.
845 * sched-deps.c (dep_spec_p): New static function.
846 (update_dep): Use it to decide whether to call
847 change_spec_dep_to_hard.
848 (get_back_and_forw_lists): Use it.
849 (sd_resolve_dep): Likewise.
850 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
851 (haifa_note_mem_dep): Likewise.
852 (check_dep): Likewise.
853 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
854 (sched_free_deps): Free in two passes.
856 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
859 * expr.c (all_zeros_p): Undo bogus part of last change.
861 2011-07-14 Matthias Klose <doko@ubuntu.com>
863 * doc/extend.texi (optimize attribute): Fix typo.
865 2011-07-14 Richard Guenther <rguenther@suse.de>
867 * gimplify.c (gimplify_expr): Only do required conversions.
869 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
872 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
873 i.e. use default_elf_select_section.
874 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
875 (READONLY_DATA_SECTION_ASM_OP): Remove.
876 (TARGET_ASM_NAMED_SECTION): Move from here...
877 * config/avr/avr.c: ...to here.
878 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
879 (avr_asm_named_section): Make static.
881 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
884 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
885 and crtfastmath.o for Linux/x86.
887 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
889 * haifa-sched.c: Include "hashtab.h"
890 (sched_no_dce): New global variable.
891 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
892 SHADOW_P): New macros.
893 (last_clock_var, cycle_issued_insns): Move declarations.
894 (must_backtrack): New static variable.
895 (struct delay_pair): New structure.
896 (delay_htab, delay_htab_i2): New static variables.
897 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
898 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
900 (dep_cost_1): If delay pairs exist, try to look up the insns and
901 use the correct pair delay if we find them.
902 (rank-for_schedule): Tweak priority for insns that must be scheduled
903 soon to avoid backtracking.
904 (queue_insn): Detect conditions which force backtracking.
905 (ready_add): Likewise.
906 (struct sched_block_state): Add member shadows_only_p.
907 (struct haifa_save_data): New structure.
908 (backtrack_queue): New static variable.
909 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
910 unschedule_insns_until, restore_last_backtrack_point,
911 free_topmost_backtrack_point, free_backtrack_queue,
912 estimate_insn_tick, estimate_shadow_tick): New functions.
913 (prune_ready_list): New arg shadows_only_p. All callers changed.
914 If true, remove everything that isn't SHADOW_P. Look up delay
915 pairs and estimate ticks to avoid scheduling the first insn too early.
916 (verify_shadows): New function.
917 (schedule_block): Add machinery to enable backtracking.
918 (sched_init): Take sched_no_dce into account when setting
920 (free_delay_pairs): New function.
921 (init_h_i_d): Initialize INSN_EXACT_TICK.
922 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
923 * sched-deps.c (sd_unresolve_dep): New function.
924 * sched-int. (struct haifa_sched_info): New fields save_state
926 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
927 feeds_backtrack_insn and shadow_p.
928 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
929 (sched_no_dce): Declare variable.
930 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
931 sd_unresolve_dep): Declare functions.
932 * modulo-sched.c (sms_sched_info): Clear the two new fields.
933 * sched-rgn.c (rgn_const_sched_info): Likewise.
934 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
935 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
936 (ebb_sched_info): Add them for the two new fields.
937 (add_deps_for_risky_insns): Call add_delay_dependencies.
939 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
941 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
943 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
944 (rs6000_call_indirect_aix): Ditto.
945 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
946 (call_indirect_aix<ptrsize>_internal): Ditto.
947 (call_indirect_aix<ptrsize>_nor11): Ditto.
948 (call_indirect_aix<ptrsize>_internal2): Ditto.
949 (call_value_indirect_aix<ptrsize>): Ditto.
950 (call_value_indirect_aix<ptrsize>_internal): Ditto.
951 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
952 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
953 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
955 2011-07-13 Jason Merrill <jason@redhat.com>
957 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
959 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
961 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
962 * config/spu/spu.md ("clrsb<mode>2"): New expander.
964 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
966 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
967 * configure: Regenerate.
969 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
971 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
972 (asm_file_start): Remove.
973 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
974 free_bb_for_insn around code that modifies insns before
975 restarting df analysis.
977 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
980 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
981 (LINK_SPEC): ... here.
983 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
985 * haifa-sched.c (struct sched_block_state): New.
986 (schedule_block): Move some local variables into such a structure.
988 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
990 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
991 * config/i386/t-crtpc: Remove.
992 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
993 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
995 (x86_64-*-darwin*): Likewise.
996 (i[34567]86-*-linux*): Likewise.
997 (x86_64-*-linux*): Likewise.
999 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
1000 Handle -mpc32, -mpc64, -mpc80.
1002 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1004 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
1005 * config/alpha/t-crtfm: Remove.
1006 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
1007 * config/i386/t-crtfm: Remove.
1008 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
1009 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
1010 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
1011 * config/sparc/t-crtfm: Remove.
1013 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
1014 (alpha*-*-freebsd*): Likewise.
1015 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
1016 (x86_64-*-darwin*): Likewise.
1017 (i[34567]86-*-linux*): Likewise.
1018 (x86_64-*-linux*): Likewise.
1019 (x86_64-*-mingw*): Likewise.
1020 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
1021 (ia64*-*-freebsd*): Likewise.
1022 (ia64*-*-linux*): Likewise.
1023 (mips64*-*-linux*): Likewise.
1024 (mips*-*-linux*): Likewise.
1025 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
1026 (sparc64-*-linux*): Likewise.
1027 (sparc64-*-freebsd*): Likewise.
1029 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1031 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
1032 * config/darwin-crt3.c: Move to ../libgcc/config.
1033 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
1034 ($(T)crt3$(objext)): Remove.
1035 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
1036 ($(T)crt2$(objext)): Remove.
1037 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
1038 (powerpc64-*-darwin*): Likewise.
1040 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
1042 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
1044 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
1045 (addsi_1_zext): This.
1047 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
1049 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
1050 * doc/tm.texi: Regenerate.
1051 * target.def (mergeable_rodata_prefix): New defhookpod.
1052 * varasm.c (mergeable_string_section, mergeable_constant_section):
1053 Use it. Allocate name with alloca.
1055 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
1057 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
1059 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
1061 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
1064 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
1066 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
1067 (count_type_elements): Delete.
1068 (complete_ctor_at_level_p): Declare.
1069 * expr.c (flexible_array_member_p): New function, split out from...
1070 (count_type_elements): ...here. Make static. Replace allow_flexarr
1071 parameter with for_ctor_p. When for_ctor_p is true, return the
1072 number of elements that should appear in the top-level constructor,
1073 otherwise return an estimate of the number of scalars.
1074 (categorize_ctor_elements): Replace p_must_clear with p_complete.
1075 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
1076 (complete_ctor_at_level_p): New function, borrowing union logic
1077 from old categorize_ctor_elements_1.
1078 (mostly_zeros_p): Return true if the constructor is not complete.
1079 (all_zeros_p): Update call to categorize_ctor_elements.
1080 * gimplify.c (gimplify_init_constructor): Update call to
1081 categorize_ctor_elements. Don't call count_type_elements.
1082 Unconditionally prevent clearing for variable-sized types,
1083 otherwise rely on categorize_ctor_elements to detect
1084 incomplete initializers.
1086 2011-07-13 Richard Guenther <rguenther@suse.de>
1088 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
1089 the final type is integral.
1091 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
1093 * sched-int.h (struct _dep): Add member cost.
1094 (DEP_COST, UNKNOWN_DEP_COST): New macros.
1095 * sched-deps.c (init_dep_1): Initialize DEP_COST.
1096 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
1097 (sched_change_pattern): Reset it for dependent insns.
1099 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1101 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
1102 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
1103 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
1104 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
1105 (CRT0_S, MCRT0_S): Remove.
1106 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
1109 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
1111 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1113 * cse.c (insert_with_costs): Put semi-colon after empty loop body
1115 * emit-rtl.c (push_to_sequence): Likewise.
1116 * haifa-sched.c (max_issue): Likewise.
1117 * matrix-reorg.c (add_allocation_site): Likewise.
1118 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1119 * reload.c (alternative_allows_const_pool_ref): Likewise.
1120 * sched-rgn.c (rgn_add_block): Likewise.
1121 (rgn_fix_recovery_cfg): Likewise.
1122 * tree.c (attribute_list_contained): Likewise.
1124 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
1126 * config/i386/i386.c: Tidy processor feature bitmasks.
1129 2011-07-12 Andrew Pinski <pinskia@gmail.com>
1132 * cprop.c (find_implicit_sets): Correct the condition.
1134 2011-07-12 Richard Henderson <rth@redhat.com>
1137 * dwarf2out.h (dwarf_frame_regnum): Remove.
1138 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
1139 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
1140 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
1141 (execute_dwarf2_frame): Initialize them.
1142 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
1143 users of the macros with the variables.
1144 (expand_builtin_dwarf_sp_column): Revert last change.
1145 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
1146 result of DWARF_FRAME_REGNUM into a local variable.
1148 2011-07-12 Richard Henderson <rth@redhat.com>
1151 * config/i386/i386.c (x86_output_mi_thunk): Use
1152 machopic_indirect_call_target instead of machopic_indirection_name
1155 2011-07-12 Laurent GUERBY <laurent@guerby.net>
1156 Eric Botcazou <ebotcazou@adacore.com>
1158 * prefix.h: Wrap up in extern "C" block.
1160 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
1162 AMD bdver2 Enablement
1163 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
1164 (case ${target}): Add bdver2.
1165 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1166 -march=native recognize bdver2 processors.
1167 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1168 bdver2 def_and_undef
1169 * config/i386/i386.c (struct processor_costs bdver2_cost): New
1171 (m_BDVER2): New definition.
1172 (m_AMD_MULTIPLE): Includes m_BDVER2.
1173 (initial_ix86_tune_features): Add bdver2 tuning.
1174 (processor_target_table): Add bdver2 entry.
1175 (static const char *const cpu_names): Add bdver2 entry.
1176 (ix86_option_override_internal): Add bdver2 instruction sets.
1177 (ix86_issue_rate): Add bdver2.
1178 (ix86_adjust_cost): Add bdver2.
1179 (has_dispatch): Add bdver2.
1180 * config/i386/i386.h (TARGET_BDVER2): New definition.
1181 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
1182 (enum processor_type): Add PROCESSOR_BDVER2.
1183 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
1184 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
1187 2011-07-12 Richard Henderson <rth@redhat.com>
1190 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
1191 destination address in memory on some paths.
1193 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
1195 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
1196 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
1197 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
1198 * function.c (locate_and_pad_parm): Take it into account.
1199 * target.def (function_arg_round_boundary): New hook.
1200 * targhooks.c (default_function_arg_round_boundary): New function.
1201 * targhooks.h (default_function_arg_round_boundary): Declare.
1202 * doc/tm.texi: Regenerate.
1204 2011-07-12 Richard Guenther <rguenther@suse.de>
1206 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
1207 Do not perform no-op changes.
1209 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
1211 * config/arm/predicates.md (neon_struct_operand): Make a normal
1213 (neon_struct_or_register_operand): New predicate.
1214 * config/arm/neon.md (movmisalign<mode>): Replace predicates
1215 with neon_struct_or_register_operand.
1216 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
1217 neon_struct_operand instead of memory_operand.
1219 2011-07-12 Martin Jambor <mjambor@suse.cz>
1221 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
1222 * cgraph.c (cgraph_get_node_or_alias): Removed.
1223 (change_decl_assembler_name): Changed all calls to
1224 cgraph_get_node_or_alias to a call to cgraph_get_node.
1225 (cgraph_make_decl_local): Likewise.
1226 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
1227 * varasm.c (default_binds_local_p_1): Likewise.
1228 (decl_binds_to_current_def_p): Likewise.
1230 2011-07-12 Jakub Jelinek <jakub@redhat.com>
1232 PR tree-optimization/49712
1233 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
1235 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
1237 * genautomata.c (add_arc): Return void. All callers changed.
1238 (make_automaton): Remove dead code.
1240 2011-07-11 Richard Henderson <rth@redhat.com>
1242 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
1243 (DW_FRAME_POINTER_REGNUM): New.
1244 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
1245 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
1247 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
1248 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
1249 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
1251 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
1252 * dwarf2out.h (dwarf_frame_regnum): New.
1253 (struct cfa_loc): Document the domain of the reg member.
1255 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
1257 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
1258 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
1260 2011-07-11 Jakub Jelinek <jakub@redhat.com>
1263 * dwarf2out.c (int_shift_loc_descriptor): New function.
1264 (int_loc_descriptor): If shorter, emit i as
1265 (i >> shift), shift, DW_OP_shl for suitable shift value.
1266 Similarly, try to optimize large negative values using
1267 DW_OP_neg of a positive value if shorter.
1268 (size_of_int_shift_loc_descriptor): New function.
1269 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
1271 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
1272 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
1273 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
1275 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
1276 addend as added DW_OP_plus if it is shorter.
1278 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1280 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
1281 (DTORS_SECTION_ASM_OP): Define.
1283 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1285 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
1286 * config/t-dfprules: Move to ../libgcc/config.
1287 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
1288 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
1289 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
1290 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
1292 (i[34567]86-*-cygwin*): Likewise.
1293 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
1294 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
1295 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
1296 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
1297 D64PBIT_FUNCS, D128PBIT_FUNCS.
1299 2011-07-11 Richard Guenther <rguenther@suse.de>
1301 * tree-vrp.c (simplify_conversion_using_ranges): Manually
1302 translate the source value-range through the conversion chain.
1304 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
1306 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
1308 2011-07-11 Arthur Loiret <aloiret@debian.org>
1310 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
1311 a bi-arch compiler defaulting to 31-bit. In this case:
1312 (tmake_file): Add s390/t-linux64.
1313 * doc/install.texi: Add s390-linux to the list of targets supporting
1314 --enable-targets=all.
1316 2011-07-11 Arthur Loiret <aloiret@debian.org>
1317 Matthias Klose <doko@debian.org>
1319 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
1320 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
1321 (tm_file): Add mips/linux64.h.
1322 (tmake_file): Add mips/t-linux64.
1323 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
1324 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
1325 instead of hardcoded mabi=n32.
1326 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
1327 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
1330 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1332 * passes.c (init_optimization_passes): Add invariant motion pass
1333 after induction variable optimization.
1335 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
1338 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
1339 offsets 1..5 set cc0 in a usable way.
1341 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
1343 * tree.h (call_expr_arg): Remove.
1344 (call_expr_argp): Likewise.
1346 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
1348 * config/sparc/sparc.md (save_register_window_1): Rename to...
1349 (window_save): ...this.
1350 * config/sparc/sparc.c (emit_save_register_window): Rename to...
1351 (emit_window_save): ...this.
1352 (sparc_expand_prologue): Adjust to above renaming.
1354 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
1356 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
1359 2011-07-10 Richard Henderson <rth@redhat.com>
1361 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
1362 run final, instead of emitting text directly.
1364 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
1366 * config/i386/i386.c (ix86_option_override_internal): Turn on
1367 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
1368 small PIC models for TARGET_X32.
1370 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
1373 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
1377 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
1378 stray notes and debug insns by using prev_nonnote_nondebug_insn
1379 instead of PREV_INSN.
1381 2011-07-09 Richard Henderson <rth@redhat.com>
1383 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
1384 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
1385 * dwarf2out.c: ... here.
1386 (output_all_cfis): Remove.
1387 (dwarf2out_switch_text_section): Use output_cfis directly.
1388 (size_of_locs): Export.
1389 (output_loc_sequence, output_loc_sequence_raw): Export.
1390 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
1391 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
1392 output_cfa_loc_raw): Move to ...
1393 * dwarfcfi.c: ... here.
1394 * dwarf2out.h: Update decls.
1396 2011-07-09 Richard Henderson <rth@redhat.com>
1398 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
1399 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
1400 * dwarf2cfi.c: ... here.
1401 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
1402 (DWARF_ROUND, DWARF_CIE_ID): Remove.
1403 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
1404 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
1405 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
1407 2011-07-09 Richard Henderson <rth@redhat.com>
1409 * dwarf2cfi.c (cie_return_save): New.
1410 (queue_reg_save): Use compare_reg_or_pc.
1411 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
1412 (dwarf2out_frame_debug_expr): Likewise.
1413 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
1414 (initial_return_save): Likewise.
1415 (execute_dwarf2_frame): Save and restore initial return save from
1417 * config/mips/mips.c (mips_frame_set): Remove special case for
1418 DWARF_FRAME_RETURN_COLUMN.
1420 2011-07-09 Richard Henderson <rth@redhat.com>
1422 * dwarf2cfi.c (lookup_cfa): Remove.
1423 (execute_dwarf2_frame): Assert queues are empty on entry.
1424 Setup initial cfa directly, not via lookup_cfa.
1425 Don't clear args_size state here.
1427 2011-07-09 Richard Henderson <rth@redhat.com>
1429 * dwarf2cfi.c (add_cfi_vec): New.
1430 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
1431 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
1432 (execute_dwarf2_frame): Set add_cfi_vec.
1434 2011-07-09 Richard Henderson <rth@redhat.com>
1436 * defaults.h (ASM_COMMENT_START): Move here...
1437 * dwarf2asm.c: ... from here.
1438 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
1439 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
1440 * varasm.c: Likewise.
1442 2011-07-09 Richard Henderson <rth@redhat.com>
1445 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
1446 (create_cfi_notes): ... do it here instead.
1448 2011-07-09 Jakub Jelinek <jakub@redhat.com>
1451 * dwarf2out.c (size_of_int_loc_descriptor): New function.
1452 (address_of_int_loc_descriptor): Use it.
1453 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
1455 2011-07-09 Richard Henderson <rth@redhat.com>
1457 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
1458 (prologue, epilogue): New.
1459 (return, *rts): New.
1460 (blockage, setd, seti): New.
1461 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
1462 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
1463 (pdp11_saved_regno): New.
1464 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
1465 generate rtl instead of text.
1466 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
1467 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
1468 * config/pdp11/pdp11-protos.h: Update.
1470 2011-07-09 Richard Henderson <rth@redhat.com>
1472 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
1473 try to insert an rtl prologue here.
1474 (rs6000_output_function_epilogue): Similarly.
1475 * config/rs6000/rs6000.md (prologue): Emit a barrier to
1476 satisfy !TARGET_SCHED_PROLOG.
1477 (epilogue, sibcall_epilogue): Likewise.
1479 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
1481 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
1483 (IN_OR_GLOBAL_P): Likewise.
1485 2011-07-08 Jason Merrill <jason@redhat.com>
1488 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
1489 compound assignment.
1491 * cgraph.c (cgraph_add_to_same_comdat_group): New.
1492 * cgraph.h: Declare it.
1493 * ipa.c (function_and_variable_visibility): Make sure thunks
1494 have the right visibility.
1496 2011-07-08 Richard Henderson <rth@redhat.com>
1499 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
1500 any tablejump vector.
1503 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
1504 end of the prologue.
1506 2011-07-08 Jakub Jelinek <jakub@redhat.com>
1509 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
1510 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
1511 * config/rs6000/vector.md (vector_select_<mode>,
1512 vector_select_<mode>_uns): Change second operand of NE to
1513 CONST0_RTX (<MODE>mode) instead of const0_rtx.
1514 * config/rs6000/altivec.md (*altivec_vsel<mode>,
1515 *altivec_vsel<mode>_uns): Expect second operand of NE to be
1516 zero_constant of the corresponding vector mode.
1517 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
1520 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
1522 * graphite-dependences.c (build_alias_set_powerset): Remove
1523 continue from loop, add one more assert.
1525 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
1528 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
1529 In particular, allow 8-bit values in r28 and r29.
1530 (avr_hard_regno_scratch_ok): Disallow any register that might be
1531 part of the frame pointer.
1532 (avr_hard_regno_rename_ok): Same.
1533 (avr_legitimate_address_p): Don't allow SUBREGs.
1535 2011-07-08 Julian Brown <julian@codesourcery.com>
1537 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
1539 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
1540 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
1541 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
1542 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
1543 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
1544 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
1545 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
1546 registers in big-endian mode.
1548 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
1550 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
1551 in terms of another.
1552 (write_attr_value): Write a cast if necessary.
1554 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
1555 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
1556 (REG_WORDS_BIG_ENDIAN): Document.
1557 * doc/tm.texi: Regenerate.
1558 * reload.c (operands_match_p): Take it into account.
1559 (reload_adjust_reg_for_mode): Likewise.
1560 * rtlanal.c (subreg_get_info): Likewise.
1562 2011-07-08 Richard Guenther <rguenther@suse.de>
1564 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
1567 2011-07-08 Kai Tietz <ktietz@redhat.com>
1569 * fold-const.c (fold_truth_andor): Factored out truth_andor
1570 label from fold_binary as function.
1571 (fold_binary_loc): Replace truth_andor lable
1572 by function fold_truth_andor.
1574 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
1577 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
1578 check if address is stored in register. If so - give up.
1579 (check_sibcall_argument_overlap_1): Do not perform check of
1580 overlapping when it is call to address.
1582 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
1584 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
1587 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
1589 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
1590 GET_MODE_BITSIZE where appropriate.
1591 (widen_leading, expand_parity, expand_ctz, expand_ffs,
1592 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
1593 expand_float, expand_fix): Likewise.
1594 * expr.c (convert_move, convert_modes, expand_expr_real_2,
1595 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
1596 * stor-layout.c (get_mode_bounds): Likewise.
1597 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
1599 * convert.c (convert_to_integer): Likewise.
1600 * expmed.c (expand_shift_1): Likewise.
1602 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
1605 * optabs.c (expand_binop): Tighten conditions for doubleword
1607 (widen_bswap): Assert that mode bitsize and precision are the same.
1608 * stor-layout.c (get_best_mode): Skip modes that have lower
1609 precision than bitsize.
1610 * recog.c (simplify_while_replacing): Assert that bitsize and
1611 precision are the same.
1613 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1615 * Makefile.in (LIBGCOV): Remove.
1616 (libgcc.mvars): Remove LIBGCOV.
1617 * libgov.c: Move to ../libgcc.
1619 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1621 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
1623 2011-07-08 Martin Jambor <mjambor@suse.cz>
1625 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
1626 is too big for total scalarization.
1628 2011-07-07 Richard Henderson <rth@redhat.com>
1630 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
1631 (DBX_DEBUGGING_INFO): Undef.
1633 2011-07-07 Richard Henderson <rth@redhat.com>
1635 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
1636 Handle some opcodes specially for debugging.
1637 * print-rtl.c: Include dwarf2out.h
1638 (print_rtx): Handle NOTE_INSN_CFI.
1639 * Makefile.in (print-rtl.o): Update.
1641 2011-07-07 Richard Henderson <rth@redhat.com>
1643 * tree-pass.h (pass_dwarf2_frame): Declare.
1644 * passes.c (init_optimization_passes): Add it.
1645 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
1646 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
1647 make static, do not call add_cfis_to_fde.
1648 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
1649 dwarf2out_frame_init): Merge into...
1650 (execute_dwarf2_frame): ... here. New function.
1651 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
1652 saved_do_cfi_asm to a tri-state variable.
1653 (gate_dwarf2_frame, pass_dwarf2_frame): New.
1654 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
1655 if it has yet to be done. Don't call dwarf2cfi_function_init.
1656 * dwarf2out.h, debug.h: Update decls.
1657 * final.c (final_start_function): Don't call
1658 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
1659 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
1660 * toplev.c (lang_dependent_init): Likewise.
1662 2011-07-07 Richard Henderson <rth@redhat.com>
1664 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
1665 FDE_TABLE_INCREMENT): Replace with...
1666 (fde_vec): ... this, a new vector.
1667 (current_fde): Remove. Replace all users with cfun->fde.
1668 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
1669 (size_of_aranges, dwarf2out_finish): Likewise.
1670 (dwarf2out_alloc_current_fde): Break out from ...
1671 (dwarf2out_begin_prologue): ... here.
1672 (dwarf2out_frame_init): Remove.
1673 * dwarf2cfi.c: Update all users of current_fde.
1674 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
1675 * dwarf2out.h: Update decls.
1676 (dw_fde_node): Add fde_index member.
1677 * function.h (struct function): Add fde member.
1679 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1680 Richard Henderson <rth@redhat.com>
1682 * dwarf2cfi.c (add_cfi): Remove.
1683 (dwarf2out_cfi_label): Remove force argument. Only generate the
1685 (add_fde_cfi): Simplify the different code paths.
1687 (old_cfa, old_cfa_remember): New.
1688 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
1689 (last_reg_save_label): Remove.
1690 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
1691 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1692 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1693 dwarf2out_frame_debug_cfa_expression,
1694 dwarf2out_frame_debug_cfa_restore,
1695 dwarf2out_frame_debug_cfa_window_save,
1696 dwarf2out_frame_debug_expr): Remove label parameter.
1697 (cfi_label_required_p, add_cfis_to_fde): New.
1698 (dwarf2out_frame_debug_after_prologue): New.
1699 (dwarf2cfi_frame_init): Initialize old_cfa.
1700 (dwarf2out_frame_debug_restore_state): Likewise.
1701 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
1702 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
1703 * final.c (final_start_function): Call
1704 dwarf2out_frame_debug_after_prologue.
1706 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1707 Richard Henderson <rth@redhat.com>
1709 * dwarf2cfi.c (cfi_insn): New.
1710 (dwarf2out_cfi_label): Don't emit cfi label here.
1711 (add_fde_cfi): Create a NOTE_INSN_CFI.
1712 (dwarf2out_frame_debug): Setup cfi_insn.
1713 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
1714 (dwarf2out_cfi_begin_epilogue): Make static.
1715 (dwarf2out_frame_debug_restore_state): Make static.
1716 * dwarf2out.c (output_cfi_directive): Make static.
1717 (dwarf2out_emit_cfi): New.
1718 * dwarf2out.h: Update.
1719 * final.c (final): Remove CFI notes.
1720 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
1721 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
1722 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
1723 * insn-notes.def (NOTE_INSN_CFI): New.
1724 (NOTE_INSN_CFI_LABEL): New.
1725 * rtl.h (union rtunion_def): Add rt_cfi member.
1726 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
1728 2011-07-07 Richard Henderson <rth@redhat.com>
1730 * dwarf2cfi.c: New file.
1731 * Makefile.in (OBJS): Add it.
1732 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
1733 * gengtype.c (open_base_files): Include dwarf2out.h.
1734 * coretypes.h (enum var_init_status): Move from ...
1736 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
1737 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
1738 expand_builtin_dwarf_sp_column, init_return_column_size,
1739 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
1740 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
1741 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
1742 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
1743 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
1744 compute_barrier_args_size, dwarf2out_args_size,
1745 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
1746 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
1747 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
1748 queue_reg_save, dwarf2out_flush_queued_reg_saves,
1749 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
1750 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
1751 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
1752 dwarf2out_frame_debug_cfa_expression,
1753 dwarf2out_frame_debug_cfa_restore,
1754 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
1755 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
1756 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
1757 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
1758 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
1759 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
1760 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
1761 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
1762 dw_loc_descr_node): Move to dwarf2out.h.
1763 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
1764 mem_loc_descriptor): Export.
1765 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
1766 (dwarf2out_frame_init): Extract CIE generation code to
1767 dwarf2cfi_frame_init.
1769 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
1772 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
1773 MASK_V8PLUS, remove commented out flag and reorder.
1775 2011-07-07 Jakub Jelinek <jakub@redhat.com>
1778 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
1779 one non-complex and one complex argument, call c_save_expr on both
1782 2011-07-07 Martin Jambor <mjambor@suse.cz>
1785 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
1786 (verify_cgraph_node): Some functinality moved to
1787 verify_edge_corresponds_to_fndecl, call it.
1789 2011-07-07 Joseph Myers <joseph@codesourcery.com>
1791 * config.gcc (*local*): Remove.
1792 * doc/install-old.texi: Don't mention local configurations.
1794 2011-07-07 Jakub Jelinek <jakub@redhat.com>
1797 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
1798 referencing debug insns that have been reset.
1799 (dead_debug_insert_before): Don't assert reg is non-NULL,
1800 instead return immediately if it is NULL.
1802 2011-07-07 Joseph Myers <joseph@codesourcery.com>
1804 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
1806 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1808 * hw-doloop.c: New file.
1809 * hw-doloop.h: New file.
1810 * Makefile.in (OBJS): Add hw-doloop.o.
1811 (hw-doloop.o): New rule.
1812 ($(obj_out_file)): Add hw-doloop.h dependency.
1813 * config/bfin/bfin.c: Include "hw-doloop.h".
1814 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
1815 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
1816 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
1817 type changed to hwloop_info. Return bool, true if the loop was
1818 successfully optimized. Remove code that was moved to
1819 hw-doloop.c, and adjust other parts.
1820 (hwloop_fail): New static function, containing parts that used
1821 to be in bfin_optimize_loop.
1822 (bfin_discover_loop, bfin_discover_loops, free_loops,
1823 bfin_reorder_loops): Remove.
1824 (hwloop_pattern_reg): New static function.
1825 (bfin_doloop_hooks): New variable.
1826 (bfin_reorg_loops): Remove most code, call reorg_loops.
1827 * config/bfin/bfin.md (doloop_end splitter): Also enable if
1828 loop counter is a memory_operand.
1830 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
1832 * config.gcc: Support --with-multilib-list for x86 Linux targets.
1834 * configure.ac: Mention x86-64 for --with-multilib-list.
1835 * configure: Regenerated.
1837 * config/i386/gnu-user64.h (SPEC_64): Support x32.
1838 (SPEC_32): Likewise.
1839 (ASM_SPEC): Likewise.
1840 (LINK_SPEC): Likewise.
1841 (TARGET_THREAD_SSP_OFFSET): Likewise.
1842 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
1845 * config/i386/i386.h (TARGET_X32): New.
1847 (LONG_TYPE_SIZE): Likewise.
1848 (POINTER_SIZE): Likewise.
1849 (POINTERS_EXTEND_UNSIGNED): Likewise.
1850 (OPT_ARCH64): Support x32.
1851 (OPT_ARCH32): Likewise.
1853 * config/i386/i386.opt (mx32): New.
1855 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
1856 (GLIBC_DYNAMIC_LINKERX32): Likewise.
1857 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
1858 (GLIBC_DYNAMIC_LINKERX32): Likewise.
1860 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
1861 (BIONIC_DYNAMIC_LINKERX32): Likewise.
1862 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
1864 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
1866 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
1868 * doc/invoke.texi: Document -mx32.
1870 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
1872 * doc/invoke.texi (mwords-little-endian): Deprecate.
1873 * config/arm/arm.opt (mwords-little-endian): Likewise.
1874 * config/arm/arm.c (arm_option_override): Warn about the deprecation
1875 of -mwords-little-endian.
1877 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
1879 * reload1.c (choose_reload_regs): Use mode sizes to check whether
1880 an old reload register completely defines the required value.
1882 2011-07-07 Richard Guenther <rguenther@suse.de>
1884 * fold-const.c (fold_unary_loc): Do not strip sign-changes
1887 2011-07-07 Richard Guenther <rguenther@suse.de>
1889 * tree-vrp.c (simplify_conversion_using_ranges): New function.
1890 (simplify_stmt_using_ranges): Call it.
1892 2011-07-07 Kai Tietz <ktietz@redhat.com>
1894 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
1895 (lookup_logical_inverted_value): Likewise.
1896 (simplify_bitwise_binary_1): Likewise.
1897 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
1899 2011-07-07 Joseph Myers <joseph@codesourcery.com>
1901 * gcc.c (%[Spec]): Don't document.
1902 (struct spec_list): Update comment.
1903 (do_spec_1): Don't handle %[Spec].
1904 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
1906 2011-07-07 Joseph Myers <joseph@codesourcery.com>
1908 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
1909 default based on TARGET_ASM_NAMED_SECTION.
1910 * common/common-target.def (have_named_sections): Default to true.
1911 * common/config/default-common.c: Don't include tm.h.
1912 * common/config/picochip/picochip-common.c
1913 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
1914 * common/config/m32c/m32c-common.c: Remove.
1915 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
1916 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1917 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1918 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1919 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1920 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1921 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
1923 2011-07-07 Jakub Jelinek <jakub@redhat.com>
1926 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
1927 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
1929 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1932 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
1934 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1937 * configure.ac (gcc_cv_as_hidden): Also accept
1938 x86_64-*-solaris2.1[0-9]*.
1939 (gcc_cv_as_cfi_directive): Likewise.
1940 (gcc_cv_as_comdat_group_group): Likewise.
1941 (set_have_as_tls): Likewise.
1942 * configure: Regenerate.
1943 * config.gcc (i[34567]86-*-solaris2*): Also handle
1944 x86_64-*-solaris2.1[0-9]*.
1945 * config.host (i[34567]86-*-solaris2*): Likewise.
1946 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
1947 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
1948 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
1949 (TARGET_LD_EMULATION): Use it.
1950 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
1951 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
1952 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
1953 (ASM_CPU64_DEFAULT_SPEC): Define.
1954 (ASM_CPU_SPEC): Use %(asm_cpu_default).
1955 (ASM_SPEC): Redefine.
1956 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
1957 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
1958 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
1959 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
1961 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
1963 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1965 * config/sol2.h (ASM_SPEC): Split into ...
1966 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
1967 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
1968 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
1969 (ASM_SPEC): Use ASM_SPEC_BASE.
1970 * config/sparc/sol2.h (ASM_SPEC): Redefine.
1972 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
1974 * config/avr/avr.md (*reload_insi): Change predicate #1 to
1975 const_int_operand. Ditto for peep2 producing this insn.
1976 Add argument to output_reload_insisf call.
1977 (*movsi,*movsf): Add argument to output_movsisf call.
1978 (*reload_insf): New insn and new peep2 to produce it.
1979 * config/avr/avr-protos.h (output_movsisf): Change prototype.
1980 (output_reload_insisf): Change prototype.
1981 * config/avr/avr.c (avr_asm_len): New function.
1982 (output_reload_insisf): Rewrite.
1983 (output_movsisf): Change prototype. output_reload_insisf for
1984 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
1985 (adjust_insn_length): Add argument to output_movsisf and
1986 output_reload_insisf call.
1988 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
1990 * emit-rtl.c (paradoxical_subreg_p): New function.
1991 * rtl.h (paradoxical_subreg_p): Declare.
1992 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
1993 apply_distributive_law, simplify_comparison, simplify_set): Use it.
1994 * cse.c (record_jump_cond, cse_insn): Likewise.
1995 * expr.c (force_operand): Likewise.
1996 * rtlanal.c (num_sign_bit_copies1): Likewise.
1997 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
1998 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
1999 (push_reload): Use precision to check for paradoxical subregs.
2000 * expmed.c (extract_bit_field_1): Likewise.
2002 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
2003 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
2004 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
2005 simplify_set, simplify_logical, expand_compound_operation,
2006 make_extraction, force_to_mode, if_then_else_cond, extended_count,
2007 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
2008 record_value_for_reg): Likewise.
2009 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
2010 * simplify-rtx. c (simplify_unary_operation_1,
2011 simplify_binary_operation_1, simplify_const_relational_operation):
2014 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
2015 instead of GET_MODE_BITSIZE where appropriate.
2016 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
2017 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
2018 init_num_sign_bit_copies_in_rep): Likewise.
2019 * cse.c (fold_rtx, cse_insn): Likewise.
2020 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
2021 * simplify-rtx.c (simplify_unary_operation_1,
2022 simplify_const_unary_operation, simplify_binary_operation_1,
2023 simplify_const_binary_operation, simplify_ternary_operation,
2024 simplify_const_relational_operation, simplify_subreg): Likewise.
2025 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
2026 simplify_if_then_else, simplify_set, expand_compound_operation,
2027 expand_field_assignment, make_extraction, if_then_else_cond,
2028 make_compound_operation, force_to_mode, make_field_assignment,
2029 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
2030 extended_count, try_widen_shift_mode, simplify_shift_const_1,
2031 simplify_comparison, record_promoted_value, simplify_compare_const,
2032 record_dead_and_set_regs_1): Likewise.
2035 * simplify-rtx.c (simplify_const_binary_operation): Use the
2036 shift_truncation_mask hook instead of performing modulo by width.
2037 Compare against mode precision, not bitsize.
2038 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
2039 Use shift_truncation_mask instead of constructing the value manually.
2041 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2043 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
2045 (rs6000_save_toc_in_prologue_p): Ditto.
2047 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
2048 up the static chain (r11) during indirect function calls.
2049 (-msave-toc-indirect): New undocumented debug switch.
2051 * config/rs6000/rs6000.c (struct machine_function): Add
2052 save_toc_in_prologue field to note whether the prologue needs to
2053 save the TOC value in the reserved stack location.
2054 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
2055 to save the TOC in the prologue, do so.
2056 (rs6000_trampoline_init): Don't allow creating AIX style
2057 trampolines if -mno-r11 is in effect.
2058 (rs6000_call_indirect_aix): New function to create AIX style
2059 indirect calls, adding support for -mno-r11 to suppress loading
2060 the static chain, and saving the TOC in the prologue instead of
2062 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
2063 TOC in the prologue.
2065 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
2067 (TOC_REGNUM): Ditto.
2068 (STATIC_CHAIN_REGNUM): Ditto.
2069 (ARG_POINTER_REGNUM): Ditto.
2070 (SFP_REGNO): Delete, unused.
2071 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
2072 function descriptor offsets.
2073 (TOC_SAVE_OFFSET_64BIT): Ditto.
2074 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
2075 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
2076 (AIX_FUNC_DESC_SC_32BIT): Ditto.
2077 (AIX_FUNC_DESC_SC_64BIT): Ditto.
2078 (ptrload): New mode attribute for the appropriate load of a pointer.
2079 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
2080 (call_indirect_aix64): Ditto.
2081 (call_value_indirect_aix32): Ditto.
2082 (call_value_indirect_aix64): Ditto.
2083 (call_indirect_nonlocal_aix32_internal): Ditto.
2084 (call_indirect_nonlocal_aix32): Ditto.
2085 (call_indirect_nonlocal_aix64_internal): Ditto.
2086 (call_indirect_nonlocal_aix64): Ditto.
2087 (call): Rewrite AIX indirect function calls. Add support for
2088 eliminating the static chain, and for moving the save of the TOC
2089 to the function prologue.
2090 (call_value): Ditto.
2091 (call_indirect_aix<ptrsize>): Ditto.
2092 (call_indirect_aix<ptrsize>_internal): Ditto.
2093 (call_indirect_aix<ptrsize>_internal2): Ditto.
2094 (call_indirect_aix<ptrsize>_nor11): Ditto.
2095 (call_value_indirect_aix<ptrsize>): Ditto.
2096 (call_value_indirect_aix<ptrsize>_internal): Ditto.
2097 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
2098 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
2099 (call_nonlocal_aix32): Relocate in the rs6000.md file.
2100 (call_nonlocal_aix64): Ditto.
2102 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
2103 -mno-r11 documentation.
2105 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
2108 * doc/extend.texi (Compound Literals): Fix typo.
2110 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
2112 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
2114 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
2116 * configure.ac (plugin-version.h): Generate
2117 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
2118 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
2121 * configure: Regenerate.
2123 * doc/plugins.texi (Building GCC plugins): Mention
2124 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
2126 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2128 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
2129 * combine.c (make_extraction, gen_lowpart_or_truncate,
2130 apply_distributive_law, simplify_comparison,
2131 reg_truncated_to_mode, record_truncated_value): Use it.
2132 * cse.c (notreg_cost): Likewise.
2133 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
2134 * expr.c (convert_move, convert_modes): Likewise.
2135 * optabs.c (expand_binop, expand_unop): Likewise.
2136 * postreload.c (move2add_last_label): Likewise.
2137 * regmove.c (optimize_reg_copy_3): Likewise.
2138 * rtlhooks.c (gen_lowpart_general): Likewise.
2139 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2141 2011-07-06 Joseph Myers <joseph@codesourcery.com>
2143 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
2145 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2147 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
2148 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
2149 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
2150 (simplify_const_unary_operation, simplify_binary_operation_1,
2151 simplify_const_binary_operation, simplify_const_relational_operation):
2152 Use them. Use GET_MODE_MASK for masking and sign-extensions.
2153 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
2154 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
2155 simplify_shift_const_1, simplify_comparison): Likewise.
2156 * expr.c (convert_modes): Likewise.
2157 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
2158 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2159 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
2161 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
2163 2011-07-06 Richard Guenther <rguenther@suse.de>
2165 PR tree-optimization/49645
2166 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
2168 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
2169 in type qualification here ...
2170 (copy_reference_ops_from_ref): ... not here.
2171 (vn_reference_lookup_3): ... or here.
2172 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
2173 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
2175 2011-07-06 Ian Lance Taylor <iant@google.com>
2177 * doc/install.texi (Configuration): It's
2178 --enable-gnu-indirect-function, not --enable-indirect-function.
2180 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
2182 * simplify-rtx.c (simplify_const_binary_operation): Use the
2183 shift_truncation_mask hook instead of performing modulo by width.
2184 Compare against mode precision, not bitsize.
2185 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
2186 Use shift_truncation_mask instead of constructing the value manually.
2188 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
2191 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
2192 address computation and convert to address_mode if needed.
2194 2011-07-06 Richard Guenther <rguenther@suse.de>
2196 * tree.c (build_common_tree_nodes_2): Merge with
2197 build_common_tree_nodes.
2198 * tree.h (build_common_tree_nodes): Adjust prototype.
2199 (build_common_tree_nodes_2): Remove.
2200 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
2201 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
2203 2011-07-05 Jakub Jelinek <jakub@redhat.com>
2205 PR tree-optimization/49618
2206 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
2207 t recurse on the decl.
2208 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
2209 return true if expr isn't known to be defined in current
2210 TU or some other LTO partition.
2212 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2214 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
2215 override CASE_VALUES_THRESHOLD.
2217 * stmt.c (toplevel): Include params.h.
2218 (case_values_threshold): Use the --param case-values-threshold
2219 value if non-zero, otherwise use machine dependent value.
2220 (expand_case): Use case_values_threshold.
2222 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
2224 * doc/invoke.texi (--param case-values-threshold): Document.
2226 2011-07-05 Richard Henderson <rth@redhat.com>
2228 * dwarf2out.c (dwarf2out_cfi_label): Make static.
2229 (dwarf2out_flush_queued_reg_saves): Make static.
2230 (dwarf2out_reg_save): Remove.
2231 (dwarf2out_return_save): Remove.
2232 (dwarf2out_return_reg): Remove.
2233 (dwarf2out_reg_save_reg): Remove.
2234 (dwarf2out_def_cfa): Merge into ...
2235 (dwarf2out_frame_init): ... here.
2236 * dwarf2out.h, tree.h: Remove declarations as necessary.
2238 2011-07-05 Richard Henderson <rth@redhat.com>
2240 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
2241 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2242 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
2245 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
2246 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
2247 (process_epilogue): Don't call dwarf2out_def_cfa.
2249 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
2250 indicate the return address save.
2251 (process_cfa_register): Likewise.
2253 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
2254 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
2256 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
2257 for ar.pfs save at alloc insn.
2259 2011-07-05 Richard Henderson <rth@redhat.com>
2261 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
2262 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
2263 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
2265 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
2266 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
2267 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
2268 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
2270 2011-07-05 Richard Henderson <rth@redhat.com>
2272 * config/vax/vax.md (define_c_enum unspecv): New. Define the
2273 VUNSPEC_* constants here instead of via define_constants.
2274 (VUNSPEC_PEM): New constant.
2275 (procedure_entry_mask): New insn.
2276 (prologue): New expander.
2277 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
2278 (vax_expand_prologue): Rename from vax_output_function_prologue;
2279 emit rtl instead of text.
2280 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
2281 (print_operand): Add 'x' prefix.
2283 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
2286 * calls.c (precompute_register_parameters): Promote the function
2287 argument before checking non-legitimate constant.
2289 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2291 PR tree-optimization/47654
2292 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
2293 (lst_do_strip_mine_loop): Return an int.
2294 (lst_do_strip_mine): Same.
2295 (scop_do_strip_mine): Same.
2296 (scop_do_block): Loop blocking should strip-mine at least two loops.
2297 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
2298 (scop_do_interchange): Same.
2299 * graphite-poly.h (scop_do_interchange): Update declaration.
2300 (scop_do_strip_mine): Same.
2302 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2304 * graphite-clast-to-gimple.c (precision_for_value): Removed.
2305 (precision_for_interval): Removed.
2306 (gcc_type_for_interval): Use mpz_sizeinbase.
2308 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2310 * graphite-ppl.h (value_max): Correct computation of max.
2312 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
2314 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
2316 2011-07-05 Richard Guenther <rguenther@suse.de>
2318 * c-decl.c (c_init_decl_processing): Defer building common
2319 tree nodes to c_common_nodes_and_builtins.
2321 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
2323 PR tree-optimization/49580
2324 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
2325 the loop's number of iterations.
2326 * tree-parloops.c (transform_to_exit_first_loop): Add the
2327 handling of the loop's number of iterations before the call
2328 to gimple_duplicate_sese_tail.
2329 Insert the stmt caclculating the new rhs of the loop's
2330 condition stmt to the preheader instead of iters_bb.
2332 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
2334 PR rtl-optimization/47449
2335 * fwprop.c (forward_propagate_subreg): Don't propagate hard
2336 register nor zero/sign extended hard register.
2338 2011-07-05 Richard Guenther <rguenther@suse.de>
2340 PR tree-optimization/49518
2341 PR tree-optimization/49628
2342 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
2343 irrelevant and invariant data-references.
2344 (vect_analyze_data_ref_access): For invariant loads clear the
2347 2011-07-04 Jakub Jelinek <jakub@redhat.com>
2349 PR rtl-optimization/49619
2350 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
2351 pass VOIDmode as op0_mode to recursive call, and return temp even
2352 when different from tor, just if it is not IOR of the original
2355 PR rtl-optimization/49472
2356 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
2357 negating MULT, negate the second operand instead of first.
2358 (simplify_binary_operation_1) <case MULT>: If one operand is
2359 a NEG and the other is MULT, don't attempt to optimize by negation
2360 of the MULT operand if it only moves the NEG operation around.
2363 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
2364 get_current_def return value if it can't be trusted to be
2365 the current value of the variable in the current bb.
2367 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
2370 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
2371 general register to memory for !TARGET_INTER_UNIT_MOVES.
2373 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
2376 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
2377 instead of TREE_READONLY.
2379 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
2381 * doc/extend.texi (AVR Built-in Functions): Update documentation
2382 of __builtin_avr_fmul*.
2383 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
2384 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
2385 * config/avr/avr.md (fmul): Rename to fmul_insn.
2386 (fmuls): Rename to fmuls_insn.
2387 (fmulsu): Rename to fmulsu_insn.
2388 (fmul,fmuls,fmulsu): New expander.
2389 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
2390 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
2391 * config/avr/libgcc.S (__fmul): New function.
2392 (__fmuls): New function.
2393 (__fmulsu,__fmulsu_exit): New function.
2395 2011-07-04 Richard Guenther <rguenther@suse.de>
2397 PR tree-optimization/49615
2398 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
2399 basic-block index check.
2401 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
2403 * longlong.h (count_leading_zeros, count_trailing_zeros,
2404 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
2407 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
2409 PR tree-optimization/49610
2410 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
2413 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
2414 Olivier Hainque <hainque@adacore.com>
2415 Nicolas Setton <setton@adacore.com>
2417 * tree.h (TYPE_ARTIFICIAL): New flag.
2418 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
2419 the DIE of the type if it is artificial.
2420 (gen_array_type_die): Likewise.
2421 (gen_enumeration_type_die): Likewise.
2422 (gen_struct_or_union_type_die): Likewise.
2423 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
2424 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
2426 2011-07-01 Jakub Jelinek <jakub@redhat.com>
2428 * tree-object-size.c (pass_through_call): Handle
2429 BUILT_IN_ASSUME_ALIGNED.
2431 2011-07-01 Martin Jambor <mjambor@suse.cz>
2433 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
2435 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
2438 * explow.c (update_nonlocal_goto_save_area): Use proper mode
2439 for stack save area.
2440 * function.c (expand_function_start): Likewise.
2442 2011-07-01 Richard Guenther <rguenther@suse.de>
2445 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
2446 may have unknown refs.
2448 2011-07-01 Kai Tietz <ktietz@redhat.com>
2450 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
2452 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2454 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
2455 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
2456 (Specific, mips-sgi-irix6): Likewise.
2458 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2461 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
2463 2011-07-01 Jakub Jelinek <jakub@redhat.com>
2465 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
2466 [idx]= and [idx1 ... idx2]= before initializers if needed for
2469 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
2471 * config.gcc (score-*-elf): Remove score7.o.
2472 * config/score/t-score-elf: Likewise.
2473 * config/score/score.c: Merge score7 to score.c and
2474 remove forwarding functions.
2475 * config/score/score7.c: Deleted.
2476 * config/score/score7.h: Deleted.
2478 2011-07-01 Richard Guenther <rguenther@suse.de>
2480 PR tree-optimization/49603
2481 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
2483 2011-06-30 Martin Jambor <mjambor@suse.cz>
2485 * tree-sra.c (struct access): Rename total_scalarization to
2486 grp_total_scalarization
2487 (completely_scalarize_var): New function.
2488 (sort_and_splice_var_accesses): Set total_scalarization in the
2489 representative access.
2490 (analyze_access_subtree): Propagate total scalarization accross the
2491 tree, no holes in totally scalarized trees, simplify coverage
2493 (analyze_all_variable_accesses): Call completely_scalarize_var instead
2494 of completely_scalarize_record.
2496 2011-06-30 Richard Henderson <rth@redhat.com>
2498 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
2499 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
2500 * config/i386/i386.c: Don't include dwarf2out.h.
2501 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
2502 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
2503 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
2504 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
2505 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
2507 2011-06-30 Richard Henderson <rth@redhat.com>
2509 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
2510 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
2511 * final.c (final_scan_insn): Look for it, and invoke
2512 dwarf2out_frame_debug before the insn if found.
2514 2011-06-30 Richard Henderson <rth@redhat.com>
2516 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
2517 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
2519 2011-06-30 Richard Henderson <rth@redhat.com>
2521 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
2522 Define a vector of this type.
2523 (regs_saved_in_regs): Use a VEC.
2524 (num_regs_saved_in_regs): Remove.
2525 (compare_reg_or_pc): New.
2526 (record_reg_saved_in_reg): Split out from...
2527 (dwarf2out_flush_queued_reg_saves): ... here.
2528 (clobbers_queued_reg_save): Update for VEC.
2529 (reg_saved_in): Likewise.
2530 (dwarf2out_frame_debug_init): Likewise.
2531 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
2532 (dwarf2out_frame_debug_cfa_register): Likewise.
2534 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
2536 PR tree-optimization/49572
2537 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
2538 type of the RHS instead of that of the LHS for the expression type.
2540 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
2542 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
2545 2011-06-30 Richard Guenther <rguenther@suse.de>
2547 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
2548 * tree-ssa-structalias.c (create_variable_info_for): Do not
2549 add initial constraints for non-var-decls. Properly handle
2550 globals in other ltrans partitions.
2551 (intra_create_variable_infos): Manually create constraints for
2552 the fake no-alias parameter.
2553 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
2554 and assert there are no clones.
2556 2011-06-30 Richard Guenther <rguenther@suse.de>
2558 PR tree-optimization/46787
2559 * tree-data-ref.c (dr_address_invariant_p): Remove.
2560 (find_data_references_in_stmt): Invariant accesses are ok now.
2561 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
2562 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
2565 2011-06-30 Martin Jambor <mjambor@suse.cz>
2567 PR tree-optimization/49094
2568 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
2569 (build_accesses_from_assign): Use it.
2571 2011-06-30 Jakub Jelinek <jakub@redhat.com>
2573 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2574 handling of BUILT_IN_ASSUME_ALIGNED.
2577 * dwarf2out.c (output_abbrev_section): Don't return early
2578 if abbrev_die_table_in_use is 1.
2579 (dwarf2out_finish): Instead don't call output_abbrev_section
2580 nor emit abbrev_section_label in that case.
2582 2011-06-30 Nick Clifton <nickc@redhat.com>
2584 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
2587 2011-06-30 Jakub Jelinek <jakub@redhat.com>
2589 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
2590 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
2592 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
2594 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
2595 both pattern and original statements if necessary.
2596 (vect_transform_loop): Likewise.
2597 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
2598 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
2599 Mark the pattern statement only if the original statement doesn't
2601 (process_use): Call vect_mark_relevant with additional parameter.
2602 (vect_mark_stmts_to_be_vectorized): Likewise.
2603 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
2604 (vect_analyze_stmt): Handle both pattern and original statements
2606 (vect_transform_stmt): Don't store vectorized pattern statement
2607 in the original statement.
2608 (vect_is_simple_use_1): Use related pattern statement only if the
2609 original statement is irrelevant.
2610 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
2612 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
2614 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
2616 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
2618 (TARGET_AVX128_OPTIMAL): New definition.
2619 * config/i386/i386.c (initial_ix86_tune_features): Initialize
2620 X86_TUNE_AVX128_OPTIMAL entry.
2621 (ix86_option_override_internal): Enable the generation
2622 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
2623 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
2624 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
2626 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
2628 PR tree-optimization/49539
2629 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
2630 names by means of stmt_references_abnormal_ssa_name.
2631 (associate_plusminus): Call can_propagate_from before propagating
2632 from definition statements.
2633 (ssa_forward_propagate_and_combine): Remove superfluous newline.
2635 2011-06-29 Richard Guenther <rguenther@suse.de>
2637 * doc/invoke.texi: Document -scev dump modifier.
2638 * tree-pass.h (TDF_SCEV): New dump flag.
2639 * tree-dump.c (dump_option_value_in): Add scev.
2640 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
2641 * tree-scalar-evolution.c: Likewise.
2643 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
2645 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
2646 (cxa_type_match): Correct declaration.
2647 (__gnu_unwind_pr_common): Reconstruct additional indirection
2648 when __cxa_type_match returns succeeded_with_ptr_to_base.
2650 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2652 PR rtl-optimization/49114
2653 * reload.c (struct replacement): Remove SUBREG_LOC member.
2654 (push_reload): Do not set it.
2655 (push_replacement): Likewise.
2656 (subst_reload): Remove dead code.
2657 (copy_replacements): Remove assertion.
2658 (copy_replacements_1): Do not handle SUBREG_LOC.
2659 (move_replacements): Likewise.
2660 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
2661 Detect subregs via recursive descent instead of via SUBREG_LOC.
2663 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
2665 * config/avr/avr.c (avr_encode_section_info): Dispatch to
2666 default_encode_section_info.
2668 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
2670 PR tree-optimization/49545
2671 * builtins.c (get_object_alignment_1): Update function comment.
2672 Do not use DECL_ALIGN for functions, but test
2673 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
2674 * fold-const.c (get_pointer_modulus_and_residue): Don't check
2676 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
2678 2011-06-29 Jakub Jelinek <jakub@redhat.com>
2681 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
2682 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
2684 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
2687 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
2688 about uninitialized data attributed 'progmem' from here...
2689 (avr_encode_section_info): ...to this new function.
2690 (TARGET_ENCODE_SECTION_INFO): New define.
2691 (avr_section_type_flags): For data in ".progmem.data", remove
2692 section flag SECTION_WRITE.
2694 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
2696 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
2698 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
2699 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
2700 (__umulhisi3): Ditto.
2701 * config/avr/avr.md (mulhisi3): New insn expender.
2702 (umulhisi3): New insn expender.
2703 (*mulhisi3_call): New insn.
2704 (*umulhisi3_call): New insn.
2706 2011-06-28 Joseph Myers <joseph@codesourcery.com>
2708 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
2710 2011-06-28 Richard Henderson <rth@redhat.com>
2712 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
2713 all code and arguments that handled pushes. Update all callers.
2715 2011-06-28 Richard Henderson <rth@redhat.com>
2717 * config/arm/arm.c (arm_output_function_prologue): Don't call
2718 thumb1_output_function_prologue.
2719 (arm_expand_prologue): Avoid dead store.
2720 (number_of_first_bit_set): Use ctz_hwi.
2721 (thumb1_emit_multi_reg_push): New.
2722 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
2723 to emit the entire prologue as rtl.
2724 (thumb1_output_interwork): Split out from
2725 thumb1_output_function_prologue.
2726 (thumb1_output_function_prologue): Remove.
2727 (arm_attr_length_push_multi): Handle thumb1.
2728 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
2729 (prologue_thumb1_interwork): New.
2730 (*push_multi): Allow thumb1; use push_mult_memory_operand.
2731 * config/arm/predicates.md (push_mult_memory_operand): New.
2733 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
2735 * config/sparc/sync.md (*stbar): Delete.
2736 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
2738 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
2740 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
2742 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2744 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
2745 (TARGET_64BIT_DEFAULT): Define.
2746 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
2748 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
2750 2011-06-28 Joseph Myers <joseph@codesourcery.com>
2752 * common.opt (in_lto_p): New Variable entry.
2753 * flags.h (in_lto_p): Move to common.opt.
2754 * gcc.c: Include params.h.
2755 (set_option_handlers): Also use common_handle_option and
2756 target_handle_option.
2757 (main): Call global_init_params, finish_params and init_options_struct.
2758 * opts.c (debug_type_names): Move from toplev.c.
2759 (print_filtered_help): Access quiet_flag through opts pointer.
2760 (common_handle_option): Return early in the driver for some options.
2761 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
2763 * toplev.c (in_lto_p): Move to common.opt.
2764 (debug_type_names): Move to opts.c.
2765 * Makefile.in (OBJS): Remove opts.o.
2766 (OBJS-libcommon-target): Add opts.o.
2767 (gcc.o): Update dependencies.
2769 2011-06-28 Kai Tietz <ktietz@redhat.com>
2771 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
2773 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2775 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
2776 with '=' constraint modifier.
2777 (*divdf3_vfp): Likewise.
2778 ("*mulsf3_vfp"): Likewise.
2779 ("*muldf3_vfp"): Likewise.
2780 ("*mulsf3negsf_vfp"): Likewise.
2781 ("*muldf3negdf_vfp"): Likewise.
2783 2011-06-28 Nick Clifton <nickc@redhat.com>
2785 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
2786 relaxation when performing an incremental link.
2788 2011-06-28 Kai Tietz <ktietz@redhat.com>
2790 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
2791 within BB from last to first.
2793 2011-06-28 Joseph Myers <joseph@codesourcery.com>
2795 * genattr-common.c: New. Based on genattr.c.
2796 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
2797 (MOSTLYCLEANFILES): Add insn-attr-common.h.
2798 (opts.o): Update dependencies.
2799 (.PRECIOUS): Add insn-attr-common.h.
2800 (simple_rtl_generated_h): Add insn-attr-common.h.
2801 (build/genattr-common.o): New.
2802 (genprogrtl): Add attr-common.
2803 * genattr.c (main): Include insn-attr-common.h. Don't generate
2804 definitions of DELAY_SLOTS or INSN_SCHEDULING.
2805 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
2807 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
2809 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
2810 avr-*-* and avr-*-rtems* targets.
2812 * config/avr/elf.h: New file.
2813 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
2814 (TARGET_ASM_SELECT_SECTION): Define.
2815 (INIT_SECTION_ASM_OP): Undefine.
2816 (FINI_SECTION_ASM_OP): Undefine.
2817 (READONLY_DATA_SECTION_ASM_OP): Undefine.
2818 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
2819 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
2821 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
2822 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
2823 (MAX_OFILE_ALIGNMENT): Move to elf.h.
2824 (STRING_LIMIT): Move to elf.h.
2825 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
2826 (ASM_DECLARE_OBJECT_NAME): Remove.
2828 (ASM_OUTPUT_SKIP): Remove.
2829 (DWARF2_DEBUGGING_INFO): Remove.
2830 (OBJECT_FORMAT_ELF): Remove.
2831 (USER_LABEL_PREFIX): Remove.
2832 (ASM_OUTPUT_EXTERNAL): Remove.
2833 (ASM_OUTPUT_ASCII): Remove.
2834 (TYPE_ASM_OP): Remove.
2835 (SIZE_ASM_OP): Remove.
2836 (WEAK_ASM_OP): Remove.
2837 (STRING_ASM_OP): Remove.
2838 (SET_ASM_OP): Remove.
2839 (ASM_WEAKEN_LABEL): Remove.
2840 (TYPE_OPERAND_FMT): Remove.
2841 (ASM_DECLARE_FUNCTION_SIZE): Remove.
2842 (ASM_FINISH_DECLARE_OBJECT): Remove.
2843 (NO_DOLLAR_IN_LABEL): Remove.
2844 (ASM_GENERATE_INTERNAL_LABEL): Remove.
2845 (ASM_OUTPUT_CASE_LABEL): Remove.
2846 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
2847 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
2848 (gas_output_ascii): Remove.
2849 (gas_output_limited_string): Remove.
2850 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
2851 * config/avr/avr-protos.h
2852 (gas_output_ascii): Remove prototye.
2853 (gas_output_limited_string): Remove prototype.
2855 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
2858 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
2861 2011-06-27 Jan Hubicka <jh@suse.cz>
2863 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
2864 node instead of references in node.
2866 2011-06-27 Richard Henderson <rth@redhat.com>
2868 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
2869 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
2872 2011-06-27 Jakub Jelinek <jakub@redhat.com>
2874 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
2876 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
2877 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
2878 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
2879 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
2880 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
2881 (evaluate_stmt, execute_fold_all_builtins): Handle
2882 BUILT_IN_ASSUME_ALIGNED.
2883 * tree-ssa-dce.c (propagate_necessity): Likewise.
2884 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2885 call_may_clobber_ref_p_1): Likewise.
2886 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
2887 (expand_builtin_assume_aligned): New function.
2888 * doc/extend.texi (__builtin_assume_aligned): Document.
2891 * cselib.c (promote_debug_loc): If cselib_preserve_constants
2892 and l has two DEBUG_INSN owned locs instead of just one, adjust
2893 the second location's setting_insn too.
2895 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2898 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
2900 2011-06-27 Nick Clifton <nickc@redhat.com>
2902 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
2903 bit position of highest bit set into a count of the high zero bits.
2905 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2907 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
2909 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2912 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
2915 2011-06-27 Richard Guenther <rguenther@suse.de>
2917 PR tree-optimization/49394
2918 * passes.c (execute_one_pass): Restore current_pass after
2919 applying IPA transforms.
2921 2011-06-27 Kai Tietz <ktietz@redhat.com>
2923 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
2924 out of type precision after operation.
2925 (find_bswap): Take for limit value the integer auto-promotion
2928 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2930 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
2931 forward scan as well.
2933 2011-06-27 Tristan Gingold <gingold@adacore.com>
2936 * config/vms/vms-protos.h: New file.
2937 * config/vms/vms-crtlmap.map: New file.
2938 * config/vms/vms.c: New file.
2939 * config/vms/make-crtlmap.awk: New file.
2940 * config/vms/vms-crtl.h: File removed.
2941 * config/vms/vms-crtl-64.h: File removed.
2942 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
2943 * config/alpha/vms64.h: Do not include vms-crtl-64.h
2944 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
2945 clear some builtins on VMS. Calls vms_patch_builtins.
2946 (avms_asm_output_external): Remove.
2947 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
2948 (struct crtl_name_spec): Remove
2949 (DO_CTRL_NAMES): Remove.
2950 * config/ia64/vms.h (struct crtl_name_spec): Remove
2951 (DO_CTRL_NAMES): Remove.
2952 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
2953 clear some builtins on VMS. Calls vms_patch_builtins.
2954 (ia64_asm_output_external): Remove DO_CRTL_NAME.
2955 * config/ia64/vms64.h: Do not include vms-crtl-64.h
2956 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
2958 2011-06-27 Tristan Gingold <gingold@adacore.com>
2960 * config/alpha/alpha.c (alpha_end_function): Always generate .end
2963 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
2965 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
2966 the function receives nonlocal gotos.
2968 2011-06-27 Richard Guenther <rguenther@suse.de>
2970 PR tree-optimization/49536
2971 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
2972 For non-scalar inner types use a scalar type according to
2973 the scalar inner mode.
2975 2011-06-27 Richard Guenther <rguenther@suse.de>
2977 PR tree-optimization/49365
2978 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
2980 2011-06-27 Richard Guenther <rguenther@suse.de>
2982 PR tree-optimization/49169
2983 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
2984 the alignment of function decls.
2986 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
2989 * config/darwin.c (darwin_mergeable_string_section): Place string
2990 constants in '.cstring' rather than '.const' when CF/NSStrings are
2993 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
2995 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
2996 (emit_save_register_window): Likewise.
2997 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
2998 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
2999 Swap back %o7/%i7 in register naming.
3001 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
3004 * config/darwin.c (darwin_override_options): Improve warning when
3005 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
3006 is given with fpie/fPIE.
3007 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
3008 * config/darwin9.h (PIE_SPEC): New.
3010 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
3012 * timevar.c (timevar_print): Increase width for display of timevar
3015 2011-06-24 Jakub Jelinek <jakub@redhat.com>
3018 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
3019 instead of TYPE_CHAIN for chain_next for types.
3021 2011-06-24 Richard Henderson <rth@redhat.com>
3023 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
3024 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
3025 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
3026 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
3027 (sparc_flat_expand_prologue): Emit individual instructions
3028 instead of one of the above.
3030 2011-06-24 Easwaran Raman <eraman@google.com>
3032 PR rtl-optimization/49429
3034 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
3035 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
3036 used to copy y into x.
3037 * calls.c (initialize_argument_information): Mark
3038 an argument addressable if it is passed by invisible reference.
3039 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
3040 if it is passed by reference.
3042 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
3044 PR rtl-optimization/49504
3045 * rtlanal.c (nonzero_bits1): Properly handle addition or
3046 subtraction of a pointer in Pmode if pointers extend unsigned.
3047 (num_sign_bit_copies1): Likewise.
3049 2011-06-24 Martin Jambor <mjambor@suse.cz>
3051 PR tree-optimizations/49516
3052 * tree-sra.c (sra_modify_assign): Choose the safe path for
3053 aggregate copies if we also did scalar replacements.
3055 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3058 * config/arm/predicates.md (add_operator): New.
3059 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
3061 2011-06-24 Andi Kleen <ak@linux.intel.com>
3063 * tree-sra.c (type_internals_preclude_sra_p): Add msg
3064 parameter. Split up ifs and report reason in *msg.
3066 (find_var_candiate): Add msg variable.
3067 Split up ifs and report reason to reject.
3068 (find_param_candidates): Add msg variable.
3069 Pass msg to type_internals_preclude_sra_p.
3071 2011-06-23 Jeff Law <law@redhat.com>
3074 * reload.h (reload): Change to return a bool.
3075 * ira.c (ira): If requested by reload, run a fast DCE pass after
3076 reload has completed. Fix comment typo.
3077 * reload1.c (need_dce): New file scoped static.
3078 (reload): Set reload_completed here. Return whether or not a DCE
3079 pass after reload is needed.
3080 (delete_dead_insn): Set need_dce as needed.
3083 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
3084 to detect threading through joiner block. If there was already
3085 an edge to the new target, then do not change the PHI nodes.
3087 2011-06-23 Jakub Jelinek <jakub@redhat.com>
3089 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
3090 get_pointer_alignment to see if base isn't sufficiently aligned.
3092 2011-06-23 Jan Hubicka <jh@suse.cz>
3094 PR tree-optimize/49373
3095 * tree-pass.h (all_late_ipa_passes): Declare.
3096 * cgraphunit.c (init_lowered_empty_function): Fix properties.
3097 (cgraph_optimize): Execute late passes; remove unreachable funcions
3098 after materialization.
3099 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
3101 * passes.c (all_late_ipa_passes): Declare.
3102 (dump_passes, register_pass): Handle late ipa passes.
3103 (init_optimization_passes): Move ipa_pta to late passes; schedule
3104 fixup_cfg at beggining of all_passes.
3105 (apply_ipa_transforms): New function.
3106 (execute_one_pass): When doing simple ipa pass, apply all transforms.
3108 2011-06-23 Joseph Myers <joseph@codesourcery.com>
3110 * params.c: Include common/common-target.h. Don't include tm.h.
3111 (lang_independent_params): Move from toplev.c.
3112 (global_init_params): New.
3113 * params.h (global_init_params): Declare.
3114 * target.def (default_params): Move to common-target.def.
3115 * toplev.c (lang_independent_options): Remove.
3116 (lang_independent_params): Move to params.c.
3117 (general_init): Use global_init_params.
3118 * common/common-target.def (option_default_params): Move from
3120 * common/config/ia64/ia64-common.c: Include params.h.
3121 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3123 * common/config/rs6000/rs6000-common.c: Include params.h.
3124 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3126 * common/config/sh/sh-common.c: Include params.h.
3127 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3129 * common/config/spu/spu-common.c: Include params.h.
3130 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
3132 * config/ia64/ia64.c (ia64_option_default_params,
3133 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
3134 * config/rs6000/rs6000.c (rs6000_option_default_params,
3135 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
3136 * config/sh/sh.c (sh_option_default_params,
3137 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
3138 * config/spu/spu.c (spu_option_default_params,
3139 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
3140 * Makefile.in (OBJS): Remove params.o.
3141 (OBJS-libcommon-target): Add params.o.
3142 (params.o, $(common_out_object_file)): Update dependencies.
3143 * doc/tm.texi: Regenerate.
3145 2011-06-23 Alan Modra <amodra@gmail.com>
3148 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
3149 invocation for 2011-06-09 changes.
3151 2011-06-22 Jakub Jelinek <jakub@redhat.com>
3154 * omp-low.c (expand_omp_for_static_nochunk): Only
3155 use n ceil/ nthreads size for the first n % nthreads threads in the
3156 team instead of all threads except for the last few ones which
3157 get less work or none at all.
3160 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
3163 2011-06-22 Richard Guenther <rguenther@suse.de>
3165 PR tree-optimization/49493
3166 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
3167 Refer to the alias target of variables.
3168 (associate_varinfo_to_alias_1): Remove.
3169 (ipa_pta_execute): Do not associate aliases with anything.
3170 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
3171 (cgraph_function_node): Likewise.
3172 (cgraph_function_or_thunk_node): Likewise.
3173 (varpool_variable_node): Likewise.
3175 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
3177 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
3178 * config.gcc (arm*-*-linux*): Default to gnu tls.
3179 (arm*-*-*): Add --with-tls option.
3180 (all_defaults): Add 'tls'.
3182 2011-06-22 Richard Henderson <rth@redhat.com>
3184 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
3185 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
3186 (dwarf2out_frame_debug_cfa_window_save): Rename from
3187 dwarf2out_window_save; make static.
3188 * tree.h (dwarf2out_window_save): Don't declare.
3190 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
3191 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
3192 (emit_save_register_window): Rename from gen_save_register_window;
3193 emit the insn and add REG_CFA_* notes.
3194 (sparc_expand_prologue): Update to match.
3195 * config/sparc/sparc.md (save_register_window_1): Simplify from
3196 save_register_window<P:mode>.
3198 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
3201 * config/i386/i386.md (*lea_general_2): Always allow SImode.
3202 (*lea_general_2_zext): Likewise.
3203 (imul to lea peepholes): Use const359_operand and check
3204 TARGET_PARTIAL_REG_STALL.
3206 * config/i386/predicates.md (const359_operand): New.
3208 2011-06-22 Michael Matz <matz@suse.de>
3210 * cgraphunit.c (assemble_thunk): Use correct return type.
3212 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
3213 Dmitry Melnik <dm@ispras.ru>
3215 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
3216 (neon_output_shift_immediate): Ditto.
3217 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
3219 (neon_output_shift_immediate): Ditto.
3220 * config/arm/neon.md (vashl<mode>3): Modified constraint.
3221 (vashr<mode>3_imm): New insn pattern.
3222 (vlshr<mode>3_imm): Ditto.
3223 (vashr<mode>3): Modified constraint.
3224 (vlshr<mode>3): Ditto.
3225 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
3227 (imm_for_neon_rshift_operand): Ditto.
3228 (imm_lshift_or_reg_neon): Ditto.
3229 (imm_rshift_or_reg_neon): Ditto.
3231 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
3233 2011-06-22 Jakub Jelinek <jakub@redhat.com>
3235 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
3236 builtin calls even if likelyvalue is not CONSTANT.
3237 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
3238 Return get_value_for_expr of first operand
3239 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
3240 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3241 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
3242 their non-checking counterparts.
3243 (call_may_clobber_ref_p_1): Likewise.
3244 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
3245 like their non-checking counterparts.
3246 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3247 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
3248 like their non-checking counterparts.
3249 (find_func_clobbers): Likewise.
3250 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
3251 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
3253 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
3254 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
3255 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
3256 of base type reference as argument.
3257 (resolve_addr_in_expr): Likewise. Fix keep computation.
3258 (convert_descriptor_to_signed): Renamed to...
3259 (convert_descriptor_to_mode): ... this. For wider types convert to
3260 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
3261 (typed_binop): New function.
3262 (scompare_loc_descriptor, ucompare_loc_descriptor,
3263 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
3264 default to unsigned type instead of signed.
3267 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
3268 (gimple_build_debug_source_bind_stat): New prototype.
3269 (gimple_build_debug_source_bind): Define.
3270 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
3271 gimple_debug_source_bind_get_value,
3272 gimple_debug_source_bind_get_value_ptr,
3273 gimple_debug_source_bind_set_var,
3274 gimple_debug_source_bind_set_value): New inlines.
3275 * gimple.c (gimple_build_debug_source_bind_stat): New function.
3276 * gimple-pretty-print.c (dump_gimple_debug): Handle
3277 GIMPLE_DEBUG_SOURCE_BIND.
3278 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
3279 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3280 * tree-parloops.c (eliminate_local_variables,
3281 separate_decls_in_region): Likewise.
3282 (separate_decls_in_region_debug): Renamed from
3283 separate_decls_in_region_debug_bind. Handle
3284 gimple_debug_source_bind_p.
3285 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
3287 (DECL_HAS_DEBUG_ARGS_P): Define.
3288 (struct tree_function_decl): Add has_debug_args_flag field.
3289 * tree.c (debug_args_for_decl): New variable.
3290 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
3291 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
3292 (rewrite_debug_stmt_uses): New function.
3293 (rewrite_stmt): Use it to rewrite debug stmt uses.
3294 * rtl.def (DEBUG_PARAMETER_REF): New.
3295 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
3296 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
3297 DEBUG_PARAMETER_REF.
3298 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
3299 * print-rtl.c (print_rtx): Likewise.
3300 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
3301 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
3302 debug stmts in the first bb.
3303 * tree-inline.c (remap_ssa_name): If remapping default def
3304 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
3305 a source bind debug stmt.
3306 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
3307 (maybe_move_debug_stmts_to_successors): Likewise.
3308 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
3309 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
3310 debug args vector from old_decl to new_decl.
3311 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
3312 or modified parameters, add debug bind stmts before call
3313 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
3314 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
3315 on DECL_DEBUG_EXPRs from debug args vector.
3316 (expand_debug_source_expr): New function.
3317 (expand_debug_locations): Use it for source bind insns.
3318 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
3319 * var-tracking.c (prepare_call_arguments): Add debug args
3320 to call_arguments if any.
3321 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
3322 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
3323 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
3324 (get_ref_die_offset, parameter_ref_descriptor): New functions.
3325 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
3326 (gen_subprogram_die): Handle parameters identified by
3327 DEBUG_PARAMETER_REF.
3329 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
3331 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
3332 * doc/install.texi (Configuration): Document --with-tls.
3333 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
3334 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
3335 (arm_tls_descseq_addr): New.
3336 (legitimize_tls_address): Add tlsdesc support.
3337 (arm_cannot_copy_insn_p): Check for tlscall.
3338 (arm_emit_tls_decoration): Likewise.
3339 * config/arm/arm.h (TARGET_GNU2_TLS): New.
3340 (OPTION_DEFAULT_SPECS): Add with-tls support.
3341 * config/arm/arm.md (R1_REGNUM): Define.
3343 * config/arm/arm.opt (tls_type): New enumeration type and values.
3344 (mtls-dialect): New switch.
3345 * config/arm/arm-opts.h (enum tls_type): New.
3347 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
3349 * attribs.c (register_attribute): Added assert to check that all
3350 attribute specs are registered with a name that is not empty and
3351 does not start with '_'.
3352 (decl_attributes): Avoid the lookup of the "naked" attribute spec
3353 if the function has no attributes.
3354 * tree.c (is_attribute_with_length_p): Removed.
3355 (is_attribute_p): Removed.
3356 (private_is_attribute_p): New.
3357 (private_lookup_attribute): New.
3358 (lookup_attribute): Removed.
3359 (lookup_ident_attribute): New.
3360 (remove_attribute): Require the first argument to be in the form
3361 'text', not '__text__'. Updated asserts.
3362 (merge_attributes): Use lookup_ident_attributes instead of
3364 (merge_dllimport_decl_attributes): Use remove_attribute.
3365 (attribute_list_contained): Likewise.
3366 (attribute_list_equal): Immediately return 1 if the arguments are
3368 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
3369 'int'. Require the first argument to be in the form 'text', not
3370 '__text__'. Require the second argument to be an identifier.
3371 (lookup_attribute): Made inline. Require the first argument to be
3372 in the form 'text', not '__text__'.
3373 (private_is_attribute_p, private_lookup_attribute): New.
3376 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
3378 * builtins.c: Add sync_ or SYNC__ to builtin names.
3379 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
3380 * omp-low.c: Add sync_ or SYNC__ to builtin names.
3382 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
3385 * config/avr/avr.md (extzv): New expander.
3387 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
3388 * config/avr/constraints.md (C04): New constraint.
3389 * doc/md.texi (Machine Constraints): Document it.
3391 2011-06-21 Jakub Jelinek <jakub@redhat.com>
3394 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
3395 unsignedp argument instead of 1 for clrsb_optab.
3396 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
3397 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
3398 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
3399 * optabs.c (widen_leading): Call widen_operand and expand_unop
3400 with 0 as unsignedp argument instead of 1 for clrsb_optab.
3401 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
3403 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
3405 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
3407 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
3409 * gensupport.c (add_define_attr): New static function.
3410 (is_predicable): Allow multi-alternative lists for the "predicable"
3412 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
3413 (process_one_cond_exec): Call alter_attrs_for_insn.
3414 * doc/md.texi (Defining Attributes): Mention some standard names.
3415 (Conditional Execution): Update documentation for "predicable".
3417 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
3418 __builtin_clrsbll): Document.
3419 * doc/rtl.texi (clrsb): New entry.
3420 * optabs.c (widen_leading): Renamed from widen_clz. New argument
3421 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
3422 (expand_unop): Handle clrsb_optab.
3423 (init_optabs): Initialize it.
3424 * optabs.h (enum optab_index): New entry OTI_clrsb.
3425 (clrsb_optab): Define.
3426 * genopinit.c (optabs): Add an entry for it.
3427 * builtins.c (expand_builtin): Handle clrsb builtin functions.
3428 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
3429 BUILT_IN_CLRSBLL): New.
3430 * rtl.def (CLRSB): New code.
3431 * dwarf2out.c (mem_loc_descriptor): Handle it.
3432 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3433 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
3435 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
3436 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
3437 (__ctzDI2): Move declaration.
3438 * config/bfin/bfin.md (clrsbsi2): New expander.
3439 (signbitssi2): Use the CLRSB rtx.
3440 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
3441 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
3443 2011-06-21 Richard Guenther <rguenther@suse.de>
3445 * ipa-inline-transform.c (inline_transform): Fix previous change.
3447 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
3449 PR tree-optimization/49478
3450 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
3451 with constant operand.
3453 2011-06-21 Richard Guenther <rguenther@suse.de>
3455 * ipa-inline-transform.c (inline_transform): Fix typo.
3457 2011-06-21 Richard Guenther <rguenther@suse.de>
3459 PR tree-optimization/49483
3460 * tree-vect-stmts.c (vectorizable_assignment): Also handle
3461 VIEW_CONVERT_EXPR conversions.
3463 2011-06-21 Joseph Myers <joseph@codesourcery.com>
3465 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
3466 * config/avr/avr-tables.opt: New file (generated).
3467 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
3468 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
3470 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
3471 (avr_option_override): Don't process -mmcu= argument here. Set
3472 avr_current_device using avr_mcu_index.
3473 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
3474 * config/avr/avr.opt (mmcu=): Use Enum.
3475 * config/avr/t-avr (avr-devices.o): Update dependencies.
3476 ($(srcdir)/config/avr/avr-tables.opt): New.
3477 * target.def (help): Remove.
3478 * doc/tm.texi.in (TARGET_HELP): Remove.
3479 * doc/tm.texi: Regenerate.
3480 * opts.c: Don't include target.h.
3481 (common_handle_option): Don't call targetm.help.
3482 * system.h (TARGET_HELP): Poison.
3483 * Makefile.in (opts.o): Update dependencies.
3485 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3487 * config/usegld.h: New file.
3488 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
3489 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
3490 (LIB_SPEC): Likewise. Search /lib.
3491 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
3492 (RDYNAMIC_SPEC): Handle GNU ld.
3493 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
3495 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
3496 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
3497 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
3498 (STACK_CHECK_STATIC_BUILTIN): Define.
3499 * config/sol2.opt (compat-bsd): Remove.
3500 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
3501 * config/sol2-bi.h: New file.
3502 * config/sol2-gld.h: Remove.
3503 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
3504 (NO_DBX_BNSYM_ENSYM): Remove.
3505 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3506 (STACK_CHECK_STATIC_BUILTIN): Remove.
3507 Test USE_GLD instead of TARGET_GNU_LD.
3508 * config/i386/sol2-10.h: Rename to ...
3509 * config/i386/sol2-bi.h .. this.
3510 (SUBTARGET_EXTRA_SPECS): Redefine.
3511 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
3512 (MULTILIB_DEFAULTS): Remove.
3513 (DEFAULT_ARCH32_P): Define.
3514 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
3515 (ARCH64_SUBDIR): Define.
3516 Test USE_GLD instead of TARGET_GNU_LD.
3517 (I386_EMULATION): Rename to ...
3518 (ARCH32_EMULATION): ... this.
3519 (X86_64_EMULATION): Rename to ...
3520 (ARCH64_EMULATION): ... this.
3521 (TARGET_LD_EMULATION): Remove.
3522 (LINK_ARCH_SPEC): Remove.
3523 * config/i386/sol2-gas.h: Remove.
3524 * config/i386/t-sol2-10: Rename to ...
3525 * config/i386/t-sol2-64: ... this.
3526 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
3527 (AS_SPARC64_FLAG): Define.
3528 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
3529 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
3530 depending on TARGET_CPU_DEFAULT.
3531 (CPP_CPU_SPEC): Redefine.
3532 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
3533 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
3534 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
3535 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
3536 ASM_ARCH_DEFAULT_SPEC): Redefine.
3537 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
3538 LINK_ARCH_DEFAULT_SPEC.
3539 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
3540 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
3541 (ARCH64_SUBDIR): Define.
3542 (LINK_ARCH64_SPEC): Redefine.
3543 (CC1_SPEC): Redefine.
3544 (OPTION_DEFAULT_SPECS): Redefine.
3545 (MULTILIB_DEFAULTS): Define.
3546 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
3547 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
3548 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
3549 (NO_DBX_BNSYM_ENSYM): Remove.
3550 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
3551 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
3552 (TARGET_ASM_NAMED_SECTION): Likewise.
3553 (STACK_CHECK_STATIC_BUILTIN): Remove.
3554 * config/sparc/sol2-bi.h: Remove.
3555 * config/sparc/sol2-gas-bi.h: Remove.
3556 * config/sparc/sol2-gas.h: Remove.
3557 * config/sparc/sol2-gld-bi.h: Remove.
3558 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
3560 (*-*-solaris2*): ... here.
3562 2011-06-21 Christian Bruel <christian.bruel@st.com>
3565 * ipa-inline.c (can_inline_edge_p): Check
3566 !DECL_DISREGARD_INLINE_LIMITS.
3568 2011-06-21 Christian Bruel <christian.bruel@st.com>
3571 * cgraphunit.c (process_function_and_variable_attributes): warn when
3572 always_inline functions that are not inline.
3573 * ipa-inline-transform.c (inline_transform): Always call
3575 * tree-inline.c (tree_inlinable_function_p): Use error instead
3577 (expand_call_inline): Likewise.
3579 2011-06-21 Jakub Jelinek <jakub@redhat.com>
3581 * Makefile.in (dg_target_exps): Set.
3582 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
3583 instead of 7, try to divide it more evenly.
3585 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
3588 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
3589 (avx256_split_unaligned_store): New definition.
3590 (ix86_option_override_internal): Enable avx256 unaligned load/store
3591 splitting only when avx256_split_unaligned_load/store is set.
3593 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
3595 * regrename.c (scan_rtx_reg): Handle the case where we write to an
3596 open chain in a smaller mode without failing the entire block.
3598 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
3601 * combine.c (cant_combine_insn_p): Don't check zero/sign
3602 extended hard registers.
3604 2011-06-21 Alan Modra <amodra@gmail.com>
3606 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
3607 CONST high part large-toc address.
3608 (rs6000_tls_referenced_p): Make static.
3609 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
3611 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
3614 * combine.c (cant_combine_insn_p): Check zero/sign extended
3617 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3620 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
3621 one of the operands is a register.
3623 2011-06-20 Kai Tietz <ktietz@redhat.com>
3625 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
3626 operations in combination with binary and.
3628 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
3630 * regrename.c (do_replace): Don't update notes.
3632 2011-06-20 Alan Modra <amodra@gmail.com>
3634 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
3635 of toc-relative address in CONST.
3636 (rs6000_delegitimize_address): Recognize changed address.
3637 (rs6000_legitimize_reload_address): Likewise.
3638 (rs6000_emit_move): Don't force these constants to memory.
3639 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
3640 toc-relative address in CONST.
3641 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
3642 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
3644 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
3646 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
3647 (count_trailing_zeros): Likewise.
3649 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
3652 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
3653 .init_array can be used with .ctors on targets.
3654 * configure: Regenerated.
3656 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
3658 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
3659 if the element type is volatile.
3661 2011-06-18 Jan Hubicka <jh@suse.cz>
3663 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
3665 (lto_symtab_resolve_can_prevail_p): Likewise.
3666 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
3667 * cgraphbuild.c (record_reference): Remove extra body alias code.
3668 (mark_load): Likewise.
3669 (mark_store): Likewise.
3670 * cgraph.h (varpool_node): Remove extra_name filed;
3671 add alias_of and extraname_alias.
3672 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
3673 (varpool_alias_aliased_node): New inline function.
3674 (varpool_variable_node): New function.
3675 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
3676 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
3677 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
3678 (input_varpool_node): Likewise.
3679 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
3680 (varpool_externally_visible_p): Remove extra body alias code.
3681 (function_and_variable_visibility): Likewise.
3682 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
3683 (ipa_pta_execute): Use it.
3684 * varpool.c (varpool_remove_node): Remove extra name alias code.
3685 (varpool_mark_needed_node): Likewise.
3686 (varpool_analyze_pending_decls): Analyze aliases.
3687 (assemble_aliases): New functoin.
3688 (varpool_assemble_decl): Use it.
3689 (varpool_create_variable_alias): New function.
3690 (varpool_extra_name_alias): Rewrite.
3691 (varpool_for_node_and_aliases): New function.
3693 2011-06-18 Jakub Jelinek <jakub@redhat.com>
3696 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
3697 last_arg_constant and last argument doesn't match its predicate,
3698 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
3699 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
3700 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
3701 spelling of error message.
3702 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
3703 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
3704 const_0_to_255_operand instead of const_int_operand.
3707 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3709 * config/i386/sse.md (blendbits): Remove mode attribute.
3710 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3711 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3712 Check integer value of operand 3 in insn constraint.
3714 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
3716 PR rtl-optimization/48542
3717 * reload.c (find_equiv_reg): Stop looking when finding a
3719 * reload1.c (reload_as_needed): Invalidate all reload
3720 registers when crossing a setjmp-type call.
3722 2011-06-16 Jeff Law <law@redhat.com>
3724 * tree-ssa-threadupdate.c (struct redirection_data): New field
3726 (THREAD_TARGET2): Define.
3727 (redirection_data_eq): Also check that the intermediate edge is equal.
3728 (lookup_redirection_data): Drop useless argument. Extract the
3729 outgoing_edge and intermediate edge from E. Callers updated.
3730 (copy_phi_args, update_destination_phis): New functions.
3731 (fix_duplicate_block_edges): Likewise.
3732 (create_edge_and_update_destination_phis): Duplicate all the edges
3733 hung off e->aux. Use copy_phi_args.
3734 (create_duplicates): Use fix_duplicate_block_edges.
3735 (fixup_template_block): Likewise.
3736 (redirect_edges): If necessary, redirect the joiner block's incoming
3737 edge to the duplicate of the joiner block.
3738 (thread_block): Don't muck up loops when threading through a joiner
3740 (thread_through_loop_header): Handle threading through a joiner block.
3741 (mark_threaded_blocks, register_jump_thread): Likewise.
3742 * tree-flow.h (register_jump_thread): Add new argument. Callers
3744 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
3745 (thread_across_edge): Handle threading through a joiner block.
3747 2011-06-16 Martin Jambor <mjambor@suse.cz>
3749 PR tree-optimization/49343
3750 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
3751 calculate offset, provide 2nd operand for the new COMPONENT_REF.
3753 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
3755 * config/darwin-protos.h (machopic_select_rtx_section): Move to
3756 inside RTX_CODE ifdef.
3758 2011-06-16 Tom de Vries <tom@codesourcery.com>
3761 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
3762 Disallow NULL pointer for pointer arithmetic.
3764 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3768 2011-06-10 Wei Guozhi <carrot@google.com>
3771 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
3772 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
3773 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
3775 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
3777 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
3778 (arm_legitimate_ldrd_p): New prototype.
3779 (arm_output_ldrd): New prototype.
3780 * config/arm/arm.c (arm_check_ldrd_operands): New function.
3781 (arm_legitimate_ldrd_p): New function.
3782 (arm_output_ldrd): New function.
3784 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
3787 * doc/tm.texi.in: Update Copyright date.
3788 * doc/tm.texi: Regenerate.
3789 * targhooks.c (default_setup_incoming_varargs): Replace
3790 CUMULATIVE_ARGS* argument type with cumulative_args_t.
3791 (default_pretend_outgoing_varargs_named): Likewise.
3792 (hook_pass_by_reference_must_pass_in_stack): Likewise.
3793 (hook_callee_copies_named): Likewise.
3794 (default_function_arg_advance): Likewise.
3795 (default_function_arg): Likewise.
3796 (default_function_incoming_arg): Likewise.
3797 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
3798 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
3799 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
3800 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
3801 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
3802 * targhooks.h (default_setup_incoming_varargs): Likewise.
3803 (default_pretend_outgoing_varargs_named): Likewise.
3804 (hook_pass_by_reference_must_pass_in_stack): Likewise.
3805 (hook_callee_copies_named): Likewise.
3806 (default_function_arg_advance): Likewise.
3807 (default_function_arg): Likewise.
3808 (default_function_incoming_arg): Likewise.
3809 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
3810 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
3811 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
3812 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
3813 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
3814 * target.def (pass_by_reference): Likewise.
3815 (setup_incoming_varargs, strict_argument_naming): Likewise.
3816 (pretend_outgoing_varargs_named, callee_copies): Likewise.
3817 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
3818 (function_incoming_arg): Likewise.
3819 * target.h: Don't include "tm.h" .
3820 (cumulative_args_t): New typedef.
3821 [GCC_TM_H] (get_cumulative_args): New static inline function.
3822 [GCC_TM_H] (pack_cumulative_args): Likewise.
3823 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
3824 argument type with cumulative_args_t.
3825 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
3826 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
3827 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
3828 (frv_arg_partial_bytes, frv_function_arg): Likewise.
3829 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
3830 (frv_function_arg_1): Likewise.
3831 * config/s390/s390.c (s390_pass_by_reference): Likewise.
3832 (s390_function_arg_advance, s390_function_arg): Likewise.
3833 * config/m32c/m32c.c (m32c_function_arg): Likewise.
3834 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
3835 (m32c_strict_argument_naming): Likewise.
3836 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
3837 (spu_function_arg_advance): Likewise.
3838 (spu_setup_incoming_varargs): Likewise. Make static.
3839 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
3841 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
3842 CUMULATIVE_ARGS* argument type with cumulative_args_t.
3843 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
3844 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
3845 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
3846 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
3847 (mep_pass_by_reference, mep_function_arg): Likewise.
3848 (mep_function_arg_advance): Likewise.
3849 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
3850 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
3851 (m32r_function_arg, m32r_function_arg_advance): Likewise.
3852 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
3853 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
3854 (ix86_function_arg, ix86_pass_by_reference): Likewise.
3855 (ix86_setup_incoming_varargs): Likewise.
3856 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
3857 (sh_strict_argument_naming): Likewise.
3858 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
3859 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
3860 (sh_function_arg_advance, sh_function_arg): Likewise.
3861 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
3862 (pdp11_function_arg_advance): Likewise.
3863 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
3865 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
3866 * config/avr/avr.c (avr_function_arg): Likewise.
3867 (avr_function_arg_advance): Likewise.
3868 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
3869 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
3870 (xtensa_function_arg_1): Likewise.
3871 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
3873 (xstormy16_function_arg): Likewise.
3874 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
3875 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
3876 (fr30_function_arg_advance): Likewise.
3877 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
3878 (lm32_function_arg, lm32_function_arg_advance): Likewise.
3879 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
3880 (moxie_function_arg, moxie_function_arg_advance): Likewise.
3881 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
3882 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
3883 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
3884 (cris_function_arg, cris_function_incoming_arg): Likewise.
3885 (cris_function_arg_advance, cris_function_arg_1): Likewise.
3886 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
3887 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
3888 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
3889 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
3890 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
3891 (mn10300_arg_partial_bytes): Likewise.
3892 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
3893 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
3894 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
3895 (ia64_function_arg_1): Likewise.
3896 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
3897 (m68k_function_arg): Likewise.
3898 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
3899 (rs6000_function_arg, setup_incoming_varargs): Likewise.
3900 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
3901 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
3902 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
3903 (picochip_arg_advance): Likewise.
3904 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
3905 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
3906 (mcore_function_arg_advance): Likewise.
3907 * config/score/score.c (score_pass_by_reference): Likewise.
3908 (score_function_arg_advance): Likewise.
3909 (score_arg_partial_bytes): Likewise. Make static.
3910 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
3911 * config/arm/arm.c (arm_arg_partial_bytes): Replace
3912 CUMULATIVE_ARGS* argument type with cumulative_args_t.
3913 (arm_function_arg, arm_function_arg_advance): Likewise.
3914 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
3915 * config/pa/pa.c (pa_pass_by_reference): Likewise.
3916 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
3917 (pa_function_arg): Likewise.
3918 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
3919 (mips_function_arg, mips_function_arg_advance): Likewise.
3920 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
3921 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
3922 * config/vax/vax.c (vax_function_arg): Likewise.
3923 (vax_function_arg_advance): Likewise.
3924 * config/h8300/h8300.c (h8300_function_arg): Likewise.
3925 (h8300_function_arg_advance): Likewise.
3926 * config/v850/v850.c (v850_pass_by_reference): Likewise.
3927 (v850_strict_argument_naming, v850_function_arg): Likewise.
3928 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
3929 (v850_setup_incoming_varargs): Likewise.
3930 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
3931 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
3932 (mmix_function_arg, mmix_pass_by_reference): Likewise.
3933 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
3935 * config/bfin/bfin.c (setup_incoming_varargs): Replace
3936 CUMULATIVE_ARGS* argument type with cumulative_args_t.
3937 (bfin_function_arg_advance, bfin_function_arg): Likewise.
3938 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
3939 * calls.c (emit_call_1): Change type of args_so_far to
3940 cumulative_args_t. Changed all callers.
3941 (initialize_argument_information): Likewise.
3942 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
3943 * dse.c (get_call_args): Likewise.
3944 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
3945 * function.c (pass_by_reference, reference_callee_copied): Likewise.
3946 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
3947 New member args_so_far_v. Changed all users.
3948 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
3949 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
3950 * config/mips/mips.c (mips_output_args_xfer): Likewise.
3951 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
3952 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3953 * config/microblaze/microblaze.c (microblaze_expand_prologue):
3955 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
3956 m32r_pass_by_reference.
3958 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
3960 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
3961 argument to be a VEC of statements.
3962 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
3963 assert that pattern statements have to have their vector type set.
3964 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
3965 Change the first argument to be a VEC of statements. Update
3967 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
3968 (vect_handle_widen_mult_by_const): New function.
3969 (vect_recog_widen_mult_pattern): Change the first argument to be a
3970 VEC of statements. Update documentation. Check that the constant is
3971 INTEGER_CST. Support multiplication by a constant that fits an
3972 intermediate type - call vect_handle_widen_mult_by_const.
3973 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
3974 call. Handle additional pattern statements if necessary.
3976 2011-06-16 Nick Clifton <nickc@redhat.com>
3979 * config.gcc: Set cpu_type to v850 for any V850 architecture.
3980 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
3981 md_file, extra_modes, out_file and extra_options are these are all
3982 deduced from cpu_type.
3984 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
3986 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
3987 truncation mask to 63.
3989 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
3993 * longlong.h: Add AVR support:
3994 (count_leading_zeros): New macro.
3995 (count_trailing_zeros): New macro.
3996 (COUNT_LEADING_ZEROS_0): New macro.
3997 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
3998 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
3999 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
4000 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
4001 (LIB2FUNCS_EXCLUDE): Add _clz.
4002 * config/avr/libgcc.S (XCALL): Move up in file.
4003 (XJMP): New C Macro.
4004 (DEFUN): New asm macro.
4005 (ENDF): New asm macro.
4006 (__ffssi2): New function.
4007 (__ffshi2): New function.
4008 (__loop_ffsqi2): New function.
4009 (__ctzsi2): New function.
4010 (__ctzhi2): New function.
4011 (__clzdi2): New function.
4012 (__clzsi2): New function.
4013 (__clzhi2): New function.
4014 (__paritydi2): New function.
4015 (__paritysi2): New function.
4016 (__parityhi2): New function.
4017 (__parityqi2): New function.
4018 (__popcounthi2): New function.
4019 (__popcountsi2): New function.
4020 (__popcountdi2): New function.
4021 (__popcountqi2): New function.
4022 (__bswapsi2): New function.
4023 (__bswapdi2): New function.
4024 (__ashldi3): New function.
4025 (__ashrdi3): New function.
4026 (__lshrdi3): New function.
4027 Fix suspicous lines.
4029 2011-06-16 Richard Guenther <rguenther@suse.de>
4031 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
4033 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
4035 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
4036 equality compares against zero for the lower bit.
4038 2011-06-16 Jakub Jelinek <jakub@redhat.com>
4040 PR tree-optimization/49419
4041 * tree-vrp.c (execute_vrp): Call init_range_assertions
4042 before estimate_numbers_of_iterations, call
4043 free_number_of_iterations_estimates before calling
4044 remove_range_assertions.
4046 2011-06-16 Revital Eres <revital.eres@linaro.org>
4048 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
4049 (struct partial_schedule): Add rows_length field.
4050 (verify_partial_schedule): Check rows_length.
4051 (ps_insert_empty_row): Handle rows_length.
4052 (create_partial_schedule): Likewise.
4053 (free_partial_schedule): Likewise.
4054 (reset_partial_schedule): Likewise.
4055 (create_ps_insn): Remove rest_count argument.
4056 (remove_node_from_ps): Update rows_length.
4057 (add_node_to_ps): Update rows_length and call create_ps_insn
4058 without passing row_rest_count.
4059 (rotate_partial_schedule): Update rows_length.
4061 2011-06-16 Revital Eres <revital.eres@linaro.org>
4063 * ddg.c (add_intra_loop_mem_dep): New function.
4064 (build_intra_loop_deps): Call it.
4066 2011-06-13 Jeff Law <law@redhat.com>
4068 * df-problems.c (df_lr_local_compute): Manually CSE
4069 PIC_OFFSET_TABLE_REGNUM.
4070 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
4071 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
4073 2011-06-13 Jan Hubicka <jh@suse.cz>
4075 * cgraphunit.c (handle_alias_pairs): New function.
4076 (cgraph_finalize_compilation_unit): Use it.
4077 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
4078 as externally visible.
4080 2011-06-15 Richard Guenther <rguenther@suse.de>
4082 * expr.c (expand_expr_real_2): Reduce all integral types to
4084 (expand_expr_real_1): Likewise.
4086 2011-06-15 Martin Jambor <mjambor@suse.cz>
4088 PR tree-optimization/48613
4089 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
4090 ipa_node_params_vector is NULL.
4092 2011-06-15 Jakub Jelinek <jakub@redhat.com>
4095 * dwarf2out.c (dw_loc_list_node): Add force field.
4096 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
4097 location in the list, even if it is modified before first real insn.
4098 (output_loc_list): Emit empty ranges with force flag set.
4099 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
4101 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
4104 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
4105 (fence_to_rewind). Use it to notice when bookkeeping will be placed
4106 above a fence. Update comments.
4107 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
4108 placed just above it. Do not allow NULL place_to_insert.
4110 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
4112 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
4113 (slpeel_tree_peel_loop_to_edge): Don't call
4114 remove_dead_stmts_from_loop.
4115 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4116 remove irrelevant pattern statements. For irrelevant statements
4117 check if it is the last statement of a detected pattern, use
4118 corresponding pattern statement instead.
4119 (destroy_loop_vec_info): No need to remove pattern statements,
4120 only free stmt_vec_info.
4121 (vect_transform_loop): For irrelevant statements check if it is
4122 the last statement of a detected pattern, use corresponding
4123 pattern statement instead.
4124 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
4125 pattern statements. Set basic block for the new statement.
4126 (vect_pattern_recog): Update documentation.
4127 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
4128 operands of pattern statements.
4129 (vectorizable_call): Fix printing. In case of a pattern statement
4130 use the lhs of the original statement when creating a dummy
4131 statement to replace the original call.
4132 (vect_analyze_stmt): For irrelevant statements check if it is
4133 the last statement of a detected pattern, use corresponding
4134 pattern statement instead.
4135 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
4136 statements use gsi of the original statement.
4138 2011-06-14 Joseph Myers <joseph@codesourcery.com>
4140 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
4141 common/common-target-def.h.
4142 * target.def (default_target_flags, handle_option,
4143 supports_split_stack, optimization_table, init_struct,
4144 except_unwind_info, unwind_tables_default, have_named_sections):
4145 Move to common/common-target.def.
4146 * target.h (enum opt_levels, struct default_options): Move to
4147 common/common-target.h.
4148 * targhooks.c (default_except_unwind_info,
4149 dwarf2_except_unwind_info, sjlj_except_unwind_info,
4150 default_target_handle_option, empty_optimization_table): Move to
4151 common/common-targhooks.c.
4152 * targhooks.h (default_except_unwind_info,
4153 dwarf2_except_unwind_info, sjlj_except_unwind_info,
4154 default_target_handle_option, empty_optimization_table): Move to
4155 common/common-targhooks.h.
4156 * common/common-target-def.h: Include common/common-targhooks.h.
4157 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
4159 * common/common-target.def (handle_option, option_init_struct,
4160 option_optimization_table, default_target_flags,
4161 except_unwind_info, supports_split_stack, unwind_tables_default,
4162 have_named_sections): Move from target.def.
4163 (HOOK_PREFIX): Undefine at end of file.
4164 * common/common-target.h: Include input.h.
4165 (enum opt_levels, struct default_options): Move from target.h.
4166 * common/common-targhooks.c, common/common-targhooks.h: New.
4167 * config.gcc (target_has_targetm_common): Default to yes.
4168 (moxie*): Set target_has_targetm_common=no.
4169 (hppa*-*-*): Don't set target_has_targetm_common=yes.
4170 * doc/tm.texi: Regenerate.
4171 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
4172 (C_TARGET_DEF_H): Add common/common-targhooks.h.
4173 (GCC_OBJS): Remove vec.o.
4174 (OBJS): Remove hooks.o and vec.o.
4175 (OBJS-libcommon-target): Add vec.o, hooks.o and
4176 common/common-targhooks.o.
4177 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
4178 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
4179 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
4180 cfglayout.o, $(out_object_file), $(common_out_object_file)):
4181 Update dependencies.
4182 (common/common-targhooks.o): New.
4183 * common/config/default-common.c: Include tm.h. Add FIXME comment.
4184 * common/config/pa/pa-common.c: Include more headers. Take
4185 copyright dates from pa.c.
4186 (pa_option_optimization_table, pa_handle_option,
4187 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
4188 TARGET_HANDLE_OPTION): Move from pa.c.
4189 * common/config/alpha/alpha-common.c,
4190 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
4191 common/config/bfin/bfin-common.c,
4192 common/config/cris/cris-common.c,
4193 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
4194 common/config/h8300/h8300-common.c,
4195 common/config/i386/i386-common.c,
4196 common/config/ia64/ia64-common.c,
4197 common/config/iq2000/iq2000-common.c,
4198 common/config/lm32/lm32-common.c,
4199 common/config/m32c/m32c-common.c,
4200 common/config/m32r/m32r-common.c,
4201 common/config/m68k/m68k-common.c,
4202 common/config/mcore/mcore-common.c,
4203 common/config/mep/mep-common.c,
4204 common/config/microblaze/microblaze-common.c,
4205 common/config/mips/mips-common.c,
4206 common/config/mmix/mmix-common.c,
4207 common/config/mn10300/mn10300-common.c,
4208 common/config/pdp11/pdp11-common.c,
4209 common/config/picochip/picochip-common.c,
4210 common/config/rs6000/rs6000-common.c,
4211 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
4212 common/config/score/score-common.c, common/config/sh/sh-common.c,
4213 common/config/sparc/sparc-common.c,
4214 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
4215 common/config/vax/vax-common.c,
4216 common/config/xstormy16/xstormy16-common.c,
4217 common/config/xtensa/xtensa-common.c: New.
4218 * config/alpha/alpha.c: Include common/common-target.h.
4219 (alpha_option_optimization_table, alpha_handle_option,
4220 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4221 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
4222 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
4223 * config/arm/arm.c (arm_option_optimization_table,
4224 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4225 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
4227 * config/avr/avr.c (avr_option_optimization_table,
4228 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4230 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
4231 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
4232 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
4233 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
4234 * config/cris/cris.c (cris_option_optimization_table,
4235 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4236 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
4238 * config/fr30/fr30.c (fr30_option_optimization_table,
4239 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
4241 * config/frv/frv.c (frv_option_optimization_table,
4242 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
4243 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
4244 * config/h8300/h8300.c (h8300_option_optimization_table,
4245 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4246 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
4247 * config/i386/i386-protos.h (ix86_handle_option): Declare.
4248 * config/i386/i386.c: Include common/common-target.h.
4249 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
4250 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
4251 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
4252 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
4253 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
4254 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
4255 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
4256 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
4257 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
4258 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
4259 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
4260 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
4261 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
4262 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
4263 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
4264 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
4265 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
4266 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
4267 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
4268 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
4269 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
4270 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
4271 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
4272 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
4273 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
4274 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
4275 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
4276 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
4277 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
4278 ix86_option_optimization_table, ix86_option_init_struct,
4279 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
4280 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4281 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
4283 * config/i386/t-i386 (i386.o): Update dependencies.
4284 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
4285 * config/ia64/ia64.c (ia64_option_optimization_table,
4286 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4287 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4288 ia64_handle_option): Move to ia64-common.c.
4289 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
4290 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
4291 * config/lm32/lm32.c (lm32_option_optimization_table,
4292 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
4294 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
4296 * config/m32r/m32r.c (m32r_option_optimization_table,
4297 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4298 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
4299 m32r_handle_option): Move to m32r-common.c.
4300 (m32r_memory_move_cost): Remove comment referring to
4301 TARGET_HANDLE_OPTION.
4302 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
4303 Move to m68k-common.c.
4304 * config/mcore/mcore.c (mcore_option_optimization_table,
4305 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4306 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
4307 * config/mep/mep.c (mep_option_optimization_table,
4308 mep_handle_option, TARGET_HANDLE_OPTION,
4309 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
4310 Move to mep-common.c.
4311 * config/microblaze/microblaze.c
4312 (microblaze_option_optimization_table,
4313 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
4314 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
4315 * config/mips/mips.c (mips_handle_option,
4316 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4317 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
4319 * config/mmix/mmix.c (mmix_option_optimization_table,
4320 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4321 Move to mmix-common.c.
4322 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
4323 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
4324 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4325 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
4326 * config/pa/pa.c: Include common/common-target.h.
4327 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
4328 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4329 pa_handle_option): Move to pa-common.c.
4330 (pa_option_override): Use targetm_common.except_unwind_info.
4331 (pa_asm_output_mi_thunk, pa_function_section): Use
4332 targetm_common.have_named_sections.
4333 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
4334 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4335 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4336 pdp11_handle_option, pdp11_option_init_struct): Move to
4338 * config/picochip/picochip.c (picochip_option_optimization_table,
4339 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
4340 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
4341 * config/rs6000/rs6000.c: Include common/common-target.h.
4342 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
4343 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
4344 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
4345 rs6000_handle_option): Move to rs6000-common.c.
4346 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
4347 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
4348 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4349 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
4350 * config/s390/s390.c (processor_flags_table,
4351 s390_option_optimization_table, s390_option_init_struct,
4352 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
4353 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
4354 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
4355 * config/s390/s390.h (processor_flags_table): Declare.
4356 * config/score/score.c (score_option_optimization_table,
4357 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4358 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
4359 score_handle_option): Move to score-common.c.
4360 * config/sh/sh.c (sh_option_optimization_table,
4361 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
4362 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
4363 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
4364 * config/sparc/sparc.c: Include common/common-target.h.
4365 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4366 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
4367 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
4368 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
4369 spu_option_init_struct): Move to spu-common.c.
4370 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
4371 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
4372 * config/v850/v850.c (small_memory_physical_max,
4373 v850_handle_memory_optionn v850_handle_option,
4374 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
4375 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
4377 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
4378 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
4379 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
4380 Move to xtensa-common.c.
4381 * cfglayout.c: Include common/common-target.h.
4382 (fixup_reorder_chain): Use targetm_common.have_named_sections.
4383 * cfgrtl.c: Include common/common-target.h.
4384 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
4385 targetm_common.have_named_sections.
4386 * dbxout.c: Include common/common-target.h.
4387 (dbxout_function_end): Use targetm_common.have_named_sections.
4388 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
4389 targetm_common.except_unwind_info.
4390 * dwarf2out.c: Include common/common-target.h.
4391 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
4392 dwarf2out_begin_prologue, dwarf2out_frame_init,
4393 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
4394 targetm_common.except_unwind_info.
4395 * except.c: Include common/common-target.h.
4396 (init_eh, finish_eh_generation,
4397 output_one_function_exception_table): Use
4398 targetm_common.except_unwind_info.
4399 (switch_to_exception_section): Use targetm_common.have_named_sections.
4400 * explow.c: Include common/common-target.h.
4401 * expr.c: Include common/common-target.h.
4402 (build_personality_function): Use targetm_common.except_unwind_info.
4403 * function.c: Include common/common-target.h.
4404 (expand_function_end): Use targetm_common.except_unwind_info.
4405 * haifa-sched.c: Include common/common-target.h.
4406 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
4407 * lto-opts.c: Include common/common-target.h instead of target.h.
4408 (lto_reissue_options): Use targetm_common.handle_option.
4409 * opts.c: Include common/common-target.h.
4410 (target_handle_option): Use targetm_common.handle_option.
4411 (init_options_struct): Update comment referring to
4412 targetm.target_option.optimization. Use
4413 targetm_common.default_target_flags,
4414 targetm_common.unwind_tables_default and
4415 targetm_common.option_init_struct.
4416 (default_options_optimization): Use
4417 targetm_common.option_optimization_table.
4418 (finish_options): Use targetm_common.except_unwind_info,
4419 targetm_common.unwind_tables_default,
4420 targetm_common.have_named_sections and
4421 targetm_common.supports_split_stack.
4422 * toplev.c: Include common/common-target.h.
4423 (process_options): Use targetm_common.have_named_sections.
4424 * tree-tailcall.c: Include common/common-target.h.
4425 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
4426 * tree.c: Include common/common-target.h.
4427 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
4428 * varasm.c: Include common/common-target.h.
4429 (resolve_unique_section, hot_function_section,
4430 default_function_section): Use targetm_common.have_named_sections.
4432 2011-06-14 Easwaran Raman <eraman@google.com>
4434 PR rtl-optimization/44194
4435 * dse.c: Include tree-flow.h
4436 (insn_info): Add new field non_frame_wild_read.
4437 (group_info): Add new fields escaped_n and escaped_p.
4438 (kill_on_calls): New variable.
4439 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
4440 (dse_step0): Initialize kill_on_calls.
4441 (can_escape): New function.
4442 (set_usage_bits): Add additional parameter; record information
4443 about escaped locations.
4444 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
4445 (dse_step2_nospill): Set kill_on_calls based on
4446 group->escaped_n and group->escaped_n.
4447 (add_wild_read): Refactor into...
4448 (reset_active_stores): ... New function, and
4449 (free_read_records): ... New function.
4450 (add_non_frame_wild_read): New function.
4451 (scan_insn): Call add_non_frame_wild_read on non-const calls.
4452 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
4453 (dse_step5_nospill): Call scan_reads_nospill for instructions
4454 marked as non_frame_wild_read.
4455 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
4457 2011-06-14 Joseph Myers <joseph@codesourcery.com>
4459 * common/common-target-def.h, common/common-target.def,
4460 common/common-target.h, common/config/default-common.c,
4461 common/config/pa/pa-common.c: New files.
4462 * Makefile.in (common_out_file, common_out_object_file,
4463 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
4464 (OBJS-libcommon-target): Include $(common_out_object_file).
4465 (prefix.o): Update dependencies.
4466 ($(common_out_object_file), common/common-target-hooks-def.h,
4467 s-common-target-hooks-def-h): New.
4468 (s-tm-texi): Also check timestamp on common-target.def.
4469 (build/genhooks.o): Update dependencies.
4470 * config.gcc (common_out_file, target_has_targetm_common): Define.
4471 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
4472 TARGET_ALWAYS_STRIP_DOTDOT.
4473 * configure.ac (common_out_object_file): Define.
4474 (common_out_file, common_out_object_file): Substitute.
4475 (common): Create directory.
4476 * configure: Regenerate.
4477 * doc/tm.texi.in (targetm_common): Document.
4478 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
4479 * doc/tm.texi: Regenerate.
4480 * genhooks.c (hook_array): Also include common/common-target.def.
4481 * prefix.c (tm.h): Don't include.
4482 (common/common-target.h): Include.
4483 (ALWAYS_STRIP_DOTDOT): Don't define.
4484 (update_path): Use targetm_common.always_strip_dotdot instead of
4485 ALWAYS_STRIP_DOTDOT.
4486 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
4488 2011-06-14 David Li <davidxl@google.com>
4490 * passes.c (execute_function_todo): Remove TODO_dump_func.
4491 (execute_one_pass): Remove TODO_dump_func.
4492 (execute_function_dump): New function.
4493 * tree-vrp.c: Remove TODO_dump_func.
4494 * regrename.c: Remove TODO_dump_func.
4495 * fwprop.c: Remove TODO_dump_func.
4496 * tree-into-ssa.c: Remove TODO_dump_func.
4497 * tree-complex.c: Remove TODO_dump_func.
4498 * tracer.c: Remove TODO_dump_func.
4499 * tree-loop-distribution.c: Remove TODO_dump_func.
4500 * postreload-gcse.c: Remove TODO_dump_func.
4501 * postreload.c: Remove TODO_dump_func.
4502 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
4503 * tree-tailcall.c: Remove TODO_dump_func.
4504 * ipa-cp.c: Remove TODO_dump_func.
4505 * final.c: Remove TODO_dump_func.
4506 * tree-emutls.c: Remove TODO_dump_func.
4507 * omp-low.c: Remove TODO_dump_func.
4508 * tree-ssa-dse.c: Remove TODO_dump_func.
4509 * tree-ssa-uncprop.c: Remove TODO_dump_func.
4510 * auto-inc-dec.c: Remove TODO_dump_func.
4511 * reorg.c: Remove TODO_dump_func.
4512 * tree-ssa-copyrename.c: Remove TODO_dump_func.
4513 * tree-ssa-ccp.c: Remove TODO_dump_func.
4514 * compare-elim.c: Remove TODO_dump_func.
4515 * mode-switching.c: Remove TODO_dump_func.
4516 * modulo-sched.c: Remove TODO_dump_func.
4517 * tree-call-cdce.c: Remove TODO_dump_func.
4518 * cse.c: Remove TODO_dump_func.
4519 * web.c: Remove TODO_dump_func.
4520 * tree-stdarg.c: Remove TODO_dump_func.
4521 * lto-streamer-out.c: Remove TODO_dump_func.
4522 * tree-ssa-math-opts.c: Remove TODO_dump_func.
4523 * tree-ssa-dom.c: Remove TODO_dump_func.
4524 * tree-nrv.c: Remove TODO_dump_func.
4525 * loop-init.c: Remove TODO_dump_func.
4526 * gimple-low.c: Remove TODO_dump_func.
4527 * ipa-inline.c: Remove TODO_dump_func.
4528 * tree-ssa-sink.c: Remove TODO_dump_func.
4529 * jump.c: Remove TODO_dump_func.
4530 * ifcvt.c: Remove TODO_dump_func.
4531 * tree-ssa-loop.c: Remove TODO_dump_func.
4532 * recog.c: Remove TODO_dump_func.
4533 * dse.c: Remove TODO_dump_func.
4534 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
4535 * matrix-reorg.c: Remove TODO_dump_func.
4536 * tree-eh.c: Remove TODO_dump_func.
4537 * regmove.c: Remove TODO_dump_func.
4538 * function.c: Remove TODO_dump_func.
4539 * tree-vectorizer.c: Remove TODO_dump_func.
4540 * ipa-split.c: Remove TODO_dump_func.
4541 * gcse.c: Remove TODO_dump_func.
4542 * tree-if-conv.c: Remove TODO_dump_func.
4543 * init-regs.c: Remove TODO_dump_func.
4544 * tree-ssa-phiopt.c: Remove TODO_dump_func.
4545 * implicit-zee.c: Remove TODO_dump_func.
4546 * lower-subreg.c: Remove TODO_dump_func.
4547 * bt-load.c: Remove TODO_dump_func.
4548 * tree-dfa.c: Remove TODO_dump_func.
4549 * except.c: Remove TODO_dump_func.
4550 * emit-rtl.c: Remove TODO_dump_func.
4551 * store-motion.c: Remove TODO_dump_func.
4552 * cfgexpand.c: Remove TODO_dump_func.
4553 * tree-cfgcleanup.c: Remove TODO_dump_func.
4554 * cfgcleanup.c: Remove TODO_dump_func.
4555 * tree-ssa-pre.c: Remove TODO_dump_func.
4556 * tree-sra.c: Remove TODO_dump_func.
4557 * tree-mudflap.c: Remove TODO_dump_func.
4558 * tree-ssa-copy.c: Remove TODO_dump_func.
4559 * cfglayout.c: Remove TODO_dump_func.
4560 * tree-ssa-forwprop.c: Remove TODO_dump_func.
4561 * tree-ssa-dce.c: Remove TODO_dump_func.
4562 * ira.c: Remove TODO_dump_func.
4563 * tree-ssa.c: Remove TODO_dump_func.
4564 * integrate.c: Remove TODO_dump_func.
4565 * tree-optimize.c: Remove TODO_dump_func.
4566 * tree-ssa-phiprop.c: Remove TODO_dump_func.
4567 * tree-object-size.c: Remove TODO_dump_func.
4568 * combine.c: Remove TODO_dump_func.
4569 * bb-reorder.c: Remove TODO_dump_func.
4570 * cprop.c: Remove TODO_dump_func.
4571 * var-tracking.c: Remove TODO_dump_func.
4572 * tree-profile.c: Remove TODO_dump_func.
4573 * tree-vect-generic.c: Remove TODO_dump_func.
4574 * reg-stack.c: Remove TODO_dump_func.
4575 * sched-rgn.c: Remove TODO_dump_func.
4576 * tree-ssa-structalias.c: Remove TODO_dump_func.
4577 * tree-switch-conversion.c: Remove TODO_dump_func.
4578 * tree-cfg.c: Remove TODO_dump_func.
4579 * tree-ssa-reassoc.c: Remove TODO_dump_func.
4580 * combine-stack-adj.c: Remove TODO_dump_func.
4581 * dce.c: Remove TODO_dump_func.
4582 * tree-ssanames.c: Remove TODO_dump_func.
4583 * regcprop.c: Remove TODO_dump_func.
4585 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
4588 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
4589 and properly handle result not in Pmode.
4591 2011-06-14 Robert Millan <rmh@gnu.org>
4593 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
4594 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
4597 * config/i386/kfreebsd-gnu64.h: New file.
4598 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
4599 with `i386/kfreebsd-gnu64.h'.
4601 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
4602 (GNU_USER_LINK_EMULATION64): New macros.
4603 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
4604 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
4605 of hardcoding `elf_i386' and `elf_x86_64'.
4607 2011-06-14 Nick Clifton <nickc@redhat.com>
4610 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
4613 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
4615 2011-06-14 Jakub Jelinek <jakub@redhat.com>
4618 * tree.h (DECL_NONSHAREABLE): Define.
4619 (struct tree_decl_common): Change decl_common_unused to
4620 decl_nonshareable_flag.
4621 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
4622 Ignore vars with DECL_NONSHAREABLE bit set.
4623 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
4624 on stores to automatic aggregate vars.
4626 PR rtl-optimization/49390
4628 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
4630 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
4633 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
4634 Tom de Vries <tom@codesourcery.com>
4637 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
4638 Document changed semantics.
4639 (max_stmt_executions, max_stmt_executions_int): Declare.
4640 * tree-data-ref.c (estimated_loop_iterations)
4641 (estimated_loop_iterations_int): Move functions...
4642 * tree-ssa-loop-niter.c (estimated_loop_iterations)
4643 (estimated_loop_iterations_int): here.
4644 (record_estimate): Change nb_iterations_upper_bound and
4645 nb_iterations_estimate semantics.
4646 (max_stmt_executions, max_stmt_executions_int): New function.
4647 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
4648 (max_stmt_executions_tree): this.
4649 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
4650 estimated_loop_iterations_tree.
4651 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
4652 max_stmt_executions_int instead of estimated_loop_iterations_int.
4653 * predict.c (predict_loops): Idem.
4654 * tree-parloops.c (parallelize_loops): Idem.
4655 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
4656 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
4657 (init_omega_for_ddr_1): Idem.
4658 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
4659 (loop_prefetch_arrays): Idem
4660 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
4661 max_stmt_executions instead of estimated_loop_iterations.
4662 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
4663 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
4664 instead of nb_iterations_upper_bound.
4666 2011-06-13 Jan Hubicka <jh@suse.cz>
4668 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
4670 2011-06-14 Richard Henderson <rth@redhat.com>
4673 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
4674 (based_loc_descr): Assert it's true.
4675 (compute_frame_pointer_to_fb_displacement): Set it, rather than
4676 aborting immediately.
4678 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
4679 Mingfeng Wu <mingfeng@faraday-tech.com>
4681 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
4683 2011-06-13 Jan Hubicka <jh@suse.cz>
4685 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
4687 2011-06-13 Jan Hubicka <jh@suse.cz>
4689 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
4690 similarly to DECL_COMDAT.
4691 * cgraphunit.c (cgraph_analyze_function): Likewise.
4692 * ipa.c (function_and_variable_visibility): Likewise.
4694 2011-06-13 Jan Hubicka <jh@suse.cz>
4696 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
4697 BINFO_VIRTUALS when streaming for ltrans unit.
4699 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
4701 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
4702 (movdi_internal64): Same.
4704 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
4707 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
4708 a set of similar patterns, where the MATCH_OPERAND for the function
4709 argument is replaced with individual references to hardware registers.
4710 (save_fpregs_<mode>): Ditto
4711 (restore_gpregs_<mode>): Ditto
4712 (return_and_restore_gpregs_<mode>): Ditto
4713 (return_and_restore_fpregs_<mode>): Ditto
4714 (return_and_restore_fpregs_aix_<mode>): Ditto
4716 2011-06-13 Jan Hubicka <jh@suse.cz>
4718 * ipa-utils.c (postorder_stack): New structure.
4719 (ipa_reverse_postorder): Handle aliases.
4721 2011-06-13 Jan Hubicka <jh@suse.cz>
4723 * ipa-inline.c (reset_edge_caches): Walk aliases.
4724 (update_caller_keys): Do not test inlinability of aliases.
4725 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
4726 (do_estimate_growth): Fix typo.
4728 2011-06-13 Jan Hubicka <jh@suse.cz>
4730 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
4731 (can_remove_node_now_p): ... here; handle same comdat groups.
4732 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
4733 (inline_call): Update use of can_remove_node_now_p.
4735 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4737 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
4738 condition to disallow non-identical memory locations.
4739 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
4740 preference to bit manipulation instructions.
4742 2011-06-13 Jan Hubicka <jh@suse.cz>
4744 * cgraph.c (cgraph_for_node_thunks_and_aliases,
4745 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
4746 (nonremovable_p): New function.
4747 (cgraph_can_remove_if_no_direct_calls_p): New function.
4748 (used_from_object_file_p): New functoin.
4749 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
4750 references from aliases.
4751 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
4752 * ipa-inline.c (check_caller_edge): New function.
4753 (want_inline_function_called_once_p): Use it; accept aliases called
4755 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
4757 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4760 * config/arm/neon.md (vec_pack_trunc): Set the lengths
4761 correctly for the case with Quad vectors.
4763 2011-06-13 Jakub Jelinek <jakub@redhat.com>
4764 Ira Rosen <ira.rosen@linaro.org>
4766 PR tree-optimization/49352
4767 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
4768 all, make sure loop_use_stmt after the loop is a def stmt of a used
4769 SSA_NAME that is the only one defined inside of the loop. Don't
4770 check for COND_EXPR and GIMPLE_BINARY_RHS.
4771 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
4772 check_reduction is true.
4774 2011-06-11 Jan Hubicka <jh@suse.cz>
4777 * ipa.c (cgraph_externally_visible_p): Check resolution info.
4779 2011-06-11 Jan Hubicka <jh@suse.cz>
4782 * ipa-inline-transform.c: Include tree-pass.h
4783 (inline_transform): Set TODO_update_ssa_only_virtuals.
4784 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
4786 2011-06-11 Jan Hubicka <jh@suse.cz>
4789 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
4792 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
4794 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
4795 Take number of iterations to peel into account for equally frequent
4796 misalignment values.
4798 2011-06-11 Jan Hubicka <jh@suse.cz>
4800 * lto-streamer-out.c (produce_symtab): Stream out the newly
4801 represented aliases.
4803 2011-06-11 Jan Hubicka <jh@suse.cz>
4805 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
4807 (ipa_update_after_lto_read): Likewise.
4808 (ipa_write_node_info): Do not sream call_with_var_arguments.
4809 (ipa_read_node_info): Likewise.
4811 2011-06-11 Jan Hubicka <jh@suse.cz>
4813 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
4815 2011-06-11 Jan Hubicka <jh@suse.cz>
4817 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
4818 (lto_symtab_resolve_can_prevail_p): Likewise.
4819 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
4820 * cgraph.c (same_body_aliases_done): New global var.
4821 (cgraph_same_body_alias_1): Rename to ...
4822 (cgraph_create_function_alias): ... this one; reorg to new
4824 (cgraph_same_body_alias): Use cgraph_create_function_alias;
4825 record references when asked to.
4826 (cgraph_add_thunk): Fix formating.
4827 (cgraph_get_node): Kill same body alias code.
4828 (cgraph_node_for_asm): Likewise.
4829 (cgraph_remove_same_body_alias): Remove.
4830 (cgraph_remove_node): Kill same body alias code.
4831 (cgraph_mark_address_taken_node): Mark also the aliased function
4832 as having address taken.
4833 (dump_cgraph_node): Dump same body aliases.
4834 (cgraph_for_node_thunks_and_aliases): Update for new alias
4836 (cgraph_for_node_and_aliases): Likewise.
4837 * cgraph.h (same_body): Kll pointer.
4838 (same_body_alias): Update comment.
4839 (same_body_aliases_done): Declare.
4840 (cgraph_remove_same_body_alias): Remove declaration.
4841 (cgraph_create_function_alias): Declare.
4842 (cgraph_process_same_body_aliases): Declare.
4843 (cgraph_function_with_gimple_body_p): Check for alias.
4844 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
4845 (cgraph_alias_aliased_node): New function.
4846 (cgraph_function_node): Update for new aliases.
4847 (cgraph_function_or_thunk_node): Likewise.
4848 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
4849 (inline_call): Remove dead aliases.
4850 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
4851 name hack for same body aliases.
4852 (clone_of_p): Look through aliases.
4853 (verify_cgraph_node): Verify aliases.
4854 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
4855 (cgraph_process_same_body_aliases): New function.
4856 (process_function_and_variable_attributes): Disable weakref warning on
4858 (cgraph_analyze_functions): Handle aliases.
4859 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
4860 (assemble_thunks): Rename to ...
4861 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
4862 (cgraph_expand_function): Remove alias output code.
4863 (cgraph_output_in_order): Skip aliases.
4864 (cgraph_preserve_function_body_p): Aliases don't need preserving.
4865 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
4866 (ipa_record_reference): Do not assert on alias references.
4867 (ipa_ref_has_aliases_p): New function.
4868 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
4869 (ipa_ref_has_aliases_p): Declare.
4870 * lto-cgraph.c (lto_output_node): Handle aliases.
4871 (input_node): Likewise.
4872 * lto-streamer-out.c (lto_output): Skip aliases.
4873 (produce_symtab): Kill same_body_alias code.
4874 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
4875 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
4876 * ipa-inline.c (update_caller_keys): Walk aliases.
4877 (inline_small_functions): Fix thinko in previous patch.
4878 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
4879 (function_and_variable_visibility): Do not walk same body aliases.
4880 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
4881 (ipa_pta_execute): Use it.
4883 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
4885 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
4886 (*vec_dupv2df): Rename from vec_dupv2df.
4887 (vec_dupv2df): New expander.
4889 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
4891 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
4893 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
4895 * config/i386/i386.md: Use default value in "isa" attribute.
4896 * config/i386/sse.md: Ditto.
4897 * config/i386/mmx.md: Ditto.
4899 2011-06-10 Wei Guozhi <carrot@google.com>
4902 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
4903 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
4904 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
4906 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
4908 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
4909 (arm_legitimate_ldrd_p): New prototype.
4910 (arm_output_ldrd): New prototype.
4911 * config/arm/arm.c (arm_check_ldrd_operands): New function.
4912 (arm_legitimate_ldrd_p): New function.
4913 (arm_output_ldrd): New function.
4915 2011-06-10 David Li <davidxl@google.com>
4917 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
4918 * passes.c (passr_eq): New function.
4919 (create_pass_tab): New function.
4920 (pass_traverse): New function.
4921 (dump_one_pass): New function.
4922 (dump_pass_list): New function.
4923 (dump_passes): New function.
4925 2011-06-10 Jan Hubicka <jh@suse.cz>
4927 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
4928 setting the nothrow flag.
4929 * ipa-reference.c (propagate): Skip aliases.
4930 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
4931 (propagate_nothrow): Skip aliases; do not update cgraph.
4932 (local_pure_const): Do not update cgraph.
4933 * tree-profile.c (tree_profiling): Do fixup_cfg.
4935 2011-06-10 Jan Hubicka <jh@suse.cz>
4937 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
4938 (cgraph_local_node_p): ... here; handle aliases.
4939 (has_addr_references_p): Break out from ...;
4940 (cgraph_remove_unreachable_nodes) ... here.
4942 2011-06-10 Jan Hubicka <jh@suse.cz>
4944 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
4945 * common.opt (flag_inline_functions_called_once): Do not
4948 2011-06-10 Jan Hubicka <jh@suse.cz>
4950 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
4951 (ipcp_initialize_node_lattices): Do not deal with aliases;
4952 Do not try to propagate through thunks.
4953 (ipcp_change_tops_to_bottom): Do not deal with aliases.
4955 2011-06-10 Jan Hubicka <jh@suse.cz>
4957 * ipa-prop.c (ipa_write_node_info): Stream jump functions
4959 (ipa_read_node_info): Likewise.
4961 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4964 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
4965 (build_and_insert_call): Likewise.
4966 (build_and_insert_ref): New.
4967 (gimple_expand_builtin_pow): Minor cleanup.
4968 (gimple_expand_builtin_cabs): New.
4969 (execute_cse_sincos): Add case for BUILT_IN_CABS.
4971 2011-06-10 Jan Hubicka <jh@suse.cz>
4973 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
4974 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
4975 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
4976 (ipcp_propagate_stage): Skip aliases when propagating.
4977 (ipcp_need_redirect_p): Skip aliases.
4978 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
4979 collect_callers_of_node.
4980 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
4982 (ipa_compute_jump_functions): Look through aliases.
4984 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4986 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
4988 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
4990 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
4992 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
4994 2011-06-10 Jan Hubicka <jh@suse.cz>
4996 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
4997 Update call of gimple_get_virt_method_for_binfo.
4998 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
4999 refuse_thunks parameter.
5000 (gimple_fold_call): Update.
5001 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
5003 2011-06-10 Jan Hubicka <jh@suse.cz>
5005 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
5006 (not_all_callers_have_enough_arguments_p): ... this one; turn into
5007 worker for cgraph_for_node_and_aliases.
5008 (convert_callers_for_node): Break out from ...
5009 (convert_callers): ... here.
5010 (modify_function): Use collect_callers_of_node.
5011 (ipa_early_sra): Use cgraph_for_node_and_aliases.
5013 2011-06-10 Richard Guenther <rguenther@suse.de>
5015 PR tree-optimization/49361
5016 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
5017 when not already in gimple form.
5019 2011-06-10 Richard Guenther <rguenther@suse.de>
5022 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
5023 FOR_EACH_PHI_OR_STMT_USE.
5025 2011-06-10 Jan Hubicka <jh@suse.cz>
5027 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
5028 (clone_inlined_nodes): ... here.
5029 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
5030 to real destination prior inlining.
5031 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
5032 can_early_inline_edge_p, want_early_inline_function_p,
5033 want_early_inline_function_p, want_inline_small_function_p,
5034 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
5035 edge_badness, update_all_callee_keys, lookup_recursive_calls,
5036 add_new_edges_to_heap, inline_small_functions, flatten_function,
5037 inline_always_inline_functions, early_inline_small_functions): Use
5038 cgraph_function_or_thunk_node.
5039 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
5040 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
5041 (do_estimate_edge_growth_1): Break out from ...
5042 (do_estimate_growth) ... here; walk aliases.
5043 (inline_generate_summary): Skip aliases.
5045 2011-06-10 Richard Guenther <rguenther@suse.de>
5047 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
5048 forward when combining, visit inserted stmts when a stmt was changed.
5050 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
5052 * tree.h (error_operand_p): Add.
5053 * dbxout.c (dbxout_type_fields): Use the latter.
5054 * c-decl.c (add_stmt): Likewise.
5055 * gimplify.c (omp_add_variable, omp_notice_variable,
5056 gimplify_scan_omp_clauses): Likewise.
5058 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
5060 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
5061 when a value is actually passed in regs.
5063 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
5064 Laurent Rougé <laurent.rouge@menta.fr>
5066 * doc/invoke.texi (SPARC options): Add -mflat.
5067 * config/sparc/sparc.opt: Likewise.
5068 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
5069 (sparc_flat_expand_prologue): Declare.
5070 (sparc_flat_expand_epilogue): Likewise.
5071 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
5072 (CPP_ENDIAN_SPEC): Replace with...
5073 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
5074 (CPP_SPEC): Adjust to above change.
5075 (EXTRA_SPECS): Likewise.
5076 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
5077 (INCOMING_REGNO): Likewise.
5078 (OUTGOING_REGNO): Likewise.
5079 (LOCAL_REGNO): Likewise.
5080 (SETUP_FRAME_ADDRESSES): Likewise.
5081 (FIXED_REGISTERS): Set 0 for %fp.
5082 (CALL_USED_REGISTERS): Likewise.
5083 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
5084 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
5085 (RETURN_ADDR_REGNUM): Define.
5086 (RETURN_ADDR_RTX): Use it.
5087 (INCOMING_RETURN_ADDR_REGNUM): Define.
5088 (INCOMING_RETURN_ADDR_RTX): Use it.
5089 (DWARF_FRAME_RETURN_COLUMN): Likewise.
5090 (EH_RETURN_REGNUM): Define.
5091 (EH_RETURN_STACKADJ_RTX): Use it.
5092 (EH_RETURN_HANDLER_RTX): Delete.
5093 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
5094 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
5096 (struct machine_function): Add frame_size, apparent_frame_size,
5097 frame_base_reg, frame_base_offset, n_global_fp_regs and
5098 save_local_in_regs_p fields.
5099 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
5100 sparc_frame_base_offset, sparc_n_global_fp_regs,
5101 sparc_save_local_in_regs_p): New macros.
5102 (sparc_option_override): Error out if -fcall-saved-REG is specified
5104 (eligible_for_restore_insn): Fix formatting.
5105 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
5106 (eligible_for_sibcall_delay): Likewise.
5107 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
5108 (sparc_legitimate_address_p): Adjust to above change.
5109 (save_global_or_fp_reg_p): New predicate.
5110 (return_addr_reg_needed_p): Likewise.
5111 (save_local_or_in_reg_p): Likewise.
5112 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
5113 (SORR_SAVE, SORR_RESTORE): Delete.
5114 (sorr_pred_t): New typedef.
5115 (sorr_act_t): New enum.
5116 (save_or_restore_regs): Rename to...
5117 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
5118 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
5119 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
5120 mechanism. Add CFI information for double-word saves in 32-bit mode.
5121 (emit_adjust_base_to_offset): New function extracted from...
5122 (emit_save_or_restore_regs): ...this. Rename the rest to...
5123 (emit_save_or_restore_regs_global_fp_regs): ...this.
5124 (emit_save_or_restore_regs_local_in_regs): New function.
5125 (gen_create_flat_frame_[123]): New functions.
5126 (sparc_expand_prologue): Use SIZE local variable. Adjust.
5127 (sparc_flat_expand_prologue): New function.
5128 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
5129 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
5130 (sparc_flat_expand_epilogue): New function.
5131 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
5132 (output_return): Likewise.
5133 (output_sibcall): Likewise.
5134 (sparc_output_mi_thunk): Likewise.
5135 (sparc_frame_pointer_required): Likewise.
5136 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
5137 function optimization.
5138 * config/sparc/sparc.md (flat): New attribute.
5139 (prologue): Add TARGET_FLAT handling.
5140 (save_register_window): Disable if TARGET_FLAT.
5141 (create_flat_frame_[123]): New patterns.
5142 (epilogue): Add TARGET_FLAT handling.
5143 (sibcall_epilogue): Likewise.
5144 (eh_return): New expander.
5145 (eh_return_internal): New insn and splitter.
5146 (return_internal): Add TARGET_FLAT handling.
5147 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
5148 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
5149 (nonlocal_goto): Add TARGET_FLAT handling.
5150 * config/sparc/t-elf: Add -mflat multilib.
5151 * config/sparc/t-leon: Likewise.
5153 2011-06-10 Jan Hubicka <jh@suse.cz>
5155 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
5156 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
5157 (self_recursive_p): Use cgraph_function_node.
5158 (propagate_pure_const): Likewise.
5159 (propagate_nothrow): Likewise.
5160 * ipa-reference.c (ipa_reference_get_not_read_global): Use
5161 cgraph_function_node.
5162 (propagate_bits): Likewise.
5163 (propagate): Likewise.
5165 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5166 Richard Earnshaw <rearnsha@arm.com>
5168 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
5169 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
5170 (*thumb2_movdi_vfp): Delete.
5171 (*arm_movdi_vfp_cortexa8): Delete.
5172 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
5173 (*movdi_vfp_cortexa8): Likewise.
5175 2011-06-10 Richard Guenther <rguenther@suse.de>
5177 * stor-layout.c (initialize_sizetypes): Give names to all
5180 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
5182 PR tree-optimization/49318
5183 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
5184 irrelevant pattern statements.
5186 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
5188 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
5191 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
5194 2011-06-09 Jan Hubicka <jh@suse.cz>
5196 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
5197 do not recompute reachable flag.
5198 (cgraph_finalize_function, cgraph_analyze_functions): Set
5199 redefined_extern_inline here.
5201 2011-06-09 Jan Hubicka <jh@suse.cz>
5203 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
5204 (cgraph_only_called_directly_p): ... this one; bring offline.
5205 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5206 varpool_used_from_object_file_p): Drop names from the declaratoin.
5207 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
5208 collect_callers_of_node): New.
5209 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
5210 (cgraph_edge_recursive_p): Use cgraph_function_node.
5211 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
5212 (cgraph_node_cannot_be_local_p_1): Break out from ...
5213 (cgraph_node_can_be_local_p): ... here; walk aliases.
5214 (cgraph_for_node_thunks_and_aliases): New function.
5215 (cgraph_for_node_and_aliases): New function.
5216 (cgraph_make_node_local_1): Break out from ...
5217 (cgraph_make_node_local) ... here; use
5218 cgraph_for_node_thunks_and_aliases.
5219 (cgraph_set_nothrow_flag_1): Break out from ...
5220 (cgraph_set_nothrow_flag) ... here;
5221 use cgraph_for_node_thunks_and_aliases.
5222 (cgraph_set_const_flag_1): Break out from ...
5223 (cgraph_set_const_flag) ... here;
5224 use cgraph_for_node_thunks_and_aliases.
5225 (cgraph_set_pure_flag_1): Break out from ...
5226 (cgraph_set_pure_flag) ... here;
5227 use cgraph_for_node_thunks_and_aliases.
5228 (cgraph_propagate_frequency_1): Break out from ...
5229 (cgraph_propagate_frequency) ... here; use
5230 cgraph_for_node_thunks_and_aliases.
5231 (cgraph_used_from_object_file_p): Do not care about aliases.
5232 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
5234 (collect_callers_of_node_1, collect_callers_of_node): New functions.
5236 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
5238 PR rtl-optimization/49154
5239 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
5240 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
5241 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
5242 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
5243 * config/cris/cris.h (cris_register_move_cost): Remove
5244 !TARGET_V32 code. Tweak comments.
5246 2011-06-09 Jan Hubicka <jh@suse.cz>
5248 * cgraphbuild.c (record_eh_tables): Mark personality function as having
5251 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
5253 PR rtl-optimization/49154
5254 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
5255 is a matching slot in the hashtable, assign it to classes_ptr.
5257 PR rtl-optimization/49154
5258 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
5260 * doc/tm.texi: Regenerate.
5262 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
5265 * config/sh/sh.md (UNSPEC_CHKADD): New.
5266 (chk_guard_add): New define_insn_and_split.
5267 (symGOT_load): Use chk_guard_add instead of blockage.
5269 2011-06-09 Kai Tietz <ktietz@redhat.com>
5271 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
5273 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
5275 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
5277 2011-06-09 Wei Guozhi <carrot@google.com>
5280 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
5281 (peephole2 for conditional move): Generate 16 bit instructions.
5283 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
5285 * config/i386/i386.md (*movdi_internal_rex64): Merge
5286 alternatives 6 and 8.
5288 2011-06-09 David Li <davidxl@google.com>
5290 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
5291 * passes.c (passr_eq): New function.
5292 (create_pass_tab): New function.
5293 (pass_traverse): New function.
5294 (dump_one_pass): New function.
5295 (dump_pass_list): New function.
5296 (dump_passes): New function.
5298 2011-06-09 David Li <davidxl@google.com>
5300 * tree-complex.c (tree_lower_complex): Gate cleanup.
5301 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
5302 (execute_optimize_stdarg): Ditto.
5303 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
5304 (execute_cleanup_eh_1): Ditto.
5305 (execute_cleanup_eh): Ditto.
5306 * gcse.c (gate_rtl_pre): Ditto.
5307 (execute_rtl_pre): Ditto.
5308 * except.c (finish_eh_generation): Ditto.
5309 (convert_to_eh_region_ranges): Ditto.
5310 * cprop.c (one_cprop_pass): Ditto.
5312 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
5315 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
5316 in all basic blocks.
5318 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5320 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
5321 (HAVE_ENABLE_EXECUTE_STACK): Define.
5322 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
5323 (HAVE_ENABLE_EXECUTE_STACK): Define.
5324 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
5325 (HAVE_ENABLE_EXECUTE_STACK): Define.
5326 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
5327 (ENABLE_EXECUTE_STACK): Remove.
5328 (HAVE_ENABLE_EXECUTE_STACK): Define.
5329 [IN_LIBGCC2]: Don't include <windows.h>.
5330 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5331 (HAVE_ENABLE_EXECUTE_STACK): Define.
5332 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
5333 (HAVE_ENABLE_EXECUTE_STACK): Define.
5334 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
5335 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
5336 (HAVE_ENABLE_EXECUTE_STACK): Define.
5337 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
5338 (HAVE_ENABLE_EXECUTE_STACK): Define.
5339 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
5340 (HAVE_ENABLE_EXECUTE_STACK): Define.
5341 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
5342 (HAVE_ENABLE_EXECUTE_STACK): Define.
5343 * config/alpha/alpha.c (alpha_trampoline_init): Test
5344 HAVE_ENABLE_EXECUTE_STACK.
5345 * config/i386/i386.c (ix86_trampoline_init): Likewise.
5346 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5347 (sparc64_initialize_trampoline): Likewise.
5348 * libgcc2.c [L_enable_execute_stack]: Remove.
5349 * system.h (ENABLE_EXECUTE_STACK): Poison.
5350 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
5351 * doc/tm.texi: Regenerate.
5352 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
5354 2011-06-09 Jakub Jelinek <jakub@redhat.com>
5357 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
5358 variable. After resetting and rescanning insn continue with previous
5361 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5363 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
5364 (gcc_cv_ld_hidden): Likewise.
5365 * configure: Regenerate.
5366 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
5367 (ix86_stack_protect_fail): Mark unused.
5368 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
5369 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
5370 [TARGET_MACHO]: Don't define.
5371 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
5372 (TARGET_STACK_PROTECT_FAIL): Likewise.
5373 (rs6000_stack_protect_fail): Mark unused.
5374 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
5375 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
5377 2011-06-08 Andi Kleen <ak@linux.intel.com>
5379 * varasm.c (get_section): Print location of other conflict
5380 for section conflicts.
5382 2011-06-08 Andi Kleen <ak@linux.intel.com>
5384 * config/i386/driver-i386.c (host_detect_local_cpu):
5385 Add model 0x2d Intel CPU.
5387 2011-06-08 Andi Kleen <ak@linux.intel.com>
5389 * reginfo.c (global_regs_decl): Add.
5390 (globalize_reg): Add decl parameter. Compute location. Pass location
5391 to warnings and add inform. Store decl in global_regs_decl.
5392 * rtl.h (globalize_reg): Update prototype.
5393 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
5395 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
5397 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
5399 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
5402 * config/sh/predicates.md (general_movsrc_operand): Check
5403 mode for memory with indexed address for QI and HImode.
5404 (general_movdst_operand): Likewise.
5406 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
5408 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
5410 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
5412 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
5413 (num_ssa_operands): Likewise.
5414 (op_iter_init_phiuse): Forward-declare.
5415 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
5417 2011-06-08 Nick Clifton <nickc@redhat.com>
5419 * doc/invoke.texi (ARM Options): Update description of
5422 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
5424 * config/i386/driver-i386.c (host_detect_local_cpu): Support
5425 unknown Intel family 0x6 CPUs.
5427 2011-06-08 Martin Jambor <mjambor@suse.cz>
5429 * tree-sra.c (mark_rw_status): Removed.
5430 (analyze_access_subtree): New parameter parent instead of
5431 mark_read and mark_write, propagate from that.
5433 2011-06-08 Julian Brown <julian@codesourcery.com>
5435 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
5436 for double-precision helper functions in hard-float mode if only
5437 single-precision arithmetic is supported in hardware.
5439 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
5441 PR rtl-optimization/49303
5442 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
5443 code_motion_path_driver returned 0 or 1.
5444 (sel_region_finish): Clear h_d_i_d.
5446 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
5448 * config/sh/sh.c (prepare_move_operands): Set pic register
5449 appropriately for global and local dynamic tls models even
5450 if flag_pic is unset.
5452 2011-06-07 Jason Merrill <jason@redhat.com>
5454 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
5456 2011-06-07 Xinliang David Li <davidxl@google.com>
5457 * passes.c (enable_disable_pass): Handle assembler name.
5458 (is_pass_explicitly_enabled_or_disabled): Ditto.
5460 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5462 PR tree-optimization/48497
5463 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
5465 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5467 PR tree-optimization/46728
5468 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
5469 to use gimple_val_nonnegative_real_p.
5470 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
5471 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
5473 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
5475 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
5477 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
5479 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
5482 2011-06-07 Richard Guenther <rguenther@suse.de>
5484 * stor-layout.c (initialize_sizetypes): Initialize all
5485 sizetypes based on target definitions.
5486 (set_sizetype): Remove.
5487 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
5488 * tree.h (set_sizetype): Remove.
5490 2011-06-07 Nick Clifton <nickc@redhat.com>
5492 * config.gcc: Unify V850 architecture options and add support for
5493 newer V850 architectures.
5494 * config/v850/t-v850e: Delete.
5496 2011-06-07 Richard Guenther <rguenther@suse.de>
5498 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
5499 Call set_sizetype from here.
5501 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
5503 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
5504 (*maddhisi4tb, *maddhisi4tt): New define_insns.
5506 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
5507 Andrew Stubbs <ams@codesourcery.com>
5509 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
5511 * doc/md.texi (Canonicalization of Instructions): Document widening
5512 multiply canonicalization.
5514 2011-06-07 Jakub Jelinek <jakub@redhat.com>
5516 PR gcov-profile/49299
5517 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
5519 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
5521 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
5523 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
5524 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
5525 vect_recog_pow_pattern): Likewise.
5526 (vect_pattern_recog_1): Remove declaration.
5527 (widened_name_p): Remove declaration. Add new argument to specify
5528 whether to check that both types are either signed or unsigned.
5529 (vect_recog_widen_mult_pattern): Update documentation. Handle
5530 unsigned patterns and multiplication by constants.
5531 (vect_pattern_recog_1): Update vect_recog_func references. Use
5532 statement information from the statement returned from pattern
5533 detection functions.
5534 (vect_pattern_recog): Update vect_recog_func reference.
5535 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
5536 multiplication by a constant use the type of the other operand.
5538 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
5540 PR rtl-optimization/49145
5541 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
5543 2011-06-06 Jakub Jelinek <jakub@redhat.com>
5546 * dwarf2out.c (native_encode_initializer): Decrement count in each
5550 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
5554 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
5555 if stmt folded into nothing.
5556 * tree-inline.c (fold_marked_statements): If a builtin at the end of
5557 a bb folded into nothing, just update cgraph edges and move to next bb.
5558 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
5559 to be NULL. Don't compute count and frequency if new_call is NULL.
5561 2011-06-04 Diego Novillo <dnovillo@google.com>
5563 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
5564 (cgraph.o): Likewise.
5565 (cgraphunit.o): Likewise.
5566 * cgraphunit.c: Include lto-streamer.h
5567 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
5569 * lto-streamer-in.c (unpack_value_fields): Call
5570 streamer_hooks.unpack_value_fields if set.
5571 (lto_materialize_tree): For unhandled nodes, first try to
5572 call lto_streamer_hooks.alloc_tree, if it exists.
5573 (lto_input_ts_decl_common_tree_pointers): Move reading of
5574 DECL_INITIAL to lto_streamer_read_tree.
5575 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
5576 (lto_streamer_read_tree): New.
5577 (lto_reader_init): Rename from lto_init_reader.
5578 Move initialization code to lto/lto.c.
5579 * lto-streamer-out.c (pack_value_fields): Call
5580 streamer_hooks.pack_value_fields if set.
5581 (lto_output_tree_ref): For tree nodes that are not normally indexable,
5582 call streamer_hooks.indexable_with_decls_p before giving up.
5583 (lto_output_ts_decl_common_tree_pointers): Move handling
5584 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
5585 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
5586 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
5587 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
5588 (lto_streamer_write_tree): New.
5589 (lto_output): Call lto_streamer_init directly.
5590 (lto_writer_init): Remove.
5591 * lto-streamer.c (streamer_hooks): New.
5592 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
5593 instead of lto_preload_common_nodes.
5594 (lto_is_streamable): Move from lto-streamer.h
5595 (lto_streamer_hooks_init): New.
5596 (streamer_hooks): New.
5597 (streamer_hooks_init): New.
5598 * lto-streamer.h (struct output_block): Forward declare.
5599 (struct lto_input_block): Likewise.
5600 (struct data_in): Likewise.
5601 (struct bitpack_d): Likewise.
5602 (struct streamer_hooks): Declare.
5603 (streamer_hooks): Declare.
5604 (lto_streamer_hooks_init): Declare.
5605 (lto_streamer_write_tree): Declare.
5606 (lto_streamer_read_tree): Declare.
5607 (streamer_hooks_init): Declare.
5608 (lto_is_streamable): Move to lto-streamer.c
5610 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5612 * longlong.h (smul_ppmm): The resulting register pair contains the
5613 higher order word first.
5615 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5617 PR tree-optimization/46728
5618 * builtins.c (powi_table): Remove.
5619 (powi_lookup_cost): Remove.
5620 (powi_cost): Remove.
5621 (expand_powi_1): Remove.
5622 (expand_powi): Remove.
5623 (expand_builtin_pow_root): Remove.
5624 (expand_builtin_pow): Remove.
5625 (expand_builtin_powi): Eliminate handling of constant exponent.
5626 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
5628 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
5630 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
5632 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
5634 * dce.c (reset_unmarked_insns_debug_uses): New.
5635 (delete_unmarked_insns): Skip debug insns.
5636 (prescan_insns_for_dce): Likewise.
5637 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
5638 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
5639 active reg can be found.
5640 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
5641 (convert_regs_1): Use it.
5643 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
5645 * tree-pretty-print.c (dump_function_header): Add flags.
5646 Don't dump decl_uid with nouid.
5647 * tree-pretty-print.h (dump_function_header): Adjust.
5648 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
5649 * passes.c (pass_init_dump_file): Pass dump_flags on.
5650 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
5652 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
5655 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
5657 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
5659 PR tree-optimization/49243
5660 * calls.c (setjmp_call_p): Also check if fndecl has the
5661 returns_twice attribute.
5663 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5665 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
5668 2011-06-06 Richard Henderson <rth@redhat.com>
5669 Georg-Johann Lay <avr@gjlay.de>
5672 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
5674 * config/avr/avr.md ("insv"): New insn expander.
5675 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
5676 "*insv.not.io", "*insv.reg"): New insns.
5678 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
5681 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
5682 to nonimmediate_operand from memory_operand for the operand that is to
5683 be forced to memory by the expander. Lose the constraints.
5685 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
5687 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
5688 EH return when delayed branches are disabled.
5690 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
5692 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
5693 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
5695 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
5696 Simplify MODE_V1DF and MODE_V2SF handling.
5697 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
5698 Simplify MODE_SF handling.
5700 2011-06-04 Jan Hubicka <jh@suse.cz>
5702 PR tree-optimization/48893
5703 PR tree-optimization/49091
5704 PR tree-optimization/49179
5705 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
5708 2011-06-04 Jan Hubicka <jh@suse.cz>
5711 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
5714 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
5716 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
5718 2011-06-04 Jakub Jelinek <jakub@redhat.com>
5721 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
5722 to be strictly smaller than 1 << shiftcount.
5724 2011-06-04 Jan Hubicka <jh@suse.cz>
5726 PR tree-optimize/48929
5727 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
5730 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
5733 * calls.c (emit_call_1): Prefer the __builtin declaration of
5736 2011-06-03 Diego Novillo <dnovillo@google.com>
5738 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
5739 (lto_input_tree_pointers): Likewise.
5740 * lto-streamer-out.c (pack_value_fields): Likewise.
5741 (lto_output_tree_pointers): Likewise.
5742 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
5743 and OPTIMIZATION_NODE.
5745 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5747 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
5748 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
5749 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
5750 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
5751 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
5752 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
5753 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
5754 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
5755 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
5756 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
5757 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
5758 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
5759 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
5760 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
5761 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
5762 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
5763 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
5764 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
5765 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
5766 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
5767 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
5768 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
5769 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
5770 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
5771 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
5772 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
5773 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
5774 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
5775 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
5776 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
5777 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
5778 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
5779 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
5780 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
5781 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
5782 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
5783 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
5784 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
5785 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
5786 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
5787 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
5788 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
5789 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
5790 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
5791 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
5792 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
5793 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
5794 * system.h (MD_UNWIND_SUPPORT): Poison.
5795 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
5796 * doc/tm.texi: Regenerate.
5797 * unwind-dw2.c: Include md-unwind-support.h instead of
5799 * config/ia64/unwind-ia64.c: Likewise.
5800 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
5802 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
5804 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
5806 2011-06-03 Richard Henderson <rth@redhat.com>
5807 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5809 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
5810 (sigill_hdlr): Correct insn, insn size.
5811 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
5813 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5815 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
5817 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
5818 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
5819 * config/mips/t-iris: Remove.
5820 * config/mips/t-irix6: New file.
5821 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
5823 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5825 * Makefile.in (LIB2ADDEHDEP): Remove.
5826 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
5827 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
5828 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
5829 * config/t-darwin (LIB2ADDEHDEP): Remove.
5830 * config/t-freebsd (LIB2ADDEHDEP): Remove.
5831 * config/t-linux (LIB2ADDEHDEP): Remove.
5833 2011-06-03 Diego Novillo <dnovillo@google.com>
5835 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
5836 (lto_register_var_decl_in_symtab): Likewise.
5837 (lto_register_function_decl_in_symtab): Likewise.
5838 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
5839 logic to uniquify_nodes.
5841 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5843 * config/alpha/t-osf5: Remove.
5844 * config/alpha/t-osf-pthread: Remove.
5845 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
5846 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
5848 2011-06-03 Julian Brown <julian@codesourcery.com>
5850 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
5851 (strongarm1110): Use strongarm tuning.
5852 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
5853 * config/arm/arm.c (arm_strongarm_tune): New.
5854 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
5855 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
5856 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
5857 setting, using previous defaults or 1 for Cortex-A5.
5858 (arm_option_override): Set max_insns_skipped from current tuning.
5860 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
5862 * doc/install.texi (Options specification): Document --with-specs.
5864 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5866 * config/arm/neon.md (orndi3_neon): Actually split it.
5868 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
5870 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
5871 * var-tracking.c (reverse_op): Limite recurse depth to 5.
5873 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
5876 * target.def (delay_sched2, delay_vartrack): New.
5877 * doc/tm.texi.in: Update.
5878 * doc/tm.texi: Rebuild.
5879 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
5880 * var-tracking.c (gate_handle_var_tracking): Likewise.
5881 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
5882 (bfin_flag_var_tracking): Drop.
5883 (output_file_start): Don't save and override flag_var_tracking.
5884 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
5885 (bfin_reorg): Test original variables.
5886 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5887 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
5888 (ia64_flag_var_tracking): Drop.
5889 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5890 (ia64_file_start): Don't save and override flag_var_tracking.
5891 (ia64_override_options_after_change): Ditto
5892 flag_schedule_insns_after_reload.
5893 (ia64_reorg): Test original variables.
5894 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
5895 (picochip_flag_var_tracking): Drop.
5896 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
5897 (picochip_option_override): Don't save and override
5898 flag_schedule_insns_after_reload.
5899 (picochip_asm_file_start): Ditto flag_var_tracking.
5900 (picochip_reorg): Test original variables.
5901 * config/spu/spu.c (spu_flag_var_tracking): Drop.
5902 (TARGET_DELAY_VARTRACK): Define.
5903 (spu_var_tracking): New.
5904 (spu_machine_dependent_reorg): Call it.
5905 (asm_file_start): Don't save and override flag_var_tracking.
5907 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
5910 * config/sh/predicates.md (general_movsrc_operand): Return 0
5911 for memory and memory subreg of which address is an invalid
5912 indexed address for QI and HImode.
5913 (general_movdst_operand): Likewise.
5915 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
5917 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
5918 edges only, when there is a non-local label in the function.
5919 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
5921 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
5923 * config/i386/constraints.md (Y3): New register constraint.
5924 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
5925 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
5926 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
5927 *sse2_interleave_lowv2df.
5929 2011-06-02 Julian Brown <julian@codesourcery.com>
5931 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
5932 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
5933 (arm_cortex_a5_tune): New.
5935 2011-06-02 Julian Brown <julian@codesourcery.com>
5937 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
5938 * config/arm/arm.c (arm_default_branch_cost): New.
5939 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
5940 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
5941 (arm_fa726_tune): Set branch_cost field using
5942 arm_default_branch_cost.
5943 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
5944 current_tune structure.
5945 * dojump.c (tm_p.h): Include file.
5947 2011-06-02 Julian Brown <julian@codesourcery.com>
5949 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
5951 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
5952 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
5953 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
5955 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
5956 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
5957 (arm_fa726te_tune): Add prefer_constant_pool setting.
5958 (arm_v6t2_tune, arm_cortex_tune): New.
5959 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
5960 prefer_constant_pool setting.
5962 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
5964 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
5966 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
5967 (*movdf_internal) <case 6,7,8>: Ditto.
5969 * config/i386/constraints.md (Y4): New register constraint.
5970 * config/i386/sse.md (vec_set<mode>_0): Merge with
5971 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
5972 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
5973 *vec_extractv2di_1_sse.
5974 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
5975 and *vec_concatv2di_rex64_sse.
5977 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
5980 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
5981 of cgraph_local_info for null before attempting to use it.
5983 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
5985 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
5986 (current_function_dynamic_alloc_count): Delete.
5987 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
5988 (expand_builtin_nonlocal_goto): Remove obsolete comment.
5989 (expand_builtin_update_setjmp_buf): Remove dead code.
5990 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
5991 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
5993 * function.c (instantiate_virtual_regs): Likewise.
5994 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
5995 for a block with a single abnormal incoming edge.
5996 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
5997 (SETJMP_VIA_SAVE_AREA): Delete.
5998 * config/sparc/sparc-protos.h (load_got_register): Declare.
5999 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
6000 (load_got_register): Make global.
6001 (sparc_frame_pointer_required): Add 'static'.
6002 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
6003 (sparc_builtin_setjmp_frame_value): New function.
6004 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
6005 (save_stack_nonlocal): New expander.
6006 (restore_stack_nonlocal): Likewise.
6007 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
6008 (nonlocal_goto_internal): New insn.
6009 (goto_handler_and_restore): Delete.
6010 (builtin_setjmp_setup): Likewise.
6011 (do_builtin_setjmp_setup): Likewise.
6013 (builtin_setjmp_receiver): New expander.
6015 2011-06-01 David Li <davidxl@google.com>
6018 * tree-pretty-print.c (dump_function_header): Format cleanup.
6020 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
6023 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
6024 needed when original operands are used for msw_skip comparison.
6026 2011-06-01 Jakub Jelinek <jakub@redhat.com>
6029 * var-tracking.c (add_uses, add_stores): Don't call
6030 cselib_subst_to_values on ENTRY_VALUE.
6032 2011-06-01 Diego Novillo <dnovillo@google.com>
6034 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
6035 output_record_start with LTO_null instead of output_zero.
6036 (lto_output_ts_binfo_tree_pointers): Likewise.
6037 (lto_output_tree): Likewise.
6038 (output_eh_try_list): Likewise.
6039 (output_eh_region): Likewise.
6040 (output_eh_lp): Likewise.
6041 (output_eh_regions): Likewise.
6042 (output_bb): Likewise.
6043 (output_function): Likewise.
6044 (output_unreferenced_globals): Likewise.
6045 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
6046 instead of NUM_TREE_CODES.
6047 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
6048 (lto_output_int_in_range): Change << to >> when shifting VAL.
6050 2011-06-01 Diego Novillo <dnovillo@google.com>
6052 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
6053 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
6055 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6058 * optabs.h (valid_multiword_target_p): Declare.
6059 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
6060 doing multi-word operations.
6061 * optabs.c (expand_binop): Likewise.
6062 (expand_doubleword_bswap): Likewise.
6063 (expand_absneg_bit): Likewise.
6064 (expand_unop): Likewise.
6065 (expand_copysign_bit): Likewise.
6066 (multiword_target_p): New function.
6068 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
6070 PR rtl-optimization/48830
6071 PR rtl-optimization/48808
6072 PR rtl-optimization/48792
6073 * reload.c (push_reload): Check contains_reg_of_mode.
6074 * reload1.c (strip_paradoxical_subreg): New function.
6075 (gen_reload_chain_without_interm_reg_p): Use it to handle
6076 paradoxical subregs.
6077 (emit_output_reload_insns, gen_reload): Likewise.
6079 2011-06-01 David Li <davidxl@google.com>
6081 * predict.c : Change pass name
6084 * tree-profile.c: Ditto.
6087 2011-06-01 David Li <davidxl@google.com>
6089 * tree-pretty-print.c (dump_function_header): New function.
6090 * final.c (rest_of_clean_state): Use header dumper.
6091 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
6092 * passes.c (pass_init_dump_file): Use header dumper.
6094 2011-06-01 Jakub Jelinek <jakub@redhat.com>
6096 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
6097 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
6098 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
6100 (mem_loc_descriptor): Use them.
6102 * var-tracking.c (create_entry_value): New function.
6103 (vt_add_function_parameter): Use it.
6105 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6107 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
6108 Include <signal.h>, <ucontext.h>.
6109 (sigill_caught): Define.
6110 (sigill_hdlr): New function.
6111 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
6112 insns can be executed.
6113 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
6114 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
6116 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6118 * config/t-slibgcc-darwin: Move to ...
6119 * config/t-slibgcc-dummy: ... this. Clarify comments.
6120 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
6121 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
6122 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
6123 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
6124 Remove i386/t-crtstuff from tmake_file.
6125 (i[34567]86-*-solaris2*): Remove t-svr4,
6126 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
6128 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
6129 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
6130 sparc/t-crtfm from tmake_file.
6131 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
6132 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
6134 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
6135 * config/i386/t-nwld (SHLIB_LINK): Remove.
6136 * config/i386/t-rtems-i386: Rename to ...
6137 * config/i386/t-rtems: ... this.
6138 ($(T)crti.o, $(T)crtn.o): Remove.
6139 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
6140 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
6141 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
6142 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
6143 EXTRA_MULTILIB_PARTS): Remove.
6144 * config/sparc/t-sol2-64: Likewise.
6145 * config/sparc/t-sol2: Remove.
6146 * config/sparc/t-crtin: Remove.
6147 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
6148 * config/i386/gmon-sol2.c: Remove.
6149 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
6150 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
6151 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
6152 * config/i386/sol2-gc1.asm: Remove.
6153 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
6154 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
6155 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
6156 * config/t-slibgcc-sld: Remove.
6158 2011-06-01 Jakub Jelinek <jakub@redhat.com>
6160 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
6161 base_type_for_mode with op_mode instead of mode.
6163 2011-06-01 Paul Brook <paul@cpodesourcery.com>
6165 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
6167 * config/arm/arm-tune.md: Regenerate.
6168 * config/arm/arm-tables.opt: Regenerate.
6169 * config/arm/arm.c (FL_DIV): Rename...
6170 (FL_THUMB_DIV): ... to this.
6171 (FL_ARM_DIV): Define.
6172 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
6173 (arm_arch_hwdiv): Remove.
6174 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
6175 (arm_issue_rate): Add cortexr5.
6176 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
6177 __ARM_ARCH_EXT_IDIV__.
6178 (TARGET_IDIV): Define.
6179 (arm_arch_hwdiv): Remove.
6180 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
6181 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
6182 (divsi3, udivsi3): New patterns.
6183 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
6184 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
6186 2011-06-01 Martin Jambor <mjambor@suse.cz>
6188 * ipa-utils.c (ipa_dfs_info): New field scc_no.
6189 * ipa-utils.c (searchc): Set scc_no.
6191 2011-06-01 Martin Jambor <mjambor@suse.cz>
6193 * ipa-utils.c (searchc_env): New field allow_overwritable.
6194 (searchc): do not ignore edges to overwritable nodes if indicated
6195 by env->allow_overwritable.
6196 (ipa_reduced_postorder): Set env.allow_overwritable.
6198 2011-06-01 Richard Guenther <rguenther@suse.de>
6200 * tree.c (free_lang_data): Do not reset boolean_type_node nor
6202 * lto-streamer.c (lto_record_common_node): Take node pointer,
6203 do not register types.
6204 (lto_preload_common_nodes): Explicitly skip preloading nodes
6205 that differ between frontends.
6207 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
6209 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
6212 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
6214 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
6215 parameter value for dump. Dump cost on outermost call only.
6216 (rs6000_memory_move_cost): Dump cost on outermost call only.
6218 2011-05-31 Jakub Jelinek <jakub@redhat.com>
6220 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
6221 DW_OP_GNU_convert ops.
6223 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
6224 cselib_preserve_constants.
6225 (cselib_lookup_1): If cselib_preserve_constants,
6226 a new VALUE is being created for REG and there is a VALUE for the
6227 same register in wider mode, add another loc with lowpart SUBREG of
6229 (cselib_subst_to_values): Handle ENTRY_VALUE.
6230 * var-tracking.c (replace_expr_with_values): Return NULL for
6232 * dwarf2out.c (convert_descriptor_to_signed): New function.
6233 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
6234 instead of two shifts.
6235 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
6236 the right mode if needed.
6237 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
6238 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
6239 convert_descriptor_to_signed.
6240 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
6241 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
6244 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
6246 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
6248 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
6249 of X87MODEI12 and SWI48x instead of SSEMODEI24.
6250 (SWI248x): New mode iterator, rename from X87MODEI.
6251 (X87MODEI): Remove mode iterator.
6252 (X87MODEI12): Ditto.
6253 (SSEMODEI24): Ditto.
6255 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6257 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
6258 * doc/invoke.texi: Document max-vartrack-expr-depth.
6259 * var-tracking.c (EXPR_DEPTH): New.
6260 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
6262 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6264 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
6265 * config/i386/sse.md: Add n to negated FMA pattern names.
6267 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6269 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
6271 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
6273 * gengtype-state.c (read_state_params_structs): Initialize previous.
6275 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
6277 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
6278 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
6280 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
6282 * config/i386/i386.md (*movtf_internal): Avoid allocating general
6283 registers. Penalize F*r->o alternative to prevent partial memory
6284 stalls. Slightly penalize *roF->*r alternative. Generate SSE
6285 CONST_DOUBLE immediates when optimizing function for size. Do not move
6286 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6287 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
6288 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
6289 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
6291 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
6293 (fp_register_operand splitters): Use fp_register_operand
6294 constraint. Do not use FP_REG_P in insn condition.
6295 (any_fp_register_operand splitters): Use any_fp_register_operand
6296 constraint. Do not use ANY_FP_REG_P in insn condition.
6298 2011-05-31 Jan Hubicka <jh@suse.cz>
6300 * cgraph.h (cgraph_inline_failed_t): Give enum a name
6301 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
6302 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
6303 (lto_output_edge): Use output_enum and var_len_unsigned.
6304 (lto_output_varpool_node): Likewise.
6305 (input_overwrite_node): Do not take resolution parameter;
6306 extract it from a bitpack.
6307 (input_node): Do not read resolution; use input_enum and
6309 (input_varpool_node): Likewise.
6310 (input_edge): Likewise.
6311 (input_cgraph_1): Likewise.
6313 2011-05-31 Richard Guenther <rguenther@suse.de>
6315 * gimple.c (gimple_register_canonical_type): Do not register
6316 any types via gimple_register_type.
6318 2011-05-31 Jan Hubicka <jh@suse.cz>
6320 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
6323 2011-05-31 Jakub Jelinek <jakub@redhat.com>
6325 PR rtl-optimization/49235
6326 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
6327 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
6329 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
6331 PR tree-optimization/49093
6332 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
6335 2011-05-31 Dodji Seketeli <dodji@redhat.com>
6338 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6339 for concrete functions containing the code of cloned functions.
6341 2011-05-31 Richard Guenther <rguenther@suse.de>
6343 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
6345 (forward_propagate_into_comparison_1): ... this.
6346 (forward_propagate_comparison): Rename to ...
6347 (forward_propagate_into_comparison): ... this. Split out
6348 real forward propagation code to ...
6349 (forward_propagate_comparison): ... this.
6350 (forward_propagate_into_gimple_cond): Remove looping.
6351 (forward_propagate_into_cond): Likewise.
6352 (simplify_not_neg_expr): Return whether we have done something.
6353 (simplify_gimple_switch): Likewise.
6354 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
6355 (ssa_forward_propagate_and_combine): ... this. Re-structure
6356 to do a forward forward-propagation walk on BBs and a backward
6357 stmt combining walk on BBs. Consistently re-scan changed statements.
6358 (pass_forwprop): Adjust.
6360 2011-05-30 Ian Lance Taylor <iant@google.com>
6362 * godump.c (go_format_type): Correct length of name added to
6363 obstack for anonymous field.
6365 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
6368 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
6369 part of the second operand is 0.
6371 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
6373 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
6374 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
6375 to memory for !TARGET_MEMORY_MISMATCH_STALL.
6376 (*movdf_internal_rex64): Do not penalize F->r alternative.
6377 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
6378 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
6379 when optimizing function for size. Do not move CONST_DOUBLEs
6380 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6381 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
6382 SUBREGs. Do not check for MEM_P operands in the insn condition,
6383 check for ANY_FP_REGNO_P instead.
6384 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
6385 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
6387 * config/i386/i386.c (ix86_option_override_internal): Do not
6388 set TARGET_INTEGER_DFMODE_MOVES here.
6390 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
6393 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
6395 2011-05-30 Jakub Jelinek <jakub@redhat.com>
6397 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
6398 DW_TAG_rvalue_reference_type even for
6399 -gdwarf-4 -fno-debug-types-section.
6401 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6403 PR tree-optimization/46728
6404 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
6405 (build_and_insert_binop): New.
6406 (gimple_expand_builtin_pow): Reorder args for
6407 build_and_insert_call; use build_and_insert_binop; add more
6408 optimizations for fractional exponents.
6410 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
6415 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6417 * tree.h (struct tree_identifier): Inherit from tree_typed, not
6419 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6420 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6421 TS_BASE instead of TS_COMMON.
6422 * varasm.c (assemble_name): Remove assert.
6424 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
6426 * config.gcc: Keep obselete list sorted.
6428 2011-05-30 Jakub Jelinek <jakub@redhat.com>
6429 Eric Botcazou <ebotcazou@adacore.com>
6431 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
6432 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
6433 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
6434 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
6435 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
6437 2011-05-30 Richard Guenther <rguenther@suse.de>
6439 * gimple.c (gimple_types_compatible_p_1): Compare record
6440 and union type members properly.
6442 2011-05-30 Richard Guenther <rguenther@suse.de>
6444 PR tree-optimization/49210
6445 * ipa-split.c (split_function): Care for the case where the call
6446 result is not trivially convertible to the result holding variable.
6448 2011-05-30 Richard Guenther <rguenther@suse.de>
6450 PR tree-optimization/49218
6451 * tree-vrp.c (adjust_range_with_scev): Properly check whether
6454 2011-05-30 Richard Guenther <rguenther@suse.de>
6456 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
6457 New function split out from ...
6458 (forward_propagate_into_gimple_cond): ... here. Adjust.
6459 (forward_propagate_into_cond): Likewise.
6460 (forward_propagate_comparison): Also propagate into
6461 comparisons on assignment RHS. Change return value to
6462 behave similar to forward_propagate_into_cond.
6463 (tree_ssa_forward_propagate_single_use_vars): Handle
6464 strict-overflow warnings properly for forward_propagate_comparison.
6466 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6468 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
6470 * configure: Regenerate.
6472 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
6474 PR tree-optimization/49199
6475 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
6476 non-reduction operands are either defined in the loop or by induction.
6478 2011-05-29 Xinliang David Li <davidxl@google.com>
6480 * opts-global.c (handle_common_deferred_options): Handle new options.
6481 * passes.c (register_one_dump_file): Call register_pass_name.
6482 (execute_one_pass): Check explicit enable/disable flag.
6483 (passr_hash): New function.
6485 (register_pass_name): Ditto.
6486 (get_pass_by_name): Ditto.
6489 (enable_pass): Ditto.
6490 (disable_pass): Ditto.
6491 (is_pass_explicitly_enabled_or_disabled): Ditto.
6493 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
6495 * config/i386/i386.md (*movoi_internal_avx): Use
6496 standard_sse_constant_opcode for alternative 0.
6497 (*movti_internal_sse): Ditto.
6498 (*movti_internal_rex64): Use standard_sse_constant_opcode for
6500 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
6502 (*movsi_internal): Ditto.
6503 (*movdi_internal): Ditto. Add ssecvt type moves.
6505 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
6508 * rtlanal.c (simplify_subreg_regno): Adjust comment.
6510 2011-05-29 Jakub Jelinek <jakub@redhat.com>
6512 PR rtl-optimization/49095
6513 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
6514 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
6516 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
6519 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
6520 recurse_p argument. Only follow register copies if it is set,
6521 and prevent mips_find_pic_call_symbol from recursing.
6522 (mips_find_pic_call_symbol): Add a recurse_p argument.
6523 Pass it to mips_pic_call_symbol_from_set.
6524 (mips_annotate_pic_calls): Update accordingly.
6526 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
6528 * emit-rtl.c (try_split): Use a loop to search for
6529 NOTE_INSN_CALL_ARG_LOCATIONs.
6531 2011-05-29 Richard Guenther <rguenther@suse.de>
6533 PR tree-optimization/49217
6534 * ipa-pure-const.c (propagate_pure_const): Fix typos.
6536 2011-05-28 Jan Hubicka <jh@suse.cz>
6538 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
6540 (string_slot_free): Remove
6541 (create_output_block): Initialize obstack.
6542 (destroy_output_block): Free obstack.
6543 (lto_string_index): Add PERSISTENT parameter; do not duplicate
6544 the string unless it needs to be added into the hash.
6545 (lto_output_string_with_length): Add persistent attribute;
6546 handle NULL strings.
6547 (lto_output_string): Add PERSISTENT parameter.
6548 (output_string_cst, output_identifier): Simplify.
6549 (lto_output_location_bitpack): Update.
6550 (lto_output_builtin_tree): Update.
6551 * lto-streamer.h (struct output_block): Add obstack.
6552 (lto_output_string, lto_output_string_with_length): Remove
6553 declarations; functions are static now.
6555 2011-05-28 Jan Hubicka <jh@suse.cz>
6557 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
6558 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
6559 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
6560 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
6561 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
6562 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
6563 unpack_ts_decl_with_vis_value_fields,
6564 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
6565 lto_get_builtin_tree): Use enum and variable length i/o.
6566 * basic-block.h (profile_status_d): Add PROFILE_LAST.
6567 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
6569 (bp_pack_enum, bp_unpack_enum): New macros.
6571 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6573 * genrecog.c: Remove redundant forward declarations.
6575 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6577 * config.gcc: Deprecate mips*-*-openbsd*.
6579 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
6582 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
6585 2011-05-27 Andrew Pinski <pinskia@gmail.com>
6588 * gengtype.c (vec_prefix_type): New function.
6589 (note_def_vec): Use vec_prefix_type and change the length
6590 attribute to be based on the prefix.
6591 * vec.c: Include coretypes.h before vec.h.
6592 (struct vec_prefix): Remove.
6593 (vec_gc_p_reserve): Change the offsetof to sizeof.
6594 (vec_gc_p_reserve_exact): Likewise.
6595 (vec_heap_p_reserve): Likewise.
6596 (vec_heap_p_reserve_exact): Likewise.
6597 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
6598 (vec_stack_p_reserve): Change the offsetof to sizeof.
6599 (vec_stack_p_reserve_exact): Likewise.
6600 * vec.h (struct vec_prefix): New struct definition.
6601 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
6602 (VEC_T_GTY(T,B)): Likewise.
6603 (DEF_VEC_FUNC_P(T)): Use prefix field.
6604 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
6605 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
6607 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6609 PR tree-optimization/46728
6610 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
6611 (powi_as_mults): Add gimple_set_location.
6612 (build_and_insert_call): New.
6613 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
6614 0.5, 0.25, 0.75, 1./3., or 1./6.
6616 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
6618 * doc/contrib.texi: Update copyright years.
6619 (Contributors): Add Zdenek Sojka.
6621 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
6623 * c-decl.c (c_push_function_context): Copy the current statement
6625 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
6626 (finish_struct): Call building_stmt_list_p instead of checking
6628 * c-parser.c (c_parser_postfix_expression): Likewise.
6629 * c-typeck.c (c_end_compound_stmt): Likewise.
6630 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
6631 * tree-iterator.c (stmt_list_cache): Change to a VEC.
6632 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
6633 (free_stmt_list): Likewise.
6634 * tree.h (struct tree_statement_list): Include typed_tree instead
6636 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
6637 as TS_TYPED instead of TS_COMMON.
6639 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6640 Uros Bizjak <ubizjak@gmail.com>
6642 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
6643 (HAVE_AS_IX86_TLSGDPTL): Define.
6644 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
6645 (HAVE_AS_IX86_TLSLDMPLT): Define.
6646 * configure: Regenerate.
6647 * config.in: Regenerate.
6648 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
6649 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
6650 TARGET_SUN_TLS, use @tlsgdplt or @plt.
6651 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
6652 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
6654 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
6656 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
6658 * sched-int.h (struct _haifa_deps_insn_data): New members cond
6660 (INSN_COND, INSN_REVERSE_COND): New macros.
6661 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
6663 (sched_get_condition_with_rev): Cache the results, and look them up
6665 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
6666 are clobbered by the current insn.
6667 * target.def (exposed_pipline): New sched data hook.
6668 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
6669 * doc/tm.texi: Regenerate.
6671 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6673 PR tree-optimization/49170
6674 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
6677 2011-05-27 Richard Guenther <rguenther@suse.de>
6680 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
6683 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
6685 * haifa-sched.c (sched_scan_info): Remove.
6686 (schedule_block): Call sched_extend_luids rather than sched_init_luids
6688 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
6690 (sched_scan): Remove.
6691 (sched_extend_luids): Renamed from luids_extend_insn and no longer
6692 static. All callers changed.
6693 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
6694 static. All callers changed.
6695 (sched_init_luids): Remove all arguments except the first. All
6696 callers changed. Don't use sched_scan.
6697 (haifa_init_h_i_d): Likewise.
6698 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
6699 manually rather than using sched_init_luids. Likewise with
6700 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
6701 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
6702 rather than sched_init_luids with NULL args.
6703 * sel-sched-ir.c (new_insns): Remove variable.
6704 (sched_scan): New static function, previously in haifa-sched.c. Remove
6705 all arguments but the first two; all callers changed.
6706 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
6707 rather than sched_init_luids.
6708 (sel_init_bbs): Remove second argument. All callers changed.
6709 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
6710 with NULL arguments.
6711 (create_insn_rtx_from_pattern): Likewise.
6712 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
6713 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
6714 (sched_init_insn_luid, sched_extend_luids): Declare.
6715 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
6718 2011-05-27 Richard Guenther <rguenther@suse.de>
6721 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
6722 A CMP B ? (T) true : (T) false for non-integral types T again.
6724 2011-05-27 Jan Hubicka <jh@suse.cz>
6726 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
6727 so 0 means NULL string.
6728 (lto_output_string_with_length): ... here.
6729 (lto_output_string, output_string_cst, output_identifier): Update
6730 handling of NULL strings.
6731 (lto_output_location_bitpack): New function.
6732 (lto_output_location): Use it.
6733 (lto_output_tree_ref): Use output_record_start.
6734 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
6736 * lto-streamer-in.c (string_for_index): Break out from ...; offset
6738 (input_string_internal): ... here;
6739 (input_string_cst, input_identifier, lto_input_string): Update handling
6741 (lto_input_location_bitpack): New function
6742 (lto_input_location): Use it.
6743 (unpack_ts_type_common_value_fields): Pack align & alias in var len
6745 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
6746 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
6747 (bp_pack_value): Sanity check the value range.
6748 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
6750 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
6753 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
6755 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
6756 call_arg_location instructions down the floor.
6758 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
6760 PR rtl-optimization/49154
6761 * ira.c (setup_pressure_classes): Process class without sublcasses
6762 as a candidate for pressure classes.
6764 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
6766 PR rtl-optimization/48575
6767 * genrecog.c (position_type): New enum.
6768 (position): New structure.
6769 (decision): Use position structure instead of a string.
6770 (root_pos, peep2_insn_pos_list): New variables.
6771 (next_position, compare_positions): New functions.
6772 (new_decision): Use position structures instead of strings.
6773 (maybe_both_true): Likewise.
6774 (change_state): Likewise.
6775 (write_tree): Likewise.
6776 (make_insn_sequence): Likewise.
6778 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6780 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
6781 TS_BASE instead of TS_COMMON.
6782 (find_decls_types_r): Check for TS_TYPED structure before looking at
6784 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
6786 (BLOCK_CHAIN): Use new chain field.
6788 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
6790 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
6791 moves expensive on Power7 also.
6793 2011-05-26 Richard Guenther <rguenther@suse.de>
6795 * fold-const.c (fold_unary_loc): Remove bogus code.
6797 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
6799 * tree.h (struct tree_identifier): Inherit from tree_typed, not
6801 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
6802 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
6803 TS_BASE instead of TS_COMMON.
6804 * varasm.c (assemble_name): Remove assert.
6806 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
6808 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
6810 * libgcc-std.ver: Delete file.
6812 2011-05-26 Richard Guenther <rguenther@suse.de>
6814 PR tree-optimization/48702
6815 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
6816 only when we know the base address is within bounds.
6817 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
6818 assume the base address of TARGET_MEM_REFs is in bounds.
6820 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6823 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
6824 declaration in TARGET_SOLARIS.
6826 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
6828 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
6829 The instruction is then expanded explicitly.
6830 (supported_compare): Callable instruction.
6831 (compare): Likewise.
6833 2011-05-26 Jakub Jelinek <jakub@redhat.com>
6836 * gimplify.c (shortcut_cond_r): Don't special case
6837 COND_EXPRs if they have void type on one of their arms.
6839 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
6841 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
6842 to reduce duplication, and to achieve a slightly more logical order
6845 2011-05-26 Jakub Jelinek <jakub@redhat.com>
6847 PR tree-optimization/49161
6848 * tree-vrp.c (struct case_info): New type.
6849 (compare_case_labels): Sort case_info structs instead of
6850 trees, and not primarily by CASE_LABEL uids but by
6851 label_for_block indexes.
6852 (find_switch_asserts): Put case labels into struct case_info
6853 array instead of TREE_VEC, adjust sorting, compare label_for_block
6854 values instead of CASE_LABELs.
6856 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6858 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
6859 ("orndi3_neon"): Likewise.
6860 ("bic<mode>3_neon"): Likewise.
6862 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
6864 PR tree-optimization/49038
6865 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
6866 Ensure at least one epilogue iteration if required by data
6868 * tree-vectorizer.h (struct _loop_vec_info): Add new field
6869 to mark loops that require peeling for gaps.
6870 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
6871 (vect_get_known_peeling_cost): Take peeling for gaps into
6873 (vect_transform_loop): Generate epilogue if required by data
6875 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
6876 loop as requiring an epilogue if there are gaps in the end of
6879 2011-05-25 Ian Lance Taylor <iant@google.com>
6881 * godump.c (go_format_type): Output the first field with a usable
6884 2011-05-25 Ian Lance Taylor <iant@google.com>
6886 * godump.c (go_format_type): Check for invalid type names, pointer
6887 target types, and struct field types.
6889 2011-05-25 Jason Merrill <jason@redhat.com>
6891 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
6893 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
6895 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
6897 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
6899 * config/i386/i386.md (*movqi_extv_1)): Put back
6900 "register_operand" check in "type" calculation.
6901 (*movqi_extzv_2): Likewise.
6903 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
6905 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6907 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
6910 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
6911 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
6912 __divxc3, __divtc3): Wrap definitions in #ifndef.
6914 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
6917 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
6918 "register_operand" check and replace q_regs_operand with
6919 QIreg_operand in "type" calculation.
6920 (*movqi_extv_1): Likewise.
6921 (*movqi_extzv_2_rex64): Likewise.
6922 (*movqi_extzv_2): Likewise.
6924 * config/i386/predicates.md (QIreg_operand): New.
6926 2011-05-25 Richard Guenther <rguenther@suse.de>
6928 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
6929 type-based offset disambiguation, streamline MEM_REF and
6930 TARGET_MEM_REF handling.
6932 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
6934 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
6935 (bdesc_special_args): Add pause intrinsic.
6937 * config/i386/i386.md (UNSPEC_PAUSE): New.
6940 * config/i386/ia32intrin.h (__pause): Likewise.
6942 * doc/extend.texi (X86 Built-in Functions): Add documentation for
6945 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6947 PR tree-optimization/46728
6948 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
6949 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
6951 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
6953 * tree.h (struct tree_exp): Inherit from struct tree_typed.
6954 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
6955 instead of TS_COMMON.
6957 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
6959 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
6960 LIBGCC2_GNU_PREFIX is defined.
6962 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
6963 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
6964 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
6965 __clz_tab): Define using __N.
6966 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
6967 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
6968 * target.def (libfunc_gnu_prefix): New hook.
6969 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
6970 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
6971 * doc/tm.texi: Regenerate.
6972 * system.h (LIBGCC2_GNU_PREFIX): Poison.
6973 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
6975 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
6976 (init_optabs): Likewise for the bswap libfuncs.
6977 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
6979 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
6980 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
6981 * libgcc-std.ver: Remove.
6982 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
6983 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
6985 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
6986 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
6987 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
6988 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
6989 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
6990 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
6991 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
6992 * config/fixed-bit.h (FIXED_OP): Define differently depending on
6993 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
6994 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
6996 2011-05-25 Jan Hubicka <jh@suse.cz>
6998 * lto-streamer-out.c (output_record_start): Use lto_output_enum
6999 (lto_output_tree): Use output_record_start.
7000 * lto-streamer-in.c (input_record_start): Use lto_input_enum
7001 (lto_get_pickled_tree): Use input_record_start.
7002 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
7003 (lto_value_range_error): New function.
7004 * lto-streamer.h (lto_value_range_error): Declare.
7005 (lto_output_int_in_range, lto_input_int_in_range): New functions.
7006 (lto_output_enum, lto_input_enum): New macros.
7008 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
7010 * common.opt (flag_stack_usage_info): New variable.
7011 (-Wstack-usage): New option.
7012 * doc/invoke.texi (Warning options): Document -Wstack-usage.
7013 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
7014 <OPT_fstack_usage>: Likewise.
7015 * toplev.c (output_stack_usage): Handle -Wstack-usage.
7016 * calls.c (expand_call): Test flag_stack_usage_info variable instead
7017 of flag_stack_usage.
7018 (emit_library_call_value_1): Likewise.
7019 * explow.c (allocate_dynamic_stack_space): Likewise.
7020 * function.c (instantiate_virtual_regs ): Likewise.
7021 (prepare_function_start): Likewise.
7022 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
7023 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
7024 * config/arm/arm.c (arm_expand_prologue): Likewise.
7025 (thumb1_expand_prologue): Likewise.
7026 * config/avr/avr.c (expand_prologue): Likewise.
7027 * config/i386/i386.c (ix86_expand_prologue): Likewise.
7028 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
7029 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
7030 * config/mips/mips.c (mips_expand_prologue): Likewise.
7031 * config/pa/pa.c (hppa_expand_prologue): Likewise.
7032 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
7033 * config/s390/s390.c (s390_emit_prologue): Likewise.
7034 * config/sh/sh.c (sh_expand_prologue): Likewise.
7035 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
7036 * config/spu/spu.c (spu_expand_prologue): Likewise.
7038 2011-05-25 Richard Guenther <rguenther@suse.de>
7040 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
7041 (gimple_canonical_types_compatible_p): Likewise.
7043 2011-05-25 Jan Hubicka <jh@suse.cz>
7046 * ipa.c (function_and_variable_visibility): Only add to same
7047 comdat group list if DECL_ONE_ONLY.
7049 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
7051 PR rtl-optimization/49014
7052 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
7054 2011-05-25 Jakub Jelinek <jakub@redhat.com>
7057 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
7059 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7061 PR rtl-optimization/48757
7062 * ira-build.c (loop_with_eh_edge_p): Rename to
7063 loop_with_complex_edge_p, check edges on complexity, make function
7065 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
7068 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7070 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
7071 force flag_ira_share_save_slots to 0.
7073 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7075 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
7076 (vt_initialize): Set PROLOGUE_BB unconditionally.
7077 Add block comment about CFA_BASE_RTX machinery.
7078 Reset FP_CFA_OFFSET to -1 on all invalid paths.
7079 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
7081 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
7084 * c-parser.c (c_parser_objc_class_instance_variables): More robust
7085 parsing of syntax error in ObjC instance variable lists. In
7086 particular, avoid an infinite loop if there is a stray ']'.
7087 Updated error message.
7089 2011-05-24 Ian Lance Taylor <iant@google.com>
7091 * godump.c (go_define): Don't accept a string immediately after
7094 2011-05-24 Ian Lance Taylor <iant@google.com>
7096 * godump.c (struct godump_container): Add invalid_hash field.
7097 (go_format_type): Return false if type is found in invalid_hash.
7098 (go_output_typedef): Add invalid type to invalid_hash.
7099 (go_finish): Create and delete invalid_hash.
7101 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7103 PR tree-optimization/46728
7104 * tree-ssa-math-opts.c (powi_table): New.
7105 (powi_lookup_cost): New.
7107 (powi_as_mults_1): New.
7108 (powi_as_mults): New.
7109 (gimple_expand_builtin_powi): New.
7110 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
7111 (gate_cse_sincos): Remove sincos/cexp restriction.
7113 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7116 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
7118 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
7119 * mips-tdump.c: Likewise.
7121 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
7124 * config/i386/driver-i386.c (host_detect_local_cpu): Always
7125 add -mno-XXX. Handle FMA.
7127 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7129 PR rtl-optimization/48633
7130 * ira-build.c (loop_with_eh_edge_p): New function.
7131 (mark_loops_for_removal): Use it.
7133 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
7135 PR rtl-optimization/48971
7136 * ira.c (setup_pressure_classes): Don't check register move cost
7137 for classes with one registers. Don't add pressure class if there
7138 is a pressure class with the same available hard registers.
7139 Check contains_reg_of_mode. Fix a typo in collecting
7140 temp_hard_regset. Ignore hard registers not belonging to a class.
7142 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
7145 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
7147 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
7148 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7150 PR gcov-profile/48845
7151 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
7153 2011-05-24 Richard Guenther <rguenther@suse.de>
7155 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
7156 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
7157 (gimple_types_compatible_p_1): Adjust.
7158 (iterative_hash_canonical_type): Do not bother about complete vs.
7160 (gimple_canonical_types_compatible_p): Likewise.
7162 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7164 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
7166 2011-05-24 Richard Guenther <rguenther@suse.de>
7169 * gimple.c (gimple_register_canonical_type): Revert
7171 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
7172 does not for a tree for the case where it matters. Cache
7173 pointer-type alias-sets.
7175 2011-05-24 Joseph Myers <joseph@codesourcery.com>
7177 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
7178 (OBJS): Remove options.o, opts-common.o and prefix.o.
7179 (OBJS-libcommon-target): New.
7180 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
7181 (BACKEND): Include libcommon-target.a.
7182 (MOSTLYCLEANFILES): Include libcommon-target.a.
7183 (libcommon-target.a): New.
7184 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
7187 2011-05-23 Joseph Myers <joseph@codesourcery.com>
7189 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
7190 parts of output shared with the driver.
7191 * optc-gen.awk: Don't generate parts of output not shared with the
7193 * opth-gen.awk: Remove GCC_DRIVER conditionals.
7194 * doc/options.texi (SourcerInclude): Mention options-save.c.
7195 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
7196 (OBJS): Add options-save.o.
7197 (options-save.c, options-save.o): New.
7198 (options.o): Update dependencies.
7199 (gcc-options.o): Remove.
7200 (mostlyclean): Remove options-save.c.
7202 2011-05-23 Jakub Jelinek <jakub@redhat.com>
7205 * dbxout.c: Include cgraph.h.
7206 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
7207 and without value expr, return NULL if no varpool node exists for
7208 it or if it is not needed.
7209 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
7212 * c-decl.c (start_decl): Convert expr to void_type_node.
7214 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
7216 PR rtl-optimization/48826
7217 * emit-rtl.c (try_split): When splitting a call that is followed
7218 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
7220 2011-05-23 Jakub Jelinek <jakub@redhat.com>
7222 * cfgexpand.c (expand_debug_expr): For unused non-addressable
7223 parameters passed in memory prefer using DECL_INCOMING_RTL over
7224 the pseudos it will be copied into.
7226 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
7229 * config/i386/i386.c (ix86_option_override_internal): Save the
7230 initial options after checking vzeroupper.
7232 2011-05-23 David Li <davidxl@google.com>
7234 PR tree-optimization/48988
7235 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
7236 Initialize has_valid_pred for each pred chain.
7238 2011-05-23 Richard Guenther <rguenther@suse.de>
7240 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
7241 (iterative_hash_gimple_type): Always hash type names.
7243 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
7245 * c-typeck.c (build_function_call_vec): Tweak call to
7246 check_function_arguments.
7248 2011-05-23 Richard Guenther <rguenther@suse.de>
7250 PR tree-optimization/49115
7251 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
7252 is not necessarily carried out, do not claim it kills the ref.
7253 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7255 2011-05-23 Richard Guenther <rguenther@suse.de>
7258 * builtins.c (fold_builtin_memory_op): Be less restrictive about
7259 what pointer types we accept for folding.
7261 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7263 * gthr-gnat.c: Remove.
7264 * gthr-gnat.h: Remove.
7265 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
7266 * config/t-freebsd (LIB2ADDEH): Likewise.
7267 * config/t-linux (LIB2ADDEH): Likewise.
7268 * config/t-sol2 (LIB2ADDEH): Likewise.
7269 * config/ia64/t-vms (LIB2ADDEH): Likewise.
7270 * configure.ac (target_thread_file): Remove gnat handling.
7271 * configure: Regenerate.
7272 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
7274 2011-05-23 Tristan Gingold <gingold@adacore.com>
7275 Eric Botcazou <ebotcazou@adacore.com>
7277 * gcov.c (create_file_names): If no object directory is specified,
7278 keep the directory of the file.
7280 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7282 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
7283 * configure: Regenerate.
7285 2011-05-23 Jakub Jelinek <jakub@redhat.com>
7288 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
7289 failed and the comparison has a single bit signed type, use
7290 constm1_rtx instead of const1_rtx for true value.
7291 (do_store_flag): If ops->type is single bit signed type, disable
7292 signel bit test optimization and pass -1 instead of 1 as last
7293 parameter to emit_store_flag_force.
7295 2011-05-23 Tom de Vries <tom@codesourcery.com>
7298 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
7300 (infer_loop_bounds_from_undefined): Use new function.
7302 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
7304 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
7305 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
7306 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
7308 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
7310 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7312 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
7313 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
7316 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
7318 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
7320 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7322 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
7323 UNSPEC_MOVE_PIC pattern.
7325 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
7327 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
7328 (sparc-*-rtems*): Likewise.
7329 (sparc64-*-elf*): Likewise.
7330 (sparc64-*-rtems*): Likewise.
7331 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
7332 * config/sparc/t-crtin: New file.
7333 * config/sparc/t-sol2 (crti.o): Delete rule.
7335 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
7336 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
7337 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
7338 (ENDFILE_SPEC): Add crtn.o.
7340 2011-05-22 Tom de Vries <tom@codesourcery.com>
7343 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
7344 CODE_CONTAINS_STRUCT (TS_COMMON).
7346 2011-05-22 Jakub Jelinek <jakub@redhat.com>
7349 * expmed.c (extract_fixed_bit_field): Test whether target can be used
7350 only after deciding which mode to use.
7352 2011-05-22 Tom de Vries <tom@codesourcery.com>
7355 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
7356 for call to get_shiftadd_cost.
7358 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
7361 * config/i386/cpuid.h (bit_MMXEXT): New define.
7363 2011-05-22 Nick Clifton <nickc@redhat.com>
7365 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
7366 initialisation of non-existant args[2] element. Use args[] array
7367 not arg[] array to pass arguments to build_function_type_list.
7369 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
7371 PR tree-optimization/49087
7372 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
7374 2011-05-21 Jason Merrill <jason@redhat.com>
7377 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
7378 static storage duration.
7380 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
7382 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
7385 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
7387 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
7388 false if there are call-saved registers here...
7389 (sparc_can_use_return_insn_p): ...but here instead.
7390 (save_or_restore_regs): Fix thinko.
7391 (sparc_expand_prologue): Use current_function_is_leaf.
7392 (sparc_frame_pointer_required): Likewise.
7394 2011-05-21 Nick Clifton <nickc@redhat.com>
7397 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
7399 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
7401 * gengtype.c (walk_type): Implemented "atomic" GTY option.
7402 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
7404 2011-05-21 Joseph Myers <joseph@codesourcery.com>
7406 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
7407 * optc-gen.awk: Move common code to opt-read.awk.
7408 * opth-gen.awk: Likewise.
7409 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
7411 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
7413 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
7415 2011-05-20 Tom de Vries <tom@codesourcery.com>
7418 * tree-ssa-loop-ivopts.c: Include expmed.h.
7419 (get_shiftadd_cost): New function.
7420 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
7422 2011-05-20 Jakub Jelinek <jakub@redhat.com>
7425 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
7426 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
7428 2011-05-20 Joseph Myers <joseph@codesourcery.com>
7430 * Makefile.in: Update comment referring to $(OBJS-common).
7432 2011-05-20 Ian Lance Taylor <iant@google.com>
7434 * godump.c (go_output_typedef): Put enum constants in the macro
7435 hash table to avoid duplicate Go const definitions.
7437 2011-05-20 Joseph Myers <joseph@codesourcery.com>
7439 * Makefile.in (LIBDEPS): Add libcommon.a.
7441 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
7442 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
7443 pretty-print.o and version.o.
7444 (OBJS-libcommon): New.
7445 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
7446 (BACKEND): Add libcommon.a.
7447 (MOSTLYCLEANFILES): Likewise.
7449 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
7450 (cpp$(exeext)): Likewise.
7451 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
7452 pretty-print.o and input.o.
7453 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
7454 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
7456 (mips-tfile): Don't explicitly use version.o.
7457 (mips-tdump): Likewise.
7458 (gcov.o): Depend on $(DIAGNOSTIC_H).
7459 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
7460 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
7461 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
7462 * gcov-dump.c: Include intl.h and diagnostic.h.
7463 (main): Initialize diagnostics.
7464 * gcov.c: Include diagnostic.h.
7466 (main): Initialize diagnostics.
7467 * lto-wrapper.c: Include diagnostic.h.
7468 (main): Initialize diagnostics.
7470 2011-05-20 Michael Matz <matz@suse.de>
7472 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
7474 2011-05-20 Michael Matz <matz@suse.de>
7475 Richard Guenther <rguenther@suse.de>
7477 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
7478 use lto_streamer_cache_append directly instead of returning a VEC.
7479 (preload_common_node): Remove.
7480 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
7482 (lto_streamer_cache_create): Call lto_preload_common_nodes.
7484 2011-05-20 Richard Guenther <rguenther@suse.de>
7486 PR tree-optimization/49079
7487 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
7488 MEM_REFs correctly for the trailing array access detection.
7489 Special case constants the same way as decls for overall size
7492 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
7494 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
7497 2011-05-20 Jakub Jelinek <jakub@redhat.com>
7499 PR tree-optimization/49073
7500 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
7501 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
7502 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
7504 2011-05-20 Richard Guenther <rguenther@suse.de>
7507 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
7508 of pointer types the same way the middle-end does.
7510 2011-05-20 Richard Guenther <rguenther@suse.de>
7512 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
7513 or pointer-to chains. Delay all fixup to uniquify_nodes.
7515 2011-05-19 Quentin Neill <quentin.neill@amd.com>
7517 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
7518 (fma4_fmaddsub): Likewise
7520 2011-05-19 Jan Hubicka <jh@suse.cz>
7522 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
7523 (GIMPLE_TYPE_PAIR_SIZE): New macro.
7524 (type_pair_cache): New static var.
7525 (lookup_type_pair): Use fixed sized custom hash; make inline.
7526 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
7527 calls of lookup_type_pair.
7528 (print_gimple_types_stats): Remove cache stats.
7529 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
7532 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
7534 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
7535 when TARGET_RDRND is active.
7536 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
7537 Generate dummy SImode target register when target is NULL.
7539 2011-05-19 Joseph Myers <joseph@codesourcery.com>
7541 * config/arm/arm-fpus.def: New.
7542 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
7544 * config/arm/arm-tables.opt: Regenerate.
7545 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
7546 (arm_option_override): Don't decode FPU name to string here.
7547 * config/arm/arm.opt (mfpu=): Use Enum.
7548 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
7549 Update dependencies.
7551 2011-05-19 Joseph Myers <joseph@codesourcery.com>
7553 * collect2.c: Include diagnostic.h.
7554 (fatal_perror, fatal, error, fancy_abort): Remove.
7555 (main): Set progname. Call xmalloc_set_program_name and
7556 diagnostic_initialize.
7557 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
7558 scan_libraries, resolve_lib_name): Call fatal_error instead of
7559 fatal and fatal_perror.
7560 * collect2.h (error, fatal, fatal_perror): Don't declare.
7561 * tlink.c: Include diagnostic-core.h.
7562 (recompile_files): Call fatal_error instead of fatal_perror.
7563 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
7564 pretty-print.o and input.o.
7565 (collect2.o, tlink.o): Update dependencies.
7567 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7569 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
7571 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7574 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
7575 COMDAT group syntax, both SPARC and x86 variants.
7576 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
7577 * configure: Regenerate.
7578 * config/sol2.h (TARGET_SOLARIS): Define.
7579 (PUSHSECTION_FORMAT): Remove.
7580 (SECTION_NAME_FORMAT): Define.
7581 * config/sol2.c: Include hashtab.h.
7582 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
7583 expansion, using SECTION_NAME_FORMAT.
7584 (solaris_comdat_htab): New variable.
7585 (struct comdat_entry): Define.
7586 (comdat_hash): New function.
7587 (comdat_eq): New function.
7588 (solaris_elf_asm_comdat_section): New function.
7589 (solaris_define_comdat_signature): New function.
7590 (solaris_code_end): New function.
7591 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
7592 (solaris_code_end): Declare.
7593 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
7594 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
7596 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
7597 Remove ATTRIBUTE_UNUSED.
7598 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
7599 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
7600 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
7601 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
7602 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
7603 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
7604 (PUSHSECTION_FORMAT): Remove.
7605 (SECTION_NAME_FORMAT): Redefine.
7607 2011-05-19 Kai Tietz <ktietz@redhat.com>
7609 * tree-cfg.c (verify_gimple_assign_binary): Barf on
7610 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
7611 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
7613 2011-05-19 Anatoly Sokolov <aesok@post.ru>
7614 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7616 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
7618 2011-05-19 Richard Guenther <rguenther@suse.de>
7621 * tree-object-size.c (addr_object_size): If the pointed-to
7622 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
7624 2011-05-19 Richard Guenther <rguenther@suse.de>
7626 * gimple.c (gimple_types_compatible_p_1): Compare names of
7627 the types themselves.
7628 (iterative_hash_gimple_type): And hash them that way.
7629 (gimple_register_type_1): If we register a main variant properly
7630 initialize the leader to ourselves.
7632 2011-05-19 Tom de Vries <tom@codesourcery.com>
7635 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
7636 get_loop_invariant_expr_id.
7637 (get_loop_invariant_expr_id): Use get_expr_id.
7638 (parm_decl_cost): New function.
7639 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
7640 Improve bound cost estimation. Use different inv_expr_id for elim and
7643 2011-05-19 Tom de Vries <tom@codesourcery.com>
7646 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
7647 cost_base.cost == 0.
7649 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
7652 * config/i386/sse.md
7653 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
7656 2011-05-18 Jakub Jelinek <jakub@redhat.com>
7658 PR tree-optimization/49039
7659 * tree-vrp.c (extract_range_from_binary_expr): For
7660 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
7661 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
7663 2011-05-18 Tom de Vries <tom@codesourcery.com>
7666 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
7668 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
7670 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
7671 (*tls_global_dynamic_64): Ditto.
7672 (*tls_local_dynamic_base_32_gnu): Ditto.
7673 (*tls_local_dynamic_base_64): Ditto.
7674 (tls_initial_exec_64_sun): Ditto.
7676 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
7678 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
7679 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
7681 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
7682 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
7683 * config/bfin/bfin.c (bfin_cpus): Add bf592.
7684 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
7685 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
7686 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
7687 * config/bfin/elf.h (LIB_SPEC): Add bf592.
7689 2011-05-18 Joseph Myers <joseph@codesourcery.com>
7691 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
7692 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
7693 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
7694 target_thread_pointer, arm_structure_size_boundary, struct
7695 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
7696 struct abi_name, arm_all_abis): Remove.
7697 (arm_option_override) Don't process most enumerated option values here.
7698 Don't process target_fpe_name here. Work with integer not string for
7699 structure size boundary; use separate diagnostics for each case.
7700 * config/arm/arm.h (enum float_abi_type, enum
7701 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
7703 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
7704 arm_structure_size_boundary): Remove.
7705 * config/arm/arm.opt (mabi=): Use Enum and Init.
7706 (arm_abi_type): New Enum and EnumValue entries.
7707 (mfloat-abi=): Use Enum and Init.
7708 (float_abi_type): New Enum and EnumValue entries.
7709 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
7710 (mfp16-format=): Use Enum and Init.
7711 (arm_fp16_format_type): New Enum and EnumValue entries.
7712 (mstructure-size-boundary=): Use UInteger and Init.
7713 (mtp=): Use Enum and Init.
7714 (arm_tp_type): New Enum and EnumValue entries.
7716 2011-05-18 Richard Guenther <rguenther@suse.de>
7718 PR tree-optimization/49018
7719 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
7720 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
7721 gimple_has_side_effects.
7723 2011-05-18 Richard Guenther <rguenther@suse.de>
7725 * gimple.c (gimple_register_type_1): New function, split out from ...
7726 (gimple_register_type): ... here. Avoid infinite recursion.
7728 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
7730 PR tree-optimization/41881
7731 * tree-vectorizer.h (struct _loop_vec_info): Add new field
7732 reduction_chains along with a macro for its access.
7733 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
7734 (destroy_loop_vec_info): Free reduction chains.
7735 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
7736 (vect_is_slp_reduction): New function.
7737 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
7738 (vect_create_epilog_for_reduction): Support SLP reduction chains.
7739 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
7740 definition types for reduction chains.
7741 (vect_supported_load_permutation_p): Don't allow permutations for
7743 (vect_analyze_slp_instance): Support reduction chains.
7744 (vect_analyze_slp): Try to build SLP instance from reduction chains.
7745 (vect_get_constant_vectors): Handle reduction chains.
7746 (vect_schedule_slp_instance): Mark the first statement of the
7747 reduction chain as reduction.
7749 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
7751 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
7752 names for group elements access.
7753 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
7754 reduction chains as well. Remove data reference and interleaving
7755 related words from the fields names.
7756 * tree-vect-loop.c (vect_transform_loop): Use new names for group
7758 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
7759 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
7760 vect_update_interleaving_chain, vect_same_range_drs,
7761 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
7762 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
7763 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
7764 vect_analyze_group_access, vect_analyze_data_ref_access,
7765 vect_create_data_ref_ptr, vect_transform_strided_load,
7766 vect_record_strided_load_vectors): Likewise.
7767 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
7768 vect_model_load_cost, vectorizable_store, vectorizable_load,
7769 vect_remove_stores, new_stmt_vec_info): Likewise.
7770 * tree-vect-slp.c (vect_build_slp_tree,
7771 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
7773 2011-05-18 Richard Guenther <rguenther@suse.de>
7776 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
7777 operand verification.
7778 (verify_gimple_assign_binary): Likewise.
7779 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
7780 to non-1-precision BOOLEAN_TYPEs.
7782 2011-05-18 Tom de Vries <tom@codesourcery.com>
7785 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
7787 2011-05-18 Jakub Jelinek <jakub@redhat.com>
7789 PR tree-optimization/49000
7790 * tree-ssa.c (execute_update_addresses_taken): Call
7791 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
7792 be rewritten and decl has been marked for renaming, reset
7795 2011-05-17 Joseph Myers <joseph@codesourcery.com>
7797 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
7798 enum_opts_set when testing if attributes have set -mfpmath=.
7800 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
7802 * config/mips/mips.c (mips_handle_option): Remove unused variable.
7804 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
7806 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
7808 * tree-inline.c (maybe_inline_call_in_expr): Initialize
7809 id.transform_lang_insert_block with NULL.
7811 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
7813 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
7814 (output_fp_compare): Change args 3 and 4 to bool.
7815 (ix86_expand_call): Change arg 6 to bool.
7816 (ix86_attr_length_immediate_default): Change arg 2 to bool.
7817 (ix86_attr_length_vex_default): Change arg 3 to bool.
7818 * config/i386/i386.md: Update all uses.
7819 * config/i386/i386.c: Ditto.
7820 (ix86_flags_dependent): Change return type to bool.
7822 2011-05-17 Richard Guenther <rguenther@suse.de>
7824 * gimple.c (type_hash_pair_compare): Fix comparison.
7826 2011-05-17 Richard Guenther <rguenther@suse.de>
7828 * gimple.c (iterative_hash_gimple_type): Simplify singleton
7829 case some more, fix final hash value of the non-singleton case.
7831 2011-05-17 Richard Guenther <rguenther@suse.de>
7835 2011-05-16 Richard Guenther <rguenther@suse.de>
7837 * gimple.c (gimple_types_compatible_p_1): Use names of the
7838 type itself, not its main variant.
7839 (iterative_hash_gimple_type): Likewise.
7841 2011-05-17 Richard Guenther <rguenther@suse.de>
7843 * gimple.c (gimple_register_canonical_type): Use the main-variant
7844 leader for computing the canonical type.
7846 2011-05-17 Nick Clifton <nickc@redhat.com>
7848 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
7851 * config/rx/rx.md: Add peephole to remove redundant extensions
7853 (bitset_in_memory): Use rx_restricted_mem_operand.
7854 (bitinvert_in_memory): Likewise.
7855 (bitclr_in_memory): Likewise.
7857 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
7858 Nick Clifton <nickc@redhat.com>
7860 * config/rx/rx.md: Add peepholes to match a register move followed
7861 by a comparison of the moved register. Replace these with an
7862 addition of zero that does both actions in one instruction.
7864 2011-05-17 Jakub Jelinek <jakub@redhat.com>
7867 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
7868 predicate to allow CONST_INT.
7869 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
7871 2011-05-16 Joseph Myers <joseph@codesourcery.com>
7873 * opts-common.c (opt_enum_arg_to_value): New.
7874 * opts.h (opt_enum_arg_to_value): Declare.
7875 * config/i386/i386.opt (fpmath): Remove.
7876 (mfpmath=): Use Enum, Init and Save.
7877 (fpmath_unit): New Enum and EnumValue entries.
7878 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
7879 name for function fpmath state.
7880 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
7881 * config/i386/i386.c: Include diagnostic.h.
7882 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
7883 (ix86_target_string): Take enum fpmath_unit value instead of string.
7884 (ix86_debug_options): Update call to ix86_target_string.
7885 (ix86_option_override_internal): Don't process fpmath strings here.
7886 (x86_function_specific_save, ix86_function_specific_restore):
7887 Don't handle fpmath state specially.
7888 (ix86_function_specific_print): Pass fpmath state to
7889 ix86_target_string instead of printing in this function.
7890 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
7891 Handle enum attributes.
7892 (IX86_ATTR_ENUM, ix86_opt_enum): New.
7893 (ix86_valid_target_attribute_tree): Update option_strings
7894 handling. Handle fpmath as enum option.
7895 (ix86_can_inline_p): Update field names for function fpmath state.
7896 (ix86_expand_builtin): Update call to ix86_target_string.
7897 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
7898 (ix86_fpmath): Remove.
7899 * config/i386/t-i386 (i386.o): Update dependencies.
7901 2011-05-16 Joseph Myers <joseph@codesourcery.com>
7903 PR preprocessor/48677
7904 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
7905 from decoded_options[0], not from itself.
7907 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
7909 * config/i386/constraints.md (z): New constraint.
7910 * config/i386/i386.c (c): New mode attribute.
7911 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
7912 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
7913 constraint for operand 0.
7914 (*call_vzeroupper): Ditto.
7915 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
7916 (*call_rex64_ms_sysv_vzeroupper): Ditto.
7917 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
7918 Use "lzm" constraint for operand 0.
7919 (*call_pop_vzeroupper): Ditto.
7920 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
7921 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
7922 constraint for operand 0.
7923 (*sibcall_vzeroupper): Ditto.
7924 (*sibcall_rex64_ms_sysv): Ditto.
7925 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
7926 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
7927 *sibcall_pop_1. Use "Uz" constraint for operand 0.
7928 (*sibcall_pop_vzeroupper): Ditto.
7929 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
7930 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
7931 mode iterator. Use "<c>zm" constraint for operand 1.
7932 (*call_value_vzeroupper): Ditto.
7933 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
7935 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
7936 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
7937 *call_value_pop_1. Use "lzm" constraint for operand 1.
7938 (*call_value_pop_vzeroupper): Ditto.
7939 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
7940 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
7941 mode iterator. Use "Uz" constraint for operand 1.
7942 (*sibcall_value_vzeroupper): Ditto.
7943 (*sibcall_value_rex64_ms_sysv): Ditto.
7944 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
7945 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
7946 constraint for operand 1.
7947 (*sibcall_value_pop_vzeroupper): Ditto.
7948 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
7949 and "z" constraint for operand 2.
7950 (*tls_global_dynamic_32_gnu): Ditto.
7951 (*tls_local_dynamic_base_32_gnu): Ditto.
7952 (*tls_local_dynamic_base_64): Ditto.
7953 (*tls_local_dynamic_32_once): Ditto.
7954 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
7956 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
7958 2011-05-16 Richard Guenther <rguenther@suse.de>
7960 * gimple.c (gimple_types_compatible_p_1): Use names of the
7961 type itself, not its main variant.
7962 (iterative_hash_gimple_type): Likewise.
7964 2011-05-16 Richard Guenther <rguenther@suse.de>
7966 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
7967 always visit pointer target and function result and argument types.
7969 2011-05-16 Jason Merrill <jason@redhat.com>
7972 * tree-inline.c (copy_statement_list): Put back recursion.
7974 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
7978 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
7979 * config/avr/avr.md ("*ior<mode>qi.byte0",
7980 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
7982 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
7985 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
7986 register is needed for a function argument.
7988 2011-05-16 Richard Guenther <rguenther@suse.de>
7990 * gimple.c (struct type_hash_pair): New type.
7991 (type_hash_pair_compare): New function.
7992 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
7994 2011-05-16 Revital Eres <revital.eres@linaro.org>
7996 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
7998 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
8000 * config/i386/i386.md (floating point move splitters): Fix
8001 usage of standard_80387_constant_p.
8002 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
8004 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
8006 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
8008 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
8010 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
8011 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
8012 (tree_ssa_lim_finalize): Likewise.
8014 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
8016 * config/i386/constraint.md (Yd, Yx): New register constraints.
8017 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
8018 Yd conditional register constraint.
8019 (*movtf_internal): Use standard_sse_constant_opcode.
8020 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
8021 Yx conditional register constraint.
8022 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
8023 Yd conditional register constraint. Use standard_sse_constant_p to
8024 check for valid SSE constants and call standard_sse_constant_opcode to
8026 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
8027 constants and call standard_sse_constant_opcode to output SSE insn.
8028 * config/i386/i386.c (ix86_option_ovverride_internal): Set
8029 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
8030 optimize_size is set.
8031 (standard_sse_constant_opcode): Output conditional AVX insn templates.
8033 2011-05-14 Tobias Burnus <burnus@net-b.de>
8035 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
8037 2011-05-13 Martin Jambor <mjambor@suse.cz>
8039 * ipa-prop.c (ipa_cst_from_jfunc): New function.
8040 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
8041 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
8042 (evaluate_conditions_for_ipcp_clone): Removed.
8043 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
8044 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
8045 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
8047 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
8049 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
8050 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
8051 lieu of MAY_HAVE_DEBUG_STMTS.
8052 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
8053 debug statements if !MAY_HAVE_DEBUG_STMTS.
8055 2011-05-13 Martin Thuresson <martint@google.com>
8057 PR gcov-profile/47793
8058 * libgcov.c (gcov_exit): Support relative profile paths.
8059 * doc/invoke.texi (-fprofile-dir): Update for above change.
8061 2011-05-13 Richard Guenther <rguenther@suse.de>
8063 * gimple.c (gimple_canonical_types_compatible_p): Do not use
8064 type-pair caching, do not compare hashes.
8066 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
8069 * tree-cfg.c (edge_to_cases_cleanup): Return true.
8070 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
8072 2011-05-13 Kai Tietz <ktietz@redhat.com>
8074 * gimplify.c (gimplify_expr): Make sure operand is boolified.
8075 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
8076 compatible type for TRUTH_NOT_EXPR.
8078 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
8080 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
8081 (ix86_hard_regno_mode_ok): Change return value to bool. Use
8082 can_create_pseudo_p ().
8084 2011-05-13 Richard Guenther <rguenther@suse.de>
8087 * gimple.c (iterative_hash_gimple_type): Revert change in
8088 pointer target and function result and argument hashing.
8090 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
8092 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
8093 (*movxf_internal_nointeger): Ditto.
8094 (*movdf_internal_rex64): Ditto.
8095 (*movdf_internal): Ditto.
8096 (*movdf_internal_nointeger): Ditto.
8097 (*movsf_internal): Ditto.
8098 (sincos splitters): Use can_create_pseudo ().
8100 2011-05-13 Joseph Myers <joseph@codesourcery.com>
8102 * config/i386/i386-opts.h: New.
8103 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
8104 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
8105 ix86_section_threshold): Remove.
8106 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
8107 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
8109 (ix86_option_override_internal): Don't decode strings for options
8110 other than -march=, -mtune= and -mfpmath=. Don't allow for
8111 __attribute__ uses in remaining diagnostics for options with
8112 string arguments. Don't check for integer arguments being negative.
8113 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
8114 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
8115 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
8116 ix86_branch_cost, ix86_section_threshold): Remove.
8117 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
8119 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
8121 (masm=): Use Enum and Init.
8122 (asm_dialect): New Enum and EnumValue entries.
8123 (mbranch-cost=): Use UInteger.
8124 (mlarge-data-threshold=): Use UInteger and Init.
8125 (mcmodel=): Use Enum and Init.
8126 (cmodel): New Enum and EnumValue entries.
8127 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
8128 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
8129 mregparm=): Use UInteger.
8130 (mstringop-strategy=): Use Enum and Init.
8131 (stringop_alg): New Enum and EnumValue entries.
8132 (mtls-dialect=): Use Enum and Init.
8133 (tls_dialect): New Enum and EnumValue entries.
8134 (mabi=): Use Enum and Init.
8135 (calling_abi): New Enum and EnumValue entries.
8136 (mveclibabi=): Use Enum and Init.
8137 (ix86_veclibabi): New Enum and EnumValue entries.
8139 2011-05-13 Nick Clifton <nickc@redhat.com>
8141 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
8142 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
8144 2011-05-13 Kai Tietz <ktietz@redhat.com>
8147 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
8148 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
8149 (gimple_boolify): Check for cast for boolean_type_node instead for
8152 2011-05-13 Richard Guenther <rguenther@suse.de>
8154 PR tree-optimization/48172
8155 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
8156 multiplying by number of iterations for equal step.
8157 (vect_create_cond_for_alias_checks): Likewise.
8159 2011-05-13 Andreas Schwab <schwab@redhat.com>
8161 * configure.ac: Use AS_HELP_STRING throughout.
8162 * configure: Regenerate.
8164 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
8166 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
8167 (ix86_emit_restore_regs_using_mov): Likewise.
8168 (ix86_emit_restore_sse_regs_using_mov): Likewise.
8170 2011-05-12 Anatoly Sokolov <aesok@post.ru>
8172 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
8173 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
8174 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
8175 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
8176 RTX_OK_FOR_OLO10_P): ...here.
8177 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
8180 2011-05-12 Kai Tietz <ktietz@redhat.com>
8182 * gimplify.c (gimple_boolify): Re-boolify expression
8183 arguments even if expression type is of kind BOOLEAN_TYPE.
8184 (gimplify_boolean_expr): Removed.
8185 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
8186 and XOR. Additional take care that we keep expression's type.
8187 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
8188 of TRUTH_AND|OR|XOR_EXPR.
8190 2011-05-12 Jakub Jelinek <jakub@redhat.com>
8192 PR tree-optimization/48975
8193 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
8194 on all bbs here and free and clear ifc_bbs at the end.
8196 2011-05-12 Richard Guenther <rguenther@suse.de>
8198 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
8199 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
8200 until after simple checks.
8201 (gimple_types_compatible_p): Likewise.
8202 (iterative_hash_gimple_type): Always hash pointer targets
8203 and function return and argument types.
8204 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
8205 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
8206 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
8207 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
8208 completely in the simple compare section.
8209 (gimple_register_canonical_type): Query the cache again after
8212 2011-05-12 Richard Guenther <rguenther@suse.de>
8214 PR tree-optimization/48172
8215 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
8216 the number of iterations from the segment size calculation.
8217 (vect_create_cond_for_alias_checks): Adjust.
8219 2011-05-12 Jakub Jelinek <jakub@redhat.com>
8222 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
8223 if validate_subreg fails.
8225 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
8227 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
8228 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
8231 2011-05-12 DJ Delorie <dj@redhat.com>
8233 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
8234 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
8235 created builtin into rx_builtins array.
8236 (rx_builtin_decl): New function.
8237 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
8239 2011-05-12 DJ Delorie <dj@redhat.com>
8240 Nick Clifton <nickc@redhat.com>
8242 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
8243 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
8244 (rx_is_legitimate_address): Add pre-decrement and post-increment
8245 addressing in HImode and QImode. Fix test for out of range
8247 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
8248 (rx_align_for_label): Test label before extracting its usage count.
8249 (rx_adjust_insn_lengths): Fix selection of insn codes.
8250 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
8252 2011-05-11 Jason Merrill <jason@redhat.com>
8254 * tree.c (type_hash_canon): Use struct tree_type_non_common.
8256 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
8258 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
8259 reindent the subsequent block.
8261 2011-05-11 Satoru Takabayashi <satorux@google.com>
8262 Paul Pluzhnikov <ppluzhnikov@google.com>
8264 * doc/install.texi (Configuration): Document --with-linker-hash-style.
8265 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
8266 * config.in: Add LINKER_HASH_STYLE.
8267 * configure.ac: Add --with-linker-hash-style.
8268 * configure: Regenerate.
8270 2011-05-11 Richard Guenther <rguenther@suse.de>
8273 * gimple.c (iterative_hash_canonical_type): Fix typo.
8275 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
8277 * config/i386/i386.c (legitimize_tls_address)
8278 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8279 expanders directly for TARGET_GNU2_TLS. Determine pic and
8280 __tls_get_addr symbol reference here. Update call to
8281 gen_tls_global_dynamic_{32,64} for added arguments.
8282 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
8283 expanders directly for TARGET_GNU2_TLS. Determine
8284 __tls_get_addr symbol reference here. Update call to
8285 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
8286 unique UNSPEC REG_EQUIV to libcall block.
8287 (ix86_tls_get_addr): Declare static.
8288 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
8289 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
8290 Do not determine pic and __tls_get_addr symbol reference here. Do not
8291 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
8292 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
8293 (tls_global_dynamic_64): Add operand 2. Do not determine
8294 __tls_get_addr symbol reference here. Do not call
8295 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
8296 (tls_local_dynamic_base64): Ditto for operand 1.
8298 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
8300 * function.c (expand_function_start): Initialize stack_check_probe_note
8301 only if the generic stack checking mechanism is used.
8303 2011-05-11 Richard Guenther <rguenther@suse.de>
8305 PR tree-optimization/15256
8306 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
8307 (A & B) | C, combine (A op CST1) op CST2.
8308 (tree_ssa_forward_propagate_single_use_vars): Only bother to
8309 visit assigns that have uses.
8311 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
8313 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
8314 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
8315 (unpack_ts_type_common_value_fields): ...this. Update comment.
8316 (unpack_value_fields): Adjust for renaming.
8317 (lto_input_ts_type_tree_pointers): Split into...
8318 (lto_input_ts_type_common_tree_pointer): ...this and...
8319 (lto_input_ts_type_non_common_tree_pointers): ...this.
8320 (lto_input_tree_pointers): Adjust for above split.
8321 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
8322 (pack_ts_type_common_value_fields): ...this. Update comment.
8323 (lto_output_ts_type_tree_pointers): Split into...
8324 (lto_output_ts_type_common_tree_pointers): ...this and...
8325 (lto_output_ts_type_non_common_tree_pointers): ...this.
8326 (lto_output_tree_pointers): Adjust for above split.
8327 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
8328 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
8329 * stor-layout.c (vector_type_mode): Adjust location of mode field.
8330 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
8332 (struct tree_type): Split into...
8333 (struct tree_type_common: ...this and...
8334 (struct tree_type_with_lang_specific): ...this and...
8335 (struct tree_type_non_common): ...this. Adjust accessor macros
8337 (TYPE_VALUES_RAW): Define.
8338 (union tree_node): Update for above changes.
8339 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
8341 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
8342 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
8343 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
8344 * treestructu.def (TS_TYPE): Remove.
8345 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
8348 2011-05-11 Jakub Jelinek <jakub@redhat.com>
8351 * tree-ssa.c (reset_debug_uses): New function.
8352 * tree-flow.h (reset_debug_uses): New prototype.
8353 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
8354 * tree-loop-distribution.c (generate_loops_for_partition): Call
8355 reset_debug_uses on the stmts that will be removed. Keep around
8356 all debug stmts, don't count them as bits in partition bitmap.
8357 (generate_builtin): Don't count debug stmts or labels as bits in
8360 2011-05-11 Richard Guenther <rguenther@suse.de>
8362 * gimple.c (gimple_type_hash_1): Merge with ...
8363 (gimple_type_hash): ... this.
8364 (gtc_visit): Remove mode parameter and simplify accordingly.
8365 (gimple_types_compatible_p_1): Likewise.
8366 (gimple_types_compatible_p): Likewise.
8367 (iterative_hash_gimple_type): Likewise.
8369 (gimple_type_eq): Adjust.
8371 2011-05-11 Revital Eres <revital.eres@linaro.org>
8373 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
8374 enters the branch create an anti edge in the opposite direction
8375 to prevent the creation of reg-moves.
8376 * modulo-sched.c: Adjust comment to reflect the fact we are
8377 scheduling closing branch.
8378 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
8379 (stage_count): New field in struct partial_schedule.
8380 (calculate_stage_count): New function.
8381 (normalize_sched_times): Rename to reset_sched_times and handle
8382 incrementing the sched time of the nodes by a constant value
8383 passed as parameter.
8384 (duplicate_insns_of_cycles): Skip closing branch.
8385 (sms_schedule_by_order): Schedule closing branch.
8386 (ps_insn_find_column): Handle closing branch.
8387 (sms_schedule): Call reset_sched_times and adjust the code to
8388 support scheduling of the closing branch.
8389 (ps_insert_empty_row): Update calls to normalize_sched_times
8390 and rotate_partial_schedule functions.
8392 2011-05-11 Richard Guenther <rguenther@suse.de>
8395 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
8397 2011-05-11 Joseph Myers <joseph@codesourcery.com>
8399 * opts.c (finish_options): Move warning settings from process_options.
8400 * toplev.c (process_options): Move warning settings to finish_options.
8402 2011-05-11 Richard Guenther <rguenther@suse.de>
8404 PR tree-optimization/18041
8405 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
8406 (simplify_bitwise_binary): ... this. Handle operand conversions
8407 by applying them to the result instead.
8408 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
8410 2011-05-11 Richard Guenther <rguenther@suse.de>
8412 * gimple.c (gimple_canonical_types_compatible_p): Split out
8413 from gimple_types_compatible_p and friends. Do not recurse
8414 to pointed-to types.
8415 (gimple_canonical_type_eq): Use it.
8416 (iterative_hash_canonical_type): Split out from
8417 iterative_hash_gimple_type and friends. Do not recurse
8418 to pointed-to types.
8419 (gimple_canonical_type_hash): Use it, allocate the hash here.
8421 2011-05-11 Revital Eres <revital.eres@linaro.org>
8423 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
8426 2011-05-11 Revital Eres <revital.eres@linaro.org>
8428 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
8429 instead of PREV_INSN.
8431 2011-05-11 Revital Eres <revital.eres@linaro.org>
8433 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
8434 * loop-doloop.c (doloop_condition_get): Likewise.
8435 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
8437 * config/arm/arm.md (*addsi3_compare0): Remove "*".
8439 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
8441 * tree.def (CASE_LABEL_EXPR): Add an operand.
8442 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
8444 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8446 * c-decl.c (c_override_global_bindings_to_false): Remove.
8447 (global_bindings_p): Don't check
8448 c_override_global_bindings_to_false.
8449 * c-tree.h (c_override_global_bindings_to_false): Remove.
8450 * c-typeck.c (composite_type): Don't set
8451 c_override_global_bindings_to_false.
8453 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
8455 PR target/48857, 48495
8456 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
8458 (VSX_MOVE_MODE): Ditto.
8459 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
8460 VSX vector types. Add V2DImode.
8461 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
8462 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
8463 (MODES_TIEABLE_P): Ditto.
8465 * config/rs6000/rs6000.c (rs6000_emit_move): Use
8466 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
8468 (init_cumulative_args): Ditto.
8469 (rs6000_function_arg_boundary): Ditto.
8470 (rs6000_function_arg_advance_1): Ditto.
8471 (rs6000_function_arg): Ditto.
8472 (rs6000_function_ok_for_sibcall): Ditto.
8473 (emit_frame_save): Ditto.
8474 (rs6000_function_value): Ditto.
8475 (rs6000_libcall_value): Ditto.
8477 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8479 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8480 i386/darwin-lib.h to $libgcc_tm_file.
8481 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
8483 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8485 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
8487 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8489 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
8490 * config/rs6000/rs6000-tables.opt: New file (generated).
8491 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
8492 rs6000/rs6000-tables.opt to extra_options.
8493 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
8494 * config/rs6000/rs6000.c (rs6000_select): Remove.
8495 (processor_target_table): Move contents to rs6000-cpus.def.
8496 (darwin_rs6000_override_options): Check
8497 global_options_set.x_rs6000_cpu_index instead of
8498 rs6000_select[1].string.
8499 (rs6000_option_override_internal): Likewise.
8500 (rs6000_handle_option): Don't assert that global structures are in
8501 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
8502 (rs6000_default_cpu): New variable.
8503 (rs6000_file_start): Set it instead of local default_cpu. Check
8504 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
8505 global_options_set.x_rs6000_tune_index instead of rs6000_select.
8506 (rs6000_darwin_file_start): Check rs6000_default_cpu and
8507 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
8508 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
8509 rs6000_select): Remove.
8510 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
8512 (mcpu=, mtune=): Use Var, Init, Enum and Save.
8513 * config/rs6000/t-rs6000
8514 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
8515 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8516 global_options_set.x_rs6000_cpu_index instead of
8517 rs6000_select[1].string.
8518 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8519 global_options_set.x_rs6000_cpu_index instead of
8520 rs6000_select[1].string.
8522 2011-05-10 Joseph Myers <joseph@codesourcery.com>
8524 * config.gcc (libgcc_tm_file): Define instead of including files
8525 from ../../libgcc/config/ in tm_file.
8526 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
8527 * configure: Regenerate.
8528 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
8529 libgcc_tm.h, cs-libgcc_tm.h): New.
8530 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
8531 (clean): Remove libgcc_tm.h.
8532 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
8533 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
8534 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
8536 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
8539 * config/avr/avr.c (avr_ret_register): Return unsigned int
8541 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
8542 it to avr_libcall_value.
8543 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
8545 (avr_expand_binop_builtin): Ditto.
8546 (avr_expand_unop_builtin): Ditto.
8548 2011-05-10 DJ Delorie <dj@redhat.com>
8550 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
8551 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
8552 * config/rx/rx.c (rx_align_for_label): Add label and
8553 uses_threshold parameters. Do not align when the label is not
8555 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
8557 2011-05-10 Richard Guenther <rguenther@suse.de>
8559 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
8560 a series of conversions and apply foldings similar to what
8562 (tree_ssa_forward_propagate_single_use_vars): Call it.
8564 2011-05-10 Jakub Jelinek <jakub@redhat.com>
8566 PR tree-optimization/48611
8567 PR tree-optimization/48794
8568 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
8569 referenced from RESX or EH_DISPATCH arguments.
8572 * dfp.c (decimal_to_decnumber): Handle conversion from
8573 dconst{1,2,m1,half}.
8575 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8577 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
8578 for !flag_prefer_avx128.
8579 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
8581 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
8583 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
8584 (fold_ternary_loc): Use expr_location_or.
8586 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
8589 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
8590 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
8591 Pmode and mem_mode is not VOIDmode.
8593 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
8595 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
8596 TYPE_QUAL_RESTRICT): Convert to enum.
8598 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8600 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
8601 (const_pow2_1_to_8_operand): Ditto.
8602 (const_pow2_1_to_128_operand): Ditto.
8603 (const_pow2_1_to_32768_operand): Ditto.
8604 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
8605 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
8606 in insn constraint to check integer value of operand 3.
8607 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
8609 (PINSR_MODE): New mode iterator.
8610 (sse2p4_1): New mode attribute.
8611 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
8612 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
8613 iterator. Use const_int_operand instead of
8614 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
8615 exact_log2 in insn constraint to check integer value of operand 3.
8617 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8619 * config/i386/sse.md (blendbits): Remove mode attribute.
8620 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
8621 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
8622 Check integer value of operand 3 in insn constraint.
8624 2011-05-09 Richard Guenther <rguenther@suse.de>
8626 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
8628 (lto_symtab_merge): Likewise. Do not register types here.
8629 (lto_symtab_merge_decls_2): Likewise.
8630 (lto_symtab_merge_decls_1): Likewise.
8631 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
8632 * gimple.c (enum gtc_mode): Declare.
8633 (gimple_types_compatible_p): Make static.
8635 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8637 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
8638 temporary register to match Pmode.
8640 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8642 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
8643 and *vec_concatv4si_1_avx.
8645 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
8647 PR rtl-optimization/48927
8648 * ira-conflicts.c (commutative_constraint_p): Use
8649 recog_data.alternative_enabled_p to disable alternatives where
8650 "enabled" attribute is false.
8651 (get_dup_num): Ditto.
8652 * ira-lives.c (single_reg_class): Ditto.
8653 (ira_implicitly_set_insn_hard_regs): Ditto.
8655 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
8657 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
8658 (dataflow_set_preserve_mem_locs): Likewise.
8660 2011-05-09 Philipp Thomas <pth@suse.de>
8662 * config/mep/mep.c (mep_validate_vliw): Syntax description
8663 should not be translated.
8665 2011-05-09 Joseph Myers <joseph@codesourcery.com>
8667 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
8668 * config/mips/mips-tables.opt: New file (generated).
8669 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
8670 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
8671 MIPS_ARCH_OPTION_NATIVE): Define.
8672 * config/mips/mips.c (mips_cpu_info_table): Move contents to
8674 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
8675 mips_parse_cpu): Remove.
8676 (mips_cpu_info_from_opt, mips_default_arch): New.
8677 (mips_handle_option): Don't assert that global structures are in
8678 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
8679 (mips_option_override): Use new variables and functions to set
8680 state of these options. Use strcmp to check for individual CPU names.
8681 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
8683 * config/mips/mips.opt (march=): Use ToLower and Enum.
8684 (mips): Use ToLower, Enum and Var.
8685 (mtune=): Use ToLower and Enum.
8686 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
8688 2011-05-08 Jan Hubicka <jh@suse.cz>
8690 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
8691 Arrange type pairs to be UID ordered.
8692 (gimple_lookup_type_leader): Make inline.
8694 2011-05-09 Nick Clifton <nickc@redhat.com>
8697 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
8701 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
8704 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
8706 * combine.c (simplify_comparison): Abstract out parts into...
8707 (simplify_compare_const): ... new function.
8708 (try_combine): Generalize parallel arithmetic/compare combining
8709 to call simplify_compare_const() and CANONICALIZE_COMPARE().
8711 2011-05-08 Jan Hubicka <jh@suse.cz>
8713 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
8714 (cgraph_create_virtual_clone): Call hooks once virtual clone
8716 * cgraph.h (cgraph_clone_node): Update prototype.
8717 * ipa-cp.c (ipcp_estimate_growth): Use
8718 estimate_ipcp_clone_size_and_time.
8719 * ipa-inline-transform.c (clone_inlined_nodes): Update.
8720 * lto-cgraph.c (input_node): Update.
8721 * ipa-inline.c (recursive_inlining): Update.
8722 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
8723 (evaluate_conditions_for_known_args): Break out from ...
8724 (evaluate_conditions_for_edge): ... here.
8725 (evaluate_conditions_for_ipcp_clone): New function.
8726 (inline_node_duplication_hook): Update clone summary based
8728 (estimate_callee_size_and_time): Rename to ...
8729 (estimate_node_size_and_time): take NODE instead of EDGE;
8730 take POSSIBLE_TRUTHS as argument.
8731 (estimate_callee_size_and_time): Update.
8732 (estimate_ipcp_clone_size_and_time): New function.
8733 (do_estimate_edge_time): Update.
8735 2011-05-08 Richard Guenther <rguenther@suse.de>
8739 * expmed.c (expand_shift_1): Compute adjusted constant shift
8742 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
8744 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
8746 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
8748 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
8750 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
8752 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
8754 2011-05-07 Jan Hubicka <jh@suse.cz>
8756 * ipa-inline-transform.c (inline_call): Account when program size
8758 * ipa-inline.c (relative_time_benefit): New function.
8759 (edge_badness): Reorganize to be power 2 based; fix thinko when
8760 computing badness for negative growth; update comments to match
8761 reality; better dumps.
8763 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
8765 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
8766 type to bool and adjust comment.
8767 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
8768 (fold_mathfn_compare): Remove calls to global_bindings_p.
8769 (fold_inf_compare): Likewise.
8770 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
8771 * c-tree.h (global_bindings_p): Adjust prototype.
8772 * c-decl.c (global_bindings_p): Return bool and simplify.
8774 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
8776 PR tree-optimization/48837
8777 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
8778 when accumulator transformation is performed.
8780 2011-05-06 Jan Hubicka <jh@suse.cz>
8782 * i386.h (ix86_tune_indices): Add
8783 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
8784 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
8785 * i386.c (initial_ix86_tune_features): Add
8786 X86_SOFTARE_PREFETCHING_BENEFICIAL.
8787 (software_prefetching_beneficial_p): Remove predicate.
8788 (ix86_option_override_internal): Use new macro.
8790 2011-05-06 Jan Hubicka <jh@suse.cz>
8792 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
8794 2011-05-06 Jan Hubicka <jh@suse.cz>
8796 * cgraph.c (cgraph_add_thunk): Create real function node instead
8797 of alias node; finalize it and mark needed/reachale; arrange visibility
8798 to be right and add it into the corresponding same comdat group list.
8799 (dump_cgraph_node): Dump thunks.
8800 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
8801 cgraph_function_with_gimple_body_p,
8802 cgraph_first_function_with_gimple_body,
8803 cgraph_next_function_with_gimple_body): New functions.
8804 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
8806 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
8807 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
8808 * cgraphunit.c (cgraph_finalize_function): Only look into possible
8809 devirtualization when optimizing.
8810 (verify_cgraph_node): Verify thunks.
8811 (cgraph_analyze_function): Analyze thunks.
8812 (cgraph_mark_functions_to_output): Output thunks only in combination
8813 with function they are assigned to.
8814 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
8815 alias into normal node.
8816 (assemble_thunks): New functoin.
8817 (cgraph_expand_function): Use it.
8818 * lto-cgraph.c (lto_output_node): Stream thunks.
8819 (input_overwrite_node): Stream in thunks.
8820 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
8821 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
8822 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
8823 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
8824 (inline_analyze_function): Do not care about thunk jump functions.
8825 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
8826 * ipa-prop.c (ipa_prop_write_jump_functions): Use
8827 cgraph_function_with_gimple_body_p.
8828 * passes.c (do_per_function_toporder): Use
8829 cgraph_function_with_gimple_body_p.
8830 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
8831 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
8832 (function_called_by_processed_nodes_p): Likewise.
8834 2011-05-06 Joseph Myers <joseph@codesourcery.com>
8836 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
8837 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
8839 (mabi=): Replace with separate entries for mabi=altivec,
8840 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
8841 mabi=ieeelongdouble and mabi=ibmlongdouble.
8842 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
8843 check for -mabi=spe without SPE ABI support here.
8844 (rs6000_handle_option): Replace OPT_mabi_ handling with
8845 OPT_mabi_altivec and OPT_mabi_spe handling.
8847 2011-05-06 Cary Coutant <ccoutant@google.com>
8849 * dwarf2out.c (contains_subprogram_definition): New function.
8850 (should_move_die_to_comdat): Call it.
8852 2011-05-06 Jeff Law <law@redhat.com>
8854 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
8855 remove_ctrl_stmt_and_useless_edges.
8856 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
8857 (fixup_template_block, thread_single_edge): Likewise.
8858 (mark_threaded_blocks): Use THREAD_TARGET.
8860 2011-05-06 Alan Modra <amodra@gmail.com>
8863 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
8864 const0_rtx as the arg to the dummy __tls_get_addr libcall.
8866 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
8868 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
8869 constraint modifier to "r".
8871 2011-05-06 Joseph Myers <joseph@codesourcery.com>
8873 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
8874 fall through for OPT_mcmodel_.
8876 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8878 * config/s390/s390.c (s390_asm_trampoline_template): Comment
8880 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
8882 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8885 * config/arm/arm.opt (marm): Document it.
8886 (mthumb): Reject negative variant.
8888 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
8891 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8892 Fix typo in "ccvt" variable name.
8894 2011-05-06 Tristan Gingold <gingold@adacore.com>
8897 * config/vms/vms-ar.c (main): Remove cwd variable.
8899 2011-05-06 Jakub Jelinek <jakub@redhat.com>
8902 * var-tracking.c (prepare_call_arguments): Move else before #endif.
8904 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
8906 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
8907 * gimplify.c (gimplify_switch_expr): Likewise.
8908 * omp-low.c (expand_omp_sections): Likewise.
8909 * tree-eh.c (lower_try_finally_switch): Likewise.
8910 (lower_eh_dispatch): Likewise.
8911 * tree.h (build_case_label): Declare.
8912 * tree.c (build_case_label): Define.
8914 2011-05-05 Jason Merrill <jason@redhat.com>
8917 * tree-inline.c (copy_tree_r): Use copy_statement_list.
8918 (copy_statement_list): Don't recurse.
8919 * stor-layout.c (copy_self_referential_tree_r): Don't allow
8922 2011-05-05 Joseph Myers <joseph@codesourcery.com>
8924 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
8925 through from -mfpu= handling.
8926 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
8928 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
8930 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
8933 2011-05-05 Steve Ellcey <sje@cup.hp.com>
8935 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
8937 (hppa[12]*-*-hpux11*): Ditto.
8938 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
8939 * config/ia64/hpux-unix2003.h: New.
8940 * config/pa/pa-hpux1131.opt: New.
8941 * config/pa/pa-hpux1131.h: New.
8942 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
8943 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
8944 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
8946 2011-05-05 Jakub Jelinek <jakub@redhat.com>
8949 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
8950 instead of mode as 3rd argument to recursive call.
8951 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
8952 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
8954 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
8955 don't give up if mode is Pmode and mem_mode is not VOIDmode.
8956 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
8957 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
8959 2011-05-05 Julian Brown <julian@codesourcery.com>
8961 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
8962 parenthesis in D-register case.
8964 2011-05-05 Joseph Myers <joseph@codesourcery.com>
8966 * opt-functions.awk (var_type_struct): Handle Enum options.
8967 * optc-gen.awk: Don't check range of variables of character type.
8968 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
8969 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
8970 rs6000_sdata_name, rs6000_explicit_options): Remove.
8971 (rs6000_option_override_internal): Check for -malign-power here.
8972 Use global_options_set instead of rs6000_explicit_options.
8973 (rs6000_parse_fpu_option): Remove.
8974 (rs6000_handle_option): Access variables via opts and opts_set
8975 pointers. Use error_at and warning_at. Add fall-through
8976 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
8977 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
8978 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
8979 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
8980 here. Don't use rs6000_parse_fpu_option.
8981 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
8982 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
8983 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
8985 (mspe): Use Var and Save.
8986 (mtraceback=): Use Enum and Var.
8987 (rs6000_traceback_type): New Enum and EnumValue entries.
8988 (mfloat-gprs=): Use Enum, Var and Save.
8989 (rs6000_float_gprs): New Enum and EnumValue entries.
8990 (mlong-double-): use Var and Save.
8991 (msched-costly-dep=, minsert-sched-nops=): Use Var.
8992 (malign-): Use Enum and Var.
8993 (rs6000_alignment_flags): New Enum and EnumValue entries.
8995 (fpu_type_t): New Enum and EnumValue entries.
8996 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
8997 global_options_set instead of rs6000_explicit_options.
8998 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
8999 global_options_set instead of rs6000_explicit_options.
9000 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9001 global_options_set instead of rs6000_explicit_options.
9002 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
9003 global_options_set instead of rs6000_explicit_options.
9004 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
9005 global_options_set instead of rs6000_explicit_options.
9006 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9007 global_options_set instead of rs6000_explicit_options.
9008 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
9010 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9011 global_options_set instead of rs6000_explicit_options.
9012 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
9013 (rs6000_cmodel): New Enum and EnumValue entries.
9014 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
9015 global_options_set instead of rs6000_explicit_options.
9016 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
9017 (mtls-size=): Use Enum and Var.
9018 (rs6000_tls_size): New Enum and EnumValue entries.
9020 2011-05-05 Michael Matz <matz@suse.de>
9022 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
9023 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
9024 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
9025 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
9026 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
9027 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
9028 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
9029 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
9030 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
9031 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
9032 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
9033 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
9034 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
9035 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
9036 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
9037 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
9039 2011-05-05 Richard Guenther <rguenther@suse.de>
9041 * expmed.c (expand_variable_shift): Rename to ...
9042 (expand_shift_1): ... this. Take an expanded shift amount.
9043 For rotates recurse directly not building trees for the shift amount.
9044 (expand_variable_shift): Wrap around expand_shift_1.
9045 (expand_shift): Adjust.
9047 2011-05-05 Jakub Jelinek <jakub@redhat.com>
9049 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
9051 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
9053 * tree.h (get_pending_sizes): Remove prototype.
9054 (put_pending_size): Likewise.
9055 (put_pending_sizes): Likewise.
9056 * stor-layout.c (pending_sizes): Delete.
9057 (get_pending_sizes): Likewise.
9058 (put_pending_size): Likewise.
9059 (put_pending_sizes): Likewise.
9060 (variable_size): Do not call put_pending_size and tidy up.
9061 * function.h (struct function): Remove dont_save_pending_sizes_p.
9062 * lto-streamer-in.c (input_function): Do not stream it.
9063 * lto-streamer-out.c (output_function): Likewise.
9064 * tree-inline.c (initialize_cfun): Do not copy it.
9065 * c-decl.c (store_parm_decls): Do not set it.
9066 * omp-low.c (create_task_copyfn): Likewise.
9067 * tree-optimize.c (tree_rest_of_compilation): Likewise.
9069 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
9071 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
9073 (*movdf_internal): Ditto.
9074 (*movdf_internal_nointeger): Ditto.
9075 (*movsf_internal): Ditto.
9077 2011-05-05 Joseph Myers <joseph@codesourcery.com>
9079 * c-decl.c (finish_decl): Don't call get_pending_sizes.
9080 (grokparm): Add parameter expr. Pass it to grokdeclarator.
9081 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
9082 (c_variable_size): Remove.
9083 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
9084 call put_pending_sizes.
9085 (get_parm_info): Add parameter expr. Use it to set
9086 arg_info->pending_sizes.
9087 (store_parm_decls): Use arg_info->pending_sizes instead or calling
9089 * c-parser.c (c_parser_parms_declarator): Update call to
9090 c_parser_parms_list_declarator.
9091 (c_parser_parms_list_declarator): Take parameter expr. Update
9092 call to push_parm_decl. Update recursive call. Don't call
9093 get_pending_sizes. Update calls to get_parm_info.
9094 (c_parser_objc_method_definition): Update calls to
9095 c_parser_objc_method_decl and objc_start_method_definition.
9096 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
9097 (c_parser_objc_method_decl): Add parameter expr. Update call to
9099 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
9100 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
9101 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
9103 2011-05-05 Michael Hope <michael.hope@linaro.org>
9106 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
9109 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9111 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
9112 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
9113 (spu_output_mi_thunk): New function.
9115 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9117 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
9118 targetm.asm_out.print_operand.
9119 * config/sol2.c: Include target.h.
9121 2011-05-04 Jan Hubicka <jh@suse.cz>
9123 * ipa-inline.c (reset_edge_caches): New function.
9124 (update_caller_keys): Add check_inlinablity_for; do not
9125 reset edge caches; remove now unnecesary loop.
9126 (update_callee_keys): Add comments; reset node_growth_cache of callee.
9127 (update_all_callee_keys): Likewise.
9128 (inline_small_functions): Sanity check cache; update code
9131 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
9133 PR rtl-optimization/47612
9134 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
9135 as the last insn of the sequence to be moved.
9137 2011-05-04 Tobias Burnus <burnus@net-b.de>
9140 * doc/invoke.texi (Ofast): Document that it
9141 enables Fortran's -fno-protect-parens.
9143 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
9145 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
9147 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
9149 * stor-layout.c (variable_size): Do not issue errors.
9151 2011-05-04 Richard Guenther <rguenther@suse.de>
9153 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
9154 for array-ref indices.
9155 (tree_coverage_counter_addr): Likewise.
9156 (build_fn_info_type): Use size_int for index types.
9157 (build_gcov_info): Likewise.
9159 2011-05-04 Richard Guenther <rguenther@suse.de>
9161 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
9163 * c-typeck.c (really_start_incremental_init): Use bitsize_int
9164 for constructor indices.
9165 (push_init_level): Likewise.
9167 2011-05-04 Richard Guenther <rguenther@suse.de>
9169 * explow.c (promote_mode): Move variable declarations before code.
9171 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
9173 * tree.h (build_function_type_array): Declare.
9174 (build_varargs_function_type_array): Declare.
9175 (build_function_type_vec, build_varargs_function_type_vec): Define.
9176 * tree.c (build_function_type_array_1): New function.
9177 (build_function_type_array): New function.
9178 (build_varargs_function_type_array): New function.
9180 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
9182 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
9183 before setting STMT_VINFO_TYPE.
9185 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9187 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
9188 instead of spu_pass_by_reference.
9190 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9192 * calls.c (emit_library_call_value_1): Invoke
9193 promote_function_mode hook on libcall arguments.
9194 * explow.c (promote_function_mode, promote_mode): Handle TYPE
9195 argument being NULL.
9196 * targhooks.c (default_promote_function_mode): Lisewise.
9197 * config/s390/s390.c (s390_promote_function_mode): Likewise.
9198 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
9200 * doc/tm.texi: Document that TYPE argument might be NULL.
9202 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9204 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
9206 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9209 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
9211 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9213 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
9214 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
9216 * mips-tfile.c: ... here.
9217 Don't include coretypes.h, tm.h, filenames.h.
9218 (saber_stop): Remove definition and all calls.
9219 [__SABER__]: Remove.
9220 (__LINE__): Remove default.
9221 (Size_t, Ptrdiff_t): Remove definitions.
9222 Replace by size_t, ptrdiff_t.
9223 [!MIPS_DEBUGGING_INFO]: Remove.
9224 (SHASH_SIZE, THASH_SIZE): Remove defaults.
9225 (progname): Add const.
9227 Replace all uses by static.
9228 (ALIGN_SYMTABLE_OFFSET): Remove default.
9229 * mips-tdump.c: Don't include coretypes.h, tm.h.
9230 Remove !MIPS_IS_STAB guard.
9231 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
9232 $(TM_H), filenames.h dependencies.
9233 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
9235 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9238 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
9239 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
9241 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9244 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
9245 account and save/restore RETS.
9246 (PROFILE_BEFORE_PROLOGUE): Define.
9247 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
9248 the push insn to use predecrement.
9250 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
9253 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
9255 2011-05-04 Nick Clifton <nickc@redhat.com>
9257 * config/mn10300/mn10300.c: Include cfgloop.h.
9259 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
9260 Lcc or a FLcc insn into the instruction stream.
9261 (mn10300_block_contains_call): New function. Returns true if the
9262 given basic block contains a CALL insn.
9263 (mn10300_loop_contains_call_insn): New function. Returns true if
9264 the given loop contains a CALL insn.
9265 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
9266 to use the SETLB and Lcc or FLcc insns.
9267 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
9268 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
9269 * config/mn10300/mn10300.opt (msetlb): New option. Used to
9270 disable the SETLB optimization.
9271 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
9272 __SETLB__ or __NO_SETLB__.
9273 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
9274 (movsf_internal): Handle MDR register.
9275 (cmpsi): Make visible.
9276 (setlb): New pattern.
9278 (FLcc): New pattern.
9280 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
9283 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
9284 for reg<->xmm moves.
9285 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
9286 (vec_concatv2di_rex64_sse): Ditto.
9287 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
9288 (*vec_extractv2di_1_rex64): Ditto.
9291 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
9293 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9295 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
9297 2011-05-04 Richard Guenther <rguenther@suse.de>
9299 * tree.h (int_const_binop): Remove notrunc argument.
9300 * fold-const.c (int_const_binop): Remove notrunc argument. Always
9301 create integer constants that are properly truncated.
9302 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
9303 (const_binop): Remove zero notrunc argument to int_const_binop.
9304 (size_binop_loc): Likewise.
9305 (fold_div_compare): Likewise.
9306 (maybe_canonicalize_comparison_1): Likewise.
9307 (fold_comparison): Likewise.
9308 (fold_binary_loc): Likewise.
9309 (multiple_of_p): Likewise.
9310 * expr.c (store_constructor): Likewise.
9311 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
9312 (maybe_fold_stmt_addition): Likewise.
9313 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
9314 * stor-layout.c (layout_type): Likewise.
9315 * tree-data-ref.c (tree_fold_divides_p): Likewise.
9316 * tree-sra.c (build_ref_for_offset): Likewise.
9317 (build_user_friendly_ref_for_offset): Likewise.
9318 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
9319 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
9320 * tree-ssa-loop-niter.c (inverse): Likewise.
9321 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9322 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
9323 * tree-switch-conversion.c (check_range): Likewise.
9324 (build_constructors): Likewise.
9325 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
9326 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
9327 (extract_range_from_assert): Likewise.
9328 (vrp_int_const_binop): Likewise.
9329 (extract_range_from_binary_expr): Likewise.
9330 (extract_range_from_unary_expr): Likewise.
9331 (check_array_ref): Likewise.
9332 (find_case_label_range): Likewise.
9333 (simplify_div_or_mod_using_ranges): Likewise.
9334 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
9335 comparing case labels for merging.
9337 2011-05-03 Mark Wielaard <mjw@redhat.com>
9339 * dwarf2out.c (debug_str_hash_forced): Removed.
9340 (gen_label_for_indirect_string): Removed.
9341 (get_debug_string_label): Removed.
9342 (AT_string_form): Generate label directly.
9343 (output_indirect_string): Test indirect_string_node for
9344 DW_FORM_strp instead of checking label and refcount.
9345 (prune_indirect_string): Removed.
9346 (prune_unused_types): Don't check debug_str_hash_forced or
9347 call prune_indirect_string.
9349 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
9352 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
9354 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
9358 * combine.c (try_combine): Skip debug insns at m_split tests.
9360 2011-04-26 Mark Wielaard <mjw@redhat.com>
9363 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
9364 when info_section_emitted.
9366 2011-05-03 Joseph Myers <joseph@codesourcery.com>
9368 * config/mips/mips-opts.h: New.
9369 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
9371 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
9372 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
9373 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
9375 * config/mips/mips.h (enum mips_code_readable_setting): Move to
9377 (mips_abi, mips_code_readable): Don't declare.
9378 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
9379 (mabi=): Use Enum and Var.
9380 (mips_abi): New Enum and EnumValue entries.
9381 (mcode-readable=): Use Enum and Var.
9382 (mips_code_readable_setting): New Enum and EnumValue entries.
9383 (mr10k-cache-barrier=): Use Enum and Var.
9384 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
9386 2011-05-03 Jan Hubicka <jh@suse.cz>
9388 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
9389 replace hash by pointer map.
9390 (cgraph_node_set_element_def, cgraph_node_set_element,
9391 const_cgraph_node_set_element, varpool_node_set_element_def,
9392 varpool_node_set_element, const_varpool_node_set_element): Remove.
9393 (free_cgraph_node_set, free_varpool_node_set): New function.
9394 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
9395 * tree-emutls.c: Free varpool node set.
9396 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
9397 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9398 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
9399 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9400 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
9401 Move here from ipa.c; implement using pointer_map
9402 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
9403 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
9404 debug_cgraph_node_set, varpool_node_set_new,
9405 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
9406 dump_varpool_node_set, debug_varpool_node_set):
9407 Move to ipa-uitls.c.
9408 * passes.c (ipa_write_summaries): Update.
9410 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9412 From Mike Frysinger:
9413 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
9414 bf542/bf544/bf547/bf548/bf549.
9416 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
9418 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
9420 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9423 * config/bfin/bfin.md (MOVCC): New mode_macro.
9424 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
9425 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
9426 comments from generated assembly.
9428 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9431 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
9432 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
9433 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
9434 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
9435 * config/bfin/lib1funcs.asm (___muldi3): New function.
9437 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9439 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
9440 build_function_type_list instead of build_function_type.
9441 Rearrange initialization of `args' to do so.
9443 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9445 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
9446 instead of build_function_type.
9448 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9450 * config/rs6000/rs6000.c (spe_init_builtins): Call
9451 build_function_type_list instead of build_function_type.
9452 (paired_init_builtins, altivec_init_builtins): Likewise.
9453 (builtin_function_type): Likewise.
9455 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9457 * config/sh/sh.c (sh_media_init_builtins): Call
9458 build_function_type_list instead of build_function_type.
9460 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9462 * config/sparc/sparc.c (sparc_file_end): Call
9463 build_function_type_list instead of build_function_type.
9465 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9467 * config/alpha/alpha.c (alpha_init_builtins): Call
9468 build_function_type_list instead of build_function_type.
9470 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9472 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
9473 build_function_type_list instead of build_function_type.
9475 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9477 * config/iq2000/i2000.c (iq2000_init_builtins): Call
9478 build_function_type_list instead of build_function_type.
9479 Delete `endlink' variable.
9481 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9483 * config/avr/avr.c (avr_init_builtins): Call
9484 build_function_type_list instead of build_function_type.
9486 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9488 * config/picochip/picochip.c (picochip_init_builtins): Call
9489 build_function_type_list instead of build_function_type.
9490 Delete `endlink' variable.
9492 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
9494 * config/bfin/bfin.c (bfin_init_builtins): Call
9495 build_function_type_list instead of build_function_type.
9497 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9500 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
9501 that's not CONST_INT. Seemingly redundant check is due to PR39768.
9503 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9506 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
9507 libbffastfp overrides libgcc when -mfast-fp.
9509 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9511 Originally from Bernd Schmidt
9512 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
9513 * config/bfin/bfin.c (override_options): Test it and error if
9516 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
9518 Originally From Bernd Schmidt
9519 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
9522 2011-05-03 Jeff Law <law@redhat.com>
9524 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
9525 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
9526 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
9527 than accessing AUX field directly. Free the AUX field before
9529 (thread_block, thread_through_loop_header): Likewise.
9530 (thread_single_edge, mark_threaded_blocks): Likewise.
9531 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
9532 (register_jump_thread): Do not attempt to thread to a NULL edge.
9534 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
9536 * function.c (init_function_start): Call decide_function_section.
9537 * varasm.c (decide_function_section): New function.
9538 (assemble_start_function): When not using
9539 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
9540 or first_function_block_is_cold.
9541 * rtl.h (decide_function_section): Declare.
9543 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
9544 Jakub Jelinek <jakub@redhat.com>
9547 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
9548 only succeed if req_mode is the same as set_mode.
9550 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
9552 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
9553 * genemit.c (gen_exp): Handle RETURN.
9554 * emit-rtl.c (verify_rtx_sharing): Likewise.
9555 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
9556 * rtl.c (copy_rtx): RETURN is shared.
9557 * rtl.h (enum global_rtl_index): Add GR_RETURN.
9559 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
9560 * config/s390/s390.c (s390_emit_epilogue): Likewise.
9561 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
9562 * config/cris/cris.c (cris_expand_return): Likewise.
9563 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
9564 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
9565 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
9566 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
9567 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
9569 * config/v850/v850.c (expand_epilogue): Likewise.
9570 * config/bfin/bfin.c (bfin_expand_call): Likewise.
9571 * config/arm/arm.md (epilogue): Likewise.
9572 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
9573 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
9574 variable to ret_reg.
9576 2011-05-03 Richard Guenther <rguenther@suse.de>
9579 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
9580 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
9581 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9583 2011-05-03 Richard Guenther <rguenther@suse.de>
9585 * c-decl.c (grokdeclarator): Instead of looking at
9586 TREE_OVERFLOW check if the constant fits in the index type.
9588 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9590 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
9591 (vec_store_lanes<mode><mode>): Likewise.
9593 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9595 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
9596 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
9597 convert_optab_index values.
9598 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
9599 * genopinit.c (optabs): Initialize the new optabs.
9600 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
9601 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
9602 (expand_STORE_LANES): New functions.
9603 * tree.h (build_array_type_nelts): Declare.
9604 * tree.c (build_array_type_nelts): New function.
9605 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
9606 (vect_model_load_cost): Likewise.
9607 (vect_store_lanes_supported, vect_load_lanes_supported)
9608 (vect_record_strided_load_vectors): Declare.
9609 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
9610 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
9611 (vect_transform_strided_load): Split out statement recording into...
9612 (vect_record_strided_load_vectors): ...this new function.
9613 * tree-vect-stmts.c (create_vector_array, read_vector_array)
9614 (write_vector_array, create_array_ref): New functions.
9615 (vect_model_store_cost): Add store_lanes_p argument.
9616 (vect_model_load_cost): Add load_lanes_p argument.
9617 (vectorizable_store): Try to use store-lanes functions for
9619 (vectorizable_load): Likewise load-lanes and loads.
9620 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
9621 to vect_model_store_cost.
9622 (vect_build_slp_tree): Likewise vect_model_load_cost.
9624 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
9626 * hooks.h (hook_bool_mode_uhwi_false): Declare.
9627 * hooks.c (hook_bool_mode_uhwi_false): New function.
9628 * target.def (array_mode_supported_p): New hook.
9629 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
9630 * doc/tm.texi: Regenerate.
9631 * stor-layout.c (mode_for_array): New function.
9632 (layout_type): Use it.
9633 * config/arm/arm.c (arm_array_mode_supported_p): New function.
9634 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
9636 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
9639 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
9640 for -fstack-check if the size to allocate is negative.
9642 2011-05-02 Lawrence Crowl <crowl@google.com>
9644 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
9645 (timevar_cond_start): New for starting a timer only when it is not
9647 (timevar_cond_stop): New for stopping a timer when it was not already
9650 * timevar.c (timevar_stop): Enable start/stop timers to start again.
9651 (timevar_cond_start): New as above.
9652 (timevar_cond_stop): New as above.
9654 * timevar.def: Add start/stop timers for compiler phases,
9655 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
9656 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
9657 and TV_PHASE_FINALIZE.
9658 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
9659 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
9660 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
9661 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
9662 Make unused TV_OVERLOAD into a start/stop timer.
9664 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
9665 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
9666 to indicate that they are start/stop timers.
9668 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
9669 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
9670 Move initialization to do_compile.
9671 (do_compile): Add initialization from above.
9672 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
9674 * c-decl.c (c_write_global_declarations): Add start/stop of
9675 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
9677 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
9678 or TV_PARSE_INLINE, as appropriate.
9679 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
9680 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
9682 2011-05-02 Jason Merrill <jason@redhat.com>
9685 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
9687 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
9690 * c-decl.c (finish_decl): Only create a composite if the types are
9693 2011-05-02 Joseph Myers <joseph@codesourcery.com>
9695 * config/fr30/fr30-protos.h (Mmode): Don't define.
9696 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
9697 definition where used.
9698 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
9699 define. Expand definitions where used.
9700 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
9701 Expand definitions where used.
9702 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
9703 rx_function_arg, rx_function_arg_advance,
9704 rx_function_arg_boundary): Expand definitions of those macros.
9705 * config/v850/v850-protos.h (Mmode): Don't define. Expand
9706 definition where used.
9708 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
9710 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
9712 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
9713 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
9714 with *movv2sf_internal_rex64_avx.
9715 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
9716 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
9717 Use %v prefix in insn mnemonic to handle TARGET_AVX.
9718 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
9719 "vex" in "prefix" attribute calculation.
9720 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
9722 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
9725 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
9726 inputs match the output.
9728 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
9731 * config/m68k/m68k.c (m68k_expand_prologue): Set
9732 current_function_static_stack_size.
9734 2011-05-02 Jan Hubicka <jh@suse.cz>
9736 * lto-streamer.c (lto_streamer_cache_insert_1,
9737 lto_streamer_cache_lookup, lto_streamer_cache_create,
9738 lto_streamer_cache_delete): Use pointer map instead of hashtable.
9739 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
9741 2011-05-02 Joseph Myers <joseph@codesourcery.com>
9743 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
9744 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
9745 config/m68k/t-opts: New files.
9746 * config/m68k/m68k-tables.opt: New file (generated).
9747 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
9748 extra_options and m68k/t-opts to tmake_file.
9749 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
9750 (all_isas): Initialize using m68k-isas.def.
9751 (all_microarchs): Initialize using m68k-microarchs.def.
9752 (m68k_find_selection): Remove.
9753 (m68k_handle_option): Don't assert that global structures are in
9754 use. Use error_at. Access variables via opts pointer. Don't
9755 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
9756 directly for -m68020-40 and -m68020-60.
9757 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
9758 m68k_tune_entry here.
9759 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
9761 (m68k_library_id_string): Remove declaration.
9762 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
9763 (m68k_library_id_string): New Variable.
9764 (march=, mcpu=, mtune=): Use Enum and Var.
9766 2011-05-02 Richard Guenther <rguenther@suse.de>
9768 * varasm.c (output_constructor_regular_field): Compute zero-based
9769 index with double-ints. Make sure to ICE instead of producing
9771 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
9772 in asserts. Properly use a signed type.
9774 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
9776 * config/i386/sse.md (V): New mode iterator.
9777 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
9779 (V_256): Rename from AVX256MODE.
9780 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
9781 condition to all users.
9783 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
9784 condition to all users.
9785 (VF_128): Make V4SF mode unconditional.
9786 (VF_256): Rename from AVX256MODEF2P.
9787 (VI4F_128): Rename from SSEMODE4S.
9788 (VI8F_128): Rename from SSEMODE2D.
9789 (VI4F_256): Rename from AVX256MODE8P.
9790 (VI8F_256): Rename from AVX256MODE4P.
9791 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
9792 (ssescalarmodesuffix): Remove SF and DF modes.
9793 (SSEMODE124): Remove.
9794 (SSEMODE1248): Ditto.
9795 (SSEMODEF2P): Ditto.
9796 (AVXMODEF2P): Ditto.
9797 (AVXMODEFDP): Ditto.
9798 (AVXMODEFSP): Ditto.
9799 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
9801 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
9803 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
9804 xop_pcmov_<mode>256. Use V mode iterator.
9806 Adjust RTX patterns globally for renamed mode attributes.
9808 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9810 * haifa-sched.c (sched_emit_insn): Emit insn before first
9811 non-scheduled insn. Inform back-end about new insn. Add
9812 new insn to scheduled_insns list.
9814 2011-05-02 Richard Guenther <rguenther@suse.de>
9816 PR tree-optimization/48822
9817 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
9818 (process_scc): Indicate which iteration we start.
9820 2011-05-02 Jan Hubicka <jh@suse.cz>
9822 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
9823 (lto_section_overrun): New.
9824 * lto-section-out.c (append_block): Rename to ...
9825 (lto_append_block): ... this one; export.
9826 (lto_output_1_stream): Move lto lto-streamer.h
9827 (lto_output_data_stream): Update.
9828 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
9829 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
9832 2011-05-02 Richard Guenther <rguenther@suse.de>
9834 * tree.c (tree_code_counts): New global array.
9835 (record_node_allocation_statistics): Count individual tree codes.
9836 (dump_tree_statistics): Dump individual code stats.
9838 2011-05-01 Jan Hubicka <jh@suse.cz>
9840 * ipa-inline.c (caller_growth_limits): Fix thinko when
9841 looking for largest stack frame.
9842 * ipa-inline.h (dump_inline_summary): Declare.
9843 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
9845 (dump_inline_summary): Export.
9846 (debug_inline_summary): Declare as DEBUG_FUNCTION.
9848 2011-05-01 Anatoly Sokolov <aesok@post.ru>
9850 * reginfo.c (memory_move_cost): Change rclass argument type form
9851 'enum reg_class' to reg_class_t.
9852 * reload.h (memory_move_cost): Update prototype.
9853 * postreload.c reload_cse_simplify_set): Change type dclass var to
9855 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
9857 (ira_allocate_and_set_costs): Change aclass argument type form
9858 'enum reg_class' to reg_class_t.
9859 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
9860 Change aclass argument type to reg_class_t.
9861 (update_conflict_hard_reg_costs): Change type aclass and pref vars
9863 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
9864 memory_move_cost call.
9866 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
9867 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
9868 Change type tmp var to reg_class_t.
9870 2011-04-30 Jan Hubicka <jh@suse.cz>
9872 * ipa-inline.c (can_inline_edge_p): Disregard limits when
9873 inlining into function with flatten attribute.
9874 (want_inline_small_function_p): Be more realistic about inlining
9875 cold calls where callee size grows.
9877 2011-04-30 Jan Hubicka <jh@suse.cz>
9879 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
9882 2011-04-30 Anatoly Sokolov <aesok@post.ru>
9884 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
9885 PRINT_OPERAND_PUNCT_VALID_P): Remove.
9886 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
9887 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
9888 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9889 (print_operand): Rename to...
9890 (sparc_print_operand): ...this. Make static. Adjust
9891 sparc_print_operand function call.
9892 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
9895 2011-04-30 Jan Hubicka <jh@suse.cz>
9898 * ipa-inline.c (early_inliner): Disable when doing late
9899 addition of function.
9901 2011-04-30 Jakub Jelinek <jakub@redhat.com>
9903 * dwarf2out.c (get_address_mode): New inline.
9904 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
9905 if not dwarf_strict emit
9906 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
9907 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
9908 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
9909 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
9910 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
9911 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
9912 mem_loc_descriptor callers.
9913 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9914 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
9915 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
9916 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
9917 (base_types): New variable.
9918 (get_base_type_offset, calc_base_type_die_sizes,
9919 base_type_for_mode, mark_base_types, base_type_cmp,
9920 move_marked_base_types): New functions.
9921 (calc_die_sizes): Assert that die_offset is 0 or equal to
9923 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
9924 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
9925 callers. If not dwarf_strict, call mem_loc_descriptor even for
9926 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
9927 (gen_subprogram_die): Don't give up on call site parameters
9928 with non-integral or large integral modes. Adjust
9929 mem_loc_descriptor callers.
9930 (prune_unused_types): Call prune_unused_types_mark on base_types
9932 (resolve_addr): Call mark_base_types.
9933 (dwarf2out_finish): Call move_marked_base_types.
9935 PR tree-optimization/48809
9936 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
9938 (gen_inbound_check): Don't compute index_expr - range_min in utype
9939 again, instead reuse SSA_NAME initialized in build_arrays.
9940 Remove two useless gsi_for_stmt calls.
9942 2011-04-29 Jeff Law <law@redhat.com>
9944 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
9946 2011-04-29 Martin Jambor <mjambor@suse.cz>
9948 * cgraph.h (cgraph_postorder): Remove declaration.
9949 * ipa-utils.h (ipa_free_postorder_info): Declare.
9950 (ipa_reverse_postorder): Likewise.
9951 * cgraphunit.c: Include ipa-utils.h.
9952 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
9953 * ipa-inline.c: Include ipa-utils.h.
9954 (ipa_inline): Update call to ipa_reverse_postorder.
9955 * ipa-pure-const.c (propagate_pure_const): Update call to
9956 ipa_reduced_postorder and ipa_print_order. Call
9957 ipa_free_postorder_info to clean up.
9958 (propagate_nothrow): Likewise.
9959 * ipa-reference.c (propagate): Removed a useless call to
9960 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
9961 and ipa_print_order. Call ipa_free_postorder_info to clean up.
9962 * ipa.c: Include ipa-utils.h.
9963 (ipa_profile): Update call to ipa_reverse_postorder.
9964 (cgraph_postorder): Moved to...
9965 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
9966 (ipa_utils_print_order): Renamed to ipa_print_order.
9967 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
9969 (ipa_free_postorder_info): New function.
9970 * passes.c: Include ipa-utils.h.
9971 (do_per_function_toporder): Update call to ipa_reverse_postorder.
9972 (ipa_write_summaries): Likewise.
9973 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
9974 (cgraphunit.o): Likewise.
9976 (ipa-inline.o): Likewise.
9978 2011-04-29 Jan Hubicka <jh@suse.cz>
9980 * gcc.dg/tree-ssa/inline-10.c: New testcase.
9981 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
9982 * ipa-inline.h (clause_t): Turn into unsigned int.
9983 * ipa-inline-analysis.c (add_clause): Do more simplification.
9984 (and_predicates): Shortcut more cases.
9985 (predicates_equal_p): Move forward; check that clauses are properly
9987 (or_predicates): Shortcut more cases.
9988 (edge_execution_predicate): Rewrite as...
9989 (set_cond_stmt_execution_predicate): ... this function; handle
9990 __builtin_constant_p.
9991 (set_switch_stmt_execution_predicate): New .
9992 (compute_bb_predicates): New.
9993 (will_be_nonconstant_predicate): Update TODO.
9994 (estimate_function_body_sizes): Use compute_bb_predicates
9995 and free them later, always try to estimate if stmt is constant.
9996 (estimate_time_after_inlining, estimate_size_after_inlining):
9997 Gracefully handle optimized out edges.
9998 (read_predicate): Fix off by one error.
10000 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
10002 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
10004 2011-04-27 Xinliang David Li <davidxl@google.com>
10006 * tree-profile.c (init_ic_make_global_vars): Set
10007 tls attribute on ic vars.
10008 * coverage.c (coverage_end_function): Initialize
10009 function_list with zero.
10011 2011-04-29 Richard Guenther <rguenther@suse.de>
10013 * builtins.c (fold_builtin_classify_type): Use integer_type_node
10014 for the type of the result.
10015 (fold_builtin_isascii): Likewise.
10016 (fold_builtin_toascii): Use integer_type_node where appropriate.
10017 (fold_builtin_logb): Likewise.
10018 (fold_builtin_frexp): Likewise.
10019 (fold_builtin_strstr): Likewise.
10020 (fold_builtin_strpbrk): Likewise.
10021 (fold_builtin_fputs): Likewise.
10022 (fold_builtin_sprintf): Likewise.
10023 (fold_builtin_snprintf): Likewise.
10024 (fold_builtin_printf): Likewise.
10025 (do_mpfr_remquo): Use a proper type for the assigned constant.
10026 (do_mpfr_lgamma_r): Likewise.
10027 * dwarf2out.c (resolve_one_addr): Use size_int.
10028 * except.c (init_eh): Likewise.
10029 (assign_filter_values): Use integer_type_node for filter values.
10030 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
10032 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
10033 for EH region numbers.
10034 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
10035 for the shift amount.
10037 2011-04-29 Richard Guenther <rguenther@suse.de>
10039 * expr.h (expand_shift): Rename to ...
10040 (expand_variable_shift): ... this.
10041 (expand_shift): Take a constant shift amount.
10042 * expmed.c (expand_shift): Rename to ...
10043 (expand_variable_shift): ... this.
10044 (expand_shift): New wrapper around expand_variable_shift.
10045 * expr.c (convert_move, emit_group_load_1, emit_group_store,
10046 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
10047 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
10048 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
10049 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
10050 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
10051 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
10052 emit_store_flag_1, emit_store_flag): Likewise.
10053 * builtins.c (expand_builtin_signbit): Likewise.
10054 * calls.c (load_register_parameters): Likewise.
10055 * function.c (assign_parm_setup_block): Likewise.
10056 * lower-subreg.c (resolve_shift_zext): Likewise.
10057 * optabs.c (widen_bswap, expand_abs_nojump,
10058 expand_one_cmpl_abs_nojump, expand_float): Likewise.
10059 * spu/spu.c (spu_expand_extv): Likewise.
10060 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
10062 2011-04-29 Richard Guenther <rguenther@suse.de>
10064 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
10065 for the remapped region number.
10066 * predict.c (build_predict_expr): Use integer_type_node for the
10068 * fold-const.c (fold_binary_loc): Use integer_type_node for
10069 the shift amount. Use a proper type for the PLUS_EXPR operand.
10071 2011-04-29 Michael Matz <matz@suse.de>
10073 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
10074 other trees that just builtins.
10075 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
10077 2011-04-29 Richard Guenther <rguenther@suse.de>
10079 * tree-nested.c (get_trampoline_type): Use size_int.
10080 (get_nl_goto_field): Likewise.
10081 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
10083 (lower_eh_constructs_2): Likewise.
10084 (lower_resx): Likewise.
10085 (lower_eh_dispatch): Likewise.
10086 * tree-mudflap.c (mf_build_string): Use size_int.
10087 (mudflap_register_call): Use integer_type_node for the flag.
10088 (mudflap_enqueue_constant): Use size_int.
10089 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
10090 instead of rebuilding it.
10092 2011-04-29 Richard Guenther <rguenther@suse.de>
10094 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
10095 Handle OBJ_TYPE_REF.
10096 (find_func_aliases_for_call): Use it more consistently.
10098 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
10100 * haifa-sched.c (last_nondebug_scheduled_insn): New.
10101 (rank_for_schedule): Use it.
10102 (schedule_block): Set it.
10104 2011-04-28 David Li <davidxl@google.com>
10106 * tree.c (crc32_string): Use crc32_byte.
10107 (crc32_byte): New function.
10108 * tree.h (crc32_byte): New function.
10109 * gcov.c (read_graph_file): Handle new cfg_cksum.
10110 (read_count_file): Ditto.
10111 * profile.c (instrument_values): Ditto.
10112 (get_exec_counts): Ditto.
10113 (read_profile_edge_counts): Ditto.
10114 (compute_branch_probabilities): Ditto.
10115 (compute_value_histograms): Ditto.
10116 (branch_prob): Ditto.
10117 (end_branch_prob): Ditto.
10118 * coverage.c (read_counts_file): Ditto.
10119 (get_coverage_counts): Ditto.
10120 (tree_coverage_counter_addr): Ditto.
10121 (coverage_checksum_string): Ditto.
10122 (coverage_begin_output): Ditto.
10123 (coverage_end_function): Ditto.
10124 (build_fn_info_type): Ditto.
10125 (build_fn_info_value): Ditto.
10126 * libgcov.c (gcov_exit): Ditto.
10127 * gcov-dump.c (tag_function): Ditto.
10128 (compute_checksum): Remove.
10130 2011-04-29 Alan Modra <amodra@gmail.com>
10132 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10133 unspec plus offset. Tidy macho code.
10135 2011-04-29 Martin Jambor <mjambor@suse.cz>
10137 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
10138 node instead of a decl. Update all callers.
10139 * cgraph.h: Update declaration.
10141 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
10143 PR tree-optimization/48765
10144 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
10145 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
10146 to indicate if loop aware SLP is being used. Scan the statements
10147 and update the vectorization factor according to the type of
10148 vectorization before statement analysis.
10149 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
10150 pass it to vect_analyze_loop_operations.
10151 (vectorizable_reduction): Set number of copies to 1 in case of pure
10153 * tree-vect-stmts.c (vectorizable_conversion,
10154 vectorizable_assignment, vectorizable_shift,
10155 vectorizable_operation, vectorizable_type_demotion,
10156 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
10158 (vectorizable_condition): Move the check that it is not SLP
10159 vectorization before the number of copies check.
10160 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
10161 to vectorize the loop using SLP.
10163 2011-04-28 Jakub Jelinek <jakub@redhat.com>
10165 PR middle-end/48597
10166 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
10169 2011-04-28 Joseph Myers <joseph@codesourcery.com>
10171 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
10172 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
10173 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
10174 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
10175 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
10177 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
10178 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10179 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10180 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10181 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
10182 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
10184 * config/i386/linux.h (REG_NAME): Don't define.
10185 * config/i386/linux64.h (REG_NAME): Don't define.
10186 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
10187 Undefine before defining.
10189 2011-04-28 Jan Hubicka <jh@suse.cz>
10191 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
10192 nonconstant_names array.
10193 (estimate_function_body_sizes): Build nonconstant_names array; handle
10194 BUILT_IN_CONSTANT_P.
10196 2011-04-28 Richard Guenther <rguenther@suse.de>
10200 2011-04-28 Richard Guenther <rguenther@suse.de>
10202 * tree-ssa-structalias.c (solve_constraints): Build succ graph
10203 as late as possible.
10205 2011-04-28 Richard Guenther <rguenther@suse.de>
10207 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
10208 (debug_constraint): Do it here.
10209 (dump_constraints): And here.
10210 (rewrite_constraints): And here.
10211 (dump_constraint_edge): Remove.
10212 (dump_constraint_graph): Rewrite to produce DOT output.
10213 (solve_constraints): Build succ graph as late as possible.
10214 Dump constraint graphs before and after solving.
10216 2011-04-28 Richard Guenther <rguenther@suse.de>
10218 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10219 New function split out from ...
10220 (find_func_aliases): ... here. Call it.
10221 (find_func_aliases_for_call): Likewise.
10223 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
10225 * internal-fn.h (internal_fn_name_array): Declare.
10226 (internal_fn_flags_array): Likewise.
10228 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
10230 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
10231 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
10233 (ssemodefsuffix): Remove.
10234 (ssevecmodesuffix): New mode attribute.
10235 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
10236 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
10237 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
10238 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
10239 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
10240 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
10241 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
10242 ssemodesuffix mode attribute.
10243 (float splitters): Use ssevecmodesuffix mode attribute.
10244 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
10245 (sseinsmode): Rename from avxvecmode.
10246 (avxsizesuffix): Rename from avxmodesuffix.
10247 (sseintvecmode): Rename from avxpermvecmode.
10248 (ssedoublevecmode): Rename from ssedoublesizemode.
10249 (ssehalfvecmode): Rename from avxhalfvecmode.
10250 (ssescalarmode): Rename from avxscalarmode.
10251 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
10252 templates for ssemodesuffix mode attribute.
10253 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
10256 Adjust RTX patterns globally for renamed mode attributes.
10258 2011-04-27 Jan Hubcika <jh@suse.cz>
10260 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
10261 * ipa-inline-analysis.c: Include alloc-pool.h.
10262 (edge_predicate_pool): New.
10263 (trye_predicate_p): New function
10264 (false_predicate_p): New function.
10265 (add_clause): Sanity check that false clauses are "optimized";
10266 never add clauses to predicate that is already known to be false.
10267 (and_predicate): Use flase_predicate_p.
10268 (evaulate_predicate): Rename to ...
10269 (evaluate_predicate): ... this one; update all callers; assert
10270 that false is not listed among possible truths.
10271 (dump_predicate): Use true_predicate_p.
10272 (account_size_time): Use false_predicate_p.
10273 (evaulate_conditions_for_edge): Rename to ...
10274 (evaluate_conditions_for_edge) ... this one.
10275 (edge_set_predicate): New function.
10276 (inline_edge_duplication_hook): Duplicate edge predicates.
10277 (inline_edge_removal_hook): Free edge predicates.
10278 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
10279 (dump_inline_summary): Update.
10280 (estimate_function_body_sizes): Set edge predicates.
10281 (estimate_calls_size_and_time): Handle predicates.
10282 (estimate_callee_size_and_time): Update.
10283 (remap_predicate): Add toplev_predicate; update comment.
10284 (remap_edge_predicates): New function.
10285 (inline_merge_summary): Compute toplev predicate; update.
10286 (read_predicate): New function.
10287 (read_inline_edge_summary): Use it.
10288 (inline_read_section): Likewise.
10289 (write_predicate): New function.
10290 (write_inline_edge_summary): Use it.
10291 (inline_write_summary): Likewise.
10292 (inline_free_summary): Free alloc pool and edge summary vec.
10294 2011-04-27 Richard Guenther <rguenther@suse.de>
10296 * tree-ssa-structalias.c (changed_count): Remove.
10297 (changed): Use a bitmap.
10298 (unify_nodes): Adjust.
10299 (do_sd_constraint): Likewise.
10300 (do_ds_constraint): Likewise.
10301 (do_complex_constraint): Likewise.
10302 (solve_graph): Likewise.
10304 2011-04-27 Jan Hubicka <jh@suse.cz>
10306 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
10308 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
10310 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
10311 (avx_vperm2f128_*_operand): Ditto.
10312 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
10313 Use avx_vpermilp_parallel in insn condition.
10314 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
10315 Use avx_vperm2f128_parallel in insn condition.
10317 2011-04-27 Richard Guenther <rguenther@suse.de>
10319 * Makefile.in (tree-ssa-structalias.o): Remove
10320 gt-tree-ssa-structalias.h dependency.
10321 (GTFILES): Remove tree-ssa-structalias.c.
10322 * tree.c (allocate_decl_uid): New function.
10323 (make_node_stat): Use it.
10324 (copy_node_stat): Likewise.
10325 * tree.h (allocate_decl_uid): Declare.
10326 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
10327 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
10328 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
10329 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
10330 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
10331 (struct heapvar_map): Likewise.
10332 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
10333 heapvar_insert): Likewise.
10334 (make_heapvar_for): Rename to ...
10335 (make_heapvar): ... this. Simplify.
10336 (fake_var_decl_obstack): New global var.
10337 (build_fake_var_decl): New function.
10338 (make_constraint_from_heapvar): Adjust.
10339 (handle_lhs_call): Likewise.
10340 (create_function_info_for): Likewise.
10341 (intra_create_variable_infos): Likewise.
10342 (init_alias_vars): Allocate fake_var_decl_obstack.
10343 (init_alias_heapvars, delete_alias_heapvars): Remove.
10344 (compute_points_to_sets): Do not call init_alias_heapvars.
10345 (ipa_pta_execute): Likewise.
10346 (delete_points_to_sets): Free fake_var_decl_obstack.
10348 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10350 * config/spu/divmovti4.c (union qword_UTItype): New data type.
10351 (si_from_UTItype, si_to_UTItype): New functions.
10352 (__udivmodti4): Use them to implement type-punning.
10353 * config/spu/multi3.c (union qword_TItype): New data type.
10354 (si_from_TItype, si_to_TItype): New functions.
10355 (__multi3): Use them to implement type-punning.
10357 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10359 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
10361 2011-04-27 Jan Hubicka <jh@suse.cz>
10363 * ipa-prop.c (function_insertion_hook_holder): New holder.
10364 (ipa_add_new_function): New function.
10365 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
10366 Register/deregister holder.
10368 2011-04-27 Richard Guenther <rguenther@suse.de>
10370 PR tree-optimization/48772
10371 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
10373 2011-04-27 Richard Guenther <rguenther@suse.de>
10375 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
10376 TARGET_MEM_REF handling.
10378 2011-04-27 Nick Clifton <nickc@redhat.com>
10380 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
10381 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
10382 (REG_CLASS_NAMES): Likewise.
10383 (REG_CLASS_CONTENTS): Likewise.
10384 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
10385 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
10386 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
10387 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
10388 (EVEN_REGS): New macro. Alias for QUAD_REGS.
10389 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
10390 duplicate register classes.
10391 (frv_class_likely_spilled_p): Likewise.
10392 (frv_register_move_cost): Likewise.
10394 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
10395 end of the regno_reg_class array.
10397 2011-04-27 Jakub Jelinek <jakub@redhat.com>
10400 * c-typeck.c (build_binary_op): Don't wrap arguments if
10401 int_operands is true.
10403 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
10406 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
10407 targetm.calls.must_pass_in_stack for void type.
10409 2011-04-26 Jan Hubicka <jh@suse.cz>
10411 * cgraphbuild.c (build_cgraph_edges): Update call
10412 of cgraph_create_edge and cgraph_create_indirect_edge.
10413 * cgraph.c (cgraph_create_edge_including_clones,
10414 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
10415 cgraph_update_edges_for_call_stmt_node): Do not take nest
10416 argument; do not initialize call_stmt_size/time.
10417 (dump_cgraph_node): Do not dump nest.
10418 (cgraph_clone_edge): Do not take loop_nest argument;
10419 do not propagate it; do not clone call_stmt_size/time.
10420 (cgraph_clone_node): Likewise.
10421 (cgraph_create_virtual_clone): Update.
10422 * cgraph.h (struct cgraph_edge): Remove
10423 call_stmt_size/call_stmt_time/loop_nest.
10424 (cgraph_create_edge, cgraph_create_indirect_edge,
10425 cgraph_create_edge_including_clones, cgraph_clone_node): Update
10427 * tree-emutls.c (gen_emutls_addr): Update.
10428 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
10429 loop_nest; handle indirect calls, too.
10430 (clone_inlined_nodes): Do not care about updating inline summaries.
10431 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
10432 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
10433 stream call_stmt_size/call_stmt_time/loop_nest.
10434 * ipa-inline.c (edge_badness): Update.
10435 (ipa_inline): dump summaries after inlining.
10436 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
10438 (inline_edge_summary): New function.
10439 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
10440 (inline_edge_removal_hook): Handle edge summaries.
10441 (inline_edge_duplication_hook): New hook.
10442 (inline_summary_alloc): Alloc hooks.
10443 (initialize_growth_caches): Do not register removal hooks.
10444 (free_growth_caches); Do not free removal hook.
10445 (dump_inline_edge_summary): New function.
10446 (dump_inline_summary): Use it.
10447 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
10448 (inline_update_callee_summaries): New function.
10449 (inline_merge_summary): Use it.
10450 (do_estimate_edge_time, do_estimate_edge_growth): Update.
10451 (read_inline_edge_summary): New function.
10452 (inline_read_section): Use it.
10453 (write_inline_edge_summary): New function.
10454 (inline_write_summary): Use it.
10455 (inline_free_summary): Free edge new holders.
10456 * tree-inline.c (copy_bb): Update.
10458 2011-04-26 Jason Merrill <jason@redhat.com>
10460 * tree-eh.c (lower_try_finally_switch): Create the label along with
10461 the CASE_LABEL_EXPR.
10463 2011-04-26 David S. Miller <davem@davemloft.net>
10464 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10466 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
10467 * configure: Regenerate.
10469 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
10472 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
10474 (VEC_reduc): New code iterator and splitters for vector reduction.
10475 (VEC_reduc_name): Ditto.
10476 (VEC_reduc_rtx): Ditto.
10477 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
10478 (reduc_<VEC_reduc_name>_v4sf): Ditto.
10480 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
10481 support for extracting SF on VSX.
10483 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
10484 generating xscvspdp.
10485 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
10486 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
10487 double add, minimum, maximum vector reduction.
10488 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
10489 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
10490 optimize double vector reduction.
10491 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
10493 2011-04-26 Joseph Myers <joseph@codesourcery.com>
10495 * config/fr30/fr30.h (inhibit_libc): Don't define.
10496 * config/m32r/m32r-protos.h: Correct comment.
10497 * config/v850/v850.h (GHS_default_section_names,
10498 GHS_current_section_names): Use tree, not union tree_node *.
10500 2011-04-26 Xinliang David Li <davidxl@google.com>
10502 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
10503 * c-family/c-opts.c (c_common_handle_option): Set
10504 warn_maybe_uninitialized.
10505 * opts.c (common_handle_option): Ditto.
10506 * common.opt: New option.
10507 * tree-ssa.c (warn_uninit): Add one more parameter.
10508 (warn_uninitialized_var): Pass warning code.
10509 * tree-flow.h: Interface change.
10511 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10513 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
10514 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
10515 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
10517 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10519 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
10520 * config/mips/mips.opt (mmips-tfile): Remove.
10522 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
10523 mips-tdump reference to ...
10524 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
10525 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
10526 reference by Tru64 UNIX.
10528 2011-04-26 Jakub Jelinek <jakub@redhat.com>
10531 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
10532 is error_mark_node, set value to NULL.
10534 PR tree-optimization/48734
10535 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
10536 if return value from maybe_fold_*_comparsions isn't something
10537 the code is prepared to handle.
10539 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
10541 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
10543 (ext_QIreg_nomode_operands): Remove.
10544 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
10548 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
10550 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
10552 2011-04-26 Richard Guenther <rguenther@suse.de>
10554 * c-typeck.c (build_unary_op): Do not expand array-refs via
10555 pointer arithmetic. Only adjust qualifiers for function types.
10557 2011-04-26 Richard Guenther <rguenther@suse.de>
10559 PR middle-end/48694
10560 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
10561 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
10562 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
10563 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
10565 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
10567 * doc/extend.texi: Document __underlying_type.
10569 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
10571 * config/rs6000/titan.md (automata_option "progress"): Remove.
10573 2011-04-25 Jeff Law <law@redhat.com>
10575 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
10577 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
10579 * system.h (ENUM_BITFIELD): Remove.
10581 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
10582 Eric Botcazou <ebotcazou@adacore.com>
10584 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
10585 for STORE_FLAG_VALUE==-1 case.
10587 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
10590 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
10591 LEGITIMATE_PIC_OPERAND_P.
10593 2011-04-24 Jan Hubicka <jh@suse.cz>
10595 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
10597 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
10598 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
10599 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
10600 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
10601 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
10602 Sanity check predicate length.
10603 (remap_predicate): Likewise; sanity check jump functions.
10604 (inline_read_section, inline_write_summary): Sanity check
10607 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
10610 * doc/extend.texi (Type Traits): Document __is_standard_layout,
10611 __is_literal_type, and __is_trivial; update throughout about
10612 possibly cv-qualified void types.
10614 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
10616 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
10617 testsuite and make it version agnostic.
10619 2011-04-22 Jan Hubicka <jh@suse.cz>
10621 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
10623 2011-04-23 Jakub Jelinek <jakub@redhat.com>
10626 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
10627 to VOID_TYPE even around MODIFY_EXPR.
10629 2011-04-22 Mike Stump <mikestump@comcast.net>
10631 * gensupport.c (read_md_rtx): Fix typo in comment.
10632 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
10635 2011-04-22 Jan Hubicka <jh@suse.cz>
10637 * gengtype.c (open_base_files): Add ipa-inline.h include.
10638 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
10639 ipa-prop.c; update all uses.
10640 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
10641 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
10642 merge summary of inlined function into former caller.
10643 * ipa-inline.c (max_benefit): Remove.
10644 (edge_badness): Compensate for removal of benefits.
10645 (update_caller_keys): Use
10646 reset_node_growth_cache/reset_edge_growth_cache.
10647 (update_callee_keys): Likewise.
10648 (update_all_callee_keys): Likewise.
10649 (inline_small_functions): Do not collect max_benefit; do not reset
10650 estimated_growth; call free_growth_caches and initialize_growth_caches.
10651 * ipa-inline.h (struct condition, type clause_t, struct predicate,
10652 struct size_time_entry): New structures.
10653 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
10654 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
10655 and estimated_growth.
10656 (edge_growth_cache_entry): New structure.
10657 (node_growth_cache, edge_growth_cache): New global vars.
10658 (estimate_growth): Turn into inline.
10659 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
10660 initialize_growth_caches, free_growth_caches): Declare.
10661 (estimate_edge_growth): Rewrite.
10662 (estimate_edge_time): Implement as inline cache lookup.
10663 (reset_node_growth_cache, reset_edge_growth_cache): New inline
10665 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
10666 (NUM_CONDITIONS): New constant.
10667 (predicate_conditions): New enum.
10668 (IS_NOT_CONSTANT): New constant.
10669 (edge_removal_hook_holder): New var.
10670 (node_growth_cache, edge_growth_cache): New global vars.
10671 (true_predicate, single_cond_predicate, false_predicate,
10672 not_inlined_predicate, add_condition, add_clause, and_predicates,
10673 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
10674 dump_clause, dump_predicate, account_size_time,
10675 evaulate_conditions_for_edge): New functions.
10676 (inline_summary_alloc): Move to heap.
10677 (inline_node_removal_hook): Clear condition and entry vectors.
10678 (inline_edge_removal_hook): New function.
10679 (initialize_growth_caches, free_growth_caches): New function.
10680 (dump_inline_summary): Update.
10681 (edge_execution_predicate): New function.
10682 (will_be_nonconstant_predicate): New function.
10683 (estimate_function_body_sizes): Compute BB and constantness predicates.
10684 (compute_inline_parameters): Do not clear estimated_growth.
10685 (estimate_edge_size_and_time): New function.
10686 (estimate_calls_size_and_time): New function.
10687 (estimate_callee_size_and_time): New function.
10688 (remap_predicate): New function.
10689 (inline_merge_summary): New function.
10690 (do_estimate_edge_time): New function based on...
10691 (estimate_edge_time): ... this one.
10692 (do_estimate_edge_growth): New function.
10693 (do_estimate_growth): New function based on....
10694 (estimate_growth): ... this one.
10695 (inline_analyze_function): Analyze after deciding on jump functions.
10696 (inline_read_section): New function.
10697 (inline_read_summary): Use it.
10698 (inline_write_summary): Write all the new data.
10699 * ipa-prop.c (ipa_get_param_decl_index): Export.
10700 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
10701 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
10703 (ipa_get_lattice): Move here from ipa-cp.c
10704 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
10705 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
10706 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
10707 cgraph_edge_inlinable_p): Remove.
10708 * cgraphunit.c: Include ipainline.h
10709 (cgraph_process_new_functions): Update call of
10710 compute_inline_parameters.
10712 2011-04-22 Richard Guenther <rguenther@suse.de>
10714 * tree.c (build_int_cst): Properly create canonicalized integer
10716 (build_int_cst_type): Remove scary comments.
10718 2011-04-22 Xinliang David Li <davidxl@google.com>
10720 * toplev.c (process_options): Enable -Werror=coverage-mismatch
10721 by default when -Wno-error is not specified.
10722 * opts-global.c (decode_options): Remove call to
10723 control_warning_options.
10725 2011-04-22 Jakub Jelinek <jakub@redhat.com>
10727 PR tree-optimization/48717
10728 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
10729 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
10731 2011-04-22 Joseph Myers <joseph@codesourcery.com>
10733 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
10734 definition where used.
10736 2011-04-22 Jakub Jelinek <jakub@redhat.com>
10739 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
10740 TREE_STATIC variables declared inside of some OpenMP construct.
10742 2011-04-22 Martin Jambor <mjambor@suse.cz>
10744 PR middle-end/48585
10745 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
10747 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
10750 * c-typeck.c (pop_init_level): Do not warn about initializing
10753 2011-04-22 Alan Modra <amodra@gmail.com>
10755 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
10756 when returning call_cookie.
10757 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
10758 pointers, to functions with no more vector args than the current
10759 function, and some non-local calls for ABI_V4.
10760 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
10761 sibcall_nonlocal_aix64): Combine to ..
10762 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
10763 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
10764 (sibcall_value_nonlocal_aix<mode>): ..likewise.
10765 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
10766 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
10768 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
10769 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
10770 sibcall_value_symbolic_64): Delete.
10772 2011-04-21 Xinliang David Li <davidxl@google.com>
10774 * cgraph.h: Remove pid.
10775 * cgraph.c: Remove pid.
10776 * value-prof.c (init_node_map): New function.
10777 (del_node_map): New function.
10778 (find_func_by_funcdef_no): New function.
10779 (gimple_ic_transform): Call new function.
10780 * cgraphunit.c (cgraph_finalize_function): Remove pid.
10781 * function.c (get_last_funcdef_no): New function.
10782 * function.h (get_last_funcdef_no): New function.
10783 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
10784 to libgcov function.
10785 (tree-profiling): Call node map init and delete function.
10787 2011-04-21 Ian Lance Taylor <iant@google.com>
10789 * godump.c (go_format_type): Use exported Go name for anonymous
10792 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10794 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
10795 Call builtin_function_type_list instead of builtin_function_type.
10796 (UNARY, BINARY, TRINARY, QUAD): Likewise.
10798 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10800 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
10801 build_function_type_list instead of build_function_type.
10802 Delete variable `endlink'.
10804 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10806 * config/s390/s390.c (s390_init_builtins): Call
10807 build_function_type_list instead of build_function_type.
10809 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
10811 * config/ia64/ia64.c (ia64_init_builtins): Call
10812 build_function_type_list instead of builtin_function_type.
10814 2011-04-21 Easwaran Raman <eraman@google.com>
10816 * cfgexpand.c (stack_var): Remove OFFSET...
10817 (add_stack_var): ...and its reference here...
10818 (expand_stack_vars): ...and here.
10819 (stack_var_cmp): Sort by descending order of size.
10820 (partition_stack_vars): Change heuristic.
10821 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
10822 (dump_stack_var_partition): Add newline after each partition.
10824 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
10825 Jeff Law <law@redhat.com>
10827 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
10828 * gengtype.c (matching_file_name_substitute): Likewise.
10830 2011-04-21 Richard Guenther <rguenther@suse.de>
10833 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
10835 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
10837 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
10839 2011-04-21 Richard Guenther <rguenther@suse.de>
10841 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
10844 2011-04-21 Richard Guenther <rguenther@suse.de>
10846 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
10847 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
10848 Use DECL_P, not SSA_VAR_P.
10849 (ptr_derefs_may_alias_p): Likewise.
10850 (ptr_deref_may_alias_ref_p_1): Likewise.
10851 (decl_refs_may_alias_p): Likewise.
10852 (refs_may_alias_p_1): Likewise.
10853 (ref_maybe_used_by_call_p_1): Likewise.
10854 (call_may_clobber_ref_p_1): Likewise.
10855 (indirect_ref_may_alias_decl_p): Assume indirect refrences
10856 are either MEM_REF or TARGET_MEM_REF.
10857 (indirect_refs_may_alias_p): Likewise.
10858 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
10859 for MEM_EXPR of indirect calls.
10861 2011-04-21 Tristan Gingold <gingold@adacore.com>
10863 * vmsdbgout.c (write_srccorr): Compute file length from the string.
10864 (dst_file_info_struct): Remove flen field.
10865 (lookup_filename): Remove code that set flen field.
10867 2011-04-21 Tristan Gingold <gingold@adacore.com>
10869 * config/ia64/ia64.c (ia64_start_function): Add a guard.
10871 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
10874 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
10875 vec_extract and vec_concat for non-SSE4_1 targets.
10877 2011-04-21 Richard Guenther <rguenther@suse.de>
10879 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
10882 2011-04-21 Joseph Myers <joseph@codesourcery.com>
10884 * config/i386/cygming.h (union tree_node, TREE): Don't define or
10886 (FILE): Don't undefine.
10888 2011-04-21 Joseph Myers <joseph@codesourcery.com>
10890 * config/alpha/alpha.c (struct machine_function): Use rtx, not
10892 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
10894 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
10895 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
10896 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
10898 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
10899 definitions where used.
10900 * config/microblaze/microblaze.h (struct microblaze_args): Use
10901 rtx, not struct rtx_def *.
10902 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
10904 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
10905 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
10906 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
10907 not struct rtx_def *.
10908 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
10910 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
10912 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
10914 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
10916 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
10917 operand_equal_p to compare DR_BASE_ADDRESSes.
10918 (vect_check_interleaving): Likewise.
10920 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
10923 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
10924 for all Neon struct constants.
10926 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
10928 * target.def (legitimate_constant_p): New hook.
10929 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
10930 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
10931 * doc/tm.texi: Regenerate.
10932 * hooks.h (hook_bool_mode_rtx_true): Declare.
10933 * hooks.c (hook_bool_mode_rtx_true): Define.
10934 * system.h (LEGITIMATE_CONSTANT_P): Poison.
10935 * calls.c (precompute_register_parameters): Replace uses of
10936 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
10937 (emit_library_call_value_1): Likewise.
10938 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
10939 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
10940 * ira-costs.c (scan_one_insn): Likewise.
10941 * recog.c (general_operand, immediate_operand): Likewise.
10942 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
10943 * reload1.c (init_eliminable_invariants): Likewise.
10945 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
10947 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
10948 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
10950 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10951 * config/alpha/predicates.md (input_operand): Update call to
10952 alpha_legitimate_constant_p.
10954 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
10955 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
10956 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
10957 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10958 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
10959 (arm_legitimate_constant_p): New functions.
10960 (arm_cannot_force_const_mem): Make static.
10962 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
10964 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
10965 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
10966 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
10967 instead of bfin_legitimate_constant_p.
10968 (bfin_legitimate_constant_p): Make static. Add a mode argument.
10969 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10971 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
10973 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
10975 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
10976 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
10977 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10978 (frv_legitimate_constant_p): Make static. Add a mode argument.
10980 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
10981 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
10982 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
10984 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
10985 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
10986 * config/i386/i386.c (legitimate_constant_p): Rename to...
10987 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
10989 (ix86_cannot_force_const_mem): Update accordingly.
10990 (ix86_legitimate_address_p): Likewise.
10991 (TARGET_LEGITIMATE_CONSTANT_P): Define.
10992 * config/i386/i386.md: Update commentary.
10994 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
10995 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
10996 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
10997 (ia64_legitimate_constant_p): Make static. Add a mode argument.
10999 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
11001 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
11002 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
11003 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11004 (lm32_legitimate_constant_p): Make static. Add a mode argument.
11006 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
11007 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
11008 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
11010 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
11011 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11012 (m32r_legitimate_constant_p): New function.
11014 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
11015 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
11016 LEGITIMATE_CONSTANT_P.
11017 (LEGITIMATE_CONSTANT_P): Delete.
11018 * config/m68k/m68k.c (m68k_expand_prologue): Call
11019 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
11020 (m68k_legitimate_constant_p): New function.
11021 * config/m68k/m68k.md: Update comments.
11023 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
11024 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11025 (mcore_legitimate_constant_p): New function.
11027 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
11028 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
11029 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
11030 Add a mode argument.
11031 (mep_legitimate_address): Update accordingly.
11032 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11034 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
11036 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
11037 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
11038 static. Check OP's mode for VOIDmode.
11039 (microblaze_legitimate_constant_p): New function.
11040 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11042 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
11043 * config/mips/mips.c (mips_legitimate_constant_p): New function.
11044 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
11045 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11046 * config/mips/predicates.md: Update comments.
11048 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
11049 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
11050 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11051 (mmix_legitimate_constant_p): Make static, return a bool, and take
11053 (mmix_print_operand_address): Update accordingly.
11055 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
11057 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
11058 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
11059 static. Add a mode argument.
11060 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11062 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
11064 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
11065 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11066 (pa_legitimate_constant_p): New function.
11068 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
11070 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
11071 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11072 (pdp11_legitimate_constant_p): New function.
11074 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
11075 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11076 (rs6000_legitimate_constant_p): New function.
11078 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
11079 (rx_legitimate_constant_p): ...this.
11080 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
11081 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
11082 (rx_legitimate_constant_p): ...this.
11083 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11084 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
11086 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
11087 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
11088 * config/s390/s390.c (legitimate_constant_p): Rename to...
11089 (s390_legitimate_constant_p): ...this. Make static, return a bool,
11090 and add a mode argument.
11091 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11093 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
11095 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
11096 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11097 (sh_legitimate_constant_p): New function.
11099 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
11100 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
11101 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11102 (legitimate_constant_p): Rename to...
11103 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
11105 (constant_address_p): Update accordingly.
11107 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
11108 argument and return a bool.
11109 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
11110 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11111 (spu_legitimate_constant_p): Add a mode argument and return a bool.
11112 (spu_rtx_costs): Update accordingly.
11113 * config/spu/predicates.md (vec_imm_operand): Likewise.
11115 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
11117 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
11118 * config/v850/v850.c (v850_legitimate_constant_p): New function.
11119 (TARGET_LEGITIMATE_CONSTANT_P): Define.
11121 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
11122 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
11123 * config/vax/vax.c (legitimate_constant_p): Likewise.
11125 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
11126 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
11127 (xtensa_legitimate_constant_p): New function.
11129 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
11131 * target.def (cannot_force_const_mem): Add a mode argument.
11132 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
11133 * doc/tm.texi: Regenerate.
11134 * hooks.h (hook_bool_mode_rtx_false): Declare.
11135 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
11136 (hook_bool_mode_const_rtx_true): Likewise.
11137 (hook_bool_mode_rtx_false): New function.
11138 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
11139 to be non-VOID. Update call to cannot_force_const_mem.
11140 (find_reloads): Update accordingly.
11141 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
11142 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
11144 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
11145 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
11146 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
11147 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
11148 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
11149 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
11150 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
11151 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11152 (m68k_cannot_force_const_mem): ...this new function.
11153 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
11155 (mips_const_insns, mips_legitimize_const_move): Update calls.
11156 (mips_secondary_reload_class): Likewise.
11157 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
11158 (pa_cannot_force_const_mem): ...this new function.
11159 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
11160 (rs6000_cannot_force_const_mem): ...this new function.
11161 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
11163 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
11164 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
11166 (xtensa_cannot_force_const_mem): ...this new function.
11168 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11170 * config/mips/mips.c (mips16_build_function_stub): Call
11171 build_function_type_list instead of build_function_type.
11172 (mips16_build_call_stub): Likewise.
11174 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11176 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
11177 instead of build_function_type.
11179 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
11181 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
11182 instead of build_function_type.
11184 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
11187 * config/i386/i386.md (insv): Change operand 0 constraint to
11188 "register_operand". Change operand 1 and 2 constraint to
11189 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
11190 * config/i386/sse.md (sse4_1_pinsrb): Export.
11191 (sse2_pinsrw): Ditto.
11192 (sse4_1_pinsrd): Ditto.
11193 (sse4_1_pinsrq): Ditto.
11194 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
11195 * config/i386/i386.c (ix86_expand_pinsr): New.
11197 2011-04-20 Easwaran Raman <eraman@google.com>
11199 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
11200 containing union type only with -fstrict-aliasing.
11202 2011-04-20 Jim Meyering <meyering@redhat.com>
11204 Remove useless if-before-free tests.
11205 * calls.c (expand_call, save_area): Likewise.
11206 * cfgcleanup.c (try_forward_edges): Likewise.
11207 * collect2.c (collect_execute): Likewise.
11208 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
11209 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
11210 * coverage.c (coverage_checksum_string): Likewise.
11211 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
11212 * cselib.c (cselib_init): Likewise.
11213 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
11214 (df_set_clean_cfg): Likewise.
11215 * function.c (free_after_compilation): Likewise.
11216 * gcc.c (do_spec_1, main): Likewise.
11217 * gcov.c (create_file_names): Likewise.
11218 * gensupport.c (identify_predicable_attribute): Likewise.
11219 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
11220 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
11221 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
11222 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
11223 * ipa-pure-const.c (local_pure_const): Likewise.
11224 * ipa-reference.c (propagate): Likewise.
11225 * ira-costs.c (free_ira_costs): Likewise.
11226 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
11227 * matrix-reorg.c (mat_free): Likewise.
11228 * prefix.c (get_key_value): Likewise.
11229 * profile.c (compute_value_histograms): Likewise.
11230 * reload1.c (free_reg_equiv): Likewise.
11231 * sched-deps.c (free_deps): Likewise.
11232 * sel-sched-ir.c (fence_clear): Likewise.
11233 * sese.c (set_rename, if_region_set_false_region): Likewise.
11234 * tree-data-ref.c (free_rdg): Likewise.
11235 * tree-eh.c (lower_try_finally): Likewise.
11236 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
11237 * tree-ssa-live.c (delete_var_map): Likewise.
11238 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
11239 * tree-ssa-pre.c (phi_trans_add): Likewise.
11241 2011-04-20 Jakub Jelinek <jakub@redhat.com>
11243 PR tree-optimization/48611
11244 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
11245 beyond ERT_MUST_NOT_THROW region.
11247 2011-04-20 Catherine Moore <clm@codesourcery.com>
11249 * config/mips/mips.opt (mfix-24k): New.
11250 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
11251 * config/mips/mips.md (length): Increase by 4 for stores if
11253 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
11254 all noreorder if fixing 24K errata.
11255 * doc/invoke.texi: Document mfix-24k.
11257 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
11259 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
11260 quad-word modes, reduce to 9-bit index range when above 1016 limit.
11262 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
11264 * config/arm/arm.c (arm_gen_constant): Move movw support ....
11265 (const_ok_for_op): ... to here.
11267 2011-04-20 Kai Tietz <ktietz@redhat.com>
11269 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
11270 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
11272 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
11274 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
11276 2011-04-20 Richard Guenther <rguenther@suse.de>
11278 PR tree-optimization/47892
11279 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
11280 are if-convertible.
11282 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
11284 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
11286 2011-04-20 Tristan Gingold <gingold@adacore.com>
11288 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
11290 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
11294 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
11295 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
11296 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
11297 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
11298 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
11300 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
11303 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
11304 (avr_asm_named_section, avr_asm_output_aligned_common,
11305 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
11306 New functions to update...
11307 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
11308 (avr_asm_init_sections): Overwrite section callbacks for
11309 data_section, bss_section.
11310 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
11312 (avr_file_end): ...here.
11314 2011-04-20 Richard Guenther <rguenther@suse.de>
11316 PR middle-end/48695
11317 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
11318 objects and types here. Adjust for their offset before comparing.
11320 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
11322 * tree-vect-stmts.c (vectorizable_store): Only chain one related
11323 statement per copy.
11325 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
11327 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
11328 (GIMPLE_H): Include $(INTERNAL_FN_H).
11329 (OBJS-common): Add internal-fn.o.
11330 (internal-fn.o): New rule.
11331 * internal-fn.def: New file.
11332 * internal-fn.h: Likewise.
11333 * internal-fn.c: Likewise.
11334 * gimple.h: Include internal-fn.h.
11335 (GF_CALL_INTERNAL): New gf_mask.
11336 (gimple_statement_call): Put fntype into a union with a new
11338 (gimple_build_call_internal): Declare.
11339 (gimple_build_call_internal_vec): Likewise.
11340 (gimple_call_same_target_p): Likewise.
11341 (gimple_call_internal_p): New function.
11342 (gimple_call_internal_fn): Likewise.
11343 (gimple_call_fntype): Return null for internal calls.
11344 (gimple_call_set_fntype): Assert that the function is not internal.
11345 (gimple_call_set_fn): Likewise.
11346 (gimple_call_set_fndecl): Likewise.
11347 (gimple_call_set_internal_fn): New function.
11348 (gimple_call_addr_fndecl): Handle null functions.
11349 (gimple_call_return_type): Likewise null types.
11350 * gimple.c (gimple_build_call_internal_1): New function.
11351 (gimple_build_call_internal): Likewise.
11352 (gimple_build_call_internal_vec): Likewise.
11353 (gimple_call_same_target_p): Likewise.
11354 (gimple_call_flags): Handle calls to internal functions.
11355 (gimple_call_fnspec): New function.
11356 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
11357 (gimple_has_side_effects): Handle null functions.
11358 (gimple_rhs_has_side_effects): Likewise.
11359 (gimple_call_copy_skip_args): Handle calls to internal functions.
11360 * cfgexpand.c (expand_call_stmt): Likewise.
11361 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
11362 * gimple-fold.c (gimple_fold_call): Handle null functions.
11363 (gimple_fold_stmt_to_constant_1): Don't fold
11364 calls to internal functions.
11365 * gimple-low.c (gimple_check_call_args): Handle calls to internal
11367 * gimple-pretty-print.c (dump_gimple_call): Likewise.
11368 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
11369 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
11370 (do_warn_unused_result): Likewise.
11371 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
11372 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
11373 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
11374 the target of a call.
11375 (initialize_hash_element): Update accordingly.
11376 (hashable_expr_equal_p): Use gimple_call_same_target_p.
11377 (iterative_hash_hashable_expr): Handle calls to internal functions.
11378 (print_expr_hash_elt): Likewise.
11379 * tree-ssa-pre.c (can_value_number_call): Likewise.
11380 (eliminate): Handle null functions.
11381 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
11382 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
11383 (find_func_aliases): Likewise.
11384 * value-prof.c (gimple_ic_transform): Likewise.
11385 (gimple_indirect_call_to_profile): Likewise.
11386 * lto-streamer-in.c (input_gimple_stmt): Likewise.
11387 * lto-streamer-out.c (output_gimple_stmt): Likewise.
11389 2011-04-19 Jan Hubicka <jh@suse.cz>
11391 * ipa-inline-transform.c (save_inline_function_body): Add comments.
11392 * ipa-inline.c (inline_small_functions): Compute summaries first,
11393 populate heap later.
11395 2011-04-19 Jan Hubicka <jh@suse.cz>
11397 * cgraph.h (save_inline_function_body): Remove.
11398 * ipa-inline-transform.c: New file, broke out of...
11399 * ipa-inline.c: ... this one; Update toplevel comment.
11400 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
11402 (update_noncloned_frequencies): Move to ipa-inline-transform.c
11403 (cgraph_mark_inline_edge): Rename to inline_call; move to
11404 ipa-inline-transform.c.
11405 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
11406 move to ipa-inline-transform.c
11407 (recursive_inlining, inline_small_functions, flatten_function,
11408 ipa_inline, inline_always_inline_functions,
11409 early_inline_small_functions): Update.
11410 (inline_transform): Move to ipa-inline-transform.c.
11411 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
11413 * Makefile.in (ipa-inline-transform.o): New file.
11414 * cgraphunit.c (save_inline_function_body): Move to
11415 ipa-inline-transform.c
11417 2011-04-19 DJ Delorie <dj@redhat.com>
11419 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
11420 registers if we already know there aren't any.
11421 (m32c_emit_epilogue): Don't emit a barrier here.
11422 (m32c_emit_eh_epilogue): Likewise.
11423 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
11424 operands at expand time.
11425 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
11427 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
11428 duplicates. Provide aliases instead.
11429 * config/m32c/prologue.md (eh_return): Emit a barrier here.
11430 (eh_epilogue): Add a "(return)" here as a hint to other parts of
11433 2011-04-19 Anatoly Sokolov <aesok@post.ru>
11435 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
11436 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
11437 (general_or_i64_p, sparc_register_move_cost): New function.
11439 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11441 * doc/install.texi (Configuration, --enable-threads): Remove mach.
11442 Add lynx, mipssde. Sort table.
11444 2011-04-19 Xinliang David Li <davidxl@google.com>
11446 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
11449 2011-04-19 Jakub Jelinek <jakub@redhat.com>
11452 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
11453 is a SUBREG with non-MODE_INT mode inside of it.
11455 2011-04-19 Martin Jambor <mjambor@suse.cz>
11457 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
11458 also according to actual contants.
11459 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
11460 (gimple_fold_call): Use it.
11461 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
11463 2011-04-19 Martin Jambor <mjambor@suse.cz>
11465 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
11466 non-pointer assignments.
11468 2011-04-19 Martin Jambor <mjambor@suse.cz>
11470 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
11471 account anc_offset and otr_type from the indirect edge info.
11472 * ipa-prop.c (get_ancestor_addr_info): New function.
11473 (compute_complex_ancestor_jump_func): Assignment analysis moved to
11474 get_ancestor_addr_info, call it.
11475 (ipa_note_param_call): Do not initialize information about polymorphic
11476 calls, return the indirect call graph edge. Remove the last
11477 parameter, adjust all callers.
11478 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
11479 parameters. Initialize polymorphic information in the indirect edge.
11481 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
11484 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
11485 the types if they have different enumeration identifiers.
11487 2011-04-19 Jan Hubicka <jh@suse.cz>
11489 * cgraph.h (cgraph_optimize_for_size_p): Declare.
11490 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
11491 * predict.c (cgraph_optimize_for_size_p): Break out from ...
11492 (optimize_function_for_size_p) ... here.
11494 2011-04-19 Richard Guenther <rguenther@suse.de>
11497 * tree.c (free_lang_data): Do not reset the decl-assembler-name
11500 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
11502 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
11503 if DECL_NO_INLINE_WARNING_P is set on the function.
11505 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
11508 * reload1.c (inc_for_reload): Return void. All callers changed.
11509 (emit_input_reload_insns): Don't try to delete previous output
11510 reloads to a register, or record spill_reg_store for autoincs.
11512 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
11514 * gengtype.h: Updated copyright year.
11515 (struct input_file_st): Add inpisplugin field.
11516 (type_fileloc): New function.
11518 (write_typed_struct_alloc_def): Add gcc_assert.
11519 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
11520 (write_typed_alloc_defns): Don't output for plugin files.
11521 (input_file_by_name): Clear inpisplugin field.
11522 (main): Set inpisplugin field for plugin files.
11524 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
11526 * gengtype-state.c (string_eq): New.
11527 (read_state): Use string_eq instead of strcmp when creating the
11530 2011-04-19 Wei Guozhi <carrot@google.com>
11533 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
11534 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
11536 * config/arm/constraints.md (Uu): New constraint.
11537 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
11539 2011-04-19 Tristan Gingold <gingold@adacore.com>
11541 * config.gcc (-*-*-*vms): Added.
11542 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
11544 * config/vms/vms-ld.c: New file.
11545 * config/vms/vms-ar.c: New file.
11546 * config/vms/t-vmsnative: New file.
11548 2011-04-18 Xinliang David Li <davidxl@google.com>
11550 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
11552 2011-04-18 Jakub Jelinek <jakub@redhat.com>
11554 PR middle-end/48661
11555 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
11556 if TREE_TYPE (v) is non-NULL.
11558 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
11559 gimple_get_virt_mehtod_for_binfo.
11560 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
11561 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
11563 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
11565 2011-04-18 Michael Matz <matz@suse.de>
11566 Steve Ellcey <sje@cup.hp.com>
11568 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
11569 use its mode as source mode if it isn't VOIDmode.
11571 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
11573 * doc/passes.texi: Fill crossref nodes.
11575 2011-04-18 Jim Meyering <meyering@redhat.com>
11577 Fix doubled-word typos in comments and strings
11578 * config/alpha/vms-unwind.h: s/for for/for/
11579 * config/arm/unwind-arm.h: Likewise.
11580 * config/microblaze/microblaze.c: Likewise.
11581 * config/sh/constraints.md: s/in in/in/
11582 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
11584 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
11586 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
11587 (AVX_FLOAT_MODE_P): Ditto.
11588 (AVX128_VEC_FLOAT_MODE_P): Ditto.
11589 (AVX256_VEC_FLOAT_MODE_P): Ditto.
11590 (AVX_VEC_FLOAT_MODE_P): Ditto.
11591 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
11592 (UNSPEC_MASKSTORE): Ditto.
11593 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
11594 Merge from <sse>_movmsk<ssemodesuffix> and
11595 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
11596 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
11598 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
11599 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
11600 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
11602 2011-04-18 Jan Hubicka <jh@suse.cz>
11604 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
11606 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
11607 (want_inline_function_called_once_p): Break out the logic from
11609 (edge_badness): Ensure that profile is not misupdated.
11610 (lookup_recursive_calls): Prioritize by call frequencies.
11611 (inline_small_functions): Move program size estimates here;
11612 actually process whole queue even when unit growth has been
11613 met. (to properly compute inline_failed reasons and for the
11614 case unit size decrease.) Revisit comments on recursive inlining.
11615 (ipa_inline): Remove unit summary code; first inline hot calls
11616 of functions called once, cold calls next.
11617 (order, nnodes): Remove unused variables.
11618 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
11619 (GTFILES): Remove ipa-inline.c
11620 * sel-sched.c (fill_insns): Silence uninitialized var warning.
11622 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
11624 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
11626 2011-04-18 Jie Zhang <jie@codesourcery.com>
11627 Richard Earnshaw <rearnsha@arm.com>
11629 * arm.c (neon_builtin_type_bits): Remove.
11630 (typedef enum neon_builtin_mode): New.
11631 (T_MAX): Don't define.
11632 (typedef enum neon_builtin_datum): Remove bits, codes[],
11633 num_vars and base_fcode. Add mode, code and fcode.
11634 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
11635 VAR10): Change accordingly.
11636 (neon_builtin_data[]): Change accordingly
11637 (arm_init_neon_builtins): Change accordingly.
11638 (neon_builtin_compare): Remove.
11639 (locate_neon_builtin_icode): Remove.
11640 (arm_expand_neon_builtin): Change accordingly.
11642 * arm.h (enum arm_builtins): Move to ...
11643 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
11645 * arm.c (arm_builtin_decl): Declare.
11646 (TARGET_BUILTIN_DECL): Define.
11647 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
11648 (arm_builtin_decls[]): New.
11649 (arm_init_neon_builtins): Store builtin declarations in
11650 arm_builtin_decls[].
11651 (arm_init_tls_builtins): Likewise.
11652 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
11653 (arm_builtin_decl): New.
11655 2011-04-18 Richard Guenther <rguenther@suse.de>
11657 * tree.c (upper_bound_in_type): Build properly canonicalized
11659 (lower_bound_in_type): Likewise.
11661 2011-04-18 Richard Guenther <rguenther@suse.de>
11663 * gimple.h (gimple_call_addr_fndecl): New function.
11664 (gimple_call_fndecl): Use it.
11665 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
11667 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
11668 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
11670 2011-04-18 Richard Guenther <rguenther@suse.de>
11672 PR middle-end/48650
11673 * tree.c (build_string): STRING_CST is now derived from tree_typed.
11675 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
11678 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
11679 DECL_IN_CONSTANT_POOL without RTL.
11681 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
11682 Ira Rosen <ira.rosen@linaro.org>
11685 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
11686 to match neon_vzip/vuzp/vtrn_internal.
11687 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
11688 outputs explicitly dependent on both inputs.
11689 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
11691 2011-04-18 Jakub Jelinek <jakub@redhat.com>
11693 PR tree-optimization/48616
11694 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
11695 whether the shift is by scalar or vector based on whether all SLP
11696 scalar stmts have the same rhs.
11698 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
11700 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
11703 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
11706 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
11709 2011-04-17 Jan Hubicka <jh@suse.cz>
11711 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
11712 * cgrpahunit.c (cgraph_finalize_function): Do not set
11713 finalized_by_frontend.
11714 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
11715 finalized_by_frontend.
11717 2011-04-17 Jan Hubicka <jh@suse.cz>
11719 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
11720 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
11721 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
11722 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
11724 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
11726 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
11728 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
11731 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
11732 is non-null before accessing it.
11733 (input_cgraph): Remove trailing spaces.
11735 2011-04-17 Revital Eres <revital.eres@linaro.org>
11737 * params.def (sms-min-sc): New param flag.
11738 * modulo-sched.c (sms_schedule): Use it.
11739 * doc/invoke.texi (sms-min-sc): Document it.
11741 2011-04-17 Jan Hubicka <jh@suse.cz>
11743 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
11744 present, also set gimple_call_set_cannot_inline.
11745 * ipa-inline.c: Update toplevel comment.
11746 (MAX_TIME): Remove.
11747 (cgraph_clone_inlined_nodes): Fix linebreaks.
11748 (cgraph_check_inline_limits): Restructure to ...
11749 (caller_growth_limits): ... this one; be more tolerant
11750 on growth in nested inline chains; add explanatory comment;
11751 fix stack accounting thinko introduced by previous patch.
11752 (cgraph_default_inline_p): Remove.
11753 (report_inline_failed_reason): New function.
11754 (can_inline_edge_p): New function.
11755 (can_early_inline_edge_p): New function.
11756 (leaf_node_p): Move upwards in file.
11757 (want_early_inline_function_p): New function.
11758 (want_inline_small_function_p): New function.
11759 (want_inline_self_recursive_call_p): New function.
11760 (cgraph_edge_badness): Rename to ...
11761 (edge_badness) ... this one; fix linebreaks.
11762 (update_edge_key): Update call of edge_baddness; add
11763 detailed dump about queue updates.
11764 (update_caller_keys): Use can_inline_edge_p and
11765 want_inline_small_function_p.
11766 (cgraph_decide_recursive_inlining): Rename to...
11767 (recursive_inlining): Use can_inline_edge_p and
11768 want_inline_self_recursive_call_p; simplify and remove no longer
11770 (cgraph_set_inline_failed): Remove.
11771 (add_new_edges_to_heap): Use can_inline_edge_p and
11772 want_inline_small_function_p.
11773 (cgraph_decide_inlining_of_small_functions): Rename to ...
11774 (inline_small_functions): ... this one; cleanup; use
11775 can/want predicates; cleanup debug ouput; work edges till fibheap
11776 is exhausted and do not stop once unit growth is reached; remove
11777 later loop processing remaining edges.
11778 (cgraph_flatten): Rename to ...
11779 (flatten_function): ... this one; use can_inline_edge_p
11780 and can_early_inline_edge_p predicates.
11781 (cgraph_decide_inlining): Rename to ...
11782 (ipa_inline): ... this one; remove unreachable nodes before
11783 inlining functions called once; simplify the pass.
11784 (cgraph_perform_always_inlining): Rename to ...
11785 (inline_always_inline_functions): ... this one; use
11786 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
11787 (cgraph_decide_inlining_incrementally): Rename to ...
11788 (early_inline_small_functions): ... this one; simplify
11789 using new predicates; cleanup; make dumps prettier.
11790 (cgraph_early_inlining): Rename to ...
11791 (early_inliner): newer inline regular functions into always-inlines;
11792 fix updating of call stmt summaries.
11793 (pass_early_inline): Update for new names.
11794 (inline_transform): Fix formating.
11795 (gate_cgraph_decide_inlining): Rename to ...
11796 (pass_ipa_inline): ... this one.
11797 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
11798 * ipa-inline-analysis.c (dump_inline_summary): Update.
11799 (compute_inline_parameters): Do not compute disregard_inline_limits;
11800 look for mismatching arguments.
11801 (estimate_growth): Fix handlig of non-trivial self recursion.
11802 (inline_read_summary): Do not read info->disregard_inline_limits.
11803 (inline_write_summary): Do not write info->disregard_inline_limits.
11804 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
11805 and move all checks into can_inline_edge_p predicate; re-enable code
11806 comparing optimization levels.
11807 (expand_call_inline): Do not test inline_forbidden_into_p.
11808 * Makefile.in (ipa-inline.o): Update arguments.
11810 2011-04-17 Revital Eres <revital.eres@linaro.org>
11812 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
11814 2011-04-17 Revital Eres <revital.eres@linaro.org>
11816 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
11818 2011-04-17 Michael Matz <matz@suse.de>
11820 PR tree-optimization/48622
11822 * ipa-inline-analysis.c (inline_read_summary): Read size/time
11823 in same order as they're written.
11825 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11827 * config/pa/predicates.md: Reorganize and simplify predicates.
11828 Eliminate duplicate code checks.
11829 (arith_operand): Rename to arith14_operand
11830 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
11831 * config/pa/pa.md: Use renamed operands.
11832 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
11833 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
11834 arith11_operand, adddi3_operand, indexed_memory_operand,
11835 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
11836 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
11837 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
11838 move_dest_operand, move_src_operand, prefetch_cc_operand,
11839 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
11840 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
11841 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
11842 div_operand, int5_operand, movb_comparison_operator,
11843 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
11844 arith_double_operand, ireg_operand, lhs_lshift_operand,
11845 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
11846 integer_store_memory_operand): Likewise.
11847 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
11848 (integer_store_memory_operand, read_only_operand,
11849 function_label_operand, borx_reg_operand,
11850 non_hard_reg_operand): Likewise.
11851 (eq_neq_comparison_operator): Delete unused operator.
11852 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
11853 function_label_operand.
11854 (emit_move_sequence): Likewise.
11856 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
11858 * config/i386/sse.md (sseunpackmode): New mode attribute.
11859 (ssepackmode): Ditto.
11860 (vec_pack_trunc_<mode>): Macroize expander from
11861 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
11862 (vec_unpacks_lo_<mode>): Macroize expander from
11863 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11864 (vec_unpacks_hi_<mode>): Macroize expander from
11865 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11866 (vec_unpacku_lo_<mode>): Macroize expander from
11867 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11868 (vec_unpacku_hi_<mode>): Macroize expander from
11869 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
11870 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
11871 ix86_expand_sse4_unpack.
11872 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
11874 2011-04-16 Jan Hubicka <jh@suse.cz>
11876 * cgraphbuild.c: Include ipa-inline.h.
11877 (reset_inline_failed): Use initialize_inline_failed.
11878 * cgraph.c: Include ipa-inline.h.
11879 (cgraph_create_node_1): Do not initialize estimated_growth.
11880 (initialize_inline_failed): More to ipa-inline-analysis.c
11881 (dump_cgraph_node): Do not dump inline flags.
11882 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
11883 and disregard_inline_limits flags.
11884 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
11885 time, size, estimated_growth.
11886 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
11888 * cgraphunit.c (cgraph_decide_is_function_needed): Use
11889 DECL_DISREGARD_INLINE_LIMITS.
11890 (cgraph_analyze_function): Do not initialize
11891 node->local.disregard_inline_limits.
11892 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
11893 inlinable, versionable and disregard_inline_limits.
11894 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
11895 cgraph_check_inline_limits, cgraph_default_inline_p,
11896 cgraph_edge_badness, update_caller_keys, update_callee_keys,
11897 add_new_edges_to_heap): Update.
11898 (cgraph_decide_inlining_of_small_function): Update; set
11899 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
11900 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
11901 cgraph_decide_inlining_incrementally): Update.
11902 * ipa-inline.h (inline_summary): Add inlinable, versionable,
11903 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
11904 time, size and estimated_growth parameters.
11905 (estimate_edge_growth): Update.
11906 (initialize_inline_failed): Declare.
11907 * ipa-split.c: Include ipa-inline.h
11908 (execute_split_functions): Update.
11909 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
11910 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
11911 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
11912 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
11913 estimated_growth to INT_MIN.
11914 (inline_node_duplication_hook): Likewise.
11915 (dump_inline_summary): Dump new fields.
11916 (compute_inline_parameters): Update.
11917 (estimate_edge_time, estimate_time_after_inlining,
11918 estimate_size_after_inlining, estimate_growth, inline_read_summary,
11919 inline_write_summary):
11920 (initialize_inline_failed): Move here from cgraph.c.
11921 * tree-sra.c: Include ipa-inline.h.
11922 (ipa_sra_preliminary_function_checks): Update.
11923 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
11926 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
11928 * config/i386/sse.md (V16): New mode iterator.
11930 (AVXMODEQI, AVXMODEDI): Remove.
11931 (sse2, sse3): New mode attribute.
11932 (mov<mode>): Use V16 mode iterator.
11933 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
11934 (push<mode>1): Use V16 mode iterator.
11935 (movmisalign<mode>): Ditto.
11936 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
11937 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
11938 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
11939 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
11940 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
11941 avx_movdqu<avxmodesuffix>.
11942 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
11943 *avx_movdqu<avxmodesuffix>.
11944 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
11945 avx_lddqu<avxmodesuffix>.
11946 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
11947 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
11948 avx_movnt<AVXMODEDI:mode>.
11949 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
11950 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
11952 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
11955 * haifa-sched.c (prune_ready_list, schedule_block): Use
11956 sched_pressure_p rather than flag_sched_pressure.
11958 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
11960 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
11961 cgraph_get_node instead of cgraph_get_create_node.
11963 2011-04-15 Jakub Jelinek <jakub@redhat.com>
11965 * cfgexpand.c (expand_debug_expr): Use
11966 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
11968 2011-04-15 Michael Matz <matz@suse.de>
11970 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
11971 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
11972 * function.c (gimplify_parameters): Ditto.
11973 * gimplify.c (gimplify_vla_decl): Ditto.
11975 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
11976 (gimple_call_set_alloca_for_var): New inline function.
11977 (gimple_call_alloca_for_var_p): Ditto.
11978 * gimple.c (gimple_build_call_from_tree): Remember
11979 CALL_ALLOCA_FOR_VAR_P state.
11980 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
11982 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
11983 calls if they were for VLA objects.
11985 2011-04-15 Martin Jambor <mjambor@suse.cz>
11987 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
11990 2011-04-15 Martin Jambor <mjambor@suse.cz>
11992 PR middle-end/48601
11993 * tree-emutls.c (lower_emutls_function_body): Call
11994 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
11995 result is non-NULL.
11997 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
11999 * c-decl.c (detect_field_duplicates): Call
12000 objc_detect_field_duplicates instead of objc_get_interface_ivars.
12002 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
12004 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
12005 * gimple.c (gimple_asm_clobbers_memory_p): Define.
12006 * ipa-pure-const.c (check_stmt): Call it.
12007 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
12009 2011-04-15 Richard Guenther <rguenther@suse.de>
12011 PR tree-optimization/48290
12012 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
12013 Properly decide inhibiting propagation based on the valueized
12014 operand. Do loop-closed SSA form preserving here ...
12015 (init_copy_prop): ... not here.
12017 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
12020 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
12021 (*ieee_smax<mode>3): Likewise.
12023 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12025 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
12026 Replace match_operand with match_dup for the third operand in
12029 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
12031 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
12032 to track processing of conditionals. Update all callers.
12033 (try_combine, simplify_if_then_else): Update.
12035 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
12037 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
12040 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
12042 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
12043 instead of match_operand for operand 3.
12045 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
12047 * recog.h (insn_operand_data): Add an "allows_mem" field.
12048 * genoutput.c (output_operand_data): Initialize it.
12049 * optabs.c (maybe_legitimize_operand_same_code): New function.
12050 (maybe_legitimize_operand): Use it when matching the original
12053 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
12055 * gimplify.c: Fix issues in comments throughout.
12056 (voidify_wrapper_expr): Fix long line.
12057 (build_stack_save_restore): Likewise.
12058 (gimplify_loop_expr): Likewise.
12059 (gimplify_compound_lval): Likewise.
12060 (gimplify_init_ctor_eval): Likewise.
12061 (gimplify_modify_expr_rhs): Likewise.
12062 (omp_notice_threadprivate_variable): Likewise.
12064 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
12066 * cfgexpand.c (expand_call_stmt): Convert the function type to the
12067 original one if this is not a builtin function.
12069 2011-04-14 Jakub Jelinek <jakub@redhat.com>
12072 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
12073 offset it as needed based on top 2 bits in operands[3], change
12074 MEM mode to SFmode and mask those 2 bits away from operands[3].
12076 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
12078 * c-parser.c (c_parser_objc_protocol_definition): Updated for
12079 change from objc_declare_protocols() to objc_declare_protocol().
12081 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
12083 * config/i386/sse.md (sse4_1): New mode attribute.
12084 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
12085 avx_blend<ssemodesuffix><avxmodesuffix> and
12086 sse4_1_blend<ssemodesuffix> using VF mode iterator.
12087 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
12088 avx_blendv<ssemodesuffix><avxmodesuffix> and
12089 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
12090 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
12091 avx_dp<ssemodesuffix><avxmodesuffix> and
12092 sse4_1_dp<ssemodesuffix> using VF mode iterator.
12093 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
12094 (sse4_1_packusdw): Merge with *avx_packusdw.
12095 (sse4_1_pblendvb): Merge with *avx_pblendvb.
12096 (sse4_1_pblendw): Merge with *avx_pblendw.
12097 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
12098 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
12099 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
12101 (sse4_1_round<ssescalarmodesuffix>): Merge with
12102 *avx_round<ssescalarmodesuffix>.
12103 (aesenc): Merge with *avx_aesenc.
12104 (aesenclast): Merge with *avx_aesenclast.
12105 (aesdec): Merge with *avx_aesdec.
12106 (aesdeclast): Merge with *avx_aesdeclast.
12107 (pclmulqdq): Merge with *pclmulqdq.
12108 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
12110 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
12112 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
12114 PR middle-end/48608
12115 * cfgexpand.c (get_decl_align_unit): Renamed to ...
12116 (align_local_variable): This. Update DECL_ALIGN.
12117 (add_stack_var): Updated.
12118 (expand_one_stack_var): Likewise.
12120 2011-04-14 Richard Guenther <rguenther@suse.de>
12122 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
12124 (dse_initialize_block_local_data, dse_leave_block,
12125 record_voperand_set, get_stmt_uid): Likewise.
12126 (dse_possible_dead_store_p): Allow any kind of killing stmt.
12127 (dse_optimize_stmt): Remove voperand set handling code.
12128 Simplify and improve to handle any kind of killing stmt.
12129 (dse_record_phi): Remove.
12130 (dse_enter_block): Simplify.
12131 (tree_ssa_dse): Likewise.
12132 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
12134 2011-04-14 Jan Hubicka <jh@suse.cz>
12136 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
12137 * cgraph.h (struct inline_summary): Move to ipa-inline.h
12138 (cgraph_local_info): Remove inline_summary.
12139 * ipa-cp.c: Include ipa-inline.h.
12140 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
12141 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
12143 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
12144 (input_overwrite_node): Do not set inline summary.
12145 (input_node): Do not stream inline summary.
12146 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
12147 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
12148 growth; we do not have inline parameters computed for that anyway.
12149 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
12150 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
12151 (inline_summary_t): New type and VECtor.
12152 (debug_inline_summary, dump_inline_summaries): Declare.
12153 (inline_summary): Use VOCtor.
12154 (estimate_edge_growth): Kill hack computing call stmt size directly.
12155 * lto-section-in.c (lto_section_name): Add inline section.
12156 * ipa-inline-analysis.c: Include lto-streamer.h
12157 (node_removal_hook_holder, node_duplication_hook_holder): New holders
12158 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
12159 (inline_summary_vec): Define.
12160 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
12161 dump_inline_summaries): New functions.
12162 (estimate_function_body_sizes): Properly compute size/time of outgoing
12164 (compute_inline_parameters): Alloc inline_summary; do not compute
12165 size/time of incomming calls.
12166 (estimate_edge_time): Avoid missing time summary hack.
12167 (inline_read_summary): Read inline summary info.
12168 (inline_write_summary): Write inline summary info.
12169 (inline_free_summary): Free all hooks and inline summary vector.
12170 * lto-streamer.h: Add LTO_section_inline_summary section.
12171 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
12172 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
12174 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12176 * tree-vectorizer.h (vect_strided_store_supported): Add a
12177 HOST_WIDE_INT argument.
12178 (vect_strided_load_supported): Likewise.
12179 (vect_permute_store_chain): Return void.
12180 (vect_transform_strided_load): Likewise.
12181 (vect_permute_load_chain): Delete.
12182 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
12183 count argument. Check that the count is a power of two.
12184 (vect_strided_load_supported): Likewise.
12185 (vect_permute_store_chain): Return void. Update after above changes.
12186 Assert that the access is supported.
12187 (vect_permute_load_chain): Likewise.
12188 (vect_transform_strided_load): Return void.
12189 * tree-vect-stmts.c (vectorizable_store): Update calls after
12190 above interface changes.
12191 (vectorizable_load): Likewise.
12192 (vect_analyze_stmt): Don't check for strided powers of two here.
12194 2011-04-14 Richard Guenther <rguenther@suse.de>
12196 PR tree-optimization/48590
12197 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
12198 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12199 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
12200 BUILT_IN_STACK_SAVE.
12201 * tree-ssa-dce.c (propagate_necessity): Handle
12202 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
12204 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
12206 * c-parser.c (c_parser_objc_class_declaration): Updated call to
12207 objc_declare_class.
12209 2011-04-14 Richard Guenther <rguenther@suse.de>
12211 * tree.h (get_object_alignment_1): Declare.
12212 * builtins.c (get_object_alignment_1): Split out worker from ...
12213 (get_object_alignment): ... here.
12214 * fold-const.c (get_pointer_modulus_and_residue): Use
12215 get_object_alignment_1.
12217 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12219 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
12221 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
12222 parameter. Generalise code to handle arrays as well as vectors.
12223 (vect_setup_realignment): Update accordingly.
12224 * tree-vect-stmts.c (vectorizable_store): Likewise.
12225 (vectorizable_load): Likewise.
12227 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12229 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
12230 within the per-copy loop.
12232 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12234 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
12237 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
12239 * doc/options.texi (Negative): Explicitly mention that the
12240 Negative chain must be circular.
12242 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
12244 * function.h (block_chainon): Declare.
12245 * function.c (block_chainon): Define.
12247 2011-04-14 Anatoly Sokolov <aesok@post.ru>
12248 Eric Weddington <eric.weddington@atmel.com>
12249 Georg-Johann Lay <avr@gjlay.de>
12251 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
12253 (avr_init_builtins, avr_expand_builtin,
12254 avr_expand_delay_cycles, avr_expand_unop_builtin,
12255 avr_expand_binop_builtin ): New functions.
12256 (avr_builtin_id): New enum
12257 (struct avr_builtin_description): New struct
12258 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
12259 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
12261 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
12262 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
12263 UNSPECV_DELAY_CYCLES): new enumeration values
12264 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
12265 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
12266 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
12267 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
12268 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
12269 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
12270 "fmulsu"): New insns
12272 * config/avr/avr-c.c: fix line endings
12273 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
12274 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
12275 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
12276 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
12277 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
12279 * doc/extend.texi (AVR Built-in Functions): New node
12280 (Target Builtins): Add documentation of AVR
12281 built-in functions.
12283 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
12286 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
12287 alone. Error if non-const data has attribute progmem.
12289 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12291 * tree.h (struct tree_constructor): Include tree_typed instead of
12293 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
12294 TS_TYPED instead of TS_COMMON.
12296 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
12298 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
12299 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
12300 (sse2_psadbw): Merge with *avx_psadbw.
12301 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
12302 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
12303 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
12304 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
12305 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
12306 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
12307 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
12308 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
12309 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
12310 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
12311 (ssse3_palignrti): Merge with *avx_palignrti.
12313 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12315 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
12316 * tree-ssanames.c (fini_ssanames): VEC_free it.
12317 (make_ssa_name_fn): Update for VECness of free_ssanames.
12318 (release_ssa_name, release_dead_ssa_names): Likewise.
12319 * tree.h (struct tree_ssa_name): Include tree_typed instead of
12321 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
12322 TS_TYPED instead of TS_COMMON.
12324 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12326 * postreload-gcse.c (gcse_after_reload_main): Add calls to
12327 statistics_counter_event.
12328 * tree-ssa-copyrename.c (stats): Define.
12329 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
12330 statistics_counter_event.
12331 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
12332 (bswap_stats, widen_mul_stats): Define.
12333 (insert_reciprocals): Increment rdivs_inserted.
12334 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
12335 rfuncs_inserted. Add calls to statistics_counter_event.
12336 (execute_cse_sincos_1): Increment inserted.
12337 (execute_cse_sincos): Zeroize sincos_stats. Add call to
12338 statistics_counter_event.
12339 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
12340 of bswap_stats. Add calls to statistics_counter_event.
12341 (convert_mult_to_widen): Increment widen_mults_inserted.
12342 (convert_plusminus_to_widen): Increment maccs_inserted.
12343 (convert_mult_to_fma): Increment fmas_inserted.
12344 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
12345 calls to statistics_counter_event.
12347 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
12349 PR rtl-optimization/48455
12350 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
12351 `temp_costs->mem_cost'.
12353 2011-04-13 Jan Hubicka <jh@suse.cz>
12355 * ipa-inline.h: New file.
12356 * ipa-inline-analysis.c: New file. Broken out of ...
12357 * ipa-inline.c: ... this file; update toplevel comment;
12358 include ipa-inline.h
12359 (inline_summary): Move to ipa-inline.h
12360 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
12361 ipa-inline-analysis.c.
12362 (cgraph_estimate_time_after_inlining): Rename to
12363 estiamte_time_after_inlining; move to ipa-inline-analysis.c
12364 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
12365 to estimate_edge_growth.
12366 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
12367 rename to estimate_size_after_inlining.
12368 (cgraph_mark_inline_edge): Update for new naming convention.
12369 (cgraph_check_inline_limits): Likewise.
12370 (cgraph_edge_badness): Likewise.
12371 (cgraph_decide_recursive_inlining): Likewise.
12372 (cgraph_decide_inlining_of_small_functions): Likewise.
12373 (cgraph_decide_inlining_incrementally): Likewise.
12374 (cgraph_estimate_growth): Rename to estimate_growth; move to
12375 ipa-inline-analysis.c.
12376 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
12377 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
12378 (compute_inline_parameters): Likewise.
12379 (compute_inline_parameters_for_current): Likewise.
12380 (pass_inline_parameters): Likewise.
12381 (inline_indirect_intraprocedural_analysis): Likewise.
12382 (analyze_function): Rename to inline_analyze_function; likewise.
12383 (add_new_function): Move to ipa-inline-analysis.c.
12384 (inline_generate_summary): Likewise.
12385 (inline_read_summary): Likewise.
12386 (inline_write_summary): Likewise.
12387 * Makefile.in (ipa-inline-analysis.c): New file.
12389 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12391 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
12392 * configure: Regenerate.
12394 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
12396 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
12397 instead of tree_common.
12398 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
12400 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
12401 TS_TYPED rather than TS_COMMON.
12402 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
12404 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
12407 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
12408 r20 around calls of __tablejump_elpm__
12410 2011-04-13 Jakub Jelinek <jakub@redhat.com>
12412 PR middle-end/48591
12413 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
12415 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
12417 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
12419 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
12420 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
12421 (cfi_vec): New typedef.
12422 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
12423 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
12424 (cie_cfi_vec): New static variable.
12425 (cie_cfi_head): Delete.
12426 (add_cfi): Accept a cfi_vec * as first argument. All callers and
12427 declaration changed. Use vector rather than list operations.
12428 (new_cfi): Don't initialize the dw_cfi_next field.
12429 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
12430 rather than list operations.
12431 (lookup_cfa): Use vector rather than list operations.
12432 (output_cfis): New argument upto. Accept a cfi_vec rather than
12433 a dw_cfi_ref list head as argument. All callers changed.
12434 Iterate over the vector using upto as a maximum index.
12435 (output_all_cfis): New static function.
12436 (output_fde): Use vector rather than list operations. Use the
12437 new upto argument for output_cfis rather than manipulating a
12439 (dwarf2out_begin_prologue): Change initializations to match
12440 new struct members.
12441 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
12442 from the vector length rather than searching for the end of a list.
12443 Use output_all_cfis.
12444 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
12446 2011-04-13 Nick Clifton <nickc@redhat.com>
12448 * config/rx/rx.md (movmemsi): Do not use this pattern when
12449 volatile pointers are involved.
12451 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
12453 * config/i386/sse.md (pinsrbits): Remove.
12454 (sse2_packsswb): Merge with *avx_packsswb.
12455 (sse2_packssdw): Merge with *avx_packssdw.
12456 (sse2_packuswb): Merge with *avx_packuswb.
12457 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
12458 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
12459 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
12460 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
12461 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
12462 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
12463 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
12464 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
12465 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
12466 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
12467 (sse2_loadld): Merge with *avx_loadld.
12468 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
12469 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
12470 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
12471 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
12472 (vec_concatv2di): Merge with *vec_concatv2di_avx.
12474 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
12476 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
12477 calling TREE_CHAIN.
12478 * print-tree.c (print_node): Likewise.
12479 * tree-inline.c (copy_tree_r): Likewise.
12480 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
12481 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
12482 instead of TS_COMMON.
12483 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
12484 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
12485 (copy_node_stat): Zero TREE_CHAIN only if necessary.
12486 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
12487 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
12489 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
12491 (TREE_CHAIN): Check for a TS_COMMON structure.
12492 (TREE_TYPE): Check for a TS_TYPED structure.
12494 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
12496 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
12497 cgraph_get_create_node instead of cgraph_node.
12499 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
12501 * c-parser.c (c_parser_initelt): Updated call to
12502 objc_build_message_expr.
12503 (c_parser_postfix_expression): Likewise.
12505 2011-04-12 Kai Tietz <ktietz@redhat.com>
12507 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
12508 MASK_MS_BITFIELD_LAYOUT bit.
12510 2011-04-12 Jakub Jelinek <jakub@redhat.com>
12512 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
12513 assert it is always true.
12514 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
12517 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
12519 * c-parser.c (c_lex_one_token): Rewritten conditional used when
12520 compiling Objective-C to be more efficient.
12522 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
12524 * opts-common.c (decode_cmdline_options_to_array): Remove variable
12527 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12529 * recog.h, genoutput.c, optabs.c: Revert last patch.
12531 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12534 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
12536 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12538 * recog.h (insn_operand_data): Add an "allows_mem" field.
12539 * genoutput.c (output_operand_data): Initialize it.
12540 * optabs.c (maybe_legitimize_operand_same_code): New function.
12541 (maybe_legitimize_operand): Use it when matching the original
12544 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12546 * genpreds.c (process_define_predicate): Move most processing
12547 to gensupport.c. Continue to validate the expression.
12548 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
12549 (process_define_predicate): Move processing to gensupport.c.
12550 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
12551 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
12552 (compute_predicate_codes): Moved from genrecog.c. Add lineno
12554 (valid_predicate_name_p): New function, split out from old
12555 genpreds.c:process_define_predicate.
12556 (process_define_predicate): New function, combining code from
12557 old genpreds.c and genrecog.c functions.
12558 (process_rtx): Call it for DEFINE_PREDICATE and
12559 DEFINE_SPECIAL_PREDICATE.
12561 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
12563 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
12564 size of a '%A' memory reference.
12565 (T_DREG, T_QREG): New neon_builtin_type_bits.
12566 (arm_init_neon_builtins): Assert that the load and store operands
12567 are neon_struct_operands.
12568 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
12569 (NEON_ARG_MEMORY): New builtin_arg.
12570 (neon_dereference_pointer): New function.
12571 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
12572 Handle NEON_ARG_MEMORY.
12573 (arm_expand_neon_builtin): Update after above interface changes.
12574 Use NEON_ARG_MEMORY for loads and stores.
12575 * config/arm/predicates.md (neon_struct_operand): New predicate.
12576 * config/arm/iterators.md (V_two_elem): Tweak formatting.
12577 (V_three_elem): Use BLKmode for accesses that have no associated mode.
12578 (V_four_elem): Tweak formatting.
12579 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
12580 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
12581 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
12582 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
12583 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
12584 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
12585 (neon_vst4<mode>): Replace pointer operand with a memory operand.
12586 Use %A in the output template.
12587 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
12588 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
12589 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
12590 the width of the memory access. Remove post-increment.
12591 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
12593 2011-04-12 Nick Clifton <nickc@redhat.com>
12595 * config/v850/v850.c (expand_prologue): Do not use the CALLT
12596 instruction for interrupt handlers if the target is the basic V850
12598 (expand_epilogue): Likewise.
12600 2011-04-12 Jakub Jelinek <jakub@redhat.com>
12602 PR rtl-optimization/48549
12603 * combine.c (propagate_for_debug): Also stop after BB_END of
12604 this_basic_block. Process LAST and just stop processing after it.
12605 (combine_instructions): If last_combined_insn has been deleted,
12606 set last_combined_insn to its PREV_INSN.
12608 2011-04-12 Richard Guenther <rguenther@suse.de>
12610 PR tree-optimization/46076
12611 * gimple.h (struct gimple_statement_call): Add fntype field.
12612 (gimple_call_fntype): Adjust.
12613 (gimple_call_set_fntype): New function.
12614 * gimple.c (gimple_build_call_1): Set the call function type.
12615 * gimplify.c (gimplify_call_expr): Preserve the function
12616 type the frontend used for the call.
12617 (gimplify_modify_expr): Likewise.
12618 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
12620 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
12622 * tree-ssa.c (useless_type_conversion_p): Function pointer
12623 conversions are useless.
12625 2011-04-12 Martin Jambor <mjambor@suse.cz>
12627 * cgraph.h (cgraph_node): Remove function declaration.
12628 (cgraph_create_node): Declare.
12629 (cgraph_get_create_node): Likewise.
12630 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
12631 Updated all callers.
12632 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
12633 the decl does not already exist. Call cgraph_get_create_node instead
12635 (cgraph_get_create_node): New function.
12636 (cgraph_same_body_alias): Update comment.
12637 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
12638 assert it does not return NULL.
12639 (cgraph_update_edges_for_call_stmt): Likewise.
12640 (cgraph_clone_edge): Likewise.
12641 (cgraph_create_virtual_clone): Likewise.
12642 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
12643 instead of cgraph_node.
12644 (cgraph_add_new_function): Call cgraph_create_node or
12645 cgraph_get_create_node instead of cgraph_node.
12646 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
12647 instead of cgraph_node.
12648 (record_eh_tables): Likewise.
12649 (mark_address): Likewise.
12650 (mark_load): Likewise.
12651 (build_cgraph_edges): Call cgraph_get_create_node instead
12653 (rebuild_cgraph_edges): Likewise.
12654 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
12655 instead of cgraph_node.
12656 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
12658 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
12659 cgraph_create_node instead of cgraph_node.
12660 * c-decl.c (finish_function): Call cgraph_get_create_node instead
12662 * lto-cgraph.c (input_node): Likewise.
12663 * lto-streamer-in.c (input_function): Likewise.
12664 * varasm.c (mark_decl_referenced): Likewise.
12665 (assemble_alias): Likewise.
12667 2011-04-12 Martin Jambor <mjambor@suse.cz>
12669 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
12670 instead of cgraph_node and assert it does not return NULL.
12671 * lto-streamer-in.c (lto_read_body): Likewise.
12672 * omp-low.c (new_omp_context): Likewise.
12673 (create_task_copyfn): Likewise.
12674 * tree-emutls.c (lower_emutls_function_body): Likewise.
12675 * matrix-reorg.c (transform_allocation_sites): Likewise.
12677 2011-04-12 Jakub Jelinek <jakub@redhat.com>
12680 * c-typeck.c (build_asm_expr): Error out on attempts to use
12681 void type outputs or inputs for constraints that allow reg or
12682 don't allow memory.
12684 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
12685 Richard Earnshaw <rearnsha@arm.com>
12688 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
12689 to use sign-magnitude offsets. Reject unsupported unaligned
12690 cases. Add detailed description in comments.
12691 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
12692 condition from TARGET_32BIT to TARGET_ARM.
12694 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
12696 * tree.h (struct typed_tree): New.
12697 (struct tree_common): Include it instead of tree_base.
12698 (TREE_TYPE): Update for new location of type field.
12699 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
12700 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
12701 (union tree_node): Add typed field.
12702 * treestruct.def (TS_TYPED): New.
12703 * lto-streamer.c (check_handled_ts_structures): Handle it.
12704 * tree.c (MARK_TS_TYPED): New macro.
12705 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
12707 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
12709 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
12710 (force_nonfallthru): Do not alter the loop nest if no basic block
12713 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
12715 * config/i386/sse.md (VI): New mode iterator.
12716 (SSEMODEI): Remove.
12717 (AVX256MODEI): Ditto.
12718 (AVXMODEF4P): Ditto.
12719 (avxvecpsmode): Ditto.
12720 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
12721 (sse2_andnot<mode>3): New expander.
12722 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
12723 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
12724 (<any_logic:code><mode>3): Use VI mode iterator.
12725 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
12726 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
12727 (*andnottf3): Handle AVX three-operand constraints.
12728 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
12730 2011-04-11 Joseph Myers <joseph@codesourcery.com>
12731 Robert Millan <rmh@gnu.org>
12733 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
12734 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
12735 GNU_USER_DYNAMIC_LINKER64): Define.
12736 (REG_NAME): Don't undefine.
12737 (MD_UNWIND_SUPPORT): Undefine.
12738 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
12739 (REG_NAME): Don't undefine.
12740 (MD_UNWIND_SUPPORT): Undefine.
12741 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
12743 2011-04-11 Joseph Myers <joseph@codesourcery.com>
12745 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
12746 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
12748 2011-04-11 Xinliang David Li <davidxl@google.com>
12750 * value-profile.c (check_ic_target): New function.
12751 (gimple_ic_transform): Sanity check indirect call target.
12752 * gimple-low.c (gimple_check_call_args): Interface change.
12753 (gimple_check_call_matching_types): New function.
12754 * tree-inline.c (tree_can_inline_p): Call new function.
12756 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
12758 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
12759 tree-pretty-print.h & realmpfr.h.
12761 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
12763 PR middle-end/48464
12764 * ira.c (setup_pressure_classes): Fix typo in loop condition.
12765 (setup_allocno_and_important_classes): Ditto.
12767 2011-04-11 Joseph Myers <joseph@codesourcery.com>
12769 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
12770 GNU_USER_DYNAMIC_LINKER.
12771 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
12772 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12773 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
12774 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12775 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12776 GNU_USER_TARGET_OS_CPP_BUILTINS.
12777 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
12778 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12779 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12780 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12781 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
12782 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12783 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12784 GNU_USER_TARGET_OS_CPP_BUILTINS.
12785 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12786 GNU_USER_DYNAMIC_LINKER.
12787 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12788 GNU_USER_TARGET_OS_CPP_BUILTINS.
12789 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
12790 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12791 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
12792 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12793 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
12794 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
12795 GNU_USER_DYNAMIC_LINKER64): Remove.
12796 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
12797 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12798 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12799 GNU_USER_DYNAMIC_LINKER.
12800 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12801 GNU_USER_TARGET_OS_CPP_BUILTINS.
12802 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12803 GNU_USER_TARGET_OS_CPP_BUILTINS.
12804 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
12805 to GNU_USER_TARGET_OS_CPP_BUILTINS.
12806 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
12807 GNU_USER_TARGET_OS_CPP_BUILTINS.
12808 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
12809 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
12810 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
12811 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
12812 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12813 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12814 GNU_USER_DYNAMIC_LINKER.
12815 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
12816 GNU_USER_TARGET_OS_CPP_BUILTINS.
12817 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
12818 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12819 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12820 GNU_USER_DYNAMIC_LINKER.
12821 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12822 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12823 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
12824 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12825 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12826 GNU_USER_DYNAMIC_LINKER.
12827 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
12828 GNU_USER_DYNAMIC_LINKERN32.
12829 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
12830 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
12831 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
12832 GNU_USER_DYNAMIC_LINKER32.
12833 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
12834 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12835 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12836 GNU_USER_DYNAMIC_LINKER.
12837 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
12838 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12839 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
12840 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12841 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12842 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
12843 GNU_USER_DYNAMIC_LINKER32.
12844 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
12845 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
12846 GNU_USER_DYNAMIC_LINKER.
12847 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
12848 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12849 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
12850 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
12851 GNU_USER_DYNAMIC_LINKER64.
12852 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
12853 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12854 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12855 GNU_USER_DYNAMIC_LINKER.
12856 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
12857 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12858 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
12859 GNU_USER_DYNAMIC_LINKER.
12860 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
12861 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12862 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
12863 GNU_USER_DYNAMIC_LINKER32.
12864 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
12865 GNU_USER_DYNAMIC_LINKER64.
12866 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
12867 GNU_USER_DYNAMIC_LINKER64.
12868 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
12869 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12870 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
12871 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
12872 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
12874 2011-04-11 Joseph Myers <joseph@codesourcery.com>
12876 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
12877 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
12878 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
12879 GNU_USER_DYNAMIC_LINKER.
12880 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
12881 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
12882 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
12883 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
12884 GNU_USER_DYNAMIC_LINKER64.
12885 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
12886 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
12887 GNU_USER_LINK_EMULATION.
12888 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
12889 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
12890 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
12891 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
12892 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
12893 CPP_SPEC, CC1_SPEC): Remove.
12894 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
12895 (GNU_USER_DYNAMIC_LINKER): Define.
12896 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
12897 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
12898 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
12899 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
12900 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
12901 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
12902 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
12903 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
12904 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
12905 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
12906 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
12907 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
12908 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
12909 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
12910 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
12911 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
12912 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12913 GNU_USER_DYNAMIC_LINKER.
12914 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12915 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
12916 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12917 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
12918 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
12919 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
12920 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
12921 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
12922 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
12923 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
12925 2011-04-11 Kai Tietz <ktietz@redhat.com>
12929 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
12930 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
12932 (ix86_is_msabi_thiscall): Removed.
12933 (ix86_is_type_thiscall): Likewise.
12934 (ix86_get_callcvt): New function.
12935 (ix86_comp_type_attributes): Simplify check.
12936 (ix86_function_regparm): Use ix86_get_callcvt for calling
12937 convention attribute checks.
12938 (ix86_return_pops_args): Likewise.
12939 (ix86_static_chain): Likewise.
12940 (x86_this_parameter): Likewise.
12941 (x86_output_mi_thunk): Likewise.
12942 (ix86_function_type_abi): Optimize check for types without attributes.
12943 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
12944 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
12945 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
12947 (IX86_BASE_CALLCVT): Helper macro.
12948 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
12949 Use ix86_get_callcvt for calling convention attribute checks and avoid
12950 symbol-decoration for stdcall in TARGET_RTD case.
12951 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
12953 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
12956 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
12958 * config/i386/sse.md (VI_128): New mode iterator.
12959 (VI12_128): Rename from SSEMODE12.
12960 (VI14_128): Rename from SSEMODE14.
12961 (VI124_128): New mode iterator.
12962 (VI24_128): Rename from SSEMODE248.
12963 (VI248_128): Rename from SSEMODE248.
12964 (SSEMODE124C8): Remove.
12965 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
12966 (*sse2_<plusminus_insn><mode>3): Merge with
12967 *avx_<plusminus_insn><mode>3.
12968 (*mulv8hi3): Merge with *avx_mulv8hi3.
12969 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
12970 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
12971 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
12972 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
12973 (ashr<mode>3): Merge with *avx_ashr<mode>3.
12974 (lshr<mode>3): Merge with *avx_lshr<mode>3.
12975 (ashl<mode>3): Merge with *avx_ashl<mode>3.
12976 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
12977 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
12978 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
12979 (*<smaxmin:code>v8hi3): Ditto.
12980 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
12981 (*<smaxmin:code>v16qi3): Ditto.
12982 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
12983 (*sse2_eq<mode>3): Ditto.
12984 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
12985 (*sse2_gt<mode>3): Ditto.
12986 (vcondv2di): Split out of vcond<mode>.
12987 (vconduv2di): Split out of vcondu<mode>.
12989 2011-04-11 Richard Guenther <rguenther@suse.de>
12991 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
12992 before calling tree_low_cst.
12994 2011-04-11 Richard Guenther <rguenther@suse.de>
12996 * stor-layout.c (layout_type): Compute all array index size operations
12997 in the original type.
12998 (initialize_sizetypes): Add comment.
12999 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
13001 2011-04-11 Joseph Myers <joseph@codesourcery.com>
13003 * common.opt (Tbss=, Tdata=, Ttext=): New options.
13005 2011-04-11 Martin Jambor <mjambor@suse.cz>
13007 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
13008 of cgraph_node, handle NULL return value.
13009 (cgraph_global_info): Likewise.
13010 (cgraph_rtl_info): Likewise.
13011 * tree-inline.c (estimate_num_insns): Likewise.
13012 * gimplify.c (unshare_body): Likewise.
13013 (unvisit_body): Likewise.
13014 (gimplify_body): Likewise.
13015 * predict.c (optimize_function_for_size_p): Likewise.
13016 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
13017 (call_may_clobber_ref_p_1): Likewise.
13018 * varasm.c (function_section_1): Likewise.
13019 (assemble_start_function): Likewise.
13021 2011-04-11 Martin Jambor <mjambor@suse.cz>
13023 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
13025 * final.c (rest_of_clean_state): Likewise.
13026 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
13027 * passes.c (pass_init_dump_file): Likewise.
13028 (execute_all_ipa_transforms): Likewise.
13029 (function_called_by_processed_nodes_p): Likewise.
13030 * predict.c (maybe_hot_frequency_p): Likewise.
13031 (probably_never_executed_bb_p): Likewise.
13032 (compute_function_frequency): Likewise.
13033 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
13034 (unnest_nesting_tree_1): Likewise.
13035 (lower_nested_functions): Likewise.
13036 * tree-optimize.c (execute_fixup_cfg): Likewise.
13037 (tree_rest_of_compilation): Likewise.
13038 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
13039 * tree-sra.c (ipa_early_sra): Likewise.
13040 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13041 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
13042 * ipa.c (record_cdtor_fn): Likewise.
13043 * ipa-inline.c (cgraph_early_inlining): Likewise.
13044 (compute_inline_parameters_for_current): Likewise.
13045 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
13046 * ipa-pure-const.c (local_pure_const): Likewise.
13047 * ipa-split.c (split_function): Likewise.
13048 (execute_split_functions): Likewise.
13049 * cgraphbuild.c (build_cgraph_edges): Likewise.
13050 (rebuild_cgraph_edges): Likewise.
13051 (cgraph_rebuild_references): Likewise.
13052 (remove_cgraph_callee_edges): Likewise.
13053 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
13054 (verify_cgraph_node): Likewise.
13055 (cgraph_analyze_functions): Likewise.
13056 (cgraph_preserve_function_body_p): Likewise.
13057 (save_inline_function_body): Likewise.
13058 (save_inline_function_body): Likewise.
13059 * tree-inline.c (copy_bb): Likewise.
13060 (optimize_inline_calls): Likewise.
13062 2011-04-11 Martin Jambor <mjambor@suse.cz>
13064 PR tree-optimization/48195
13065 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
13066 ipa_check_create_edge_args.
13067 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
13068 ipa_check_create_edge_args.
13069 * ipa-inline.c (inline_generate_summary): Do not call
13070 ipa_check_create_node_params and ipa_check_create_edge_args.
13071 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
13072 ipa_check_create_edge_args.
13074 2011-04-09 Anatoly Sokolov <aesok@post.ru>
13076 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
13078 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13079 * function.c (record_hard_reg_sets): Likewise.
13080 * ira.c (compute_regs_asm_clobbered): Likewise.
13081 * sched-deps.c (sched_analyze_1): Likewise.
13082 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
13084 2011-04-09 Xinliang David Li <davidxl@google.com>
13086 PR tree-optimization/PR48484
13087 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
13088 has_valid_pred lazily
13090 2011-04-09 Duncan Sands <baldrick@free.fr>
13092 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
13094 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
13096 * combine.c (combine_validate_cost): Adjust comments. Set registered
13097 cost of I0 to zero at the end, if any.
13099 2011-04-08 Xinliang David Li <davidxl@google.com>
13101 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
13102 to insane profile data.
13104 2011-04-08 Xinliang David Li <davidxl@google.com>
13106 * ipa-cp.c (ipcp_update_profiling): Correct
13107 negative scale factor due to insane profile data.
13109 2011-04-08 Xinliang David Li <davidxl@google.com>
13111 * final.c (dump_basic_block_info): New function.
13112 (final): Dump basic block.
13113 (final_scan_insn): Remove old dump.
13115 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
13118 * config.gcc (i386-*-freebsd): Disable unwind table generation for
13121 2011-04-08 Michael Matz <matz@suse.de>
13123 PR middle-end/48389
13124 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
13126 (rebuild_jump_labels): Call rebuild_jump_labels_1.
13127 * rtl.h (rebuild_jump_labels_chain): Declare.
13128 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
13129 insns inserted on edges.
13131 2011-04-08 Joseph Myers <joseph@codesourcery.com>
13133 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
13134 * config/arm/arm-arches.def: New.
13135 * config/arm/arm-opts.h: New.
13136 * config/arm/genopt.sh: New.
13137 * config/arm/arm-tables.opt: New (generated).
13138 * config/arm/arm.c (arm_handle_option, arm_target_help,
13139 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
13140 (all_architectures): Get most table contents from arm-arches.def.
13141 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
13142 arm_selected_tune here.
13143 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
13144 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
13145 (march=, mcpu=, mtune=): Use Enum and Var.
13146 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
13147 (arm.o): Update dependencies.
13149 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
13151 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
13153 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
13154 (write_typed_alloc_defns): Likewise.
13155 (main): Calls write_typed_alloc_defns with output_header.
13157 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
13159 PR inline-asm/48435
13160 * ira-color.c (setup_profitable_hard_regs): Add comments.
13161 Don't take prohibited hard regs into account.
13162 (setup_conflict_profitable_regs): Rename to
13163 get_conflict_profitable_regs.
13164 (check_hard_reg_p): Check prohibited hard regs.
13166 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
13168 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
13169 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
13170 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
13172 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13175 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
13176 move from floating point to shift amount register.
13177 (emit_move_sequence): Remove secondary reload support for floating
13178 point to shift amount amount register copies.
13179 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
13180 amount register copies.
13181 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
13182 register, return false if mode isn't a scalar integer mode.
13183 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
13185 2011-04-08 Richard Guenther <rguenther@suse.de>
13187 * gimple.c (gimple_call_flags): Remove kludge.
13189 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13191 * sel-sched.c (sel_region_init): Move call to
13192 sel_setup_region_sched_flags after setup_current_loop_nest.
13194 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
13196 PR rtl-optimization/48272
13197 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
13198 init_insn_reg_pressure_info. Adjust a caller.
13199 * sched-int.h (init_insn_reg_pressure_info): Declare.
13200 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
13201 when sched-pressure is enabled.
13203 2011-04-08 Richard Guenther <rguenther@suse.de>
13205 * gimple.c (gimple_set_modified): Do not queue calls to
13206 MODIFIED_NORETURN_CALLS here ...
13207 * tree-ssa-operands.c (update_stmt_operands): ... but here.
13209 2011-04-08 Richard Guenther <rguenther@suse.de>
13212 * toplev.c (lang_dependent_init): Do not open asm_out_file
13213 in WPA mode, nor perform debug machinery initialization.
13214 (finalize): Do not unlink asm_out_file in WPA mode.
13216 2011-04-08 Richard Guenther <rguenther@suse.de>
13218 * gimple.h (gimple_call_fntype): New function.
13219 (gimple_call_return_type): Use it.
13220 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
13221 * gimple-low.c (gimple_check_call_args): Likewise.
13222 * gimple.c (gimple_call_flags): Likewise.
13223 (gimple_call_arg_flags): Likewise.
13224 (gimple_call_return_flags): Likewise.
13225 * tree-cfg.c (verify_gimple_call): Likewise.
13226 (do_warn_unused_result): Likewise.
13227 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
13228 * value-prof.c (gimple_ic_transform): Fix fndecl check.
13230 2011-04-08 Dmitry Melnik <dm@ispras.ru>
13232 PR rtl-optimization/48235
13233 * sel-sched.c (code_motion_process_successors): Recompute the last
13234 insn in basic block if control flow changed.
13235 (code_motion_path_driver): Ditto. Recompute the first insn as well.
13236 Update condition for ilist_remove.
13238 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13240 PR rtl-optimization/48302
13241 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
13242 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
13243 it to record added preheader blocks.
13244 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
13245 on to sel_add_loop_preheaders.
13246 (sel_region_init): Move call to setup_current_loop_nest after
13249 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13252 * cfgloop.h (loop_has_exit_edges): New helper.
13253 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
13255 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
13256 that have no exit edges.
13258 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
13260 PR rtl-optimization/48442
13261 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
13262 all callers. Adjust assert.
13264 2011-04-08 Jakub Jelinek <jakub@redhat.com>
13266 PR tree-optimization/48377
13267 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
13268 is_packed to true even for types with smaller TYPE_ALIGN than
13271 2011-04-08 Richard Guenther <rguenther@suse.de>
13274 * doc/tm.texi: Re-generate.
13276 2011-04-08 Wei Guozhi <carrot@google.com>
13279 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
13280 * config/arm/arm.c (arm_attr_length_push_multi): New function.
13281 * config/arm/arm.md (*push_multi): Change the length computation to
13284 2011-04-08 Anatoly Sokolov <aesok@post.ru>
13286 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
13287 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
13288 * doc/tm.texi: Regenerate.
13289 * system.h (ASM_OUTPUT_BSS): Poison.
13290 * varasm.c (asm_output_bss): Remove function.
13291 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
13293 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
13294 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
13295 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
13296 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13298 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13300 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
13302 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
13304 2011-04-07 Joseph Myers <joseph@codesourcery.com>
13306 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
13309 2011-04-07 Joseph Myers <joseph@codesourcery.com>
13311 * config/m68k/m68k.c (m68k_handle_option): Don't handle
13312 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
13313 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
13315 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13316 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
13317 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
13318 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
13319 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
13320 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
13321 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13322 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
13323 options. Don't map other m68k options manually. Don't handle
13324 old-style options as canonical.
13325 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
13326 * doc/install.texi (m68k-*-*): Document binutils version requirement.
13328 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
13330 * basic-block.h (force_nonfallthru): Move to...
13331 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
13332 (force_nonfallthru): ...here.
13333 * cfghooks.c (force_nonfallthru): New function.
13334 * cfgrtl.c (force_nonfallthru): Rename into...
13335 (rtl_force_nonfallthru): ...this.
13336 (commit_one_edge_insertion): Do not set AUX field.
13337 (commit_edge_insertions): Do not discover new basic blocks.
13338 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
13339 (cfg_layout_rtl_cfg_hooks): Likewise.
13340 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
13341 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
13342 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
13344 2011-04-07 Anatoly Sokolov <aesok@post.ru>
13346 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13349 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
13351 * config/i386/sse.md: Update copyright year.
13352 (avxcvtvecmode): Remove.
13353 (sse_movhlps): Merge with *avx_movhlps.
13354 (sse_movlhps): Merge with *avx_movlhps.
13355 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
13356 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
13357 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
13358 (sse_loadhps): Merge with *avx_loadhps.
13359 (sse_storelps): Merge with *avx_storelps.
13360 (sse_loadlps): Merge with *avx_loadlps.
13361 (sse_movss): Merge with *avx_movss.
13362 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
13363 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
13364 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
13365 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
13366 (vec_set<mode>_0): Ditto.
13367 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
13368 (sse4_1_insertps): Merge with *avx_insertps.
13369 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
13370 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
13371 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
13372 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
13373 (sse2_storehpd): Merge with *avx_storehpd.
13374 (sse2_loadhpd): Merge with *avx_loadhpd.
13375 (sse2_loadlpd): Merge with *avx_loadlpd.
13376 (sse2_movsd): Merge with *avx_movsd.
13377 (*vec_concatv2df): Merge with *vec_concatv2df.
13379 2011-04-07 Jakub Jelinek <jakub@redhat.com>
13382 * combine.c (combine_instructions): Add last_combined_insn,
13383 update it if insn is after it, pass it to all try_combine calls.
13384 (try_combine): Add last_combined_insn parameter, pass it instead of
13385 i3 to propagate_for_debug.
13387 2011-04-07 Nick Clifton <nickc@redhat.com>
13389 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
13390 to handle MDR <-> data register transfers.
13391 (movhi_internal): Likewise.
13393 2011-04-07 Alan Modra <amodra@gmail.com>
13395 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
13396 previous stack info.
13398 2011-04-07 Tom de Vries <tom@codesourcery.com>
13401 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
13402 flow_find_cross_jump. Swap variables to implement backward replacement.
13403 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
13405 2011-04-07 Tom de Vries <tom@codesourcery.com>
13408 * cfgcleanup.c (walk_to_nondebug_insn): New function.
13409 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
13411 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
13412 src1 or src2. Redirect edges to the last basic block. Update
13413 frequency and count on multiple basic blocks in case of fallthru.
13415 2011-04-07 Tom de Vries <tom@codesourcery.com>
13418 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
13420 (old_insns_match_p): Change return type. Replace return false/true
13421 with return dir_none/dir_both. Use can_replace_by.
13422 (flow_find_cross_jump): Add dir_p parameter. Init replacement
13423 direction from dir_p. Register replacement direction in dir, last_dir
13424 and afterlast_dir. Handle new return type of old_insns_match_p using
13425 merge_dir. Return replacement direction in dir_p.
13426 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
13427 return type of old_insns_match_p.
13428 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
13429 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
13430 flow_find_cross_jump.
13431 * basic-block.h (enum replace_direction): New type.
13432 (flow_find_cross_jump): Add parameter to declaration.
13434 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
13436 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
13437 (AVXMODEDCVTPS2DQ): Ditto.
13438 (VEC_FLOAT_MODE): Ditto.
13439 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
13440 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13441 (<any_logic:code><mode>3): Use VF mode iterator.
13442 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
13443 Use VF mode iterator.
13444 (copysign<mode>3): Use VF mode iterator.
13445 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
13446 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
13447 (*<any_logic:code><MODEF:mode>3): Merge with
13448 *avx_<any_logic:code><MODEF:mode>3.
13449 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
13450 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
13451 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
13452 (avx_cvtdq2ps<avxmodesuffix>): Remove.
13453 (sse2_cvtdq2ps): Use %v modifier.
13454 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
13455 (avx_cvtps2dq<avxmodesuffix>): Remove.
13456 (sse2_cvtps2dq): Use %v modifier.
13457 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
13458 (avx_cvttps2dq<avxmodesuffix>): Remove.
13459 (sse2_cvttps2dq): Use %v modifier.
13460 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
13461 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
13462 (sse2_cvtsd2siq): Fix insn template.
13463 (sse2_cvtsd2siq_2): Ditto.
13464 (sse2_cvttsd2siq): Ditto.
13465 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
13466 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
13468 2011-04-06 Joseph Myers <joseph@codesourcery.com>
13470 * gcov-io.c: Use GCC Runtime Library Exception.
13472 2011-04-06 Jakub Jelinek <jakub@redhat.com>
13475 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
13476 as base_reg whatever register reg has been eliminated to, instead
13477 of hardcoding STACK_POINTER_REGNUM.
13479 2011-04-06 Joseph Myers <joseph@codesourcery.com>
13481 * doc/tm.texi.in: Document C target hooks as separate from general
13483 * doc/tm.texi: Regenerate.
13484 * genhooks.c (struct hook_desc): Add docname field.
13485 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
13487 (hook_array): Include c-target.def.
13488 (emit_documentation): Use docname field in output.
13489 (emit_init_macros): Take docname argument. Only emit definitions
13490 for hooks matching docname.
13491 (main): Expect additional arguments in all cases. Pass argument
13492 to emit_init_macros.
13493 * target.def: Move initial macro definitions and comments to
13494 target-hooks-macros.h.
13495 (gcc_targetcm): Move to c-family/c-target.def.
13496 * target.h (targetcm): Move declaration to c-family/c-target.h.
13497 * targhooks.c (default_handle_c_option): Move to
13499 * targhooks.h (default_handle_c_option): Move declaration to
13500 c-family/c-common.h.
13501 * target-hooks-macros.h: New file.
13502 * config.gcc (target_has_targetcm): Define and use to add to
13503 c_target_objs and cxx_target_objs.
13504 * config/default-c.c: New file.
13505 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
13506 of target.h and target-def.h.
13507 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
13508 (darwin_objc_construct_string, darwin_cfstring_ref_p,
13509 darwin_check_cfstring_format_arg): Make static.
13510 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13511 TARGET_STRING_OBJECT_REF_TYPE_P,
13512 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
13513 * config/darwin-protos.h (darwin_objc_construct_string,
13514 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
13516 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
13517 TARGET_STRING_OBJECT_REF_TYPE_P,
13518 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
13519 * config/t-darwin (darwin-c.o): Update dependencies.
13520 * system.h (TARGET_HAS_TARGETCM): Poison.
13521 * Makefile.in (TARGET_H): Update.
13522 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
13523 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
13524 (default-c.o): New target.
13525 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
13526 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
13527 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
13529 (build/genhooks.o): Update dependencies.
13531 2011-04-06 Richard Guenther <rguenther@suse.de>
13533 * ipa-inline.c (enum inlining_mode): Remove.
13534 (cgraph_flatten): Use some other token.
13535 (cgraph_edge_early_inlinable_p): New function, split out from ...
13536 (cgraph_perform_always_inlining): New function, split out from ...
13537 (cgraph_decide_inlining_incrementally): ... here.
13538 (cgraph_mark_inline_edge): Adjust.
13539 (cgraph_early_inlining): Re-structure.
13540 (pass_early_inline): Require SSA form.
13542 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
13543 Julian Brown <julian@codesourcery.com>
13544 Mark Shinwell <shinwell@codesourcery.com>
13546 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
13547 LO_REGS only for Thumb-1.
13548 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
13549 be used in short instructions when optimising for size on Thumb-2.
13551 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
13553 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
13554 associated with user returns to be preserved.
13556 2011-04-06 Tristan Gingold <gingold@adacore.com>
13558 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
13559 symbol_queue_size, DBXOUT_DECR_NESTING,
13560 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
13561 if XCOFF_DEBUGGING_INFO.
13563 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
13565 * config/i386/i386.md (attribute isa): New.
13566 (attribute enabled): New.
13567 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
13568 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
13569 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
13570 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
13571 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
13572 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13573 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
13574 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
13576 * config/i386/sse.md (VF): New mode iterator.
13580 (SSEMODEF4): Remove.
13581 (attribute sse): Handle V8SF and V4DF modes.
13582 (<absneg:code><mode>2): Use VF mode iterator.
13583 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
13585 (<plusminus_insn><mode>3): Use VF mode iterator.
13586 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
13587 Use VF mode iterator.
13588 (<sse>_vm<plusminus_insn><mode>3): Merge with
13589 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
13590 (mul<mode>3): Use VF mode iterator.
13591 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
13592 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
13594 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
13595 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
13596 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
13597 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
13599 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
13600 Use VF1 mode iterator.
13601 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
13602 (sqrt<VF2:mode>2): New expander.
13603 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
13604 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
13605 and sqrtv2df2. Use VF mode iterator.
13606 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
13608 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
13609 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
13610 Use VF1 mode iterator.
13611 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
13612 (<smaxmin:code><mode>3): Use VF mode iterator.
13613 (*<smaxmin:code><mode>3_finite): Merge with
13614 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
13615 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
13616 (<sse>_vm<smaxmin:code><mode>2): Merge with
13617 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
13618 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
13620 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
13622 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
13623 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
13624 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
13625 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
13626 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
13628 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
13629 Use VF_128 mode iterator.
13630 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
13632 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
13633 VF_128 mode iterator.
13634 (vcond<mode>): Use VF mode iterator.
13635 * config/i386/predicates.md (sse_comparison_operator): Merge with
13636 avx_comparison_float_operator. Do not declare as special_predicate.
13637 * config/i386/i386.c (struct builtin_description): Update for renamed
13639 (ix86_expand_args_builtin): Ditto.
13640 (ix86_expand_sse_compare_mask): Ditto.
13642 2011-04-06 Richard Guenther <rguenther@suse.de>
13644 * tree-inline.c (estimate_num_insns): For calls simply account
13645 for all passed arguments and a used return value.
13647 2011-04-06 Richard Guenther <rguenther@suse.de>
13649 PR tree-optimization/47663
13650 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
13651 call_stmt_time fields.
13652 (cgraph_edge_inlinable_p): Declare.
13653 (cgraph_edge_recursive_p): New inline function.
13654 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
13655 (cgraph_clone_edge): Copy it.
13656 * ipa-inline.c (cgraph_estimate_edge_time): New function.
13657 Account for call stmt time.
13658 (cgraph_estimate_time_after_inlining): Take edge argument.
13659 (cgraph_estimate_edge_growth): Account call stmt size.
13660 (cgraph_estimate_size_after_inlining): Take edge argument.
13661 (cgraph_mark_inline_edge): Adjust.
13662 (cgraph_check_inline_limits): Likewise.
13663 (cgraph_recursive_inlining_p): Remove.
13664 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
13665 (cgraph_decide_recursive_inlining): Take edge argument and
13667 (cgraph_decide_inlining_of_small_functions): Do not avoid
13668 diags for recursive inlining here.
13669 (cgraph_flatten): Adjust.
13670 (cgraph_decide_inlining_incrementally): Likewise.
13671 (estimate_function_body_sizes): Remove call cost handling.
13672 (compute_inline_parameters): Initialize caller edge call costs.
13673 (cgraph_estimate_edge_growth): New function.
13674 (cgraph_estimate_growth): Use it.
13675 (cgraph_edge_badness): Likewise.
13676 (cgraph_check_inline_limits): Take an edge argument.
13677 (cgraph_decide_inlining_of_small_functions): Adjust.
13678 (cgraph_decide_inlining): Likewise.
13679 * tree-inline.c (estimate_num_insns): Only account for call
13680 return value if it is used.
13681 (expand_call_inline): Avoid diagnostics on recursive inline
13683 * lto-cgraph.c (lto_output_edge): Output edge call costs.
13684 (input_edge): Input edge call costs.
13686 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13688 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
13690 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
13692 * doc/invoke.texi (Spec Files): Fix typo.
13694 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
13696 * profile.c (branch_prob): Move declaration of local variable. Remove
13697 obsolete ??? comment. Expand the location explicitly instead of using
13698 the LOCATION_FILE and LOCATION_LINE macros.
13700 2011-04-06 Wei Guozhi <carrot@google.com>
13703 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
13704 (arm_cond_branch): Likewise.
13705 (arm_cond_branch_reversed): Likewise.
13706 (arm_jump): Likewise.
13707 (push_multi): Likewise.
13708 * config/arm/constraints.md (Py): New constraint.
13710 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13713 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
13715 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
13716 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
13717 #ifdef DBX_DEBUGGING_INFO.
13719 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
13722 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
13723 if old and new states differ.
13725 2011-04-05 Joseph Myers <joseph@codesourcery.com>
13727 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
13728 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
13729 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
13730 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
13731 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
13732 mcfv4e): Use Alias.
13733 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
13734 ColdFire options to -mcpu= options.
13736 2011-04-05 Jeff Law <law@redhat.com>
13738 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
13739 check if BB is a successor of LOOP->header and return
13740 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
13742 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
13744 * cprop.c (struct reg_use): Remove.
13745 (reg_use_table): Make an array of RTX.
13746 (find_used_regs, constprop_register, local_cprop_pass,
13747 bypass_block): Simplify users of reg_use_table.
13748 (cprop_insn): Likewise. Iterate if copy propagation succeeded
13749 on one of the uses found by find_used_regs.
13751 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13754 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
13757 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13759 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
13761 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
13763 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
13765 PR middle-end/48441
13766 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
13768 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13770 * combine.c: Include obstack.h.
13771 (struct insn_link): Define.
13772 (uid_log_links): Adjust type.
13773 (FOR_EACH_LOG_LINK): New macro.
13774 (insn_link_obstack): Declare.
13775 (alloc_insn_link): Define.
13776 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
13777 type of link variables.
13778 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
13779 (try_combine, record_promoted_values, distribute_notes): Likewise.
13780 (distribute_links): Likewise. Tweak prototype.
13781 (clear_log_links): Delete.
13782 (adjust_for_new_dest): Call alloc_insn_link.
13783 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
13785 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13787 * gcse.c (modify_mem_list): Convert to an array of VECs.
13788 (canon_modify_mem_list, compute_transp): Tweak formatting.
13789 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
13790 (load_killed_in_block_p): Likewise.
13791 (record_last_mem_set_info): Likewise.
13792 (clear_modify_mem_tables): Likewise.
13794 2011-04-05 Tom de Vries <tom@codesourcery.com>
13796 PR middle-end/48461
13797 * function.c (emit_use_return_register_into_block): Only define if
13800 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
13802 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
13804 2011-04-05 Joseph Myers <joseph@codesourcery.com>
13806 * config/rx/rx-opts.h: New.
13807 * config/rx/rx.c (rx_cpu_type): Remove.
13808 (rx_handle_option): Don't assert that global structures are in
13809 use. Access variables via opts pointer. Defer most handling of
13810 OPT_mint_register_. Use error_at.
13811 (rx_option_override): Handle deferred OPT_mint_register_ here.
13812 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
13813 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
13814 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
13815 (rx_cpu_types): New Enum and EnumValue entries.
13816 (mint-register=): Use Defer and use Var accordingly.
13818 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13820 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
13821 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
13822 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
13824 (debug_free_queue, debug_nesting, symbol_queue_index):
13826 * dbxout.c: ...to here. Make static.
13828 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
13830 * gcse.c (modify_pair): Define. Define a VEC of it.
13831 (canon_modify_mem_list): Convert to an array of VECs.
13832 (free_insn_expr_list_list): Delete.
13833 (clear_modify_mem_tables): Call VEC_free instead.
13834 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
13835 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
13836 (canon_list_insert, compute_transp): Likewise.
13838 2011-04-05 Tom de Vries <tom@codesourcery.com>
13841 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
13844 2011-04-05 Tom de Vries <tom@codesourcery.com>
13847 * function.c (emit_use_return_register_into_block): New function.
13848 (thread_prologue_and_epilogue_insns): Use
13849 emit_use_return_register_into_block.
13851 2011-04-05 Tom de Vries <tom@codesourcery.com>
13854 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
13857 2011-04-05 Tom de Vries <tom@codesourcery.com>
13859 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
13861 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
13863 * config/arm/arm.md (define_constants for unspec): Replace with
13865 (define_constants for unspecv): Replace with define_c_enum.
13866 * config/arm/neon.md (define_constants for unspec): Replace with
13869 2011-04-04 Richard Henderson <rth@redhat.com>
13872 * dwarf2out.c (output_line_info): Always emit line info from
13873 at least one section.
13874 (dwarf2out_init): Create text_section_line_info here ...
13875 (set_cur_line_info_table): ... not here.
13877 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
13880 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
13883 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
13885 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
13887 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
13888 (expr_equiv_p): Remove.
13889 (insert_set_in_table): Look at <dest, src> pair instead of expr.
13890 (hash_scan_set): Update call to insert_set_in_table.
13891 (dump_hash_table): Dump <dest, src> pair.
13892 (lookup_set): Simplify. Lookup <dest, src> pair.
13893 (compute_transp): Remove, fold heavily simplified code into...
13894 (compute_local_properties): ...here. Expect COMP and TRANSP
13896 (find_avail_set): Take set directly from struct expr.
13897 (find_bypass-set): Likewise.
13898 (bypass_block): Likewise.
13899 (cprop_insn): Likewise. Remove redundant INSN_P test.
13901 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
13902 checks on form of COND from find_implicit_sets to here.
13903 (find_implicit_sets): Cleanup control flow. Split critical edges
13904 if it exposes implicit sets. Allocate/resize implicit_sets as
13906 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
13907 changed something. Run df_analyze after find_implicit_sets if any
13908 edges were split. Do not allocate implicit_sets here.
13910 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
13911 (gcse_obstack): Renamed to cprop_obstack.
13912 (GNEW, GNEWVEC, GNEWVAR): Remove.
13914 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
13915 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
13916 (gcse_alloc): Likewise, and rename to cprop_alloc.
13917 (alloc_gcse_men, free_gcse_mem): Remove.
13918 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
13919 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
13920 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
13922 * cprop.c (oprs_not_set_p): Remove.
13923 (mark_set, mark_clobber): Remove.
13924 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
13925 (reg_not_set_p): New function.
13926 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
13927 (cprop_insn): Likewise.
13928 (cprop_jump): Use FOR_EACH_EDGE.
13930 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
13933 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
13934 (rank_for_schedule): Use scheduled_insns vector instead of
13935 last_scheduled_insn.
13936 (ok_for_early_queue_removal): Likewise.
13937 (queue_to_ready): Search forward in nonscheduled_insns_begin if
13939 (choose_ready): Likewise.
13940 (commit_schedule): Use VEC_iterate.
13941 (schedule_block): Initialize nonscheduled_insns_begin. If we have
13942 a dbg_cnt, use it and ensure the first insn is in the ready list.
13943 (haifa_sched_init): Allocate scheduled_insns.
13944 (sched_extend_ready_list): Don't allocate it; reserve space.
13945 (haifa_sched_finish): Free it.
13947 2011-04-04 Joseph Myers <joseph@codesourcery.com>
13949 * optc-gen.awk: Always remove type from Variable entry before
13950 recording in var_seen.
13952 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
13954 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
13955 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
13956 call to tidy_fallthru_edges.
13958 2011-04-04 Joseph Myers <joseph@codesourcery.com>
13960 * doc/options.texi (ToLower): Document.
13961 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
13962 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
13963 * opts.h (cl_option): Add cl_tolower field.
13964 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
13965 arguments with lowercase strings.
13966 * config/rx/rx.opt (mcpu=): Add ToLower.
13967 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
13970 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
13972 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
13974 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
13976 * config/vax/vax.c: Include reload.h.
13978 2011-04-04 Anatoly Sokolov <aesok@post.ru>
13980 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
13981 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13982 (sparc_preferred_reload_class): New function.
13984 2011-04-04 Jakub Jelinek <jakub@redhat.com>
13987 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
13988 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
13990 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
13992 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
13993 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
13995 2011-04-03 Anatoly Sokolov <aesok@post.ru>
13997 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
13998 (ASM_OUTPUT_ALIGNED_BSS): Define.
14000 2011-04-03 Michael Matz <matz@suse.de>
14002 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
14003 and next_slot members.
14004 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
14005 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
14006 (lto_streamer_cache_append): Declare.
14007 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
14008 unsigned index, remove offset parameter, ensure that we append
14009 or update existing entries.
14010 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
14011 parameter, update next_slot for append.
14012 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
14014 (lto_streamer_cache_insert_at): Likewise.
14015 (lto_streamer_cache_append): New function.
14016 (lto_streamer_cache_lookup): Use unsigned index.
14017 (lto_streamer_cache_get): Likewise.
14018 (lto_record_common_node): Don't test tree_node_can_be_shared.
14019 (preload_common_node): Adjust call to lto_streamer_cache_insert.
14020 (lto_streamer_cache_delete): Don't free offsets member.
14021 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
14022 (lto_output_string_with_length): Use lto_output_data_stream.
14023 (lto_output_tree_header): Remove ix parameter, don't write it.
14024 (lto_output_builtin_tree): Likewise.
14025 (lto_write_tree): Adjust callers to above, don't track and write
14026 offset, write unsigned index.
14027 (output_unreferenced_globals): Don't emit all global vars.
14028 (write_global_references): Use unsigned indices.
14029 (lto_output_decl_state_refs): Likewise.
14030 (write_symbol): Likewise.
14031 * lto-streamer-in.c (lto_input_chain): Move earlier.
14032 (input_function): Use unsigned index.
14033 (input_alias_pairs): Don't read and then ignore all global vars.
14034 (lto_materialize_tree): Remove ix_p parameter, don't read index,
14035 don't pass it back, use lto_streamer_cache_append.
14036 (lto_register_var_decl_in_symtab): Use unsigned index.
14037 (lto_register_function_decl_in_symtab): Likewise.
14038 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
14040 (lto_get_builtin_tree): Don't read index, use
14041 lto_streamer_cache_append.
14042 (lto_read_tree): Adjust call to lto_materialize_tree.
14044 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
14045 don't use function calls in arguments to MIN.
14047 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
14050 * gimple.c (gimple_type_leader_entry): Mark deletable.
14052 2011-04-03 Alan Modra <amodra@gmail.com>
14054 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
14056 2011-04-03 Michael Matz <matz@suse.de>
14058 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
14060 * tree.h (tree_decl_non_common.vindex): Adjust comment.
14062 2011-04-03 Michael Matz <matz@suse.de>
14064 * cgraphbuild.c (record_reference): Canonicalize constructor values.
14065 * gimple-fold.c (canonicalize_constructor_val): Accept being called
14066 without function context.
14067 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
14068 current_function_decl and cfun.
14070 2011-04-03 Michael Matz <matz@suse.de>
14072 * tree.c (decl_init_priority_insert): Don't create entry for
14074 (decl_fini_priority_insert): Ditto.
14075 (fields_compatible_p, find_compatible_field): Remove.
14076 * tree.h (fields_compatible_p, find_compatible_field): Remove.
14077 * gimple.c (gimple_compare_field_offset): Adjust block comment.
14079 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
14081 * combine.c (try_combine): Remove useless local variable.
14083 2011-04-03 Richard Guenther <rguenther@suse.de>
14084 Ira Rosen <ira.rosen@linaro.org>
14086 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
14087 non-variable offsets and compare the remaining bases of the two
14088 accesses instead of looking for exact same data-ref.
14090 2011-04-02 Kai Tietz <ktietz@redhat.com>
14093 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
14095 * i386.c (ix86_is_msabi_thiscall): New helper function.
14096 (ix86_is_type_thiscall): New helper function.
14097 (ix86_comp_type_attributes): Handle thiscall for method-functions
14099 (init_cumulative_args): Likewise.
14100 (find_drap_reg): Likewise.
14101 (ix86_static_chain): Likewise.
14102 (x86_this_parameter): Likewise.
14103 (x86_output_mi_thunk): Likewise.
14105 2011-04-01 Olivier Hainque <hainque@adacore.com>
14106 Nicolas Setton <setton@adacore.com>
14107 Eric Botcazou <ebotcazou@adacore.com>
14109 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
14110 (add_gnat_descriptive_type_attribute): New function.
14111 (gen_array_type_die): Call it.
14112 (gen_enumeration_type_die): Likewise.
14113 (gen_struct_or_union_type_die): Likewise.
14114 (modified_type_die): Likewise.
14115 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
14116 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
14117 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
14119 2011-04-01 Jakub Jelinek <jakub@redhat.com>
14122 * dwarf2out.c (resolve_addr): Don't call force_decl_die
14123 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
14126 2011-03-17 Richard Guenther <rguenther@suse.de>
14129 * lto-cgraph.c (input_overwrite_node): Clear the abstract
14130 origin for decls in other ltrans units.
14131 (input_varpool_node): Likewise.
14133 2011-04-01 Jakub Jelinek <jakub@redhat.com>
14135 PR middle-end/48335
14136 * expr.c (expand_assignment): Handle all possibilities
14137 if TO_RTX is CONCAT.
14138 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
14139 (store_split_bit_field): If SUBREG_REG (op0) or
14140 op0 itself has smaller mode than word, return it
14141 for offset 0 and const0_rtx for out-of-bounds stores.
14142 If word is const0_rtx, skip it.
14144 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
14146 * config/h8300/h8300.c (print_operand_address): Rename to...
14147 (h8300_print_operand_address): ...this. Make static. Adjust comments.
14148 Call h8300_print_operand and h8300_print_operand_address instead of
14149 print_operand and print_operand_address. Declare.
14150 (print_operand): Renake to...
14151 (h8300_print_operand): ...this. Make static. Adjust comments.
14152 Call h8300_print_operand instead of print_operand. Declare.
14153 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
14154 (h8300_register_move_cost): Likewise.
14155 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
14156 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
14157 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
14158 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
14159 * config/h8300/h8300-protos.h (print_operand): Delete.
14160 (print_operand_address): Delete.
14162 2011-04-01 Richard Henderson <rth@redhat.com>
14165 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
14166 in strict mode before dwarf4. Re-order tests to early out
14167 before switching sections.
14169 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
14171 * config/h8300/constraints.md: New file.
14172 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
14173 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
14174 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
14175 * config/h8300/predicates.md (bit_operand): Likewise.
14176 (incdec_operand): Use satisfies_constraint_M and
14177 satisfies_constraint_O. Don't use C code block.
14178 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
14179 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
14180 (compute_mov_length): Use satisfies_constraint_G.
14181 (fix_bit_operand): Use satisfies_constraint_U.
14182 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
14183 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
14184 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
14185 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
14186 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
14187 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
14188 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14189 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
14190 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
14191 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
14192 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
14193 (EXTRA_MEMORY_CONSTRAINT): Delete.
14195 2011-04-01 Andrew Pinski <pinskia@gmail.com>
14196 Michael Meissner <meissner@linux.vnet.ibm.com>
14199 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
14200 operands, as per the specifications.
14202 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
14203 (vec_extract_evenv4sf): Ditto.
14204 (vec_extract_evenv8hi): Ditto.
14205 (vec_extract_evenv16qi): Ditto.
14206 (vec_extract_oddv4si): Ditto.
14208 2011-03-31 Mark Wielaard <mjw@redhat.com>
14210 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
14211 high_pc attribute if the CU has no associated code. Only output
14212 DW_AT_entry_pc for CU if not generating strict dwarf and
14215 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
14217 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
14218 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
14220 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
14221 * final.c (final_start_function): Call the new function rather
14222 than using a NULL argument for dwarf2out_frame_debug.
14224 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
14225 that contains the prologue.
14227 * haifa-sched.c (queue_insn): New arg REASON. All callers
14228 changed. Print it in debugging output.
14230 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
14232 * sched-ebb.c (begin_schedule_ready): Remove second argument.
14233 Split most of the code into...
14234 (begin_move_insn): ... here. New function.
14235 (ebb_sched_info): Add a pointer to it.
14236 * haifa-sched.c (scheduled_insns): New static variable.
14237 (sched_extend_ready_list): Allocate it.
14238 (schedule_block): Use it to record the order of scheduled insns.
14239 Perform RTL changes to move insns only after all scheduling
14240 decisions have been made.
14241 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
14242 begin_move_insn field.
14243 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
14244 * sched-int.h (struct haifa_sched_info): Remove second argument
14245 from begin_schedule_ready hook. Add new member begin_move_insn.
14246 * sched-rgn.c (begin_schedule_ready): Remove second argument.
14247 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
14249 * haifa-sched.c (prune_ready_list): New function, broken out of
14251 (schedule_block): Use it.
14253 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14255 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
14257 2011-04-01 Kai Tietz <ktietz@redhat.com>
14259 * config.gcc (*-*-mingw*): Allow as option the
14260 posix threading model.
14261 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
14262 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
14264 (CPP_SPEC): Add pthread/no-pthread handling.
14265 (LIB_SPEC): Likewise.
14266 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
14267 (LIB_SPEC): Likewise.
14268 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
14269 flag to pass -pthread option for shared libgcc build.
14270 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
14271 for shared libgcc build.
14272 * config/i386/t-mingw-pthread: New file.
14273 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
14274 New define to enable use of library pthread by default.
14275 * config/i386/mingw.opt (pthread): New driver option.
14276 (no-pthread): New driver option.
14277 * config/i386/cygming.opt: Make sure trailing empty line is retained.
14278 * config/i386/mingw-w64.opt: Likewise.
14280 2011-04-01 Gary Funck <gary@intrepid.com>
14282 * c-decl.c (grokdeclarator): Fix formatting.
14284 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14286 * expr.c (emit_block_move_via_movmem): Use n_generator_args
14287 instead of n_operands.
14288 (set_storage_via_setmem): Likewise.
14289 * optabs.c (maybe_gen_insn): Likewise.
14290 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
14291 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
14292 (mips_expand_builtin_direct): Likewise.
14293 * config/spu/spu.c (expand_builtin_args): Likewise.
14295 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14297 * recog.h (insn_data_d): Add n_generator_args.
14298 * genoutput.c (data): Likewise.
14299 (output_insn_data): Print it.
14300 (max_opno, num_dups): Delete.
14301 (scan_operands): Just fill in "d->operand[...]".
14302 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
14304 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
14306 * gensupport.h (pattern_stats): New structure.
14307 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
14308 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
14309 (max_operand_1, max_operand_vec): Delete.
14310 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
14312 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
14314 * emit-rtl.c (emit_pattern_after_setloc): New function.
14315 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
14316 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
14317 (emit_pattern_after): New function.
14318 (emit_insn_after, emit_jump_insn_after): Call it.
14319 (emit_call_insn_after, emit_debug_insn_after): Likewise.
14320 (emit_pattern_before_setloc): New function.
14321 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
14322 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
14324 (emit_pattern_before): New function.
14325 (emit_insn_before, emit_jump_insn_before): Call it.
14326 (emit_call_insn_before, emit_debug_insn_before): Likewise.
14328 2011-03-31 Richard Henderson <rth@redhat.com>
14330 * dwarf2out.c (dw_separate_line_info_ref): Remove.
14331 (dw_separate_line_info_entry): Remove.
14332 (enum dw_line_info_opcode): New.
14333 (dw_line_info_entry): Use it.
14334 (dw_line_info_table, dw_line_info_table_p): New.
14335 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
14336 (line_info_table, line_info_label_num): Remove.
14337 (line_info_table_in_use): Remove.
14338 (separate_line_info_table): Remove.
14339 (separate_line_info_table_allocated): Remove.
14340 (separate_line_info_table_in_use): Remove.
14341 (LINE_INFO_TABLE_INCREMENT): Remove.
14342 (line_info_label_num): New.
14343 (cur_line_info_table): New.
14344 (text_section_line_info, cold_text_section_line_info): New.
14345 (separate_line_info): New.
14346 (SEPARATE_LINE_CODE_LABEL): Remove.
14347 (print_dwarf_line_table): Remove.
14348 (debug_dwarf): Don't dump it.
14349 (output_one_line_info_table): New.
14350 (output_line_info): Use it.
14351 (new_line_info_table): New.
14352 (set_cur_line_info_table): New.
14353 (dwarf2out_switch_text_section): Use it.
14354 (dwarf2out_begin_function): Likewise.
14355 (push_dw_line_info_entry): New.
14356 (dwarf2out_source_line): Rewrite for new line info tables.
14357 (dwarf2out_init): Remove dead initailizations.
14359 2011-03-31 Joseph Myers <joseph@codesourcery.com>
14361 * opts.h (cl_option): Add comments to fields. Add bit-fields for
14363 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
14364 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
14365 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
14366 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
14367 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
14368 * opt-functions.awk (flag_init, switch_bit_fields): New.
14369 (switch_flags): Don't handle flags moved to bit-fields. Don't
14370 generate CL_MISSING_OK or CL_SAVE.
14371 * optc-gen.awk: Update to generate bit-field output as well as
14373 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
14374 bit-field instead of CL_REJECT_DRIVER flag.
14375 * opts-common.c (generate_canonical_option,
14376 decode_cmdline_option): Use bit-fields instead of CL_* flags.
14377 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
14378 instead of CL_REJECT_NEGATIVE flag.
14379 * toplev.c (print_switch_values): Use cl_report bit-field instead
14382 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
14384 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
14385 a zero minimum index only if it is redundant.
14387 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
14389 PR rtl-optimization/48381
14390 * ira-color.c (assign_hard_reg): Use hard reg set intersection
14391 instead of ira_class_hard_reg_index for calculating conflicting
14394 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
14396 * cprop.c: Clean up hash table building.
14397 (reg_avail_info): Remove.
14398 (oprs_available_p): Remove.
14399 (record_last_reg_set_info): Remove.
14400 (record_last_set_info): Remove.
14401 (reg_available_p): New function.
14402 (gcse_constant_p): Do not treat unfolded conditions as constants.
14403 (make_set_regs_unavailable): New function.
14404 (hash_scan_set): Simplify with new reg_available_p.
14405 (compute_hash_table_work): Traverse insns stream only once.
14406 Do not compute reg_avail_info. Traverse insns in reverse order.
14407 Record implicit sets after recording explicit sets from the block.
14409 2011-03-31 Michael Matz <matz@suse.de>
14411 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
14413 2011-03-31 Anatoly Sokolov <aesok@post.ru>
14415 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
14416 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
14417 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14418 (h8300_mode_dependent_address_p): New function.
14419 (h8300_get_index): Make static.
14421 2011-03-31 Jeff Law <law@redhat.com>
14423 * reload1.c (elimination_effects): Fix typo in recent change.
14425 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
14426 typo potentially leading to null pointer dereference.
14428 * caller-save.c (new_saved_hard_reg): Eliminate return value.
14429 (setup_save_areas): Corresponding changes to avoid useless
14432 * jump.c (reversed_comparison_code_parts): Avoid successive return
14433 statements when REVERSE_CONDITION is defined.
14435 * expr.c (expand_assignment): Avoid useless assignments.
14436 (expand_expr_real_1): Likewise.
14437 (expand_expr_real_2): Avoid useless statements.
14439 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
14441 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
14443 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
14446 * stmt.c (expand_expr_stmt): Avoid useless assignment.
14448 2011-03-31 Joseph Myers <joseph@codesourcery.com>
14451 * doc/tm.texi.in (TARGET_VERSION): Remove.
14452 * doc/tm.texi: Regenerate.
14453 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
14454 * collect2.c (main): Don't use TARGET_VERSION.
14455 * mips-tdump.c (main): Don't use TARGET_VERSION.
14456 * mips-tfile.c (main): Don't use TARGET_VERSION.
14457 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
14458 * config/rs6000/vxworksae.h: Remove.
14459 * config/alpha/alpha.h (TARGET_VERSION): Remove.
14460 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
14461 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
14462 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
14463 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14464 * config/arm/arm.h (TARGET_VERSION): Remove.
14465 * config/arm/coff.h (TARGET_VERSION): Remove.
14466 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
14467 * config/arm/elf.h (TARGET_VERSION): Remove.
14468 * config/arm/freebsd.h (TARGET_VERSION): Remove.
14469 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
14470 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
14471 * config/arm/pe.h (TARGET_VERSION): Remove.
14472 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
14473 * config/arm/semi.h (TARGET_VERSION): Remove.
14474 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
14475 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
14476 * config/arm/vxworks.h (TARGET_VERSION): Remove.
14477 * config/avr/avr.h (TARGET_VERSION): Remove.
14478 * config/bfin/bfin.h (TARGET_VERSION): Remove.
14479 * config/fr30/fr30.h (TARGET_VERSION): Remove.
14480 * config/frv/frv.h (TARGET_VERSION): Remove.
14481 * config/h8300/h8300.h (TARGET_VERSION): Remove.
14482 * config/i386/cygwin.h (TARGET_VERSION): Remove.
14483 * config/i386/darwin.h (TARGET_VERSION): Remove.
14484 * config/i386/darwin64.h (TARGET_VERSION): Remove.
14485 * config/i386/djgpp.h (TARGET_VERSION): Remove.
14486 * config/i386/freebsd.h (TARGET_VERSION): Remove.
14487 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
14488 * config/i386/gnu.h (TARGET_VERSION): Remove.
14489 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
14490 * config/i386/i386elf.h (TARGET_VERSION): Remove.
14491 * config/i386/linux.h (TARGET_VERSION): Remove.
14492 * config/i386/linux64.h (TARGET_VERSION): Remove.
14493 * config/i386/lynx.h (TARGET_VERSION): Remove.
14494 * config/i386/mingw32.h (TARGET_VERSION): Remove.
14495 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
14496 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
14497 * config/i386/netware.h (TARGET_VERSION): Remove.
14498 * config/i386/nto.h (TARGET_VERSION): Remove.
14499 * config/i386/openbsd.h (TARGET_VERSION): Remove.
14500 * config/i386/vxworks.h (TARGET_VERSION): Remove.
14501 * config/ia64/elf.h (TARGET_VERSION): Remove.
14502 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
14503 * config/ia64/hpux.h (TARGET_VERSION): Remove.
14504 * config/ia64/linux.h (TARGET_VERSION): Remove.
14505 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
14506 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
14507 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14508 * config/lm32/lm32.h (TARGET_VERSION): Remove.
14509 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
14510 * config/m32c/m32c.h (TARGET_VERSION): Remove.
14511 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
14512 * config/m32r/m32r.h (TARGET_VERSION): Remove.
14513 * config/m68k/linux.h (TARGET_VERSION): Remove.
14514 * config/m68k/m68k.h (TARGET_VERSION): Remove.
14515 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
14516 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
14517 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
14518 * config/mep/mep.h (TARGET_VERSION): Remove.
14519 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
14520 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
14521 * config/mips/iris6.h (MACHINE_TYPE): Remove.
14522 * config/mips/linux.h (TARGET_VERSION): Remove.
14523 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
14524 * config/mips/vxworks.h (TARGET_VERSION): Remove.
14525 * config/mmix/mmix.h (TARGET_VERSION): Remove.
14526 * config/mn10300/linux.h (TARGET_VERSION): Remove.
14527 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
14528 * config/pa/pa.h (TARGET_VERSION): Remove.
14529 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
14530 * config/picochip/picochip.h (TARGET_VERSION): Remove.
14531 * config/rs6000/aix.h (TARGET_VERSION): Remove.
14532 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
14533 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
14534 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
14535 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
14536 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
14537 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
14538 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
14539 * config/rs6000/linux.h (TARGET_VERSION): Remove.
14540 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
14541 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
14542 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
14543 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
14544 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
14545 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
14546 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
14547 * config/s390/linux.h (TARGET_VERSION): Remove.
14548 * config/s390/s390.h (TARGET_VERSION): Remove.
14549 * config/s390/tpf.h (TARGET_VERSION): Remove.
14550 * config/score/score.h (TARGET_VERSION): Remove.
14551 * config/sh/linux.h (TARGET_VERSION): Remove.
14552 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
14553 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
14554 * config/sh/sh.h (TARGET_VERSION): Remove.
14555 * config/sh/sh64.h (TARGET_VERSION): Remove.
14556 * config/sh/superh.h (TARGET_VERSION): Remove.
14557 * config/sh/vxworks.h (TARGET_VERSION): Remove.
14558 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
14559 * config/sparc/linux.h (TARGET_VERSION): Remove.
14560 * config/sparc/linux64.h (TARGET_VERSION): Remove.
14561 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
14562 TARGET_NAME32, TARGET_NAME): Remove.
14563 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
14564 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
14565 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
14566 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
14567 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
14568 * config/spu/spu.h (TARGET_VERSION): Remove.
14569 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
14570 * config/v850/v850.h (TARGET_VERSION): Remove.
14571 * config/vax/linux.h (TARGET_VERSION): Remove.
14572 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
14573 * config/xtensa/elf.h (TARGET_VERSION): Remove.
14574 * config/xtensa/linux.h (TARGET_VERSION): Remove.
14576 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
14579 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
14580 frame-related from frame-unrelated adjustments to the stack pointer.
14582 2011-03-31 Jakub Jelinek <jakub@redhat.com>
14584 * common.opt (fdebug-types-section): Move earlier.
14585 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
14587 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
14589 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
14592 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
14594 * tree.h (CASE_CHAIN): Define.
14595 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
14596 (gimple_redirect_edge_and_branch): Likewise.
14598 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
14600 PR middle-end/48367
14601 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
14604 2011-03-30 Jeff Law <law@redhat.com>
14606 * PR bootstrap/48371
14607 * reload1.c (reload): Fix botch in last change.
14609 * reload.h (struct reload): Fix typo introduced in last change.
14611 2011-03-30 Joseph Myers <joseph@codesourcery.com>
14613 * config/arm/arm.opt (mhard-float, msoft-float): Mark
14614 Undocumented. Remove help text.
14615 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
14618 2011-03-30 Joseph Myers <joseph@codesourcery.com>
14620 * doc/options.texi (NegativeAlias): Document.
14621 (Alias): Mention NegativeAlias.
14622 * opt-functions.awk: Handle NegativeAlias.
14623 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
14624 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
14625 * opts.h (CL_NEGATIVE_ALIAS): Define.
14626 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
14627 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
14629 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
14631 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14632 mno-spe and mno-isel instead of mspe=no and -misel=no.
14634 2011-03-29 Mark Wielaard <mjw@redhat.com>
14636 * common.opt (fdebug-types-section): New flag.
14637 * doc/invoke.texi: Document new -fno-debug-types-section flag.
14638 * dwarf2out.c (use_debug_types): New define.
14639 (struct die_struct): Mark die_id with GTY desc use_debug_types.
14640 (print_die): Guard output of type unit signatures using
14642 (build_abbrev_table): Replace assert of dwarf_version >= 4
14643 with assert on use_debug_types.
14644 (size_of_die): Likewise.
14645 (unmark_dies): Likewise.
14646 (value_format): Decide AT_ref_external form on use_debug_types.
14647 (output_die): Replace dwarf_version version check guard with
14648 use_debug_types where appropriate.
14649 (modified_type_die): Likewise.
14650 (gen_reference_type_die): Likewise.
14651 (dwarf2out_start_source_file): Likewise.
14652 (dwarf2out_end_source_file): Likewise.
14653 (prune_unused_types_walk_attribs): Likewise.
14654 (dwarf2out_finish): Likewise.
14656 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
14658 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
14660 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14662 PR rtl-optimization/48332
14663 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
14664 mode of input operand N and modeN to its actual mode.
14666 2011-03-30 Jeff Law <law@redhat.com>
14668 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
14669 define accessor macro.
14670 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
14671 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
14672 (reg_equiv_init): Likewise.
14673 (reg_equivs_size): New variable.
14674 (reg_equiv_init_size): Remove.
14675 (allocate_initial_values): Move prototype to here from....
14676 * integrate.h (allocate_initial_values): Remove prototype.
14677 * integrate.c: Include reload.h.
14678 (allocate_initial_values): Corresponding changes.
14679 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
14680 (fix_reg_equiv_init, no_equiv): Corresponding changes.
14681 (update_equiv_regs): Corresponding changes.
14682 (ira): Corresponding changes.
14683 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
14684 (push_secondary_reload): Corresponding changes.
14685 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
14686 (make_memloc, find_reloads_address): Corresponding changes.
14687 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
14688 (find_reloads_address_1): Corresponding changes.
14689 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
14690 (refers_to_regno_for_reload_p): Corresponding changes.
14691 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
14692 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
14693 * reload1.c: Include ggc.h.
14694 (grow_reg_equivs): New function.
14695 (replace_pseudos_in, reload): Corresponding changes.
14696 (calculate_needs_all_insns, alter_regs): Corresponding changes.
14697 (eliminate_regs_1, elimination_effects): Corresponding changes.
14698 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
14699 (delete_output_reload): Likewise.
14700 * caller-save.c (mark_referenced_regs): Corresponding changes.
14701 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
14702 * frv/predicates.md (frv_load_operand): Corresponding changes.
14703 * microblaze/microblaze.c (double_memory_operand): Corresponding
14705 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
14706 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
14707 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
14708 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
14709 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
14711 * pa/pa.c (emit_move_sequence): Corresponding changes.
14712 * vax/vax.c (nonindexed_address_p): Corresponding changes.
14714 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14717 * config/arm/arm.c (coproc_secondary_reload_class): Handle
14718 structure modes. Don't check neon_vector_mem_operand for
14719 vector or structure modes.
14721 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
14722 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14725 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
14726 operand 1 and reshuffle the operands to match.
14727 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
14729 2011-03-30 Christian Schüler <cschueler@gmx.de>
14732 * config/c.opt (F): Added 'Driver' to -F option.
14735 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
14737 * config/darwin.opt: Added '-arch' option.
14739 2011-03-30 Nick Clifton <nickc@redhat.com>
14741 * config/rx/rx.md: Add peepholes and patterns to combine
14742 extending loads and simple arithmetic instructions.
14743 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
14744 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
14745 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
14746 modes to use pre-decrement and post-increment addressing.
14747 (rx_is_restricted_memory_address): Add range checking of REG+INT
14749 (rx_print_operand): Add support for %Q. Fix handling of %Q.
14750 (rx_memory_move_cost): Adjust cost of stores.
14751 (rx_adjust_insn_length): New function.
14753 2011-03-30 Jakub Jelinek <jakub@redhat.com>
14756 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
14757 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
14758 matching arg00/arg01 types.
14760 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
14762 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
14763 last_location to UNKNOWN_LOCATION.
14765 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
14768 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
14771 2011-03-30 Joseph Myers <joseph@codesourcery.com>
14772 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14775 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
14776 Init(PROCESSOR_V7).
14777 (sparc_cpu): Likewise.
14778 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
14781 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
14784 PR middle-end/48342
14785 PR rtl-optimization/48345
14786 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
14787 hard regs for given mode from profitable regs when doing secondary
14790 2011-03-29 Jeff Law <law@redhat.com>
14793 * tree-ssa-threadupdate.c (struct redirection_data): Remove
14794 do_not_duplicate field.
14795 (lookup_redirection_data): Corresponding changes.
14796 (create_duplicates): Always create a template block.
14797 (redirect_edges): Remove code which reused the original block
14798 when it was going to become unreachable code.
14799 (thread_block): Don't set do_not_duplicate field.
14801 2011-03-29 Joseph Myers <joseph@codesourcery.com>
14803 * lto-opts.c (register_user_option_p, lto_register_user_option):
14804 Make type argument unsigned.
14805 * lto-streamer.h (lto_register_user_option): Make type argument
14807 * opth-gen.awk: Make CL_* macros unsigned.
14808 * opts-common.c (find_opt): Make lang_mask argument unsigned.
14809 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
14810 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
14811 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
14812 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
14813 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
14814 (find_opt): Make lang_mask argument unsigned.
14816 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
14818 PR rtl-optimization/48331
14819 PR rtl-optimization/48334
14820 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
14821 for any used algorithm.
14823 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
14825 * ira-conflicts.c (build_object_conflicts): Add unused attribute
14828 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
14830 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
14831 (alpha_option_override): Don't set alpha_sr_alias_set.
14832 (emit_frame_store_1): Use gen_frame_mem rather than calling
14834 (alpha_expand_epilogue): Ditto.
14836 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
14838 PR tree-optimization/48290
14839 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
14840 vectorization, check that relevant phis in the basic block after
14841 the inner loop are really inner loop's exit phis.
14843 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
14846 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
14847 (cached_dw_loc_list_def): New structure.
14848 (cached_dw_loc_list): New typedef.
14849 (cached_dw_loc_list_table): New variable.
14850 (cached_dw_loc_list_table_hash): New function.
14851 (cached_dw_loc_list_table_eq): Likewise.
14852 (add_location_or_const_value_attribute): Take a bool cache_p.
14853 Cache the list when the parameter is true.
14854 (gen_formal_parameter_die): Update caller.
14855 (gen_variable_die): Likewise.
14856 (dwarf2out_finish): Likewise.
14857 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
14858 while generating debug info for the decl.
14859 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
14860 (dwarf2out_init): Initialize cached_dw_loc_list_table.
14861 (resolve_addr): Cache the result of resolving a chain of
14864 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
14866 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
14867 conflict object hard regset nodes have intersecting hard reg sets.
14869 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
14870 after regstat_init_n_sets_and_refs.
14872 * ira.c: Add more comments at the top.
14873 (setup_stack_reg_pressure_class, setup_pressure_classes):
14874 Add comments how we compute the register pressure classes.
14875 (setup_allocno_and_important_classes): Add more comments.
14876 (setup_class_translate_array, reorder_important_classes)
14877 (setup_reg_class_relations): Add comments.
14879 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
14882 * ira-color.c: Add 2011 to the Copyright line.
14883 (assign_hard_reg): Add more comments.
14884 (improve_allocation): Ditto.
14886 * ira-costs.c: Add 2011 to the Copyright line.
14887 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
14889 (setup_regno_cost_classes_by_mode): Ditto.
14891 Initial patches from ira-improv branch:
14893 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
14895 * ira-build.c (ira_create_object): Remove initialization of
14896 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
14897 (ira_create_allocno): Remove initialization of
14898 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
14899 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
14900 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
14901 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
14902 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
14903 Initialize ALLOCNO_ADD_DATA.
14904 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
14905 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
14907 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
14908 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
14910 * ira.c (ira_reallocate): Remove.
14911 (setup_pressure_classes): Call
14912 ira_init_register_move_cost_if_necessary. Use
14913 ira_register_move_cost instead of ira_get_register_move_cost.
14914 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
14915 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
14917 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
14918 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
14919 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
14920 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
14921 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
14922 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
14924 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
14925 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
14926 (struct allocno_color_data): New.
14927 (allocno_color_data_t): New typedef.
14928 (allocno_color_data): New definition.
14929 (ALLOCNO_COLOR_DATA): New macro.
14930 (struct object_color_data): New.
14931 (object_color_data_t): New typedef.
14932 (object_color_data): New definition.
14933 (OBJECT_COLOR_DATA): New macro.
14934 (update_copy_costs, calculate_allocno_spill_cost): Call
14935 ira_init_register_move_cost_if_necessary. Use
14936 ira_register_move_cost instead of ira_get_register_move_cost.
14937 (move_spill_restore, update_curr_costs): Ditto.
14938 (allocno_spill_priority): Make it inline.
14939 (color_pass): Allocate and free allocno_color_dat and object_color_data.
14940 (struct coalesce_data, coalesce_data_t): New.
14941 (allocno_coalesce_data): New definition.
14942 (ALLOCNO_COALESCE_DATA): New macro.
14943 (merge_allocnos, coalesced_allocno_conflict_p): Use
14944 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
14945 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
14946 (coalesce_allocnos): Ditto.
14947 (setup_coalesced_allocno_costs_and_nums): Ditto.
14948 (collect_spilled_coalesced_allocnos): Ditto.
14949 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
14950 (setup_slot_coalesced_allocno_live_ranges): Ditto.
14951 (coalesce_spill_slots): Ditto.
14952 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
14953 free allocno_coalesce_data.
14955 * ira-conflicts.c: Fix formatting.
14956 (process_regs_for_copy): Call
14957 ira_init_register_move_cost_if_necessary. Use
14958 ira_register_move_cost instead of ira_get_register_move_cost.
14959 (build_object_conflicts): Optimize.
14961 * ira-costs.c (record_reg_classes): Optimize. Call
14962 ira_init_register_move_cost_if_necessary. Use
14963 ira_register_move_cost, ira_may_move_in_cost, and
14964 ira_may_move_out_cost instead of ira_get_register_move_cost and
14965 ira_get_may_move_cost.
14966 (record_address_regs): Ditto.
14967 (scan_one_insn): Optimize.
14968 (find_costs_and_classes): Optimize.
14969 (process_bb_node_for_hard_reg_moves): Call
14970 ira_init_register_move_cost_if_necessary. Use
14971 ira_register_move_cost instead of ira_get_register_move_cost.
14973 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
14974 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
14975 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
14976 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
14978 (ira_initiate_emit_data, ira_finish_emit_data)
14979 (create_new_allocno): New functions.
14980 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
14981 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
14982 Use ira_register_move_cost instead of ira_get_register_move_cost.
14984 * ira-int.h: Fix some comments.
14985 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
14986 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
14987 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
14988 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
14990 (struct ira_allocno): Make mode and aclass a bitfield. Move other
14991 bitfield after mode. Make hard_regno a short int. Make
14992 hard_regno short. Remove first_coalesced_allocno and
14993 next_coalesced_allocno. Move mem_optimized_dest_p,
14994 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
14995 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
14996 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
14997 temp, colorable_p. Add new member add_data.
14998 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
14999 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
15000 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
15001 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
15002 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
15003 (ALLOCNO_ADD_DATA): New macro.
15004 (ira_emit_data_t): New typedef.
15005 (struct ira_emit_data): New. Move mem_optimized_dest_p,
15006 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
15007 from struct ira_allocno.
15008 (ALLOCNO_EMIT_DATA): New macro.
15009 (ira_allocno_emit_data, allocno_emit_reg): New.
15010 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
15011 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
15012 (OBJECT_ADD_DATA): New macro.
15013 (ira_reallocate): Remove.
15014 (ira_initiate_emit_data, ira_finish_emit_data): New.
15015 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
15016 (ira_init_register_move_cost_if_necessary): New.
15017 (ira_object_conflict_iter_next): Merge into
15018 ira_object_conflict_iter_cond.
15019 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
15021 * ira-live.c (process_single_reg_class_operands): Call
15022 ira_init_register_move_cost_if_necessary. Use
15023 ira_register_move_cost instead of ira_get_register_move_cost.
15025 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
15027 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
15029 * ira-costs.c: Fix formatting.
15030 (cost_classes, cost_classes_num): Remove.
15031 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
15032 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
15033 (cost_classes_del, cost_classes_htab): New.
15034 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
15035 (initiate_regno_cost_classes, setup_cost_classes): New.
15036 (setup_regno_cost_classes_by_aclass): New.
15037 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
15038 (record_reg_classes): Use regno_cost_classes instead of
15039 cost_classes. Move checking opposite operand up.
15040 (record_address_regs): Use regno_cost_classes
15041 instead of cost_classes.
15042 (scan_one_insn): Ditto. Use always general register.
15043 (print_allocno_costs): Use regno_cost_classes instead of
15045 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
15046 (find_costs_and_classes): Set up cost classes for each registers.
15047 Use also their mode for this. Use regno_cost_classes instead of
15049 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
15051 (free_ira_costs, ira_init_costs): Don't use cost_classes.
15052 (ira_costs, ira_set_pseudo_classes): Call
15053 initiate_regno_cost_classes and finish_regno_cost_classes.
15055 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
15057 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
15059 * target.def (ira_cover_classes): Remove.
15061 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
15063 * doc/tm.texi.in: Ditto.
15065 * ira-conflicts.c: Remove mentioning cover classes from the file.
15066 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
15067 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
15069 * targhooks.c (default_ira_cover_classes): Remove.
15071 * targhooks.h (default_ira_cover_classes): Ditto.
15073 * haifa-sched.c: Remove mentioning cover classes from the file.
15074 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
15075 ira_pressure_classes and ira_pressure_classes_num instead of
15076 ira_reg_class_cover_size and ira_reg_class_cover. Use
15077 sched_regno_pressure_class instead of sched_regno_cover_class.
15078 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
15079 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15081 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
15082 classes from the file.
15083 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
15084 (struct object_hard_regs, struct object_hard_regs_node): New.
15085 (struct ira_object): New members profitable_hard_regs,
15086 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
15087 (struct ira_allocno): Rename cover_class to aclass. Rename
15088 cover_class_cost and updated_cover_class_cost to class_cost and
15089 updated_class_cost. Remove splay_removed_p and
15090 left_conflict_size. Add new members colorable_p.
15091 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
15092 (ALLOCNO_COLORABLE_P): New macro.
15093 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
15094 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
15095 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
15096 (OBJECT_...): Rename parameter C to O.
15097 (OBJECT_PROFITABLE_HARD_REGS): New macro.
15098 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
15099 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
15100 (struct target_ira_int): New members x_ira_max_memory_move_cost,
15101 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
15102 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
15103 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
15104 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
15105 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
15106 x_ira_reg_class_subunion.
15107 (ira_max_memory_move_cost, ira_max_register_move_cost)
15108 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
15109 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
15110 (ira_important_class_nums, ira_reg_class_superunion): New macros.
15111 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
15112 (ira_reg_class_union): Rename to ira_reg_class_subunion.
15113 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15114 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15115 (ira_tune_allocno_costs_and_cover_classes): Rename to
15116 ira_tune_allocno_costs.
15117 (ira_debug_hard_regs_forest): New.
15118 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
15119 (ira_object_conflict_iter_next): Fix comments.
15120 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
15121 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
15122 cover_class to aclass.
15123 (ira_allocate_and_accumulate_costs): Ditto.
15124 (ira_allocate_and_set_or_copy_costs): Ditto.
15126 * opts.c (decode_options): Remove ira_cover_class check.
15128 * ira-color.c: Remove mentioning cover classes from the file. Use
15129 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
15130 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
15131 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
15132 (splay-tree.h): Remove include.
15133 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
15134 before copy_freq_compare_func.
15135 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
15136 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
15138 (hard_regs_roots, hard_regs_node_vec): Ditto.
15139 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
15140 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
15141 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
15142 (create_new_object_hard_regs_node): Ditto.
15143 (add_new_object_hard_regs_node_to_forest): Ditto.
15144 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
15145 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
15147 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
15148 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
15149 (remove_unused_object_hard_regs_nodes): Ditto.
15150 (enumerate_object_hard_regs_nodes): Ditto.
15151 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
15152 (object_hard_regs_subnode_t): Ditto.
15153 (struct object_hard_regs_subnode): Ditto.
15154 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
15155 (setup_object_hard_regs_subnode_index): Ditto.
15156 (get_object_hard_regs_subnodes_num): Ditto.
15157 (form_object_hard_regs_nodes_forest): Ditto.
15158 (finish_object_hard_regs_nodes_tree): Ditto.
15159 (finish_object_hard_regs_nodes_forest): Ditto.
15160 (allocnos_have_intersected_live_ranges_p): Rename to
15161 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
15162 (pseudos_have_intersected_live_ranges_p): Rename to
15163 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
15164 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
15165 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
15166 (update_copy_costs): Remove assert. Skip cost update if the hard
15167 reg does not belong the class.
15168 (assign_hard_reg): Process only profitable hard regs.
15169 (uncolorable_allocnos_num): Make it scalar.
15170 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
15171 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
15172 and ira_reg_class_max_nregs.
15173 (bucket_allocno_compare_func): Check frequency first.
15174 (sort_bucket): Add compare function as a parameter.
15175 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
15176 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
15177 (push_allocno_to_stack): Rewrite for checking new allocno
15179 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
15180 (push_only_colorable): Pass new parameter to sort_bucket.
15181 (push_allocno_to_spill): Remove.
15182 (allocno_spill_priority_compare): Make it inline and rewrite.
15183 (splay_tree_allocate, splay_tree_free): Remove.
15184 (allocno_spill_sort_compare): New function.
15185 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
15186 build and use splay tree. Choose first allocno in uncolorable
15187 allocno bucket to spill. Remove setting spill cost.
15188 (all_conflicting_hard_regs): Remove.
15189 (setup_allocno_available_regs_num): Check only profitable hard
15190 regs. Print info about hard regs nodes.
15191 (setup_allocno_left_conflicts_size): Remove.
15192 (put_allocno_into_bucket): Don't call
15193 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
15194 (improve_allocation): New.
15195 (color_allocnos): Call setup_profitable_hard_regs,
15196 form_object_hard_regs_nodes_forest, improve_allocation,
15197 finish_object_hard_regs_nodes_forest. Setup spill cost.
15198 (print_loop_title): Use pressure classes.
15199 (color_allocnso): Ditto.
15200 (do_coloring): Remove allocation and freeing splay_tree_node_pool
15201 and allocnos_for_spilling.
15202 (ira_sort_regnos_for_alter_reg): Don't setup members
15203 {first,next}_coalesced_allocno.
15204 (color): Remove allocating and freeing removed_splay_allocno_vec.
15205 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
15206 prohibited_class_mode_regs.
15208 * ira-lives.c: Remove mentioning cover classes from the file. Fix
15210 (update_allocno_pressure_excess_length): Use pressure classes.
15211 (inc_register_pressure, dec_register_pressure): Check for pressure
15213 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
15214 pressure class. Use ira_reg_class_nregs instead of
15215 ira_reg_class_max_nregs.
15216 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
15217 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
15218 (single_reg_class): Use ira_reg_class_nregs instead of
15219 ira_reg_class_max_nregs.
15220 (process_bb_node_lives): Use pressure classes.
15222 * ira-emit.c: Remove mentioning cover classes from the file. Use
15223 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
15224 (change_loop): Use pressure classes.
15225 (modify_move_list): Call ira_set_allocno_class instead of
15226 ira_set_allocno_cover_class.
15228 * ira-build.c: Remove mentioning cover classes from the file. Use
15229 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
15230 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
15231 ALLOCNO_UPDATED_CLASS_COST instead of
15232 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
15233 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
15234 (ira_create_allocno): Remove initialization of
15235 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
15236 ALLOCNO_COLORABLE_P.
15237 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
15238 Update conflict regs for the objects.
15239 (create_cap_allocno): Remove assert. Don't propagate
15240 ALLOCNO_AVAILABLE_REGS_NUM.
15241 (ira_free_allocno_costs): New function.
15242 (finish_allocno): Change a part of code into call of
15243 ira_free_allocno_costs.
15244 (low_pressure_loop_node_p): Use pressure classes.
15245 (object_range_compare_func): Don't compare classes.
15246 (setup_min_max_conflict_allocno_ids): Ditto.
15248 * loop-invariant.c: Remove mentioning cover classes from the file.
15249 Use ira_pressure_classes and ira_pressure_classes_num instead of
15250 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
15251 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
15252 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15253 Use reg_allocno_class instead of reg_cover_class.
15254 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
15255 STACK_REG_COVER_CLASS.
15256 (get_regno_cover_class): Rename to get_regno_pressure_class.
15257 (move_loop_invariants): Initialize and finalize regstat.
15259 * ira.c: Remove mentioning cover classes from the file. Add
15260 comments about coloring without cover classes. Use ALLOCNO_CLASS
15261 instead of ALLOCNO_COVER_CLASS. Fix formatting.
15262 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
15263 setup_class_subset_and_memory_move_costs.
15264 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
15265 (setup_cover_and_important_classes): Rename to
15266 setup_allocno_and_important_classes.
15267 (setup_class_translate_array): New.
15268 (setup_class_translate): Call it for allocno and pressure classes.
15269 (cover_class_order): Rename to allocno_class_order.
15270 (comp_reg_classes_func): Use ira_allocno_class_translate instead
15271 of ira_class_translate.
15272 (reorder_important_classes): Set up ira_important_class_nums.
15273 (setup_reg_class_relations): Set up ira_reg_class_superunion.
15274 (print_class_cover): Rename to print_classes. Add parameter.
15275 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
15276 Print pressure classes too.
15277 (find_reg_class_closure): Rename to find_reg_classes. Don't call
15278 setup_reg_subclasses.
15279 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15280 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15281 (setup_prohibited_class_mode_regs): Use
15282 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
15283 (clarify_prohibited_class_mode_regs): New function.
15284 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
15285 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
15286 (ira_init_once): Initialize them.
15287 (free_register_move_costs): Process them.
15288 (ira_init): Move calls of find_reg_classes and
15289 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
15290 Call clarify_prohibited_class_mode_regs.
15291 (ira_no_alloc_reg): Remove.
15292 (too_high_register_pressure_p): Use pressure classes.
15294 * sched-deps.c: Remove mentioning cover classes from the file.
15295 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
15296 ira_pressure_classes and ira_pressure_classes_num instead of
15297 ira_reg_class_cover_size and ira_reg_class_cover.
15298 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
15299 sched_regno_pressure_class instead of sched_regno_cover_class.
15300 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
15301 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
15303 * ira.h: Add 2010 to Copyright.
15304 (ira_no_alloc_reg): Remove external.
15305 (struct target_ira): Rename x_ira_hard_regno_cover_class,
15306 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
15307 x_ira_class_translate to x_ira_hard_regno_allocno_class,
15308 x_ira_allocno_classes_num, x_ira_allocno_classes, and
15309 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
15310 x_ira_pressure_classes, x_ira_pressure_class_translate, and
15311 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
15312 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
15313 x_ira_no_alloc_regs.
15314 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
15315 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
15316 ira_allocno_classes_num and ira_allocno_classes.
15317 (ira_class_translate): Rename to ira_allocno_class_translate.
15318 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
15319 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
15320 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
15321 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
15322 (ira_no_alloc_regs): New.
15324 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
15325 classes from the file. Use ALLOCNO_CLASS instead of
15326 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
15327 ALLOCNO_COVER_CLASS_COST.
15328 (regno_cover_class): Rename to regno_aclass.
15329 (record_reg_classes): Use ira_reg_class_subunion instead of
15330 ira_reg_class_union.
15331 (record_address_regs): Check overflow.
15332 (scan_one_insn): Ditto.
15333 (print_allocno_costs): Print total mem cost fore regional allocation.
15334 (print_pseudo_costs): Use REG_N_REFS.
15335 (find_costs_and_classes): Use classes intersected with them on the
15336 1st pass. Check overflow. Use ira_reg_class_subunion instead of
15337 ira_reg_class_union. Use ira_allocno_class_translate and
15338 regno_aclass instead of ira_class_translate and regno_cover_class.
15339 Modify code for finding regno_aclass. Setup preferred classes for
15341 (setup_allocno_cover_class_and_costs): Rename to
15342 setup_allocno_class_and_costs. Use regno_aclass instead of
15343 regno_cover_class. Use ira_set_allocno_class instead of
15344 ira_set_allocno_cover_class.
15345 (init_costs, finish_costs): Use regno_aclass instead of
15347 (ira_costs): Use setup_allocno_class_and_costs instead of
15348 setup_allocno_cover_class_and_costs.
15349 (ira_tune_allocno_costs_and_cover_classes): Rename to
15350 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
15351 by processing objects. Use ira_reg_class_max_nregs instead of
15352 ira_reg_class_nregs.
15354 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
15356 * sched-int.h: Remove mentioning cover classes from the file.
15357 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
15359 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
15360 classes from the file.
15361 (struct reg_pref): Rename coverclass into allocnoclass.
15362 (reg_cover_class): Rename to reg_allocno_class.
15364 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
15366 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
15368 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
15370 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
15372 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
15374 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
15376 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
15378 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
15380 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
15382 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
15384 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
15385 (i386_ira_cover_classes): Ditto.
15387 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
15389 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
15391 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
15393 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
15395 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
15397 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
15399 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
15400 (mips_ira_cover_classes): Ditto.
15402 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
15404 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
15406 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
15408 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
15410 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
15412 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
15413 (IRA_COVER_CLASSES_VSX): Ditto.
15415 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
15416 (rs6000_ira_cover_classes): Ditto.
15418 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
15420 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
15422 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
15424 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
15426 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
15428 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
15430 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
15432 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
15434 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
15436 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
15438 2011-03-29 Jakub Jelinek <jakub@redhat.com>
15441 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
15442 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
15443 dw_fde_unlikely_section_end_label, cold_in_std_section,
15444 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
15445 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
15447 (output_fde): Use dw_fde_second_{begin,end} if second is
15448 true, otherwise dw_fde_{begin,end}.
15449 (output_call_frame_info): Test dw_fde_second_begin != NULL
15450 instead of dw_fde_switched_sections.
15451 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
15452 fields, initialize new fields. Initialize in_std_section
15453 unconditionally from the first partition.
15454 (dwarf2out_end_epilogue): Don't override dw_fde_end when
15455 dw_fde_second_begin is non-NULL.
15456 (dwarf2out_switch_text_section): Stop initializing removed
15457 dw_fde_struct fields, initialize new fields, initialize
15458 also dw_fde_end here. Set dw_fde_switch_cfi even when
15459 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
15460 (struct var_loc_list_def): Add last_before_switch field.
15461 (arange_table, arange_table_allocated, arange_table_in_use,
15462 ARANGE_TABLE_INCREMENT, add_arange): Removed.
15463 (size_of_aranges): Count !in_std_section and !second_in_std_section
15464 hunks in fdes, instead of looking at arange_table_in_use.
15465 (output_aranges): Add aranges_length argument, don't call
15466 size_of_aranges here. Instead of using aranges_table*
15467 emit ranges for fdes when !in_std_section resp.
15468 !second_in_std_section.
15469 (dw_loc_list): Break ranges crossing section switch.
15470 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
15471 use dw_fde_second_end instead of dw_fde_end as end of last range.
15472 (gen_subprogram_die): Don't call add_arange. Use
15473 dw_fde_{begin,end} for first partition and if switched
15474 section dw_fde_second_{begin,end} for the second.
15475 (var_location_switch_text_section_1,
15476 var_location_switch_text_section): New functions.
15477 (dwarf2out_begin_function): Initialize cold_text_section even
15478 when function_section () isn't text_section.
15479 (prune_unused_types): Don't walk arange_table.
15480 (dwarf2out_finish): Don't needlessly test
15481 flag_reorder_blocks_and_partition when testing cold_text_section_used.
15482 If info_section_emitted, call size_of_aranges and if it indicates
15483 non-empty .debug_aranges, call output_aranges with the computed
15484 size. Stop using removed dw_fde_struct fields, use
15485 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
15489 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
15490 create ENTRY_VALUE if incoming or address of incoming's MEM
15492 * dwarf2out.c (mem_loc_descriptor): Don't emit
15493 DW_OP_GNU_entry_value of DW_OP_fbreg.
15494 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
15495 on ENTRY_VALUE is able to find the canonical parameter VALUE.
15496 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
15497 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
15499 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
15500 is a REG_P or MEM_P with REG_P address, compute hash directly
15501 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
15502 (preserve_only_constants): Don't clear VALUES forwaring
15503 ENTRY_VALUE to some other VALUE.
15505 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
15507 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
15508 instead of GEN_INT.
15510 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
15512 * cfgexpand.c (expand_gimple_cond): Always set the source location and
15513 block before expanding the statement.
15514 (expand_gimple_stmt_1): Likewise. Set them here...
15515 (expand_gimple_stmt): ...and not here. Tidy.
15516 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
15519 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
15521 * Makefile.in: New rule for cprop.o.
15522 * gcse.c: Move constant/copy propagation to cprop.c.
15523 (compute_local_properties): Only handle expression tables.
15524 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
15525 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
15526 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
15527 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
15528 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
15529 compute_cprop_data, find_used_regs, try_replace_reg,
15530 find_avail_set, cprop_jump, constprop_register, cprop_insn,
15531 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
15532 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
15533 find_bypass_set, reg_killed_on_edge, bypass_block,
15534 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
15535 execute_rtl_cprop, pass_rtl_cprop): Move to...
15536 * cprop.c: ...here. New file, constant/copy propagation for RTL
15537 moved from gcse.c to here with minor cleanups in duplicated code.
15539 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
15541 * config/i386/i386.c (flag_opts): Fix a typo in
15542 -mavx256-split-unaligned-store.
15544 2011-03-28 Anatoly Sokolov <aesok@post.ru>
15546 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
15547 LIBCALL_VALUE): Remove macros.
15548 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15549 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15550 (h8300_function_value, h8300_libcall_value,
15551 h8300_function_value_regno_p): New functions.
15553 2011-03-28 Anatoly Sokolov <aesok@post.ru>
15555 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
15557 2011-03-28 Jeff Law <law@redhat.com>
15559 * tree-ssa-threadupdate.c (redirect_edges): Call
15560 create_edge_and_update_destination_phis as needed.
15561 (create_edge_and_update_destination_phis): Accept new BB argument.
15562 All callers updated.
15563 (thread_block): Do not update the profile when threading around
15564 intermediate blocks.
15565 (thread_single_edge): Likewise.
15566 (determine_bb_domination_status): If BB is not a successor of the
15567 loop header, return NONDOMINATING.
15568 (register_jump_thread): Note when we register a jump thread around
15569 an intermediate block.
15570 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
15571 (thread_across_edge): Use it.
15573 2011-03-28 Tristan Gingold <gingold@adacore.com>
15575 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
15576 when for_return is 2.
15578 2011-03-28 Jeff Law <law@redhat.com>
15580 * var-tracking.c (canonicalize_values_mark): Delete unused
15582 (canonicalize_values_star, set_variable_part): Likewise.
15583 (clobber_variable_part, delete_variable_part): Likewise.
15585 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
15587 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
15589 2011-03-28 Martin Jambor <mjambor@suse.cz>
15591 * tree-inline.c (expand_call_inline): Do not check that destination
15593 (optimize_inline_calls): Assert that destination node is analyzed.
15594 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
15595 not call tree_lowering_passes.
15596 * cgraph.h (cgraph_analyze_function): Declare.
15597 * cgraphunit.c (cgraph_analyze_function): Make public.
15599 2011-03-28 Joseph Myers <joseph@codesourcery.com>
15601 * config/sparc/sparc-opts.h: New.
15602 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
15603 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
15604 (sparc_option_override): Store processor_type enumeration rather
15605 than string in cpu_default. Remove name and enumeration from
15606 cpu_table. Directly default -mcpu then default -mtune from -mcpu
15607 without using sparc_select. Use target_flags_explicit instead of
15609 * config/sparc/sparc.h (enum processor_type): Move to
15611 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
15612 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
15613 HeaderInclude entry.
15614 (mcpu=, mtune=): Use Var and Enum.
15615 (sparc_processor_type): New Enum and EnumValue entries.
15617 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15618 Iain Sandoe <iains@gcc.gnu.org>
15621 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
15623 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
15625 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
15626 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
15627 Insert new statements at it in lieu of STMT.
15628 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
15629 * tree-vect-stmts.c (vectorizable_store): Likewise.
15630 (vectorizable_load): Likewise.
15632 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
15634 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
15639 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
15641 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
15642 unaligned 256bit load/store.
15643 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
15644 (*avx_movdqu<avxmodesuffix>): Likewise.
15646 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15649 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
15650 * config/pa/pa.md (iordi3): Use new predicate in expander.
15651 (iorsi3): Likewise.
15653 2011-03-27 Anatoly Sokolov <aesok@post.ru>
15655 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
15656 FUNCTION_VALUE_REGNO_P): Remove macros.
15657 * config/mips/mips-protos.h (mips_function_value): Remove.
15658 * config/mips/mips.c (mips_function_value): Rename to...
15659 (mips_function_value_1): ... this. Make static. Handle receiving
15660 the function type in 'fn_decl_or_type' argument.
15661 (mips_function_value, mips_libcall_value,
15662 mips_function_value_regno_p): New function.
15663 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15664 TARGET_FUNCTION_VALUE_REGNO_P): Define.
15666 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
15668 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
15669 and -mavx256-split-unaligned-store.
15670 (ix86_option_override_internal): Split 32-byte AVX unaligned
15671 load/store by default.
15672 (ix86_avx256_split_vector_move_misalign): New.
15673 (ix86_expand_vector_move_misalign): Use it.
15675 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
15676 -mavx256-split-unaligned-store.
15678 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
15679 256bit load/store. Generate unaligned store on misaligned memory
15681 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
15683 (*avx_movdqu<avxmodesuffix>): Likewise.
15685 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
15686 -mavx256-split-unaligned-store.
15688 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
15691 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
15694 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
15696 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
15697 opno arguments with an expand_operand. Use create_input_operand.
15698 (mips_prepare_builtin_target): Delete.
15699 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
15701 (mips_expand_builtin_direct): Use create_output_operand and
15702 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
15703 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
15704 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
15706 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
15708 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
15710 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
15712 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
15714 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
15715 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
15716 basic blocks and call commit_edge_insertions directly.
15717 (fixup_abnormal_edges): Move from here to...
15718 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
15719 on the edges and return whether some have actually been inserted.
15720 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
15723 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
15725 PR rtl-optimization/48144
15726 * sel-sched-ir.c (merge_history_vect): Factor out from ...
15727 (merge_expr_data): ... here.
15728 (av_set_intersect): Rename to av_set_code_motion_filter.
15729 Update all callers. Call merge_history_vect when an expression
15730 is found in both sets.
15731 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
15733 2011-03-26 Alan Modra <amodra@gmail.com>
15735 * config/rs6000/predicates.md (word_offset_memref_op): Handle
15736 cmodel medium addresses.
15737 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
15738 64-bit gpr loads and stores.
15739 (rs6000_secondary_reload_ppc64): New function.
15740 * config/rs6000/rs6000-protos.h: Declare it.
15741 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
15743 2011-03-26 Alan Modra <amodra@gmail.com>
15746 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
15747 GNU Go in traceback table.
15749 2011-03-25 Richard Henderson <rth@redhat.com>
15751 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
15752 if there are exactly 6 operands.
15753 (set_storage_via_setmem): Similarly.
15755 2011-03-25 Kai Tietz <ktietz@redhat.com>
15757 * collect2.c (write_c_file_stat): Handle backslash
15758 as right-hand directory separator.
15759 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
15760 checking just for slash.
15761 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
15762 instead of checking for trailing slash.
15763 * gcc.c (record_temp_file): Use filename_cmp instead
15765 (do_spec_1): Likewise.
15766 (replace_outfile_spec_function): Likewise.
15767 (is_directory): Use filename_ncmp instead of strncmp.
15768 (print_multilib_info): Likewise.
15769 * gcov.c (find_source): Use filename_cmp instead
15771 (make_gcov_file_name): Fix order of slash/backslash
15773 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
15774 (add_standard_paths): Likewise.
15775 * mips-tfile.c (saber_stop): Handle backslash.
15776 * prefix.c (update_path): Use filename_ncmp instead of
15778 * profile.c (output_location): Use filename_cmp instead
15780 * read-md.c (handle_toplevel_file): Handle backslash.
15781 * tlink.c (frob_extension): Likewise.
15782 * tree-cfg.c (same_line_p): Use filename_cmp instead of
15784 * tree-dump.c (dequeue_and_dump): Handle backslash.
15785 * tree.c (get_file_function_name): Likewise.
15786 * gengtype.c (read_input_list): Likewise.
15787 (get_file_realbasename): Likewise.
15788 (get_output_file_with_visibility): Use filename_cmp
15791 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
15793 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
15796 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
15798 * fold-const.c (expr_location_or): New function.
15799 (fold_truth_not_expr): Call it.
15801 2011-03-25 Jeff Law <law@redhat.com>
15803 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
15805 * c-family/c-common.c (def_fn_type): Likewise.
15806 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
15807 * emit-rtl.c (gen_rtvec): Likewise.
15808 * lto/lto-lang.c (def_fn_type): Likewise.
15810 2011-03-25 Richard Guenther <rguenther@suse.de>
15812 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
15813 also generate copies.
15814 (fini_copy_prop): Handle constant values properly.
15816 2011-03-25 Jakub Jelinek <jakub@redhat.com>
15818 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
15819 mode size instead of bitsize with DWARF2_ADDR_SIZE.
15820 (hash_loc_operands, compare_loc_operands): Handle
15821 DW_OP_GNU_entry_value.
15823 2011-03-25 Kai Tietz <ktietz@redhat.com>
15825 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
15826 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
15827 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
15828 comment and use macro TARGET_64BIT_MS_ABI instead.
15829 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
15830 and change default behavior for 32-bit MS_ABI.
15831 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
15832 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
15834 (ix86_cfun_abi): Likewise.
15835 (ix86_maybe_switch_abi): Adjust comment.
15836 (init_cumulative_args): Check for bit-ness in MS_ABI case.
15837 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
15838 instead of checking for SYSV_ABI.
15839 (ix86_nsaved_sseregs): Likewise.
15840 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
15842 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
15843 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
15844 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
15845 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
15846 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
15848 2011-03-25 Richard Guenther <rguenther@suse.de>
15850 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
15851 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
15852 (verify_gimple): Remove.
15853 * tree-cfg.c (verify_gimple_call): Merge verification
15855 (verify_gimple_phi): Merge verification from verify_stmts.
15856 (verify_gimple_label): New function.
15857 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
15858 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
15859 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
15860 (verify_stmts): Rename to verify_gimple_in_cfg.
15861 (verify_gimple_in_cfg): New function.
15862 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
15863 * tree-ssa.c (verify_ssa): Likewise.
15864 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
15866 2011-03-25 Richard Guenther <rguenther@suse.de>
15868 * passes.c (init_optimization_passes): Add FRE pass after
15871 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
15872 Andrew Stubbs <ams@codesourcery.com>
15874 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
15876 (arm_movdi_vfp_cortexa8): New pattern.
15877 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
15878 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
15879 instructions when tuning for Cortex-A8. Set attribute "arch".
15880 * config/arm/arm.md: Move include arm-tune.md up a bit.
15881 (define_attr "arch"): Add "onlya8" and "nota8" values.
15882 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
15884 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
15888 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
15890 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
15891 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
15892 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
15893 * passes.c (init_optimization_passes): Move
15894 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
15896 2011-03-25 Kai Tietz <ktietz@redhat.com>
15898 * c-typeck.c (comptypes_internal): Replace target
15899 hook call of comp_type_attributes by version in tree.c file.
15900 * gimple.c (gimple_types_compatible_p_1): Likewise.
15901 * tree-ssa.c (useless_type_conversion_p): Likewise.
15902 * tree.c (build_type_attribute_qual_variant): Likewise.
15903 (attribute_value_equal): New static helper function.
15904 (comp_type_attributes): New function.
15905 (merge_attributes): Use attribute_value_equal for comparison.
15906 (attribute_list_contained): Likewise.
15907 * tree.h (comp_type_attributes): New prototype.
15909 2011-03-25 Richard Guenther <rguenther@suse.de>
15911 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
15912 of complex types at -O0.
15913 (verify_gimple_assign_binary): Likewise.
15914 (verify_gimple_assign_ternary): Likewise.
15916 2011-03-24 Mark Wielaard <mjw@redhat.com>
15918 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
15919 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
15921 2011-03-24 Mark Wielaard <mjw@redhat.com>
15924 * dwarf2out.c (output_abbrev_section): Only write table when
15925 abbrev_die_table_in_use > 1.
15927 2011-02-24 Richard Henderson <rth@redhat.com>
15929 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
15930 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
15931 (alpha_expand_unaligned_load_words): Use extql.
15932 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
15933 (emit_insxl): Handle all modes for consistency.
15935 2011-02-24 Richard Henderson <rth@redhat.com>
15937 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
15938 (alpha_expand_unaligned_load): Likewise.
15939 (alpha_expand_unaligned_store): Likewise.
15940 (alpha_expand_unaligned_load_words): Likewise.
15941 (alpha_expand_unaligned_store_words): Likewise.
15942 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
15943 (alpha_split_lock_test_and_set_12): Likewise.
15944 (print_operand, alpha_fold_builtin_extxx): Likewise.
15945 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
15946 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
15947 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
15948 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
15949 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
15950 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
15951 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
15952 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
15953 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
15954 (extwl, extll, extql): Similarly.
15955 (inswh, inslh, insqh): Similarly.
15956 (mskbl, mskwl, mskll, mskql): Similarly.
15957 (mskwh, msklh, mskqh): Similarly.
15959 2011-02-24 Richard Henderson <rth@redhat.com>
15961 * config/alpha/alpha.md (attribute isa): Add er, ner.
15962 (attribute enabled): Handle them.
15963 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
15965 2011-02-24 Richard Henderson <rth@redhat.com>
15967 * config/alpha/alpha.md (attribute isa): Add vms.
15968 (attribute enabled): Handle it.
15969 (*movsf): Merge *movsf_{nofix,fix,nofp}.
15970 (*movdf): Merge *movdf_{nofix,fix,nofp}.
15971 (*movtf): Rename from *movtf_internal for consistency.
15972 (*movsi): Merge with *movsi_nt_vms.
15973 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
15974 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
15975 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
15976 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
15978 2011-02-24 Richard Henderson <rth@redhat.com>
15980 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
15981 (extendqisi2, extendhisi2): Likewise.
15982 (extendqidi2): Simplify BWX/non-BWX expansions.
15983 (extendhidi2): Similarly.
15985 2011-02-24 Richard Henderson <rth@redhat.com>
15987 * config/alpha/alpha.md (attribute isa): New.
15988 (attribute enabled): New.
15989 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
15990 (zero_extendqisi2, zero_extendqidi2): Similarly.
15991 (zero_extendhisi2, zero_extendhidi2): Similarly.
15992 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
15994 2011-02-24 Richard Henderson <rth@redhat.com>
15996 * config/alpha/predicates.md (input_operand): Revert last change;
15997 update comment to mention 32-bit VMS rather than Windows.
15999 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16001 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
16002 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
16003 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
16004 * passes.c (init_optimization_passes): Move
16005 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
16007 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16009 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
16011 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
16013 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
16016 2011-03-24 Jakub Jelinek <jakub@redhat.com>
16019 * simplify-rtx.c (simplify_const_unary_operation): Call
16020 real_convert when changing mode class with FLOAT_EXTEND.
16022 2011-03-24 Nick Clifton <nickc@redhat.com>
16024 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
16025 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16026 * config/rx/rx.c (rx_option_override): Set align_jumps,
16027 align_loops and align_labels if not set by the user.
16028 (rx_align_for_label): New function.
16029 (rx_max_skip_for_label): New function.
16030 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
16031 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
16032 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
16033 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
16034 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
16036 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16038 PR rtl-optimization/48263
16039 * optabs.c (expand_binop_directly): Reinstate convert_modes code
16040 and original commutative_p handling. Use maybe_gen_insn.
16042 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16044 * reload.c (find_reloads_subreg_address): Add address_reloaded
16045 parameter and return true there if the full address has been
16047 (find_reloads_toplev): Pass address_reloaded flag.
16048 (find_reloads_address_1): Don't use address_reloaded parameter.
16050 2011-03-24 Jeff Law <law@redhat.com>
16052 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
16053 unused variable "ann".
16054 (remove_unused_locals): Likewise.
16056 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
16059 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
16062 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16064 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
16065 for invalid symbolic addresses.
16066 (s390_secondary_reload): Don't use s390_check_symref_alignment for
16069 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16071 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
16072 the argument in calls to fold_truth_not_expr.
16074 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16076 * tree.c (record_node_allocation_statistics): New function.
16077 (make_node_stat, copy_node_stat, build_string): Call it.
16078 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
16079 (build1_stat, build_omp_clause): Likewise.
16081 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16083 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
16086 2011-03-24 Richard Guenther <rguenther@suse.de>
16088 PR tree-optimization/48271
16089 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
16090 blocks that still exist.
16092 2011-03-24 Richard Guenther <rguenther@suse.de>
16094 PR tree-optimization/48270
16095 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
16096 not free datarefs before ddrs.
16098 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
16100 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
16101 from the address built for a reference with variable offset.
16103 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
16106 * config/i386/i386.md (*movdf_internal_rex64): Do not split
16107 alternatives that can be handled with movq or movabsq insn.
16108 (*movdf_internal): Disable for !TARGET_64BIT.
16109 (*movdf_internal_nointeger): Ditto.
16110 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
16112 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
16114 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
16115 (FUNCTION_ARG_ADVANCE): Likewise.
16116 * tm.texi.in: Change references to them to hook references.
16117 * tm.texi: Regenerate.
16118 * targhooks.c (default_function_arg): Eliminate check for target macro.
16119 (default_function_incoming_arg): Likewise.
16120 (default_function_arg_advance): Likewise.
16121 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
16122 (function_arg_advance): Likewise.
16123 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
16125 2011-03-24 Richard Guenther <rguenther@suse.de>
16127 PR middle-end/48269
16128 * tree-object-size.c (addr_object_size): Do not double-account
16129 for MEM_REF offsets.
16131 2011-03-24 Diego Novillo <dnovillo@google.com>
16133 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
16134 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
16135 (lto_input_data_block): Move from lto-opts.c. Make extern.
16137 (lto_input_string): Rename from input_string. Make extern.
16139 * lto-streamer-out.c (lto_output_string_with_length): Rename from
16140 output_string_with_length.
16141 Output 0 to indicate a non-NULL string. Update all callers to
16143 (lto_output_string): Rename from output_string. Make extern.
16145 (lto_output_decl_state_streams): Make extern.
16146 (lto_output_decl_state_refs): Make extern.
16147 * lto-streamer.h (lto_input_string): Declare.
16148 (lto_input_data_block): Declare.
16149 (lto_output_string): Declare.
16150 (lto_output_string_with_length): Declare.
16151 (lto_output_decl_state_streams): Declare.
16152 (lto_output_decl_state_refs): Declare.
16154 2011-03-24 Richard Guenther <rguenther@suse.de>
16156 PR tree-optimization/46562
16157 * tree.c (build_invariant_address): New function.
16158 * tree.h (build_invariant_address): Declare.
16159 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
16160 a renamed function moved ...
16161 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
16162 Take valueization callback parameter.
16163 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
16164 * gimple-fold.h: New file.
16165 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
16166 (ccp_fold, fold_const_aggregate_ref,
16167 fold_ctor_reference, fold_nonarray_ctor_reference,
16168 fold_array_ctor_reference, fold_string_cst_ctor_reference,
16169 get_base_constructor): Move ...
16170 * gimple-fold.c: ... here.
16171 (gimple_fold_stmt_to_constant_1): New function
16172 split out from ccp_fold. Take a valueization callback parameter.
16173 Valueize all operands.
16174 (gimple_fold_stmt_to_constant): New wrapper function.
16175 (fold_const_aggregate_ref_1): New function split out from
16176 fold_const_aggregate_ref. Take a valueization callback parameter.
16177 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
16178 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
16179 invariant POINTER_PLUS_EXPRs to invariant form.
16180 (vn_valueize): New function.
16181 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
16182 * tree-vrp.c (vrp_valueize): New function.
16183 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
16184 to fold statements to constants.
16185 * tree-ssa-pre.c (eliminate): Properly guard propagation of
16186 function declarations.
16187 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
16188 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
16190 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
16192 * config/h8300/predicates.md (jump_address_operand): Fix register
16195 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
16197 * doc/invoke.texi (max-stores-to-sink): Document.
16198 * params.h (MAX_STORES_TO_SINK): Define.
16199 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
16200 if either vectorization or if-conversion is disabled.
16201 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
16202 tree-vect-data-refs.c vect_equal_offsets.
16203 (dr_equal_offsets_p): New function.
16204 (find_data_references_in_bb): Remove static.
16205 * tree-data-ref.h (find_data_references_in_bb): Declare.
16206 (dr_equal_offsets_p): Likewise.
16207 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
16208 (vect_drs_dependent_in_basic_block): Update calls to
16209 vect_equal_offsets.
16210 (vect_check_interleaving): Likewise.
16211 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
16212 (cond_if_else_store_replacement): Rename to...
16213 (cond_if_else_store_replacement_1): ... this. Change arguments and
16215 (cond_if_else_store_replacement): New function.
16216 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
16217 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
16219 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
16222 * config/arm/arm.md (casesi): Use the gen_int_mode() function
16223 to subtract lower bound instead of GEN_INT().
16225 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
16230 * doc/extend.texi (Alignment): Move section to match order in TOC.
16231 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
16232 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
16234 2011-03-23 Jeff Law <law@redhat.com>
16236 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
16237 before removing the edge.
16239 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
16240 it may have been freed by redirect_branch_edge or
16241 redirect_edge_succ_nodup.
16243 2011-03-23 Richard Guenther <rguenther@suse.de>
16245 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
16246 (check_va_list_escapes): Likewise.
16247 (check_all_va_list_escapes): Likewise.
16249 2011-03-23 Richard Guenther <rguenther@suse.de>
16251 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
16252 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
16253 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
16254 (alias.o): Likewise.
16255 (ipa-type-escape.o): Remove.
16256 (ipa-struct-reorg.o): Likewise.
16257 (GTFILES): Remove ipa-struct-reorg.c.
16258 * alias.c: Do not include ipa-type-escape.h.
16259 * tree-ssa-alias.c: Likewise.
16260 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
16261 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
16262 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
16263 and ipa-type-escape passes.
16264 * tree-pass.h (pass_ipa_type_escape): Remove.
16265 (pass_ipa_struct_reorg): Likewise.
16266 * ipa-struct-reorg.h: Remove.
16267 * ipa-struct-reorg.c: Likewise.
16268 * ipa-type-escape.h: Likewise.
16269 * ipa-type-escape.c: Likewise.
16270 * doc/invoke.texi (-fipa-struct-reorg): Remove.
16271 (--param struct-reorg-cold-struct-ratio): Likewise.
16272 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16273 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
16274 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
16276 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16278 * config/s390/2084.md: Enable all insn reservations also for z9_ec
16279 cpu attribute value.
16280 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
16281 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
16282 * config/s390/s390.c (processor_flags_table): New constant array.
16283 (s390_handle_arch_option): Remove.
16284 (s390_handle_option): Remove s390_handle_arch_option invocations
16285 and OPT_mwarn_framesize_ handling.
16286 (s390_option_override): Remove s390_handle_arch_option invocation.
16287 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
16289 * config/s390/s390.md (cpu attribute): Add z9_ec value.
16290 * config/s390/s390.opt (s390_tune, s390_arch)
16291 (march=): Replace s390_arch_option enum and values with
16292 processor_type. Set variable name to s390_arch. Set
16293 initialization value.
16294 (mtune=): Replace s390_arch_option with processor_type. Set
16295 variable name to s390_tune. Set initialization value.
16297 2011-03-23 Julian Brown <julian@codesourcery.com>
16299 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
16300 accesses which are not naturally aligned.
16302 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
16305 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
16307 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
16309 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
16310 parameter from "int" to "enum insn_code".
16311 (expand_operand_type): New enum.
16312 (expand_operand): New structure.
16313 (create_expand_operand): New function.
16314 (create_fixed_operand, create_output_operand): Likewise
16315 (create_input_operand, create_convert_operand_to): Likewise.
16316 (create_convert_operand_from, create_address_operand): Likewise.
16317 (create_integer_operand): Likewise.
16318 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
16319 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16320 (expand_insn, expand_jump_insn): Likewise.
16321 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
16322 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
16323 (expand_movstr, expand_builtin___clear_cache): Likewise.
16324 (expand_builtin_lock_release): Likewise.
16325 * explow.c (allocate_dynamic_stack_space): Likewise.
16326 (probe_stack_range): Likewise. Allow check_stack to FAIL,
16327 and use the default handling in that case.
16328 * expmed.c (check_predicate_volatile_ok): Delete.
16329 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
16330 (emit_cstore): Likewise.
16331 * expr.c (emit_block_move_via_movmem): Likewise.
16332 (set_storage_via_setmem, expand_assignment): Likewise.
16333 (emit_storent_insn, try_casesi): Likewise.
16334 (emit_single_push_insn): Likewise. Allow the expansion to fail.
16335 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
16336 (expand_vec_shift_expr, expand_binop_directly): Likewise.
16337 (expand_twoval_unop, expand_twoval_binop): Likewise.
16338 (expand_unop_direct, emit_indirect_jump): Likewise.
16339 (emit_conditional_move, vector_compare_rtx): Likewise.
16340 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
16341 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
16342 (expand_sync_lock_test_and_set): Likewise.
16343 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
16344 (emit_unop_insn): Likewise.
16345 (expand_copysign_absneg): Change icode to an insn_code.
16346 (create_convert_operand_from_type): New function.
16347 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
16348 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
16349 (expand_insn, expand_jump_insn): Likewise.
16350 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
16351 than const_int_operand for operand 2.
16353 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16355 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
16358 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16360 * emit-rtl.c (emit_pattern_before_noloc): New function.
16361 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
16362 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
16363 (emit_pattern_after_noloc): New function.
16364 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
16365 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
16367 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16369 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
16370 (__ffsDI2): Likewise.
16372 2011-03-22 Richard Henderson <rth@redhat.com>
16374 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
16375 of !TARGET_ABI_OPEN_VMS.
16376 (alpha_trampoline_init, alpha_start_function): Likewise.
16377 (alpha_expand_epilogue, alpha_file_start): Likewise.
16378 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
16379 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
16380 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
16381 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
16382 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
16384 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16386 * config/s390/s390-opts.h: New.
16387 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
16388 s390_arch_flags, s390_warn_framesize, s390_stack_size,
16389 s390_stack_guard): Remove.
16390 (s390_handle_arch_option): Return void. Take enum
16391 s390_arch_option value instead of string and searching array.
16392 (s390_handle_option): Don't assert that global structures are in
16393 use. Access variables via opts pointer. Use error_at. Don't use
16394 sscanf for -mstack-guard= or -mstack-size=. Update call to
16395 s390_handle_arch_option.
16396 (s390_option_override): Update call to s390_handle_arch_option.
16397 (s390_emit_prologue): Use %d format for s390_stack_size in
16398 diagnostic. Use %wd for HOST_WIDE_INT.
16399 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
16400 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
16401 * config/s390/s390.opt (config/s390/s390-opts.h): New
16402 HeaderInclude entry.
16403 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
16404 s390_arch_flags, s390_warn_framesize): New Variable entries.
16405 (s390_arch_option): New Enum and EnumValue entries.
16406 (march=): Use Enum instead of Var.
16407 (mstack-guard=, mstack-size=): Use UInteger and Var.
16408 (mtune=): Use Enum.
16410 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16412 * config/score/score.c (score_handle_option): Don't assert that
16413 global structures are in use. Access target_flags via opts
16414 pointer. Use value of -march= option to determine target_flags
16416 * config/score/score.opt (march=): Use Enum.
16417 (score_arch): New Enum and EnumValue entries.
16419 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16421 * config/mep/mep.c (option_mtiny_specified): Remove.
16422 (mep_option_override): Move register handling for -mivc2 from
16423 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
16424 instead of option_mtiny_specified.
16425 (mep_handle_option): Access target_flags via opts pointer. Don't
16426 assert that global structures are in use. Defer part of -mivc2
16427 handling and move it to mep_option_override.
16428 * config/mep/mep.opt (IVC2): New Mask entry.
16429 (mivc2): Use Var and Defer instead of Mask.
16431 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16433 * config/v850/v850-opts.h: New.
16434 * config/v850/v850.c (small_memory): Replace with
16435 small_memory_physical_max array. Make that array static const.
16436 (v850_handle_memory_option): Take integer value of argument. Take
16437 gcc_options pointer, option text and location. Return void.
16438 Update for changes to small memory structures.
16439 (v850_handle_option): Access target_flags via opts pointer. Don't
16440 assert that global structures are in use. Update calls to
16441 v850_handle_memory_option.
16442 (v850_encode_data_area): Update references to small memory settings.
16443 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
16444 (enum small_memory_type): Move to v850-opts.h.
16445 * config/v850/v850.opt (config/v850/v850-opts.h): New
16446 HeaderInclude entry.
16447 (small_memory_max): New Variable entry.
16448 (msda): Replace by pair of options msda= and msda-. Use UInteger.
16449 (mtda, mzda): Likewise.
16451 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16453 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
16454 pointer. Don't assert that global structures are in use.
16456 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16458 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
16459 via opts pointer. Don't assert that global structures are in use.
16461 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16463 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
16464 (munix=93): Use Var.
16465 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
16466 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
16467 * config/pa/pa-opts.h: New.
16468 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
16469 (pa_handle_option): Don't assert that global structures are in
16470 use. Access target_flags via opts pointer. Don't handle
16471 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
16473 (pa_option_override): Handle deferred OPT_mfixed_range_.
16475 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16477 * config/mn10300/mn10300-opts.h: New.
16478 * config/mn10300/mn10300.c (mn10300_processor,
16479 mn10300_tune_string): Remove.
16480 (mn10300_handle_option): Don't assert that global structures are
16481 in use. Access mn10300_processor via opts pointer. Don't handle
16483 * config/mn10300/mn10300.h (enum processor_type): Move to
16485 (mn10300_processor): Remove.
16486 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
16487 HeaderInclude entry.
16488 (mn10300_processor): New Variable entry.
16491 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16493 * config/microblaze/microblaze.c: Don't include opts.h.
16494 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
16495 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
16496 (mno-clearbss): Use Var and Warn.
16498 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16500 * config/m32r/m32r-opts.h: New.
16501 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
16502 (m32r_handle_option): Don't assert that global structures are in
16503 use. Access target_flags and m32r_cache_flush_func via opts
16504 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
16505 OPT_mno_flush_trap here.
16506 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
16507 include of m32r-opts.h.
16508 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
16509 HeaderInclude entry.
16510 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
16511 (mmodel=): Use Enum and Var.
16512 (m32r_model): New Enum and EnumValue entries.
16513 (mno-flush-trap): Use Var.
16514 (msdata=): Use Enum and Var.
16515 (m32r_sdata): New Enum and EnumValue entries.
16517 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16519 * config/m32c/m32c.c: Don't include opts.h.
16520 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
16521 m32c_handle_option): Remove.
16522 (m32c_option_override): Check global_options_set.x_target_memregs
16523 instead of target_memregs_set.
16524 * config/m32c/m32c.h (target_memregs): Remove.
16525 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
16528 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16530 * config/iq2000/iq2000-opts.h: New.
16531 * config/iq2000/iq2000.c: Don't include opts.h.
16532 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
16533 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
16534 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
16535 HeaderInclude entry.
16536 (iq2000_tune): New Variable entry.
16537 (march=): Add comment. Use Enum.
16538 (iq2000_arch): New Enum and EnumValue entries.
16539 (mcpu=): Use Enum and Var.
16540 (iq2000_tune): New Enum and EnumValue entries.
16542 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16544 * config/ia64/ia64-opts.h: New.
16545 * config/ia64/ia64.c (ia64_tune): Remove.
16546 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
16547 here. Use error_at.
16548 (ia64_option_override): Handle deferred OPT_mfixed_range_.
16549 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
16550 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
16551 HeaderInclude entry.
16552 (ia64_tune): New Variable entry.
16553 (mfixed-range=): Use Defer and Var.
16554 (mtune=): Use Enum and Var.
16555 (ia64_tune): New Enum and EnumValue entries.
16557 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16559 * config/frv/frv-opts.h: New.
16560 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
16562 (frv_cpu_type): Remove.
16563 * config/frv/frv.c: Don't include opts.h.
16564 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
16565 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
16566 (frv_cpu_type): New Variable entry.
16567 (frv_cpu): New Enum and EnumValue entries.
16569 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16571 * config/cris/cris.c (cris_handle_option): Access target_flags via
16572 opts pointer. Don't assert that global structures are in use.
16573 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
16574 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
16576 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16578 * config/bfin/bfin-opts.h: New.
16579 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
16580 bfin_si_revision, bfin_workarounds): Remove.
16581 (bfin_cpus): Make static const.
16582 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
16583 not bfin_lib_id_given.
16584 (bfin_handle_option): Don't set bfin_lib_id_given. Access
16585 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
16586 pointer. Use error_at. Don't assert that global structures are in use.
16587 * config/bfin/bfin.h: Include bfin-opts.h.
16588 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
16589 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
16590 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
16591 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
16594 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16596 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
16597 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
16598 or -msoft-float here.
16599 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
16600 -msoft-float and -mhard-float.
16601 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
16602 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16604 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
16606 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
16607 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
16609 (LIBGCC_SPEC): Don't handle -msoft-float.
16610 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
16612 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
16614 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
16615 -mfloat-abi=*, not -msoft-float and -mhard-float.
16616 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
16618 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
16619 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
16620 mhard-float and msoft-float.
16621 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
16622 mfloat-abi=soft in comments, not mhard-float and msoft-float.
16623 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
16624 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
16626 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
16627 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
16629 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
16631 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
16634 2011-03-22 Richard Henderson <rth@redhat.com>
16636 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
16637 TARGET_ABI_WINDOWS_NT.
16638 (alpha_output_function_end_prologue): Likewise.
16639 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
16640 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16641 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
16642 (trap, *movsi_nt_vms): Likewise.
16643 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
16644 (*tablejump_osf_nt_internal): Remove.
16645 * config/alpha/predicates.md (input_operand): Only test Pmode.
16647 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16649 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
16650 via opts pointer. Use error_at. Don't assert that global
16651 structures are in use.
16653 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16655 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
16656 (ix86_handle_option): Access ix86_isa_flags and
16657 ix86_isa_flags_explicit via opts pointer. Don't assert that
16658 global structures are in use.
16659 (ix86_function_specific_save, ix86_function_specific_restore):
16660 Update ix86_isa_flags_explicit field name.
16661 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
16662 (ix86_isa_flags_explicit): Rename TargetSave entry to
16663 x_ix86_isa_flags_explicit.
16665 2011-03-22 Richard Henderson <rth@redhat.com>
16667 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
16668 (alpha_option_override, direct_return): Likewise.
16669 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
16670 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
16671 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
16672 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
16673 (alpha_expand_epilogue, alpha_end_function): Likewise.
16674 (alpha_init_libfuncs): Likewise.
16675 (struct machine_function): Remove unicosmk members.
16676 (print_operand) ['t']: Remove.
16677 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
16678 unicosmk_output_module_name, unicosmk_output_common,
16679 current_section_align, unicosmk_output_text_section_asm_op,
16680 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
16681 unicosmk_section_type_flags, unicosmk_unique_section,
16682 unicosmk_asm_named_section, unicosmk_insert_attributes,
16683 unicosmk_output_align, unicosmk_defer_case_vector,
16684 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
16685 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
16686 unicosmk_output_ssib, unicosmk_add_call_info_word,
16687 unicosmk_extern_head, unicosmk_output_default_externs,
16688 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
16689 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
16690 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
16691 * config/alpha/alpha-protos.h: Update.
16692 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
16693 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
16694 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
16695 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
16696 (*mulsi_se, mulvsi3): Likewise.
16697 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
16698 (*divmodsi_internal, call, call_value, realign): Likewise.
16699 (moddi3, umoddi3): Likewise; remove duplicate expander.
16700 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
16701 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
16702 (*movdi_nofix): Remove r/U alternative.
16703 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
16704 * config/alpha/constraints.md ("U"): Remove.
16705 * config/alpha/predicates.md (call_operand"): Don't test
16706 TARGET_ABI_UNICOSMK.
16708 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16710 * target.def (handle_option): Take gcc_options and
16711 cl_decoded_option pointers and location_t.
16712 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
16713 * doc/tm.texi: Regenerate.
16714 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
16715 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
16716 * lto-opts.c (lto_reissue_options): Generate option structure for
16717 targetm.handle_option call.
16718 * opts.c (target_handle_option): Update call to
16719 targetm.handle_option. Remove assertions about values now passed
16721 * targhooks.c (default_target_handle_option): New.
16722 * targhooks.h (default_target_handle_option): Declare.
16723 * config/alpha/alpha.c: Include opts.h.
16724 (alpha_handle_option): Update to new hook interface.
16725 * config/arm/arm.c: Include opts.h.
16726 (arm_handle_option): Update to new hook interface.
16727 * config/arm/t-arm (arm.o): Update dependencies.
16728 * config/bfin/bfin.c: Include opts.h.
16729 (bfin_handle_option): Update to new hook interface.
16730 * config/cris/cris.c: Include opts.h.
16731 (cris_handle_option): Update to new hook interface.
16732 * config/frv/frv.c: Include opts.h.
16733 (frv_handle_option): Update to new hook interface.
16734 * config/i386/i386.c: Include opts.h.
16735 (ix86_handle_option): Update to new hook interface.
16736 (ix86_valid_target_attribute_inner_p): Generate option structure
16737 for call to ix86_handle_option.
16738 * config/i386/t-i386 (i386.o): Update dependencies.
16739 * config/ia64/ia64.c: Include opts.h.
16740 (ia64_handle_option): Update to new hook interface.
16741 * config/ia64/t-ia64 (ia64.o): Update dependencies.
16742 * config/iq2000/iq2000.c: Include opts.h.
16743 (iq2000_handle_option): Update to new hook interface.
16744 * config/m32c/m32c.c: Include opts.h.
16745 (m32c_handle_option): Update to new hook interface.
16746 * config/m32r/m32r.c: Include opts.h.
16747 (m32r_handle_option): Update to new hook interface.
16748 * config/m68k/m68k.c: Include opts.h.
16749 (m68k_handle_option): Update to new hook interface.
16750 * config/mep/mep.c: Include opts.h.
16751 (mep_handle_option): Update to new hook interface.
16752 * config/microblaze/microblaze.c: Include opts.h.
16753 (microblaze_handle_option): Update to new hook interface.
16754 * config/mips/mips.c: Include opts.h.
16755 (mips_handle_option): Update to new hook interface.
16756 * config/mn10300/mn10300.c: Include opts.h.
16757 (mn10300_handle_option): Update to new hook interface.
16758 * config/pa/pa.c: Include opts.h.
16759 (pa_handle_option): Update to new hook interface.
16760 * config/pdp11/pdp11.c: Include opts.h.
16761 (pdp11_handle_option): Update to new hook interface.
16762 * config/rs6000/rs6000.c: Include opts.h.
16763 (rs6000_handle_option): Update to new hook interface.
16764 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
16765 * config/rx/rx.c: Include opts.h.
16766 (rx_handle_option): Update to new hook interface.
16767 * config/s390/s390.c: Include opts.h.
16768 (s390_handle_option): Update to new hook interface.
16769 * config/score/score.c: Include opts.h.
16770 (score_handle_option): Update to new hook interface.
16771 * config/sh/sh.c: Include opts.h.
16772 (sh_handle_option): Update to new hook interface.
16773 * config/sparc/sparc.c: Include opts.h.
16774 (sparc_handle_option): Update to new hook interface.
16775 * config/v850/v850.c: Include opts.h.
16776 (v850_handle_option): Update to new hook interface.
16778 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16780 * gcc.c (driver_unknown_option_callback): Only permit and save
16781 unknown -Wno- options.
16782 (driver_wrong_lang_callback): Save options directly instead of via
16783 driver_unknown_option_callback.
16785 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
16787 * combine.c (simplify_set): Try harder to find the best CC mode when
16788 simplifying a nested COMPARE on the RHS.
16790 2011-03-22 Joseph Myers <joseph@codesourcery.com>
16792 * config/alpha/gnu.h: Remove.
16793 * config/arc: Remove directory.
16794 * config/arm/netbsd.h: Remove.
16795 * config/arm/t-pe: Remove.
16796 * config/crx: Remove directory.
16797 * config/i386/netbsd.h: Remove.
16798 * config/m68hc11: Remove directory.
16799 * config/m68k/uclinux-oldabi.h: Remove.
16800 * config/mcore/mcore-pe.h: Remove.
16801 * config/mcore/t-mcore-pe: Remove.
16802 * config/netbsd-aout.h: Remove.
16803 * config/rs6000/gnu.h: Remove.
16804 * config/sh/sh-symbian.h: Remove.
16805 * config/sh/symbian-base.c: Remove.
16806 * config/sh/symbian-c.c: Remove.
16807 * config/sh/symbian-cxx.c: Remove.
16808 * config/sh/symbian-post.h: Remove.
16809 * config/sh/symbian-pre.h: Remove.
16810 * config/sh/t-symbian: Remove.
16811 * config/svr3.h: Remove.
16812 * config/vax/netbsd.h: Remove.
16813 * config.build: Don't handle i[34567]86-*-pe.
16814 * config.gcc: Remove handling of deprecations for most deprecated
16816 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
16817 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
16818 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
16819 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
16820 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
16821 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
16823 * config.host: Don't handle i[34567]86-*-pe.
16824 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
16825 (ASM_SPEC32): Don't handle -mcall-gnu.
16826 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
16828 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
16829 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
16830 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
16831 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
16832 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
16833 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
16834 conditional on SYMBIAN.
16835 * configure.ac: Don't handle powerpc*-*-gnu*.
16836 * configure: Regenerate.
16837 * doc/extend.texi (interrupt attribute): Don't mention CRX.
16838 * doc/install-old.texi (m6811, m6812): Don't mention.
16839 * doc/install.texi (arc-*-elf*): Don't document multilib option.
16840 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
16841 (m68k-uclinuxoldabi): Don't mention.
16842 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
16844 (-mcall-gnu): Remove.
16845 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
16846 families): Remove constraint documentation.
16848 2011-03-22 Marius Strobl <marius@FreeBSD.org>
16850 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
16851 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
16852 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
16854 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
16857 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
16858 vector when peeking at the next token for vector, don't expand the
16861 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
16863 * config/avr/avr-protos.h (expand_epilogue): Change prototype
16864 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
16865 * config/avr/avr.c (init_cumulative_args)
16866 (avr_function_arg_advance): Use it.
16867 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
16869 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
16870 (avr_function_ok_for_sibcall): ...this new function.
16871 (avr_lookup_function_attribute1): New static Function.
16872 (avr_naked_function_p, interrupt_function_p)
16873 (signal_function_p, avr_OS_task_function_p)
16874 (avr_OS_main_function_p): Use it.
16875 * config/avr/avr.md ("sibcall", "sibcall_value")
16876 ("sibcall_epilogue"): New expander.
16877 ("*call_insn", "*call_value_insn"): New insn.
16878 ("call_insn", "call_value_insn"): Remove
16879 ("call", "call_value", "epilogue"): Change expander to handle
16882 2011-03-21 Nick Clifton <nickc@redhat.com>
16884 * doc/invoke.texi (Overall Options): Move closing brace to end of
16886 (Optimization Options): Add missing @gol.
16887 (Directory Options): Likewise.
16888 (i386 and x86-64 Options): Likewise.
16889 (RS6000 and PowerPC Options): Likewise.
16890 (i386 and x86-64 Windows Options): Likewise.
16891 (V850 Options): Add text missing from descriptions.
16893 2011-03-22 Richard Henderson <rth@redhat.com>
16895 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
16896 (avr_incoming_return_addr_rtx): New.
16897 (emit_push_byte): New.
16898 (expand_prologue): Use it. Remove incorrect dwarf annotation for
16899 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
16900 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
16901 (emit_pop_byte): New.
16902 (expand_epilogue): Use it. Pop frame pointer by bytes.
16903 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
16904 (INCOMING_RETURN_ADDR_RTX): New.
16905 (INCOMING_FRAME_SP_OFFSET): New.
16906 (ARG_POINTER_CFA_OFFSET): New.
16907 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
16908 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
16911 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
16913 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16915 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
16916 (FUNCTION_ARG_ADVANCE): Likewise.
16917 * tm.texi.in: Change references to them to hook references.
16918 * tm.texi: Regenerate.
16919 * targhooks.c (default_function_arg): Eliminate check for target
16921 (default_function_incoming_arg): Likewise.
16922 (default_function_arg_advance): Likewise.
16923 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
16924 (function_arg_advance): Likewise.
16925 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
16927 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
16929 * tree.c (build_call_1): New function.
16930 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
16932 2011-03-22 Richard Guenther <rguenther@suse.de>
16934 PR tree-optimization/48228
16935 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
16936 for single-arg PHIs.
16938 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
16940 PR rtl-optimization/48143
16941 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
16942 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
16943 sse2_cvtps2pd): Likewise.
16945 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16947 * recog.c (canonicalize_change_group): Use validate_unshare_change.
16949 2011-03-22 Richard Guenther <rguenther@suse.de>
16951 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
16952 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
16953 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
16954 and REALIGN_LOAD_EXPR.
16955 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
16956 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
16957 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
16958 DOT_PROD_EXPR case ...
16959 (expand_expr_real_2): ... here.
16960 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
16961 and REALIGN_LOAD_EXPR.
16962 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
16963 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
16964 (vect_create_epilog_for_reduction): Likewise.
16965 (vectorizable_reduction): Likewise.
16966 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
16967 * tree-vect-stmts.c (vectorizable_load): Likewise.
16969 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
16971 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
16973 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16975 * config/s390/s390.c (s390_delegitimize_address): Fix offset
16976 handling for PLTOFF/GOTOFF.
16978 2011-03-22 Nick Clifton <nickc@redhat.com>
16980 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
16981 trailing backslash from the end of the macro definition.
16983 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16985 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
16988 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
16990 * expr.h (prepare_operand): Move to...
16991 * optabs.h (prepare_operand): ...here and change the insn code
16992 parameter from "int" to "enum insn_code".
16993 (insn_operand_matches): Declare.
16994 * expr.c (init_expr_target): Use insn_operand_matches.
16995 (compress_float_constant): Likewise.
16996 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
16997 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
16998 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
16999 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
17001 (gen_cond_trap): Likewise.
17002 (prepare_operand): Likewise. Change icode to an insn_code.
17003 (insn_operand_matches): New function.
17004 * reload.c (find_reloads_address_1): Use insn_operand_matches.
17005 * reload1.c (gen_reload): Likewise.
17006 * targhooks.c (default_secondary_reload): Likewise.
17008 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
17010 * config/alpha/alpha.md (unspec): New define_c_enum.
17013 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
17016 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
17017 between a call and its CALL_ARG_LOCATION note.
17019 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
17021 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
17023 2011-03-21 Jakub Jelinek <jakub@redhat.com>
17027 * c-common.c (shorten_compare): If primopN is first sign-extended
17028 to opN and then zero-extended to result type, set primopN to opN.
17030 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
17032 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
17033 for barrier handlers.
17035 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
17037 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
17038 UNSPEC constants to be in the unspec enumeration, and redefine
17039 all UNSPECV constants to be in the unspecv enumeration, so that
17040 dumps print which unspec/unspec_volatile this is.
17041 * config/rs6000/vector.md (UNSPEC_*): Ditto.
17042 * config/rs6000/paired.md (UNSPEC_*): Ditto.
17043 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
17044 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
17045 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
17047 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
17048 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
17049 UNSPECV_LWSYNC, since these are used as unspec_volatile.
17050 * config/rs6000/sync.md (isync, lwsync): Ditto.
17052 2011-03-21 Richard Guenther <rguenther@suse.de>
17054 * params.def (lto-min-partition): Fix typo.
17056 2011-03-21 Richard Guenther <rguenther@suse.de>
17059 * c-decl.c (grokdeclarator): Drop to the main variant only
17060 for array types. Drop flag_gen_aux_info check.
17062 2011-03-21 Richard Guenther <rguenther@suse.de>
17064 PR translation/47911
17065 * params.def (lto-partitions): Fix typo.
17066 (lto-min-partition): Fix wording.
17068 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
17070 * config/rs6000/t-freebsd: Remove duplication from file.
17072 2011-03-21 Richard Guenther <rguenther@suse.de>
17074 PR middle-end/47661
17075 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
17077 2011-03-21 Richard Guenther <rguenther@suse.de>
17080 * params.def (lto-partitions): Require at least 1 partition.
17082 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17084 * gthr-solaris.h: Remove.
17085 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
17086 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
17087 (LIB_SPEC): Likewise.
17088 * config/sol2.opt (threads): Remove.
17089 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
17090 (sparc*-*-solaris2*): Likewise.
17091 * configure.ac (enable_threads): Enable solaris support.
17092 * configure: Regenerate.
17093 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
17094 * doc/install.texi (Configuration, --enable-threads=lib): Remove
17097 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17099 * config.gcc: Obsolete *-*-solaris2.8*.
17100 * doc/install.texi (Specific, *-*-solaris2*): Document it.
17102 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17105 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
17106 reference. Solaris 8 perl works.
17108 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17111 * doc/install.texi (Prerequisites): Move jar etc. up.
17112 Explain support library version requirements.
17114 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17117 * doc/install.texi (Prerequisites): Move Perl to build
17118 requirements. Always necessary on Solaris 2 with Sun ld.
17120 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17122 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
17124 (Specific, i?86-*-solaris2.[89]): Likewise.
17125 (Specific, i?86-*-solaris2.10): Likewise.
17126 (Specific, mips-sgi-irix6): Likewise.
17127 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
17128 Update for binutils 2.21.
17130 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17132 * configure.ac (gcc_cv_lto_plugin): Fix typo.
17133 Allow -fuse-linker-plugin for non-default plugin linker.
17134 * configure: Regenerate.
17136 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
17139 * gengtype.c (files_rules): Added rule for cp/parser.h.
17141 2011-03-21 Jakub Jelinek <jakub@redhat.com>
17144 * config/s390/s390.c (s390_delegitimize_address): Don't call
17145 lowpart_subreg if orig_x has BLKmode.
17147 2011-03-21 Kai Tietz <ktietz@redhat.com>
17150 * doc/plugins.texi: Adjust documentation for plugin register_callback.
17151 * tree.h (attribute_spec): Add new member affects_type_identity.
17152 * attribs.c (empty_attribute_table): Adjust attribute_spec
17154 * config/alpha/alpha.c: Likewise.
17155 * config/arc/arc.c: Likewise.
17156 * config/arm/arm.c: Likewise.
17157 * config/avr/avr.c: Likewise.
17158 * config/bfin/bfin.c: Likewise.
17159 * config/crx/crx.c: Likewise.
17160 * config/darwin.h: Likewise.
17161 * config/h8300/h8300.c: Likewise.
17162 * config/i386/cygming.h: Likewise.
17163 * config/i386/i386.c: Likewise.
17164 * config/ia64/ia64.c: Likewise.
17165 * config/m32c/m32c.c: Likewise.
17166 * config/m32r/m32r.c: Likewise.
17167 * config/m68hc11/m68hc11.c: Likewise.
17168 * config/m68k/m68k.c: Likewise.
17169 * config/mcore/mcore.c: Likewise.
17170 * config/mep/mep.c: Likewise.
17171 * config/microblaze/microblaze.c: Likewise.
17172 * config/mips/mips.c: Likewise.
17173 * config/rs6000/rs6000.c: Likewise.
17174 * config/rx/rx.c: Likewise.
17175 * config/sh/sh.c: Likewise.
17176 * config/sol2.h: Likewise.
17177 * config/sparc/sparc.c: Likewise.
17178 * config/spu/spu.c: Likewise.
17179 * config/stormy16/stormy16.c: Likewise.
17180 * config/v850/v850.c: Likewise.
17182 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
17184 * simplify-rtx.c (simplify_binary_operation_1): Handle
17185 (xor (and A B) C) case when B and C are both constants.
17187 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
17189 * tree-dfa.c (add_referenced_var): Fix typo in comment.
17191 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
17194 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
17196 2011-03-20 Jakub Jelinek <jakub@redhat.com>
17198 PR rtl-optimization/48156
17199 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
17200 assume df and df_lr are not NULL.
17202 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17205 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
17206 between a call and its CALL_ARG_LOCATION note.
17208 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
17211 * config/sh/sh.c (find_barrier): Don't emit a constant pool
17212 between a call and its corresponding CALL_ARG_LOCATION note.
17214 2011-03-19 Anatoly Sokolov <aesok@post.ru>
17216 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
17217 instead of loop. Use HARD_REGISTER_NUM_P predicate.
17218 * haifa-sched.c (setup_ref_regs): Ditto.
17219 * caller-save.c (add_used_regs_1): Ditto.
17220 * dse.c (look_for_hardregs): Ditto.
17221 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
17222 * sched-rgn.c (check_live_1): Ditto.
17224 2011-03-18 Joseph Myers <joseph@codesourcery.com>
17226 * c-decl.c (diagnose_mismatched_decls): Give an error for
17227 redefining a typedef with variably modified type.
17229 2011-03-18 Joseph Myers <joseph@codesourcery.com>
17231 * c-decl.c (grokfield): Don't allow typedefs for structures or
17232 unions with no tag by default.
17233 * doc/extend.texi (Unnamed Fields): Update.
17235 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
17237 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
17238 Rewrite using indirect functions.
17239 (lwp_slwpcb): Ditto.
17240 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
17241 (avx_vinsertf128<mode>): Ditto.
17243 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17245 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
17248 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17250 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
17251 splitting between a call and its corresponding CALL_ARG_LOCATION note.
17253 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
17255 PR rtl-optimization/48170
17256 * gcse.c (hoist_code): Remove bogus asserts.
17258 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
17260 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
17261 computation for prologue/epilogue.
17263 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17265 * Makefile.in (check-consistency): Remove.
17267 2011-03-18 Jakub Jelinek <jakub@redhat.com>
17270 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
17271 arange_table_in_use is 0, but either text_section_used or
17272 cold_text_section_used is true. Don't call it if
17273 !info_section_emitted.
17275 2011-03-18 Anatoly Sokolov <aesok@post.ru>
17277 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
17278 FUNCTION_VALUE_REGNO_P): Remove.
17279 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
17281 * config/avr/avr.c (avr_ret_register): Make static inline.
17282 (avr_function_value_regno_p): New function.
17283 (avr_libcall_value): Make static. Add 'func' argument.
17284 (avr_function_value): Make static. Rename 'func' argument to
17285 'fn_decl_or_type', forward it to avr_libcall_value. Call
17286 avr_ret_register function instead of RET_REGISTER macro.
17287 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17289 2011-03-18 Jason Merrill <jason@redhat.com>
17292 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
17294 2011-03-18 Richard Guenther <rguenther@suse.de>
17296 * doc/install.texi (--enable-gold): Remove.
17297 (--with-plugin-ld): Document.
17298 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
17300 2011-03-18 Andrew Pinski <pinskia@gmail.com>
17302 PR middle-end/47790
17303 * expr.c (optimize_bitfield_assignment_op): Revamp to work
17304 again after expansion changes.
17306 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
17308 * combine.c (try_combine): Do simplification only call of
17309 subst() on i2 even when i1 is present. Update comments.
17311 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
17313 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
17314 and UNSPEC_PCREL_SYMOFF.
17316 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17318 * config/s390/s390.md: Use define_c_enum for the unspec constant
17321 2011-03-18 Richard Henderson <rth@redhat.com>
17322 Jakub Jelinek <jakub@redhat.com>
17325 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
17326 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
17328 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17330 PR middle-end/47725
17331 * combine.c (cant_combine_insn_p): Don't check zero/sign
17332 extended hard registers.
17334 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17336 PR middle-end/47725
17337 * combine.c (cant_combine_insn_p): Check zero/sign extended
17340 2011-03-17 Anatoly Sokolov <aesok@post.ru>
17342 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17343 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
17344 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
17345 Change return type to bool.
17346 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17348 2011-03-17 Jakub Jelinek <jakub@redhat.com>
17351 * var-tracking.c (prepare_call_arguments): If CALL target
17352 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
17353 pc instead of looking it up using cselib_lookup and use
17354 Pmode for it if x has VOIDmode.
17355 * dwarf2out.c (gen_subprogram_die): If also both first and
17356 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
17359 * function.c (assign_parms): For data.passed_pointer parms
17360 use MEM of data.entry_parm instead of data.entry_parm itself
17361 as DECL_INCOMING_RTL.
17362 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
17363 also when passed and declared mode is the same, DECL_RTL
17364 is a MEM with pseudo as address and DECL_INCOMING_RTL is
17367 2011-03-16 Jeff Law <law@redhat.com>
17369 PR rtl-optimization/37273
17370 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17371 handle them like argument loads from stack slots. Do not double
17372 count memory for memory constants and argument loads from stack slots.
17374 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17377 * var-tracking.c (prepare_call_arguments): Check SUBREG.
17379 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
17382 * config/i386/i386.opt: Add Save to -mavx and -mfma.
17384 2011-03-17 Jakub Jelinek <jakub@redhat.com>
17387 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
17389 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
17390 Clear call_arg_locations and call_arg_loc_last always.
17392 PR middle-end/48152
17393 * var-tracking.c (prepare_call_arguments): If argument needs to be
17394 passed by reference, adjust argtype and mode.
17396 2011-03-17 Richard Guenther <rguenther@suse.de>
17398 PR middle-end/48134
17399 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
17400 a value make sure to fold the statement.
17402 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
17405 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
17406 return condition with !cfun->calls_alloca.
17408 2011-03-17 Richard Guenther <rguenther@suse.de>
17411 * lto-cgraph.c (input_overwrite_node): Clear the abstract
17412 origin for decls in other ltrans units.
17413 (input_varpool_node): Likewise.
17415 2011-03-17 Richard Guenther <rguenther@suse.de>
17417 PR middle-end/48165
17418 * tree-object-size.c (compute_object_offset): Properly return
17419 the offset operand of MEM_REFs as sizetype.
17421 2011-03-17 Jakub Jelinek <jakub@redhat.com>
17423 PR rtl-optimization/48141
17424 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
17425 * dse.c: Include params.h.
17426 (active_local_stores_len): New variable.
17427 (add_wild_read, dse_step1): Clear it when setting active_local_stores
17429 (record_store, check_mem_read_rtx): Decrease it when removing
17431 (scan_insn): Likewise. Increase it when adding to chain, if it
17432 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
17433 set active_local_stores to NULL before the addition.
17434 * Makefile.in (dse.o): Depend on $(PARAMS_H).
17436 PR rtl-optimization/48141
17437 * dse.c (record_store): If no positions are needed in an insn
17438 that cannot be deleted, at least unchain it from active_local_stores.
17440 2011-03-16 Dodji Seketeli <dodji@redhat.com>
17443 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
17444 (lookup_type_die_strip_naming_typedef): ... here.
17445 (get_context_die): Use it.
17446 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
17447 the anonymous struct named by the naming typedef.
17449 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
17452 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
17453 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17455 2011-03-16 Jeff Law <law@redhat.com>
17457 * tree-vrp.c (identify_jump_threads): Slightly simplify type
17458 check for operands of conditional. Allow type to be a pointer.
17460 2011-03-16 Richard Guenther <rguenther@suse.de>
17462 PR tree-optimization/48149
17463 * fold-const.c (fold_binary_loc): Fold
17464 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
17466 2011-03-16 Richard Guenther <rguenther@suse.de>
17468 PR tree-optimization/26134
17469 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
17470 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
17471 (non_rewritable_mem_ref_base): Handle complex type component
17472 accesses, constrain offsets for vector and complex extracts
17475 2011-03-16 Richard Guenther <rguenther@suse.de>
17477 PR tree-optimization/48146
17478 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
17479 operands avoiding the need for renaming.
17481 2011-03-16 Richard Guenther <rguenther@suse.de>
17483 * gimple-fold.c (maybe_fold_reference): Open-code relevant
17484 constant folding. Move MEM_REF canonicalization first.
17485 Rely on fold_const_aggregate_ref for initializer folding.
17486 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
17488 2011-03-16 Jakub Jelinek <jakub@redhat.com>
17490 PR middle-end/48136
17491 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
17492 arg0/arg1 or their arguments are always fold converted to matching
17495 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
17498 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17501 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
17502 Handle in-tree gold.
17503 (ld_vers): Extract binutils version for gold.
17504 (gcc_cv_ld_hidden): Handle gold here.
17505 (gcc_cv_lto_plugin): Determine level of linker plugin support.
17506 * configure: Regenerate.
17507 * config.in: Regenerate.
17508 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
17509 -fuse-linker-plugin otherwise.
17510 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
17511 (LINK_COMMAND_SPEC): Use it.
17512 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
17514 2011-03-16 Jakub Jelinek <jakub@redhat.com>
17516 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
17517 * calls.c: Remove debug.h include.
17518 (emit_call_1): Don't call virtual_call_token debug hook.
17519 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
17520 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
17521 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
17522 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
17523 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
17524 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
17525 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
17526 dwarf2out_virtual_call): Remove.
17527 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
17528 copy_call_info and virtual_call hooks.
17529 (dwarf2out_init): Don't initialize vcall_insn_table,
17530 debug_dcall_section and debug_vcall_section.
17531 (prune_unused_types): Don't mark nodes from dcall_table.
17532 (dwarf2out_finish): Don't output dcall or vcall tables.
17533 * final.c (final_scan_insn): Don't call direct_call or
17534 virtual_call debug hooks.
17535 * debug.h (struct gcc_debug_hooks): Remove direct_call,
17536 virtual_call_token, copy_call_info and virtual_call hooks.
17537 (debug_nothing_uid): Remove prototype.
17538 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
17539 copy_call_info and virtual_call hooks.
17540 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17541 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
17542 * debug.c (do_nothing_debug_hooks): Likewise.
17543 (debug_nothing_uid): Remove.
17544 * doc/invoke.texi (-fenable-icf-debug): Remove.
17545 * common.opt (-fenable-icf-debug): Likewise.
17547 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
17548 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
17549 call's MEM. Handle functions returning aggregate through a hidden
17550 first pointer. For virtual calls add clobbered pc to call arguments
17552 * dwarf2out.c (gen_subprogram_die): Emit
17553 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
17557 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
17558 * rtl.h (ENTRY_VALUE_EXP): Define.
17559 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
17560 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
17561 * print-rtl.c (print_rtx): Likewise.
17562 * gengtype.c (adjust_field_rtx_def): Likewise.
17563 * var-tracking.c (vt_add_function_parameter): Adjust
17564 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
17565 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
17566 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
17567 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
17568 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
17570 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
17571 Call var_location debug hook even on CALL_INSNs.
17572 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
17573 * rtl.def (ENTRY_VALUE): New.
17574 * dwarf2out.c: Include cfglayout.h.
17575 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
17576 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
17577 (struct call_arg_loc_node): New type.
17578 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
17579 tail_call_site_count): New variables.
17580 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
17581 DW_TAG_GNU_call_site_parameter.
17582 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
17583 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
17584 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
17585 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
17586 and DW_AT_GNU_all_source_call_sites.
17587 (mem_loc_descriptor): Handle ENTRY_VALUE.
17588 (add_src_coords_attributes): Don't add enything if
17589 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
17590 (dwarf2out_abstract_function): Save and clear call_arg_location,
17591 call_site_count and tail_call_site_count around dwarf2out_decl call.
17592 (gen_call_site_die): New function.
17593 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
17594 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
17595 (dwarf2out_function_decl): Clear call_arg_locations,
17596 call_arg_loc_last, set call_site_count and tail_call_site_count
17597 to -1 and free block_map.
17598 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
17599 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
17600 followed by any real instructions.
17601 (dwarf2out_begin_function): Set call_site_count and
17602 tail_call_site_count to 0.
17603 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
17604 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
17605 attempt to force a DIE for it and worst case remove the attribute.
17606 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
17607 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
17609 * var-tracking.c: Include tm_p.h.
17610 (vt_stack_adjustments): For calls call note_register_arguments.
17611 (argument_reg_set): New variable.
17612 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
17613 ensure the VALUE is resolved.
17614 (call_arguments): New variable.
17615 (prepare_call_arguments): New function.
17616 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
17617 (struct expand_loc_callback_data): Add ignore_cur_loc field.
17618 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
17619 always use the best expression.
17620 (vt_expand_loc): Add ignore_cur_loc argument.
17621 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
17622 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
17623 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
17624 note for all calls.
17625 (vt_add_function_parameter): Use cselib_lookup_from_insn.
17626 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
17627 argument. Don't call cselib_preserve_only_values and
17628 cselib_reset_table.
17629 (note_register_arguments): New function.
17630 (vt_initialize): Compute argument_reg_set. Call
17631 vt_add_function_parameters before processing basic blocks instead of
17632 afterwards. For calls call prepare_call_arguments before calling
17633 cselib_process_insn.
17634 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
17635 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
17636 (var-tracking.o): Depend on $(TM_P_H).
17637 * cfglayout.h (insn_scope): New prototype.
17638 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
17639 * cfglayout.c (insn_scope): No longer static.
17640 * insn-notes.def (CALL_ARG_LOCATION): New.
17641 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
17642 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
17643 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
17644 nothing for DECL_EXTERNAL BLOCK_VARS.
17646 2011-03-16 Alan Modra <amodra@gmail.com>
17649 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
17650 create invalid offset address for vsx splat insn.
17651 * config/rs6000/predicates.md (splat_input_operand): New.
17652 * config/rs6000/vsx.md (vsx_splat_*): Use it.
17654 2011-03-15 Xinliang David Li <davidxl@google.com>
17657 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
17658 (normalize_preds): New function.
17659 (is_use_properly_guarded): Normalize def predicates.
17661 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17664 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
17665 in the output template.
17667 2011-03-15 Richard Guenther <rguenther@suse.de>
17669 PR middle-end/47650
17670 * tree-pretty-print.c (dump_function_declaration): Properly
17671 dump unprototyped and varargs function types.
17673 2011-03-15 Richard Guenther <rguenther@suse.de>
17675 PR tree-optimization/13954
17676 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
17679 2011-03-15 Richard Guenther <rguenther@suse.de>
17681 PR tree-optimization/48037
17682 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
17683 selects into BIT_FIELD_REFs.
17684 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
17687 2011-03-15 Jakub Jelinek <jakub@redhat.com>
17689 PR tree-optimization/48129
17690 * builtins.c (fold_builtin_snprintf): Convert to type of
17691 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
17692 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
17694 2011-03-15 Richard Guenther <rguenther@suse.de>
17696 PR tree-optimization/41490
17697 * tree-ssa-dce.c (propagate_necessity): Handle returns without
17698 value but with VUSE.
17699 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
17701 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
17702 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
17703 * tree-tailcall.c (find_tail_calls): Ignore returns.
17705 2011-03-15 Richard Guenther <rguenther@suse.de>
17707 PR middle-end/48031
17708 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
17709 or variable-indexed array accesses when in gimple form.
17711 2011-03-15 Richard Guenther <rguenther@suse.de>
17713 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
17715 2011-03-15 Alan Modra <amodra@gmail.com>
17718 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
17719 presume symbol_refs without a symbol_ref_decl are suitably
17720 aligned, nor other trees we may see here. Handle anchor symbols.
17721 (legitimate_constant_pool_address_p): Comment. Add mode param.
17722 Check cmodel=medium addresses. Adjust all calls.
17723 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
17724 creating cmodel=medium optimized access to locals.
17725 * config/rs6000/constraints.md (R): Pass QImode to
17726 legitimate_constant_pool_address_p.
17727 * config/rs6000/predicates.md (input_operand): Pass mode to
17728 legitimate_constant_pool_address_p.
17729 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
17732 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17735 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
17736 64-bit constants being loaded into registers other than GPRs such
17737 as loading 0 into a VSX register.
17739 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17741 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
17743 2011-03-14 Jakub Jelinek <jakub@redhat.com>
17745 PR middle-end/47917
17746 * builtins.c (fold_builtin_snprintf): New function.
17747 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
17748 (fold_builtin_4): Likewise.
17750 PR middle-end/38878
17751 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
17752 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
17753 and C - X == X also strip nops from +/-/p+ operand.
17754 When optimizing -X == C, fold C to arg0's type.
17757 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
17758 emit it as add_AT_int instead of add_AT_unsigned.
17760 2011-03-14 Tom Tromey <tromey@redhat.com>
17762 * unwind-dw2.c: Include sys/sdt.h if it exists.
17763 (_Unwind_DebugHook): Use STAP_PROBE2.
17764 * config.in, configure: Rebuild.
17765 * configure.ac: Check for sys/sdt.h.
17767 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
17769 * config/i386/i386.md (ROUND_FLOOR): New constant.
17770 (ROUND_CEIL): Ditto.
17771 (ROUND_TRUNC): Ditto.
17772 (ROUND_MXCSR): Ditto.
17773 (ROUND_NO_EXC): Ditto.
17774 (rint<mode>2): Use new defines instead of numerical constants.
17775 (floor<mode>2): Ditto.
17776 (ceil<mode>2): Ditto.
17777 (btrunc<mode>2): Ditto.
17778 * config/i386/i386-builtin-types.def: Define ROUND function type
17780 * config/i386/i386.c (enum ix86_builtins): Add
17781 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
17782 (struct builtin_description): Add
17783 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
17784 (ix86_expand_sse_round): New static function.
17785 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
17787 (ix86_builtin_vectorized_function): Handle
17788 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
17790 2011-03-14 Tom Tromey <tromey@redhat.com>
17792 * c-parser.c (c_parser_asm_string_literal): Clear
17793 warn_overlength_strings.
17795 2011-03-14 Tom Tromey <tromey@redhat.com>
17797 * c-parser.c (disable_extension_diagnostics): Save
17798 warn_overlength_strings.
17799 (restore_extension_diagnostics): Restore warn_overlength_strings.
17801 2011-03-14 Jakub Jelinek <jakub@redhat.com>
17803 * BASE-VER: Change to 4.7.0.
17805 2011-03-14 Richard Guenther <rguenther@suse.de>
17807 PR middle-end/48098
17808 * tree.c (build_vector_from_val): Adjust assert to requirements
17811 2011-03-14 Jakub Jelinek <jakub@redhat.com>
17814 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
17816 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
17818 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
17819 terms of target_flags_explicit. Adjust copyright year.
17821 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
17822 * config/rs6000/t-freebsd: New file. Add override for
17825 2011-03-13 Chris Demetriou <cgd@google.com>
17827 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
17828 (-fno-diagnostics-show-option): this, to reflect current default.
17829 (-Werror=): Update text about -fno-diagnostics-show-option.
17831 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
17834 * config/rs6000/predicates.md (easy_vector_constant_add_self,
17835 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
17836 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
17837 mode is not V2DImode or V2DFmode.
17838 (vspltis_constant): Do not handle V2DImode and V2DFmode.
17839 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
17840 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
17842 (movdi_internal64): Likewise.
17844 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
17846 PR tree-optimization/47127
17847 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
17849 (set_cloog_options): Same.
17850 (scop_to_clast): Same.
17851 (print_clast_stmt): Do not call cloog_state_malloc and
17853 (print_generated_program): Same.
17855 * graphite-clast-to-gimple.h (cloog_state): Declared.
17856 (scop_to_clast): Adjust declaration.
17857 * graphite.c (cloog_state): Defined here.
17858 (graphite_initialize): Call cloog_state_malloc.
17859 (graphite_finalize): Call cloog_state_free.
17861 2011-03-11 Jason Merrill <jason@redhat.com>
17863 * attribs.c (lookup_attribute_spec): Take const_tree.
17866 2011-03-11 Joseph Myers <joseph@codesourcery.com>
17868 * config/sparc/sparc.c (sparc_option_override): Use
17869 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
17871 2011-03-11 Richard Guenther <rguenther@suse.de>
17873 PR tree-optimization/48067
17874 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
17875 multiplication result will be only used once on the target
17878 2011-03-11 Richard Guenther <rguenther@suse.de>
17880 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
17882 2011-03-11 Richard Guenther <rguenther@suse.de>
17885 * tree.c (find_decls_types_r): Do not walk types only reachable
17886 from IDENTIFIER_NODEs.
17888 2011-03-11 Jakub Jelinek <jakub@redhat.com>
17890 PR middle-end/48044
17891 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
17892 all vnode->force_output nodes as needed.
17894 2011-03-11 Jason Merrill <jason@redhat.com>
17897 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
17898 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
17900 2011-03-11 Martin Jambor <mjambor@suse.cz>
17902 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
17905 2011-03-11 Jakub Jelinek <jakub@redhat.com>
17907 PR tree-optimization/48063
17908 * ipa-inline.c (cgraph_decide_inlining): Don't try to
17909 inline functions called once if !tree_can_inline_p (node->callers).
17911 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
17913 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
17915 * config/score/score3.c: Delete.
17916 * config/score/score3.h: Delete.
17917 * config/score/mul-div.S: Delete.
17918 * config/score/sfp-machine.h: Add new file.
17919 * config/score/constraints.md: Add new file.
17920 * config/score/t-score-softfp: Add new file.
17921 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
17922 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
17923 (score7_extra_constraint): Delete.
17924 (score7_option_override): Remove unused code.
17925 * config/score/score.c: Remove score3 and score5 define and code.
17926 * config/score/score.h: Remove score3 and score5 define and code.
17927 * config/score/score.md: Remove score3 template and unusual insn.
17928 * config/score/score.opt: Remove score3 and score5 options.
17930 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17932 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
17933 when _HPUX_SOURCE is defined.
17934 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
17936 2011-03-10 Jason Merrill <jason@redhat.com>
17939 * stor-layout.c (layout_type): Don't set structural equality
17940 on arrays of incomplete type.
17941 * tree.c (type_hash_eq): Handle comparing them properly.
17943 2011-03-10 Jakub Jelinek <jakub@redhat.com>
17946 * config/s390/s390.c (s390_delegitimize_address): Make sure the
17947 result mode matches original rtl mode.
17949 2011-03-10 Nick Clifton <nickc@redhat.com>
17951 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
17952 (andsi3, andsi3_flags): Fix timings for three operand alternative.
17954 2011-03-09 Jakub Jelinek <jakub@redhat.com>
17956 PR rtl-optimization/47866
17957 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
17958 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
17959 if target wasn't scalar.
17960 * function.c (assign_stack_temp_for_type): Assert that neither
17961 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
17962 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
17964 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
17966 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17968 * config/s390/s390-protos.h (s390_label_align): New prototype.
17969 * config/s390/s390.c (s390_label_align): New function.
17970 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
17972 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
17975 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
17976 V2DI/V2DF constants. Only all 0's or all 1's are easy.
17977 (output_vec_const_move): Ditto.
17979 2011-03-08 Anatoly Sokolov <aesok@post.ru>
17981 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
17982 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
17983 * config/mips/mips.c (mips_preferred_reload_class): Make static.
17984 Change 'rclass' argument and result type to reg_class_t.
17985 (TARGET_PREFERRED_RELOAD_CLASS): Define.
17987 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
17989 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
17990 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
17991 (TARGET_MEMORY_MOVE_COST): Define.
17992 (avr_register_move_cost, avr_memory_move_cost): New Functions.
17994 2011-03-08 Jakub Jelinek <jakub@redhat.com>
17997 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
18000 PR tree-optimization/48022
18001 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
18004 2011-03-07 Jakub Jelinek <jakub@redhat.com>
18007 * var-tracking.c (find_use_val): Return NULL for
18008 cui->sets && cui->store_p BLKmode MEMs.
18010 2011-03-07 Anatoly Sokolov <aesok@post.ru>
18012 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
18014 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
18015 xstormy16_print_operand_address): Remove.
18016 * config/stormy16/stormy16.c (xstormy16_print_operand,
18017 xstormy16_print_operand_address): Make static.
18018 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18020 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
18023 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
18024 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
18027 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
18030 * cfgloopmanip.c (fix_bb_placements): Return immediately
18031 if FROM is BASE_LOOP's header.
18033 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
18035 * gimplify.c (gimplify_function_tree): Fix building calls
18036 to __builtin_return_address.
18038 2011-03-07 Alan Modra <amodra@gmail.com>
18040 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
18041 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
18042 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
18043 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
18045 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
18046 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
18047 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
18048 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
18049 * config/rs6000/rs6000.c
18050 (rs6000_elf_end_indicate_exec_stack): Rename to..
18051 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
18052 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
18053 (rs6000_file_start): ..here.
18054 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
18055 file scope variables.
18056 (call_ABI_of_interest): New function.
18057 (init_cumulative_args): Set above vars when function return value
18058 is a float, vector, or small struct.
18059 (rs6000_function_arg_advance_1): Likewise for function args.
18060 (rs6000_va_start): Set rs6000_passes_float if variable arg function
18061 references float args.
18063 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
18065 * doc/cfg.texi: Remove "See" before @ref.
18066 * doc/invoke.texi: Likewise.
18068 2011-03-05 Jason Merrill <jason@redhat.com>
18070 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
18072 2011-03-05 Anthony Green <green@moxielogic.com>
18074 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
18076 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
18078 PR rtl-optimization/47899
18079 * cfgloopmanip.c (fix_bb_placements): Fix first argument
18080 to flow_loop_nested_p when moving the loop upward.
18082 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
18085 * arm.md (movhi_insn_arch4): Accept any immediate constant.
18087 2011-03-05 Jakub Jelinek <jakub@redhat.com>
18089 PR tree-optimization/47967
18090 * ipa-cp.c (build_const_val): Return NULL instead of creating
18091 VIEW_CONVERT_EXPR for mismatching sizes.
18092 (ipcp_create_replace_map): Return NULL if build_const_val failed.
18093 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
18094 give up on versioning.
18096 2011-03-05 Alan Modra <amodra@gmail.com>
18099 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
18100 full cmodel medium/large lo_sum + high addresses.
18102 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18104 * config/s390/s390.c (s390_decompose_address): Reject non-literal
18105 pool references in UNSPEC_LTREL_OFFSET.
18107 2011-03-04 Jan Hubicka <jh@suse.cz>
18110 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
18111 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
18112 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
18114 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
18115 cgraph_add_thunk): Add node pointers.
18116 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
18117 associated to right node.
18118 (input_node): Update use of cgraph_same_body_alias
18119 and cgraph_add_thunk.
18121 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
18123 * config/i386/i386.opt (mprefer-avx128): New flag.
18124 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
18125 modes when the flag -mprefer-avx128 is on.
18127 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
18129 * dwarf2out.c (compare_loc_operands): Fix address handling.
18131 2011-03-04 Alan Modra <amodra@gmail.com>
18133 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
18135 2011-03-04 Richard Guenther <rguenther@suse.de>
18137 PR middle-end/47968
18138 * expmed.c (extract_bit_field_1): Prefer vector modes that
18139 vec_extract patterns can handle.
18141 2011-03-04 Richard Guenther <rguenther@suse.de>
18143 PR middle-end/47975
18144 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
18146 2011-03-04 Richard Henderson <rth@redhat.com>
18148 * explow.c (emit_stack_save): Remove 'after' parameter.
18149 (emit_stack_restore): Likewise.
18150 * expr.h: Update to match.
18151 * builtins.c, calls.c, stmt.c: Likewise.
18152 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
18153 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
18154 * function.c (expand_function_end): Insert the emit_stack_save
18155 sequence before parm_birth_insn instead of after.
18157 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
18159 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
18160 (ssse3_pmaddubsw128): Ditto.
18161 (ssse3_pmaddubsw): Ditto.
18163 2011-03-03 Steve Ellcey <sje@cup.hp.com>
18165 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
18167 2011-03-03 Jakub Jelinek <jakub@redhat.com>
18170 * gimplify.c (omp_add_variable): Only call omp_notice_variable
18171 on TYPE_SIZE_UNIT if it is a DECL.
18174 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
18175 first operand is not is_gimple_mem_ref_addr, try to fold it.
18176 If the operand still isn't is_gimple_mem_ref_addr, clear
18179 2011-03-03 Richard Guenther <rguenther@suse.de>
18181 PR middle-end/47283
18182 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
18184 (refs_may_alias_p_1): For release branches return true if
18185 we are confused by our input.
18187 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18189 * config/s390/s390.c (s390_function_value): Rename to ...
18190 (s390_function_and_libcall_value): ... this.
18191 (s390_function_value): New function.
18192 (s390_libcall_value): New function.
18193 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
18194 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
18195 target macro definitions.
18196 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
18198 2011-03-02 Joseph Myers <joseph@codesourcery.com>
18200 * config/i386/freebsd64.h (CC1_SPEC): Define.
18201 * config/i386/linux64.h (CC1_SPEC): Define.
18202 * config/i386/x86-64.h (CC1_SPEC): Don't define.
18204 2011-03-02 Anatoly Sokolov <aesok@post.ru>
18206 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18208 * config/stormy16/stormy16.c: Include reload.h.
18209 (xstormy16_memory_move_cost): New function.
18210 (TARGET_MEMORY_MOVE_COST): Define.
18212 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
18214 PR rtl-optimization/47925
18215 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
18216 with side effects. Remove the more-specific check for volatile asms.
18218 2011-03-02 Alan Modra <amodra@gmail.com>
18221 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
18222 toc relative addresses for valid offsets.
18224 2011-03-01 Richard Guenther <rguenther@suse.de>
18226 PR tree-optimization/47890
18227 * tree-vect-loop.c (get_initial_def_for_induction): Set
18228 related stmt properly.
18230 2011-03-01 Richard Guenther <rguenther@suse.de>
18233 * lto-streamer.c (lto_record_common_node): Also register
18234 the canonical type.
18236 2011-03-01 Richard Guenther <rguenther@suse.de>
18239 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18240 Do not stream DECL_ABSTRACT_ORIGIN.
18241 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18242 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18243 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18244 Do not stream DECL_ABSTRACT_ORIGIN.
18245 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
18246 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
18248 2011-02-28 Anatoly Sokolov <aesok@post.ru>
18250 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
18251 FUNCTION_VALUE_REGNO_P): Remove.
18252 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
18253 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
18254 Add 'outgoing' argument.
18255 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
18257 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18258 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18260 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
18263 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
18264 (lookup_filename): Likewise.
18265 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
18267 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
18268 Jakub Jelinek <jakub@redhat.com>
18270 PR middle-end/47893
18271 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
18272 (assign_stack_local_1): Change last argument type to int.
18273 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
18274 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
18275 don't record padding space into frame_space_list nor use those areas.
18276 (assign_stack_local): Adjust caller.
18277 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
18278 of assign_stack_local, pass 0 as last argument.
18279 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
18282 2011-02-28 Jakub Jelinek <jakub@redhat.com>
18285 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
18286 Use target address_mode and pointer_mode hooks instead of hardcoded
18287 Pmode and ptr_mode. Handle some simple cases of extending if
18288 POINTERS_EXTEND_UNSIGNED < 0.
18289 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
18290 Call convert_debug_memory_address.
18291 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
18292 convert_debug_memory_address.
18294 PR middle-end/46790
18295 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
18296 * configure: Regenerated.
18297 * config.in: Regenerated.
18298 * varasm.c (default_function_section): Return NULL
18299 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
18301 2011-02-28 Martin Jambor <mjambor@suse.cz>
18303 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
18304 the description to match the printed values.
18306 2011-02-28 Richard Guenther <rguenther@suse.de>
18308 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
18309 of the copied scope tree.
18311 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18313 * doc/extend.texi (Function Attributes): Avoid deeply (and
18314 wrongly) nested tables.
18316 2011-02-27 Jakub Jelinek <jakub@redhat.com>
18318 PR middle-end/47903
18319 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
18320 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
18321 r isn't op0 nor op1.
18323 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
18325 * config/avr/avr.md: Remove magic comment for emacs.
18327 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
18330 * config/avr/avr.c (avr_option_override): Use error on bad options.
18331 (avr_help): New function.
18332 (TARGET_HELP): Define.
18334 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
18337 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
18338 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
18340 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
18342 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
18343 (ARM Options): Ditto.
18344 (i386 and x86-64 Options): Ditto.
18345 (RX Options): Ditto.
18346 (SPARC Options): Ditto.
18348 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
18350 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
18351 FreeBSD 6 and later. Generally use cpu generic.
18353 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
18355 * doc/cpp.texi: Update copyright years.
18357 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
18360 * config/lm32/lm32.md (ashrsi3): Added needed variable.
18362 2011-02-25 Jon Beniston <jon@beniston.com>
18365 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
18366 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
18367 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
18368 (lm32_block_move_inline): Add type cast to remove warning.
18369 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
18370 (gen_int_relational): Move declarations to start of function.
18372 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
18374 PR tree-optimization/45470
18375 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
18376 can throw internally only.
18377 * tree-vect-stmts.c (vectorizable_call): Likewise.
18379 2011-02-24 Anatoly Sokolov <aesok@post.ru>
18381 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
18382 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
18383 * config/stormy16/stormy16-protos.h
18384 (xstormy16_preferred_reload_class): Remove.
18385 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
18386 static. Change 'rclass' argument and return type to reg_class_t.
18387 (TARGET_PREFERRED_RELOAD_CLASS,
18388 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
18390 2011-02-24 Richard Guenther <rguenther@suse.de>
18392 * lto-streamer-in.c (input_bb): Do not find referenced vars
18393 in debug statements.
18395 2011-02-23 Jason Merrill <jason@redhat.com>
18397 * common.opt (fabi-version): Document v5 and v6.
18399 2011-02-23 Richard Guenther <rguenther@suse.de>
18401 PR tree-optimization/47849
18402 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
18404 2011-02-23 Jie Zhang <jie@codesourcery.com>
18406 * opts-common.c (decode_cmdline_option): Print empty string
18407 argument as "" in decoded->orig_option_with_args_text.
18408 * gcc.c (execute): Print empty string argument as ""
18409 in the verbose output.
18410 (do_spec_1): Keep empty string argument.
18412 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
18414 * config.gcc: Declare score-* and crx-* obsolete.
18416 2011-02-23 Jie Zhang <jie@codesourcery.com>
18418 PR rtl-optimization/47763
18419 * web.c (web_main): Ignore naked clobber when replacing register.
18421 2011-02-22 Anatoly Sokolov <aesok@post.ru>
18423 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
18426 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
18429 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
18431 2011-02-22 Mike Stump <mikestump@comcast.net>
18433 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
18435 * configure: Regenerate.
18437 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
18439 PR rtl-optimization/46002
18440 * ira-color.c (update_copy_costs): Change class intersection
18441 test to reg_class_contents[] test of 'hard_regno'.
18443 2011-02-21 Joseph Myers <joseph@codesourcery.com>
18445 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
18446 than Driver option.
18447 * config/hpux11.opt (mt): Likewise.
18448 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
18449 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
18450 * config/vax/elf.opt (mno-asm-pic): Likewise.
18451 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
18453 2011-02-21 Mike Stump <mikestump@comcast.net>
18456 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
18457 tree so we can get save the type.
18458 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
18459 for CFString instead of trying to use past the end of the builtins.
18460 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
18461 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
18462 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
18463 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
18464 Rename to darwin_builtin_cfstring.
18465 (darwin_init_cfstring_builtins): Return the built type.
18467 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
18470 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
18471 (_mm256_insert_epi64): Use _mm_insert_epi64.
18473 2011-02-21 Anatoly Sokolov <aesok@post.ru>
18475 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18476 * config/stormy16/stormy16-protos.h
18477 (xstormy16_mode_dependent_address_p): Remove.
18478 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
18479 Make static. Change return type to bool. Change argument type to
18480 const_rtx. Remove dead code.
18481 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18483 2011-02-21 Richard Guenther <rguenther@suse.de>
18486 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
18487 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18488 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
18490 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18491 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
18493 2011-02-20 Richard Guenther <rguenther@suse.de>
18496 * tree.c (free_lang_data_in_decl): Clean builtins from
18497 the TU decl BLOCK_VARS.
18499 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
18503 * haifa-sched.c (fix_tick_ready): Skip tick computation
18506 2011-02-19 Richard Guenther <rguenther@suse.de>
18509 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
18510 Remove lazy BLOCK_VARS streaming.
18511 (lto_input_ts_block_tree_pointers): Likewise.
18512 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
18514 2011-02-19 Joseph Myers <joseph@codesourcery.com>
18516 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
18518 2011-02-19 Joseph Myers <joseph@codesourcery.com>
18520 * config/i386/biarch32.h, config/i386/mach.h,
18521 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
18523 2011-02-19 Jakub Jelinek <jakub@redhat.com>
18526 * config/i386/i386.md (peephole2 for shift and plus): Use
18527 operands[1] original mode in the first insn.
18529 2011-02-18 Mike Stump <mikestump@comcast.net>
18531 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
18533 2011-02-18 Jan Hubicka <jh@suse.cz>
18535 PR middle-end/47788
18536 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
18537 to zero when the function is not inlinable at all.
18539 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18541 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
18542 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
18543 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
18544 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
18545 * config/pa/t-pa64: Likewise.
18546 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
18548 2011-02-18 Jakub Jelinek <jakub@redhat.com>
18551 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
18553 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18556 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
18558 2011-02-18 Anatoly Sokolov <aesok@post.ru>
18560 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
18561 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
18562 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
18563 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
18564 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
18565 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
18566 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
18567 m32r_load_postinc_p, m32r_store_preinc_predec_p,
18568 m32r_legitimate_address_p): New functions.
18569 * config/m32r/constraints.md (constraint "S"): Don't use
18570 STORE_PREINC_PREDEC_P.
18571 (constraint "U"): Don't use LOAD_POSTINC_P.
18573 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
18575 PR rtl-optimization/46178
18576 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
18577 compute ira_hard_regno_cover_class[].
18579 2011-02-18 Richard Guenther <rguenther@suse.de>
18582 * lto-streamer.h (lto_global_var_decls): Declare.
18583 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
18584 statics for global var processing.
18586 2011-02-18 Richard Guenther <rguenther@suse.de>
18588 PR tree-optimization/47737
18589 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
18590 edge dominance check.
18592 2011-02-18 Jakub Jelinek <jakub@redhat.com>
18595 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
18596 avoid invalid rtx sharing.
18598 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
18600 * doc/cpp.texi (Obsolete Features): Add background on the
18601 origin of assertions.
18603 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
18605 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
18607 * config/darwin.c (output_objc_section_asm_op): Added support for
18609 (is_objc_metadata): New.
18610 (darwin_objc2_section): New.
18611 (darwin_objc1_section): New.
18612 (machopic_select_section): Added support for ABI v1 and v2.
18613 (darwin_emit_objc_zeroed): New.
18614 (darwin_output_aligned_bss): Detect objc metadata and treat it
18616 (darwin_asm_output_aligned_decl_common): Same.
18617 (darwin_asm_output_aligned_decl_local): Same.
18618 * config/darwin-sections.def: Updated for ABI v1 and v2.
18619 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
18620 compiling Objective-C code for the NeXT runtime, default to using
18621 ABI version 0 for 32-bit, and version 2 for 64-bit.
18623 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18625 * common.opt (optimize_fast): New Variable.
18626 * opts.c (default_options_optimization): Use opts->x_optimize_fast
18627 instead of local variable ofast.
18629 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
18631 * doc/invoke.texi (fobjc-abi-version): Documented.
18632 (fobjc-nilcheck): Documented.
18633 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
18636 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18639 * common.opt (export-dynamic): New Driver option.
18640 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
18642 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18644 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
18646 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
18647 Jan Hubicka <jh@suse.cz>
18651 * cfgexpand.c (account_used_vars_for_block): Remove.
18652 (estimated_stack_frame_size): Use referenced vars.
18653 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
18654 that were referenced in the original function. Test src_fn
18655 rather than cfun. Drop redundant get_var_ann.
18656 (setup_one_parameter): Drop redundant get_var_ann.
18657 (declare_return_variable): Likewise.
18658 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
18659 (copy_arguments_for_versioning): Drop redundant get_var_ann.
18660 * ipa-inline.c (compute_inline_parameters): Do not compute
18661 disregard_inline_limits here.
18662 (compute_inlinable_for_current, pass_inlinable): New.
18663 (pass_inline_parameters): Require PROP_referenced_vars.
18664 * cgraphunit.c (cgraph_process_new_functions): Don't run
18665 compute_inline_parameters explicitly unless function is in SSA form.
18666 (cgraph_analyze_function): Set .disregard_inline_limits.
18667 * tree-sra.c (convert_callers): Compute inliner parameters
18668 only for functions already in SSA form.
18670 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18672 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
18673 -mlittle-endian-data.
18675 2011-02-17 Joseph Myers <joseph@codesourcery.com>
18677 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
18678 -mno-fpu, not -fpu and -no-fpu.
18679 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
18680 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
18682 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
18685 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
18686 input reload with PLUS RTX.
18688 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18690 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
18691 of InverseVar(MDMX).
18693 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18695 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
18698 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18700 * config/mn10300/mn10300.opt (mno-crt0): New.
18702 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18704 * config/m68k/uclinux.opt (static-libc): New Driver option.
18706 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18708 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
18710 2011-02-16 Joseph Myers <joseph@codesourcery.com>
18712 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
18713 %{muser-extend-enabled}.
18715 2011-02-16 Richard Guenther <rguenther@suse.de>
18717 PR tree-optimization/47738
18718 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
18719 the TODO from tree_predictive_commoning.
18721 2011-02-15 Jeff Law <law@redhat.com>
18724 2011-01-25 Jeff Law <law@redhat.com>
18726 PR rtl-optimization/37273
18727 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18728 handle them like argument loads from stack slots. Do not double
18729 count memory for memory constants and argument loads from stack slots.
18731 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
18733 PR middle-end/47725
18734 * combine.c (cant_combine_insn_p): Revert the last change.
18736 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
18739 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
18740 mode for vector constants. Remove code that checks for TImode.
18742 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
18746 * cgraph.h (compute_inline_parameters): Return void.
18747 * ipa-inline.c (compute_inline_parameters): Adjust.
18749 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
18753 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
18755 * cfgexpand.c (estimated_stack_frame_size): Likewise.
18756 * ipa-inline.c (compute_inline_parameters): Adjust.
18758 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
18762 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
18763 Adjust all users. Pass FN to...
18764 * tree-flow-inline.h (first_referenced_var): ... this. Add
18766 * ipa-struct-reorg.c: Adjust.
18767 * tree-dfa.c: Adjust.
18768 * tree-into-ssa.c: Adjust.
18769 * tree-sra.c: Adjust.
18770 * tree-ssa-alias.c: Adjust.
18771 * tree-ssa-live.c: Adjust.
18772 * tree-ssa.c: Adjust.
18773 * tree-ssanames.c: Adjust.
18774 * tree-tailcall.c: Adjust.
18776 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
18780 * tree-flow.h (referenced_var_lookup): Add fn parameter.
18781 Adjust all callers.
18782 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
18783 * tree-flow-inline.h: Adjust.
18784 * gimple-pretty-print.c: Adjust.
18785 * tree-into-ssa.c: Adjust.
18786 * tree-ssa.c: Adjust.
18787 * cfgexpand.c: Adjust.
18789 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
18791 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
18792 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18793 (EXTRA_CONSTRAINT): Delete.
18794 * config/iq2000/constraints.md: New file.
18795 * config/iq2000/iq2000.md: Include it.
18796 (define_insn ""): Delete.
18797 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
18798 unsupported constraint letters from patterns.
18799 (call_value, call_value_internal1): Likewise.
18800 (call_value_multiple_internal1): Likewise.
18802 2011-02-15 Nick Clifton <nickc@redhat.com>
18804 * config/mn10300/mn10300.c: Include tm-constrs.h.
18805 (struct liw_data): New data structure describing an LIW candidate
18807 (extract_bundle): Use struct liw_data. Allow small integer
18808 operands for some instructions.
18809 (check_liw_constraints): Use struct liw_data. Remove swapped
18810 parameter. Add comments describing the checks. Fix bug when
18811 assigning the source of liw1 to the source of liw2.
18812 (liw_candidate): Delete. Code moved into extract_bundle.
18813 (mn10300_bundle_liw): Use struct liw_data. Check constraints
18815 * config/mn10300/predicates.md (liw_operand): New predicate.
18816 Allows registers and small integer constants.
18817 * config/mn10300/constraints.md (O): New constraint. Accetps
18818 integers in the range -8 to +7 inclusive.
18819 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
18820 for moving a small integer into a register. Give this alternative
18822 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
18823 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
18824 using the J,K,L and M constraints,
18825 (liw): Remove SI mode on second operands to allow for HI and QI
18827 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
18830 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
18832 PR middle-end/47725
18833 * combine.c (cant_combine_insn_p): Check zero/sign extended
18836 2011-02-15 Richard Guenther <rguenther@suse.de>
18838 PR tree-optimization/47743
18839 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
18840 for a non-type-compatible VN lookup bail out.
18842 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
18844 * config/fr30/constraints.md: New file.
18845 * config/fr30/fr30.md: Include it.
18846 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
18847 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18848 (EXTRA_CONSTRAINT): Delete.
18850 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
18852 * config/frv/constraints.md: New file.
18853 * config/frv/predicates.md: Include it.
18854 * config/frv/frv.c (reg_class_from_letter): Delete.
18855 (frv_option_override): Don't initialize it.
18856 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
18857 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
18858 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
18859 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
18860 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
18861 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18862 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
18863 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
18864 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
18865 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
18866 (REG_CLASS_FROM_CONSTRAINT): Delete.
18868 2011-02-15 Jakub Jelinek <jakub@redhat.com>
18870 PR middle-end/47581
18871 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
18872 if frame size is 0 in a leaf function.
18874 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18877 * config/alpha/host-osf.c: New file.
18878 * config/alpha/x-osf: New file.
18879 * config.host (alpha*-dec-osf*): Use it.
18881 2011-02-14 Anatoly Sokolov <aesok@post.ru>
18883 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18884 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
18885 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
18886 (rx_mode_dependent_address_p): ...this. Make static. Change argument
18888 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18890 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
18892 * config/stormy16/constraints.md: New file.
18893 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
18894 Use satisfies_constraint_Q and satisfies_constraint_R.
18895 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
18897 (xstormy16_legitiamte_address_p): Declare.
18898 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
18899 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18900 (EXTRA_CONSTRAINT): Delete.
18901 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
18903 (xstormy16_extra_constraint_p): Delete.
18905 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
18907 PR tree-optimization/46494
18908 * loop-unroll.c (split_edge_and_insert): Adjust comment.
18909 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
18910 (pass_rtl_loop_done): Add TODO_verify_flow.
18911 * fwprop.c (pass_rtl_fwprop): Likewise.
18912 * modulo-sched.c (pass_sms): Likewise.
18913 * tree-ssa-dom.c (pass_dominator): Likewise.
18914 * tree-ssa-loop-ch.c (pass_ch): Likewise.
18915 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
18916 (pass_tree_loop_done): Likewise.
18917 * tree-ssa-pre.c (execute_pre): Likewise.
18918 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
18919 * tree-ssa-sink.c (pass_sink_code): Likewise.
18920 * tree-vrp.c (pass_vrp): Likewise.
18922 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
18924 * config/v850/constraints.md: New file.
18925 * config/v850/v850.md: Include it.
18926 * config/v850/predicates.md (reg_or_0_operand): Use
18927 satisfies_constraint_G.
18928 (special_symbolref_operand): Use satisfies_constraint_K.
18929 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
18930 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
18931 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
18932 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
18933 (EXTRA_CONSTRAINT): Delete.
18934 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
18935 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
18936 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
18938 2011-02-14 Anatoly Sokolov <aesok@post.ru>
18941 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
18944 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
18946 * config/mcore/constraints.md: New file.
18947 * config/mcore/mcore.md: Include it.
18948 * config/mcore/mcore.c (reg_class_from_letter): Delete.
18949 * config/mcore/mcore.h (reg_class_from_letter): Delete.
18950 (REG_CLASS_FROM_LETTER): Delete.
18951 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
18952 insn_const_int_ok_for_constraint.
18953 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
18954 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
18955 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
18956 (EXTRA_CONSTRAINT): Delete.
18958 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18961 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
18962 (IS_SIGHANDLER): Define.
18963 (sparc64_is_sighandler): New function, split off from
18964 sparc64_fallback_frame_state.
18965 (sparc_is_sighandler): New function, split off from
18966 sparc_fallback_frame_state.
18967 (sparc64_fallback_frame_state): Merge with ...
18968 (sparc_fallback_frame_state): ... this into ...
18969 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
18970 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
18971 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
18972 stack instead of hardcoded offsets.
18974 2011-02-14 Andriy Gapon <avg@freebsd.org>
18977 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
18979 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18981 * configure: Regenerate.
18983 2011-02-12 Joseph Myers <joseph@codesourcery.com>
18986 * gcc.c (asm_options): Correct spec matching --target-help.
18988 2011-02-12 Martin Jambor <mjambor@suse.cz>
18990 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
18991 to gimple call error.
18993 2011-02-12 Mike Stump <mikestump@comcast.net>
18995 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
18996 comments in backslash regions.
18998 2011-02-12 Mike Stump <mikestump@comcast.net>
18999 Jakub Jelinek <jakub@redhat.com>
19000 Iain Sandoe <iains@gcc.gnu.org>
19003 * dwarf2out.c (output_cfa_loc): When required, apply the
19004 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
19005 (output_loc_sequence): Likewise.
19006 (output_loc_operands_raw): Likewise.
19007 (output_loc_sequence_raw): Likewise.
19008 (output_cfa_loc): Likewise.
19009 (output_loc_list): Suppress register number adjustment when
19010 calling output_loc_sequence()
19011 (output_die): Likewise.
19013 2011-02-12 Anatoly Sokolov <aesok@post.ru>
19015 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
19017 * config/xtensa/xtensa.c (xtensa_register_move_cost,
19018 xtensa_memory_move_cost): New functions.
19019 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
19021 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
19024 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
19025 in the current directory.
19026 * configure: Rebuilt.
19028 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
19030 * config/darwin.c (darwin_override_options): Add a hunk missed
19031 from the commit of r168571. Trim comment line lengths and
19032 correct indents of the preceding block.
19034 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
19036 * gcc.c (driver_handle_option): Concatenate the argument to -F with
19039 2011-02-11 Joseph Myers <joseph@codesourcery.com>
19041 * common.opt (nostartfiles): New Driver option.
19043 2011-02-11 Xinliang David Li <davidxl@google.com>
19045 PR tree-optimization/47707
19046 * tree-chrec.c (convert_affine_scev): Keep type precision.
19048 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
19050 PR tree-optimization/47420
19051 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
19053 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
19055 PR rtl-optimization/47614
19056 * rtl.h (check_for_inc_dec): Declare.
19057 * dse.c (check_for_inc_dec): Externalize...
19058 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
19059 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
19061 2011-02-11 Joseph Myers <joseph@codesourcery.com>
19064 * gcc.c (main): Do not compile inputs if there were errors in
19066 * opts-common.c (read_cmdline_option): Check for wrong language
19067 after other error checks.
19069 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
19071 * cgraph.c: Fix comment typos.
19072 * cgraph.h: Likewise.
19073 * cgraphunit.c: Likewise.
19074 * ipa-cp.c: Likewise.
19075 * ipa-inline.c: Likewise.
19076 * ipa-prop.c: Likewise.
19077 * ipa-pure-const.c: Likewise.
19078 * ipa-ref.c: Likewise.
19079 * ipa-reference.c: Likewise.
19081 2011-02-11 Jakub Jelinek <jakub@redhat.com>
19084 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
19086 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19089 * doc/sourcebuild.texi (Require Support): Document
19090 dg-require-ascii-locale.
19092 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
19094 * doc/lto.texi (Write summary): Fix missing parentheses.
19096 2011-02-10 DJ Delorie <dj@redhat.com>
19098 * config/m32c/m32c.c (m32c_option_override): Disable
19099 -fcombine-stack-adjustments until flag value tracking and compare
19100 optimization can be rewritten.
19102 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
19104 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
19106 (PROCESSOR_DEFAULT64): Likewise.
19108 2011-02-10 Richard Henderson <rth@redhat.com>
19110 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
19111 change from 2011-02-03.
19112 * config/rx/rx.c (flags_from_code): Likewise.
19113 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
19114 is valid, n/pz otherwise.
19115 (rx_select_cc_mode): Return CCmode if Y is not zero.
19117 2011-02-10 Richard Guenther <rguenther@suse.de>
19119 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
19121 2011-02-10 Richard Guenther <rguenther@suse.de>
19123 PR tree-optimization/47677
19124 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
19126 2011-02-10 Jakub Jelinek <jakub@redhat.com>
19129 * combine.c (make_compound_operation): Only change shifts into
19130 multiplication for SCALAR_INT_MODE_P.
19132 2011-02-10 Jie Zhang <jie@codesourcery.com>
19136 2011-02-05 Jie Zhang <jie@codesourcery.com>
19138 * web.c (entry_register): Don't clobber the number of the
19139 first uninitialized reference in used[].
19141 2011-02-09 Richard Guenther <rguenther@suse.de>
19143 PR tree-optimization/47664
19144 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
19147 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
19151 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
19153 (PROCESSOR_DEFAULT64): Same.
19154 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
19156 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19158 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
19160 2011-02-09 Martin Jambor <mjambor@suse.cz>
19162 PR middle-end/45505
19163 * tree-sra.c (struct access): New flags grp_scalar_read and
19164 grp_scalar_write. Changed description of assignment read and write
19166 (dump_access): Dump new flags, reorder all of them.
19167 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
19168 to detect multiple scalar reads.
19169 (analyze_access_subtree): Use the new scalar read write flags instead
19170 of the old flags. Adjusted comments.
19172 2011-02-08 DJ Delorie <dj@redhat.com>
19175 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
19178 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19180 * config/m68k/uclinux.opt: New.
19181 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
19183 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19185 * config/cris/elf.opt (sim): New Driver option.
19187 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19189 * config/xtensa/elf.opt: New.
19190 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
19192 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19194 * config/vax/elf.opt: New.
19195 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
19197 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19199 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
19201 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19203 * config/gnu-user.opt: New.
19204 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
19205 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
19206 *-*-uclinux*): Use gnu-user.opt.
19208 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
19210 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
19211 * config/i386/gnu.h (CPP_SPEC): Likewise.
19213 2011-02-08 Ian Lance Taylor <iant@google.com>
19215 * common.opt (fcx-limited-range): Add SetByCombined flag.
19216 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
19217 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
19218 (fassociative-math, freciprocal-math): Likewise.
19219 (funsafe-math-optimizations): Likewise.
19220 * opth-gen.awk: Handle SetByCombined.
19221 * optc-gen.awk: Likewise.
19222 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
19223 (set_unsafe_math_optimizations_flags): Likewise.
19224 * doc/options.texi (Option properties): Document SetByCombined.
19226 2011-02-08 Joseph Myers <joseph@codesourcery.com>
19228 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
19229 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
19230 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
19231 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
19232 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
19234 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
19236 PR tree-optimization/46834
19237 PR tree-optimization/46994
19238 PR tree-optimization/46995
19239 * graphite-sese-to-poly.c (used_outside_reduction): New.
19240 (detect_commutative_reduction): Call used_outside_reduction.
19241 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
19242 translate_scalar_reduction_to_array only when at least one
19243 loop-phi/close-phi tuple has been detected.
19245 2011-02-08 Richard Guenther <rguenther@suse.de>
19247 PR middle-end/47639
19248 * tree-vect-generic.c (expand_vector_operations_1): Update
19250 (expand_vector_operations): ... not here. Cleanup EH info
19251 and the CFG if required.
19253 2011-02-08 Richard Guenther <rguenther@suse.de>
19255 PR tree-optimization/47641
19256 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
19257 require type compatibility.
19259 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19261 * gimple-low.c (lower_function_body): Don't remove the location of
19262 the return statement here.
19263 (lower_gimple_return): Do it here instead but only if the return
19264 statement is actually used twice.
19266 2011-02-08 Richard Guenther <rguenther@suse.de>
19268 PR tree-optimization/47632
19269 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
19270 unused up_to_stmt parameter, return whether cfg-cleanup is
19271 necessary, remove EH info properly.
19272 (forward_propagate_into_gimple_cond): Adjust caller.
19273 (forward_propagate_into_cond): Likewise.
19274 (forward_propagate_comparison): Likewise.
19275 (tree_ssa_forward_propagate_single_use_vars): Make
19276 forward_propagate_comparison case similar to the two others.
19278 2011-02-08 Nick Clifton <nickc@redhat.com>
19280 * config/mn10300/mn10300.opt (mliw): New command line option.
19281 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
19282 (liw_bundling): New automaton.
19283 (liw): New attribute.
19284 (liw_op): New attribute.
19285 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
19286 (movsi_internal): Add LIW attributes.
19287 (andsi3): Likewise.
19288 (iorsi3): Likewise.
19289 (xorsi3): Likewise.
19290 (addsi3): Separate register and immediate alternatives.
19291 Add LIW attributes.
19292 (subsi3): Likewise.
19294 (aslsi3): Likewise.
19295 (lshrsi3): Likewise.
19296 (ashrsi3): Likewise.
19297 (liw): New pattern.
19298 * config/mn10300/mn10300.c (liw_op_names): New
19299 (mn10300_print_operand): Handle 'W' operand descriptor.
19300 (extract_bundle): New function.
19301 (check_liw_constraints): New function.
19302 (liw_candidate): New function.
19303 (mn10300_bundle_liw): New function.
19304 (mn10300_reorg): New function.
19305 (TARGET_MACHINE_DEPENDENT_REORG): Define.
19306 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
19307 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
19308 __LIW__ or __NO_LIW__.
19309 * doc/invoke.texi: Describe the -mliw command line option.
19311 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19313 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
19314 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
19315 pthread_mutex_unlock): Remove.
19316 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
19317 * config/pa/t-pa64: Likewise.
19318 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
19319 shared libc if not linking against libpthread.
19320 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
19322 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
19325 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
19326 on 10.6 and later to ensure that we always use the unwinder from
19327 the system. Only add -no_compact_unwind when tarteting darwin
19330 2011-02-07 Steve Ellcey <sje@cup.hp.com>
19333 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
19334 (vec_interleave_lowv2sf): Ditto.
19335 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
19336 (vec_extract_oddv2sf): Ditto.
19338 2011-02-07 Mike Stump <mikestump@comcast.net>
19341 Add __ieee_divdc3 entry point.
19342 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
19344 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
19345 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
19346 * config/darwin.c (darwin_rename_builtins): Add.
19347 * config/darwin-protos.h (darwin_rename_builtins): Add.
19349 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
19352 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
19355 2011-02-07 Mike Stump <mikestump@comcast.net>
19357 * config/darwin.opt (mmacosx-version-min): Update default OS version.
19359 2011-02-07 Denis Chertykov <chertykov@gmail.com>
19362 * config/avr/libgcc.S (exit): Move .endfunc
19364 2011-02-07 Richard Guenther <rguenther@suse.de>
19366 PR tree-optimization/47615
19367 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
19368 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
19369 (run_scc_vn): Initialize it.
19370 (visit_reference_op_load): Use it.
19371 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
19373 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19375 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
19376 DImode trapping arithmetic libfuncs.
19378 2011-02-07 Richard Guenther <rguenther@suse.de>
19380 PR tree-optimization/47621
19381 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
19383 (execute_update_addresses_taken): ... here. Make it more
19384 conservative in what we accept.
19386 2011-02-06 Joseph Myers <joseph@codesourcery.com>
19388 * config/sparc/freebsd.h (ASM_SPEC): Define.
19389 * config/sparc/vxworks.h (ASM_SPEC): Define.
19391 2011-02-06 Joseph Myers <joseph@codesourcery.com>
19393 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19395 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
19397 * doc/invoke.texi: Remove reference to compiler internals from
19398 user documentation.
19400 * reg-notes.def: Remove REG_VALUE_PROFILE.
19401 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
19403 2011-02-05 Jakub Jelinek <jakub@redhat.com>
19405 PR middle-end/47610
19406 * varasm.c (default_section_type_flags): If decl is NULL,
19407 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
19409 2011-02-05 Jie Zhang <jie@codesourcery.com>
19412 * web.c (entry_register): Don't clobber the number of the
19413 first uninitialized reference in used[].
19415 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
19417 PR tree-optimization/46194
19418 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
19419 (build_classic_dist_vector_1): Do not represent classic distance
19420 vectors when the access functions are variating in different loops.
19422 2011-02-04 Joseph Myers <joseph@codesourcery.com>
19424 * config/mips/iris6.opt: New.
19425 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
19427 2011-02-04 Richard Henderson <rth@redhat.com>
19428 Steve Ellcey <sje@cup.hp.com>
19431 * config/ia64/predicates.md (mux1_brcst_element): New.
19432 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
19433 * config/ia64/ia64.c (ia64_unpack_assemble): New.
19434 (ia64_unpack_sign): New.
19435 (ia64_expand_unpack): Rewrite using new routines.
19436 (ia64_expand_widen_sum): Ditto.
19437 (ia64_expand_dot_prod_v8qi): Ditto.
19438 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
19439 routines, add endian check.
19440 (pmpy2_even): Rename from pmpy2_r, add endian check.
19441 (pmpy2_odd): Rename from pmpy2_l, add endian check.
19442 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
19443 (vec_widen_smult_hi_v4hi): Ditto.
19444 (vec_widen_umult_lo_v4hi): Ditto.
19445 (vec_widen_umult_hi_v4hi): Ditto.
19446 (mulv2si3): Change endian checks.
19447 (sdot_prodv4hi): Rewrite with new calls.
19448 (udot_prodv4hi): New.
19449 (vec_pack_ssat_v4hi): Add endian check.
19450 (vec_pack_usat_v4hi): Ditto.
19451 (vec_pack_ssat_v2si): Ditto.
19452 (max1_even): Rename from max1_r, add endian check.
19453 (max1_odd): Rename from max1_l, add endian check.
19454 (*mux1_rev): Format change.
19455 (*mux1_mix): Ditto.
19456 (*mux1_shuf): Ditto.
19457 (*mux1_alt): Ditto.
19458 (*mux1_brcst_v8qi): Use new predicate.
19459 (vec_extract_evenv8qi): Remove endian check.
19460 (vec_extract_oddv8qi): Ditto.
19461 (vec_interleave_lowv4hi): Format change.
19462 (vec_interleave_highv4hi): Ditto.
19463 (mix2_even): Rename from mix2_r, add endian check.
19464 (mix2_odd): Rename from mux2_l, add endian check.
19465 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
19466 (vec_extract_evenodd_helper): Format change.
19467 (vec_extract_evenv4hi): Remove endian check.
19468 (vec_extract_oddv4hi): Remove endian check.
19469 (vec_interleave_lowv2si): Format change.
19470 (vec_interleave_highv2si): Format change.
19471 (vec_initv2si): Remove endian check.
19472 (vecinit_v2si): Add endian check.
19473 (reduc_splus_v2sf): Add endian check.
19474 (reduc_smax_v2sf): Ditto.
19475 (reduc_smin_v2sf): Ditto.
19476 (vec_initv2sf): Remove endian check.
19477 (fpack): Add endian check.
19478 (fswap): Add endian check.
19479 (vec_interleave_highv2sf): Add endian check.
19480 (vec_interleave_lowv2sf): Add endian check.
19481 (fmix_lr): Add endian check.
19482 (vec_setv2sf): Format change.
19483 (*vec_extractv2sf_0_be): Use shift to extract operand.
19484 (*vec_extractv2sf_1_be): New.
19485 (vec_pack_trunc_v4hi): Add endian check.
19486 (vec_pack_trunc_v2si): Format change.
19488 2011-02-04 Jakub Jelinek <jakub@redhat.com>
19490 PR inline-asm/23200
19491 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
19492 do bb, locus and block comparison and disallow loads if it is not set.
19493 (stmt_is_replaceable_p): New function.
19494 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
19496 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
19497 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
19499 * tree-flow.h (stmt_is_replaceable_p): New prototype.
19501 2011-02-04 Joseph Myers <joseph@codesourcery.com>
19503 * config/rs6000/xilinx.opt: New.
19504 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
19506 2011-02-04 Joseph Myers <joseph@codesourcery.com>
19508 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
19510 2011-02-03 Anatoly Sokolov <aesok@post.ru>
19512 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
19513 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
19514 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
19515 secondary_reload_info, xtensa_secondary_reload): Remove.
19516 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
19517 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
19518 (xtensa_preferred_reload_class): Make static. Change return and
19519 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
19520 Use CONST_DOUBLE_P predicate.
19521 (xtensa_preferred_output_reload_class): New function.
19522 (xtensa_secondary_reload): Make static.
19524 2011-02-03 Joseph Myers <joseph@codesourcery.com>
19526 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
19527 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
19528 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
19530 2011-02-03 Jakub Jelinek <jakub@redhat.com>
19532 PR middle-end/31490
19533 * output.h (SECTION_RELRO): Define.
19534 (SECTION_MACH_DEP): Adjust.
19535 (get_variable_section): New prototype.
19536 * varpool.c (varpool_finalize_named_section_flags): New function.
19537 (varpool_assemble_pending_decls): Call it.
19538 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
19539 * cgraphunit.c (cgraph_output_in_order): Call
19540 varpool_finalize_named_section_flags.
19541 * varasm.c (get_section): Allow section flags conflicts between
19542 relro and read-only sections if the section hasn't been declared yet.
19543 Set SECTION_OVERRIDE after diagnosing section type conflict.
19544 (get_variable_section): No longer static.
19545 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
19546 readonly sections that need relocations.
19547 (decl_readonly_section_1): New function.
19548 (decl_readonly_section): Use it.
19551 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
19552 Steve Ellcey <sje@cup.hp.com>
19554 PR middle-end/31490
19555 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
19556 if section attribute used.
19558 2011-02-03 Jakub Jelinek <jakub@redhat.com>
19560 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
19561 * config/darwin.c (SECTION_NO_ANCHOR): Define.
19562 (darwin_init_sections): Remove assertion.
19564 2011-02-03 Nick Clifton <nickc@redhat.com>
19566 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
19568 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
19569 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
19570 instead of "n" and "pz".
19571 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
19574 2011-02-03 Jakub Jelinek <jakub@redhat.com>
19577 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
19578 fma, expand FMA_EXPR as fma{,f,l} call.
19581 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
19582 copy them into a unsigned char variable and pass address of it to
19583 lto_output_data_stream.
19586 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
19587 around backend_init_target and lang_dependent_init_target calls.
19588 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
19589 (verify_cgraph_node): Don't call set_cfun here. Use
19590 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
19591 Set error_found for incorrectly represented calls to thunks.
19593 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
19596 PR rtl-optimization/43494
19597 * rtl.h (for_each_inc_dec_fn): New type.
19598 (for_each_inc_dec): Declare.
19599 * rtlanal.c (struct for_each_inc_dec_ops): New type.
19600 (for_each_inc_dec_find_inc_dec): New fn.
19601 (for_each_inc_dec_find_mem): New fn.
19602 (for_each_inc_dec): New fn.
19603 * dse.c (struct insn_size): Remove.
19604 (replace_inc_dec, replace_inc_dec_mem): Remove.
19605 (emit_inc_dec_insn_before): New fn.
19606 (check_for_inc_dec): Use it, along with for_each_inc_dec.
19607 (canon_address): Pass mem modes to cselib_lookup.
19608 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
19609 (cselib_lookup_from_insn): Likewise.
19610 (cselib_subst_to_values): Likewise.
19611 * cselib.c (find_slot_memmode): New var.
19612 (cselib_find_slot): New fn. Use it instead of
19613 htab_find_slot_with_hash everywhere.
19614 (entry_and_rtx_equal_p): Use find_slot_memmode.
19615 (autoinc_split): New fn.
19616 (rtx_equal_for_cselib_p): Rename and implement in terms of...
19617 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
19618 Deal with autoinc. Special-case recursion into MEMs.
19619 (cselib_hash_rtx): Likewise.
19620 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
19621 address and MEM modes.
19622 (cselib_subst_to_values): Add memmode, pass it on.
19624 (cselib_lookup): Add memmode argument, pass it on.
19625 (cselib_lookup_from_insn): Add memmode.
19626 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
19627 (struct cselib_record_autoinc_data): New.
19628 (cselib_record_autoinc_cb): New fn.
19629 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
19630 mode to cselib_lookup. Reset autoinced REGs here instead of...
19631 (cselib_process_insn): ... here.
19632 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
19634 (add_uses): Likewise, also to cselib_subst_to_values.
19635 (add_stores): Likewise.
19636 * sched-deps.c (add_insn_mem_dependence): Pass mode to
19637 cselib_subst_to_values.
19638 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
19639 * gcse.c (do_local_cprop): Adjusted.
19640 * postreload.c (reload_cse_simplify_set): Adjusted.
19641 (reload_cse_simplify_operands): Adjusted.
19642 * sel-sched-dump (debug_mem_addr_value): Pass mode.
19644 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
19646 PR tree-optimization/45122
19647 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
19648 unsafe assumptions when there's more than one loop exit.
19650 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19653 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
19654 Document using vector double with the load/store builtins, and
19655 that the load/store builtins always use Altivec instructions.
19657 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
19658 to use altivec memory instructions, even on VSX.
19659 (vector_altivec_store_<mode>): Ditto.
19661 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
19664 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19665 V2DF, V2DI support to load/store overloaded builtins.
19667 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
19668 altivec load/store builtins for V2DF/V2DI types.
19670 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
19671 set avoid indexed addresses on power6 if -maltivec.
19672 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
19673 vector_altivec_load/vector_altivec_store builtins.
19674 (altivec_expand_st_builtin): Ditto.
19675 (altivec_expand_builtin): Add VSX memory builtins.
19676 (rs6000_init_builtins): Add V2DI types to internal types.
19677 (altivec_init_builtins): Add support for V2DF/V2DI altivec
19678 load/store builtins.
19679 (rs6000_address_for_altivec): Insure memory address is appropriate
19682 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
19683 vec_vsx_ld and vec_vsx_st.
19684 (vsx_store_<mode>): Ditto.
19686 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
19687 variables to hold long long types for VSX vector memory builtins.
19688 (RS6000_BTI_unsigned_long_long): Ditto.
19689 (long_long_integer_type_internal_node): Ditti.
19690 (long_long_unsigned_type_internal_node): Ditti.
19692 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
19693 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
19694 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
19696 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
19698 (vec_vsx_st): Ditto.
19700 2011-02-02 Joseph Myers <joseph@codesourcery.com>
19702 * config/pa/pa-hpux10.opt: New.
19703 * config/hpux11.opt (pthread): New Driver option.
19704 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
19705 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
19707 2011-02-02 Joseph Myers <joseph@codesourcery.com>
19709 * config/ia64/vms.opt: New.
19710 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
19712 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
19715 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
19716 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
19717 generator functions.
19718 (vsx_floatuns<VSi><mode>2): Ditto.
19719 (vsx_fix_trunc<mode><VSi>2): Ditto.
19720 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
19722 2011-02-02 Joseph Myers <joseph@codesourcery.com>
19724 * config/i386/djgpp.opt (posix): New Driver option.
19726 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
19728 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
19729 Move to the unsupported targets list.
19731 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
19733 PR rtl-optimization/47525
19734 * df-scan.c: Update copyright years.
19735 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
19736 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
19738 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19740 * config/i386/sysv4.h (TARGET_VERSION): Remove.
19741 (SUBTARGET_RETURN_IN_MEMORY): Remove.
19742 (ASM_OUTPUT_ASCII): Remove.
19743 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
19745 2011-02-02 Jeff Law <law@redhat.com>
19747 PR middle-end/47543
19748 * reload.c (find_reloads_address): Handle reg+d address where both
19749 components are invalid by reloading the entire address.
19751 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
19752 Richard Guenther <rguenther@suse.de>
19754 PR tree-optimization/40979
19756 * passes.c (init_optimization_passes): After LIM call copy_prop
19757 and DCE to clean up.
19758 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
19760 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
19762 PR tree-optimization/47576
19763 PR tree-optimization/47555
19764 * doc/invoke.texi (scev-max-expr-complexity): Documented.
19765 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
19766 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
19767 * tree-scalar-evolution.c (follow_ssa_edge): Use
19768 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
19770 2011-02-02 Richard Guenther <rguenther@suse.de>
19772 PR tree-optimization/47566
19773 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
19775 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
19779 * tree-inline.c (declare_return_variable): Remove unused caller
19784 * tree-flow-inline.h (clear_is_used, is_used_p): New.
19785 * cfgexpand.c (account_used_vars_for_block): Use them.
19786 * tree-nrv.c (tree_nrv): Likewise.
19787 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
19788 (dump_scope_block): Likewise.
19789 (remove_unused_locals): Likewise.
19793 * tree-inline.c (declare_return_variable): Add result decl to
19794 local decls only once.
19795 * gimple-low.c (record_vars_into): Mark newly-created variables
19798 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
19804 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
19806 (no_real_insns_p, schedule_block, set_priorities): Drop special
19807 treatment of boundary debug insns.
19808 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
19809 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
19810 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
19811 (BOUNDARY_DEBUG_INSN_P): Likewise.
19812 (SCHEDULE_DEBUG_INSN_P): Likewise.
19813 * sched-rgn.c (init_ready_list): Drop special treatment of
19814 boundary debug insns.
19815 * final.c (rest_of_clean_state): Clear notes' BB.
19817 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19819 * config/openbsd.opt (assert=): New Driver option.
19821 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19823 * config/i386/nto.opt: New.
19824 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
19826 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19828 * config/i386/netware.opt: New.
19829 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
19831 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19833 * config/interix.opt (posix): New Driver option.
19835 2011-02-01 DJ Delorie <dj@redhat.com>
19837 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
19839 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
19842 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
19844 PR tree-optimization/47561
19845 * toplev.c (process_options): Print the Graphite flags. Add
19846 flag_loop_flatten to the list of options requiring Graphite.
19848 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19850 * config/i386/cygming.opt (posix): New Driver option.
19852 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19854 * config/arm/vxworks.opt: New.
19855 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
19857 2011-02-01 Joseph Myers <joseph@codesourcery.com>
19859 * config/alpha/elf.opt: New.
19860 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
19861 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
19863 2011-02-01 Richard Guenther <rguenther@suse.de>
19865 PR tree-optimization/47559
19866 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
19867 store-motion on references that can throw.
19869 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
19871 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
19872 * tree-pass.h (TDF_CSELIB): New macro.
19873 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
19874 cselib_lookup): Check for it rather than for TDF_DETAILS.
19876 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
19879 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
19880 is HOST_BIT_BUCKET.
19882 * opts.c (finish_options): Don't add x_aux_base_name if it is
19885 2011-02-01 Richard Guenther <rguenther@suse.de>
19887 PR tree-optimization/47555
19889 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
19891 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
19893 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
19896 * config/lm32/t-lm32: Add multilib for all CPU options.
19898 2011-02-01 Richard Guenther <rguenther@suse.de>
19900 PR tree-optimization/47541
19901 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
19902 sure to have a field at offset zero.
19904 2011-01-31 Joseph Myers <joseph@codesourcery.com>
19906 * config/arc/arc.opt (EB, EL): New Driver options.
19908 2011-01-31 Joseph Myers <joseph@codesourcery.com>
19910 * config/alpha/osf5.opt: New.
19911 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
19913 2011-01-31 Joseph Myers <joseph@codesourcery.com>
19915 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
19917 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
19919 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
19920 -floop-interchange.
19921 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
19922 is an alias of -floop-interchange and that it requires the
19923 Graphite infrastructure.
19924 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
19925 flag_loop_interchange based on the value of flag_tree_loop_linear.
19927 2011-01-31 Jakub Jelinek <jakub@redhat.com>
19928 Richard Guenther <rguenther@suse.de>
19930 PR tree-optimization/47538
19931 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
19932 type instead of r1type, except for comparisons. For right
19933 shifts and comparisons punt if there are mismatches in
19934 sizetype vs. non-sizetype types.
19936 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19938 * doc/sourcebuild.texi (Effective-Target Keywords): Document
19941 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19943 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
19945 * configure: Regenerate.
19947 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19949 * configure.ac (gcc_cv_ld_static_option): Define.
19950 (gcc_cv_ld_dynamic_option): Define.
19951 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
19953 (HAVE_LD_STATIC_DYNAMIC): Update message.
19954 (LD_STATIC_OPTION): Define.
19955 (LD_DYNAMIC_OPTION): Define.
19956 * configure: Regenerate.
19957 * config.in: Regenerate.
19958 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
19959 HAVE_LD_STATIC_DYNAMIC]: Use them.
19961 2011-01-31 Nick Clifton <nickc@redhat.com>
19963 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
19964 registers inside interrupt handlers if the handler is not a leaf
19967 2011-01-31 Nick Clifton <nickc@redhat.com>
19969 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
19970 reg_renumber returning an INVALID_REGNUM.
19972 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
19975 * doc/install.texi: Document host options discarded when cross
19976 configuring target libraries.
19978 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
19981 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
19984 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
19986 (no_real_insns_p, schedule_block, set_priorities): Drop special
19987 treatment of boundary debug insns.
19988 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
19989 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
19990 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
19991 (BOUNDARY_DEBUG_INSN_P): Likewise.
19992 (SCHEDULE_DEBUG_INSN_P): Likewise.
19993 * sched-rgn.c (init_ready_list): Drop special treatment of
19994 boundary debug insns.
19995 * final.c (rest_of_clean-state): Clear notes' BB.
19997 2011-01-31 Alan Modra <amodra@gmail.com>
19999 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
20000 toc relative expressions as we do in print_operand_address.
20002 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
20004 * doc/extend.texi: Follow spelling conventions.
20005 * doc/invoke.texi: Fix a typo.
20007 2011-01-30 Joseph Myers <joseph@codesourcery.com>
20009 * config/hpux11.opt: New.
20010 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
20011 ia64*-*-hpux*): Use hpux11.opt.
20013 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
20015 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
20018 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
20020 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
20023 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
20025 * doc/install.texi (Binaries): Remove outdated reference for
20026 Motorola 68HC11/68HC12 downloads.
20028 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
20030 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
20033 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
20036 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
20039 2011-01-28 Ahmad Sharif <asharif@google.com>
20041 * value-prof.c (check_counter): Corrected error message.
20043 2011-01-29 Jie Zhang <jie@codesourcery.com>
20045 * config/arm/arm.c (arm_legitimize_reload_address): New.
20046 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
20047 arm_legitimize_reload_address.
20048 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
20050 2011-01-28 Ian Lance Taylor <iant@google.com>
20052 * godump.c (go_define): Ignore macros whose definitions include
20053 two adjacent operands.
20055 2011-01-28 Jakub Jelinek <jakub@redhat.com>
20058 * varasm.c (force_const_mem): Store copy of x in desc->constant
20059 instead of x itself.
20060 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
20061 itself into REG_EQUAL note.
20063 2011-01-28 Joseph Myers <joseph@codesourcery.com>
20065 * config/freebsd.opt (posix, rdynamic): New Driver options.
20067 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20069 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
20070 -Bstatic/-Bdynamic.
20071 * configure: Regenerate.
20073 2011-01-27 Joseph Myers <joseph@codesourcery.com>
20075 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
20076 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
20078 2011-01-27 Anatoly Sokolov <aesok@post.ru>
20080 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
20081 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
20082 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
20083 (s390_preferred_reload_class): Make static. Change return and
20084 'rclass' argument type to reg_class_t.
20086 2011-01-27 Jan Hubicka <jh@suse.cz>
20088 PR middle-end/46949
20089 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
20090 (process_function_and_variable_attributes): Check defined weakrefs.
20092 2011-01-27 Martin Jambor <mjambor@suse.cz>
20094 PR tree-optimization/47228
20095 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
20096 build_ref_for_offset.
20098 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20100 * config/spu/spu-elf.h (ASM_SPEC): Remove.
20102 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
20104 PR rtl-optimization/46856
20105 * postreload.c (reload_combine_recognize_const_pattern): Do not
20106 separate cc0 setter and user on cc0 targets.
20108 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
20111 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
20112 passed a VOID_TYPE expression, immediately emit an error and
20113 return error_mark_node.
20115 2011-01-26 Jeff Law <law@redhat.com>
20117 PR rtl-optimization/47464
20118 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
20119 rather than may_trap_p as needed.
20121 2011-01-26 DJ Delorie <dj@redhat.com>
20123 PR rtl-optimization/46878
20124 * combine.c (insn_a_feeds_b): Check for the implicit cc0
20125 setter/user dependency as well.
20127 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
20129 PR rtl-optimization/44469
20130 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
20131 after removing trivially dead basic blocks.
20133 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20135 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
20136 * config/frv/frv.h (LINK_SPEC): Likewise.
20137 * config/i386/netware.h (LINK_SPEC): Likewise.
20138 * config/m68k/linux.h (ASM_SPEC): Likewise.
20139 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
20140 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20141 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20142 * config/sparc/linux.h (ASM_SPEC): Likewise.
20143 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20144 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20146 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20148 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
20149 * config/frv/frv.h (ASM_SPEC): Likewise.
20150 * config/m68k/linux.h (ASM_SPEC): Likewise.
20151 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20152 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
20153 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20154 * config/sparc/linux.h (ASM_SPEC): Likewise.
20155 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20156 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20158 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20160 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
20161 * config/frv/frv.h (LINK_SPEC): Likewise.
20162 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
20164 2011-01-26 Joseph Myers <joseph@codesourcery.com>
20166 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
20167 * config/frv/frv.h (ASM_SPEC): Likewise.
20168 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
20169 * config/m68k/linux.h (ASM_SPEC): Likewise.
20170 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
20171 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20172 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20173 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
20174 * config/sparc/linux.h (ASM_SPEC): Likewise.
20175 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20176 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20177 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
20179 2011-01-26 Steve Ellcey <sje@cup.hp.com>
20182 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
20184 (vec_extract_evenodd_help): Ditto.
20185 (vec_extract_evenv4hi): Ditto.
20186 (vec_extract_oddv4hi): Ditto.
20187 (vec_interleave_lowv2si): Ditto.
20188 (vec_interleave_highv2si): Ditto.
20189 (vec_extract_evenv2si): Ditto.
20190 (vec_extract_oddv2si: Ditto.
20191 (vec_pack_trunc_v2si): Ditto.
20193 2011-01-22 Jan Hubicka <jh@suse.cz>
20196 * cgraph.h (cgraph_local_info): New field can_change_signature.
20197 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
20198 signature can change.
20199 (ipcp_estimate_growth): Call sequence simplify only if calle signature
20201 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
20202 (cgraph_function_versioning): We can not change signature of functions
20203 that don't allow that.
20204 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
20205 (lto_input_node): Likewise.
20206 * ipa-inline.c (compute_inline_parameters): Compute
20207 local.can_change_signature.
20208 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
20209 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
20210 functions that can not change signature.
20211 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
20212 init_cumulative_args): Do not use local calling conventions
20213 for functions that can not change signature.
20215 2011-01-22 Jan Hubicka <jh@suse.cz>
20217 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
20219 2011-01-26 Richard Guenther <rguenther@suse.de>
20221 PR tree-optimization/47190
20222 * cgraphunit.c (process_common_attributes): New function.
20223 (process_function_and_variable_attributes): Use it.
20225 2011-01-26 Richard Guenther <rguenther@suse.de>
20228 * cgraphbuild.c (record_eh_tables): Record reference to personality
20231 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
20234 * sel-sched.c (moveup_expr): Don't let debug insns prevent
20235 non-debug insns from moving up.
20237 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
20240 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
20241 t-dlldir{,-x} fragment for build and add it to tmake_file.
20242 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
20243 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
20244 * config/i386/t-dlldir: New file.
20245 (SHLIB_DLLDIR): Define.
20246 * config/i386/t-dlldir-x: New file.
20247 (SHLIB_DLLDIR): Define.
20248 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
20249 (SHLIB_INSTALL): Use it.
20251 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
20254 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
20255 lower bound of the allowed Thumb-2 coprocessor load/store
20256 index range to -256. Add explaining comment.
20258 2011-01-25 Ian Lance Taylor <iant@google.com>
20260 * godump.c (go_define): Improve lexing of macro expansion to only
20261 accept expressions which match Go spec.
20263 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
20266 * tree.c (handle_dll_attribute): Handle it.
20267 * doc/extend.texi (@item dllexport): Mention it.
20268 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
20270 2011-01-25 Ian Lance Taylor <iant@google.com>
20272 PR tree-optimization/26854
20273 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
20274 (decl_jump_unsafe): Move higher in file, with no other change.
20275 (bind): Set has_jump_unsafe_decl if appropriate.
20276 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
20277 (check_earlier_gotos): Likewise.
20278 (c_check_switch_jump_warnings): Likewise.
20280 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
20282 * doc/invoke.texi (Warning Options): Add missing hyphen.
20283 (-fprofile-dir): Minor grammatical fixes.
20284 (-fbranch-probabilities): Likewise.
20286 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
20290 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
20292 (no_real_insns_p, schedule_block, set_priorities): Drop special
20293 treatment of boundary debug insns.
20294 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
20295 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
20296 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
20297 (BOUNDARY_DEBUG_INSN_P): Likewise.
20298 (SCHEDULE_DEBUG_INSN_P): Likewise.
20299 * sched-rgn.c (init_ready_list): Drop special treatment of
20300 boundary debug insns.
20301 * final.c (rest_of_clean-state): Clear notes' BB.
20303 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20305 * Makefile.in (LAMBDA_H): Removed.
20306 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
20307 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
20308 lambda-trans.o, and tree-loop-linear.o.
20309 (lto-symtab.o): Remove dependence on LAMBDA_H.
20310 (tree-loop-linear.o): Remove rule.
20311 (lambda-mat.o): Same.
20312 (lambda-trans.o): Same.
20313 (lambda-code.o): Same.
20314 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
20315 (tree-vect-slp.o): Same.
20316 * hwint.h (gcd): Moved here.
20317 (least_common_multiple): Same.
20318 * lambda-code.c: Removed.
20319 * lambda-mat.c: Removed.
20320 * lambda-trans.c: Removed.
20321 * lambda.h: Removed.
20322 * tree-loop-linear.c: Removed.
20323 * lto-symtab.c: Do not include lambda.h.
20324 * omega.c (gcd): Removed.
20325 * passes.c (init_optimization_passes): Remove pass_linear_transform.
20326 * tree-data-ref.c (print_lambda_vector): Moved here.
20327 (lambda_vector_copy): Same.
20328 (lambda_matrix_copy): Same.
20329 (lambda_matrix_id): Same.
20330 (lambda_vector_first_nz): Same.
20331 (lambda_matrix_row_add): Same.
20332 (lambda_matrix_row_exchange): Same.
20333 (lambda_vector_mult_const): Same.
20334 (lambda_vector_negate): Same.
20335 (lambda_matrix_row_negate): Same.
20336 (lambda_vector_equal): Same.
20337 (lambda_matrix_right_hermite): Same.
20338 * tree-data-ref.h: Do not include lambda.h.
20339 (lambda_vector): Moved here.
20340 (lambda_matrix): Same.
20341 (dependence_level): Same.
20342 (lambda_transform_legal_p): Removed declaration.
20343 (lambda_collect_parameters): Same.
20344 (lambda_compute_access_matrices): Same.
20345 (lambda_vector_gcd): Same.
20346 (lambda_vector_new): Same.
20347 (lambda_vector_clear): Same.
20348 (lambda_vector_lexico_pos): Same.
20349 (lambda_vector_zerop): Same.
20350 (lambda_matrix_new): Same.
20351 * tree-flow.h (least_common_multiple): Removed declaration.
20352 * tree-parloops.c (lambda_trans_matrix): Moved here.
20353 (LTM_MATRIX): Same.
20354 (LTM_ROWSIZE): Same.
20355 (LTM_COLSIZE): Same.
20356 (LTM_DENOMINATOR): Same.
20357 (lambda_trans_matrix_new): Same.
20358 (lambda_matrix_vector_mult): Same.
20359 (lambda_transform_legal_p): Same.
20360 * tree-pass.h (pass_linear_transform): Removed declaration.
20361 * tree-ssa-loop.c (tree_linear_transform): Removed.
20362 (gate_tree_linear_transform): Removed.
20363 (pass_linear_transform): Removed.
20364 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
20365 flag_loop_interchange.
20367 2011-01-25 Jakub Jelinek <jakub@redhat.com>
20369 PR tree-optimization/47265
20370 PR tree-optimization/47443
20371 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
20372 if name still has some uses.
20374 2011-01-25 Martin Jambor <mjambor@suse.cz>
20376 PR tree-optimization/47382
20377 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
20378 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
20380 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
20382 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
20383 sjlj_except_unwind_info.
20385 2011-01-25 Richard Guenther <rguenther@suse.de>
20387 PR tree-optimization/47426
20388 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
20389 visible functions results escape.
20391 2011-01-25 Jakub Jelinek <jakub@redhat.com>
20394 * config/arm/arm.c (any_sibcall_uses_r3): New function.
20395 (arm_get_frame_offsets): Use it.
20397 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20398 Jakub Jelinek <jakub@redhat.com>
20400 PR tree-optimization/47271
20401 * tree-if-conv.c (bb_postdominates_preds): New.
20402 (if_convertible_bb_p): Call bb_postdominates_preds.
20403 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
20404 (predicate_scalar_phi): Call bb_postdominates_preds.
20406 2011-01-25 Nick Clifton <nickc@redhat.com>
20408 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
20409 * config/rx/rx.c (rx_function_value): Likewise.
20410 (rx_promote_function_mode): Likewise.
20411 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
20412 in order to make it legitimate.
20413 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
20414 make sure that the first operand is the same as the result register.
20415 (addsi3_unspec): Delete.
20416 (subdi3): Do not accept immediate operands.
20417 (subdi3_internal): Likewise.
20419 2011-01-25 Jeff Law <law@redhat.com>
20421 PR rtl-optimization/37273
20422 * ira-costs.c (scan_one_insn): Detect constants living in memory and
20423 handle them like argument loads from stack slots. Do not double
20424 count memory for memory constants and argument loads from stack slots.
20426 2011-01-25 Jakub Jelinek <jakub@redhat.com>
20428 PR tree-optimization/47427
20429 PR tree-optimization/47428
20430 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
20431 coalesce if the new root var would be TREE_READONLY.
20433 2011-01-25 Richard Guenther <rguenther@suse.de>
20435 PR middle-end/47414
20436 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
20437 correct type for TBAA.
20439 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20441 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
20442 (close_phi_written_to_memory): Call for_each_index with
20443 dr_indices_valid_in_loop.
20445 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20447 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
20448 when it is initialized.
20450 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20452 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
20453 call to graphite_find_data_references_in_stmt.
20454 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
20455 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
20456 call to graphite_find_data_references_in_stmt.
20457 (analyze_drs_in_stmts): Same.
20458 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
20459 in which the scalar analysis of indices is performed.
20460 (create_data_ref): Same. Update call to dr_analyze_indices.
20461 (find_data_references_in_stmt): Update call to create_data_ref.
20462 (graphite_find_data_references_in_stmt): Same.
20463 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
20465 (create_data_ref): Same.
20466 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
20467 call to create_data_ref.
20469 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20471 * graphite-sese-to-poly.c (build_poly_scop): Move
20472 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
20474 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20476 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
20477 VAR_DECL, PARM_DECL, and RESULT_DECL.
20479 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20481 * graphite-dependences.c (reduction_dr_1): Allow several reductions
20482 in a reduction PBB.
20483 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
20484 that have already been marked as PBB_IS_REDUCTION.
20486 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20488 * graphite-scop-detection.c (same_close_phi_node): New.
20489 (remove_duplicate_close_phi): New.
20490 (make_close_phi_nodes_unique): New.
20491 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
20493 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20495 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
20496 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
20497 of both data references to be the same.
20499 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20501 * graphite-dependences.c (build_lexicographical_constraint): Remove
20502 the gdim parameter.
20503 (build_lexicographical_constraint): Adjust call to
20504 ppl_powerset_is_empty.
20505 (dependence_polyhedron): Same.
20506 (graphite_legal_transform_dr): Same.
20507 (graphite_carried_dependence_level_k): Same.
20508 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
20510 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
20512 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20514 * graphite-sese-to-poly.c
20515 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
20516 (close_phi_written_to_memory): New.
20517 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
20520 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20522 * doc/install.texi: Update the expected version number of PPL to 0.11.
20523 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
20524 #if PPL_VERSION_MINOR < 11.
20526 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20528 * graphite-dependences.c: Include graphite-cloog-util.h.
20529 (new_poly_ddr): Inlined into dependence_polyhedron.
20530 (free_poly_ddr): Moved close by new_poly_ddr.
20531 (dependence_polyhedron_1): Renamed dependence_polyhedron.
20532 Early return NULL when ppl_powerset_is_empty returns true.
20533 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
20534 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
20535 (graphite_legal_transform_dr): Call new_poly_ddr.
20536 (graphite_carried_dependence_level_k): Same.
20537 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
20538 (dot_transformed_deps_stmt_1): Removed.
20539 (dot_deps_stmt_1): Call dot_deps_stmt_2.
20540 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
20541 (dot_deps_1): Call dot_deps_2.
20542 * Makefile.in (graphite-dependences.o): Add missing dependence on
20543 graphite-cloog-util.h.
20545 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20547 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
20548 (build_lexicographical_constraint): Same.
20549 (dependence_polyhedron_1): Same.
20550 (graphite_legal_transform_dr): Same.
20551 (graphite_carried_dependence_level_k): Same.
20552 * graphite-ppl.c (ppl_powerset_is_empty): New.
20553 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
20554 * tree-data-ref.c (dump_data_reference): Print the basic block index.
20556 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20558 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
20559 the "a followed by b" relation and document it.
20561 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20563 * graphite-dependences.c (build_lexicographical_constraint): Stop the
20564 iteration when the bag of constraints is empty.
20566 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20568 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
20570 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20572 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
20573 nest and two loop depths as parameters.
20574 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
20575 lst_perfect_nestify.
20577 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20579 * graphite-dependences.c (print_pddr): Call
20580 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
20582 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
20584 * graphite-ppl.c (debug_gmp_value): New.
20585 * graphite-ppl.h (debug_gmp_value): Declared.
20587 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
20589 * doc/install.texi: Document availability of cloog-0.16.
20591 2011-01-25 Vladimir Kargov <kargov@gmail.com>
20593 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
20594 invalid postdominance info.
20596 2011-01-24 Jan Hubicka <jh@suse.cz>
20599 * doc/extend.texi (weak pragma): Drop claim that it must
20600 appear before definition.
20601 * varasm.c (merge_weak, declare_weak): Only sanity check
20602 that DECL is not output at a time it is declared weak.
20604 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
20606 * machmode.def: Fixed comments.
20608 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
20610 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
20612 2011-01-24 Paul Koning <ni1d@arrl.net>
20614 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
20617 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
20620 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
20621 (block_info): Add scanned and prev.
20622 (move_or_delete_vzeroupper_2): Return if the basic block
20623 has been scanned and the upper 128bit state is unchanged
20624 from the last scan.
20625 (move_or_delete_vzeroupper_1): Return true if the exit
20627 (move_or_delete_vzeroupper): Visit basic blocks using the
20628 work-list based algorithm based on vt_find_locations in
20631 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
20633 2011-01-24 Nick Clifton <nickc@redhat.com>
20635 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
20636 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
20637 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
20638 then define __v850e1__.
20639 * doc/invoke.texi: Document -mv850es.
20641 2011-01-24 Richard Henderson <rth@redhat.com>
20643 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
20644 compound unordered comparisons.
20645 * config/rx/rx.c (rx_split_fp_compare): Remove.
20646 * config/rx/rx-protos.h: Update.
20647 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
20648 (cbranchsf4): Don't call rx_split_fp_compare.
20649 (*cbranchsf4): Use rx_split_cbranch.
20650 (*cmpsf): Don't accept "i" constraint.
20651 (*conditional_branch): Only valid after reload.
20652 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
20654 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
20657 * config/rs6000/altivec.md (vector constant splitters): Add
20658 support for creating vector single precision constants if -mvsx is
20659 used and we would create the constant using Altivec primitives.
20661 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
20662 Richard Sandiford <rdsandiford@googlemail.com>
20664 PR rtl-optimization/47166
20665 * reload1.c (emit_reload_insns): Disable the spill_reg_store
20666 mechanism for PRE_MODIFY and POST_MODIFY.
20667 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
20670 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
20672 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
20674 2011-01-22 Jan Hubicka <jh@suse.cz>
20677 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
20679 2011-01-22 Jan Hubicka <jh@suse.cz>
20681 PR tree-optimization/43884
20683 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
20684 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
20686 2011-01-22 Anatoly Sokolov <aesok@post.ru>
20688 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
20689 * config/s390/s390.c (s390_register_move_cost,
20690 s390_memory_move_cost): New.
20691 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
20693 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20695 PR middle-end/47401
20696 * except.c (sjlj_assign_call_site_values): Move setting the
20697 crtl->uses_eh_lsda flag to ...
20698 (sjlj_mark_call_sites): ... here.
20699 (sjlj_emit_function_enter): Support NULL dispatch label.
20700 (sjlj_build_landing_pads): In a function with no landing pads
20701 that still has must-not-throw regions, generate code to register
20702 a personality function with empty LSDA.
20704 2011-01-21 Richard Henderson <rth@redhat.com>
20706 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
20708 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
20710 * compare-elim.c: New file.
20711 * Makefile.in (OBJS-common): Add it.
20712 (compare-elim.o): New.
20713 * common.opt (fcompare-elim): New.
20714 * opts.c (default_options_table): Add OPT_fcompare_elim.
20715 * tree-pass.h (pass_compare_elim_after_reload): New.
20716 * passes.c (init_optimization_passes): Add it.
20717 * recog.h: Protect against re-inclusion.
20718 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
20719 * doc/invoke.texi (-fcompare-elim): Document it.
20720 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
20721 * doc/tm.texi: Rebuild.
20723 2011-01-22 Nick Clifton <nickc@redhat.com>
20725 * config/rx/rx.md (cstoresf4): Pass comparison operator to
20726 rx_split_fp_compare.
20728 2011-01-22 Nick Clifton <nickc@redhat.com>
20730 * config/rx/rx.md (UNSPEC_CONST): New.
20731 (deallocate_and_return): Wrap the amount popped off the stack in
20732 an UNSPEC_CONST in order to stop it being rejected by
20733 -mmax-constant-size.
20734 (pop_and_return): Add a "(return)" rtx.
20735 (call): Drop the immediate operand.
20736 (call_internal): Likewise.
20737 (call_value): Likewise.
20738 (call_value_internal): Likewise.
20739 (sibcall_internal): Likewise.
20740 (sibcall_value_internal): Likewise.
20741 (sibcall): Likewise. Generate an explicit call using
20743 (sibcall_value): Likewise.
20744 (mov<>): FAIL if a constant operand is not legitimate.
20745 (addsi3_unpsec): New pattern.
20747 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
20748 (ok_for_max_constant): New function.
20749 (gen_safe_add): New function.
20750 (rx_expand_prologue): Use gen_safe_add.
20751 (rx_expand_epilogue): Likewise.
20752 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
20755 2011-01-21 Jeff Law <law@redhat.com>
20757 PR tree-optimization/47053
20758 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
20759 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
20760 statements are deleted.
20761 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
20762 is nonempty, then purge dead edges and cleanup the CFG.
20764 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
20767 Temporarily revert:
20768 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
20770 * tree-dfa.c (create_var_ann): Mark variable as used.
20772 2011-01-21 Jakub Jelinek <jakub@redhat.com>
20774 PR middle-end/45566
20775 * except.c (convert_to_eh_region_ranges): Emit queued no-region
20776 notes from other section in hot/cold partitioning even if
20777 last_action is -3. Increment call_site_base.
20779 PR rtl-optimization/47366
20780 * fwprop.c (forward_propagate_into): Return bool. If
20781 any changes are made, -fnon-call-exceptions is used and
20782 REG_EH_REGION note is present, call purge_dead_edges
20783 and return true if it purged anything.
20784 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
20785 any EH edges were purged.
20787 2011-01-21 Jeff Law <law@redhat.com>
20789 PR rtl-optimization/41619
20790 * caller-save.c (setup_save_areas): Break out code to determine
20791 which hard regs are live across calls by examining the reload chains
20792 so that it is always used.
20793 Eliminate code which checked REG_N_CALLS_CROSSED.
20795 2011-01-21 Jakub Jelinek <jakub@redhat.com>
20797 PR tree-optimization/47355
20798 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
20799 NOP has non-debug uses beyond PHIs in new_bb.
20801 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
20804 * cfgexpand.c (account_used_vars_for_block): Only account vars
20805 that are annotated as used.
20806 (estimated_stack_frame_size): Don't set TREE_USED.
20807 * tree-dfa.c (create_var_ann): Mark variable as used.
20809 2011-01-21 Richard Guenther <rguenther@suse.de>
20811 PR middle-end/47395
20812 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
20814 2011-01-21 Richard Guenther <rguenther@suse.de>
20816 PR tree-optimization/47365
20817 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
20818 (vn_reference_lookup_pieces): Adjust.
20819 (vn_reference_lookup): Likewise.
20820 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
20821 (vn_reference_lookup_3): Only look through kills if in
20822 VN_WALKREWRITE mode.
20823 (vn_reference_lookup_pieces): Adjust.
20824 (vn_reference_lookup): Likewise.
20825 (visit_reference_op_load): Likewise.
20826 (visit_reference_op_store): Likewise.
20827 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
20828 (compute_avail): Likewise.
20829 (eliminate): Likewise.
20831 2011-01-21 Jakub Jelinek <jakub@redhat.com>
20833 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
20834 DECL_IGNORED_P non-reg vars if they are used.
20836 PR tree-optimization/47391
20837 * varpool.c (const_value_known_p): Return false if
20840 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
20843 * config/i386/i386.c (ix86_local_alignment): Handle
20844 case for va_list_type_node is nil.
20845 (ix86_canonical_va_list_type): Likewise.
20847 2011-01-21 Alan Modra <amodra@gmail.com>
20849 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
20850 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
20852 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20854 * config/arm/arm.md (define_attr type): Rename f_load
20855 and f_store to f_fpa_load and f_fpa_store. Update.
20856 (write_conflict): Deal with rename fallout.
20857 (*push_fp_multi): Likewise.
20858 * config/arm/fpa.md (f_load): Use f_fpa_load.
20859 (f_store): Use f_fpa_store.
20860 (*movsf_fpa): Likewise.
20861 (*movdf_fpa): Likewise.
20862 (*movxf_fpa): Likewise.
20863 (*thumb2_movsf_fpa): Likewise.
20864 (*thumb2_movdf_fpa): Likewise.
20865 (*thumb2_movxf_fpa): Likewise.
20866 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
20867 f_loadd and f_stored.
20868 (*thumb2_movdi_vfp): Likewise.
20869 (*thumb2_movsf_vfp): Fix attribute to f_loads.
20870 (*thumb2_movsi_vfp): Likewise.
20871 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
20872 Use f_loads instead of f_load.
20873 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
20875 2011-01-20 Anatoly Sokolov <aesok@post.ru>
20877 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
20878 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
20879 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
20880 (xtensa_mode_dependent_address_p): New function.
20881 (constantpool_address_p): Make static. Change return type to bool.
20882 Change argument type to const_rtx. Use CONST_INT_P predicate.
20884 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
20887 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
20889 2011-01-20 Jakub Jelinek <jakub@redhat.com>
20892 * cfgexpand.c (expand_debug_expr): Instead of generating
20893 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
20896 2011-01-20 Richard Guenther <rguenther@suse.de>
20898 PR middle-end/47370
20899 * tree-inline.c (remap_gimple_op_r): Recurse manually for
20900 the pointer operand of MEM_REFs.
20902 2011-01-20 Jakub Jelinek <jakub@redhat.com>
20904 PR tree-optimization/46130
20905 * ipa-split.c (consider_split): If return_bb contains non-virtual
20906 PHIs other than for retval or if split_function would not adjust it,
20909 2011-01-20 Richard Guenther <rguenther@suse.de>
20911 PR tree-optimization/47167
20912 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
20913 Revert previous change, only avoid enumeral type changes.
20915 2011-01-19 Mike Stump <mikestump@comcast.net>
20917 * doc/tm.texi.in (BRANCH_COST): Englishify.
20918 * doc/tm.texi (BRANCH_COST): Likewise.
20920 2011-01-19 Dodji Seketeli <dodji@redhat.com>
20923 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
20924 (gen_scheduled_generic_parms_dies): New functions.
20925 (gen_struct_or_union_type_die): Schedule template parameters DIEs
20926 generation for the end of CU compilation.
20927 (dwarf2out_finish): Generate template parameters DIEs here.
20929 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
20932 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
20933 debug bind stmt on merge edges.
20935 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
20939 * function.c (instantiate_expr): Instantiate incoming rtl of
20940 implicit arguments, and recurse on VALUE_EXPRs.
20941 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
20942 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
20944 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
20946 * c-parser.c (c_parser_for_statement): Initialize
20947 collection_expression.
20949 2011-01-19 Joseph Myers <joseph@codesourcery.com>
20951 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
20953 2011-01-19 Joseph Myers <joseph@codesourcery.com>
20955 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
20956 (LINK_SHLIB_SPEC): Don't use %(link_path).
20957 (SUBTARGET_EXTRA_SPECS): Remove link_path.
20959 2011-01-19 Joseph Myers <joseph@codesourcery.com>
20961 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
20962 (NO_SHARED_LIB_SUPPORT): Remove.
20963 (LINK_SHLIB_SPEC): Remove one conditional definition.
20965 2011-01-19 Joseph Myers <joseph@codesourcery.com>
20967 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
20969 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
20970 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
20971 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
20972 %{call_shared} and conditionals on these options not being passed.
20973 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
20976 2011-01-19 Jakub Jelinek <jakub@redhat.com>
20978 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
20981 * ipa-split.c: Spelling fixes.
20983 2011-01-19 Richard Henderson <rth@redhat.com>
20985 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
20986 (*mulsi3): Likewise.
20988 * longlong.h [__mn10300__] (count_leading_zeros): New.
20989 [__mn10300__] (umul_ppmm, smul_ppmm): New.
20990 [__mn10300__] (add_ssaaaa, subddmmss): New.
20991 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
20992 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
20994 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20996 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
20998 2011-01-19 Richard Henderson <rth@redhat.com>
21000 * config/mn10300/mn10300.md (addsi3_flags): New.
21001 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
21002 (subsi3_flags, subc_internal, subdi3): New.
21003 (subdi3_internal, *subdi3_degenerate): New.
21004 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
21006 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
21007 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
21008 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
21009 * config/mn10300/mn10300-protos.h: Update.
21010 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
21011 (return_ret): Likewise. Rename from return_internal_regs.
21012 (return_internal): Remove.
21014 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
21015 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
21016 (mn10300_legitimate_constant_p): Likewise.
21017 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
21018 (mn10300_frame_size): New.
21019 (mn10300_expand_prologue): Use it.
21020 (mn10300_expand_epilogue): Likewise.
21021 (mn10300_initial_offset): Likewise.
21022 * config/mn10300/mn10300-protos.h: Update.
21023 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
21024 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
21025 (prologue, epilogue, return_internal): Tidy output code.
21026 (mn10300_store_multiple_operation, return): Likewise.
21027 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
21028 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
21029 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
21030 (load_pic, am33_load_pic): New.
21031 (mn10300_load_pic0, mn10300_load_pic1): New.
21033 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
21034 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
21035 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
21036 (cc_flags_for_mode, cc_flags_for_code): New.
21037 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
21038 overflow flag is not valid. Validate that the flags we need
21039 for the comparison are valid.
21040 (mn10300_output_cmp): Remove.
21041 (mn10300_output_add): New.
21042 (mn10300_select_cc_mode): Use cc_flags_for_code.
21043 (mn10300_split_cbranch): New.
21044 (mn10300_match_ccmode): New.
21045 (mn10300_split_and_operand_count): New.
21046 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
21048 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
21049 (addsi3): ... here. Use mn10300_output_add.
21050 (*addsi3_flags): New.
21051 (*am33_subsi3, *mn10300_subsi3): Merge...
21052 (subsi3): ... here. Use attribute isa.
21053 (*subsi3_flags): New.
21054 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
21056 (*am33_andsi3, *mn10300_andsi3): Merge...
21057 (andsi3): ... here.
21058 (*andsi3_flags): New.
21059 (andsi3 splitters): New.
21060 (*am33_iorsi3, *mn10300_iorsi3): Merge...
21061 (iorsi3): ... here.
21062 (*iorsi3_flags): New.
21063 (*am33_xorsi3, *mn10300_xorsi3): Merge...
21064 (xorsi3): ... here.
21065 (*xorsi3_flags): New.
21066 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
21067 (one_cmplsi2): ... here.
21068 (*one_cmplsi2_flags): New.
21069 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
21070 instead of "dax" in constraints. Use mn10300_split_cbranch.
21071 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
21072 use matching constraints to eliminate a self-comparison.
21073 (*integer_conditional_branch): Rename from integer_conditional_branch.
21074 Use int_mode_flags to match CC_REG.
21075 (*cbranchsi4_btst, *btstsi): New.
21076 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
21077 mn10300_split_cbranch.
21078 (*am33_cmpsf): Rename from am33_cmpsf.
21079 (*float_conditional_branch): Rename from float_conditional_branch.
21080 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
21081 (zero_extendqisi2): ... here.
21082 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
21083 (zero_extendhisi2): ... here.
21084 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
21085 (extendqisi2): ... here.
21086 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
21087 (extendhisi2): ... here.
21088 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
21089 (ashlsi3): ... here.
21090 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
21091 (lshrsi3): ... here.
21092 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
21093 (ashrsi3): ... here.
21094 (consecutive add peephole): Remove.
21095 * config/mn10300/predicates.md (label_ref_operand): New.
21096 (int_mode_flags): New.
21097 (CCZN_comparison_operator): New.
21099 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
21100 (throughput_42_latency_43): New reservation.
21101 (mulsidi3, umulsidi3): New expanders.
21102 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
21103 the MDR register to allocation; separately allocate the low and
21104 high parts of the DImode result.
21105 (umulsidi3_internal): Similarly.
21106 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
21107 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
21108 (udivsi3, umodsi3): Remove.
21109 (udivmodsi4, divmodsi4): New expanders.
21110 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
21111 (*divmodsi4): Simiarly.
21112 (ext_internal): New.
21114 * config/mn10300/constraints.md ("z"): New constraint.
21115 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
21116 (FIXED_REGISTERS): Don't fix MDR.
21117 (CALL_USED_REGSITERS): Reformat nicely.
21118 (REG_ALLOC_ORDER): Add MDR.
21119 (enum regclass): Add MDR_REGS.
21120 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
21121 (IRA_COVER_CLASSES): Add MDR_REGS.
21122 (REGNO_REG_CLASS): Handle MDR_REG.
21123 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
21124 (mn10300_register_move_cost): Likewise.
21125 * config/mn10300/mn10300.md (MDR_REG): New.
21126 (*movsi_internal): Handle moves to/from MDR_REGS.
21128 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
21130 (mn10300_secondary_reload): Tidy combination reload classes.
21131 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
21132 addresses for AM33. Allow symbolic offsets for reg+imm.
21133 (mn10300_regno_in_class_p): New.
21134 (mn10300_legitimize_reload_address): New.
21135 * config/mn10300/mn10300.h (enum reg_class): Remove
21136 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
21137 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
21138 SP_OR_GENERAL_REGS.
21139 (REG_CLASS_NAMES): Update to match.
21140 (REG_CLASS_CONTENTS): Likewise.
21141 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
21142 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
21143 (REGNO_IN_RANGE_P): Remove.
21144 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
21145 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
21146 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
21147 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
21148 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
21149 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
21150 (REGNO_GENERAL_P): New.
21151 (HAVE_POST_MODIFY_DISP): New.
21152 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
21153 (LEGITIMIZE_RELOAD_ADDRESS): New.
21154 * config/mn10300/mn10300-protos.h: Update.
21156 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
21157 DATA_REGS for AM33 stack-pointer destination.
21158 (mn10300_preferred_output_reload_class): Likewise.
21159 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
21160 into a form appropriate for ...
21161 (TARGET_SECONDARY_RELOAD): New.
21162 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
21163 * config/mn10300/mn10300-protos.h: Update.
21164 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
21165 reload_insi; use the "A" constraint for the scratch; handle AM33
21166 moves of sp to non-address registers.
21168 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
21169 (*movqi_internal): ... here.
21170 (*am33_movhi, *mn10300_movhi): Merge into...
21171 (*movhi_internal): ... here.
21172 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
21173 as the source/destination of moves from/to SP.
21174 (movsf): Only allow for AM33-2.
21175 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
21176 any integer constant constraint. Only allow for AM33-2. Tidy
21177 all of the alternative outputs.
21178 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
21179 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
21181 (udivsi3, umodsi3): New patterns for MN103 only.
21183 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
21185 * doc/tm.texi.in: Spell out that a lack of register class unions
21187 * doc/tm.texi: Regenerate.
21189 2011-01-19 Jakub Jelinek <jakub@redhat.com>
21191 PR rtl-optimization/47337
21192 * dce.c (check_argument_store): New function.
21193 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
21195 PR tree-optimization/47290
21196 * tree-eh.c (infinite_empty_loop_p): New function.
21197 (cleanup_empty_eh): Use it.
21199 2011-01-18 Steve Ellcey <sje@cup.hp.com>
21202 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
21203 (a64_expand_widen_sum): Ditto.
21204 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
21205 (vec_extract_evenodd_help): Ditto.
21206 (vec_extract_evenv4hi): Ditto.
21207 (vec_extract_oddv4hi): Ditto.
21208 (vec_extract_evenv2si): Ditto.
21209 (vec_extract_oddv2si): Ditto.
21210 (vec_extract_evenv2sf): Ditto.
21211 (vec_extract_oddv2sf): Ditto.
21212 (vec_pack_trunc_v4hi: Ditto.
21213 (vec_pack_trunc_v2si): Ditto.
21214 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
21215 (vec_interleave_highv8qi): Ditto.
21217 (vec_extract_oddv8qi): Ditto.
21218 (vec_interleave_lowv4hi): Ditto.
21219 (vec_interleave_highv4hi): Ditto.
21220 (vec_interleave_lowv2si): Ditto.
21221 (vec_interleave_highv2si): Ditto.
21223 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21225 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
21226 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
21227 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
21228 (pa_c_mode_for_suffix): New.
21229 (TARGET_EXPAND_BUILTIN): Define.
21230 (TARGET_C_MODE_FOR_SUFFIX): Define.
21231 (pa_builtins): Define.
21232 (pa_init_builtins): Register __float128 type and init new support
21234 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
21235 * config/pa/quadlib.c (_U_Qfcopysign): New.
21237 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
21239 PR middle-end/46894
21240 * explow.c (allocate_dynamic_stack_space): Do not assume more than
21241 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
21244 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21246 PR tree-optimization/47179
21247 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
21248 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
21250 2011-01-18 Richard Guenther <rguenther@suse.de>
21252 PR rtl-optimization/47216
21253 * emit-rtl.c: Include tree-flow.h.
21254 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
21255 of replicating it with different semantics.
21256 * Makefile.in (emit-rtl.o): Adjust.
21258 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21260 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
21261 (cortex_a9_dp): Handle neon types correctly.
21263 2011-01-18 Jakub Jelinek <jakub@redhat.com>
21265 PR rtl-optimization/47299
21266 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
21267 subtarget. Use normal multiplication if both operands are constants.
21268 * expmed.c (expand_widening_mult): Don't try to optimize constant
21269 multiplication if op0 has VOIDmode. Convert op1 constant to mode
21272 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21274 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
21275 spacing after 'e.g.', typos, comma, hyphenation.
21277 2011-01-17 Richard Henderson <rth@redhat.com>
21279 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
21280 (rx_restricted_mem_operand): New.
21281 (rx_shift_operand): Use register_operand.
21282 (rx_source_operand, rx_compare_operand): Likewise.
21283 * config/rx/rx.md (addsi3_flags): New expander.
21284 (adddi3): Rewrite as expander.
21285 (adc_internal, *adc_flags, adddi3_internal): New patterns.
21286 (subsi3_flags): New expander.
21287 (subdi3): Rewrite as expander.
21288 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
21290 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
21291 (rx_init_builtins): Remove sat builtin.
21292 (rx_expand_builtin): Likewise.
21293 * config/rx/rx.md (ssaddsi3): New.
21294 (*sat): Rename from sat. Represent the CC_REG input.
21296 * config/rx/predicates.md (rshift_operator): New.
21297 * config/rx/rx.c (rx_expand_insv): Remove.
21298 * config/rx/rx-protos.h: Update.
21299 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
21300 operand to the canonical position.
21301 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
21302 (*bitclr, *bitclr_in_memory): Similarly.
21303 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
21304 (insv): Retain the zero_extract in the expansion.
21306 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
21307 (bswaphi2, bitinvert, revw): Likewise.
21309 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
21310 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
21311 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
21312 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
21313 (bitset, bitset_in_memory): Likewise.
21314 (bitinvert, bitinvert_in_memory): Likewise.
21315 (bitclr, bitclr_in_memory): Likewise.
21316 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
21317 (rx_strend, rx_cmpstrn): Likewise.
21318 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
21319 (bitop peep2 patterns): Remove.
21321 * config/rx/rx.c (rx_match_ccmode): New.
21322 * config/rx/rx-protos.h: Update.
21323 * config/rx/rx.md (abssi2): Clobber, don't set flags.
21324 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
21325 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
21326 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
21327 (fix_truncsfsi2, floatsisf2): Likewise.
21328 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
21329 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
21330 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
21331 (*subsi3_flags, *xorsi3_flags): New.
21333 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
21335 * config/rx/rx.c (rx_print_operand): Remove workaround for
21336 unsplit comparison operations.
21338 * config/rx/rx.md (movsicc): Split after reload.
21339 (*movsicc): Merge *movsieq and *movsine via match_operator.
21340 (*stcc): New pattern.
21342 * config/rx/rx.c (rx_float_compare_mode): Remove.
21343 * config/rx/rx.h (rx_float_compare_mode): Remove.
21344 * config/rx/rx.md (cstoresi4): Split after reload.
21345 (*sccc): New pattern.
21347 * config/rx/predicates.md (label_ref_operand): New.
21348 (rx_z_comparison_operator): New.
21349 (rx_zs_comparison_operator): New.
21350 (rx_fp_comparison_operator): New.
21351 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
21352 Validate that the flags are set properly for the comparison.
21353 (rx_gen_cond_branch_template): Remove.
21354 (rx_cc_modes_compatible): Remove.
21355 (mode_from_flags): New.
21356 (flags_from_code): Rename from flags_needed_for_conditional.
21357 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
21358 (rx_select_cc_mode): Likewise.
21359 (rx_split_fp_compare): New.
21360 (rx_split_cbranch): New.
21361 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
21362 (*cbranchsi4): Use match_operator and rx_split_cbranch.
21363 (*cbranchsf4): Similarly.
21364 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
21365 match_operator and rx_split_cbranch.
21366 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
21367 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
21368 (*cmpsi): Rename from cmpsi.
21369 (*tstsi): Rename from tstsi.
21370 (*cmpsf): Rename from cmpsf; use CC_Fmode.
21371 (*conditional_branch): Rename from conditional_branch.
21372 (*reveresed_conditional_branch): Remove.
21373 (b<code>): Remove expander.
21374 * config/rx/rx-protos.h: Update.
21376 * config/rx/rx.c (rx_compare_redundant): Remove.
21377 * config/rx/rx.md (cmpsi): Don't use it.
21378 * config/rx/rx-protos.h: Update.
21380 * config/rx/rx-modes.def (CC_F): New mode.
21381 * config/rx/rx.c (rx_select_cc_mode): New.
21382 * config/rx/rx.h (SELECT_CC_MODE): Use it.
21383 * config/rx/rx-protos.h: Update.
21385 2011-01-17 Richard Henderson <rth@redhat.com>
21387 * except.c (dump_eh_tree): Fix stray ; after for statement.
21389 2011-01-17 Richard Guenther <rguenther@suse.de>
21391 PR tree-optimization/47313
21392 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
21393 handling before copying the body. Properly deal with
21394 by-reference result in SSA form.
21396 2011-01-17 Ian Lance Taylor <iant@google.com>
21399 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
21400 (struct_value_alias_set): Don't define.
21401 (sparc_option_override): Don't set sparc_sr_alias_set and
21402 struct_value_alias_set.
21403 (save_or_restore_regs): Use gen_frame_mem rather than calling
21405 (sparc_struct_value_rtx): Likewise.
21407 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
21410 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
21411 (_mm_maskstore_pd): Likewise.
21412 (_mm_maskload_ps): Likewise.
21413 (_mm_maskstore_ps): Likewise.
21414 (_mm256_maskload_pd): Change mask to __m256i.
21415 (_mm256_maskstore_pd): Likewise.
21416 (_mm256_maskload_ps): Likewise.
21417 (_mm256_maskstore_ps): Likewise.
21419 * config/i386/i386-builtin-types.def: Updated.
21420 (ix86_expand_special_args_builtin): Likewise.
21422 * config/i386/i386.c (bdesc_special_args): Update
21423 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
21424 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
21425 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
21426 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
21428 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
21429 Use <avxpermvecmode> on mask register.
21430 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
21432 2011-01-17 Olivier Hainque <hainque@adacore.com>
21433 Michael Haubenwallner <michael.haubenwallner@salomon.at>
21434 Eric Botcazou <ebotcazou@adacore.com>
21437 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
21438 if <= USHRT_MAX in 32-bit mode.
21440 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21442 * doc/install.texi (Configuration, Specific): Wrap long
21443 lines in examples. Allow line wrapping in long options
21444 and URLs where beneficial for PDF output.
21446 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
21448 * config/mips/mips.c (mips_classify_symbol): Don't return
21449 SYMBOL_PC_RELATIVE for nonlocal labels.
21451 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
21453 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
21455 2011-01-15 Jan Hubicka <jh@suse.cz>
21457 PR tree-optimization/47276
21458 * ipa.c (function_and_variable_visibility): Do not try to mark alias
21459 declarations as needed.
21461 2011-01-15 Martin Jambor <mjambor@suse.cz>
21463 * common.opt (fdevirtualize): New flag.
21464 * doc/invoke.texi (Option Summary): Document it.
21465 * opts.c (default_options_table): Add devirtualize flag.
21466 * ipa-prop.c (detect_type_change): Return immediately if
21467 devirtualize flag is not set.
21468 (detect_type_change_ssa): Likewise.
21469 (compute_known_type_jump_func): Likewise.
21470 (ipa_analyze_virtual_call_uses): Likewise.
21472 2011-01-14 Martin Jambor <mjambor@suse.cz>
21474 PR tree-optimization/45934
21475 PR tree-optimization/46302
21476 * ipa-prop.c (type_change_info): New type.
21477 (stmt_may_be_vtbl_ptr_store): New function.
21478 (check_stmt_for_type_change): Likewise.
21479 (detect_type_change): Likewise.
21480 (detect_type_change_ssa): Likewise.
21481 (compute_complex_assign_jump_func): Check for dynamic type change.
21482 (compute_complex_ancestor_jump_func): Likewise.
21483 (compute_known_type_jump_func): Likewise.
21484 (compute_scalar_jump_functions): Likewise.
21485 (ipa_analyze_virtual_call_uses): Likewise.
21486 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
21488 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21490 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
21491 * config/i386/i386.opt (msse5): New Alias.
21493 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21495 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
21496 * config/sparc/linux64.h (CC1_SPEC): Likewise.
21497 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21498 * config/sparc/sparc.h (CC1_SPEC): Likewise.
21500 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21502 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
21504 * config/sparc/linux64.h (CC1_SPEC): Likewise.
21505 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
21506 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
21507 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
21509 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
21511 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21513 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
21515 2011-01-14 Mike Stump <mikestump@comcast.net>
21517 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
21518 * config/fr30/fr30.md: Likweise
21519 (movsi_push): Likewise.
21520 (movsi_pop): Likewise.
21521 (enter_func): Likewise.
21522 * config/moxie/moxie.md (movsi_push): Likewise.
21523 (movsi_pop): Likewise.
21525 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21527 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
21528 %{no_archive} %{exact_version}.
21529 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
21530 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
21531 %{no_archive} %{exact_version}.
21532 * config/mips/openbsd.h (LINK_SPEC): Likewise.
21533 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
21534 * config/mips/vxworks.h: Likewise.
21536 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21538 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
21540 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21542 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
21543 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
21545 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21547 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
21550 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21552 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
21554 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
21555 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
21557 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
21558 Don't handle -shlib.
21560 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21562 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
21563 (CC1_SPEC): Don't handle -profile.
21565 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21567 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
21568 * config/mips/mips.h (CC1_SPEC): Likewise.
21570 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21572 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
21573 * config/mips/mips.h (CC1_SPEC): Likewise.
21575 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21577 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
21578 * config/m32r/linux.h (LINK_SPEC): Likewise.
21579 * config/mips/linux.h (LINK_SPEC): Likewise.
21580 * config/mips/linux64.h (LINK_SPEC): Likewise.
21581 * config/sparc/linux.h (LINK_SPEC): Likewise.
21582 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
21583 LINK_SPEC): Likewise.
21584 * config/xtensa/linux.h (LINK_SPEC): Likewise.
21586 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21588 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
21590 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
21592 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21594 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
21595 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
21597 2011-01-14 Joseph Myers <joseph@codesourcery.com>
21599 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
21601 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21603 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
21604 supports -Bstatic/-Bdynamic.
21605 * configure: Regenerate.
21607 2011-01-14 Jan Hubicka <jh@suse.cz>
21608 Jack Howarth <howarth@bromo.med.uc.edu>
21611 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
21612 when checking debug_info_level. Test write_symbols instead of
21613 debug_hooks->var_location when setting flag_var_tracking_uninit.
21615 2011-01-14 Richard Guenther <rguenther@suse.de>
21617 PR tree-optimization/47179
21618 * target.def (ref_may_alias_errno): New target hook.
21619 * targhooks.h (default_ref_may_alias_errno): Declare.
21620 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
21621 (default_ref_may_alias_errno): New function.
21622 * target.h (struct ao_ref_s): Declare.
21623 * tree-ssa-alias.c: Include target.h.
21624 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
21625 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
21626 (targhooks.o): Likewise.
21627 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
21628 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
21630 2011-01-14 Richard Guenther <rguenther@suse.de>
21632 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
21634 2011-01-14 Richard Guenther <rguenther@suse.de>
21636 PR tree-optimization/47280
21637 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
21638 return CFG changes.
21639 (tree_ssa_forward_propagate_single_use_vars): Deal with
21640 CFG changes from associate_plusminus.
21642 2011-01-14 Richard Guenther <rguenther@suse.de>
21644 PR middle-end/47281
21646 2011-01-11 Richard Guenther <rguenther@suse.de>
21648 PR tree-optimization/46076
21649 * tree-ssa.c (useless_type_conversion_p): Conversions from
21650 unprototyped to empty argument list function types are useless.
21652 2011-01-14 Richard Guenther <rguenther@suse.de>
21654 PR tree-optimization/47286
21655 * tree-ssa-structalias.c (new_var_info): Register variables are global.
21657 2011-01-14 Martin Jambor <mjambor@suse.cz>
21659 PR middle-end/46823
21660 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
21662 2011-01-13 Anatoly Sokolov <aesok@post.ru>
21664 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
21665 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
21666 * config/xtensa/xtensa.c (xtensa_libcall_value,
21667 xtensa_function_value_regno_p): New functions.
21668 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
21670 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
21673 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
21675 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
21676 New function prototype.
21677 * config/i386/winnt.c (i386_pe_assemble_visibility):
21678 Warn only if attribute was specified by user.
21680 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
21683 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
21685 (floatunsdidf2_fcfidu): Ditto.
21687 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21689 * config/s390/s390.c (print_operand_address): Replace 'error' with
21690 'output_operand_lossage'.
21691 (print_operand): Likewise.
21693 2011-01-13 Jeff Law <law@redhat.com>
21695 PR rtl-optimization/39077
21696 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
21697 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
21698 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
21699 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
21700 * gcse.c (prune_insertions_deletions): New function.
21701 (compute_pre_data): Use it.
21703 2011-01-13 Dodji Seketeli <dodji@redhat.com>
21706 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
21708 (prune_unused_types_mark): Use it.
21710 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
21712 PR rtl-optimization/45352
21713 * sel-sched.c: Update copyright years.
21714 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
21715 in the advancing loop when we have issued issue_rate insns.
21717 2011-01-12 Richard Henderson <rth@redhat.com>
21719 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
21720 (TARGET_MD_ASM_CLOBBERS): New.
21722 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
21723 (TARGET_DELEGITIMIZE_ADDRESS): New.
21725 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
21726 (clzsi2, *bsch): New patterns.
21728 * config/mn10300/mn10300.md (INT): New mode iterator.
21729 (*mov<INT>_clr): New pattern, and peep2 to generate it.
21731 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
21732 flag_split_wide_types.
21734 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
21735 (mn10300_trampoline_init): Rewrite without a template, an immediate
21736 load and a direct branch.
21737 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
21739 2011-01-12 Anatoly Sokolov <aesok@post.ru>
21741 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21742 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
21743 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
21744 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
21746 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
21749 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
21752 2011-01-12 Jan Hubicka <jh@suse.cz>
21755 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
21756 (PLUGIN_COND_CLOSE): New macro.
21757 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
21759 2011-01-12 Richard Guenther <rguenther@suse.de>
21762 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
21763 register variables in a MEM_REF.
21765 2011-01-12 Joseph Myers <joseph@codesourcery.com>
21767 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
21768 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
21769 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
21770 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
21771 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
21772 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
21773 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
21774 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
21775 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
21776 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
21777 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
21778 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
21779 * config/gnu-user.h: New. Copied from linux.h.
21780 (LINUX_TARGET_STARTFILE_SPEC): Rename to
21781 GNU_USER_TARGET_STARTFILE_SPEC.
21782 (LINUX_TARGET_ENDFILE_SPEC): Rename to
21783 GNU_USER_TARGET_ENDFILE_SPEC.
21784 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
21785 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
21786 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
21787 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
21788 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
21789 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
21790 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
21791 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
21792 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
21793 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
21794 * config/arm/linux-eabi.h (CC1_SPEC): Use
21795 GNU_USER_TARGET_CC1_SPEC.
21796 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
21797 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
21798 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
21799 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
21800 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
21801 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
21802 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
21803 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
21805 2011-01-12 Richard Guenther <rguenther@suse.de>
21808 * doc/invoke.texi (ffast-math): Document it is turned on
21811 2011-01-12 Jan Hubicka <jh@suse.cz>
21813 PR tree-optimization/47233
21814 * opts.c (common_handle_option): Disable ipa-reference with profile
21817 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
21819 * c-parser.c (c_parser_objc_at_property_declaration): Improved
21822 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
21824 * c-parser.c (c_lex_one_token): Updated and reindented some
21825 comments. No changes in code.
21827 2011-01-11 Ian Lance Taylor <iant@google.com>
21829 * godump.c (go_output_var): Don't output the variable if there is
21830 already a type with the same name.
21832 2011-01-11 Ian Lance Taylor <iant@google.com>
21834 * godump.c (go_format_type): Don't generate float80.
21836 2011-01-11 Richard Henderson <rth@redhat.com>
21838 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
21839 declaration. Rewrite for both speed and size.
21840 (mn10300_address_cost_1): Remove.
21841 (mn10300_register_move_cost): New.
21842 (mn10300_memory_move_cost): New.
21843 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
21844 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
21845 extensions, shifts, BSWAP, CLZ.
21846 (mn10300_wide_const_load_uses_clr): Remove.
21847 (TARGET_REGISTER_MOVE_COST): New.
21848 (TARGET_MEMORY_MOVE_COST): New.
21849 * config/mn10300/mn10300-protos.h: Update.
21850 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
21852 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
21853 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
21854 * config/mn10300/mn10300-protos.h: Update.
21855 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
21856 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
21857 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
21858 (*test_int_bitfield, *test_byte_bitfield): Remove.
21859 (*bit_test, *subreg_bit_test): Remove.
21860 * config/mn10300/predicates.md (const_8bit_operand): Remove.
21862 * config/mn10300/constraints.md ("c"): Rename from "A".
21863 ("A", "D"): New constraint letters.
21864 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
21865 (fmssf4, fnmasf4, fnmssf4): Likewise.
21867 * config/mn10300/mn10300.md (isa): New attribute.
21868 (enabled): New attribute.
21870 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
21871 (abssf2, negsf2): Define only for hardware fp.
21872 (sqrtsf2): Reformat.
21873 (addsf3, subsf3, mulsf3): Merge expander and insn.
21875 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
21876 (DEBUGGER_AUTO_OFFSET): Remove.
21877 (DEBUGGER_ARG_OFFSET): Remove.
21879 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
21880 Emit register stores with the same offsets as the hardware.
21881 (mn10300_store_multiple_operation): Don't check that the register
21882 save offsets are monotonic.
21883 * config/mn10300/mn10300-protos.h: Update.
21885 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
21887 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
21888 in terms of the value on the stack, not the MDR register.
21890 2011-01-11 Jan Hubicka <jh@suse.cz>
21894 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
21895 (symbol_alias_set_destroy, symbol_alias_set_contains,
21896 propagate_aliases_backward): Declare.
21897 * lto-streamer-out.c (struct sets): New sturcture.
21898 (trivally_defined_alias): New function.
21899 (output_alias_pair_p): Rewrite.
21900 (output_unreferenced_globals): Fix output of alias pairs.
21901 (produce_symtab): Likewise.
21902 * ipa.c (function_and_variable_visibility): Set weak alias destination
21904 * varasm.c (symbol_alias_set_t): Remove.
21905 (symbol_alias_set_destroy): Export.
21906 (propagate_aliases_forward, propagate_aliases_backward): New functions
21908 (compute_visible_aliases): ... this one; remove.
21909 (trivially_visible_alias): New
21910 (trivially_defined_alias): New.
21911 (remove_unreachable_alias_pairs): Rewrite.
21912 (finish_aliases_1): Reorganize code checking if alias is defined.
21913 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
21916 2011-01-11 Richard Guenther <rguenther@suse.de>
21918 PR tree-optimization/46076
21919 * tree-ssa.c (useless_type_conversion_p): Conversions from
21920 unprototyped to empty argument list function types are useless.
21922 2011-01-11 Richard Guenther <rguenther@suse.de>
21924 PR middle-end/45235
21925 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
21926 volatile MEMs as MEM_READONLY_P.
21928 2011-01-11 Richard Guenther <rguenther@suse.de>
21930 PR tree-optimization/47239
21931 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
21933 2011-01-11 Jeff Law <law@redhat.com>
21935 PR tree-optimization/47086
21936 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
21937 IVs from statements that might throw.
21939 2011-01-10 Jan Hubicka <jh@suse.cz>
21942 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
21944 2011-01-10 Jan Hubicka <jh@suse.cz>
21947 * profile.c (read_profile_edge_counts): Ignore profile inconistency
21948 when correcting profile.
21950 2011-01-10 Jan Hubicka <jh@suse.cz>
21953 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
21954 DECL_FINI_PRIORITY.
21955 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
21956 Restore DECL_FINI_PRIORITY.
21958 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21960 * doc/gimple.texi: Fix quoting of multi-word return values in
21961 @deftypefn statements. Ensure presence of return value. Wrap
21962 overlong @deftypefn lines.
21963 (is_gimple_operand, is_gimple_min_invariant_address): Remove
21964 descriptions of removed functions.
21965 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
21966 of multi-word return value in @deftypefn statement.
21968 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21970 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
21971 (Conditional Expressions, Logical Operators)
21972 (Statement and operand traversals): Do not indent smallexample
21973 code. Fix duplicate function argument in example.
21975 2011-01-10 Jeff Law <law@redhat.com>
21977 PR tree-optimization/47141
21978 * ipa-split.c (split_function): Handle case where we are
21979 returning a value and the return block has a virtual operand phi.
21981 2011-01-10 Jan Hubicka <jh@suse.cz>
21983 PR tree-optimization/47234
21984 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
21985 (pass_feedback_split_functions): Declare.
21986 * passes.c (init_optimization_passes): Add ipa-split as subpass of
21988 * ipa-split.c (gate_split_functions): Update comments; disable
21989 split-functions for profile_arc_flag and branch_probabilities.
21990 (gate_feedback_split_functions): New function.
21991 (execute_feedback_split_functions): New function.
21992 (pass_feedback_split_functions): New global var.
21994 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
21997 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
21998 calling gimple_call_set_cannot_inline.
22000 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
22002 * config/darwin-sections.def: Remove unused section.
22004 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
22007 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
22009 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
22012 * c-parser.c (c_parser_declaration_or_fndef): Improved
22015 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
22017 * config/i386/winnt.c (i386_pe_start_function): Make sure
22018 to switch back to function's section.
22020 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
22024 * plugin.c: Move include of dlfcn.h from here...
22025 * system.h: ... to here.
22027 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22029 * doc/cpp.texi (C++ Named Operators): Fix markup for header
22031 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
22032 two extra empty pages in PDF output.
22034 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
22037 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
22038 for error recovery purposes behave as if it was not specified so
22039 that the default type is usd.
22041 2011-01-07 Jan Hubicka <jh@suse.cz>
22043 PR tree-optmization/46469
22044 * ipa.c (function_and_variable_visibility): Clear needed flags on
22045 nodes with external decls; handle weakrefs merging correctly.
22047 2011-01-07 Joseph Myers <joseph@codesourcery.com>
22049 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
22052 2011-01-07 Jan Hubicka <jh@suse.cz>
22054 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
22055 and no longer claim that gold is required for linker plugin.
22056 * configure: Regenerate.
22057 * gcc.c (PLUGIN_COND): New macro.
22058 (LINK_COMMAND_SPEC): Use it.
22059 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
22060 * config.in (HAVE_LTO_PLUGIN): New.
22061 * configure.ac (--with-lto-plugin): New parameter; autodetect
22064 2011-01-07 Jan Hubicka <jh@suse.cz>
22066 PR tree-optimization/46367
22067 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
22068 when we can update original.
22069 (cgraph_mark_inline_edge): Sanity check.
22070 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
22072 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22074 * config/spu/spu.h (ASM_COMMENT_START): Define.
22076 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
22079 * gcc.c (%>S): New.
22080 (SWITCH_KEEP_FOR_GCC): Likewise.
22081 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
22082 (do_spec_1): Handle "%>".
22084 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
22086 2011-01-07 Jakub Jelinek <jakub@redhat.com>
22089 * config/i386/i386.c (ix86_delegitimize_address): If
22090 simplify_gen_subreg fails, return orig_x.
22093 * value-prof.c (gimple_stringop_fixed_value): Handle
22094 lhs of the call properly.
22096 2011-01-07 Jan Hubicka <jh@suse.cz>
22099 * lto-opt.c (lto_reissue_options): Set flag_shlib.
22101 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
22103 * target.def (function_switched_text_sections): New hook.
22104 * doc/tm.texi: Regenerated.
22105 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
22106 * final.c (default_function_switched_text_sections): New.
22107 (final_scan_insn): Call function_switched_text_sections when a
22108 mid-function section change occurs.
22109 * output.h (default_function_switched_text_sections): Declare.
22110 * config/darwin-protos.h (darwin_function_switched_text_sections):
22112 * config/darwin.c (darwin_function_switched_text_sections): New.
22113 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
22115 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
22117 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
22118 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
22119 the secondary code fragment when outputting for DWARF == 2.
22121 2011-01-07 Anatoly Sokolov <aesok@post.ru>
22123 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
22124 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
22126 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
22127 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
22129 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
22132 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
22133 when it is not empty.
22135 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
22138 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
22139 (case ${target}): Add btver1.
22140 * config/i386/driver-i386.c (host_detect_local_cpu): Let
22141 -march=native recognize btver1 processors.
22142 * config/i386/i386-c.c (ix86_target_macros_internal): Add
22143 btver1 def_and_undef
22144 * config/i386/i386.c (struct processor_costs btver1_cost): New
22146 (m_BTVER1): New definition.
22147 (m_AMD_MULTIPLE): Includes m_BTVER1.
22148 (initial_ix86_tune_features): Add btver1 tune.
22149 (processor_target_table): Add btver1 entry.
22150 (static const char *const cpu_names): Add btver1 entry.
22151 (software_prefetching_beneficial_p): Add btver1.
22152 (ix86_option_override_internal): Add btver1 instruction sets.
22153 (ix86_issue_rate): Add btver1.
22154 (ix86_adjust_cost): Add btver1.
22155 * config/i386/i386.h (TARGET_BTVER1): New definition.
22156 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
22157 (enum processor_type): Add PROCESSOR_BTVER1.
22158 * config/i386/i386.md (define_attr "cpu"): Add btver1.
22160 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22163 * config/i386/i386.c (legitimize_tls_address)
22164 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
22165 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
22166 (tls_initial_exec_64_sun): New pattern.
22168 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
22170 * doc/invoke.texi (Overall Options): Improve wording and markup
22171 of the description of -wrapper.
22173 2011-01-06 Joseph Myers <joseph@codesourcery.com>
22175 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
22176 rdynamic, threads): New Driver options.
22178 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22181 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
22182 if coming from .tdata.
22183 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
22185 2011-01-06 Jan Hubicka <jh@suse.cz>
22188 * collect2.c (main): Do not enable LTOmode when plugin is active.
22190 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22193 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
22194 --version output if supported.
22195 * configure: Regenerate.
22197 2011-01-06 Joseph Myers <joseph@codesourcery.com>
22199 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
22202 2011-01-06 Jakub Jelinek <jakub@redhat.com>
22205 * c-convert.c (convert): When converting a complex expression
22206 other than COMPLEX_EXPR to a different complex type, ensure
22207 c_save_expr is called instead of save_expr, unless in_late_binary_op.
22208 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
22209 when converting COMPLEX_TYPE.
22211 2011-01-06 Ira Rosen <irar@il.ibm.com>
22213 PR tree-optimization/47139
22214 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
22215 only the last reduction value is used outside the loop. Update
22218 2011-01-05 Joseph Myers <joseph@codesourcery.com>
22220 * config/rtems.opt: New.
22221 * config.gcc (*-*-rtems*): Use rtems.opt.
22223 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
22225 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
22226 processors do not support 3DNow instructions.
22228 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22230 * config/spu/spu.c (spu_option_override): Set parameter
22231 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
22233 2011-01-05 Jan Hubicka <jh@suse.cz>
22235 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
22236 at the command line.
22238 2011-01-05 Martin Jambor <mjambor@suse.cz>
22241 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
22242 deltas on streamed outgoing edges.
22243 (output_node_opt_summary): Output info for outgoing edges only when
22244 the node is in new parameter set.
22245 (output_cgraph_opt_summary): New parameter set, passed to the two
22246 aforementioned functions. Update its forward declaration and its
22249 2011-01-05 Tom Tromey <tromey@redhat.com>
22251 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
22252 operator to c_finish_omp_atomic.
22253 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
22254 (build_unary_op): Update.
22255 (build_modify_expr): Update.
22256 (build_asm_expr): Update.
22258 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22260 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
22261 newly inserted insns.
22262 (pad_bb): Likewise.
22263 (spu_emit_branch_hint): Likewise.
22264 (insert_hbrp_for_ilb_runout): Likewise.
22265 (spu_machine_dependent_reorg): Call df_finish_pass after
22266 schedule_insns returns.
22268 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22270 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
22272 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
22274 PR tree-optimization/47005
22275 * tree-sra.c (struct access): Add 'non_addressable' bit.
22276 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
22277 (decide_one_param_reduction): Return 0 if the parameter is passed by
22278 reference and one of the accesses in the group is non_addressable.
22280 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
22282 PR tree-optimization/47056
22283 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
22284 (mark_load): Likewise. Handle FUNCTION_DECL specially.
22285 (mark_store): Likewise. Pass STMT to ipa_record_reference.
22287 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
22289 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
22290 initializer. Skip view conversions from aggregate types.
22292 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
22295 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
22297 2011-01-04 Philipp Thomas <pth@suse.de>
22299 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
22302 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22304 * function.c (thread_prologue_and_epilogue_insns): Do not crash
22305 on empty epilogue sequences.
22307 2011-01-04 Joseph Myers <joseph@codesourcery.com>
22309 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
22310 non-static): New Driver options.
22312 2011-01-04 Jie Zhang <jie@codesourcery.com>
22315 * gcc.c (default_compilers[]): Set combinable field to 0
22316 for all assembly languages.
22318 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
22320 * config/mips/loongson3a.md: New file.
22321 * config/mips/mips.md: Include loongson3a.md.
22322 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
22325 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
22327 PR middle-end/47017
22328 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
22329 instead of convert_memory_address_addr_space on the base expression.
22331 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22333 * config/spu/spu.c (spu_option_override): Update error text
22334 for bad -march= / -mtune= values.
22336 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22338 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
22339 if branch-hint optimization will be performed.
22341 2011-01-03 Jakub Jelinek <jakub@redhat.com>
22343 PR tree-optimization/47148
22344 * ipa-split.c (split_function): Convert arguments to
22345 DECL_ARG_TYPE if possible.
22347 PR tree-optimization/47155
22348 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
22349 when computing uns.
22351 PR rtl-optimization/47157
22352 * combine.c (try_combine): If undobuf.other_insn becomes
22353 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
22354 and set *new_direct_jump_p too.
22356 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
22358 PR tree-optimization/47021
22359 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
22361 2011-01-03 Jakub Jelinek <jakub@redhat.com>
22363 * gcc.c (process_command): Update copyright notice dates.
22364 * gcov.c (print_version): Likewise.
22365 * gcov-dump.c (print_version): Likewise.
22366 * mips-tfile.c (main): Likewise.
22367 * mips-tdump.c (main): Likewise.
22369 2011-01-03 Martin Jambor <mjambor@suse.cz>
22371 PR tree-optimization/46801
22372 * tree-sra.c (type_internals_preclude_sra_p): Check whether
22373 aggregate fields start at byte boundary instead of the bit-field flag.
22375 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
22378 * gcc.c (main): Revert revision 168407.
22380 2011-01-03 Martin Jambor <mjambor@suse.cz>
22382 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
22384 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22386 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
22387 vector optab to expand vector/scalar shift, update gimple to vector.
22389 2011-01-03 Martin Jambor <mjambor@suse.cz>
22391 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
22394 2011-01-03 Martin Jambor <mjambor@suse.cz>
22396 PR tree-optimization/46984
22397 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
22399 (cgraph_create_indirect_edge): Fixed line length.
22400 (cgraph_indirect_call_info): Declare.
22401 (cgraph_make_edge_direct) Update declaration.
22402 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
22403 (cgraph_create_indirect_edge): Use it.
22404 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
22406 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
22407 the new thunk_delta representation.
22408 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
22410 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
22411 (ipa_read_indirect_edge_info): Likewise.
22412 * lto-cgraph.c (output_edge_opt_summary): New function.
22413 (output_node_opt_summary): Call it on all outgoing edges.
22414 (input_edge_opt_summary): New function.
22415 (input_node_opt_summary): Call it on all outgoing edges.
22417 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
22420 * gcc.c (main): Don't check have_o when settting combine_inputs.
22422 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
22424 * regrename.c: Add general comment describing the pass.
22425 (struct du_head): Remove 'length' field.
22426 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
22427 (regrename_optimize): Do not sort chains. Rework comments, add others.
22428 Force renaming to the preferred class (if any) in the first pass and do
22429 not consider registers that belong to it in the second pass.
22430 (create_new_chain): Do not set 'length' field.
22431 (scan_rtx_reg): Likewise.
22433 2011-01-02 Jakub Jelinek <jakub@redhat.com>
22435 PR tree-optimization/47140
22436 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
22437 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
22438 to bit_value_binop.
22440 PR rtl-optimization/47028
22441 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
22442 parm_birth_insn instead of at the beginning of first bb.
22444 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
22446 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
22447 Remove the word "see" before "@pxref".
22448 * doc/rtl.texi: Remove the word "see" before "@pxref".
22450 2011-01-01 Jan Hubicka <jh@suse.cz>
22452 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
22455 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
22458 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
22461 Copyright (C) 2011 Free Software Foundation, Inc.
22463 Copying and distribution of this file, with or without modification,
22464 are permitted in any medium without royalty provided the copyright
22465 notice and this notice are preserved.