1 2007-07-03 Julian Brown <julian@codesourcery.com>
3 * config.gcc (with_fpu): Allow --with-fpu=vfp3.
4 * config/arm/aout.h (REGISTER_NAMES): Add D16-D31.
5 * config/arm/aof.h (REGISTER_NAMES): Add D16-D31.
6 * config/arm/arm.c (FL_VFPV3): New flag for VFPv3 processor
8 (all_fpus): Add FPUTYPE_VFP3.
9 (fp_model_for_fpu): Add VFPv3 field.
10 (arm_rtx_costs_1): Give cost to VFPv3 constants.
11 (vfp3_const_double_index): New function. Return integer index of
12 VFPv3 constant suitable for fconst[sd] insns, or -1 if constant
14 (vfp3_const_double_rtx): New function. True if VFPv3 is enabled
15 and argument represents a valid RTX for a VFPv3 constant.
16 (vfp_output_fldmd): Split fldmd with > 16 registers in the list into
18 (vfp_emit_fstmd): Similar, for fstmd.
19 (arm_print_operand): Implement new code 'G' for VFPv3 floating-point
20 constants, represented as integer indices.
21 (arm_hard_regno_mode_ok): Use VFP_REGNO_OK_FOR_SINGLE,
22 VFP_REGNO_OK_FOR_DOUBLE macros.
23 (arm_regno_class): Handle VFPv3 d0-d7, low, high register split.
24 (arm_file_start): Set float-abi attribute for VFPv3, and output
25 correct ".fpu" assembler directive.
26 (arm_dbx_register_numbering): Add FIXME.
27 * config/arm/arm.h (TARGET_VFP3): New macro. Target supports VFPv3.
28 (fputype): Add FPUTYPE_VFP3.
29 (FIXED_REGISTERS): Add 32 registers for D16-D31.
30 (CALL_USED_REGISTERS): Likewise.
31 (CONDITIONAL_REGISTER_USAGE): Add note about conditional definition
32 of LAST_VFP_REGNUM. Make D16-D31 caller-saved, if present.
33 (LAST_VFP_REGNUM): Extend available VFP registers for VFPv3.
35 (LAST_LO_VFP_REGNUM, FIRST_HI_VFP_REGNUM, LAST_HI_VFP_REGNUM)
36 (VFP_REGNO_OK_FOR_SINGLE, VFP_REGNO_OK_FOR_SINGLE)
37 (VFP_REGNO_OK_FOR_DOUBLE): Define new macros.
38 (FIRST_PSEUDO_REGISTER): Shift up to 128 to accommodate VFPv3.
39 (REG_ALLOC_ORDER): Adjust for VFPv3.
40 (reg_class): Add VFP_D0_D7_REGS, VFP_LO_REGS, VFP_HI_REGS.
41 (REG_CLASS_NAMES): Add entries corresponding to VFP_D0_D7_REGS,
42 VFP_LO_REGS, VFP_HI_REGS.
43 (REG_CLASS_CONTENTS): Likewise. Extend contents for VFP_REGS.
44 (IS_VFP_CLASS): Define macro.
45 (SECONDARY_OUTPUT_RELOAD_CLASS, SECONDARY_INPUT_RELOAD_CLASS): Use
47 (REGISTER_MOVE_COST): Likewise.
48 * config/arm/arm-protos.h (vfp3_const_double_rtx): Add prototype.
49 * config/arm/vfp.md (VFPCC_REGNUM): Redefine as 127.
50 (*arm_movsi_vfp, *thumb2_movsi_vfp, *movsfcc_vfp)
51 (*thumb2_movsfcc_vfp, *abssf2_vfp, *negsf2_vfp, *addsf3_vfp)
52 (*subsf3_vfp, *divsf_vfp, *mulsf_vfp, *mulsf3negsf_vfp)
53 (*mulsf3addsf_vfp, *mulsf3subsf_vfp, *mulsf3negsfaddsf_vfp)
54 (*extendsfdf2_vfp, *truncdfsf2_vfp, *truncsisf2_vfp)
55 (*truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2)
56 (*floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2)
57 (floatunssidf2, *sqrtsf2_vfp, *cmpsf_split_vfp)
58 (*cmpsf_trap_split_vfp, *cmpsf_vfp, *cmpsf_trap_vfp): Use 't'
59 where appropriate for single-word registers.
60 (*movsf_vfp, *thumb2_movsf_vfp, *movdf_vfp, *thumb2_movdf_vfp):
61 As above. Fix type attributes.
62 * config/arm/constraints.md (register_contraint "t"): Define.
63 (register_constraint "w"): Change to D0-D15, or D0-D31 for
65 (register_constraint "x"): Define.
66 (constraint "Dv"): Define.
68 2007-07-03 Geoffrey Keating <geoffk@apple.com>
70 * tree.h (DECL_ALIGN): Prevent use on a FUNCTION_DECL.
72 2007-07-03 Tom Tromey <tromey@redhat.com>
74 * c-parser.c (objc_pq_context): Removed.
75 (objc_need_raw_identifier): Likewise.
76 (c_parser) <objc_pq_context>: New field.
77 <objc_need_raw_identifier>: Likewise.
78 (OBJC_NEED_RAW_IDENTIFIER): Removed.
79 (c_lex_one_token): Update.
80 (c_parser_objc_protocol_definition): Update.
81 (c_parser_objc_method_definition): Update.
82 (c_parser_objc_methodproto): Update.
83 (c_parser_declspecs): Update.
85 2007-07-03 David Ung <davidu@mips.com>
87 * config/mips/mips.c (mips_issue_rate): Return 4 for 74K processors.
89 2007-07-03 David Ung <davidu@mips.com>
90 Richard Sandiford <richard@codesourcery.com>
92 * doc/invoke.texi: Document -march=74kf3_2.
93 * config/mips/mips.h (PROCESSOR_74KF3_2): New processor_type.
94 (TUNE_74K): Check for it.
95 * config/mips/mips.c (mips_cpu_info): Add 74kf3_2.
96 (mips_rtx_cost_data): Add an entry for PROCESSOR_74KF3_2.
97 * config/mips/mips.md (cpu): Add 74kf3_2.
98 * config/mips/74k.md (r74k_int_logical, r74k_int_arith, r74k_int_nop)
99 (r74k_int_cmove, r74k_int_mult, r74k_int_mul3, r74k_int_mfhilo)
100 (r74k_int_mthilo, r74k_int_div, r74k_int_call, r74k_int_jump)
101 (r74k_int_load, r74k_int_store, r74k_unknown, r74k_multi): Add
102 74kf3_2 to the CPU list.
103 (r74kf3_2_fadd, r74kf3_2_fmove, r74kf3_2_fload, r74kf3_2_fstore)
104 (r74kf3_2_fmul_sf, r74kf3_2_fmul_df, r74kf3_2_fdiv_sf)
105 (r74kf3_2_fdiv_df, r74kf3_2_frsqrt_sf, r74kf3_2_frsqrt_df)
106 (r74kf3_2_fcmp, r74kf3_2_fcvt, r74kf3_2_fxfer_to_c1)
107 (r74kf3_2_fxfer_from_c1): New insn reservations.
109 2007-07-03 Richard Sandiford <richard@codesourcery.com>
110 David Ung <davidu@mips.com>
112 * doc/invoke.texi: Replace -march=24kf with -march=24kf2_1 and
113 -march=24kx with -march=24kf1_1. Likewise 24ke[fx], 34k[fx]
114 and 74k[fx]. Document aliases for the new options.
115 * config/mips/mips.h (PROCESSOR_24KF): Rename to...
116 (PROCESSOR_24KF2_1): ...this.
117 (PROCESSOR_24KX): Rename to...
118 (PROCESSOR_24KF1_1): ...this.
119 (PROCESSOR_74KF): Rename to...
120 (PROCESSOR_74KF2_1): ...this.
121 (PROCESSOR_74KX): Rename to...
122 (PROCESSOR_74KF1_1): ...this.
123 (TUNE_74K): Update PROCESSOR_* names.
124 * config/mips/mips.c (mips_cpu_info): Add 24kf2_1 as a synonym
125 for 24kf. Add 24kf1_1 and 24kfx as synonyms for 24kx. Likewise
126 the 24ke*, 34k* and 74k* processors. Update PROCESSOR_* names.
127 (mips_rtx_cost_data): Update processor names in comments.
128 (mips_issue_rate): Update PROCESSOR_* names.
129 * config/mips/mips.md (cpu): Rename 24kf to 24kf2_1, 24kx to
130 24kf1_1, 74kf to 74kf2_1 and 74kx to 74kf1_1.
131 * config/mips/24k.md: Rename FPU-related r24k_* insn reservations
132 to r24kf2_1_*. Rename r24kx_* insn reservations to r24kf1_1_*.
133 Update cpu attribute names.
134 (r24k_fpu_iss): Rename this reservation to...
135 (r24kf2_1_fpu_iss): ...this and update all uses.
136 (r24kx_fpu_iss): Rename this reservation to...
137 (r24kf1_1_fpu_iss): ...this and update all uses.
138 * config/mips/74k.md: Rename FPU-related r74kf_* insn reservations
139 to r74kf2_1_*. Rename r74kx_* insn reservations to r74kf1_1_*.
140 Update cpu attribute names.
142 2007-07-01 Kaz Kojima <kkojima@gcc.gnu.org>
144 * config/m32r/constraints.md: New file.
145 * config/m32r/m32r.c: Include tm-constrs.h.
146 (small_data_operand): Use satisfies_constraint_* instead of macro.
147 (addr24_operand, gen_compare): Likewise.
148 * config/m32r/m32r.h (REG_CLASS_FROM_LETTER): Remove.
149 (INT8_P, UPPER16_P, UINT32_P, UINT5_P, INVERTED_SIGNED_8BIT,
150 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
151 EXTRA_CONSTRAINT): Likewise.
152 * config/m32r/m32r.md: Include constraints.md.
153 (*movsi_insn): Use satisfies_constraint_* instead of macro.
154 (andsi3, iorsi3, xorsi3, seq_insn+1, sne): Likewise.
155 * config/m32r/predicates.md (conditional_move_operand): Likewise.
156 (two_insn_const_operand, int8_operand, uint16_operand,
157 reg_or_int16_operand, reg_or_uint16_operand,
158 reg_or_cmp_int16_operand, cmp_int16_operand,
159 seth_add3_operand): Likewise.
161 2007-07-03 Eric Christopher <echristo@gmail.com>
163 * libgcc2.h: Conditionally declare __bswapsi2 and
166 2007-07-03 H.J. Lu <hongjiu.lu@intel.com>
168 * ddg.c (check_sccs): Define only if ENABLE_CHECKING is
171 2007-07-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
174 * gthr-posix.h [SUPPORTS_WEAK && GTHREAD_USE_WEAK]
175 (__gthrw_pragma): Provide default definition.
177 * gthr-posix.c (__gthrw_pragma): Define.
179 2007-07-03 Daniel Berlin <dberlin@dberlin.org>
181 * tree-ssa-sccvn.c (set_ssa_val_to): Check for operand_equal_p
182 before declaring inequality.
184 2007-07-03 Rask Ingemann Lambertsen <rask@sygehus.dk>
186 * combine.c (recog_for_combine): Log the success or failure of
187 matching new insn patterns against the machine description in
190 2007-07-03 Revital Eres <eres@il.ibm.com>
192 * ddg.c (print_sccs): New function.
193 (check_sccs): New function.
194 (create_ddg_all_sccs): Use it.
195 * ddg.h (print_sccs): Declare.
196 * modulo-sched.c (sms_order_nodes): Call print_sccs.
198 2007-07-03 Uros Bizjak <ubizjak@gmail.com>
200 * targhooks.h (default_mode_for_suffix): New function declaration.
201 * targhooks.c (default_mode_for_suffix): New default target hook.
202 * target.h (struct c): New structure in the targetm struct.
203 (mode_for_suffix): New target hook as part of struct c.
204 target-def.h (TARGET_C_MODE_FOR_SUFFIX): Define as
205 default_mode_for_suffix.
206 (TARGET_C): New define.
207 * c-lex.c: Include "target.h".
208 (interpret_float): Use targetm.c.mode_for_suffix to determine
209 the mode for a given non-standard suffix.
210 Makefile.in (c-lex.o): Depend on $(TARGET_H).
212 * config/i386/i386.c (ix86_c_mode_for_suffix): New static function.
213 (TARGET_C_MODE_FOR_SUFFIX): Define to ix86_c_mode_for_suffix.
215 * doc/extend.texi (Floating Types): New node. Document __float80 and
216 __float128 types. Document 'w', 'W', 'q' and 'Q' suffixes.
218 2007-07-03 Kaz Kojima <kkojima@gcc.gnu.org>
221 * config/sh/sh.md (udivsi3_i1_media): Use target_reg_operand
222 predicate instead of target_operand.
223 (divsi3_i1_media, divsi3_media_2): Likewise.
225 2007-07-02 Eric Botcazou <ebotcazou@adacore.com>
227 * tree.h (alias_sets_might_conflict_p): Rename into
228 alias_sets_must_conflict_p.
229 * alias.c (alias_sets_might_conflict_p): Likewise.
230 (alias_sets_conflict_p): Use it.
231 (objects_must_conflict_p): Likewise.
232 * c-common.c (strict_aliasing_warning): Adjust.
234 2007-07-02 Andrew Pinski <andrew_pinski@playstation.sony.com>
236 * rtlhooks.c (gen_lowpart_if_possible): Check for
237 invalid subreg before calling gen_lowpart_SUBREG.
239 2007-07-02 Geoffrey Keating <geoffk@apple.com>
241 * config/darwin9.h: Add copyright notice.
242 (LINK_COMMAND_SPEC): Add comment.
243 (DARWIN_LIBSYSTEM_HAS_UNWIND): Define.
244 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Conditionalise on
245 DARWIN_LIBSYSTEM_HAS_UNWIND.
247 2007-07-02 Jakub Jelinek <jakub@redhat.com>
250 * omp-low.c (check_combined_parallel): New function.
251 (lower_omp_parallel): Call it via walk_stmts, set
252 OMP_PARALLEL_COMBINED if appropriate.
253 (determine_parallel_type): If OMP_FOR resp. OMP_SECTIONS
254 isn't the only statement in WS_ENTRY_BB or OMP_RETURN
255 the only one in PAR_EXIT_BB and not OMP_PARALLEL_COMBINED,
256 don't consider it as combined parallel.
258 2007-07-02 Richard Sandiford <richard@codesourcery.com>
260 * configure.ac (gcc_gxx_include_dir): Use $(libsubdir_to_prefix).
261 (gcc_tooldir): Likewise.
262 * configure: Regenerate.
263 * Makefile.in (libsubdir_to_prefix): New variable, based on the
264 old configure.ac gcc_tooldir setting.
265 (prefix_to_exec_prefix): New variable.
266 (DRIVER_DEFINES): Use $(libsubdir_to_prefix)$(prefix_to_exec_prefix)
267 rather than $(unlibsubdir)/../ to derive TOOLDIR_BASE_PREFIX.
269 2007-07-02 Daniel Berlin <dberlin@dberlin.org>
271 Fix PR tree-optimization/32583
272 Fix PR tree-optimization/32584
273 * tree-ssa-pre.c (phi_translate): Always pass seen bitmap.
274 (phi_translate_set): Use phi_translate directly now.
275 (make_values_for_stmt): Don't value number RHS if we already know
278 2007-07-02 Steve Ellcey <sje@cup.hp.com>
279 Jim Wilson <wilson@specifix.com>
282 * haifa-sched.c (add_to_speculative_block): Change copy_rtx to
285 2007-07-02 Sandra Loosemore <sandra@codesourcery.com>
286 Richard Sandiford <richard@codesourcery.com>
287 Nigel Stephens <nigel@mips.com>
289 * config/mips/mips-protos.h (mips16e_save_restore_info): New struct.
290 (mips16e_output_save_restore): Declare.
291 (mips16e_save_restore_pattern_p): Likewise.
292 * config/mips/mips.h (GENERATE_MIPS16E_SAVE_RESTORE): New macro.
293 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Return 0x7f8
294 for GENERATE_MIPS16E_SAVE_RESTORE. Return 0x400 for TARGET_MIPS16
295 && !GENERATE_MIPS16E_SAVE_RESTORE && !TARGET_64BIT.
296 (BITSET_P): New global macro, extracted from...
297 (mips_for_each_saved_reg): ...here.
298 (mips16e_save_restore_info): New struct.
299 (mips16e_s2_s8_regs, mips16e_a0_a3_regs): New variables.
300 (mips16e_save_restore_regs): New variable.
301 (mips_split_plus, mips16e_find_first_register): New functions.
302 (mips16e_mask_registers): New function.
303 (compute_frame_size): Expand the commentary before the function.
304 Enforce the MIPS16e save and restore register range restrictions.
305 Pad the general register save area at the low end.
306 (mips16e_save_restore_reg, mips16e_build_save_restore)
307 (mips16e_save_restore_pattern_p, mips16e_add_register_range)
308 (mips16e_output_save_restore, mips16e_collect_propagate_value)
309 (mips16e_collect_argument_save, mips16e_collect_argument_saves):
311 (mips_expand_prologue, mips_expand_epilogue): Handle
312 GENERATE_MIPS16E_SAVE_RESTORE.
313 * config/mips/mips.md (*mips16e_save_restore): New pattern.
315 2007-07-02 Uros Bizjak <ubizjak@gmail.com>
317 PR tree-optimization/31966
318 PR tree-optimization/32533
319 * tree-if-conv.c (add_to_dst_predicate_list): Use "edge", not
320 "basic_block" description as its third argument. Update function
321 calls to get destination bb from "edge" argument. Save "cond" into
322 aux field of the edge. Update prototype for changed arguments.
323 (if_convertible_loop_p): Clear aux field of incoming edges if bb
325 (find_phi_replacement_condition): Operate on incoming edges, not
326 on predecessor blocks. If there is a condition saved in the
327 incoming edge aux field, AND it with incoming bb predicate.
328 Return source bb of the first edge.
329 (clean_predicate_lists): Clean aux field of outgoing node edges.
330 (tree_if_conversion): Do not initialize cond variable. Move
331 variable declaration into the loop.
332 (replace_phi_with_cond_gimple_modify_stmt): Remove unneded
333 initializations of new_stmt, arg0 and arg1 variables.
335 2007-07-02 Jakub Jelinek <jakub@redhat.com>
337 * tree-nrv.c (dest_safe_for_nrv_p): Grok any handled_component_p,
338 SSA_NAMEs, RESULT_DECLs and PARM_DECLs.
340 2007-07-02 Richard Guenther <rguenther@suse.de>
342 * tree-ssa.c (useless_type_conversion_p): Document
343 future intent as defining the middle-end type system.
344 Re-structure to call langhook last, group by type class,
345 mark questionable parts.
347 2007-07-02 Richard Guenther <rguenther@suse.de>
349 * tree-flow.h (types_compatible_p): Declare.
350 * tree-ssa.c (types_compatible_p): New function.
351 * ipa-type-escape.c (discover_unique_type): Use
352 types_compatible_p instead of lang_hooks.types_compatible_p.
353 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
354 * tree-vn.c (expressions_equal_p): Likewise.
355 * tree.c (fields_compatible_p): Likewise.
356 * tree-ssa-dom.c (avail_expr_eq): Likewise.
357 (cprop_operand): Use useless_type_conversion_p instead of
358 lang_hooks.types_compatible_p.
359 * tree-inline.c (setup_one_parameter): Likewise.
360 (declare_return_variable): Likewise.
361 * tree-nrv.c (tree_nrv): Likewise.
362 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
363 (maybe_fold_offset_to_component_ref): Likewise.
364 (maybe_fold_offset_to_reference): Likewise.
365 * tree-ssa-copy.c (may_propagate_copy): Likewise.
366 (merge_alias_info): Likewise.
367 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
368 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
369 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
370 * tree-tailcall.c (find_tail_calls): Likewise.
371 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
372 * gimplify.c (canonicalize_addr_expr): Likewise.
373 (fold_indirect_ref_rhs): Likewise.
374 (gimplify_addr_expr): Likewise. Swap parameters to cpt_same_type.
375 (cpt_same_type): Likewise.
376 (check_pointer_types_r): Swap parameters to cpt_same_type
378 * fold-const.c (fold_convert): Revert fix for PR15988.
379 * tree-inline.c (setup_one_parameter): Instead fix it here by
380 using fold_build1 instead of fold_convert and checking for
381 error_mark_node. Convert only if the conversion is necessary.
383 2007-07-02 Joseph Myers <joseph@codesourcery.com>
385 * configure.ac: Check for .gnu_attribute on Power.
386 * configure: Regenerate.
387 * config/rs6000/rs6000.c (rs6000_file_start): If supported, output
388 attribute for floating-point ABI.
390 2007-07-02 Ira Rosen <irar@il.ibm.com>
392 PR tree-optimization/32230
393 PR tree-optimization/32477
394 * tree-vect-analyze.c (vect_analyze_data_refs): Fail if base
395 address is a constant.
397 2007-07-02 Richard Sandiford <richard@codesourcery.com>
399 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*)
400 (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*)
401 (mipsisa64-*-elf*, mipsisa64el-*-elf*): Combine top-level
402 stanzas. Use the first part of the triplet to set MIPS_ISA_DEFAULT.
403 Remove redundant setting of MASK_FLOAT64 and MASK_64BIT for the
404 64-bit targets. Add support for *-elfoabi*.
405 * config/mips/t-isa3264 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES): Use
406 different settings if $(tm_defines) does not select the EABI.
407 (MULTILIB_EXCLUSIONS): Define in those circumstances.
408 * config/mips/mips.h (MIPS_ISA_LEVEL_OPTION_SPEC): New macro.
409 (MIPS_ARCH_OPTION_SPEC): Likewise.
410 (MIPS_ISA_LEVEL_SPEC): Likewise.
411 (OPTION_DEFAULT_SPECS): Use MIPS_ARCH_OPTION_SPEC.
412 * config/mips/elfoabi.h: New file.
414 2007-07-02 Richard Guenther <rguenther@suse.de>
416 * tree-flow.h (tree_ssa_useless_type_conversion_1): Rename to ...
417 (useless_type_conversion_p): ... this.
418 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Rename to ...
419 (useless_type_conversion_p): ... this.
420 * builtins.c (fold_builtin_memory_op): Rename
421 tree_ssa_useless_type_conversion_1 to useless_type_conversion_p.
422 * tree-cfg.c (verify_expr): Likewise.
423 * tree-ssa-address.c (tree_ssa_useless_type_conversion_1): Likewise.
424 * tree-ssa-ccp.c (ccp_fold): Likewise.
425 * tree-ssa-copy.c (may_propagate_copy): Likewise.
426 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
427 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
428 * tree-ssa-loop-niter.c (refine_bounds_using_guard): Likewise.
429 * tree-ssa-pre.c (eliminate): Likewise.
430 * tree-ssa.c (delete_tree_ssa): Likewise.
431 (tree_ssa_useless_type_conversion): Likewise.
432 * tree.c (build2_stat): Likewise.
434 2007-07-01 Daniel Berlin <dberlin@dberlin.org>
436 Fix PR tree-optimization/32571
437 * tree-ssa-sccvn.c (visit_use): Shortcut copies to avoid
440 2007-07-01 Daniel Berlin <dberlin@dberlin.org>
442 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle constants
443 and other expected operations explicitly, change default to
446 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
448 * config/arm/arm.c (arm_cannot_copy_insn_p): Do not expect a
450 * config/arm/arm.md (pic_add_dot_plus_four, pic_add_dot_plus_eight)
451 (tls_load_dot_plus_eight): Move the label number into the unspec.
452 * config/arm/thumb2.md (pic_load_dot_plus_four): Likewise.
454 2007-07-01 Andreas Schwab <schwab@suse.de>
456 * dwarf2out.c (initial_return_save): Define only if used.
458 2007-07-01 Kenneth Zadeck <zadeck@naturalbridge.com>
460 Unreverting Richard's Revert of:
462 2007-06-27 Richard Sandiford <richard@codesourcery.com>
464 * dce.c (deletable_insn_p_1): New function, split out from...
465 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
466 specially, not those inside PARALLELs. Remove BODY argument
467 and adjust recursive call accordingly.
468 (prescan_insns_for_dce): Update call to delete_insn_p.
470 2007-07-01 Vladimir Yanovsky <yanov@il.ibm.com>
471 Revital Eres <eres@il.ibm.com>
473 * ddg.c (create_ddg_all_sccs): Fix missed
474 initialization of scc_nodes.
476 2007-07-01 Uros Bizjak <ubizjak@gmail.com>
479 * fold-const.c (fold-binary) [PLUS_EXPR]: Convert ~X + X to 1 or
480 X + ~X to 1 only for INTEGRAL_TYPE_P type.
482 2007-06-30 Joseph Myers <joseph@codesourcery.com>
484 * configure.ac: Check for .gnu_attribute on MIPS.
485 * configure, config.in: Regenerate.
486 * config/mips/mips.c (mips_file_start): If supported, output
487 attribute for floating-point ABI.
489 2007-06-30 Uros Bizjak <ubizjak@gmail.com>
492 * config/i386/i386.md (ffssi2): Expand as ffs_cmove for TARGET_CMOVE.
493 (ffs_cmove): New expander to expand using ctz pattern.
494 (*ffs_cmove): Remove pattern.
495 (*ffs_no_cmove): Enable only for !TARGET_CMOVE.
496 (ffsdi2): Expand using ctz pattern.
497 (*ffs_rex64): Remove pattern.
499 2007-06-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
501 PR rtl-optimization/32296
502 * pa.md (return): Delete pattern.
503 (return_internal): Remove "(const_int 1)" from pattern.
504 (epilogue): Use return_internal pattern for trivial returns.
505 * pa-protos.h (hppa_can_use_return_insn_p): Delete declaration.
506 * pa.c (hppa_can_use_return_insn_p): Delete function. Include "df.h".
508 2007-06-30 Daniel Berlin <dberlin@dberlin.org>
510 * tree-ssa-pre.c (is_exception_related): New function
511 (can_value_number_operation): Use it.
513 2007-06-30 Daniel Berlin <dberlin@dberlin.org>
515 Fix PR tree-optimization/32540
516 Fix PR tree-optimization/31651
518 * tree-ssa-sccvn.c: New file.
520 * tree-ssa-sccvn.h: Ditto.
522 * tree-vn.c: Include tree-ssa-sccvn.h
523 (val_expr_paid_d): Removed.
524 (value_table): Ditto.
526 (val_expr_pair_hash): Ditto.
527 (val_expr_pair_expr_eq): Ditto.
528 (copy_vuses_from_stmt): Ditto.
531 (shared_vuses_from_stmt): Ditto.
532 (print_creation_to_file): Moved up.
534 (sort_vuses_heap): Ditto.
535 (set_value_handle): Make non-static.
536 (make_value_handle): Ditto.
537 (vn_add): Rewritten to use sccvn lookups.
538 (vn_add_with_vuses): Ditto.
539 (vn_lookup): Ditto (and second argument removed).
540 (vn_lookup_with_vuses): Ditto.
541 (vn_lookup_or_add): Ditto (and second argument removed);
542 (vn_lookup_or_add_with_vuses): Ditto.
543 (vn_lookup_with_stmt): New.
544 (vn_lookup_or_add_with_stmt): Ditto.
545 (create_value_handle_for_expr): Ditto.
547 * tree-ssa-pre.c: Include tree-ssa-sccvn.h.
548 (seen_during_translate): New function.
549 (phi_trans_lookup): Use iterative_hash_expr, not vn_compute.
550 (phi_trans_add): Ditto.
551 (constant_expr_p): FIELD_DECL is always constant.
552 (phi_translate_1): Renamed from phi_translate, add seen bitmap.
554 Avoid infinite recursion on mutually valued expressions.
555 Change callers of vn_lookup_or_add.
556 (phi_translate): New function.
557 (compute_antic_safe): Allow phi nodes.
558 (create_component_ref_by_pieces): Update for FIELD_DECL change.
559 (find_or_generate_expression): Rewrite slightly.
560 (create_expression_by_pieces): Updated for vn_lookup_or_add
562 Update VN_INFO for new names.
563 (insert_into_preds_of_block): Update for new names.
564 (add_to_exp_gen): New function.
565 (add_to_sets): Use vn_lookup_or_add_with_stmt.
566 (find_existing_value_expr): Rewrite to changed vn_lookup.
567 (create_value_expr_from): Ditto, and use add_to_exp_gen.
568 (try_look_through_load): Removed.
569 (try_combine_conversion): Ditto.
570 (get_sccvn_value): New function.
571 (make_values_for_phi): Ditto.
572 (make_values_for_stmt): Ditto.
573 (compute_avail): Rewritten for vn_lookup_or_add changes and to use
575 (init_pre): Update for SCCVN changes.
577 (execute_pre): Ditto.
579 * tree-flow.h (make_value_handle): Declare.
580 (set_value_handle): Ditto.
581 (sort_vuses_heap): Ditto.
582 (vn_lookup_or_add_with_stmt): Ditto.
583 (vn_lookup_with_stmt): Ditto.
584 (vn_compute): Remove.
587 (vn_lookup): Update arguments.
589 * Makefile.in (tree-ssa-pre.o): Add tree-ssa-sccvn.h
591 (tree-ssa-sccvn.o): New.
592 (OBJS-common): Add tree-ssa-sccvn.o
594 2007-06-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
597 * c-typeck.c (build_external_ref): Don't mark as used if called
599 * calls.c (rtx_for_function_call): Likewise.
601 2007-06-30 Richard Sandiford <richard@codesourcery.com>
605 2007-06-27 Richard Sandiford <richard@codesourcery.com>
607 * dce.c (deletable_insn_p_1): New function, split out from...
608 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
609 specially, not those inside PARALLELs. Remove BODY argument
610 and adjust recursive call accordingly.
611 (prescan_insns_for_dce): Update call to delete_insn_p.
613 2007-06-30 Rask Ingemann Lambertsen <rask@sygehus.dk>
615 * combine.c (combine_validate_cost): New parameter NEWOTHERPAT.
616 (try_combine): Move potential calls to undo_all() so they happen
617 before we commit to using the combined insns.
619 2006-06-30 Jan Hubicka <jh@suse.cz>
621 * loop-unroll.c (unroll_loop_runtime_iterations): Unshare newly emit
624 2006-06-30 Thomas Neumann <tneumann@users.sourceforge.net>
626 * ipa.c (cgraph_postorder): Cast according to the coding conventions.
627 (cgraph_remove_unreachable_nodes): Likewise.
628 * ipa-cp.c (ipcp_propagate_stage): Use BOTTOM instead of integer 0.
629 * ipa-inline.c (update_caller_keys): Cast according to the coding
631 (cgraph_decide_recursive_inlining): Likewise.
632 (cgraph_decide_inlining_of_small_function): Likewise.
633 (try_inline): Likewise.
634 (cgraph_decide_inlining_incrementally): Likewise.
635 * ipa-pure-const.c (get_function_state): Likewise.
636 (scan_function): Likewise.
637 (analyze_function): Likewise.
638 (static_execute): Likewise.
639 * gcc/ipa-reference.c (scan_for_static_refs): Likewise.
640 (merge_callee_local_info): Likewise.
641 (analyze_function): Use type safe memory macros.
642 (static_execute): Likewise. Cast according to the coding conventions.
643 * ipa-type-escape.c (scan_for_regs): Cast according to the coding
645 * ipa-utils.c (searchc): Likewise. Avoid using C++ keywords as variable
647 (ipa_utils_reduced_inorder): Likewise. Use type safe memory macros.
648 * ipa-utils.h (struct ipa_dfa_info): Avoid using C++ keywords as
651 2007-06-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
654 * emit-rtl.c (init_emit_once): Intilize const_tiny_rtx[0]
655 for complex modes (both int and real).
657 2007-06-29 Jan Hubicka <jh@suse.cz>
659 * cse.c: Rever accidentally comitted TODO_verify_rtl_sharing change.
661 2007-06-29 Jan Hubicka <jh@suse.cz>
664 * cse.c (cse_insn): Avoid invalid sharing in between register note and
667 2007-06-29 Anatoly Sokolov <aesok@post.ru>
670 * config/avr/avr.c: Include dataflow header file.
671 (expand_prologue): Adjust for prologue insn change.
672 * config/avr/avr.md (call_prologue_saves): Only modify REG_SP once
675 2007-06-29 Richard Guenther <rguenther@suse.de>
678 * gimplify.c (gimplify_call_expr): Ignore variable argument parts
679 during type verification.
681 2007-06-29 Jan Hubicka <jh@suse.cz>
683 * recog.c (validate_change_rtx_1): Unshare TO argument.
685 2007-06-29 Uros Bizjak <ubizjak@gmail.com>
687 PR tree-optimization/24659
688 * tree-vect-transform.c (vectorizable_call): Handle
689 (nunits_in == nunits_out / 2) and (nunits_out == nunits_in / 2) cases.
691 * config/i386/sse.md (vec_pack_sfix_v2df): New expander.
692 * config/i386/i386.c (enum ix86_builtins)
693 [IX86_BUILTIN_VEC_PACK_SFIX]: New constant.
694 (struct bdesc_2arg) [__builtin_ia32_vec_pack_sfix]: New builtin
696 (ix86_init_mmx_sse_builtins): Define all builtins with 2 arguments as
697 const using def_builtin_const.
698 (ix86_expand_binop_builtin): Remove bogus assert() that insn wants
699 input operands in the same modes as the result.
700 (ix86_builtin_vectorized_function): Handle BUILT_IN_LRINT.
702 2007-06-29 Richard Sandiford <rsandifo@nildram.co.uk>
704 * df-problems.c (df_set_unused_notes_for_mw): Fix formatting.
705 (df_set_dead_notes_for_mw): Likewise.
707 2007-06-29 Eric Botcazou <ebotcazou@adacore.com>
709 * c-common.c (pointer_int_sum): Do the negation in sizetype.
711 2007-06-28 DJ Delorie <dj@redhat.com>
713 * config/m32c/m32c.h (OVERRIDE_OPTIONS): Omit unneeded semicolon.
715 2007-06-28 Geoffrey Keating <geoffk@apple.com>
717 * doc/invoke.texi (C++ Dialect Options): Document
718 fvisibility-ms-compat.
719 * c.opt (fvisibility-ms-compat): New.
721 2007-06-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
724 * tree-affine.c (aff_combination_add_elt): Handle
725 pointer addition specially.
727 2007-06-28 Jakub Jelinek <jakub@redhat.com>
729 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Ensure
730 decl is non-external for AIX ABI.
732 2007-06-28 David Edelsohn <edelsohn@gnu.org>
734 * config/rs6000/predicates.md (current_file_function_operand):
735 Ensure the symbol is non-external for AIX ABI.
737 2007-06-28 Nick Clifton <nickc@redhat.com>
739 * common.opt (fipa-matrix-reorg): Add Optimization attribute.
740 (fdce, fdse, fpredictive-commoning): Likewise.
742 2007-06-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
745 * gcc.c (process_command): Recognize the new -static-libgfortran
748 2007-06-27 Rask Ingemann Lambertsen <rask@sygehus.dk>
751 * config/m32c/m32c.c (m32c_eh_return_stackadj_rtx): Dataflow fix:
752 Use a call clobbered hard reg instead of a pseudo reg.
754 2007-06-27 Kaz Kojima <kkojima@gcc.gnu.org>
756 * config/sh/sh.md (load_gbr): Use correct operand constraint.
758 2007-06-27 Kaz Kojima <kkojima@gcc.gnu.org>
761 * config/sh/sh.md (udivsi3): Don't wrap the sequence with
762 REG_LIBCALL and REG_RETVAL notes.
763 (divsi3, mulsi3): Likewise.
764 (mulhisi3): Likewise. Use emit_libcall_block.
765 (umulhisi3, smulsi3_highpart, umulsi3_highpart_i): Likewise.
767 2007-06-27 Seongbae Park <seongbae.park@gmail.com>
769 PR rtl-optimization/32481
770 * combine.c (adjust_for_new_dest): Rescan the changed insn.
772 2007-06-27 Richard Sandiford <richard@codesourcery.com>
774 * dce.c (deletable_insn_p_1): New function, split out from...
775 (deletable_insn_p): ...here. Only treat bare USEs and CLOBBERs
776 specially, not those inside PARALLELs. Remove BODY argument
777 and adjust recursive call accordingly.
778 (prescan_insns_for_dce): Update call to delete_insn_p.
780 2007-06-27 Richard Guenther <rguenther@suse.de>
783 * tree.h (fold_convertible_p): Declare.
784 * fold-const.c (fold_convertible_p): New function.
785 * gimplify.c (gimplify_call_expr): Use fold_convertible_p
786 instead of lang_hooks.types_compatible_p.
788 2007-06-26 Jan Hubicka <jh@suse.cz>
790 * fwprop.c (try_fwprop_subst): Use validate_unshare_change.
791 * postreload.c (reload_cse_simplify_set): Instead of copying the rtx
792 early use validate_unshare_change.
793 (reload_combine): Likewise.
794 * recog.c (change_t): New field unshare.
795 (validate_change_1): Rename from validate_change; add argument unshare.
796 (validate_change): Turn into wrapper of validate_change_1; update
798 (validate_unshare_change): New.
799 (confirm_change_group): Unshare changes if asked for; avoid unnecesary
800 calls of df_insn_rescan.
801 * recog.h (validate_change): Replace ints by bools.
802 (validate_unshare_change): Declare.
804 2007-06-26 Kenneth Zadeck <zadeck@naturalbridge.com>
806 * tree.def (VEC_WIDEN_MULT_LO_EXPR): Corrected string name.
808 2007-06-26 Steve Ellcey <sje@cup.hp.com>
810 * builtins.c (expand_builtin_next_arg): Change Pmode to ptr_mode.
812 2007-06-25 Jan Hubicka <jh@suse.cz>
814 * ipa-inline.c (cgraph_mark_inline): Assert that we never inline
816 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining,
817 cgraph_decide_inlining_incrementally): Move uninlinability checks to
818 places other call site specific checks are performed.
820 2007-06-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
823 * tree-vect-transform.c (vectorizable_operation): Convert
824 POINTER_PLUS_EXPR over to PLUS_EXPR.
826 2007-06-25 Chao-ying Fu <fu@mips.com>
828 * doc/rtl.texi (Machine Modes): Document QQ, HQ, SQ, DQ, TQ,
829 UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA, USA, UDA, and UTAmodes.
830 Document MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
831 Document GET_MODE_IBIT, and GET_MODE_FBIT.
833 * machmode.h (VECTOR_MODE_P): Test MODE_VECTOR_FRACT,
834 MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
835 (SCALAR_FRACT_MODE_P, SCALAR_UFRACT_MODE_P, ALL_SCALAR_FRACT_MODE_P,
836 SCALAR_ACCUM_MODE_P, SCALAR_UACCUM_MODE_P, ALL_SCALAR_ACCUM_MODE_P,
837 SIGNED_SCALAR_FIXED_POINT_MODE_P, UNSIGNED_SCALAR_FIXED_POINT_MODE_P,
838 ALL_SCALAR_FIXED_POINT_MODE_P, FRACT_MODE_P, UFRACT_MODE_P,
839 ALL_FRACT_MODE_P, ACCUM_MODE_P, UACCUM_MODE_P, ALL_ACCUM_MODE_P,
840 SIGNED_FIXED_POINT_MODE_P, UNSIGNED_FIXED_POINT_MODE_P,
841 ALL_FIXED_POINT_MODE_P): New define.
842 (CLASS_HAS_WIDER_MODES_P): Test MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
844 (GET_MODE_IBIT, GET_MODE_FBIT): New define.
846 * mode-classes.def (MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM,
847 MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
848 MODE_VECTOR_UACCUM): New mode classes.
850 * machmode.def: Document FRACT_MODE, UFRACT_MODE, ACCUM_MODE,
851 UACCUM_MODE, ADJUST_IBIT, and ADJUST_FBIT.
852 Add QQ, HQ, SQ, DQ, TQ, UQQ, UHQ, USQ, UDQ, UTQ, HA, SA, DA, TA, UHA,
855 * genmodes.c (struct mode_data): Add ibit and fbit fields.
856 (blank_mode): Initialize ibit and fbit.
857 (adj_ibit, adj_fbit): New to adjust ibit and fbit.
858 (vector_class): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM, MODE_UACCUM.
859 (new_adjust): Change required_class to required_class_from and
860 required_class_to for testing within a range.
861 (complete_mode): Handle MODE_FRACT, MODE_UFRACT, MODE_ACCUM,
862 MODE_UACCUM, MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT, MODE_VECTOR_ACCUM,
864 (FRACT_MODE, UFRACT_MODE, ACCUM_MODE, UACCUM_MODE): New define.
865 (make_fixed_point_mode): New.
866 (_ADD_ADJUST): Change C to C1 and C2.
867 (ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FLOAT_FORMAT): Change to
868 use a range for machine classes.
869 (ADJUST_IBIT, ADJUST_FBIT): New.
870 (emit_insn_modes_h): Output defines of CONST_MODE_IBIT and
872 (emit_mode_adjustments): Handle MODE_VECTOR_FRACT, MODE_VECTOR_UFRACT,
873 MODE_VECTOR_ACCUM, MODE_VECTOR_UACCUM.
874 Emit adjustment for ibit and fbit.
875 (emit_mode_ibit, emit_mode_fbit): New.
876 (emit_insn_modes_c): Add emit_mode_ibit and emit_mode_fbit.
878 2007-06-25 Nathan Froyd <froydnj@codesourcery.com>
880 * config/rs6000/spe.md (*frob_ti_tf_2): Specify an input_operand
881 as the source of the set.
883 2007-06-25 Roman Zippel <zippel@linux-m68k.org>
885 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P,
886 FP_REGNO_P): Use IN_RANGE.
887 (REGNO_OK_FOR_DATA_P, REGNO_OK_FOR_FP_P): Remove.
888 (REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P): New.
889 (DATA_REG_P): Use DATA_REGNO_P.
890 (FP_REG_P): Use FP_REGNO_P.
891 (ADDRESS_REG_P): Use ADDRESS_REGNO_P.
892 * config/m68k/m68k.c (m68k_legitimate_base_reg_p): Use
893 REGNO_OK_FOR_INDEX_NONSTRICT_P, REGNO_OK_FOR_BASE_NONSTRICT_P.
895 2007-06-24 Jan Hubicka <jh@suse.cz>
898 * cgraphunit.c (cgraph_analyze_function): Fix ordering problem.
900 2007-06-24 Sebastian Pop <sebpop@gmail.com>
903 * fold-const.c (fold_binary): Strip nops of operand 0
904 of BIT_NOT_EXPR before calling operand_equal_p.
905 * testsuite/gcc.dg/tree-ssa/pr32461-1.c: New.
906 * testsuite/gcc.dg/tree-ssa/pr32461-2.c: New.
908 2007-06-23 Mark Mitchell <mark@codesourcery.com>
910 * doc/extend.texi: Document that dllimport and dllexport imply
912 * tree.c (handle_dll_attribute): Set DECL_VISIBILITY on the
913 imported or exported declaration, including type declarations.
914 * c-common.c (handle_visibility_attribute): Check for conflicts
915 with dllimport/dllexport.
916 (c_determine_visibility): Handle dllimport/dllexport as an
917 explicit visibility atttribute.
919 2007-06-23 Richard Guenther <rguenther@suse.de>
921 PR tree-optimization/16876
923 * tree.h (CALL_CANNOT_INLINE_P): New macro to access static_flag
925 * tree-inline.c (initialize_inlined_parameters): Do not call
926 lang_hooks.tree_inlining.convert_parm_for_inlining.
927 * cgraphbuild.c (initialize_inline_failed): Set inline failed
928 reason for mismatched types.
929 * gimplify.c (gimplify_call_expr): Verify the call expression
930 arguments match the called function type signature. Otherwise
931 mark the call expression to be not considered for inlining
932 using CALL_CANNOT_INLINE_P flag.
933 * ipa-inline.c (cgraph_mark_inline): Honor CALL_CANNOT_INLINE_P on the
934 edges call expression.
935 (cgraph_decide_inlining_of_small_function): Likewise.
936 (cgraph_decide_inlining): Likewise.
937 * c-objc-common.h (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
939 * c-tree.h (c_convert_parm_for_inlining): Remove declaration.
940 * c-typeck.c (c_convert_parm_for_inlining): Remove.
941 * langhooks-def.h (lhd_tree_inlining_convert_parm_for_inlining):
943 (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING): Remove define.
944 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining):
946 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
947 convert_parm_for_inlining member.
949 2007-06-23 Richard Earnshaw <rearnsha@arm.com>
952 * arm.md (negscc): Match the correct operand for optimized LT0 test.
953 Remove optimization for GT.
955 2007-06-23 Kenneth Zadeck <zadeck@naturalbridge.com>
958 * dce.c (deletable_insn_p): Add extra parameter and recurse if insn
960 (prescan_insns_for_dce): Add extra parameter.
962 2007-06-23 Jan Hubicka <jh@suse.cz>
965 * gimplify.c (mark_addressable): New function.
966 (gimplify_modify_expr_rhs, gimplify_addr_expr, gimplify_expr): Use it.
968 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
971 * expr.c (store_constructor): Do not clobber non-zeroed memory.
973 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
976 * config/i386/i386.c (ix86_register_move_cost): Rise the cost of
977 moves between MMX/SSE registers to at least 8 units to prevent
978 ICE caused by non-tieable SI/HI/QImodes in SSE registers.
980 2007-06-22 Uros Bizjak <ubizjak@gmail.com>
982 * config/i386/i386.c (override_options): Correct x86_sahf
985 2007-06-21 David Daney <ddaney@avtrex.com>
988 * config/mips/mips.md (define_constants): Rename UNSPEC_EH_RECEIVER
989 to UNSPEC_NONLOCAL_GOTO_RECEIVER globally.
990 (exception_receiver): Renamed to ...
991 (nonlocal_goto_receiver): ... this.
993 2007-06-22 Roman Zippel <zippel@linux-m68k.org>
995 * df-scan.c (df_read_modify_subreg_p): Use REGMODE_NATURAL_SIZE.
996 (df_def_record_1): Set (DF_REF_READ_WRITE | DF_REF_PARTIAL) for
997 partial register accesses.
999 2007-06-21 Adam Nemet <anemet@caviumnetworks.com>
1001 * fold-const.c (debug_fold_checksum): Move it under
1002 ENABLE_FOLD_CHECKING.
1004 2007-06-21 Sebastian Pop <sebpop@gmail.com>
1007 * tree.h (debug_fold_checksum): Declared.
1008 * fold-const.c (build_fold_addr_expr_with_type_1): New.
1009 (build_fold_addr_expr_with_type, build_fold_addr_expr): Use
1010 build_fold_addr_expr_with_type_1.
1011 (fold_addr_expr, debug_fold_checksum): New.
1012 (fold_checksum_tree): Don't fold TREE_CHAIN of an SSA_NAME.
1013 (fold_unary, fold_comparison, split_address_to_core_and_offset):
1016 2007-06-21 Sebastian Pop <sebpop@gmail.com>
1018 PR tree-optimization/19590
1019 * tree-vrp.c (adjust_range_with_scev): Set the range when the result
1020 of scev is a constant.
1021 * gcc/testsuite/gcc.dg/tree-ssa/pr19590.c: New.
1023 2007-06-21 Kenneth Zadeck <zadeck@naturalbridge.com>
1025 * df-problems.c (df_note_bb_compute): Made computation of live
1026 info consistent with df_lr.
1028 2007-06-21 Richard Guenther <rguenther@suse.de>
1030 PR tree-optimization/32453
1031 * tree-vrp.c (extract_range_from_assert): Build POINTER_PLUS_EXPR
1032 for pointer anti-range.
1034 2007-06-21 H.J. Lu <hongjiu.lu@intel.com>
1036 * config/i386/i386.c (processor_target_table): Increase maximum
1037 skip from 7 byte to 10 byte for Pentium Pro, Core 2 Duo and
1040 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Ensure 8
1041 byte alignment if > 8 byte alignment is preferred.
1042 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
1044 2007-06-21 Jakub Jelinek <jakub@redhat.com>
1046 PR tree-optimization/31866
1047 * tree-ssa-coalesce.c (create_outofssa_var_map): Do nothing
1048 if ASM_EXPR's input is not a SSA_NAME.
1051 * omp-low.c (lookup_decl_in_outer_ctx): Don't ICE if t is NULL,
1052 but decl is a global var, instead return decl.
1053 * gimplify.c (gimplify_adjust_omp_clauses_1): Add shared clauses
1054 even for is_global_var decls, if they are private in some outer
1057 2007-06-21 Richard Guenther <rguenther@suse.de>
1059 PR tree-optimization/32451
1060 * tree-ssa-threadupdate.c (thread_single_edge): Fixup edge flags.
1062 2007-06-21 Christian Bruel <christian.bruel@st.com>
1064 * config/sh/sh-protos.h (sh_loads_bankedreg_p): Declare.
1065 * config/sh/sh.c (sh_loads_bankedreg_p): New function.
1066 (push_regs): Changed saving order or banked registers.
1067 (sh_expand_epilogue): Likewise.
1068 * config/sh/sh.h (BANKED_REGISTER_P): New macro.
1069 (FIRST_BANKED_REG): Likewise.
1070 (LAST_BANKED_REG): Likewise.
1071 * config/sh/sh.md (banked) New attribute.
1072 (in_delay_slot): Check banked attribute.
1074 2007-06-20 Sebastian Pop <sebpop@gmail.com>
1076 PR tree-optimization/32075
1077 * tree-data-ref.c (subscript_dependence_tester_1,
1078 analyze_miv_subscript, analyze_overlapping_iterations,
1079 add_distance_for_zero_overlaps, build_classic_dist_vector,
1080 subscript_dependence_tester_1, analyze_overlapping_iterations,
1081 subscript_dependence_tester, access_functions_are_affine_or_constant_p,
1082 compute_affine_dependence, compute_all_dependences): Pass loop_nest
1083 to evolution_function_is_affine_multivariate_p.
1085 2007-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
1087 * df-scan.c (df_get_call_refs): Be prepared for MEMs inside CLOBBERs.
1089 2007-06-20 Rask Ingemann Lambertsen <rask@sygehus.dk>
1092 * config/m32c/m32c.c (m32c_emit_epilogue): Use new HImode epilogue
1094 * config/m32c/prologue.md (epilogue_exitd_16): New.
1095 (epilogue_reit_16): New.
1096 (epilogue_exitd): Rename to epilogue_exitd_24.
1097 (epilogue_reit): Rename to epilogue_reit_24.
1099 2007-06-20 Seongbae Park <seongbae.park@gmail.com>
1100 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
1102 * dbgcnt.def (global_alloc_at_func, global_alloc_at_reg):
1104 * haifa-sched.c (queue_to_ready): Don't requeue next insn
1105 if dbg_cnt (sched_insn) reaches the limit.
1106 (choose_ready): New parameter INSN_PTR and new return value.
1107 (schedule_block): Handle dbg_cnt (sched_insn). Handle
1108 the new return value from choose_ready.
1109 * global.c (global_aloc): New dbgcnt global_alloc_at_reg.
1110 (rest_of_handle_global_alloc): New global_alloc_at_func.
1112 2007-06-20 Adam Nemet <anemet@caviumnetworks.com>
1114 PR tree-optimization/25737
1115 * tree.h (struct tree_struct_field_tag): Add new field alias_set.
1116 (SFT_NONADDRESSABLE_P, SFT_ALIAS_SET): New macros.
1117 * tree-flow.h (struct fieldoff): Add new field alias_set.
1118 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add new
1119 argument addressable_type. Set alias_set of fieldoff.
1120 * tree-ssa-alias.c (create_sft): Add new argument alias_set.
1121 (create_overlap_variables_for): Pass alias_set from fieldoff to
1123 * alias.c (get_alias_set): Use alias_set from SFT if set.
1125 2007-06-20 Hui-May Chang <hm.chang@apple.com>
1127 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Print the size
1128 of a variable as an unsigned HOST_WIDE_INT integer.
1130 2007-06-20 Zdenek Dvorak <dvorakz@suse.cz>
1132 PR rtl-optimization/32405
1133 * loop-iv.c (iv_get_reaching_def): Fail for partial defs.
1135 2007-06-20 Jakub Jelinek <jakub@redhat.com>
1137 * Makefile.in (omega.o): Depend on $(DIAGNOSTIC_H).
1140 * builtins.c: Include diagnostic.h.
1141 (expand_builtin_expect): Make gcc_assert more permissive.
1142 * Makefile.in (builtins.o): Depend on $(DIAGNOSTIC_H).
1145 * gimplify.c (gimplify_asm_expr): Issue error if type is addressable
1149 * calls.c (precompute_arguments): Also precompute CALL_EXPR arguments
1150 if ACCUMULATE_OUTGOING_ARGS.
1152 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
1154 * config/m68hc11/m68hc11.c: Include dataflow header file.
1155 (m68hc11_reorg): Port to dataflow.
1157 2007-06-19 Kenneth Zadeck <zadeck@naturalbridge.com>
1159 * df.h (DF_FIRST_OPTIONAL_PROBLEM): Removed.
1160 (struct df_problem.free_blocks_on_set_blocks): New field.
1161 (struct dataflow.optional_p): New field.
1162 (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
1163 (df_live_set_all_dirty): New function.
1164 * df-scan.c (df_scan_alloc): Initialize optional_p.
1165 (problem_SCAN): Initialize free_blocks_on_set_blocks.
1166 * df-core.c (df_set_blocks): Removed use of
1167 DF_FIRST_OPTIONAL_PROBLEM. Now uses
1168 df_problem.free_blocks_on_set_blocks to determine which blocks are
1170 (df_remove_problem): Removed use of DF_FIRST_OPTIONAL_PROBLEM.
1171 (df_finish_pass): Removed use of DF_FIRST_OPTIONAL_PROBLEM. Now
1172 uses dataflow.optional_p to determine if problem should be
1174 (rest_of_handle_df_initialize): Only start live problem if
1176 (df_bb_regno_last_use_find, df_insn_regno_def_p): Removed.
1177 * df-problems.c (df_ru_alloc, df_rd_alloc, df_lr_alloc,
1178 df_live_alloc, df_urec_alloc, df_note_alloc): set optional_p.
1179 (problem_RU, problem_RD, problem_LR, problem_UREC, problem_CHAIN,
1180 problem_NOTE): Initialize free_blocks_on_set_blocks.
1181 (df_lr_bb_local_compute): Recompute luids if df_live problem is
1183 (df_live_set_all_dirty, df_note_alloc): New function.
1184 * regrename.c (merge_overlapping_regs): Change DF_LIVE_* to
1186 * sched_ebb.c (compute_jump_reg_dependencies): Ditto.
1187 * postreload.c (reload_combine): Ditto.
1188 * cse.c (cse_extended_basic_block): Ditto.
1189 * regmove.c (mark_flags_life_zones): Ditto.
1190 * rtlfactoring.c (split_blocks_after_seqs, split_pattern_seq,
1191 erase_matching_seqs): Ditto.
1192 * bt-load.c (compute_defs_uses_and_gen): Ditto.
1193 * integrate (allocate_initial_values): Ditto.
1194 * combine.c (reg_dead_at_p): Ditto.
1195 * resource.c (mark_target_live_regs): Ditto.
1196 * sched-rgn.c (check_live_1, update_live_1): Ditto.
1197 * config/sh/sh.c (find_r0_life_regions): Ditto.
1198 * global.c (rest_of_handle_global_alloc): Only add back df_live
1200 * local-alloc.c (rest_of_handle_local_alloc): Only remove
1202 * ifcvt.c (dead_or_predicable): Change DF_LIVE_* to
1204 (if_convert): Make sure df_live is there at -O == 1.
1205 (pass_if_after_combine): Cleanup flags.
1206 * init-regs.c (initialize_uninitialized_regs): Make sure df_live
1207 is there at -O == 1.
1209 2007-06-19 Seongbae Park <seongbae.park@gmail.com>
1211 * config/arm/arm.c (arm_get_frame_offsets): Set
1212 offsets->locals_base to avoid negative stack size.
1213 (thumb1_expand_prologue): Assert on negative stack size.
1215 2007-04-19 Sebastian Pop <sebpop@gmail.com>
1217 PR tree-optimization/32367
1218 * tree-chrec.h (build_polynomial_chrec): Verify that the left hand side
1219 of the chrec has no evolution in that loop.
1220 * testsuite/gcc.dg/tree-ssa/pr32367.c: New.
1222 2007-06-19 Bob Wilson <bob.wilson@acm.org>
1224 * config/xtensa/xtensa.c: Include "df.h".
1225 (xtensa_builtin_saveregs): Use adjust_address instead of change_address.
1226 (xtensa_va_start): Invoke make_tree with sizetype for
1227 expand_builtin_saveregs and then convert the result to a pointer.
1228 Use POINTER_PLUS_EXPR. Use size_int instead of build_int_cst.
1229 (xtensa_gimplify_va_arg_expr): Use size_int instead of build_int_cst.
1230 Subtract argument size from index value as integers and then use
1231 POINTER_PLUS_EXPR to add the result to the array address.
1233 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
1236 * config/m32c/m32c.c: Include dataflow header file.
1237 (m32c_emit_prologue): Adjust for prologue insn change.
1238 * config/m32c/prologue.md (prologue_enter_16): Only modify SP_REGNO
1239 once inside a PARALLEL. Assume frame size passed in operand 0
1240 includes space to save the fb register.
1241 (prologue_enter_24): Likewise.
1242 (epilogue_exitd): Only modify SP_REGNO once inside a PARALLEL.
1244 2007-06-19 David Daney <ddaney@avtrex.com
1247 * config/mips/mips.md (cprestore): Mark $gp as used.
1249 2007-06-19 Rask Ingemann Lambertsen <rask@sygehus.dk>
1252 * config/frv/frv.c (frv_ifcvt_modify_tests): Dataflow merge fix.
1253 (frv_ifcvt_modify_insn): Likewise.
1255 2007-06-19 Richard Guenther <rguenther@suse.de>
1257 * tree-ssa-structalias.c (handle_ptr_arith): Make sure to
1258 only handle positive offsets that fit in a HOST_WIDE_INT.
1260 2007-06-19 Uros Bizjak <ubizjak@gmail.com>
1262 * config/i386/i386.c (ix86_emit_swsqrtsf): Filter out infinity
1263 result of rsqrt insn for zero input argument to avoid NaN.
1265 2007-06-19 Richard Guenther <rguenther@suse.de>
1268 * tree-ssa-alias-warnings.c (ffan_walker): Punt on MTAGs.
1270 2007-06-19 Jakub Jelinek <jakub@redhat.com>
1272 PR tree-optimization/32353
1273 * tree-ssa-structalias.c (set_uids_in_ptset): Also handle RESULT_DECL.
1275 2007-06-19 Nick Clifton <nickc@redhat.com>
1277 * config/m32r/linux.h (LIB_SPEC): Always imply -lpthread for -pthread.
1279 2007-06-18 Uros Bizjak <ubizjak@gmail.com>
1282 * config/i386/i386.h (enum ix86_stack_slot): Add SLOT_VIRTUAL.
1283 * config/i386/i386.c (assign_386_stack_local): Assert that
1284 SLOT_VIRTUAL is valid only before virtual regs are instantiated.
1285 (ix86_expand_builtin) [IX86_BUILTIN_LDMXCSR, IX86_BUILTIN_STMXCSR]:
1286 Use SLOT_VIRTUAL stack slot instead of SLOT_TEMP.
1287 * config/i386/i386.md (truncdfsf2, truncxf<mode>2): Ditto.
1289 2007-06-18 Steve Ellcey <sje@cup.hp.com>
1291 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): New.
1293 2007-06-18 Seongbae Park <seongbae.park@gmail.com>
1295 PR rtl-optimization/32321
1296 * gcse.c (replace_store_insn): Update the note before
1297 calling emit_insn_after.
1299 2007-06-18 Kenneth Zadeck <zadeck@naturalbridge.com>
1302 * gcse (rest_of_handle_gcse): Add call to df_finish_pass after
1304 * df-problems.c (df_note_bb_compute): Fix dumping info.
1306 2007-06-18 Kazu Hirata <kazu@codesourcery.com>
1308 * config/m68k/m68k.c (m68k_expand_epilogue): Emit a return
1309 insn with emit_jump_insn.
1311 2007-06-18 Uros Bizjak <ubizjak@gmail.com>
1313 PR tree-optimization/32383
1314 * targhooks.c (default_builtin_reciprocal): Add new bool argument.
1315 * targhooks.h (default_builtin_reciprocal): Update prototype.
1316 * target.h (struct gcc_target): Update builtin_reciprocal.
1317 * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Update description.
1318 * tree-ssa-math-opts (execute_cse_reciprocals): Skip statements
1319 where arg1 is not SSA_NAME. Pass true to targetm.builtin_reciprocal
1320 when fndecl is in BUILT_IN_MD class.
1321 (execute_convert_to_rsqrt): Ditto.
1323 * config/i386/i386.c (ix86_builtin_reciprocal): Update for new bool
1324 argument. Convert IX86_BUILTIN_SQRTPS code only when md_fn is true.
1325 Convert BUILT_IN_SQRTF code only when md_fn is false.
1327 2007-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
1329 * bt-load.c (move_btr_def): Fix the order of arguments
1330 to validate_replace_rtx.
1332 2007-06-18 Nathan Sidwell <nathan@codesourcery.com>
1334 * config/m68k/m68k-devices.def: Add 54450..54455.
1336 2007-06-17 Uros Bizjak <ubizjak@gmail.com>
1338 PR rtl-optimization/32366
1339 * simplify-rtx.c (simplify_unary_operation_1) [FLOAT_TRUNCATE,
1340 FLOAT_EXTEND]: Prevent non-scalar modes from entering
1343 2007-06-17 Kenneth Zadeck <zadeck@naturalbridge.com>
1346 * modulo-sched (generate_reg_moves): Added rescan parameter and if
1347 this is true, rescan insn being modified.
1348 (sms_schedule): Added rescan parameter.
1349 (rest_of_handle_sms): Moved freeing of dominance info to before
1350 getting out of cfg_layout.
1352 2007-06-17 Nathan Sidwell <nathan@codesourcery.com>
1354 * config/m68k/m68k.h (ISA_HAS_FF1, ISA_HAS_MVS_MVZ): New.
1355 * config/m68k/m68k.md: Use ISA_HAS_FF1 and ISA_HAS_MVS_MVZ as
1358 * config/m68k/m68k.c (all_isas): Remove FL_CF_FPU and
1359 FL_CF_EMAC from the entry for isac.
1361 * config/m68k/predicates.md (const_call_operand): Adjust comment.
1362 (const_sibcall_operand): New.
1363 (sibcall_operand): Use it.
1364 * config/m68k/m68k.c (FL_FOR_isa_c): Not ISA_B compatible.
1365 (m68k_isas): ISAC does not imply FPU or EMAC.
1366 (override_options): Add ISA_C logic for symbolic jump & call.
1368 2007-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1370 * config/sparc/sparc.c (sparc_vis_init_builtins): Retrieve the
1371 return mode from the builtin itself.
1372 (sparc_fold_builtin): Fix cast of zero constant.
1374 2007-06-16 Uros Bizjak <ubizjak@gmail.com>
1376 * targhooks.c (default_builtin_reciprocal): New default target hook.
1377 * targhooks.h (default_builtin_reciprocal): Add prototype.
1378 * hooks.c (hook_tree_tree_bool_null): Remove hook.
1379 * hooks.h (hook_tree_tree_bool_null): Remove prototype.
1380 * target-def.h (TARGET_BUILTIN_RECIPROCAL): Define as
1381 default_builtin_reciprocal.
1383 2007-06-16 Uros Bizjak <ubizjak@gmail.com>
1386 * hooks.c (hook_tree_tree_bool_null): New hook.
1387 * hooks.h (hook_tree_tree_bool_null): Add prototype.
1388 * tree-pass.h (pass_convert_to_rsqrt): Declare.
1389 * passes.c (init_optimization_passes): Add pass_convert_to_rsqrt.
1390 * tree-ssa-math-opts.c (execute_cse_reciprocals): Scan for a/func(b)
1391 and convert it to reciprocal a*rfunc(b).
1392 (execute_convert_to_rsqrt): New function.
1393 (gate_convert_to_rsqrt): New function.
1394 (pass_convert_to_rsqrt): New pass definition.
1395 * target.h (struct gcc_target): Add builtin_reciprocal.
1396 * target-def.h (TARGET_BUILTIN_RECIPROCAL): New define.
1397 (TARGET_INITIALIZER): Initialize builtin_reciprocal with
1398 TARGET_BUILTIN_RECIPROCAL.
1399 * doc/tm.texi (TARGET_BUILTIN_RECIPROCAL): Document.
1401 * config/i386/i386.h (TARGET_RECIP): New define.
1402 * config/i386/i386.md (divsf3): Expand by calling ix86_emit_swdivsf
1403 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
1404 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
1405 and not optimizing for size.
1406 (*rcpsf2_sse): New insn pattern.
1407 (*rsqrtsf2_sse): Ditto.
1408 (rsqrtsf2): New expander. Expand by calling ix86_emit_swsqrtsf
1409 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
1410 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
1411 and not optimizing for size.
1412 (sqrt<mode>2): Expand SFmode operands by calling ix86_emit_swsqrtsf
1413 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
1414 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
1415 and not optimizing for size.
1416 * config/i386/sse.md (divv4sf): Expand by calling ix86_emit_swdivsf
1417 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
1418 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
1419 and not optimizing for size.
1420 (*sse_rsqrtv4sf2): Do not export.
1422 (sse_rsqrtv4sf2): New expander. Expand by calling ix86_emit_swsqrtsf
1423 for TARGET_SSE_MATH and TARGET_RECIP when flag_finite_math_only and
1424 flag_unsafe_math_optimizations are set, flag_trapping_math is unset
1425 and not optimizing for size.
1427 * config/i386/i386.opt (mrecip): New option.
1428 * config/i386/i386-protos.h (ix86_emit_swdivsf): Declare.
1429 (ix86_emit_swsqrtsf): Ditto.
1430 * config/i386/i386.c (IX86_BUILTIN_RSQRTF): New constant.
1431 (ix86_init_mmx_sse_builtins): __builtin_ia32_rsqrtf: New
1433 (ix86_expand_builtin): Expand IX86_BUILTIN_RSQRTF using
1434 ix86_expand_unop1_builtin.
1435 (ix86_emit_swdivsf): New function.
1436 (ix86_emit_swsqrtsf): Ditto.
1437 (ix86_builtin_reciprocal): New function.
1438 (TARGET_BUILTIN_RECIPROCAL): Use it.
1439 (ix86_vectorize_builtin_conversion): Rename from
1440 ix86_builtin_conversion.
1441 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Use renamed function.
1442 * doc/invoke.texi (Machine Dependent Options): Add -mrecip to
1443 "i386 and x86_64 Options" section.
1444 (Intel 386 and AMD x86_64 Options): Document -mrecip.
1446 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
1447 Zdenek Dvorak <dvorakz@suse.cz>
1448 Richard Guenther <rguenther@suse.de>
1449 Kaz Kojima <kkojima@gcc.gnu.org>
1451 * tree-vrp.c (compare_values_warnv): Convert val2 to
1453 (extract_range_from_assert): Create
1454 POINTER_PLUS_EXPR for pointer types.
1455 (extract_range_from_binary_expr): Handle
1456 only POINTER_PLUS_EXPR, MIN_EXPR, and MAX_EXPR
1458 * doc/c-tree.texi (POINTER_PLUS_EXPR): Document.
1459 * tree-ssa-loop-niter.c (split_to_var_and_offset): Handle
1460 POINTER_PLUS_EXPR as PLUS_EXPR.
1461 (number_of_iterations_lt_to_ne):
1462 For pointer types, use sizetype when
1463 creating MINUS_EXPR/PLUS_EXPRs.
1464 (assert_loop_rolls_lt): For pointer types, use sizetype when
1465 creating MINUS_EXPR/PLUS_EXPRs.
1466 (number_of_iterations_le): Likewise.
1467 (expand_simple_operations): POINTER_PLUS_EXPR are simple also.
1468 (derive_constant_upper_bound): Handle POINTER_PLUS_EXPR just
1469 like PLUS_EXPR and MINUS_EXPR.
1470 * tree-pretty-print.c (dump_generic_node): Handle
1472 (op_prio): Likewise.
1473 (op_symbol_1): Likewise.
1474 * optabs.c (optab_for_tree_code): Likewise.
1475 * tree-ssa-loop-manip.c (create_iv): Handle pointer base
1477 * tree-tailcall.c (process_assignment): Mention
1478 POINTER_PLUS_EXPR in a TODO comment.
1479 * tree.c (build2_stat): Assert when trying to use PLUS_EXPR or
1480 MINUS_EXPR with a pointer. Also assert for POINTER_PLUS_EXPR
1481 not used with a pointer and an integer type.
1482 * tree-scalar-evolution.c (add_to_evolution_1): Convert the
1483 increment using chrec_convert_rhs instead of chrec_convert.
1484 (follow_ssa_edge_in_rhs): Handle POINTER_PLUS_EXPR like
1485 PLUS_EXPR except for the right hand side's type will be
1487 (interpret_rhs_modify_stmt): Handle POINTER_PLUS_EXPR.
1488 (fold_used_pointer_cast): Kill.
1489 (pointer_offset_p): Kill.
1490 (fold_used_pointer): Kill.
1491 (pointer_used_p): Kill.
1492 (analyze_scalar_evolution_1 <case GIMPLE_MODIFY_STMT>): Don't
1493 call fold_used_pointer.
1494 (instantiate_parameters_1): Convert the increment
1495 using chrec_convert_rhs instead of chrec_convert.
1496 Handle POINTER_PLUS_EXPR as PLUS_EXPR.
1497 * builtins.c (get_pointer_alignment): Handle POINTER_PLUS_EXPR
1498 instead of PLUS_EXPR.
1499 (expand_builtin_strcat): Create a POINTER_PLUS_EXPR instead of
1500 PLUS_EXPR for pointers.
1501 (std_gimplify_va_arg_expr): Likewise.
1502 (fold_builtin_memory_op): Likewise.
1503 (fold_builtin_strstr): Likewise.
1504 (fold_builtin_strchr): Likewise.
1505 (fold_builtin_strrchr): Likewise.
1506 (fold_builtin_strpbrk): Likewise.
1507 (expand_builtin_memory_chk): Likewise.
1508 (fold_builtin_memory_chk): Likewise.
1509 (std_expand_builtin_va_start): Use
1510 sizetype for the call to make_tree and then convert
1511 to the pointer type.
1512 (fold_builtin_memchr): Use POINTER_PLUS_EXPR
1513 instead of PLUS_EXPR for adding to a pointer.
1514 (std_gimplify_va_arg_expr): Use fold_build2 for
1515 the creating of POINTER_PLUS_EXPR. For the BIT_AND_EXPR, cast
1516 the operands to sizetype first and then cast the BIT_AND_EXPR
1517 back to the pointer type.
1518 * fold-const.c (build_range_check): Handle pointer types
1520 (extract_array_ref): Look for POINTER_PLUS_EXPR instead
1521 of PLUS_EXPR's. Make sure the offset is converted to
1523 (try_move_mult_to_index): Strip the NOPs from the offset.
1524 Remove code argument and replace all uses with PLUS_EXPR.
1525 (fold_to_nonsharp_ineq_using_bound): Handle pointer types
1526 specially. Don't use a pointer type for MINUS_EXPR.
1527 (fold_unary): Handle for (T1)(X op Y),
1528 only p+ as that is the only as that can be handled for
1529 binary operators now.
1530 (fold_binary <case POINTER_PLUS_EXPR>): Add folding of
1532 <case PLUS_EXPR>: Add folding of PTR+INT into
1534 Don't call try_move_mult_to_index.
1535 <case MINUS_EXPR>: Fold (PTR0 p+ A) - (PTR1 p+ B)
1536 into (PTR0 - PTR1) + (A - B). Fold (PTR0 p+ A) - PTR1 into
1537 (PTR0 - PTR1) + A iff (PTR0 - PTR1) simplifies.
1538 Don't call try_move_mult_to_index.
1539 (tree_expr_nonnegative_warnv_p): Handle POINTER_PLUS_EXPR.
1540 (tree_expr_nonzero_p): Likewise.
1541 (fold_indirect_ref_1): Look at POINTER_PLUS_EXPR instead
1542 of PLUS_EXPR for the complex expression folding.
1543 * tree-chrec.c (chrec_fold_plus_poly_poly): If the
1544 first chrec is a pointer type, then the second should
1545 be sizetype and not the first's type.
1546 For POINTER_PLUS_EXPR, use a different right hand side type.
1547 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
1548 (chrec_fold_plus_1): For POINTER_PLUS_EXPR, use a
1549 different right hand side type.
1550 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
1551 (chrec_fold_plus): For pointer types, use POINTER_PLUS_EXPR
1552 instead of PLUS_EXPR.
1553 When either operand is zero, convert the other operand.
1554 (chrec_apply): Use chrec_convert_rhs
1555 on the argument x instead of chrec_convert.
1556 (reset_evolution_in_loop): For pointer types, the new_evol
1558 (convert_affine_scev): For POINTER_PLUS_EXPR, use a
1559 different right hand side type.
1560 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
1561 (chrec_convert_rhs): New function.
1562 (chrec_convert_aggressive): For POINTER_PLUS_EXPR, use a
1563 different right hand side type.
1564 Handle POINTER_PLUS_EXPR like PLUS_EXPR.
1565 * tree-chrec.h (chrec_convert_rhs): New prototype.
1566 (build_polynomial_chrec): For pointer types, the right hand
1567 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Look for
1568 POINTER_PLUS_EXPR instead of PLUS_EXPR's.
1569 Remove subtraction case as it is always addition now.
1570 Make sure the offset is converted to sizetype.
1571 (fold_stmt_r): Don't handle PLUS_EXPR/MINUS_EXPR specially.
1572 Handle POINTER_PLUS_EXPR like PLUS_EXPR was handled before.
1573 * tree-ssa-loop-ivopts.c (determine_base_object): Abort for
1574 PLUS_EXPR in pointer type.
1575 Handle POINTER_PLUS_EXPR.
1576 (tree_to_aff_combination): Likewise.
1577 (force_expr_to_var_cost): Likewise.
1578 (force_expr_to_var_cost): Likewise. Create a POINTER_PLUS_EXPR
1579 instead of PLUS_EXPR for pointers.
1580 * c-format.c (check_format_arg): Handle POINTER_PLUS_EXPR
1581 instead of PLUS_EXPR of pointer types.
1582 * tree-stdarg.c (va_list_counter_bump): Handle POINTER_PLUS_EXPR
1584 (check_va_list_escapes): Likewise.
1585 (check_all_va_list_escapes): Likewise.
1586 * dwarf2out.c (loc_descriptor_from_tree_1):
1587 Handle POINT_PLUS_EXPR as a PLUS_EXPR.
1588 * expr.c (expand_expr_real_1): Handle POINTER_PLUS_EXPR.
1589 (string_constant): Likewise.
1590 * tree-ssa-address.c (tree_mem_ref_addr): When adding
1591 the offset to the base, use POINTER_PLUS_EXPR.
1592 (add_to_parts): Convert the index to sizetype.
1593 (create_mem_ref): Create A POINTER_PLUS_EXPR for the one case.
1594 * matrix-reorg.c (collect_data_for_malloc_call): Stmt
1595 will now only be either INDIRECT_REF and POINTER_PLUS_EXPR.
1596 Offset only holds something for PLUS_EXPR.
1597 (ssa_accessed_in_tree): Handle POINTER_PLUS_EXPR just as
1599 (analyze_transpose): POINTER_PLUS_EXPR will only show up now
1601 (analyze_accesses_for_modify_stmt): Likewise.
1602 Remove comment about the type being integral type as it is
1604 (can_calculate_expr_before_stmt): Handle POINTER_PLUS_EXPR as
1606 (transform_access_sites): POINTER_PLUS_EXPR will only show up now
1608 Correct the type which the artimentic is done in (is now
1611 * tree-data-ref.c (split_constant_offset): Handle
1613 * tree-affine.c (tree_to_aff_combination): Likewise.
1614 * c-typeck.c (build_unary_op): For pointers create the increment
1615 as a sizetype. Create a POINTER_PLUS_EXPR instead of PLUS_EXPR
1617 * gimplify.c (gimplify_self_mod_expr): Create a
1618 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
1619 (gimplify_omp_atomic_fetch_op): Handle POINTER_PLUS_EXPR.
1620 * tree.def (POINTER_PLUS_EXPR): New tree code.
1621 * tree-predcom.c (ref_at_iteration): If we have a pointer
1622 type do the multiplication in sizetype.
1623 * tree-mudflap.c (mf_xform_derefs_1): Create a
1624 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
1625 * tree-ssa-forwprop.c
1626 (forward_propagate_addr_into_variable_array_index):
1627 Don't expect there to be a cast for the index as that
1628 does not exist anymore.
1629 (forward_propagate_addr_expr_1): Check for POINTER_PLUS_EXPR
1630 instead of PLUS_EXPR.
1631 Don't check for the first operand of the POINTER_PLUS_EXPR
1632 was the index as it cannot be.
1633 Call forward_propagate_addr_into_variable_array_index with
1634 the SSA_NAME instead of the statement.
1635 * varasm.c (const_hash_1): Handle POINTER_PLUS_EXPR.
1636 (compare_constant): Likewise.
1637 (copy_constant): Likewise.
1638 (compute_reloc_for_constant): Likewise.
1639 (output_addressed_constants): Likewise.
1640 (initializer_constant_valid_p): Likewise.
1641 * tree-ssa.c (tree_ssa_useless_type_conversion_1):
1642 Convert the MIN/MAX of the inner type to the outer
1643 type before comparing them.
1644 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Handle
1645 POINTER_PLUS_EXPR instead of PLUS_EXPR.
1646 (issue_prefetch_ref): Create a POINTER_PLUS_EXPR instead
1647 of PLUS_EXPR for pointers.
1648 * tree-inline.c (estimate_num_insns_1): Handle
1650 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref):
1651 Create a POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
1652 (bump_vector_ptr): Create a POINTER_PLUS_EXPR
1653 instead of PLUS_EXPR for the pointer increment statement.
1654 (vect_update_ivs_after_vectorizer): For pointer types, create
1655 POINTER_PLUS_EXPR instead of PLUS_EXPR and also create
1656 MULT_EXPR in sizetype.
1657 (vect_gen_niters_for_prolog_loop): Add a cast when creating
1659 * tree-object-size.c (plus_expr_object_size): Handle
1660 POINTER_PLUS_EXPR instead of PLUS_EXPR. Removing all the extra
1661 code which is trying to figure out which side is a pointer and
1663 (check_for_plus_in_loops_1): Likewise.
1664 (check_for_plus_in_loops): Likewise.
1665 * c-common.c (pointer_int_sum): Create a
1666 POINTER_PLUS_EXPR instead of PLUS_EXPR for pointers.
1667 * tree-ssa-structalias.c (handle_ptr_arith): Handle
1668 only POINTER_PLUS_EXPR. Removing all the extra
1669 code which is trying to figure out which side is a pointer and
1671 * tree-cfg.c (verify_expr): Add extra checking for pointers and
1672 PLUS_EXPR and MINUS_EXPR.
1673 Also add checking to make sure the operands of POINTER_PLUS_EXPR
1675 * config/frv/frv.c (frv_expand_builtin_va_start): Use sizetype
1676 with make_tree, instead of a pointer type.
1677 * config/s390/s390.c (s390_va_start): Use POINTER_PLUS_EXPR
1678 for pointers instead of PLUS_EXPR.
1679 (s390_gimplify_va_arg): Likewise.
1680 * config/spu/spu.c (spu_va_start): Create POINTER_PLUS_EXPR
1681 instead of PLUS_EXPR when doing addition on pointer
1682 types. Use sizetype for the second operand.
1683 (spu_gimplify_va_arg_expr): Likewise.
1684 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use
1685 POINTER_PLUS_EXPR instead of PLUS_EXPR when the operand was
1686 a pointer. Don't create a BIT_AND_EXPR for pointer types.
1687 * config/i386/i386.c (ix86_va_start): Use POINTER_PLUS_EXPR
1688 for the pointer addition and also use size_int/sizetype
1690 (ix86_gimplify_va_arg): Likewise.
1691 Perform BIT_AND_EXPR on sizetype arguments.
1692 * config/sh/sh.c (sh_va_start): Call make_tree with sizetype
1693 and convert its result to a pointer type. Use POINTER_PLUS_EXPR
1694 for the pointer additions and also use size_int for the offsets.
1695 (sh_gimplify_va_arg_expr): Use POINTER_PLUS_EXPR for the pointer
1696 additions and also use size_int for the offsets. Perform
1697 BIT_AND_EXPR on sizetype arguments.
1698 * config/ia64/ia64.c (ia64_gimplify_va_arg): Use
1699 POINTER_PLUS_EXPR for pointers and create the
1700 BIT_AND_EXPR in sizetype.
1701 * config/rs6000/rs6000.c (rs6000_va_start): Use POINTER_PLUS_EXPR
1702 instead of PLUS_EXPR for pointer addition.
1703 (rs6000_va_start): Likewise.
1704 Also use sizetype for the offset.
1705 * config/pa/pa.c (reloc_needed): Handle POINTER_PLUS_EXPR
1706 as PLUS_EXPR/MINUS_EXPR.
1707 (hppa_gimplify_va_arg_expr): Don't create MINUS_EXPR or
1708 PLUS_EXPR for pointers, instead use POINTER_PLUS_EXPR.
1709 Don't use BIT_AND_EXPR on a pointer type, convert the
1710 expression to sizetype first.
1711 * config/mips/mips.c (mips_va_start): Use POINTER_PLUS_EXPR
1713 (mips_gimplify_va_arg_expr): Likewise.
1714 Don't create BIT_AND_EXPR in a pointer type.
1716 2007-06-15 Eric Christopher <echristo@apple.com>
1718 * config.gcc (i?86-*-darwin*): Add t-crtfm and t-crtpc.
1719 (x86_64-*-darwin*): Ditto.
1720 * config/i386/darwin.h (CRTEND_SPEC): New. Add support
1723 2007-06-15 Matthew Wilcox <matthew@wil.cx>
1725 * doc/extend.texi: Document behavior of __attribute__((aligned))
1728 2007-06-15 Mark Mitchell <mark@codesourcery.com>
1730 * rtlanal.c (note_stores): Improve documentation.
1732 2007-06-15 Bernd Schmidt <bernd.schmidt@analog.com>
1734 * config/bfin/elf.h (ASM_GENERATE_INTERNAL_LABEL,
1735 LOCAL_LABEL_PREFIX): Delete.
1736 * config/bfin/bfin.c (TARGET_ASM_INTERNAL_LABEL): Delete.
1737 (bfin_internal_label): Delete.
1739 2007-06-15 Uros Bizjak <ubizjak@gmail.com>
1741 * libgcc2.c (CEXT): When compiling L_multc3 and L_divtc3,
1742 define to "l" if LIBGCC_LONG_DOUBLE_SIZE == 128,
1743 otherwise define to LIBGCC2_TF_CEXT.
1744 * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): New define.
1745 (LIBGCC_TF_CEXT): Ditto.
1748 2007-06-14 Seongbae Park <seongbae.park@gmail.com>
1750 PR rtl-optimization/32339
1751 * df-scan.c (df_uses_record): Don't modify flags but just add to
1752 it for df_ref_record.
1754 2007-06-14 Andrew Pinski <andrew_pinski@playstation.sony.com>
1756 * tree-mudflap.c: Fix whitespace issues.
1758 2007-06-15 Kazu Hirata <kazu@codesourcery.com>
1760 * config/m68k/m68k.c (ASM_DOT, ASM_DOTW, ASM_DOTL): Remove.
1762 2007-06-14 Eric Christopher <echristo@apple.com>
1764 * config/i386/sse.md (movdi_to_sse): Rewrite body.
1765 (movv4sf): Use gcc_unreachable instead of abort.
1767 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
1770 * config/i386/sfp-machine.h (CMPtype): New define.
1771 (mach stubs): Use CMPtype instead of int as a return type.
1773 2007-06-14 Uros Bizjak <ubizjak@gmail.com>
1775 * config/soft-fp/eqdf2.c, config/soft-fp/eqsf2.c,
1776 config/soft-fp/eqtf2.c, config/soft-fp/gedf2.c,
1777 config/soft-fp/gesf2.c, config/soft-fp/getf2.c,
1778 config/soft-fp/ledf2.c, config/soft-fp/lesf2.c,
1779 config/soft-fp/letf2.c, config/soft-fp/unorddf2.c,
1780 config/soft-fp/unordsf2.c, config/soft-fp/unordtf2.c,
1781 config/soft-fp/soft-fp.h: Update from glibc CVS.
1783 2007-06-14 Bernd Schmidt <bernd.schmidt@analog.com>
1785 * config/bfin/uclinux.h (MFWRAP_SPEC): New.
1787 2007-06-14 Rask Ingemann Lambertsen <rask@sygehus.dk>
1790 * config/v850/v850.c: Include dataflow header file.
1791 (substitute_ep_register): Fix typo.
1793 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
1795 * configure.ac: Fix earlier checkin.
1796 * configure: Regenerated.
1798 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
1800 * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove.
1801 * aclocal.m4: Regenerate.
1802 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS,
1803 ACX_PROG_CC_WARNINGS_ARE_ERRORS,
1804 ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER.
1805 * configure: Regenerate.
1806 * Makefile.in (LOOSE_WARN): Subst loose_warn.
1808 * Makefile.in (quickstrap): Build libgcc too.
1810 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
1812 * configure.ac: Add --enable-checking=df. Explicitly mention that
1813 the variables are initialized as for "release".
1814 * df-core.c: Use it.
1815 * configure: Regenerate.
1816 * config.in: Regenerate.
1818 2007-06-14 Bob Wilson <bob.wilson@acm.org>
1820 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use
1821 validate_replace_rtx instead of replace_rtx.
1822 (xtensa_expand_prologue): Call df_insn_rescan after replace_rtx.
1824 2007-06-14 Danny Smith <dannysmith@users.sourceforge.net>
1826 * config/i386/cygming.h (DWARF_FRAME_REGNUM): Define.
1827 (DWARF2_UNWIND_INFO): Override default if configured with
1829 * config/i386/cygwin.h (STARTFILE_SPEC): Add crtbegin.o.
1830 (ENDFILE_SPEC): Add crtend.o.
1831 * config/i386/mingw32.h (STARTFILE_SEC): Add crtbegin.o.
1832 (ENDFILE_SPEC): Add crtend.o.
1833 (TARGET_USE_JCR_SECTION): Define.
1834 (MD_UNWIND_SUPPORT): Define for 32-bit target.
1836 * config/i386/cygming-crtbegin.c: New file.
1837 * config/i386/cygming-crtend.c: New file.
1839 2007-06-14 Pascal Obry Pascal Obry <obry@adacore.com>
1841 * config/i386/w32-unwind.h: New file.
1843 2007-06-13 Eric Christopher <echristo@apple.com>
1845 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Don't let
1846 the user set a value below STACK_BOUNDARY.
1848 2007-06-13 Thiemo Seufer <ths@networkno.de>
1850 * config/mips/linux.h, config/mips/linux64.h (LIB_SPEC): Always
1851 imply -lpthread for -pthread.
1853 2007-06-13 Kazu Hirata <kazu@codesourcery.com>
1855 * basic-block.h: Remove the prototype for
1856 free_basic_block_vars.
1857 * cfglayout.h: Remove the prototype for
1858 insn_locators_initialize.
1859 * tree.h: Remove the prototype for emit_line_note.
1861 * tree-ssa-pre.c (mergephitemp): Remove.
1862 (init_pre): Don't use mergephitemp.
1864 2007-06-13 Eric Christopher <echristo@apple.com>
1866 * config/i386/i386.c (override_options): If we've specified
1867 an arch then don't use TARGET_SUBTARGET_ISA_DEFAULTs.
1869 2007-06-13 Bob Wilson <bob.wilson@acm.org>
1871 * df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
1874 2007-06-13 Bernd Schmidt <bernd.schmidt@analog.com>
1876 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Use gen_frame_mem.
1877 * config/bfin/bfin.md (UNSPEC_VOLATILE_STORE_EH_HANDLER): New constant.
1878 (eh_store_handler): New pattern.
1879 (eh_return): Emit it instead of a plain move.
1881 2007-06-13 Uros Bizjak <ubizjak@gmail.com>
1883 * config/i386/i386.c (ix86_init_mmx_sse_builtins)
1884 [__builtin_infq, __builtin_fabsq]: Define usign def_builtin.
1885 [__builtin_ia32_rsqrtps, __builtin_ia32_rsqrtss]: Define using
1888 2007-06-13 Bernd Schmidt <bernd.schmidt@analog.com>
1890 * config/bfin/bfin.c (gen_one_bundle): Delete unused local variables.
1891 (find_next_insn_start, find_load): New functions.
1892 (bfin_reorg): Use them to deal with the fact that parallel insns are
1893 no longer represented as a SEQUENCE.
1895 2007-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
1897 * config/sparc/sparc.c (sparc_override_options): Initialize
1900 2007-06-13 Dave Korn <dave.korn@artimi.com>
1902 * config/i386/i386.c (ix86_eax_live_at_start_p): Use
1905 2007-06-13 Kazu Hirata <kazu@codesourcery.com>
1907 * auto-inc-dec.c, c-incpath.c, config/c4x/libgcc.S,
1908 config/sh/divcost-analysis, dbgcnt.def, df-core.c,
1909 df-problems.c, df-scan.c, df.h, dominance.c, dse.c, regstat.c,
1910 tree-data-ref.c, tree-ssa-loop-im.c, tree-ssa-loop-prefetch.c,
1911 tree-vect-transform.c: Fix comment typos. Follow spelling
1914 2007-06-12 Seongbae Park <seongbae.park@gmail.com>
1916 * df-scan.c (df_get_exit-block_use_set): Always add the stack pointer
1917 to the exit block use set.
1918 (df_insn_delete, df_insn_rescan): Fixed spelling of "deferring".
1919 * gcse.c (cpro_jump): Don't emit barrier in cfglayout mode.
1920 * config/sparc/sparc.c (sparc_check_64): Check df != NULL.
1922 2007-06-12 Seongbae Park <seongbae.park@gmail.com>
1924 * opts.c (common_handle_option): Handle new option -fdbg-cnt-list.
1925 * dbgcnt.c (dbg_cnt_set_limit_by_name): Return value
1926 to indicate an error.
1927 (dbg_cnt_process_single_pair, dbg_cnt_list_all_counters): New functions
1928 (dbg_cnt_process_opt): Print an error on a bad argument.
1929 * dbgcnt.h (dbg_cnt_list_all_counters): New function declaration.
1930 * common.opt (-fdbg-cnt-list): New.
1931 * doc/invoke.texi (-fdbg-cnt-list,-fdbg-cnt=): New.
1933 2007-06-12 Eric Botcazou <ebotcazou@adacore.com>
1935 * tree-ssa-alias.c (finalize_ref_all_pointers): Clear pt_anything
1936 flag on ref-all pointers.
1938 2007-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
1941 * expr.c (expand_expr_addr_expr_1): Call expand_expr
1942 for the offset with the modifier as EXPAND_INITIALIZER
1943 if the modifier is EXPAND_INITIALIZER.
1944 (expand_expr_real_1 <case INTEGER_CST>): Don't force to
1945 a register if we had an overflow.
1947 2007-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1949 * real.c (real_isfinite): New.
1950 (real_sqrt): Use it.
1951 * real.h (real_isfinite): New.
1952 * builtins.c: Use it.
1954 2007-06-12 Ian Lance Taylor <iant@google.com>
1955 Daniel Berlin <dberlin@dberlin.org>
1958 * tree.def: Add CHANGE_DYNAMIC_TYPE_EXPR.
1959 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Define.
1960 (CHANGE_DYNAMIC_TYPE_LOCATION): Define.
1961 (DECL_NO_TBAA_P): Define.
1962 (struct tree_decl_common): Add no_tbaa_flag field.
1963 * tree-ssa-structalias.c (struct variable_info): Add
1964 no_tbaa_pruning field.
1965 (new_var_info): Initialize no_tbaa_pruning field.
1966 (unify_nodes): Copy no_tbaa_pruning field.
1967 (find_func_aliases): Handle CHANGE_DYNAMIC_TYPE_EXPR.
1968 (dump_solution_for_var): Print no_tbaa_pruning flag.
1969 (set_uids_in_ptset): Add no_tbaa_pruning parameter. Change all
1971 (compute_tbaa_pruning): New static function.
1972 (compute_points_to_sets): Remove CHANGE_DYNAMIC_TYPE_EXPR nodes.
1973 Call compute_tbaa_pruning.
1974 * tree-ssa-alias.c (may_alias_p): Test no_tbaa_flag for pointers.
1975 * gimplify.c (gimplify_expr): Handle CHANGE_DYNAMIC_TYPE_EXPR.
1976 * gimple-low.c (lower_stmt): Likewise.
1977 * tree-gimple.c (is_gimple_stmt): Likewise.
1978 * tree-ssa-operands.c (get_expr_operands): Likewise.
1979 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1980 * tree-inline.c (estimate_num_insns_1): Likewise.
1981 (copy_result_decl_to_var): Likewise.
1982 * expr.c (expand_expr_real_1): Likewise.
1983 * tree-pretty-print.c (dump_generic_node): Likewise.
1984 * tree-inline.c (copy_decl_to_var): Copy DECL_NO_TBAA_P flag.
1985 * omp-low.c (omp_copy_decl_2): Likewise.
1986 * print-tree.c (print_node): Print DECL_NO_TBAA_P flag.
1987 * doc/c-tree.texi (Expression trees): Document
1988 CHANGE_DYNAMIC_TYPE_EXPR.
1990 2007-06-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1992 * fold-const.c (fold_binary): Guard (X-X) -> 0 transformation
1993 with !HONOR_NANS and !HONOR_INFINITIES.
1994 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1996 2007-06-12 Tristan Gingold <gingold@adacore.com>
1998 * gcov.c: Comments updated.
1999 (source_info): Add file_time field.
2000 (source_index): New variable.
2001 (mutiple_files): New variable.
2002 (generate_results): New function extracted from process_file.
2003 (process_file): Save and restore chain of functions, generate
2004 results and free structures only if not merging results.
2005 (release_structures): File names are now freed in create_file_names
2006 (create_file_names): Free previous file names.
2007 (find_source): File date is now read here and modifications in
2008 source files is checked here.
2009 (read_graph_file): Only reverse order of functions for the current
2011 (make_gcov_file_name): Do not generate long names if input_name is
2013 (output_lines): If merging results do not display graph, data and
2015 Checking source file modification is done in find_source.
2017 * doc/gcov.texi: Append an s to sourcefile.
2019 2007-06-12 Bernd Schmidt <bernd.schmidt@analog.com>
2021 * config/bfin/bfin.md (UNSPEC_NOP): New constant.
2022 (forced_nop): New pattern.
2023 * config/bfin/bfin.c: Include "df.h".
2024 (add_to_reg): Use df_regs_ever_live_p instead of regs_ever_live.
2025 (bfin_discover_loop): Use df_get_live_in instead of
2026 global_live_at_start.
2027 (bfin_reorder_loops): Pass 0 to cfg_layout_initialize. Call
2028 df_analyze when done.
2029 (gen_one_bundle): Don't generate SEQUENCE insns, just put modes on
2030 the insns. Use QImode for the final insn in a bundle. Call
2031 df_insn_rescan on generated NOPs; use gen_forced_nop instead of
2033 (reorder_var_tracking_notes): New function.
2034 (bfin_reorg): Pass no argument to split_all_insns. Don't call
2035 update_life_info. Call df_analyze after scheduling and bundle
2036 generation. Call reorder_var_tracking_notes if generating these notes.
2037 Call df_finish_pass at the end.
2039 2007-06-12 Dirk Mueller <dmueller@suse.de>
2041 * optabs.c (debug_optab_libfuncs): fix gcc_assert to
2042 a comparison, not an assignment.
2044 2007-06-12 Olivier Hainque <hainque@adacore.com>
2046 * tree-nested.c (convert_local_reference): Handle VIEW_CONVERT_EXPR.
2047 Request walking the subtrees only, leaving the current is_lhs/val_only
2049 (convert_non_local_reference): Likewise.
2051 2007-06-12 Nathan Sidwell <nathan@codesourcery.com>
2053 * config/m68k/m68k-devices.def (52221, 52223, 5253): New.
2055 2007-06-12 Richard Guenther <rguenther@suse.de>
2057 PR tree-optimization/15353
2058 PR tree-optimization/31657
2059 * passes.c (init_optimization_passes): Add pass_tree_ifcombine.
2060 * timevar.def: Add TV_TREE_IFCOMBINE.
2061 * tree-pass.h (pass_tree_ifcombine): Declare.
2062 * tree-ssa-ifcombine.c: New file.
2063 * tree-ssa-phiopt.c (blocks_in_phiopt_order): Export.
2064 * tree-flow.h (blocks_in_phiopt_order): Declare.
2065 * Makefile.in (OBJS-common): Add tree-ssa-ifcombine.o.
2066 (tree-ssa-ifcombine.o): New dependencies.
2068 2007-06-12 Uros Bizjak <ubizjak@gmail.com>
2070 PR rtl-optimization/32293
2071 * combine.c (simplify_if_then_else): Truncate return from
2072 nonzero_bits() to correct mode.
2074 2007-06-12 Uros Bizjak <ubizjak@gmail.com>
2076 * fold-const (fold_binary) [RDIV_EXPR]: Also optimize a/cbrt(b/c)
2077 into a*cbrt(c/b) if flag_unsafe_math_optimizations is set.
2079 2007-06-11 Diego Novillo <dnovillo@google.com>
2081 * Makefile.in (reload1.o-warn): Remove.
2083 2007-06-11 Seongbae Park <seongbae.park@gmail.com>
2085 * combine.c (subst): Use reg_overlap_mentioned_p
2086 instead of comparing register numbers directly.
2088 2007-06-11 Kenneth Zadeck <zadeck@naturalbridge.com>
2090 * reload1.c (mark_home_live_1): Use the mode parameter.
2092 2007-06-11 Kenneth Zadeck <zadeck@naturalbridge.com>
2094 * df-scan.c (df_insn_delete, df_insn_rescan, df_insn_rescan_all,
2095 df_process_deferred_rescans, df_notes_rescan): Fixed spelling of
2099 2007-06-11 Daniel Berlin <dberlin@dberlin.org>
2101 * Merge dataflow-branch into mainline (see ChangeLog.dataflow)
2103 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
2105 * config/i386/i386.md ("*movtf_internal): Penalize moves to and
2106 from integer registers.
2107 (FP mode splitters): Handle TFmode.
2109 2007-06-11 Eric Botcazou <ebotcazou@adacore.com>
2111 * tree-ssa-structalias.c (find_what_p_points_to): Return false
2112 for ref-all pointers that point-to anything.
2114 2007-06-11 Joseph Myers <joseph@codesourcery.com>
2116 * config/arm/arm.c (arm_output_dwarf_dtprel,
2117 TARGET_ASM_OUTPUT_DWARF_DTPREL): New.
2119 2007-06-11 Bernd Schmidt <bernd.schmidt@analog.com>
2121 * config/bfin/bfin.md (movdi_insn, movsi_insn, movv2hi_insn,
2122 movhi_insn, movqi_insn, movsf_insn, movdf_insn): Don't allow constant
2125 2007-06-11 Rafael Avila de Espindola <espindola@google.com>
2127 * gcc/tree.c (signed_or_unsigned_type_for): New.
2128 (unsigned_type_for): Use signed_or_unsigned_type_for.
2129 (signed_type_for): Use signed_or_unsigned_type_for.
2130 * gcc/tree.h (signed_or_unsigned_type_for): New.
2131 (get_signed_or_unsigned_type): Remove.
2132 * gcc/fold-const.c (fold_negate_expr): Use signed_type_for instead of
2133 lang_hooks.types.signed_type
2134 (size_diffop): Likewise.
2135 (all_ones_mask_p): Likewise.
2136 (build_range_check): Likewise.
2137 (fold_cond_expr_with_comparison): Likewise.
2138 (fold_cond_expr_with_comparison): Likewise.
2139 (unextend): Likewise.
2140 (extract_muldiv_1): Likewise.
2141 (fold_single_bit_test_into_sign_test): Likewise.
2142 (fold_binary): Likewise.
2143 (fold_ternary): Likewise.
2144 (operand_equal_for_comparison_p): Use signed_or_unsigned_type_for
2145 instead of get_signed_or_unsigned_type.
2146 * gcc/c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
2147 (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
2148 * gcc/expr.c (signed_or_unsigned_type_for): Use
2149 signed_or_unsigned_type_for instead of get_signed_or_unsigned_type.
2150 * gcc/langhooks.c (get_signed_or_unsigned_type): Remove.
2151 (lhd_signed_or_unsigned_type): Remove.
2152 * gcc/langhooks.h (lang_hooks_for_types): Remove signed_type and
2153 signed_or_unsigned_type.
2154 (lhd_signed_or_unsigned_type): Remove.
2155 * gcc/expmed.c (make_tree): Use signed_type_for instead of
2156 lang_hooks.types.signed_type.
2157 * gcc/c-common.c (same_scalar_type_ignoring_signedness): Use
2158 c_common_signed_type instead of lang_hooks.types.signed_type.
2159 (c_common_unsigned_type): New.
2160 (c_common_signed_type): Just call c_common_signed_or_unsigned_type.
2161 (shorten_compare): Use c_common_unsigned_type instead of
2162 c_common_signed_or_unsigned_type.
2163 (c_common_nodes_and_builtins): Use c_common_unsigned_type instead of
2165 * gcc/convert.c (convert_to_integer): Use signed_type_for instead of
2166 lang_hooks.types.signed_type.
2167 * gcc/langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
2168 (LANG_HOOK_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_SIGNED_TYPE and
2169 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE.
2170 * gcc/c-format.c (check_format_types): Use c_common_unsigned_type
2171 instead of unsigned_type_for.
2172 * gcc/c-decl.c (groakdeclarator): Likewise.
2173 * gcc/c-typeck.c (convert_for_assignment): Likewise.
2174 * gcc/c-common.h (c_common_unsigned_type): New.
2176 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
2179 * config/i386/sse.md ("sse2_ashlti", "sse2_lshrti3"): Move ...
2180 * config/i386/i386.md ("sse2_ashlti", "sse2_lshrti3"): ... to here.
2182 2007-06-11 Uros Bizjak <ubizjak@gmail.com>
2185 * fold-const (fold_binary) [RDIV_EXPR]: Optimize a/sqrt(b/c)
2186 into a*sqrt(c/b) if flag_unsafe_math_optimizations is set.
2188 2007-06-10 Jan Sjodin <jan.sjodin@amd.com>
2189 Sebastian Pop <sebpop@gmail.com>
2191 * lambda-code.c (remove_iv): New.
2192 (lambda_loopnest_to_gcc_loopnest): Use remove_iv.
2194 2007-06-10 Zdenek Dvorak <dvorakz@suse.cz>
2196 * tree-data-ref.c (dr_analyze_alias): Handle case smt is NULL.
2197 * tree-predcom.c (mark_virtual_ops_for_renaming): Exported.
2198 * tree-ssa-loop-prefetch.c: Include optabs.h.
2199 (FENCE_FOLLOWING_MOVNT): New macro.
2200 (struct mem_ref): Add independent_p and storent_p fields.
2201 (record_ref): Initalize the new fields.
2202 (gather_memory_references_ref): Return true if the reference
2204 (gather_memory_references): Check whether all memory accesses
2205 in loop were recorded.
2206 (should_issue_prefetch_p): Return false for nontemporal stores.
2207 (nontemporal_store_p, mark_nontemporal_store, emit_mfence_after_loop,
2208 may_use_storent_in_loop_p, mark_nontemporal_stores): New functions.
2209 (determine_loop_nest_reuse): Detect independent memory references.
2210 (loop_prefetch_arrays): Call mark_nontemporal_stores.
2211 * tree-flow.h (mark_virtual_ops_for_renaming): Declare.
2212 * Makefile.in (tree-ssa-loop-prefetch.o): Add OPTABS_H dependency.
2213 * config/i386/i386.h (x86_mfence): Declare.
2214 (FENCE_FOLLOWING_MOVNT): Return x86_mfence.
2215 * config/i386/i386.c (x86_mfence): New variable.
2216 (ix86_init_mmx_sse_builtins): Initialize x86_mfence.
2218 * tree-pretty-print.c (dump_generic_node): Mark nontemporal stores.
2219 * optabs.c (init_optabs): Initialize storent_optab.
2220 * optabs.h (enum optab_index): Add OTI_storent.
2221 (storent_optab): Declare.
2222 * genopinit.c (optabs): Add initialization for storent_optab.
2223 * tree.h (MOVE_NONTEMPORAL): New macro.
2224 * expr.c (expand_assignment, store_expr, store_constructor_field,
2225 store_constructor, store_field, expand_expr_real_1): Propagate
2226 nontemporality of the expanded store.
2227 (emit_storent_insn): New function.
2228 * expr.h (expand_assignment, store_expr): Declaration changed.
2229 * function.c (assign_parm_setup_reg): Pass false as nontemporality
2230 to expand_assignment.
2231 * stmt.c (expand_asm_expr): Ditto.
2232 * calls.c (initialize_argument_information): Pass false as
2233 nontemporality to store_expr.
2234 * config/i386/sse.md (storentv4sf, storentv2df, storentv2di,
2237 2007-06-09 Daniel Berlin <dberlin@dberlin.org>
2239 * tree-ssa-structalias.c (set_uids_in_ptset): Add is_deref'd
2241 (find_what_p_points_to): Pass new parameter to set_uids_in_ptset.
2243 2007-06-09 Daniel Berlin <dberlin@dberlin.org>
2245 * tree-data-ref.c (dr_may_alias_p): Check that decl_a != decl_b,
2246 and allow DECL_P here.
2248 2007-06-09 Zdenek Dvorak <dvorakz@suse.cz>
2250 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs,
2251 follow_ssa_edge_in_condition_phi, follow_ssa_edge): Keep more precise
2252 track of the size of the expression.
2253 * cfghooks.c (merge_blocks): Remove block from loops structure only
2254 after call of the merge_blocks hook.
2256 2007-06-09 Tom Tromey <tromey@redhat.com>
2258 * c-decl.c (grokdeclarator): Added 'deprecated_state' argument.
2259 (deprecated_state): Removed.
2260 (start_decl): Update.
2261 (enum deprecated_states): Moved earlier.
2262 (groktypename): Update.
2263 (push_parm_decl): Likewise.
2264 (grokfield): Likewise.
2265 (start_function): Likewise.
2267 2007-06-09 Ian Lance Taylor <iant@google.com>
2269 PR tree-optimization/32169
2270 * tree-vrp.c (extract_range_from_unary_expr): For NOP_EXPR and
2271 CONVERT_EXPR, check whether min and max both converted to an
2272 overflow infinity representation.
2274 2007-06-08 Eric Botcazou <ebotcazou@adacore.com>
2276 * reload1.c (fixup_abnormal_edges): Clear bb field for insns
2277 not inserted on the edge.
2279 2007-06-08 Bob Wilson <bob.wilson@acm.org>
2281 * config/xtensa/lib1funcs.asm (__udivsi3): Use hardware divide
2282 instructions if they are supported.
2283 (__divsi3, __umodsi3, __modsi3): Likewise.
2284 (__ashldi3, __ashrdi3, __lshrdi3): New.
2285 * config/xtensa/t-xtensa (LIB1ASMFUNCS): Add DImode shift functions.
2287 2007-06-08 Harsha Jagasia <harsha.jagasia@amd.com>
2288 Tony Linthicum <tony.linthicum@amd.com>
2290 * doc/extend.texi: Add fvect-cost-model flag.
2291 * common.opt (fvect-cost-model): New flag.
2292 * tree-vectorizer.c (new_stmt_vec_info): Initialize inside and outside
2293 cost fields in stmt_vec_info struct for STMT.
2294 * tree-vectorizer.h (stmt_vec_info): Define inside and outside cost
2295 fields in stmt_vec_info struct and access functions for the same.
2296 (TARG_COND_BRANCH_COST): Define cost of conditional branch.
2297 (TARG_VEC_STMT_COST): Define cost of any vector operation, excluding
2298 load, store and vector to scalar operation.
2299 (TARG_VEC_TO_SCALAR_COST): Define cost of vector to scalar operation.
2300 (TARG_VEC_LOAD_COST): Define cost of aligned vector load.
2301 (TARG_VEC_UNALIGNED_LOAD_COST): Define cost of misasligned vector load.
2302 (TARG_VEC_STORE_COST): Define cost of vector store.
2303 (vect_estimate_min_profitable_iters): Define new function.
2304 * tree-vect-analyze.c (vect_analyze_operations): Add a compile-time
2305 check to evaluate if loop iterations are less than minimum profitable
2306 iterations determined by cost model or minimum vect loop bound defined
2307 by user, whichever is more conservative.
2308 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Add a
2309 run-time check to evaluate if loop iterations are less than minimum
2310 profitable iterations determined by cost model or minimum vect loop
2311 bound defined by user, whichever is more conservative.
2312 (vect_estimate_min_profitable_iterations): New function to estimate
2313 mimimimum iterartions required for vector version of loop to be
2314 profitable over scalar version.
2315 (vect_model_reduction_cost): New function.
2316 (vect_model_induction_cost): New function.
2317 (vect_model_simple_cost): New function.
2318 (vect_cost_strided_group_size): New function.
2319 (vect_model_store_cost): New function.
2320 (vect_model_load_cost): New function.
2321 (vectorizable_reduction): Call vect_model_reduction_cost during
2323 (vectorizable_induction): Call vect_model_induction_cost during
2325 (vectorizable_load): Call vect_model_load_cost during analysis phase.
2326 (vectorizable_store): Call vect_model_store_cost during analysis phase.
2327 (vectorizable_call, vectorizable_assignment, vectorizable_operation,
2328 vectorizable_promotion, vectorizable_demotion): Call
2329 vect_model_simple_cost during analysis phase.
2331 2007-06-08 Simon Baldwin <simonb@google.com>
2333 * reg-stack.c (get_true_reg): Readability change. Moved default case
2334 label into direct switch statement scope.
2336 2007-06-08 Simon Baldwin <simonb@google.com>
2338 * tree-flow-inline.h (var_ann): Replaced erroneous '=' assignment
2339 in gcc_assert() with '==' comparison.
2341 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
2343 * config/i386/i386.c (override_options): Merge TARGET_SSE4_2 and
2344 TARGET_ABM handling of x86_popcnt variable.
2346 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
2348 * doc/extend.texi (X86 Built-in Functions): Document __builtin_fabsq,
2349 __builtin_copysignq and __builtin_infq built-in functions.
2351 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
2353 * doc/extend.texi (X86 Built-in Functions): Add missing `@item's in
2354 SSE4.2 section. Correct built-in function names in SSE4A section.
2356 2007-06-08 Uros Bizjak <ubizjak@gmail.com>
2358 PR tree-optimization/32243
2359 * tree-vect-transform.c (vectorizable_type_promotion): Move check
2360 for ncopies after ratio check between nunits_out and nunits_in.
2361 (vectorizable_type_demotion): Remove single-use variable "scalar_type".
2363 2007-06-08 Dorit Nuzman <dorit@il.ibm.com>
2365 PR tree-optimization/32224
2366 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fail
2367 vectorization upon a non GIMPLE_MODIFY_STMT.
2369 2007-06-08 Christian Bruel <christian.bruel@st.com>
2372 * config/sh/sh.md (doloop_end): New pattern and splitter.
2373 * loop-iv.c (simple_rhs_p): Check for hardware registers.
2375 2007-06-08 Zdenek Dvorak <dvorakz@suse.cz>
2378 * dominance.c (debug_dominance_tree, debug_dominance_tree_1): New
2380 (verify_dominators): Do not change dominance tree.
2382 2007-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
2384 * config/sh/constraints.md: New file.
2385 * config/sh/sh.c: Include tm-constrs.h.
2386 (reg_class_from_letter): Remove.
2387 (prepare_cbranch_operands): Use satisfies_constraint_*
2388 function instead of macro.
2389 (andcosts, broken_move, sh_secondary_reload): Likewise.
2390 * config/sh/predicates.md (trapping_target_operand): Likewise.
2391 (and_operand, arith_operand, arith_reg_or_0_operand,
2392 cmp_operand, logical_operand, target_operand,
2393 ua_address_operand, ua_offset, xor_operand): Likewise.
2394 * config/sh/sh.md: Include constraints.md.
2395 (*movsicc_t_false): Use satisfies_constraint_* function
2397 (*movsicc_t_true, ashlsi3_std, ashlhi3_k, lshrsi3_m,
2398 lshrsi3_k, movsi_const_16bit+2, *movhi_media+1,
2399 movdi_const_16bit+1, beq, bne, *ptb): Likewise.
2400 * config/sh/sh.h (reg_class_from_letter): Remove prototype.
2401 (OVERRIDE_OPTIONS): Don't modify reg_class_from_letter.
2402 (REG_CLASS_FROM_CONSTRAINT): Remove.
2403 (CONSTRAINT_LEN, CONST_OK_FOR_I20, CONST_OK_FOR_I,
2404 CONST_OK_FOR_J, CONST_OK_FOR_K16, CONST_OK_FOR_K,
2405 CONST_OK_FOR_P27, CONST_OK_FOR_P, CONST_OK_FOR_M,
2406 CONST_OK_FOR_N, CONST_OK_FOR_CONSTRAINT_P,
2407 CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
2408 (SECONDARY_INOUT_RELOAD_CLASS): Use satisfies_constraint_*
2409 function instead of macro.
2410 (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
2411 (EXTRA_CONSTRAINT_Q, EXTRA_CONSTRAINT_A,
2412 EXTRA_CONSTRAINT_Bsc, EXTRA_CONSTRAINT_B,
2413 EXTRA_CONSTRAINT_Css, EXTRA_CONSTRAINT_Csu): Remove.
2414 (IS_PC_RELATIVE_LOAD_ADDR_P): New macro.
2415 (IS_LITERAL_OR_SYMBOLIC_S16_P): Likewise.
2416 (IS_LITERAL_OR_SYMBOLIC_U16_P): Likewise.
2417 (IS_NON_EXPLICIT_CONSTANT_P): Likewise.
2418 (EXTRA_CONSTRAINT_Csy, EXTRA_CONSTRAINT_Z, EXTRA_CONSTRAINT_W,
2419 EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C,
2420 EXTRA_MEMORY_CONSTRAINT, EXTRA_CONSTRAINT_Sr0,
2421 EXTRA_CONSTRAINT_Sua, EXTRA_CONSTRAINT_S,
2422 EXTRA_CONSTRAINT_STR): Likewise.
2423 (GO_IF_LEGITIMATE_INDEX): Fix indentation.
2425 2007-06-07 Geoffrey Keating <geoffk@apple.com>
2427 * config/i386/darwin.h (STACK_BOUNDARY): Define.
2429 2007-06-07 Simon Martin <simartin@users.sourceforge.net>
2432 * c-common.h (flag_cpp0x): Replaced by...
2433 (cxx_dialect): ... this new variable specifying the C++ dialect that
2435 * c-common.c (flag_cpp0x): Removed.
2436 (cxx_dialect): Defined.
2437 * c-cppbuiltin.c (c_cpp_builtins): flag_cpp0x rewritten in terms of
2439 * c-opts.c (c_common_post_options): Likewise.
2440 (set_std_cxx98): Set cxx_dialect to cxx98.
2441 (set_std_cxx0x): Set cxx_dialect to cxx0x.
2443 2007-06-07 Geoffrey Keating <geoffk@apple.com>
2444 Hui-May Chang <hm.chang@apple.com>
2446 * doc/invoke.texi (Darwin Options): Update documentation for
2447 -mmacosx-version-min.
2448 * config.gcc (*-*-darwin*): Set extra_gcc_objs.
2449 * config/darwin-driver.c: New file.
2450 * config/darwin.h (GCC_DRIVER_HOST_INITIALIZATION): New.
2451 * config/t-darwin (darwin-driver.o): New rule.
2453 * config/darwin-c.c (version_as_macro): Ignore low digit.
2455 2007-06-07 Uros Bizjak <ubizjak@gmail.com>
2457 * config/i386/i386.md (standard sse constant splitter): Handle TFmode.
2458 (negtf2, abstf2, *absnegtf2_sse): New insn patterns.
2459 (CSGNMODE): New mode macro.
2460 (CSGNVMODE): New mode attribute.
2461 (copysign<mode>3): Rename from copysingsf3 and copysigndf3. Macroize
2462 expander using CSGNMODE mode macro. Handle TFmode.
2463 (copysign<mode>3_const): Rename from copysignsf3_const and
2464 copysigndf3_const. Macroize pattern using CSGNMODE mode macro.
2466 (copysign<mode>3_var): Rename from copysignsf3_var and
2467 copysigndf3_var. Macroize pattern using CSGNMODE mode macro.
2469 (copysign<mode>3_var splitter): Macroize pattern using CSGNMODE
2470 mode macro. Handle TFmode.
2471 * config/i386/sse.md (andtf3, *andtf3, *nandtf3): New insn patterns.
2472 (iortf3, *iortf3): Ditto.
2473 (xortf3, *xortf3): Ditto.
2474 * config/i386/i386.c (ix86_build_signbit_mask): Create scalar
2475 TFmode and TImode masks.
2476 (ix86_expand_copysign): Expand TFmode copysign insn.
2477 (IX86_BUILTIN_INFQ): New.
2478 (IX86_BUILTIN_FABSQ): Ditto.
2479 (IX86_BUILTIN_COPYSIGNQ): Ditto.
2480 (ix86_init_mmx_sse_builtins) [__builtin_infq]: New builtin definition.
2481 [__builtin_fabsq]: Ditto.
2482 [__builtin_copysignq]: Ditto.
2483 (ix86_expand_builtin) [IX86_BUILTIN_INFQ]: Expand builtin.
2484 [IX86_BUILTIN_FABSQ]: Expand builtin using ix86_expand_unop_builtin().
2485 [IX86_BUILTIN_COPYSIGNQ]: Expand builtin using
2486 ix86_expand_binop_builtin().
2488 2007-06-07 Bob Wilson <bob.wilson@acm.org>
2490 * config/xtensa/lib1funcs.asm: Clean up whitespace.
2492 2007-06-07 Steve Ellcey <sje@cup.hp.com>
2495 * rtl.h (push_to_sequence2): New.
2496 * emit-rtl.c (push_to_sequence2): New.
2497 * function.c (assign_parm_data_all): Add new fields.
2498 (assign_parm_setup_block): Call push_to_sequence2 instead of
2500 (assign_parm_setup_reg): Ditto.
2501 (assign_parm_setup_stack): Ditto.
2502 (assign_parms_unsplit_complex): Ditto.
2503 (assign_parms): Change field name.
2505 2007-06-07 Zdenek Dvorak <dvorakz@suse.cz>
2507 PR tree-optimization/32220
2508 * tree-predcom.c (eliminate_temp_copies): Handle the case that loop
2509 phi node is reached before defining statement.
2511 2007-06-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
2514 * tree-vect-transform.c (vectorizable_call): Call update_stmt
2515 after changing the right hand side of the assignment.
2517 2007-06-06 Eric Christopher <echristo@apple.com>
2519 * config.gcc (i?86-*-darwin*): Remove arch parameter.
2520 (x86_64-*-darwin*): Ditto.
2521 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Define.
2522 (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
2524 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
2526 * tree-ssa-alias-warnings.c (maybe_add_match): Cast according to the
2528 (add_key): Likewise.
2529 * tree-ssa.c (init_tree_ssa): Use type safe memory macros.
2530 * tree-ssa-ccp.c (ccp_fold_builtin): Avoid using C++ keywords as
2532 * tree-ssa-coalesce.c (find_coalesce_pair): Use type safe memory macros.
2533 (add_cost_one_coalesce): Likewise.
2534 * tree-ssa-copy.c (merge_alias_info): Avoid using C++ keywords as
2535 variable names. Rename orig to orig_name for consistency.
2536 * tree-ssa-dom.c (dom_thread_across_edge): Cast according to the coding
2538 (cprop_into_successor_phis): Avoid using C++ keywords as variable names.
2539 (record_equivalences_from_stmt): Likewise.
2540 * tree-ssa-dse.c (dse_initialize_block_local_data): Cast according to
2541 the coding conventions.
2542 (memory_ssa_name_same): Likewise.
2543 (dse_optimize_stmt): Likewise.
2544 (dse_record_phis): Likewise.
2545 (dse_finalize_block): Likewise.
2546 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Avoid using C++
2547 keywords as variable names.
2548 (may_move_till): Cast according to the coding conventions.
2549 (force_move_till_expr): Avoid using C++ keywords as variable names.
2550 (force_move_till): Cast according to the coding conventions.
2551 (memref_hash): Likewise.
2552 (memref_eq): Likewise.
2553 (gather_mem_refs_stmt): Likewise.
2554 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Avoid using C++
2555 keywords as variable names.
2556 (idx_find_step): Cast according to the coding conventions.
2557 (idx_record_use): Likewise.
2558 (find_depends): Likewise.
2559 (prepare_decl_rtl): Likewise.
2560 (mbc_entry_hash): Likewise.
2561 (mbc_entry_eq): Likewise.
2562 * tree-ssa-loop-niter.c (SWAP): Use the correct the type for tmp.
2563 (simplify_replace_tree): Avoid using C++ keywords as variable names.
2564 (idx_infer_loop_bounds): Cast according to the coding conventions.
2565 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
2566 * tree-ssa-math-opts.c (occ_new ): Likwise.
2567 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Use type safe memory
2569 * tree-ssa-operands.c (add_def_op): Avoid using C++ keywords as variable
2571 (add_use_op): Likewise.
2572 (add_vop): Likewise.
2573 (add_vuse_op): Likewise.
2574 (add_vdef_op): Likewise.
2575 (get_expr_operands): Likewise.
2576 (push_stmt_changes): Use type safe memory macros.
2577 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Avoid using C++
2578 keywords as variable names.
2579 (conditional_replacement): Likewise.
2580 (minmax_replacement): Likewise.
2581 (abs_replacement): Likewise.
2582 * tree-ssa-pre.c (create_expression_by_pieces): Cast according to the
2584 (insert_fake_stores): Avoid using C++ keywords as variable names.
2585 * tree-ssa-reassoc.c (add_to_ops_vec): Cast according to the coding
2587 * tree-ssa-structalias.c (heapvar_lookup): Likewise.
2588 (heapvar_insert): Use type safe memory macros.
2589 (new_var_info): Cast according to the coding conventions.
2590 (new_constraint): Likewise.
2591 (remove_preds_and_fake_succs): Use type safe memory macros.
2592 * tree-ssa-threadupdate.c (thread_block): Cast according to the coding
2594 (thread_single_edge): Likewise.
2595 (thread_through_loop_header): Likewise.
2597 2007-06-06 Eric Christopher <echristo@apple.com>
2599 * config/i386/i386.c (override_options): Move handling
2600 of TARGET_SUBTARGET* earlier.
2602 2007-06-06 Paolo Bonzini <bonzini@gnu.org>
2604 * genmodes.c (tagged_printf, emit_insn_modes_h): Don't
2607 2007-06-06 Zdenek Dvorak <dvorakz@suse.cz>
2609 * haifa-sched.c (restore_bb_notes): Clear bb field of the notes
2610 emited outside of basic block.
2611 * cfgbuild.c (find_bb_boundaries): Clear bb field for insns between
2613 * rtl.h (delete_insn_chain): Declaration changed.
2614 * cfgrtl.c (delete_insn_chain): Add option to clear bb field for
2616 (rtl_delete_block, rtl_merge_blocks): Pass true to delete_insn_chain.
2617 (delete_insn_chain_and_edges, try_redirect_by_replacing_jump,
2618 rtl_tidy_fallthru_edge, cfg_layout_merge_blocks): Pass false
2619 to delete_insn_chain.
2620 (rtl_verify_flow_info_1): Verify that the insns in header and footer
2621 do not have bb field set.
2622 (rtl_verify_flow_info): Verify that insns between basic blocks do not
2624 * recog.c (peephole2_optimize): Add argument to delete_insn_chain call.
2625 * cfgcleanup.c (try_optimize_cfg): Ditto.
2627 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
2629 * lambda-code.c (struct lambda_lattice_s): Add a name to the struct.
2630 (lambda_body_vector_new): Use type safe memory macros.
2631 (lambda_linear_expression_new): Likewise.
2632 (lambda_loopnest_new): Likewise.
2633 (lambda_lattice_new): Likewise.
2634 (replace_uses_equiv_to_x_with_y): Cast according to the coding
2635 conventions. Use type safe memory macros.
2636 * lambda.h (struct lambda_trans_matrix_s): Add a name to the struct.
2637 (lambda_body_vector_s): Likewise.
2638 * lambda-mat.c (lambda_matrix_new): Use type safe memory macros.
2639 * lambda-trans.c (lambda_trans_matrix_new): Likewise.
2641 2007-06-06 Richard Guenther <rguenther@suse.de>
2643 * tree-ssa-forwprop.c (forward_propagate_into_cond): Return 2
2644 if we need to schedule cfg_cleanup.
2645 (tree_ssa_forward_propagate_single_use_vars): Do so.
2647 2007-06-06 Ian Lance Taylor <iant@google.com>
2649 * fold-const.c (merge_ranges): If range_successor or
2650 range_predecessor fail, just return 0.
2652 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
2654 PR tree-optimization/32216
2655 * tree-vectorizer.c (supportable_widening_operation): Determine
2656 signedness of FIX_TRUNC_EXPR from output operand.
2657 (supportable_narrowing_operation): Ditto.
2658 * tree-vect-generic.c (expand_vector_operations_1): Determine
2659 signedness of VEC_UNPACK_FLOAT_HI_EXPR and VEC_UNPACK_FLOAT_LO_EXPR
2662 2007-06-06 Thomas Neumann <tneumann@users.sourceforge.net>
2664 * config/i386/i386.c (enum pta_flags): Move out of struct scope...
2665 (struct pta): ...from here. Change flags to unsigned to avoid
2666 excessive casting (as it is used as a bit mask).
2667 (override_options): Add casts according to the coding convenventions.
2668 (x86_64_elf_unique_section): Likewise.
2669 (examine_argument): Avoid using C++ keywords as variable names.
2670 (construct_container): Likewise.
2671 (legitimize_pic_address): Likewise.
2672 (get_dllimport_decl): Cast according to the coding conventions. Use
2673 type safe memory macros.
2674 (legitimize_address): Cast according to the coding conventions.
2675 (emit_i387_cw_initialization): Corrected the type of slot to enum
2677 (ix86_init_machine_status): Use type safe memory macros.
2678 (bdesc_pcmpestr): Use UNKNOWN instead of integer 0.
2679 (bdesc_pcmpistr): Likewise.
2680 (bdesc_crc32): Likewise.
2681 (bdesc_sse_3arg): Likewise.
2682 (bdesc_2arg): Likewise.
2683 (bdesc_1arg): Likewise.
2684 (ix86_expand_sse_pcmpestr): Cast according to the coding conventions.
2685 (ix86_expand_sse_pcmpistr): Likewise.
2686 (ix86_expand_vec_set_builtin): Use EXPAND_NORMAL instead of integer 0.
2687 (ix86_builtin_vectorized_function): Change the type of fn to unsigned
2688 int to match the langhook definition.
2689 (ix86_builtin_conversion): Change the type of code to unsigned init to
2690 match the langhook definition.
2691 (ix86_preferred_reload_class): Avoid using C++ keywords as variable
2693 (ix86_preferred_output_reload_class): Likewise.
2694 (ix86_cannot_change_mode_class): Likewise.
2695 (ix86_memory_move_cost): Likewise.
2696 (ix86_rtx_costs): Cast the outer_code parameter to enum rtx_code to
2697 avoid excessive casting later on.
2698 (x86_output_mi_thunk): Avoid using C++ keywords as variable names.
2700 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
2702 * config/i386/sse.md (sse4_2_pcmpestr_cconly): Prefer pcmpestrm
2703 as flags setting insn.
2704 (sse4_2_pcmpistr_cconly): Prefer pcmpistrm as flags setting insn.
2706 2007-06-06 Uros Bizjak <ubizjak@gmail.com>
2708 * config/i386/i386.md (UNSPEC_ROUNDP, UNSPEC_ROUNDS): Remove.
2709 (UNSPEC_ROUND): New.
2710 ("sse4_1_round<mode>2"): New insn pattern.
2711 ("rint<mode>2"): Expand using "sse4_1_round<mode>2" pattern for
2713 ("floor<mode>2"): Rename from floordf2 and floorsf2. Macroize
2714 expander using SSEMODEF mode macro. Expand using
2715 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
2716 ("ceil<mode>2"): Rename from ceildf2 and ceilsf2. Macroize
2717 expander using SSEMODEF mode macro. Expand using
2718 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
2719 ("btrunc<mode>2"): Rename from btruncdf2 and btruncsf2. Macroize
2720 expander using SSEMODEF mode macro. Expand using
2721 "sse4_1_round<mode>2" pattern for SSE4.1 targets.
2722 * config/i386/sse.md ("sse4_1_roundpd", "sse4_1_roundps"): Use
2723 UNSPEC_ROUND instead of UNSPEC_ROUNDP.
2724 ("sse4_1_roundsd", "sse4_1_roundss"): Use UNSPEC_ROUND instead of
2727 2007-06-06 Jan Sjodin <jan.sjodin@amd.com>
2728 Sebastian Pop <sebpop@gmail.com>
2730 * lambda.h (build_linear_expr): New.
2731 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression):
2732 Use build_linear_expr, call fold and force_gimple_operand.
2733 (lambda_loopnest_to_gcc_loopnest): Check that there is
2734 something to insert.
2735 * testsuite/gcc.dg/tree-ssa/ltrans-6.c: New.
2737 2007-06-05 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
2739 PR preprocessor/23479
2740 * doc/extend.texi: Document the 0b-prefixed binary integer
2743 2007-06-05 Uros Bizjak <ubizjak@gmail.com>
2745 PR tree-optimization/32215
2746 * tree-vectorizer.c (supportable_widening_operation): Return false
2747 for unsupported FIX_TRUNC_EXPR tree code.
2748 (supportable_narrowing_operation): Ditto for FLOAT_EXPR tree code.
2750 2007-06-06 Nathan Froyd <froydnj@codesourcery.com>
2752 * config/rs6000/rs6000.h (FIXED_SCRATCH): Use r0 as a scratch
2753 register on SPE targets. Change documentation to reflect
2755 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
2756 Change FIXED_SCRATCH to 14 and document why we're keeping r14
2757 out of the register allocation pool.
2758 (rs6000_reg_live_or_pic_offset_p): New function.
2759 (rs6000_emit_prologue): Move the actual saving of LR up to free
2760 r0 for holding r11. Split saving of SPE 64-bit registers into
2761 its own case. Ensure that offsets will always be in-range for
2762 'evstdd' by using r11 as a scratch register to point at the start
2763 of the SPE save area. Save r11 if necessary, as it is the static
2765 (rs6000_emit_epilogue): Split restoring of SPE 64-bit registers
2766 into its own case. Ensure that offsets will always be in-range
2767 for 'evldd' by using r11 as a scratch register to point at the
2768 start of the SPE save area. Also adjust r11 when restoring
2769 the stack pointer to compensate for pre-loading r11.
2771 2007-06-05 Thomas Neumann <tneumann@users.sourceforge.net>
2773 * cfg.c (init_flow): Use type safe memory macros.
2774 (alloc_block): Likewise.
2775 (unchecked_make_edge): Likewise.
2776 (dump_flow_info): Avoid using C++ keywords as variable names.
2777 (copy_original_table_clear): Cast according to the coding conventions.
2778 (copy_original_table_set): Likewise.
2779 * cfgexpand (label_rtx_for_bb): Likewise.
2780 (expand_gimple_basic_block): Likewise.
2781 * cfghooks.c (dump_bb): Likewise.
2782 (lv_adjust_loop_header_phi): Avoid using C++ keywords as
2784 (lv_add_condition_to_bb): Likewise.
2785 * cfglayout (relink_block_chain): Cast according to the coding
2787 (fixup_reorder_chain): Likewise.
2788 (fixup_fallthru_exit_predecessor): Likewise.
2789 * cfgloop.c (glb_enum_p): Likewise.
2790 (get_exit_description): Likewise.
2791 (dump_recorded_exit): Likewise.
2792 * cfgloop.h (enum loop_estimation): Move out of struct scope...
2793 (struct loop): ... from here.
2794 * cfgloopmanip.c (rpe_enum_p): Cast according to the coding
2796 * cfgrtl.c (rtl_create_basic_block): Likewise.
2797 (rtl_split_block): Likewise.
2798 (rtl_dump_bb): Likewise.
2799 (cfg_layout_split_block): Likewise.
2800 (init_rtl_bb_info): Use typesafe memory macros.
2802 * graphds.h (struct graph_edge): Renamed edge to graph_edge.
2803 * graphds.h: Updated all usages of edge to graph_edge.
2804 * graphds.c: Likewise.
2805 * cfgloopanal.c: Likewise.
2807 2007-06-05 Ian Lance Taylor <iant@google.com>
2809 * tree-vrp.c (compare_values_warnv): Check TREE_NO_WARNING on a
2810 PLUS_EXPR or MINUS_EXPR node before setting *strict_overflow_p.
2811 (extract_range_from_assert): Set TREE_NO_WARNING when creating an
2813 (test_for_singularity): Likewise.
2815 2007-06-05 H.J. Lu <hongjiu.lu@intel.com>
2817 * config/i386/constraints.md ("Y2"): Replaced by ...
2819 * config/i386/i386.md: Likewise.
2820 * config/i386/mmx.md: Likewise.
2821 * config/i386/sse.md: Likewise.
2823 2007-06-05 H.J. Lu <hongjiu.lu@intel.com>
2825 * config/i386/constraints.md ("z"): Replaced by ...
2827 * config/i386/sse.md (sse4_1_blendvpd): Likewise.
2828 (sse4_1_blendvps): Likewise.
2829 (sse4_1_pblendvb): Likewise.
2830 (sse4_2_pcmpestr): Likewise.
2831 (sse4_2_pcmpestrm): Likewise.
2832 (sse4_2_pcmpestr_cconly): Likewise.
2833 (sse4_2_pcmpistr): Likewise.
2834 (sse4_2_pcmpistrm): Likewise.
2835 (sse4_2_pcmpistr_cconly): Likewise.
2837 2007-06-05 Razya Ladelsky <razya@il.ibm.com>
2839 * matrix-reorg.c (transform_access_sites): Fix computation.
2840 (transform_allocation_sites): Same.
2842 2007-06-05 Uros Bizjak <ubizjak@gmail.com>
2844 * config/i386/i386.c (override_options): Use
2845 TARGET_SUBTARGET32_ISA_DEFAULT to select default ix86_isa_flags.
2847 2007-06-05 Uros Bizjak <ubizjak@gmail.com>
2849 * config/i386/predicates.md (reg_not_xmm0_operand): New predicate.
2850 (nonimm_not_xmm0_operand): Ditto.
2851 * config/i386/sse.md ("sse4_1_blendvpd"): Use "reg_not_xmm0_operand"
2852 as operand[0] and operand[1] predicate. Use "nonimm_not_xmm0_operand"
2853 as operand[2] predicate. Require "z" class XMM register for
2854 operand[3]. Adjust asm template.
2855 ("sse4_1_blendvpd"): Ditto.
2856 ("sse4_1_pblendvb"): Ditto.
2857 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Do not
2858 force op2 into xmm0 register for variable blend instructions.
2860 2007-06-04 Tom Tromey <tromey@redhat.com>
2862 * c-tree.h (start_enum): Update.
2863 (build_enumerator): Likewise.
2864 * c-decl.c (enum_next_value): Removed.
2865 (enum_overflow): Likewise.
2866 (start_enum): Add c_enum_contents argument. Don't use globals.
2867 (build_enumerator): Likewise.
2868 * c-tree.h (struct c_enum_contents): New struct.
2870 2007-06-04 Tom Tromey <tromey@redhat.com>
2872 * c-common.c (c_common_get_alias_set): Fix indentation.
2874 2007-06-04 Ian Lance Taylor <iant@google.com>
2876 * tree-vrp.c (adjust_range_with_scev): When loop is not expected
2877 to overflow, reduce overflow infinity to regular infinity.
2878 (vrp_var_may_overflow): New static function.
2879 (vrp_visit_phi_node): Check vrp_var_may_overflow.
2881 2007-06-04 Kazu Hirata <kazu@codesourcery.com>
2883 * stor-layout.c (layout_type): Remove duplicate code.
2885 2007-06-04 Uros Bizjak <ubizjak@gmail.com>
2888 * gcc/c-common.c (c_define_builtins): Call targetm.init_builtins ()
2889 before build_common_builtin_nodes ().
2891 2007-06-04 Steve Ellcey <sje@cup.hp.com>
2894 * cfgrtl.c (rtl_verify_flow_info): Skip notes when looking for barrier.
2896 2007-06-04 Jan Hubicka <jh@suse.cz>
2898 * tree-predcom.c (replace_ref_with, initialize_root_vars_lm,
2899 reassociate_to_the_same_stmt): Call build_gimple_modify_stmt
2900 instead of _stat version.
2902 2007-06-03 Zdenek Dvorak <dvorakz@suse.cz>
2904 PR tree-optimization/32194
2905 * tree-predcom.c (determine_offset): Check that both references have
2908 2007-06-03 Zdenek Dvorak <dvorakz@suse.cz>
2910 * cfgloopmanip.c (remove_path, loopify, duplicate_loop_to_header_edge):
2911 Change dom_bbs to vector. Add argument to iterate_fix_dominators call.
2912 * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
2913 * tree-cfg.c (tree_duplicate_sese_region): Change doms to vector.
2914 Add argument to iterate_fix_dominators call.
2915 (remove_edge_and_dominated_blocks): Pass vector to bbs_to_fix_dom.
2916 * gcse.c (hoist_code): Change domby to vector.
2917 * cfghooks.c (make_forwarder_block): Change doms_to_fix to vector.
2918 Add argument to iterate_fix_dominators call.
2919 * loop-doloop.c (doloop_modify): Changed recount_dominator to
2920 recompute_dominator.
2921 * lambda-code.c (perfect_nestify): Ditto.
2922 * cfgloopanal.c: Include graphds.h.
2923 (struct edge, struct vertex, struct graph, dump_graph, new_graph,
2924 add_edge, dfs, for_each_edge, free_graph): Moved to graphds.c.
2925 (mark_irreducible_loops): Use graphds_scc. Remove argument from
2927 * graphds.c: New file.
2928 * graphds.h: New file.
2929 * dominance.c: Include vecprim.h, pointer-set.h and graphds.h.
2930 (get_dominated_by, get_dominated_by_region): Change return type to
2932 (verify_dominators): Recompute all dominators and compare the results.
2933 (recount_dominator): Renamed to ...
2934 (recompute_dominator): ... this. Do not check that the block is
2936 (iterate_fix_dominators): Reimplemented.
2937 (prune_bbs_to_update_dominators, root_of_dom_tree,
2938 determine_dominators_for_sons): New functions.
2939 * et-forest.c (et_root): New function.
2940 * et-forest.h (et_root): Declare.
2941 * Makefile.in (graphds.o): Add.
2942 (cfgloopanal.o): Add graphds.h dependency.
2943 (dominance.o): Add graphds.h, vecprim.h and pointer-set.h dependency.
2944 * basic-block.h (get_dominated_by, get_dominated_by_region,
2945 iterate_fix_dominators): Declaration changed.
2946 (recount_dominator): Renamed to ...
2947 (recompute_dominator): ... this.
2948 * tree-ssa-threadupdate.c (thread_block): Free dominance info.
2949 (thread_through_all_blocks): Do not free dominance info.
2951 2007-06-03 Andreas Schwab <schwab@suse.de>
2953 * config/m68k/m68k.c (override_options): Don't override
2955 * config/m68k/m68k-modes.def (SF, DF): Define to use
2956 motorola_single_format and motorola_double_format, resp.
2957 * real.c (motorola_single_format): Renamed from
2958 coldfire_single_format.
2959 (motorola_double_format): Renamed from coldfire_double_format.
2960 (encode_ieee_extended): Generate a proper canonical NaN image
2961 respecting canonical_nan_lsbs_set.
2962 (ieee_extended_motorola_format): Set canonical_nan_lsbs_set to
2964 * real.h: Adjust declarations.
2966 2007-06-03 Kaz Kojima <kkojima@gcc.gnu.org>
2969 * config/sh/sh.md (symGOT_load): Don't schedule insns when
2970 the symbol is generated with the stack protector.
2972 2007-06-03 Kazu Hirata <kazu@codesourcery.com>
2974 * config/m68k/m68k.c (m68k_attribute_table): Add "interrupt".
2975 (m68k_get_function_kind): Return m68k_fk_interrupt_handler on
2977 * doc/extend.texi (interrupt): Mention m68k.
2979 2007-06-02 Uros Bizjak <ubizjak@gmail.com>
2981 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Call
2982 safe_vector_operand() if input operand is VECTOR_MODE_P operand.
2983 (ix86_expand_sse_pcmpestr): Do not check operands for
2984 "register_operand", when insn operand predicate is "register_operand".
2985 (ix86_expand_sse_pcmpistr): Ditto.
2987 2007-06-02 H.J. Lu <hongjiu.lu@intel.com>
2988 Uros Bizjak <ubizjak@gmail.com>
2990 * config/i386/i386.h (enum reg_class) [SSE_FIRST_REG]: New.
2991 (SSE_CLASS_P): Use reg_class_subset_p between SSE_REGS.
2992 (REG_CLASS_NAMES): Add "FIRST_SSE_REG" string.
2993 (REG_CLASS_CONTENTS): Add members of FIRST_SSE_REG class.
2994 * config/i386/constraints.md ("z"): New register constraint
2995 for members of SSE_FIRST_REG class.
2996 * config/i386/i386-modes.def (CCA, CCC, CCO, CCS): New compare modes.
2997 * config/i386/i386.c (regclass_map): Change class of %xmm0 to
2998 SSE_FIRST_REG class.
2999 (put_condition_code) [EQ, NE]: Output suffixes for new compare modes.
3000 (ix86_cc_modes_compatible): Handle CCA, CCC, CCO and CCS modes.
3001 (IX86_BUILTIN_PCMPESTRI128): New for SSE4.2.
3002 (IX86_BUILTIN_PCMPESTRM128): Likewise.
3003 (IX86_BUILTIN_PCMPESTRA128): Likewise.
3004 (IX86_BUILTIN_PCMPESTRC128): Likewise.
3005 (IX86_BUILTIN_PCMPESTRO128): Likewise.
3006 (IX86_BUILTIN_PCMPESTRS128): Likewise.
3007 (IX86_BUILTIN_PCMPESTRZ128): Likewise.
3008 (IX86_BUILTIN_PCMPISTRI128): Likewise.
3009 (IX86_BUILTIN_PCMPISTRM128): Likewise.
3010 (IX86_BUILTIN_PCMPISTRA128): Likewise.
3011 (IX86_BUILTIN_PCMPISTRC128): Likewise.
3012 (IX86_BUILTIN_PCMPISTRO128): Likewise.
3013 (IX86_BUILTIN_PCMPISTRS128): Likewise.
3014 (IX86_BUILTIN_PCMPISTRZ128): Likewise.
3015 (struct builtin_description): Change "flag" field to unsigned.
3016 (bdesc_pcmpestr): New builtin description table.
3017 (bdesc_pcmpistr): Likewise.
3018 (ix86_init_mmx_sse_builtins): Define int_ftype_v16qi_int_v16qi_int_int,
3019 v16qi_ftype_v16qi_int_v16qi_int_int and int_ftype_v16qi_v16qi_int.
3020 Initialize pcmp[ei]str[im] insns for SSE4.2.
3021 (ix86_expand_sse_pcmpestr): New subroutine of ix86_expand_builtin.
3022 (ix86_expand_sse_pcmpistr): Likewise.
3023 (ix86_expand_builtin): Expand pcmp[ei]str[im] builtins for SSE4.2.
3024 * config/i386/i386.md (UNSPEC_PCMPESTR): New for SSE4.2.
3025 (UNSPEC_PCMPISTR): Likewise.
3026 * config/i386/sse.md (sse4_2_pcmpestr): New insn patern and splitter.
3027 (sse4_2_pcmpestri):New isns pattern.
3028 (sse4_2_pcmpestrm): Likewise.
3029 (sse4_2_pcmpestr_cconly): Likewise.
3030 (sse4_2_pcmpistr): New insn patern and splitter.
3031 (sse4_2_pcmpistri):New isns pattern.
3032 (sse4_2_pcmpistrm): Likewise.
3033 (sse4_2_pcmpistr_cconly): Likewise.
3034 * config/i386/smmintrin.h: Enable pcmp[ei]str[im] intrinsics
3037 2007-06-01 David Daney <ddaney@avtrex.com>
3039 * config/mips/mips.c (mips_output_mi_thunk): Only load gp if not
3040 LOADGP_ABSOLUTE and not binds_local_p.
3042 2007-06-01 Geoffrey Keating <geoffk@apple.com>
3044 * config/darwin.h (LINK_SPEC): Pass -fpie through to the linker.
3046 2007-06-01 Ian Lance Taylor <iant@google.com>
3048 * tree-vrp.c (compare_name_with_value): Always set
3049 used_strict_overflow if we get a result from the variable itself.
3051 2007-06-01 Ian Lance Taylor <iant@google.com>
3053 PR rtl-optimization/31455
3054 * lower-subreg.c (find_decomposable_subregs): Don't decompose
3055 subregs which have a cast between modes which are not tieable.
3057 2007-06-01 Uros Bizjak <ubizjak@gmail.com>
3059 * expr.c (force_operand) [DIV, MOD, UDIV, UMOD, ASHIFTRT]: Remove
3060 breaks after return statements.
3062 2007-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
3064 * config/sh/sh.c (fpscr_set_from_mem): Call get_free_reg
3065 only after no_new_pseudos.
3067 2007-05-31 Eric Christopher <echristo@apple.com>
3069 * expr.c (convert_move): Assert that we don't have a BLKmode
3071 (store_expr): Handle BLKmode moves by calling emit_block_move.
3073 2007-05-31 Daniel Berlin <dberlin@dberlin.org>
3075 * c-typeck.c (build_indirect_ref): Include type in error message.
3076 (build_binary_op): Pass types to binary_op_error.
3077 * c-common.c (binary_op_error): Take two type arguments, print out
3079 * c-common.h (binary_op_error): Update prototype.
3081 2007-05-31 H.J. Lu <hongjiu.lu@intel.com>
3083 * config/i386/i386.c: Correct coments on -mno-sse4.
3085 2007-05-31 H.J. Lu <hongjiu.lu@intel.com>
3087 * config.gcc (i[34567]86-*-*): Add nmmintrin.h to extra_headers.
3088 (x86_64-*-*): Likewise.
3089 * config/i386/i386.c (OPTION_MASK_ISA_MMX_UNSET): New.
3090 (OPTION_MASK_ISA_3DNOW_UNSET): Likewise.
3091 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
3092 (OPTION_MASK_ISA_SSE2_UNSET): Likewise.
3093 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
3094 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
3095 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
3096 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
3097 (OPTION_MASK_ISA_SSE4): Likewise.
3098 (OPTION_MASK_ISA_SSE4_UNSET): Likewise.
3099 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
3100 (ix86_handle_option): Use OPTION_MASK_ISA_*_UNSET. Handle SSE4.2.
3101 (override_options): Support SSE4.2.
3102 (ix86_build_const_vector): Support SImode and DImode.
3103 (ix86_build_signbit_mask): Likewise.
3104 (ix86_expand_int_vcond): Support V2DImode.
3105 (IX86_BUILTIN_CRC32QI): New for SSE4.2.
3106 (IX86_BUILTIN_CRC32HI): Likewise.
3107 (IX86_BUILTIN_CRC32SI): Likewise.
3108 (IX86_BUILTIN_CRC32DI): Likewise.
3109 (IX86_BUILTIN_PCMPGTQ): Likewise.
3110 (bdesc_crc32): Likewise.
3111 (bdesc_sse_3arg): Likewise.
3112 (ix86_expand_crc32): Likewise.
3113 (ix86_init_mmx_sse_builtins): Support SSE4.2.
3114 (ix86_expand_builtin): Likewise.
3115 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Define
3116 __SSE4_2__ for -msse4.2.
3117 * config/i386/i386.md (UNSPEC_CRC32): New for SSE4.2.
3118 (CRC32MODE): Likewise.
3119 (crc32modesuffix): Likewise.
3120 (crc32modeconstraint): Likewise.
3121 (sse4_2_crc32<mode>): Likewise.
3122 (sse4_2_crc32di): Likewise.
3123 * config/i386/i386.opt (msse4.2): New for SSE4.2.
3125 * config/i386/nmmintrin.h: New. The dummy SSE4.2 intrinsic header file.
3126 * config/i386/smmintrin.h: Add SSE4.2 intrinsics.
3127 * config/i386/sse.md (sse4_2_gtv2di3): New pattern for SSE4.2.
3128 (vcond<mode>): Use SSEMODEI instead of SSEMODE124.
3129 (vcondu<mode>): Likewise.
3130 * doc/extend.texi: Document SSE4.2 built-in functions.
3131 * doc/invoke.texi: Document -msse4.2/-msse4.
3133 2007-05-31 Zdenek Dvorak <dvorakz@suse.cz>
3135 PR tree-optimization/32160
3136 * tree-predcom.c (predcom_tmp_var): New function. Mark created
3137 variable as gimple reg.
3138 (initialize_root_vars, initialize_root_vars_lm): Use predcom_tmp_var.
3140 2007-05-31 Kazu Hirata <kazu@codesourcery.com>
3142 * gcc.c (main): Don't consider linker options when issuing the
3143 warning about a linker input file not being used.
3145 2007-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3147 * tree-vrp.c (compare_names): Initialize sop.
3149 2007-05-30 Dirk Mueller <dmueller@suse.de>
3151 * cgraphunit.c (cgraph_analyze_function): Remove
3152 computation of inline parameters.
3154 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
3156 * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Undef before define.
3158 2007-05-30 Richard Sandiford <richard@codesourcery.com>
3160 * config.gcc (arm-wrs-vxworks): Remove dbxelf.h from tm_file.
3161 Add vx-common.h. Include vxworks.h between vx-common.h and
3163 * config/vx-common.h (DWARF2_UNWIND_INFO): Undefine before
3165 * config/vxworks.h (TARGET_ASM_CONSTRUCTOR): Likewise.
3166 (TARGET_ASM_DESTRUCTOR): Likewise.
3167 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Check arm_arch_xscale
3168 instead of arm_is_xscale. Use VXWORKS_OS_CPP_BUILTINS.
3169 (OVERRIDE_OPTIONS, SUBTARGET_CPP_SPEC): Define.
3170 (CC1_SPEC): Add -tstrongarm. Line up backslashes.
3171 (VXWORKS_ENDIAN_SPEC): Define.
3172 (ASM_SPEC): Add VXWORKS_ENDIAN_SPEC.
3173 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Redefine to their
3174 VXWORKS_* equivalents.
3175 (LINK_SPEC): Likewise, but add VXWORKS_ENDIAN_SPEC.
3176 (ASM_FILE_START): Delete.
3177 (TARGET_VERSION): Reformat.
3178 (FPUTYPE_DEFAULT, FUNCTION_PROFILER): Define.
3179 (DEFAULT_STRUCTURE_SIZE_BOUNDARY): Define.
3180 * config/arm/t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Define.
3181 (FPBIT, DPBIT): Define.
3182 (fp-bit.c, dp-bit.c): New rules.
3183 (MULTILIB_OPTIONS): Add strongarm, -mrtp and -mrtp/-fPIC multilibs.
3184 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Define.
3185 * config/arm/arm-protos.h (arm_emit_call_insn): Declare.
3186 * config/arm/arm.h: Include vxworks-dummy.h.
3187 * config/arm/arm.c (arm_elf_asm_constructor, arm_elf_asm_destructor):
3188 Mark with ATTRIBUTE_UNUSED.
3189 (arm_override_options): Do not allow VxWorks RTP PIC to be used
3190 for Thumb. Force r9 to be the PIC register for VxWorks RTPs and
3191 make it incompatible with -msingle-pic-base.
3192 (arm_function_ok_for_sibcall): Return false for calls that might
3193 go through a VxWorks PIC PLT entry.
3194 (require_pic_register): New function, split out from...
3195 (legitimize_pic_address): ...here. Do not use GOTOFF accesses
3197 (arm_load_pic_register): Handle the VxWorks RTP initialization
3198 sequence. Use pic_reg as a shorthand for cfun->machine->pic_reg.
3199 (arm_emit_call_insn): New function.
3200 (arm_assemble_integer): Do not use GOTOFF accesses for VxWorks RTP.
3201 * config/arm/arm.md (UNSPEC_PIC_OFFSET): New unspec number.
3202 (pic_offset_arm): New pattern.
3203 (call, call_value): Use arm_emit_call_insn.
3204 (call_internal, call_value_internal): New expanders.
3205 * config/arm/lib1funcs.asm (__PLT__): Define to empty for
3206 VxWorks unless __PIC__.
3208 2007-05-30 Eric Christopher <echristo@gmail.com>
3210 * genrecog.c: Include regs.h in generated file.
3211 * genemit.c: Ditto. Fix up formatting.
3212 * config/mn10300/constraints.md: New.
3213 * config/mn10300/mn10300.md: Include.
3214 * config/mn10300/mn10300.c(mn10300_secondary_reload_class):
3215 Fix up for removed macro.
3216 * config/mn10300/predicates.md (call_address_operand): Ditto.
3217 * config/mn10300/mn10300.h (REG_CLASS_FROM_LETTER): Delete.
3218 (CONST_OK_FOR_I): Ditto.
3219 (CONST_OK_FOR_J): Ditto.
3220 (CONST_OK_FOR_K): Ditto.
3221 (CONST_OK_FOR_L): Ditto.
3222 (CONST_OK_FOR_M): Ditto.
3223 (CONST_OK_FOR_N): Ditto.
3224 (CONST_DOUBLE_OK_FOR_LETTER_P): Ditto.
3228 (EXTRA_CONSTRAINT): Ditto.
3230 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
3232 * config/i386/i386.h (MASK_64BIT, MASK_MMX, MASK_3DNOW*, MASK_SSE*):
3234 * config/i386/biarch.h (TARGET_64BIT_DEFAULT): Define to
3235 OPTION_MASK_ISA_64BIT.
3236 * config/i386/i386.c: Rename MASK_* macros to OPTION_MASK_ISA_*.
3238 2007-05-30 Richard Guenther <rguenther@suse.de>
3241 * gimplify.c (gimplify_omp_atomic_pipeline): Use correct
3242 types for comparison.
3243 * fold-const.c (fold_comparison): Call maybe_canonicalize_comparison
3244 with original typed arguments.
3245 * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatches.
3247 2007-05-30 Jakub Jelinek <jakub@redhat.com>
3249 PR tree-optimization/31769
3250 * except.c (duplicate_eh_regions): Clear prev_try if
3251 ERT_MUST_NOT_THROW region is inside of ERT_TRY region.
3253 2007-05-30 Zdenek Dvorak <dvorakz@suse.cz>
3255 * tree-scalar-evolution.c (scev_const_prop): Do not create labels.
3256 * tree-ssa-sink.c (statement_sink_location): Return basic block and
3257 bsi of the location where statements should be inserted.
3258 (sink_code_in_bb): Take bsi from statement_sink_location.
3259 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use bsi_after_labels
3260 instead of bsi_start.
3261 * tree-profile.c (tree_gen_ic_func_profiler): Pass BSI_NEW_STMT to
3263 * tree-cfg.c (bsi_move_after): Pass BSI_NEW_STMT to bsi_insert_after.
3264 (bsi_move_before): Document inconsistency with bsi_move_after.
3265 (tree_redirect_edge_and_branch): Do not create labels if not necessary.
3267 2007-05-30 Uros Bizjak <ubizjak@gmail.com>
3269 * config/i386/i386.h (TARGET_ABM): New define.
3270 (TARGET_POPCNT): Ditto.
3271 (TARGET_64BIT, TARGET_MMX, TARGET_3DNOW, TARGET_3DNOW_A, TARGET_SSE*):
3272 New temporary defines to redefine from OPTION_ISA_* defines.
3273 (MASK_64BIT, MASK_MMX, MASK_3DNOW, MASK_3DNOW_A, MASK_SSE*):
3274 New temporary defines to redefine from OPTION_MASK_ISA_* defines.
3275 (ix86_isa_flags): New extern int declaration.
3276 (TARGET_SUBTARGET_DEFAULT): New define.
3277 (TARGET_SUBTARGET_ISA_DEFAULT): Ditto.
3278 (TARGET_SUBTARGET32_DEFAULT): Ditto.
3279 (TARGET_SUBTARGET32_ISA_DEFAULT): Ditto.
3280 (TARGET_SUBTARGET64_ISA_DEFAULT): Ditto.
3281 * config/i386/unix.h: Undef TARGET_SUBTARGET_DEFAULT before define.
3282 * config/i386/darwin.h: Change TARGET_64BIT define to
3285 * config/i386/i386.opt (m3dnowa): Define as undocumented option
3286 using existing "ix86_isa_flags" varible.
3287 (m32, m64): Use existing "ix86_isa_flags" variable.
3288 (mmmx, m3dnow): Ditto.
3289 (msse, msse2, msse3, mssse3, msse4.1, msse4a): Ditto.
3290 (mabm): Define as non-negative option using "x86_abm" variable.
3291 (mpopcnt): Define as non-negative option using "x86_popcnt" variable.
3293 * config/i386/i386.c (ix86_arch_features) [X86_ARCH_CMOVE]:
3294 Rewrite feature test bitmap.
3295 (ix86_isa_flags): New initialized global int varible.
3296 (ix86_isa_flags_explicit): New static int variable.
3297 (ix86_handle_option): Set "ix86_isa_flags_explicit" when mmmx, m3dnow,
3298 msse, msse2, msse3, msse4.1 and msse4a option is processed. Change
3299 i86_isa_flags and ix86_isa_flags_explicit, not target_flags and
3300 target_flags_explicit.
3301 (override_options): Remove "target_enable" and "target_disable" fields
3302 from "struct ptt". Update processor_target_table accordingly. Remove
3303 PTA_PREFETCH_SSE from processor_alias_table entry if PTE_SSE is
3304 defined and rearrange PTA_* bits. Use "ix86_isa_flags" instead of
3305 "target_flags" and "ix86_isa_flags_explicit" instead of
3306 "target_flags_explicit" when masked with MASK_64BIT, MASK_MMX,
3307 MASK_3DNOW, MASK_3DNOW_A or MASK_SSE*. Set "x86_abm" to true when
3308 PTA_ABM is set in processor_alias_table flags entry. Set "x86_popcnt"
3309 to true when either of PTA_POPCNT or PTA_ABM is set in
3310 processor_alias_table flags entry. Set "x86_prefetch_sse" to true
3311 when either of PTA_PREFETCH_SSE or PTA_SSE is set in
3312 processor_alias_table flags entry. Remove handling of
3313 "target_enable" and "target_disable" fields of processor_target_table.
3314 Mask "target_flags" with TARGET_SUBTARGET32_DEFAULT for 32-bit
3315 targets or with TARGET_SUBTARGET64_DEFAULT for 64-bit targets.
3316 Mask "ix86_isa_flags" with TARGET_SUBTARGET32_ISA_DEFAULT for 32-bit
3317 targets or with TARGET_SUBTARGET64_ISA_DEFAULT for 64-bit targets.
3318 (def_builtin): Mask "mask" variable with "ix86_isa_flags", not
3320 (TARGET_DEFAULT_TARGET_FLAGS): Do not include TARGET_64BIT_DEFAULT.
3322 2007-05-29 David Daney <ddaney@avtrex.com>
3325 * config/mips/mips.c (mips_output_mi_thunk): Emit
3326 NOTE_INSN_PROLOGUE_END at beginning of the thunk.
3328 2007-05-29 Hui-May Chang <hm.chang@apple.com>
3329 * config/i386/i386.c (ix86_function_regparm): Added checking of
3330 ix86_force_align_arg_pointer to determine the number of
3331 register parameters.
3333 2007-05-29 Zdenek Dvorak <dvorakz@suse.cz>
3335 * tree-vectorizer.h (DR_MISALIGNMENT): Cast aux to integer.
3336 (SET_DR_MISALIGNMENT): New.
3337 * tree-vect-analyze.c (vect_compute_data_ref_alignment,
3338 vect_update_misalignment_for_peel, vect_enhance_data_refs_alignment):
3339 Use SET_DR_MISALIGNMENT.
3340 * tree-predcom.c (split_data_refs_to_components): Cast dr->aux from
3342 * tree-data-ref.c (create_data_ref, compute_all_dependences,
3343 find_loop_nest): Export.
3344 * tree-data-ref.h (struct data_reference): Change aux field to pointer.
3345 (create_data_ref, compute_all_dependences, find_loop_nest): Declare.
3346 * tree-ssa-loop-prefetch.c: Include tree-data-ref.h.
3347 (L1_CACHE_SIZE_BYTES, L2_CACHE_SIZE_BYTES, NONTEMPORAL_FRACTION):
3349 (struct mem_ref): Add field reuse_distance.
3350 (find_or_create_group, record_ref): Use XNEW instead of xcalloc.
3351 Initialize reuse_distance field.
3352 (issue_prefetch_ref): Select temporality of prefetch according to
3354 (volume_of_references, volume_of_dist_vector, add_subscript_strides,
3355 self_reuse_distance, determine_loop_nest_reuse): New functions.
3356 (loop_prefetch_arrays): Call determine_loop_nest_reuse.
3357 (tree_ssa_prefetch_arrays): Dump L2 cache size.
3358 * Makefile.in (tree-ssa-loop-prefetch.o): Add TREE_DATA_REF_H
3361 2007-05-29 Daniel Berlin <dberlin@dberlin.org>
3363 * tree-ssa-alias.c: Add aliasing overview.
3365 2007-05-29 Zuxy Meng <zuxy.meng@gmail.com>
3366 Danny Smith <dannysmith@users.sourceforge.net>
3369 * config/i386/t-crtfm: Compile crtfastmath.o with
3370 -minline-all-stringops.
3371 * config/i386/cygwin.h (ENDFILE_SPECS): Add crtfastmath.o.
3372 * config/i386/mingw32.h (ENDFILE_SPECS): Add crtfastmath.o.
3374 2007-05-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3376 * doc/md.texi: Document constraints on HP PA-RISC.
3378 * pa/constraints.md: New file.
3379 * pa.md: Include constraints.md.
3380 * pa.c (cint_ok_for_move): Avoid using CONST_OK_FOR_LETTER_P.
3381 (integer_store_memory_operand, ldil_cint_p): New functions.
3382 * pa-protos.h (integer_store_memory_operand, ldil_cint_p): Declare.
3383 * pa.h (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
3384 IS_RELOADING_PSEUDO_P, EXTRA_CONSTRAINT): Remove.
3385 * pa32-regs.h (REG_CLASS_FROM_LETTER): Remove.
3386 * pa64-regs.h (REG_CLASS_FROM_LETTER): Remove.
3388 2007-05-28 Andrew Pinski <Andrew_pinski@playstation.sony.com>
3391 * c-typeck.c (build_unary_op <case PREINCREMENT_EXPR,
3392 case POSTINCREMENT_E