1 2005-04-13 Julian Brown <julian@codesourcery.com>
3 * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from
4 being used for symbols with vague linkage when HAVE_GAS_COMDAT_GROUP
7 2005-04-13 Kazu Hirata <kazu@cs.umass.edu>
9 * basic-block.h, tree-ssa-uncprop.c, varasm.c,
10 config/i386/sse.md: Fix comment typos.
12 * genattrtab.c (NULL_ATTR): Remove.
13 * ifcvt.c (NULL_EDGE): Likewise.
15 * rtl.h (RTX_EXPR_FIRST, RTX_EXPR_LAST): Remove.
17 * rtl.h (NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS,
18 NOTE_PREDICT): Remove.
20 2005-04-13 Eric Botcazou <ebotcazou@libertysurf.fr>
22 * configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
23 * configure: Regenerate.
24 * config.in: Likewise.
25 * system.h: Declare vsnprintf if not already declared.
27 2005-04-13 Eric Botcazou <ebotcazou@libertysurf.fr>
29 * optc-gen.awk: Handle stand-alone Mask records.
30 * opth-gen.awk: Likewise.
31 * doc/options.texi (Option file format): Document them.
32 * config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*,
33 sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt.
34 (sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt.
35 * config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES,
36 MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9,
37 MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS,
38 MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT,
39 MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS,
40 MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete.
41 (TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE,
42 TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS,
43 TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD,
44 TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS,
45 TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS,
46 TARGET_LONG_DOUBLE_128): Likewise.
47 (TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise.
48 (TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise.
49 * config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise.
50 * config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise.
51 * config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise.
52 * config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise.
53 * config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
54 * config/sparc/sparc.c (fpu_option_set): New global.
55 (sparc_handle_option): New function.
56 (sparc_override_options): Test fpu_option_set.
57 (TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT.
58 (TARGET_HANDLE_OPTION): Set to sparc_handle_option.
59 * config/sparc/sparc.opt: New file.
60 * config/sparc/little-endian.opt: Likewise.
61 * config/sparc/long-double-switch.opt: Likewise.
63 2005-04-13 Bernd Schmidt <bernd.schmidt@analog.com>
65 * config/bfin/bfin.c (bfin_lib_id_given): New static variable.
66 (bfin_handle_options): Set it if -mshared-library-id= is seen.
67 * config/bfin/bfin.opt (mshared-library-id=): Lose
68 Var(bfin_lib_id_given).
70 2005-04-13 Matt Thomas <matt@3am-software.com>
72 * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
75 2005-04-13 Kazu Hirata <kazu@cs.umass.edu>
77 * rtl.h (CLEAR_RTX_FLAGS): Remove.
79 * cgraphunit.c (INSNS_PER_CALL): Remove.
81 * tree-ssa-forwprop.c (vars,
82 record_single_argument_cond_exprs,
83 substitute_single_use_vars): Remove.
84 (forward_propagate_into_cond_1, forward_propagate_into_cond):
86 (tree_ssa_forward_propagate_single_use_vars): Call
87 forward_propagate_into_cond for each COND_EXPR.
89 * tree-inline.c (INSNS_PER_STMT): Remove.
91 2005-04-12 Richard Henderson <rth@redhat.com>
93 * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Split ...
94 (ix86_expand_sse_fp_minmax): ... from ...
95 (ix86_expand_fp_movcc): ... here.
96 (ix86_expand_sse_movcc): Rewrite from ix86_split_sse_movcc.
97 * config/i386/i386-protos.h: Update.
98 * config/i386/i386.md (UNSPEC_IEEE_MIN, UNSPEC_IEEE_MAX): New.
99 (sse_setccsf, sse_setccdf): Allow before reload.
100 (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): Remove.
101 (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): Remove.
102 (ieee_sminsf3, ieee_smaxsf3, ieee_smindf3, ieee_smaxdf3): New.
103 * config/i386/sse.md (andsf3, nandsf3, iorsf3, xorsf3): New.
104 (anddf3, nanddf3, iordf3, xordf3): New.
106 2005-04-12 Jeff Law <law@redhat.com>
108 * Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
109 (tree-ssa-uncprop.o): Add dependencies.
110 * tree-cfg.c (remove_useless_stmts_bb, remove_useless_stmts): Remove.
111 * tree-flow.h (remove_useless_stmts): Remove prototype.
112 * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
113 remove_useless_stmts.
114 * timevar.def (TV_TREE_SSA_UNCPROP): New timevar.
115 * tree-optimize.c (init_tree_optimization_passes): Add uncprop pass.
116 * tree-pass.h (pass_uncprop): Declare.
117 * tree-ssa-uncprop.c: New file.
119 2005-04-12 James E. Wilson <wilson@specifixinc.com>
122 * unwind-ia64.c (uw_intall_context): Add missing load of r27.
124 2005-04-12 Caroline Tice <ctice@apple.com>
126 Temporary fix for partitioning problems.
127 * passes.c (rest_of_handle_final): Remove code that
128 frees unlikely_text_section_name,
129 * varasm.c (assemble_start_function): Test for partitioning
130 flag before writing out section labels.
131 (assemble_end_function): Test for partitioning flag before
132 writing out section labels.
134 2005-04-12 Steven Bosscher <stevenb@suse.de>
135 Stuart Hastings <stuart@apple.com>
136 Jan Hubicka <jh@suse.cz>
138 * Makefile.in: Add function.h to BASIC_BLOCK_H. Remove all
139 references to gt-tree-cfg.h.
140 * basic-block.h (struct basic_block_def): Don't skip rbi
141 for garbage collection.
142 (struct reorder_block_def): Make GTY-able.
143 (struct control_flow_graph): New structure.
144 (n_edges, n_basic_blocks, last_basic_block, basic_block_info,
145 BASIC_BLOCK, EXIT_BLOCK_PTR, ENTRY_BLOCK_PTR): No longer vars,
146 but instead defines to the control_flow_graph for cfun.
147 (label_to_block_map): New define, points to the label map of
148 the control_flow_graph for cfun.
149 (n_edges_for_function, n_basic_blocks_for_function,
150 last_basic_block_for_function, basic_block_info_for_function,
151 EXIT_BLOCK_PTR_FOR_FUNCTION, ENTRY_BLOCK_PTR_FOR_FUNCTION,
152 basic_block_info_for_function, label_to_block_map_for_function):
153 Counterparts for the above, taking a struct function as an extra
155 (alloc_rbi_pool, free_rbi_pool): Remove prototypes.
156 * cfg.c: (n_edges, n_basic_blocks, last_basic_block,
157 basic_block_info, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Remove.
158 (alloc_rbi_pool, free_rbi_pool): Remove.
159 (initialize_bb_rbi): Use ggc_alloc_cleared instead of pool_alloc.
160 * cfglayout.c: (cfg_layout_initialize): Don't allocate the rbi pool
162 (cfg_layout_finalize) ... and don't free it here.
163 * cfgrtl.c (cfg_layout_delete_block): Zero out rbi so it gets
165 * flow.c (free_basic_block_vars): Set label_to_block_map and
167 * function.h (struct function): Add cfg field.
168 * function.c (allocate_struct_function): Allocate the cfg.
169 * tree-cfg.c (label_to_block_map): Remove.
170 (build_tree_cfg): Don't allocate the rbi pool here...
171 (delete_tree_cfg_annotations): ...and don't free it here.
172 Also don't nullify label_to_block_map for cfun.
174 2005-04-12 Caroline Tice <ctice@apple.com>
176 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
177 Revert my patch from April 9.
178 (fix_edges_for_rarely_executed_code): Revert my patch from April 9.
179 (reorder_basic_blocks): Revert my patch from April 9.
180 (insert_section_boundary_note): Revert my patch from April 9.
181 * dbxout.c (dbxout_function_end): Revert my patch from April 9.
182 * dwarf2out.c (COLD_TEXT_SECTION_LABEL): Revert my patch from April 9.
183 (COLD_END_LABEL): Revert my patch from April 9.
184 (cold_text_section_label): Revert my patch from April 9.
185 (cold_end_label): Revert my patch from April 9.
186 (dwarf2out_switch_text_section): Revert my patch from April 9.
187 (output_aranges): Revert my patch from April 9.
188 (output_ranges): Revert my patch from April 9.
189 (output_line_info): Revert my patch from April 9.
190 (add_location_or_const_value_attribute): Revert my patch from April 9.
191 (dwarf2out_var_location): Revert my patch from April 9.
192 (dwarf2out_init): Revert my patch from April 9.
193 (dwarf2out_finish): Revert my patch from April 9.
194 * function.h (struct function): Revert my patch from April 9.
195 * opts.c (decode_options): Revert my patch from April 9.
196 * output.h (unlikely_section_label, hot_section_label,
197 hot_section_end_label, cold_section_end_label,
198 unlikely_text_section_name): Revert my patch from April 9.
199 * passes.c (rest_of_handle_final): Revert my patch from April 9.
200 * varasm.c (unlikely_section_label, hot_section_label,
201 hot_section_end_label, cold_section_end_label,
202 unlikely_text_section_name): Revert my patch from April 9.
203 (initialize_cold_section_name): Revert my patch from April 9.
204 (unlikely_text_section): Revert my patch from April 9.
205 (in_unlikely_text_section): Revert my patch from April 9.
206 (named_section): Revert my patch from April 9.
207 (function_section): Revert my patch from April 9.
208 (current_function_section): Revert my patch from April 9.
209 (assemble_start_function): Revert my patch from April 9.
210 (assemble_end_function): Revert my patch from April 9.
211 (default_section_type_flags_1): Revert my patch from April 9.
213 2005-04-12 Eric Botcazou <ebotcazou@libertysurf.fr>
215 * config/sparc/sparc.h (APPLY_RESULT_SIZE): Set to 24 in 64-bit mode.
216 * config/sparc/sparc.md (untyped_call): Save the registers manually.
218 * config/sparc/sparc.c (legitimate_address_p): Use TARGET_ARCH32.
220 2005-04-12 Ulrich Weigand <uweigand@de.ibm.com>
223 * config/s390/s390.md ("*set_tp"): Use SET in pattern.
224 ("set_tp_64", "set_tp_31"): Adapt expanded pattern.
226 2004-04-12 Richard Henderson <rth@redhat.com>
228 * config/i386/i386.md (UNSPEC_FIX, UNSPEC_MOVA, UNSPEC_SHUFFLE,
229 UNSPEC_PSHUFLW, UNSPEC_PSHUFHW, UNSPEC_ADDSUB, UNSPEC_HADD,
230 UNSPEC_HSUB, UNSPEC_MOVSHDUP, UNSPEC_MOVSLDUP, UNSPEC_MOVDDUP): Remove.
231 (UNSPEC_*, UNSPECV_*): Renumber.
233 2005-04-12 Frank Ch. Eigler <fche@redhat.com>
236 From Richard Henderson <rth@redhat.com>:
237 * tree-mudflap.c (mf_build_check_statement_for): Correct block
240 2005-04-12 Dorit Naishlos <dorit@il.ibm.com>
242 * tree-cfg.c (tree_verify_flow_info): Use LABEL_EXPR_LABEL.
244 2005-04-12 Bernd Schmidt <bernd.schmidt@analog.com>
246 * config/bfin/bfin.c (bfin_library_id_string): Remove.
247 (bfin_library_id): New variable.
248 (bfin_expand_prologue): Use bfin_library_id and bfin_lib_id_given
249 instead of bfin_library_id_string.
250 (bfin_handle_option): New function.
251 (override_options): Remove most code to deal with shared library IDs,
252 just check they aren't used without -mid-shared-library.
253 (TARGET_HANDLE_OPTION): Define.
254 * config/bfin/bfin.h (TARGET_OPTIONS): Delete macro.
255 * config/bfin/bfin.opt (mshared-library-id=): New.
257 2005-04-12 Kazu Hirata <kazu@cs.umass.edu>
259 * tree-vect-transform.c: Fix comment typos.
261 2005-04-12 Mostafa Hagog <mustafa@il.ibm.com>
263 * postreload-gcse.c (eliminate_partially_redundant_load): Don't
264 split critical edges when not possible/profitable.
266 2005-04-12 Richard Sandiford <rsandifo@redhat.com>
268 * config/ns32k/ns32k.h (target_flags, MASK_32081, MASK_RTD)
269 (MASK_REGPARM, MASK_32532, MASK_32332, MASK_NO_SB, MASK_NO_BITFIELD)
270 (MASK_HIMEM, MASK_32381, MASK_MULT_ADD, MASK_SRC, MASK_IEEE_COMPARE)
271 (TARGET_32081, TARGET_32381, TARGET_MULT_ADD, TARGET_RTD)
272 (TARGET_REGPARM, TARGET_32532, TARGET_32332, TARGET_SB, TARGET_HIMEM)
273 (TARGET_BITFIELD, TARGET_IEEE_COMPARE, TARGET_SWITCHES): Delete.
274 (OVERRIDE_OPTIONS): Clear MASK_SB instead of setting MASK_NO_SB.
275 * config/ns32k/netbsd.h (TARGET_DEFAULT): Remove MASK_NO_SB and
277 * config/ns32k/ns32k.c (ns32k_handle_option): New function.
278 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
279 * config/ns32k/ns32k.opt: New file.
281 2005-04-12 Richard Sandiford <rsandifo@redhat.com>
283 * config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options.
284 * config/m68k/m68k.h (target_flags, MASK_68020, TARGET_68020)
285 (MASK_68030, TARGET_68030, MASK_68040, TARGET_68040, MASK_68040_ONLY)
286 (TARGET_68040_ONLY, MASK_68060, TARGET_68060, MASK_5200, TARGET_5200)
287 (MASK_CFV3, TARGET_CFV3, MASK_CFV4, TARGET_CFV4, MASK_528x)
288 (TARGET_528x, MASK_CF_HWDIV, TARGET_CF_HWDIV, MASK_68881, TARGET_68881)
289 (MASK_BITFIELD, TARGET_BITFIELD, MASK_SHORT, TARGET_SHORT)
290 (MASK_ALIGN_INT, TARGET_ALIGN_INT, MASK_PCREL, TARGET_PCREL)
291 (MASK_NO_STRICT_ALIGNMENT, TARGET_STRICT_ALIGNMENT, MASK_RTD)
292 (TARGET_RTD, MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY)
293 (TARGET_ID_SHARED_LIBRARY, MASK_ALL_CF_BITS, TARGET_SWITCHES)
294 (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Delete.
295 (MASK_COLDFIRE): Formatting fixes.
296 (TARGET_COLDFIRE): Turn into a boolean value for consistency.
297 * config/m68k/linux.h (SUBTARGET_SWITCHES): Delete.
298 * config/m68k/m68k.c (m68k_library_id_string): Initialize to
299 "_current_shared_library_a5_offset_".
300 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
301 (MASK_ALL_CPU_BITS): New macro.
302 (m68k_handle_option): New function.
303 (override_options): Remove handling of m68k_library_id_string.
304 * config/m68k/m68k.opt: New file.
305 * config/m68k/ieee.opt: New file.
307 2005-04-11 Mark Mitchell <mark@codesourcery.com>
309 * target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
310 (TARGET_CXX_DETERMINE_CLASS_VISIBILITY): New macro.
311 (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
312 (TARGET_CXX): Adjust accordingly.
313 * target.h (struct gcc_target): Remove epxort_class_data. Add
314 determine_class_data_visibility and class_data_always_comdat.
315 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
316 (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Document.
317 (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
318 * config/arm/arm.c (arm_cxx_export_class_data): Remove.
319 (arm_cxx_determine_class_data_visibility): New.
320 (arm_cxx_class_data_always_comdat): Likewise.
321 (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
322 (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
323 (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
324 * config/arm/arm.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P): Define.
325 * config/arm/symbian.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P):
328 2005-04-11 Devang Patel <dpatel@apple.com>
330 * tree-data-ref.c (build_classic_dist_vector,
331 compute_subscript_distance): Make externally visible.
332 * tree-data-ref.h (build_classic_dist_vector,
333 compute_subscript_distance): Same.
334 * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
335 Check distance vector against vectorization factor.
336 (vect_analyze_loop): Determine vectorizaion factor before
337 analyzing data dependences.
338 * tree-vectorizer.c (loops_num): Make it externally visible and
340 * tree-vectorizer.c (vect_loops_num): ... new name.
341 * tree-vectorizer.h (vect_loops_num): New.
343 2005-04-11 Devang Patel <dpatel@apple.com>
345 * tree-vect-analyze.c (vect_analyze_operations): Check
346 vectorizable codition.
347 * tree-vect-transform.c (vect_is_simple_cond): New function.
348 (vectorizable_condition): New function.
349 (vect_transform_stmt): Handle condition_vec_info_type.
350 * tree-vectorizer.h (enum stmt_vec_info_type): Add
351 condition_vec_info_type.
352 (vectorizable_condition): New.
354 2005-04-11 Geoffrey Keating <geoffk@apple.com>
356 * config/i386/i386.h (TARGET_FPMATH_DEFAULT): New.
357 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT): New.
358 * config/i386/i386.c (override_options): Use TARGET_FPMATH_DEFAULT.
360 * config/i386/darwin.h (ASM_SPEC): Use -arch i386 not -arch i686.
361 (SUBTARGET_EXTRA_SPECS): Always 'i386'.
363 * dwarf2out.c (output_line_info): Don't try to dereference
364 a NULL current_function_decl.
366 * config/t-slibgcc-darwin: Don't put shared libraries in
367 directories other than $(slibdir).
368 * config/rs6000/darwin.h: Find -m64 libgcc under the name the
371 2005-04-11 Diego Novillo <dnovillo@redhat.com>
373 PR tree-optimization/20933
374 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Move
375 logic to reject aliases between read-only and writable
377 (may_alias_p): ... here.
378 (get_tmt_for): Do not associate read-only tags to pointers
379 whose pointed-to type is not read-only.
380 * tree-ssa.c (verify_ssa): Check that memory stores have at
381 least one V_MAY_DEF or V_MUST_DEF.
383 2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
386 * configure.ac (gcc_UNLOCKED_FUNCS): New.
387 (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
388 * system.h (putchar, getc, getchar, clearerr, feof, fileno,
389 fflush, fgetc, fgets, ferror, fread): Redefine to the associated
391 (fwrite_unlocked): Fix prototype.
393 * configure, config.in: Regenerate.
395 2005-04-11 David Edelsohn <edelsohn@gnu.org>
397 * tree-ssa-loop-im.c: Include real.h.
398 (determine_invariantness_stmt): If real division divisor is
399 invariant and flag_unsafe_math_optimizations enabled, generate
400 invariant reciprocal for hoisting.
401 * Makefile.in (tree-ssa-loop-im.o): Add real.h dependency.
403 2005-04-11 Daniel Berlin <dberlin@dberlin.org>
405 Fix PR tree-optimization/20926
407 * tree-ssa-alias.c (add_type_alias): Handle subvars.
409 2005-04-11 Devang Patel <dpatel@apple.com>
411 * config/rs6000.c (rs6000_emit_vector_select): Fix vector select
414 2005-04-11 Andrew Pinski <pinskia@physics.uc.edu>
416 * fold-const.c (fold_binary_op_with_conditional_arg):
417 use fold_buildN instead of "fold (buildN" in some
419 (fold_unary): Likewise.
420 (fold_binary): Likewise.
422 2005-04-11 Daniel Berlin <dberlin@dberlin.org>
424 Fix PR tree-optimization/20612
425 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Fix increment
427 (perfect_nestify): preheaderbb is *not* part of loop of the
430 2005-04-11 Andrew Pinski <pinskia@physics.uc.edu>
432 * tree-ssa-alias.c (may_alias_p): If the variable
433 is a global variable and the pointer is parameter
434 and -fargument-noalias-global is used, then
435 the pointer cannot alias the variable.
437 2005-04-11 James A. Morrison <phython@gcc.gnu.org>
439 * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable.
440 * config/sparc/sparc.h: Likewise.
441 * config/sparc/sparc.md: Likewise.
443 2005-04-11 Kazu Hirata <kazu@cs.umass.edu>
445 * tree-vrp.c (maybe_add_assert_expr): Move a comment.
447 * tree-vrp.c: Fix a comment typo.
449 2005-04-11 Diego Novillo <dnovillo@redhat.com>
451 PR tree-optimization/20920
452 * tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
453 SSA_NAME flows through an abnormal edge.
454 * tree-vrp.c (infer_value_range): Ignore SSA names that flow
455 through abnormal edges.
456 (maybe_add_assert_expr): Likewise.
458 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
460 * config/s390/s390.h (s390_tune_string, s390_arch_string)
461 (s390_warn_framesize_string, s390_warn_dynamicstack_string)
462 (s390_stack_size_string, s390_stack_guard_string, target_flags)
463 (MASK_HARD_FLOAT, MASK_SMALL_EXEC, MASK_DEBUG_ARG, MASK_64BIT)
464 (MASK_ZARCH, MASK_MVCLE, MASK_TPF_PROFILING, MASK_NO_FUSED_MADD)
465 (MASK_BACKCHAIN, MASK_PACKED_STACK, TARGET_HARD_FLOAT)
466 (TARGET_SOFT_FLOAT, TARGET_SMALL_EXEC, TARGET_DEBUG_ARG)
467 (TARGET_64BIT, TARGET_ZARCH, TARGET_MVCLE, TARGET_TPF_PROFILING)
468 (TARGET_NO_FUSED_MADD, TARGET_FUSED_MADD, TARGET_BACKCHAIN)
469 (TARGET_PACKED_STACK, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
470 * config/s390/s390.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
471 (TARGET_HANDLE_OPTION): Likewise.
472 (s390_tune): Initialize to PROCESSOR_max.
473 (s390_arch_string): Make static.
474 (s390_tune_string, s390_warn_framesize_string): Delete.
475 (s390_warn_dynamicstack_string, s390_stack_size_string): Delete.
476 (s390_stack_guard_string, s390_warn_dynamicstack_p): Delete.
477 (s390_handle_arch_option, s390_handle_option): New functions.
478 (override_options): Remove parsing of option strings.
479 * config/s390/s390.opt: New file.
481 2005-04-11 Paolo Bonzini <bonzini@gnu.org>
483 * tree-complex.c (expand_vector_operations): Call
484 update_stmt_if_modified.
486 2005-04-11 Paolo Bonzini <bonzini@gnu.org>
488 * tree-vect-analyze (vect_determine_vectorization_factor):
489 Do not use GET_MODE_NUNITS.
490 * tree-vect-transform.c (vect_get_vec_def_for_operand,
491 (vectorizable_load, vect_transform_loop): Likewise.
493 2005-04-11 Uros Bizjak <uros@kss-loka.si>
495 * builtins.def (BUILT_IN_LCEIL, BUILT_IN_LCEILF, BUILT_IN_LCEILL)
496 (BUILT_IN_LLCEIL, BUILT_IN_LLCEILF, BUILT_IN_LLCEILL): New.
497 * optabs.h (enum optab_index): Add new OTI_lceil.
498 (lceil_optab): Define corresponding macro.
499 * optabs.c (init_optabs): Initialize lceil_optab.
500 * genopinit.c (optabs): Implement lceil_optab using lceilsi2
501 and lceildi2 patterns.
502 * builtins.c (expand_builtin_int_roundingfn): Handle
503 BUILT_IN_LCEIL{,F,L} and BUILT_IN_LLCEIL{,F,L}.
504 (fold_builtin_int_roundingfn): Handle BUILT_IN_LCEIL{,F,L} and
505 BUILT_IN_LLCEIL{,F,L}.
506 (fold_builtin_1): Fold BUILT_IN_LCEIL{,F,L} and
507 BUILT_IN_LLCEIL{,F,L} using fold_builtin_int_roundingfn.
508 (mathfn_built_in): Handle BUILT_IN LCEIL and BUILT_IN_LLCEIL.
509 (expand_builtin): Expand BUILT_IN_LCEIL{,F,L} and
510 BUILT_IN_LLCEIL{,F,L} using expand_builtin_int_roundingfn.
511 * convert.c (convert_to_integer): Convert (long int)ceil{,f,l},
512 into lceil built-in function and (long long int)ceil{,f,l} into
513 llceil built-in function.
514 * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LCEIL and
517 2005-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
519 * pa/quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from
522 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
524 * config/arm/arm.c: Fix a comment typo.
525 * doc/tree-ssa.texi: Fix a typo.
527 2005-04-10 Steven Bosscher <stevenb@suse.de>
529 * cselib.c (clear_table): Rename to cselib_clear_table.
530 * cselib.h (cselib_clear_table): Add prototype.
531 * gcse.c (gcse_main): Make 'f' argument unused.
532 (alloc_gcse_mem): Do not walk the insn chain, walk the contents
533 of each basic block instead.
534 (compute_sets, compute_hash_table_work): Likewise.
535 (constprop_register): Change int 'alter_jumps' argument to bool.
536 (do_local_cprop): Likewise.
537 (local_cprop_pass): Likewise. Also walk basic blocks instead of
538 the insn chain. Explicitly clear the cselib tables after finishing
539 one basic block. Make sure there are no unterminated libcall blocks.
540 Update compute_sets call.
541 (cprop): Walk basic blocks instead of the insn chain.
542 (one_cprop_pass, compute_ld_motion_mems, compute_store_table):
544 (bypass_jumps): Update alloc_gcse_mem, compute_sets, and
545 one_cprop_pass calls.
547 2005-04-10 Richard Sandiford <rsandifo@redhat.com>
549 * combine.c (combine_simplify_rtx): Remove a transformation that
550 relies on an invalid assumption about rtl sign-extension semantics.
552 2005-04-10 Richard Sandiford <rsandifo@redhat.com>
554 * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
555 to build_int_cst_wide.
557 2005-04-09 Alexandre Oliva <aoliva@redhat.com>
560 * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
561 set the original address pseudo to the correct value before the
562 original insn, if possible, and leave the insn alone, otherwise
563 create a new pseudo, set it and replace it in the insn.
564 * recog.c (validate_change_maybe_volatile): New.
565 * recog.h (validate_change_maybe_volatile): Declare.
567 2005-04-09 Caroline Tice <ctice@apple.com>
569 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
570 Remove targetm.have_named_sections test.
571 (fix_edges_for_rarely_executed_code): Likewise.
572 (insert_section_boundary_note): Likewise.
573 (reorder_basic_blocks): Check partitioning flag before calling
574 verify_hot_cold_block_grouping.
575 * dbxout.c (dbxout_function_end): Get hot/cold section labels from
576 the function struct rather than global variables.
577 * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
578 (COLD_END_LABEL): Likewise
579 (cold_text_section_label): New static global variable.
580 (cold_end_label): Likewise.
581 (dwarf2out_switch_text_section): Get hot/cold section labels from
582 the function struct rather than global variables.
583 (output_aranges): Use cold_text_section_label and cold_end_label;
584 check partitioning flag before putting out delta.
585 (output_ranges): Remove incorrect code attempting to use
587 (output_line_info): Get cold section label from function struct.
588 (add_location_or_const_value_attribute): Likewise.
589 (get_subprogram_die): Get hot/cold section labels from function struct.
590 (dwarf2out_var_location): Likewise.
591 (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
592 write out cold_text_section_label if partition flag is set.
593 (dwarf2out_finish): Write out cold_end_label if partition flag is set;
594 * function.h (struct function): Add new fields to point to hot/cold
595 section labels: hot_section_label, cold_section_label,
596 hot_section_end_label and cold_section_end_label; also add new field
597 for cold text section name, unlikely_text_section_name.
598 * opts.c (decode_options): Turn off partitioning flag if
599 !targetm.have_named_sections.
600 * output.h (hot_section_label): Remove.
601 (hot_section_end_label): Remove.
602 (cold_section_end_label): Remove.
603 (unlikely_section_label): Remove.
604 (unlikely_text_section_name): Remove.
605 * passes.c (rest_of_handle_final): Remove code that frees
606 unlikely_text_section_name.
607 * varasm.c (unlikely_section_label): Remove.
608 (hot_section_label): Remove.
609 (hot_section_end_label): Remove.
610 (cold_section_end_label): Remove.
611 (unlikely_text_section_name): Remove.
612 (initialize_cold_section_name): Modify to call
613 targetm.strip_name_encoding; to store cold section name in current
614 function struct, if it exists; and to only use the decl_section_name
615 if flag_named_sections is true.
616 (unlikely_text_section): Modify to get section name out of current
617 function struct, if there is one; otherwise build it from
618 UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
619 (in_unlikely_text_section): Likewise.
620 (named_section): Modify to get/put cold section name in current function
621 struct, if there is one.
622 (function_section): Change 'bool unlikely' to 'int reloc'; check
623 targetm.have_named_sections before calling named_section.
624 (current_function_section): Likewise.
625 (assemble_start_function): Modify to get/put unlikely_text_section_name
626 in current function struct; modify to get hot/cold section labels
627 from function struct; initialize labels using
628 ASM_GENERATE_INTERNAL_LABEL;
629 test partitioning flag before writing out hot section label.
630 (assemble_end_function): Test partitioning flag before writing out
631 hot/cold section labels.
632 (default_section_type_flags_1): Modify to use array instead of
633 char* for unlikely_text_section_name; set flags correctly for
634 cold text section if there is not a current function decl.
636 2005-04-09 Jakub Jelinek <jakub@redhat.com>
638 * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
639 and TI_VA_LIST_FPR_COUNTER_FIELD.
640 (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
641 * tree-pass.h (pass_stdarg): Add.
642 * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
643 * tree-stdarg.c: New file.
644 * tree-stdarg.h: New file.
645 * Makefile.in (OBJS-common): Add tree-stdarg.o.
646 (tree-stdarg.o): Add dependencies.
647 * function.h (struct function): Add va_list_gpr_size and
648 va_list_fpr_size fields.
649 * function.c (allocate_struct_function): Initialize them.
650 * target.h (struct gcc_target): Add stdarg_optimize_hook.
651 * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
652 (TARGET_INITIALIZER): Add it.
654 * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
655 va_list_{g,f}pr_counter_field.
656 (ix86_setup_incoming_varargs): Don't do anything if reg_save
657 area will not be used. Only save registers that tree-stdarg.c
658 detected they need saving.
659 (ix86_va_start): Don't set up fields that won't be used.
661 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
662 va_list_{g,f}pr_counter_field.
663 (setup_incoming_varargs): Don't do anything if reg_save
664 area will not be used. Only save registers that tree-stdarg.c
665 detected they need saving.
666 (rs6000_va_start): Don't set up fields that won't be used.
668 * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
669 (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
670 (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
671 (TARGET_STDARG_OPTIMIZE_HOOK): Define.
673 2005-04-09 Jakub Jelinek <jakub@redhat.com>
676 * config/i386/i386.c (construct_container): Pass empty aligned
677 struct, union or class in memory.
679 2005-04-09 Kazu Hirata <kazu@cs.umass.edu>
681 * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
682 tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
683 config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
684 config/rs6000/predicates.md: Fix comment typos.
686 * sched-int.h (haifa_insn_data): Remove blockage and units.
687 (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
688 ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
689 MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
691 2005-04-09 Jan Hubicka <jh@suse.cz>
692 Steven Bosscher <stevenb@suse.de>
694 * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
695 * cfgloop.c (get_loop_exit_edges): Likewise.
696 * cfgloopmanip.c (fix_irreducible_loops): Likewise.
698 * loop-unroll.c (analyze_insns_in_loop): Likewise.
699 * tree-cfg.c (dump_cfg_status): Likewise.
701 2005-04-09 David Edelsohn <edelsohn@gnu.org>
703 * config/rs6000/predicates.md (altivec_register_operand): Remove
704 redundant match_code test.
705 (gpc_reg_operand): Same.
706 (cc_reg_operand): Same.
707 (cc_reg_not_cr0_operand): Same.
709 2005-04-09 Jan Hubicka <jh@suse.cz>
711 Forgotten hunk from my last merge patch:
712 * final.c (output_addr_const): Do not call mark_referenced.
714 2005-04-09 Andrew MacLeod <amacleod@redhat.com>
716 * doc/tree-ssa.texi: Add immediate use documentation.
718 2005-04-09 Richard Earnshaw <richard.earnshaw@arm.com>
720 * arm.c (FL_WBUF): Define.
721 (arm_tune_strongarm): Renamed from arm_is_strong. All uses changed.
722 (arm_is_6_or_7): Delete.
723 (arm_tune_wbuf): New.
724 (arm_override_options): Set arm_tune_wbuf.
725 * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
726 (arm_is_6_or_7): Delete declaration.
727 (arm_tune_wbuf): New declartion.
728 * arm.md (is_strongarm): Derive from arm_tune_strongarm.
729 (model_wbuf): Derive from arm_tune_wbuf.
730 * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
731 (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
732 (arm740t): Mark CPUs as having a write buffer.
734 2005-04-09 Uros Bizjak <uros@kss-loka.si>
736 * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
737 of 'const_double_operand' in operand 2 constraints. Update enable
740 2005-04-09 Uros Bizjak <uros@kss-loka.si>
742 * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
743 (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
744 * optabs.h (enum optab_index): Add new OTI_lfloor.
745 (lfloor_optab): Define corresponding macro.
746 * optabs.c (init_optabs): Initialize lfloor_optab.
747 * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
748 and lfloordi2 patterns.
749 * builtins.c (expand_builtin_int_roundingfn): New prototype.
750 (expand_builtin_int_roundingfn): New function.
751 (fold_builtin_int_roundingfn): New prototype.
752 (fold_builtin_int_roundingfn): New function, renamed from
754 Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
755 BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
756 (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
757 BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
758 (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
759 (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
760 BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
761 * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
762 into lfloor built-in function and (long long int)floor{,f,l} into
763 llfloor built-in function.
764 * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
767 2005-04-08 Ian Lance Taylor <ian@airs.com>
769 * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
770 CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
771 * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
772 (DO_COND, DO_BODY): Likewise.
773 (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
774 (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
775 (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
776 BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
777 (build_continue_stmt, build_break_stmt): Don't declare.
778 (c_do_switch_warnings): Update declaration.
779 * c-gimplify.c (enum bc_t): Remove.
780 (struct c_gimplify_ctx, ctxp): Remove.
781 (push_context, pop_context): Remove static functions.
782 (c_genericize): Don't call push_context or pop_context.
783 (begin_bc_block, finish_bc_block): Remove static functions.
784 (build_bc_goto): Likewise.
785 (gimplify_c_loop): Likewise.
786 (gimplify_for_stmt, gimplify_while_stmt): Likewise.
787 (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
788 (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
789 DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
790 * c-common.c (c_do_switch_warnings): Rename from
791 c_do_switch_warnings_1.
792 (c_do_switch_warnings) [old version]: Remove.
793 (c_do_switch_expr_warnings): Remove.
794 * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
795 function instead of c_do_switch_expr_warnings.
796 * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
797 CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
798 * c-pretty-print.c (pp_c_statement): Likewise.
799 * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
801 2005-04-08 Devang Patel <dpatel@apple.com>
803 * tree-if-conv.c (find_phi_replacement_condition): New parameter, loop.
804 While selecting replacement condition pay attention to loop header.
806 2005-04-08 Diego Novillo <dnovillo@redhat.com>
808 Merge from tree-cleanup-branch: VRP, store CCP, store
809 copy-prop, incremental SSA updating of FUD chains and
810 newly exposed symbols.
812 * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
813 (OBJS-common): Add tree-vrp.o.
814 (tree-vrp.o): New rule.
815 * basic-block.h (nearest_common_dominator_for_set): Declare.
816 * common.opt (ftree-store-ccp): New flag.
817 (ftree-copy-prop): New flag.
818 (ftree-vrp): New flag.
819 (ftree-store-copy-prop): New flag.
820 * dominance.c (nearest_common_dominator_for_set): New.
821 * domwalk.c (walk_dominator_tree): Only traverse
822 statements in blocks marked in walk_data->interesting_blocks.
823 * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
824 * fold-const.c (fold): Handle ASSERT_EXPR.
825 * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
826 Set flag_tree_store_ccp, flag_tree_store_copy_prop and
827 flag_tree_vrp at -O2.
828 * timevar.def (TV_TREE_VRP): Define.
829 (TV_TREE_COPY_PROP): Define.
830 (TV_TREE_STORE_COPY_PROP): Define.
831 (TV_TREE_SSA_INCREMENTAL): Define.
832 (TV_TREE_STORE_CCP): Define.
833 * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
834 to kill_redundant_phi_nodes from comment.
835 (verify_expr): Handle ASSERT_EXPR.
836 * tree-dfa.c (mark_new_vars_to_rename): Remove second
837 argument. Update all users.
838 (mark_call_clobbered_vars_to_rename): Remove. Update all
840 * tree-flow-inline.h (unmodifiable_var_p): New.
841 * tree-flow.h (enum value_range_type): Declare.
842 (struct value_range_def): Declare.
843 (value_range): Declare.
844 (remove_all_phi_nodes_for): Remove. Update all users.
845 (find_phi_node_for): Declare.
846 (add_type_alias): Declare.
847 (count_uses_and_derefs): Declare.
848 (kill_redundant_phi_nodes): Remove.
849 (rewrite_into_ssa): Remove.
850 (rewrite_def_def_chains): Remove.
851 (update_ssa, register_new_name_mapping, create_new_def_for,
852 need_ssa_update_p, name_registered_for_update_p,
853 release_ssa_name_after_update_ssa, dump_repl_tbl,
854 debug_repl_tbl, dump_names_replaced_by,
855 debug_names_replaced_by, mark_sym_for_renaming,
856 mark_set_for_renaming, get_current_def, set_current_def,
857 get_value_range, dump_value_range, debug_value_range,
858 dump_all_value_ranges, debug_all_value_ranges,
859 expr_computes_nonzero, loop_depth_of_name,
860 unmodifiable_var_p): Declare.
861 * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
863 * tree-into-ssa.c (block_defs_stack): Update comment.
864 (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
865 syms_to_rename, names_to_release, repl_tbl,
866 need_to_initialize_update_ssa_p, need_to_update_vops_p,
867 need_to_replace_names_p): New locals.
868 (NAME_SETS_GROWTH_FACTOR): Define.
869 (struct repl_map_d): Declare.
870 (struct mark_def_sites_global_data): Add field
872 (enum rewrite_mode): Declare.
873 (REGISTER_DEFS_IN_THIS_STMT): Define.
874 (compute_global_livein): Use last_basic_block instead of
876 (set_def_block): Remove last argument. Update all callers.
877 (prepare_use_operand_for_rename): Remove. Update all callers.
878 (prepare_def_operand_for_rename): Remove. Update all callers.
879 (symbol_marked_for_renaming): New.
882 (repl_map_hash): New.
884 (repl_map_free): New.
885 (names_replaced_by): New.
886 (add_to_repl_tbl): New.
887 (add_new_name_mapping): New.
888 (mark_def_sites): Assume that all the operands in the
889 statement are in normal form.
890 (find_idf): Assert that the block in the stack is valid.
891 (get_default_def_for): New.
892 (insert_phi_nodes_for): Add new argument 'update_p'.
894 If update_p is true, add a new mapping between the LHS of
895 each new PHI and the name that it replaces.
896 (insert_phi_nodes_1): Only call find_idf if needed.
897 (get_reaching_def): Call get_default_def_for.
898 (rewrite_operand): Remove.
899 (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
900 and REWRITE_THIS_STMT are false.
901 Assume that all the operands in the statement are in
903 (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
904 (rewrite_virtual_phi_arguments): Remove.
905 (invalidate_name_tags): Remove.
906 (register_new_update_single, register_new_update_set,
907 rewrite_update_init_block, replace_use,
908 rewrite_update_fini_block, rewrite_update_stmt,
909 rewrite_update_phi_arguments): New.
910 rewrite_blocks): Remove argument 'fix_virtual_phis'.
911 Add arguments 'entry', 'what' and 'blocks'.
912 Initialize the dominator walker according to 'what' and
914 Start the dominator walk at 'entry'.
915 (mark_def_site_blocks): Add argument 'interesting_blocks'.
916 Use it to configure the dominator walker.
917 (rewrite_into_ssa): Remove argument 'all'.
919 (rewrite_all_into_ssa): Remove.
920 (rewrite_def_def_chains): Remove.
921 (mark_def_interesting, mark_use_interesting,
922 prepare_phi_args_for_update, prepare_block_for_update,
923 prepare_def_site_for, prepare_def_sites,
924 dump_names_replaced_by, debug_names_replaced_by,
925 dump_repl_tbl, debug_repl_tbl, init_update_ssa,
926 delete_update_ssa, create_new_def_for,
927 register_new_name_mapping, mark_sym_for_renaming,
928 mark_set_for_renaming, need_ssa_update_p,
929 name_registered_for_update_p, ssa_names_to_replace,
930 release_ssa_name_after_update_ssa,
931 insert_updated_phi_nodes_for, update_ssa): New.
932 * tree-loop-linear.c (linear_transform_loops): Call
933 update_ssa instead of rewrite_into_ssa.
934 * tree-optimize.c (vars_to_rename): Remove.
936 (init_tree_optimization_passes): Replace
937 pass_redundant_phi with pass_copy_prop.
939 Replace pass_ccp with pass_store_ccp.
940 Add pass_store_copy_prop after pass_store_ccp.
941 (execute_todo): If the TODO_ flags don't include updating
942 the SSA form, assert that it does not need to be updated.
943 Call update_ssa instead of rewrite_into_ssa and
944 rewrite_def_def_chains.
945 If TODO_verify_loops is set, call verify_loop_closed_ssa.
946 (tree_rest_of_compilation):
947 * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
948 TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
949 TODO_cleanup_cfg): Renumber.
950 (TODO_verify_loops, TODO_update_ssa,
951 TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
952 TODO_update_ssa_only_virtuals): Define.
953 (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
955 * tree-phinodes.c (make_phi_node): Update documentation.
956 (remove_all_phi_nodes_for): Remove.
957 (find_phi_node_for): New.
958 * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
959 * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
960 (interpret_rhs_modify_expr): Likewise.
961 * tree-sra.c (decide_instantiations): Mark all symbols in
962 SRA_CANDIDATES for renaming.
963 (mark_all_v_defs_1): Rename from mark_all_v_defs.
964 (mark_all_v_defs): New function. Update all users to call it
965 with the whole list of scalarized statements, not just the
967 * tree-ssa-alias.c (count_ptr_derefs): Make extern.
968 (compute_flow_insensitive_aliasing): If the tag is
969 unmodifiable and the variable isn't or vice-versa, don't
970 make them alias of each other.
971 (setup_pointers_and_addressables): If the type tag for
972 VAR is about to change, mark the old one for renaming.
973 (add_type_alias): New.
974 * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
975 (ccp_lattice_t): Rename from latticevalue.
976 (value): Remove. Update all users.
977 (const_val): New local variable.
978 (do_store_ccp): New local variable.
979 (dump_lattice_value): Handle UNINITIALIZED.
980 (debug_lattice_value): New.
981 (get_default_value): Re-write.
982 (set_lattice_value): Re-write.
983 (def_to_varying): Remove. Update all users.
984 (likely_value): Return VARYING for statements that make
985 stores when STORE_CCP is false.
986 Return VARYING for any statement other than MODIFY_EXPR,
987 COND_EXPR and SWITCH_EXPR.
988 (ccp_initialize): Re-write.
989 (replace_uses_in, replace_vuse_in, substitute_and_fold):
990 Move to tree-ssa-propagate.c.
991 (ccp_lattice_meet): Handle memory stores when
992 DO_STORE_CCP is true.
993 (ccp_visit_phi_node): Likewise.
994 (ccp_fold): Likewise.
995 (evaluate_stmt): Likewise.
996 (visit_assignment): Likewise.
997 (ccp_visit_stmt): Likewise.
998 (execute_ssa_ccp): Add argument 'store_ccp'. Copy it
1002 (do_ssa_store_ccp): New.
1003 (gate_store_ccp): New.
1004 (pass_store_ccp): Declare.
1005 * tree-ssa-copy.c: Include tree-ssa-propagate.h.
1006 (may_propagate_copy): Reformat.
1007 Don't abort if ORIG is a virtual and DEST isn't.
1008 If NEW does not have alias information but DEST does,
1010 (copy_of, cached_last_copy_of, do_store_copy_prop, enum
1011 copy_prop_kind, which_copy_prop): Declare.
1012 (stmt_may_generate_copy, get_copy_of_val,
1013 get_last_copy_of, set_copy_of_val, dump_copy_of,
1014 copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
1015 copy_prop_visit_stmt, copy_prop_visit_phi_node,
1016 init_copy_prop, fini_copy_prop, execute_copy_prop,
1017 gate_copy_prop, do_copy_prop, gate_store_copy_prop,
1018 store_copy_prop): New.
1019 (pass_copy_prop, pass_store_copy_prop): Declare.
1020 * tree-ssa-dom.c (struct opt_stats_d): Add fields
1021 'num_const_prop' and 'num_copy_prop'.
1022 (cprop_operand): Update them.
1023 (dump_dominator_optimization_stats): Dump them.
1024 (tree_ssa_dominator_optimize): Call update_ssa instead of
1026 (loop_depth_of_name): Declare extern.
1027 (simplify_cond_and_lookup_avail_expr): Guard against NULL
1028 values for LOW or HIGH.
1029 (cprop_into_successor_phis): Only propagate if NEW != ORIG.
1030 (record_equivalences_from_stmt): Call expr_computes_nonzero.
1031 (cprop_operand): Only propagate if VAL != OP.
1032 * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
1033 statement for renaming.
1034 * tree-ssa-loop-im.c (move_computations): Call update_ssa.
1035 * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
1036 add_type_alias if necessary.
1037 Call mark_new_vars_to_rename.
1038 (tree_ssa_iv_optimize): If new symbols need to be renamed,
1039 mark every statement updated, call update_ssa and
1040 rewrite_into_loop_closed_ssa.
1041 * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
1042 from LIVEIN if VAR is a virtual.
1043 * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
1044 * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
1045 (get_call_expr_operands): Reformat statement.
1046 (add_stmt_operand): Don't create V_MAY_DEFs for read-only
1048 * tree-ssa-propagate.c (ssa_prop_init): Initialize
1049 SSA_NAME_VALUE for every name.
1050 (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
1051 get_value_loaded_by): New.
1052 (replace_uses_in, replace_vuses_in, replace_phi_args_in,
1053 substitute_and_fold): Move from tree-ssa-ccp.c.
1054 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
1055 first_vdef, stmt_makes_single_load, stmt_makes_single_store,
1056 get_value_loaded_by, replace_uses_in, substitute_and_fold):
1058 * tree-ssa.c (verify_use): Fix error message.
1059 (propagate_into_addr, replace_immediate_uses, get_eq_name,
1060 check_phi_redundancy, kill_redundant_phi_nodes,
1061 pass_redundant_phi): Remove. Update all users.
1062 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
1063 add_type_alias, if necessary.
1064 * tree-vectorizer.h (struct _stmt_vect_info): Update
1065 documentation for field 'memtag'.
1066 * tree-vrp.c: New file.
1067 * tree.def (ASSERT_EXPR): Define.
1068 * tree.h (ASSERT_EXPR_VAR): Define.
1069 (ASSERT_EXPR_COND): Define.
1070 (SSA_NAME_VALUE_RANGE): Define.
1071 (struct tree_ssa_name): Add field 'value_range'.
1072 (PHI_REWRITTEN): Remove.
1073 (struct tree_phi_node): Remove field 'rewritten'.
1074 * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
1075 -ftree-store-copy-prop): Document.
1076 * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
1077 Document usage of update_ssa.
1079 2005-04-08 David Edelsohn <edelsohn@gnu.org>
1082 * config/rs6000/predicates.md (altivec_register_operand): Accept
1084 (and64_operand): Do not limit CONST_INT to mask64_operand.
1085 (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
1086 (and_operand): Do not limit CONST_INT to mask_operand.
1088 2005-04-09 Hans-Peter Nilsson <hp@axis.com>
1090 PR rtl-optimization/20466
1091 * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
1092 for overlap of the address of each list member.
1093 (mark_set_1): Call invalidate_mems_from_set for MEMs too.
1095 2005-04-08 Mike Stump <mrs@apple.com>
1097 * config/darwin.c (indirect_data): Fix typo in strncmp logic.
1099 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
1102 2005-04-08 Kazu Hirata <kazu@cs.umass.edu>
1104 * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
1106 * function.c (push_function_context_to): Don't set
1108 * function.h (function): Remove contains_functions.
1109 (current_function_contains_functions): Remove.
1111 * function.h (function): Remove instrument_entry_exit.
1112 (current_function_instrument_entry_exit): Remove.
1114 * function.h (nonlocal_labels): Remove.
1116 * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
1118 * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
1119 (check_attr_value, write_attr_get, write_expr_attr_cache,
1120 find_attr, make_internal_attr): Don't reference negative_ok or
1122 * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
1123 ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
1124 (ATTR_STATIC): Adjust the value.
1126 * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
1128 2005-04-08 Ulrich Weigand <uweigand@de.ibm.com>
1130 * config/s390/tpf.h (ASM_SPEC): Define.
1132 2005-04-08 Kazu Hirata <kazu@cs.umass.edu>
1134 * tree-flow.h: Remove the prototype for
1135 redirect_immediate_uses.
1136 (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
1138 2005-04-08 Richard Earnshaw <richard.earnshaw@arm.com>
1140 * arm.c (arm_const_double_by_parts): New function.
1141 * arm-protos.h (arm_const_double_by_parts): Add prototype.
1142 * arm.md (define_split for 64-bit constants): Add another one.
1144 2005-04-08 Andrew MacLeod <amacleod@redhat.com>
1146 * tree-ssa-operands.c (correct_use_link): Remove linear scan.
1148 2005-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1150 * system.h: Revert last change.
1152 2005-04-08 Richard Sandiford <rsandifo@redhat.com>
1154 * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
1155 (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
1156 (TARGET_SWITCHES): Delete.
1157 * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
1158 * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
1159 TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
1160 * config/xtensa/xtensa.opt: New file.
1162 2005-04-08 Ben Elliston <bje@au.ibm.com>
1164 * config/fp-bit.c: Include L_mul_tf in #endif comment.
1165 * config/fp-bit.h: Tidy comments.
1167 2005-04-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1169 * system.h: Poison PARAMS.
1171 2005-04-07 Richard Sandiford <rsandifo@redhat.com>
1173 * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
1174 (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
1175 (TARGET_SWITCHES): Delete.
1176 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
1177 * config/vax/vax.opt: New file.
1179 2005-04-07 Daniel Berlin <dberlin@dberlin.org>
1181 * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
1183 2005-04-07 Ian Lance Taylor <ian@airs.com>
1185 * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
1187 * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
1188 * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
1191 2005-04-07 Kazu Hirata <kazu@cs.umass.edu>
1193 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
1194 all immediate uses in PHI nodes.
1196 2005-04-07 Richard Earnshaw <richard.earnshaw@arm.com>
1198 * arm.c (arm_const_double_inline_cost): Handle any constant by
1199 using gen_lowpart and gen_highpart_mode.
1200 (note_invalid_constants): All constants in an RTX with a constraint
1201 that permits memory are now pushed to the constant pool.
1202 (output_move_double): Delete code to handle reg to reg and
1203 constant to reg moves.
1204 (const_double_needs_minipool, output_mov_immediate): Delete.
1205 * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
1206 CONST_INT and CONST_VECTOR.
1207 * arm.md (ANY64): New mode macro.
1208 (arm_movdi): Split reg-reg and const-reg moves. Simplify constraints.
1209 (movdf_soft_insn): Split reg-reg and const-reg moves.
1210 (split patterns for 64-bit constant and register moves): New.
1211 * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
1212 (cirrus_movdf_hard_insn): Likewise.
1213 * fpa.md (movdf_fpa): Likewise.
1214 * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
1215 (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
1217 (movv2si_internal_2): Likewise.
1218 * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
1219 (movdf_vfp): Likewise.
1220 * arm-protos.h (output_mov_immediate): Delete prototype.
1222 2005-04-07 Joseph S. Myers <joseph@codesourcery.com>
1225 * simplify-rtx.c (simplify_unary_operation_1): Check
1226 SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
1228 2005-04-06 James E Wilson <wilson@specifixinc.com>
1231 * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
1234 2004-04-06 Richard Sandiford <rsandifo@redhat.com>
1236 * coverage.h (GCOV_TYPE_NODE): Delete.
1237 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
1238 (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
1239 * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
1240 (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
1241 * value-prof.c (tree_divmod_fixed_value_transform): Delete.
1243 2004-04-06 Richard Sandiford <rsandifo@redhat.com>
1246 * Makefile.in (gcc.pot): Remove options.c dependency.
1247 * optc-gen.awk: Don't quote help strings with N_().
1249 2005-04-06 James A. Morrison <phython@gcc.gnu.org>
1251 * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
1252 the function returns a pointer type.
1254 2005-04-06 Daniel Berlin <dberlin@dberlin.org>
1256 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
1257 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
1258 * doc/invoke.texi: Documnet salias-max-implicit-fields.
1259 * tree-ssa-alias.c (struct used_part): Add implicit_uses and
1260 explicit_uses members.
1261 (get_or_create_used_part_for): Initialize new fields.
1262 (fieldoff_compare): New function.
1263 (create_overlap_variables_for): Count number of fields, use
1264 heuristic to determine whether to create subvars for vars with
1266 Sort the field list by offset and avoid creating duplicate SFT's.
1268 2005-04-06 Richard Sandiford <rsandifo@redhat.com>
1270 * c.opt (-F): Remove trailing whitespace from help string.
1271 (-finput-charset): Use a tab to separate the switch name and help
1273 * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
1274 (-ftree-vectorizer-verbose): Likewise.
1276 2005-04-06 Kazu Hirata <kazu@cs.umass.edu>
1278 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
1279 a PHI argument where a use occurs instead of all PHI arguments.
1281 2005-04-06 Joseph S. Myers <joseph@codesourcery.com>
1283 * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
1286 2005-04-06 Kazu Hirata <kazu@cs.umass.edu>
1288 * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
1289 tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
1290 config/bfin/bfin.h: Fix comment typos.
1292 2005-04-06 Ranjit Mathew <rmathew@hotmail.com>
1294 * doc/install.texi: Update the URL for Jacks.
1295 * doc/sourcebuild.texi: Likewise.
1297 2005-04-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1300 * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
1301 Revert 2004-10-08 patch. Reject TFmode LO_SUM in 32-bit mode.
1303 2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
1305 * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
1307 2005-04-06 Richard Sandiford <rsandifo@redhat.com>
1309 * config/v850/v850-protos.h (override_options): Delete.
1310 * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
1311 (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
1312 (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
1313 (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
1314 (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
1315 (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
1316 (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
1317 (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
1318 (OVERRIDE_OPTIONS): Delete.
1319 (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
1320 (small_memory_info): Remove the value field.
1321 (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
1323 * config/v850/v850.c (small_memory): Remove the value field.
1324 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1325 (override_options): Delete.
1326 (v850_handle_memory_option, v850_handle_option): New functions.
1327 * config/v850/v850.opt: New file.
1329 2005-04-06 Geoffrey Keating <geoffk@apple.com>
1331 * config.host: Add a section for generic hosts, and a subsection
1332 for Darwin. Add a case for x86-darwin. Update ppc-darwin case.
1333 * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
1334 * config/host-darwin.h: New.
1335 * config/x-darwin: New.
1336 * config/i386/host-i386-darwin.c: New.
1337 * config/i386/x-darwin: New.
1338 * config/rs6000/host-darwin.c: Include host-darwin.h.
1339 (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
1340 (darwin_rs6000_gt_pch_use_address): Likewise.
1341 * config/rs6000/x-darwin: Change name of .o built, update
1342 dependencies for changes to rs6000/host-darwin.c.
1344 2005-04-06 Ralf Corsepius <ralf.corsepius@rtems.org>
1347 * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
1349 2005-04-06 Dorit Naishlos <dorit@il.ibm.com>
1351 * tree-vect-analyze.c (vect_analyze_loop_form): Call
1352 split_loop_exit_edge instead of loop_split_edge_with.
1354 2005-04-06 Paolo Bonzini <bonzini@gnu.org>
1356 * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
1357 UNSPEC_SET_VSCR): New constants, used throughout.
1359 (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
1361 (altivec_vspltis<VI_char>): ... this pattern, using
1362 a QImode const_int_operand for the immediate.
1363 (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
1366 2005-04-06 Ralf Corsepius <ralf.corsepius@rtems.org>
1369 * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
1371 2005-04-06 Kelley Cook <kcook@gcc.gnu.org>
1373 * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
1375 2005-04-06 Ben Elliston <bje@au.ibm.com>
1377 * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
1378 DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
1379 macros as living in "this file" and not gcc.h.
1381 2005-04-06 Ben Elliston <bje@au.ibm.com>
1383 * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
1384 -ftree-live_range_split. Perhaps renamed at some point?
1386 2005-04-06 Zdenek Dvorak <dvorakz@suse.cz>
1389 * tree-ssa-loop-ivopts.c (generic_type_for): New function.
1390 (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
1392 2005-04-06 Zdenek Dvorak <dvorakz@suse.cz>
1394 * tree-flow.h (number_of_iterations_cond): Declaration removed.
1395 * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
1396 (number_of_iterations_special): New function.
1397 (number_of_iterations_exit): Use number_of_iterations_special.
1398 Use simplify_using_outer_evolutions only at -O3.
1399 (number_of_iterations_cond, tree_simplify_using_condition,
1400 simplify_using_initial_conditions, loop_niter_by_eval,
1401 compare_trees, can_count_iv_in_wider_type_bound,
1402 simplify_using_outer_evolutions): Use fold_build.
1404 2005-04-05 Thomas Fitzsimmons <fitzsim@redhat.com>
1406 * doc/install.texi (Configuration): Document --with-java-home.
1408 2005-04-05 Richard Henderson <rth@redhat.com>
1412 * config/i386/i386.c (print_operand): Handle vector zeros.
1413 (ix86_split_to_parts): Handle CONST_VECTOR.
1414 (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
1415 (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
1416 what modes to tie for MMX and SSE registers.
1417 * config/i386/i386.h (MMX_REG_MODE_P): Remove.
1418 * config/i386/i386.md: Extend move 0 -> xor peephole to apply
1419 to vector modes as well.
1420 * config/i386/predicates.md (const0_operand): Handle VOIDmode
1421 properly as an input mode.
1423 2005-04-05 Andrew MacLeod <amacleod@redhat.com>
1425 * tree-ssa-operands.c (verify_abort): Use %p for pointers.
1427 2005-04-05 Andrew MacLeod <amacleod@redhat.com>
1429 * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
1431 2005-04-05 Jakub Jelinek <jakub@redhat.com>
1433 * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
1434 and local functions, set sse_nregs to 8 and float_in_sse.
1435 (function_arg_advance, function_arg): If float_in_sse, pass
1436 SFmode and DFmode arguments in SSE registers.
1437 * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
1439 * config/i386/i386.c (ix86_value_regno): Only optimize local functions
1440 of -funit-at-a-time.
1442 2005-04-05 Paolo Bonzini <bonzini@gnu.org>
1444 * config/i386/i386-protos.h (ix86_function_value): Accept two
1445 arguments, like the target macro.
1446 * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
1447 * config/i386/i386.c (ix86_function_value): Accept the second
1448 argument of the target macro.
1449 (ix86_function_ok_for_sibcall): Pass a function pointer to
1450 ix86_function_value.
1451 (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
1452 call to ix86_value_regno).
1453 (ix86_value_regno): Add support for returning floating point values
1456 2005-04-05 Jakub Jelinek <jakub@redhat.com>
1458 PR tree-optimization/20076
1459 * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
1460 that call __builtin_return or __builtin_apply_args.
1462 2005-04-05 Andrew MacLeod <amacleod@redhat.com>
1464 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
1465 Use immediate use iterator.
1466 (stmt_is_bumper_for_loop): Use immediate use iterator.
1467 * predict.c (strip_builtin_expect): Use update_stmt.
1468 * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
1469 on all elements of a STATEMENT_LIST.
1470 (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
1471 (bsi_remove): Remove imm_use links and mark the stmt as modified.
1472 (bsi_replace): Mark stmt as modified and the update it.
1473 * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
1474 (expand_complex_libcal): Call update_stmt.
1475 (expand_complex_comparison): Call mark_stmt_modified.
1476 (expand_complex_operations_1): Call update_stmt_if_modified.
1477 (expand_vector_operations_1): Call mark_stmt_modified.
1478 * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
1479 compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
1480 add_immediate_use, redirect_immediate_use,
1481 redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
1482 dump_immediate_uses_for, debug_immediate_uses_for): Delete.
1483 (mark_new_vars_to_rename): Call update_stmt.
1484 * tree-dump.c (dump_option_value_in): Add "stmtaddr".
1485 * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.
1487 (unmodify_stmt): Delete.
1488 (update_stmt): New. Force an update of a stmt.
1489 (update_stmt_if_modified): update a stmt if it is out of date.
1490 (get_stmt_operands): Verify stmt is NOT modified.
1491 (stmt_modified_p): Update comment.
1492 (delink_imm_use): Remove a use node from its immuse list.
1493 (link_imm_use_to_list): Link a use node to a specific list.
1494 (link_imm_use): Link a node to the correct list.
1495 (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
1496 it in the correct list, if appropriate.
1497 (link_imm_use_stmt): Link a use node, and set the stmt pointer.
1498 (relink_imm_use): Link a use node in place of another node in a list.
1499 (relink_imm_use_stmt): LInk a node in place of another node, and set
1501 (end_safe_imm_use_traverse): New. Terminate a safe immuse iterator.
1502 (end_safe_imm_use_p): New. Check for the end of a safe immuse iterator.
1503 (first_safe_imm_use): New. Initialize a safe immuse iterator.
1504 (next_safe_imm_use): New. Proceed to next safe immuse iterator value.
1505 (end_readonly_imm_use_p): New. Check for end of a fast immuse iterator.
1506 (first_readonly_imm_use): New. Initialize a fast immuse iterator.
1507 (next_readonly_imm_use): New. Get the next fast immuse iterator value.
1508 (has_zero_uses): New. Return true if there are no uses of a var.
1509 (has_single_use): New. Return true if there is only a single use of a
1511 (single_imm_use): New. Return the simgle immediate use.
1512 (num_imm_uses): New. Return the number of immediate uses.
1513 (get_v_must_def_ops): Use is now a pointer.
1514 (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
1515 get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of
1517 (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
1518 (delink_stmt_imm_use): Delink all immuses from a stmt.
1519 (phi_arg_index_from_use): New. Return a phi arg index for a use.
1520 * tree-flow.h (struct dataflow_d): Delete.
1521 (immediate_use_iterator_d): New. Immediate use iterator struct.
1522 (FOR_EACH_IMM_USE_FAST): New. Macro for read only immuse iteration.
1523 (FOR_EACH_IMM_USE_SAFE): New. Macro for write-safe immuse iteration.
1524 (BREAK_FROM_SAFE_IMM_USE): New. Macro for earlyu exit from write-safe
1526 (struct stmt_ann_d): Remove dataflow_t from struct.
1527 * tree-if-conv.c (tree_if_conversion). Don't call free_df.
1528 (if_convertible_phi_p): Use FAST immuse iterator.
1529 (if_convertible_loop_p): Don't call compute_immediate_uses.
1530 (replace_phi_with_cond_modify_expr): Call update_stmt.
1531 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call
1532 update_stmt_if_modified.
1533 (rewrite_all_into_ssa): Initialize ssa operands.
1534 * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
1535 compute_immediate_uses.
1536 * tree-optimize.c (execute_todo): Call verify_ssa whenever the
1537 ssa_property is available.
1538 (execute_one_pass): Change parameters passed to execute_todo.
1539 * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
1540 (remove_ssa_form): Call fini_ssa_operands.
1541 (insert_backedge_copies): Delete call to modify_stmt.
1542 * tree-phinodes.c (make_phi_node): Initialize use nodes.
1543 (release_phi_node): Delink any use nodes before releasing.
1544 (resize_phi_node): Relink any use nodes.
1545 (remove_phi_arg_num): Delink the use node.
1546 (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
1547 (remove_all_phi_nodes_for): Release phi node first.
1548 * tree-pretty-print.c (dump_generic_node): Print stmt address.
1549 * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
1550 (scalarize_use, scalarize_copy): Call update_stmt.
1551 * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
1552 (compute_points_to_and_addr_escape): Call mark_stmt_modified.
1553 * tree-ssa-cpp.c (need_imm_uses_for): Delete.
1554 (ccp_initialize): Remove call to compute_immediate_uses.
1555 (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
1556 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified
1558 (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
1559 (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
1560 (eliminate_redundant_computations): Call mark_stmt_modified.
1561 (cprop_operand): Call mark_stmt_modified.
1562 (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
1563 * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
1564 (dse_optimize_stmt): Use new immuse interface.
1565 (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
1566 * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
1567 (substitute_single_use_vars): Use new immuse interface.
1568 (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
1569 and compute_immediate_uses.
1570 * tree-ssa-loop-im.c (single_reachable_address): Use new immuse
1572 (rewrite_mem_refs): Call update_stmt.
1573 (determine_lsm): Remove call to compute_imm_uses and free_df.
1574 * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
1575 (try_unroll_loop_completely): Call update_stmt.
1576 * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
1577 (rewrite_use_compare): Call update_stmt.
1578 (compute_phi_arg_on_exit): Insert each stmt before trying to process.
1579 (rewrite_use) : Call update_stmt.
1580 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
1581 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call
1583 * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
1584 (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
1585 (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
1587 (initialize_vuse_operand): New. Initialize a vuse operand.
1588 (initialize_v_may_def_operand): New. Initialize a maydef operand.
1589 (initialize_v_must_def_operand): New. Initialize a mustdef operand.
1590 (finalize_ssa_defs): Use stmt parameter.
1591 (correct_use_link): Ensure a use node is in the correct list, and has
1592 the correct stmt pointer.
1593 (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
1594 finalize_ssa_v_must_defs): Also initialize use nodes.
1595 (finalize_ssa_stmt_operands): Pass extra stmt operands.
1596 (build_ssa_operands): Seperate parsing from final operand construction.
1597 (parse_ssa_operands): New. Parse entry point for operand building.
1598 (swap_tree_operands): New. Swap 2 tree operands.
1599 (update_stmt_operands): Ranamed from get_stmt_operands. Always builds
1601 (get_expr_operands): Call swap_tree_operands when needed.
1602 (copy_virtual_operands): Use initialize routines for virtual use ops.
1603 (create_ssa_artficial_load_stmt): Add extra stmt parameter.
1604 (verify_abort): New. Issue imm_use error.
1605 (verify_imm_links): New Verify imm_use links for a var.
1606 (dump_immediate_uses_for): New. Dump imm_uses for a var to file.
1607 (dump_immediate_uses): New. Dump imm_uses for all vars to file.
1608 (debug_immediate_uses): New. Dump imm_uses for all vars to stderr.
1609 (debug_immediate_uses_for): New. Dump imm_uses for a var to stderr.
1610 * tree-ssa-operands.h (struct use_operand_ptr): Delete.
1611 (NULL_USE_OPERAND_P) Define.
1612 (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
1614 (struct vuse_operand_type): New struct.
1615 (SET_USE): Call set_ssa_use_from_ptr.
1617 (PHI_ARG_INDEX_FROM_USE): Define.
1618 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi
1619 argument via SET_USE, not PHI_ARG_DEF_TREE.
1620 * tree-ssa-pre.c (eliminate): Call update_stmt.
1621 * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators. Don't
1623 * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
1624 (nearest_common_dominator_of_uses): Use imm_use iterator.
1625 (statement_sink_location): Use imm_use iterator and interface.
1626 (execute_sink_code): Don't call compute_immediate_uses or free-df.
1627 * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
1628 PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
1629 * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
1630 (verify_ssa): Ensure no stmt is marked modify after optimization pass
1631 if new parameter is true.
1632 (init_tree_ssa): Don't initialize operand cache here.
1633 (delete_tree_ssa): Don't destroy operand cache here.
1634 (propagate_into_addr): Pass in a use pointer, return true if anything
1636 (replace_immediate_uses): Use imm_use iterator, call update_stmt.
1637 (check_phi_redundancy): Use imm_use iterator.
1638 (kill_redundant_phi_nodes): Don't call compute_immediate_uses or
1640 * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
1641 (release_ssa_name): Delink node and all elements in its imm_use list.
1642 * tree-tailcall.c (adjust_return_value): Call update_stmt.
1643 * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
1644 * tree-vectorizer.c (need_imm_uses_for): Delete.
1645 (vectorize_loops): Dont call compute_immediate_uses or free_df.
1646 * tree.h (struct ssa_imm_use_d): Define.
1647 (SSA_NAME_IMM_USE_NODE): Define.
1648 (struct tree_ssa_name): Add imm_use node.
1650 (PHI_ARG_IMM_USE_NODE): Define.
1651 (struct phi_arg_d): Add imm_use node.
1652 (struct tree_phi_node): Remove struct dataflow_d element.
1653 (TDF_STMTADDR): Define.
1655 2005-04-05 Dale Johannesen <dalej@apple.com>
1657 * doc/invoke.texi (Optimization Options): Remove
1658 duplicate -fcse-follow-jumps. Add -fweb.
1659 (-ftree-lim): Fix spelling (-ftree-loop-im, invariants).
1660 (-fivcanon): Fix spelling (-ftree-loop-ivcanon).
1662 2005-04-05 Per Bothner <per@bothner.com>
1664 * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
1665 to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
1666 (warn_uninit): Get EXPR_LOCUS from context now instead.
1667 This fixes a USE_MAPPED_LOCATION testsuite failure.
1669 * tree-ssa.c (warn_uninitialized_var): Remove useless local.
1671 2005-04-05 Per Bothner <per@bothner.com>
1673 * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
1674 of the artification 'return 0' in main() to BUILTINS_LOCATION.
1675 * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
1678 2004-04-05 Devang Patel <dpatel@apple.com>
1680 * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
1681 (lhsr<mode>3): ... new name.
1682 (altivec_vsra<VI_char>): Rename to ..
1683 (ashr<mode>3): ... new name.
1684 * config/rs6000/rs6000.c (builtin_description): Rename shift
1687 2004-04-05 Paolo Bonzini <bonzini@gnu.org>
1689 * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
1690 gen_lowpart_for_combine.
1691 * cse.c (gen_lowpart_if_possible): Move...
1692 * rtlhooks.c (gen_lowpart_if_possible): ... here. Also try
1694 (gen_lowpart_no_emit_general): Use it.
1696 2005-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1698 * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
1701 2005-04-05 Paolo Bonzini <bonzini@gnu.org>
1703 * system.h: Fix typo.
1705 2005-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
1707 * config/bfin/bfin-modes.def: New file.
1708 * config/bfin/bfin-protos.h: New file.
1709 * config/bfin/bfin.c: New file.
1710 * config/bfin/bfin.h: New file.
1711 * config/bfin/bfin.md: New file.
1712 * config/bfin/bfin.opt: New file.
1713 * config/bfin/crti.s: New file.
1714 * config/bfin/crtn.s: New file.
1715 * config/bfin/elf.h: New file.
1716 * config/bfin/lib1funcs.asm: New file.
1717 * config/bfin/predicates.md: New file.
1718 * config/bfin/t-bfin: New file.
1719 * config/bfin/t-bfin-elf: New file.
1720 * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
1721 Document new attributes.
1722 (interrupt, interrupt_handler, saveall): Update documentation for
1724 * doc/install.texi (Specific): Add entry for the Blackfin.
1725 * doc/invoke.texi (Blackfin Options): New section.
1726 * doc/md.texi (Blackfin family): New section to document constraints.
1727 * config.gcc: Add bfin*-* and bfin*-elf configurations.
1729 2005-04-05 Olivier Hainque <hainque@adacore.com>
1731 * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
1732 match what the system unwinder expects.
1733 * config/mips/mips.c (mips_frame_set): If we're saving the return
1734 address register and the dwarf return address column number differs
1735 from the hard register number, adjust the note reg to refer to the
1738 2004-04-05 Richard Sandiford <rsandifo@redhat.com>
1740 * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
1741 * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
1742 (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
1743 (processor_type): New enum.
1744 (mn10300_processor): New variable.
1745 (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
1746 (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
1747 * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
1748 (PROCESSOR_DEFAULT): New macro.
1749 * config/mn10300/mn10300.c (mn10300_processor): New variable.
1750 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1751 (mn10300_handle_option, mn10300_override_options): New functions.
1752 * config/mn10300/mn10300.opt: New file.
1754 2005-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1755 Sebastian Pop <sebastian.pop@cri.ensmp.fr>
1757 PR tree-optimization/19903
1758 * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
1759 that don't fit in their type after conversion.
1761 2005-04-05 Uros Bizjak <uros@kss-loka.si>
1764 * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
1765 (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
1766 Allocate local stack slots here. Set ix86_optimize_mode_switching.
1767 flag here. Implement using define_insn_and_split.
1768 (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
1769 (frndintxf2_mask_pm_i387): New insn patterns.
1770 (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
1771 Do not set ix86_optimize_mode_switching flag.
1772 (ceilsf2, ceildf2, ceilxf2): Same.
1773 (btruncsf2, btruncdf2, btruncxf2): Same.
1774 (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
1776 2005-04-05 Ian Lance Taylor <ian@airs.com>
1779 * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
1780 i386_pe_record_external_function.
1781 (i386_pe_record_external_function): Update declaration.
1782 * config/i386/winnt.c (struct extern_list): Add decl field.
1783 (i386_pe_record_external_function): Add decl parameter.
1784 (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
1786 * config/i386/i386-protos.h (i386_pe_record_external_function):
1789 2005-04-05 Kazu Hirata <kazu@cs.umass.edu>
1791 * config/m68k/m68k-protos.h: Add a prototype for
1792 valid_dbcc_comparison_p_2.
1793 * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
1794 extend_operator, const_uint32_operand, const_sint32_operand,
1795 general_src_operand, nonimmediate_src_operand,
1796 memory_src_operand, post_inc_operand, pre_dec_operand,
1797 pcrel_address): Move to predicates to predicates.md.
1798 * config/m68k/m68k.h (PREDICATE_CODES): Remove.
1799 * config/m68k/m68k.md: Include predicates.md.
1800 * config/m68k/predicates.md: New.
1802 2005-04-04 Roger Sayle <roger@eyesopen.com>
1804 * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
1806 * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
1808 2005-04-04 Ian Lance Taylor <ian@airs.com>
1810 * c-typeck.c (struct c_switch): Rename switch_stmt field to
1812 (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
1813 (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
1814 (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
1815 Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
1816 * c-common.c (c_do_switch_warnings_1): New static function broken
1817 out of c_do_switch_warnings.
1818 (c_do_switch_warnings): Call c_do_switch_warnings_1.
1819 (c_do_switch_expr_warnings): New function.
1820 * c-common.h (c_do_switch_expr_warnings): Declare.
1822 2005-04-04 David Edelsohn <edelsohn@gnu.org>
1823 Daniel Jacobowitz <dan@codesourcery.com>
1825 * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
1827 * rtlanal.c (may_trap_p): Same.
1829 2005-04-04 Dale Johannesen <dalej@apple.com>
1831 * ChangeLog: remove reference to ChangeLog.12.
1833 2005-04-05 Hans-Peter Nilsson <hp@axis.com>
1835 CRIS epilogue as RTL.
1836 * config/cris/cris.md: Change all 0 in unspec 0 to
1838 (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
1839 ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
1841 ("return"): Change to define_expand. Call cris_expand_return for
1843 ("*return_expanded"): New pattern.
1844 ("epilogue"): New define_expand.
1845 * config/cris/cris.h (PREDICATE_CODES): Add
1846 cris_load_multiple_op.
1847 * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
1849 (enum cris_retinsn_type): New.
1850 (struct machine_function): New member return_type.
1851 (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
1852 (cris_target_asm_function_epilogue): Remove, moving RTLified
1854 (cris_expand_epilogue): New function.
1855 (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
1856 (cris_gen_movem_load, cris_load_multiple_op)
1857 (cris_return_address_on_stack_for_return, cris_expand_return): New
1859 (cris_target_asm_function_prologue)
1860 (cris_initial_frame_pointer_offset): Call
1861 cris_reg_saved_in_regsave_area instead of complicated expression.
1862 Call cris_return_address_on_stack instead of an expression.
1863 (cris_print_operand) <case 'o', case 'O'>: New cases.
1864 (cris_return_address_on_stack): Change return-type to bool.
1865 (cris_simple_epilogue): Ditto. Return false if registers are
1867 * config/cris/cris-protos.h (cris_simple_epilogue)
1868 (cris_return_address_on_stack): Adjust prototype return type.
1869 (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
1870 (cris_return_address_on_stack_for_return): New prototypes.
1872 2005-04-04 Kazu Hirata <kazu@cs.umass.edu>
1874 * config/frv/frv.h (PREDICATE_CODES): Add CONST to
1875 gpr_or_int12_operand.
1877 * config/frv/frv-protos.h: Add a prototype to
1878 frv_legitimate_memory_operand and frv_const_unspec_p.
1879 (frv_unspec): Move from frv.c.
1880 * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
1881 (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
1882 (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
1883 gpr_or_fpr_operand, gpr_or_int12_operand,
1884 gpr_fpr_or_int12_operand, fpr_or_int6_operand,
1885 gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
1886 int6_operand, int5_operand, uint5_operand, uint4_operand,
1887 uint1_operand, int_2word_operand, uint16_operand,
1888 upper_int16_operand, integer_register_operand,
1889 gpr_no_subreg_operand, fpr_operand, even_reg_operand,
1890 odd_reg_operand, even_gpr_operand, odd_gpr_operand,
1891 quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
1892 dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
1893 move_destination_operand, movcc_fp_destination_operand,
1894 frv_function_symbol_referenced_p, move_source_operand,
1895 condexec_dest_operand, condexec_source_operand,
1896 reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
1897 const_unspec_operand, gpr_or_memory_operand,
1898 gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
1899 icc_operand, fcc_operand, cc_operand, icr_operand,
1900 fcr_operand, cr_operand, call_operand, sibcall_operand,
1901 symbolic_operand, relational_operator,
1902 integer_relational_operator, float_relational_operator,
1903 ccr_eqne_operator, minmax_operator,
1904 condexec_si_binary_operator, condexec_si_media_operator,
1905 condexec_si_divide_operator, condexec_si_unary_operator,
1906 condexec_sf_conv_operator, condexec_sf_add_operator,
1907 condexec_memory_operand, intop_compare_operator, acc_operand,
1908 even_acc_operand, quad_acc_operand, accg_operand: Move to
1910 * config/frv/frv.h (PREDICATE_CODES): Remove.
1911 * config/frv/frv.md: Include predicates.md.
1912 * config/frv/predicates.md: New.
1914 2004-04-04 Richard Sandiford <rsandifo@redhat.com>
1917 * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
1918 * tree-ssa-loop-ivopts.c: Include langhooks.h.
1919 (add_standard_iv_candidates_for_size): New function, extracting code
1920 from add_standard_iv_candidates and parameterizing it by type size.
1921 (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
1923 2004-04-04 Richard Sandiford <rsandifo@redhat.com>
1925 * system.h (GCOV_SIZE_TYPE): Unposion.
1926 * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
1927 (GCOV_TYPE_SIZE): ...this new macro.
1928 * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
1929 * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
1930 (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
1931 (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
1932 (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
1933 instead of unsigned_intSI_type_node.
1934 * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
1935 (rtl_gen_one_value_profiler_no_edge_manipulation)
1936 (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
1937 * value-prof.c: Include coverage.h.
1939 2005-04-02 Daniel Berlin <dberlin@dberlin.org>
1940 Diego Novillo <dnovillo@redhat.com>
1942 Fix PR tree-optimization/20703
1943 Fix PR tree-optimization/20725
1945 * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
1946 (create_expression_by_pieces): Ditto.
1947 (valid_in_set): Ditto. Also handle tcc_declaration.
1948 (find_or_generate_expression): Handle comparison class.
1949 (insert_into_preds_of_block): Ditto.
1950 (insert_aux): Ditto.
1951 (create_value_expr_from): Handle comparison class, recursively
1952 handle reference nodes.
1953 (compute_avail): Handle comparison classes, rewrite a little cleaner.
1954 (execute_pre): Fix spacing.
1955 (do_fre): Renamed to execute_fre.
1957 2005-04-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1959 * doc/invoke.texi (SPARC options): Document that
1960 -mlittle-endian is not supported on Linux either.
1962 2005-04-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1966 * config.gcc (Obsolete configurations): Remove
1967 sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
1968 (sparclite-*-coff*): Delete.
1969 (sparclite-*-elf*): Likewise.
1970 (sparc86x-*-elf*): Likewise.
1971 (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
1972 * config/sparc/lite.h: Delete.
1973 * config/sparc/litecoff.h: Likewise.
1974 * config/sparc/liteelf.h: Likewise.
1975 * config/sparc/sp86x-elf.h: Likewise.
1976 * config/sparc/t-sparclite: Likewise.
1977 * config/sparc/t-sp86x: Likewise.
1979 2005-04-04 Adrian Straetling <straetling@de.ibm.com>
1981 * config/s390/s390-protos.h: (s390_comparison,
1982 s390_alc_comparison, s390_slb_comparison, const0_operand,
1983 consttable_operand, larl_operand, s_operand,
1984 shift_count_operand, bras_sym_operand, load_multiple_operation,
1985 store_multiple_operation, s390_plus_operand): Remove prototypes.
1986 (s390_legitimate_address_without_index_p): New prototype.
1987 * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
1989 (s390_comparison, s390_alc_comparison, s390_slb_comparison,
1990 const0_operand, consttable_operand, larl_operand, s_operand,
1991 shift_count_operand, bras_sym_operand, load_multiple_operation,
1992 store_multiple_operation, s390_plus_operand): Move to
1994 (check_mode): Remove.
1995 (s390_branch_condition_mask): Remove 'static'. Move prototype to
1997 (s390_legitimate_address_without_index_p): New.
1998 * config/s390/s390.h (PREDICATE_CODES): Remove.
1999 * config/s390/s390.md: Include predicates.md.
2000 * config/s390/predicates.md: New.
2002 2005-04-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2005 * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
2006 * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
2007 (NEED_INDICATE_EXEC_STACK): Define to 1.
2008 * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
2009 (NEED_INDICATE_EXEC_STACK): Define to 1.
2010 * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
2011 (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
2012 (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
2013 (pic_helper_emitted_p): New global.
2014 (emit_pic_helper): New function extracted from...
2015 (load_pic_register): ...here. Add 'delay_pic_helper' parameter.
2016 Do not call emit_pic_helper if delay_pic_helper is true.
2017 (sparc_expand_prologue): Pass 'false' to load_pic_register.
2018 (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
2019 (sparc_file_end): New function.
2021 2005-04-04 Kazu Hirata <kazu@cs.umass.edu>
2023 * config/mcore/mcore-protos.h: Remove the prototypes for
2024 mcore_arith_reg_operand, mcore_general_movsrc_operand,
2025 mcore_general_movdst_operand, mcore_reload_operand,
2026 mcore_arith_J_operand, mcore_arith_K_operand,
2027 mcore_arith_K_operand_not_0, mcore_arith_M_operand,
2028 mcore_arith_K_S_operand, mcore_arith_imm_operand,
2029 mcore_arith_any_imm_operand, mcore_arith_O_operand,
2030 mcore_literal_K_operand, mcore_addsub_operand,
2031 mcore_compare_operand, mcore_load_multiple_operation,
2032 mcore_store_multiple_operation, mcore_call_address_operand.
2033 Add a prototype for const_ok_for_mcore.
2034 * config/mcore/mcore.c (mcore_call_address_operand,
2035 mcore_general_movsrc_operand, mcore_general_movdst_operand,
2036 mcore_arith_reg_operand, mcore_reload_operand,
2037 mcore_arith_J_operand, mcore_arith_K_operand,
2038 mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
2039 mcore_arith_M_operand, mcore_arith_imm_operand,
2040 mcore_arith_any_imm_operand, mcore_arith_O_operand,
2041 mcore_literal_K_operand, mcore_addsub_operand,
2042 mcore_compare_operand, mcore_load_multiple_operation,
2043 mcore_store_multiple_operation): Move to predicates.md.
2044 (const_ok_for_mcore): Export.
2045 * config/mcore/mcore.h (PREDICATE_CODES): Remove.
2046 * config/mcore/mcore.md: Include predicates.md.
2047 * config/mcore/predicates.md: New.
2049 * config/mcore/predicates.md: Fix a comment typo.
2051 2005-04-04 Andreas Krebbel <krebbel1@de.ibm.com>
2052 Adrian Straetling <straetling@de.ibm.com>
2054 * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
2055 * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
2056 * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
2058 ("imul"): Removed from "type" attribute.
2059 ("*muldi3_sign", "muldi3"): Changed type to imuldi.
2060 ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"):
2061 Changed type to imulsi.
2062 ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
2064 2005-04-04 Richard Sandiford <rsandifo@redhat.com>
2066 * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
2067 (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
2068 (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
2069 (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
2070 (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
2071 (TARGET_SWITCHES, mcore_stack_increment_string)
2072 (TARGET_OPTIONS): Delete.
2073 (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
2074 than *_BIT constants.
2075 (TARGET_8ALIGN): #undef old definition before redefining to 1.
2076 * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
2077 (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
2078 (mcore_override_options): Delete mcore_stack_increment code.
2079 Change use of M340_BIT to MASK_M340.
2080 * config/mcore/mcore.opt: New file.
2082 2005-04-04 Ian Lance Taylor <ian@airs.com>
2084 * config/arm/arm.c (replace_symbols_in_block): Remove static
2087 2005-04-04 Kazu Hirata <kazu@cs.umass.edu>
2089 * config/fr30/fr30-protos.h: Remove the prototypes for
2090 stack_add_operand, add_immediate_operand,
2091 high_register_operand, low_register_operand, call_operand,
2092 di_operand, and nonimmediate_di_operand.
2093 * config/fr30/fr30.c (stack_add_operand,
2094 add_immediate_operand, high_register_operand,
2095 low_register_operand, call_operand, di_operand,
2096 nonimmediate_di_operand): Move to predicates.md.
2097 * config/fr30/fr30.h (PREDICATE_CODES): Remove.
2098 * config/fr30/fr30.md: Include predicates.md.
2099 * config/fr30/predicates.md: New.
2101 * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
2102 LABEL_REF to mcore_general_movsrc_operand. Add SYMBOL_REF to
2103 mcore_call_address_operand.
2105 * config/sh/sh.h (PREDICATE_CODES): Add CONST to
2106 general_movsrc_operand.
2108 2005-04-04 Alan Modra <amodra@bigpond.net.au>
2110 * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
2113 2005-04-04 Richard Earnshaw <richard.earnshaw@arm.com>
2116 * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
2119 2005-04-04 Richard Henderson <rth@redhat.com>
2120 Jakub Jelinek <jakub@redhat.com>
2122 PR rtl-optimization/16104
2123 * fold-const.c (fold_unary): Fix folding of vector conversions.
2125 2005-04-04 Richard Sandiford <rsandifo@redhat.com>
2127 * config.gcc (xstormy16-*-elf): Set extra_options.
2128 * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
2129 * config/stormy16/stormy16.opt: New file.
2131 2005-04-04 Richard Sandiford <rsandifo@redhat.com>
2133 * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
2134 (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
2135 (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
2136 (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
2137 (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
2138 (TARGET_UNIX_ASM): Delete.
2139 (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
2140 * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
2141 * config/pdp11/pdp11.c (pdp11_handle_option): New function.
2142 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2143 * config/pdp11/pdp11.opt: New file.
2145 2005-04-03 Roger Sayle <roger@eyesopen.com>
2146 Alexandre Oliva <aoliva@redhat.com>
2149 * fold-const.c (non_lvalue): Split tests into...
2150 (maybe_lvalue_p): New function.
2151 (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
2152 C++ front-end prior to lowering into gimple form.
2154 2005-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2156 * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
2157 BUILT_IN_STRNCASECMP): New.
2158 * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
2161 2005-04-03 Richard Earnshaw <richard.earnshaw@arm.com>
2164 * arm.md (addsi3_compare0_for_combiner): Delete.
2165 (addsi3_compare0_scratch_for_combiner): Delete.
2166 (cmpsi_neg_shiftsi): Delete.
2167 (compare_negsi_si): New pattern.
2168 (cmpsi_negshiftsi_si): New pattern.
2169 (negated_cbranchsi4): Restrict to equality_operator.
2171 * arm.md (movhi_insn_arch4): delete trailing white space from assembler
2174 2005-04-03 Kazu Hirata <kazu@cs.umass.edu>
2176 * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
2179 * doc/install.texi: Fix a typo.
2181 2005-04-03 Steven Bosscher <stevenb@suse.de>
2184 * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
2185 a computed goto if the edge to the computed goto block has
2186 incoming abnormal edges. Clarify how the function works.
2188 2005-04-03 Nathan Sidwell <nathan@codesourcery.com>
2190 * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
2191 * passes.c (open_dump_file, rest_of_handle_final): Likewise.
2192 * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
2193 hash_scan_set, reg_set_between_after_reload_p,
2194 reg_used_between_after_reload_p, get_avail_load_store_reg,
2195 eliminate_partially_redundant_load): Likewise.
2196 * postreload.c (reload_cse_simplify_set,
2197 reload_combine_note_use): Likewise.
2198 * predict.c (predict_insn, expected_value_to_br_prob,
2199 propagate_freq, expensive_function_p): Likewise.
2200 * print-rtl.c (print_rtx): Likewise.
2201 * profile.c (instrument_edges, instrument_values,
2202 compute_branch_probabilities, branch_prob, union_groups,
2203 tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
2204 * protoize.c (in_system_include_dir, file_could_be_converted,
2205 file_normally_convertible, gen_aux_info_file, seek_to_line,
2206 do_cleaning): Likewise.
2207 * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
2208 * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
2209 * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
2211 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
2213 * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
2214 * modulo-sched.c (undo_replace_buff_elem): New structure.
2215 (kernel_number_of_cycles, ps_unschedule_node,
2216 undo_generate_reg_moves,free_undo_replace_buff,
2217 undo_permute_partial_schedule, loop_single_full_bb_p,
2218 SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
2219 build_loops_structure, get_sched_window): New.
2220 (generate_reg_moves): Return undo_replace_buff_elem and other
2222 (generate_prolog_epilog): Remove old loop versioning.
2223 (sms_schedule): Use loop information and loop_version.
2224 (sms_schedule_by_order): Split part of it to get_sched_window.
2225 * passes.c (rest_of_handle_sms): call cfg_layout_initialize
2226 cfg_layout_finalize and free_dominance_info before/after SMS.
2228 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
2230 * cfghooks.c (lv_flush_pending_stmts,
2231 cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
2232 lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
2233 * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
2234 lv_add_condition_to_bb,
2235 lv_adjust_loop_header_phi, extract_cond_bb_edges,
2236 flush_pending_stmts): New in cfg_hooks structure.
2237 (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
2238 extract_cond_bb_edges, lv_adjust_loop_header_phi,
2239 lv_add_condition_to_bb): New declarations.
2240 * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
2242 (loop_version): Declare.
2243 * cfgloopmanip.c (cfghooks.h): Include.
2244 (duplicate_loop_to_header_edge): Change return type to bool.
2245 (loop_version, lv_adjust_loop_entry_edge): Move here.
2246 * cfgrtl.c (cfgloop.h): Include.
2247 (rtl_verify_flow_info_1): Fix.
2248 (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
2249 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
2251 * tree-cfg.c (tree_lv_adjust_loop_header_phi,
2252 tree_lv_add_condition_to_bb): New.
2253 (tree_cfg_hooks): Add new hooks to initialization.
2254 * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
2255 lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
2257 2005-04-03 Kazu Hirata <kazu@cs.umass.edu>
2259 * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
2260 xstormy16_below100_or_register,
2261 xstormy16_splittable_below100_or_register, and
2262 nonimmediate_nonstack_operand.
2264 * config/stormy16/stormy16-protos.h: Remove the prototypes for
2265 xstormy16_ineqsi_operator, equality_operator,
2266 inequality_operator, shift_operator,
2267 xstormy16_below100_operand, xstormy16_below100_or_register,
2268 xstormy16_splittable_below100_or_register,
2269 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
2270 * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
2271 equality_operator, inequality_operator,
2272 xstormy16_below100_operand, xstormy16_below100_or_register,
2273 xstormy16_splittable_below100_or_register,
2274 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
2275 nonimmediate_nonstack_operand, shift_operator): Move to
2277 * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
2278 * config/stormy16/stormy16.md: Include predicates.md.
2279 * config/stormy16/predicates.md: New.
2281 2005-04-02 Kazu Hirata <kazu@cs.umass.edu>
2283 * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
2284 small_int, large_int, reg_or_0_operand, simple_memory_operand,
2285 equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
2286 move_operand, power_of_2_operand): Move to predicates.md.
2287 * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
2288 PREDICATE_CODE): Remove.
2289 * config/iq2000/iq2000.md: Include predicates.md.
2290 * config/iq2000/predicates.md: New.
2292 2005-04-02 Richard Sandiford <rsandifo@redhat.com>
2294 * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
2295 (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
2296 (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
2297 (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
2298 (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
2299 (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
2300 (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
2301 (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
2302 (TARGET_M68HC11): Delete.
2303 (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
2304 * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
2305 * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
2306 (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
2307 (nb_soft_regs): Delete.
2308 (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
2309 (m68hc11_override_options): Remove the code that caters for MASK_M6811
2310 and MASK_M6812 being set simultaneously. Change the code that sets
2311 the default m68hc11_soft_reg_count to use integers instead of strings.
2312 (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
2313 m68hc11_soft_reg_count (which now has an int type) as the number
2315 * config/m68hc11/m68hc11.opt: New file.
2317 2005-04-02 Kazu Hirata <kazu@cs.umass.edu>
2319 * config/fr30/fr30.h (PREDICATE_CODES): Remove
2320 fp_displacement_operand, sp_displacement_operand.
2322 * config/m68hc11/m68hc11-protos.h: Add a prototype for
2324 Remove the prototypes for tst_operand, cmp_operand,
2325 stack_register_operand, d_register_operand,
2326 hard_addr_reg_operand, splitable_operand,
2327 m68hc11_logical_operator, m68hc11_arith_operator,
2328 m68hc11_non_shift_operator, m68hc11_shift_operator,
2329 m68hc11_unary_operator, m68hc11_eq_compare_operator,
2330 non_push_operand, hard_reg_operand, and
2331 reg_or_some_mem_operand.
2332 * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
2334 (tst_operand, cmp_operand, non_push_operand,
2335 splitable_operand, reg_or_some_mem_operand,
2336 stack_register_operand, d_register_operand,
2337 hard_addr_reg_operand, hard_reg_operand,
2338 m68hc11_eq_compare_operator, m68hc11_logical_operator,
2339 m68hc11_arith_operator, m68hc11_non_shift_operator,
2340 m68hc11_shift_operator, m68hc11_unary_operator): Move to
2342 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
2343 * config/m68hc11/m68hc11.md: Include predicates.md.
2344 * config/m68hc11/predicates.md: New.
2346 2005-04-02 Alexandre Oliva <aoliva@redhat.com>
2349 * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
2350 change checked in along with 2005-03-03's patch for debug/20253.
2351 * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
2352 (remap_decl): Insert type decl in map earlier.
2354 2005-04-02 Alexandre Oliva <aoliva@redhat.com>
2356 PR tree-optimization/20640
2357 * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
2358 post-dominator if it has phi nodes.
2359 (eliminate_unnecessary_stmts): Remove dead phis in all blocks
2360 before dead statements.
2362 2005-04-02 Alexandre Oliva <aoliva@redhat.com>
2365 * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
2367 2005-04-02 Alexandre Oliva <aoliva@redhat.com>
2369 PR rtl-optimization/20290
2370 * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
2371 in every iteration if the entry point is the exit test.
2373 2005-04-02 Hans-Peter Nilsson <hp@axis.com>
2375 * config/cris/cris.md (attribute "length"): Define.
2377 2005-04-02 Geoffrey Keating <geoffk@apple.com>
2379 * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
2380 (word_offset_memref_operand): New.
2381 * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
2382 (indexed_or_indirect_operand): Delete.
2383 * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
2384 (indexed_or_indirect_operand): Delete.
2386 * config/rs6000/t-darwin8: Comment out ppc64 multilib.
2389 * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
2392 * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
2393 * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
2395 2005-04-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2397 * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
2399 2005-04-01 Ian Lance Taylor <ian@airs.com>
2401 * gcc.c: Don't include <sys/resource.h> or declare getrusage.
2402 (rus, prus): Remove static variables.
2403 (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
2404 (process_command): Permit report_times and use_pipes together.
2406 2005-04-01 Joseph S. Myers <joseph@codesourcery.com>
2408 * c-decl.c (validate_proto_after_old_defn): Look at
2409 TYPE_MAIN_VARIANT of argument types.
2411 2005-04-01 Paul Brook <paul@codesourcery.com>
2413 * config/arm/arm.c (thumb_call_via_label): Include space for SP.
2414 (arm_output_function_epilogue): Allow call_via_SP.
2415 (thumb_call_via_reg, arm_file_end): Ditto.
2416 * config/arm/arm.h (struct machine_function): Include space for SP.
2417 (thumb_call_via_label): Update declaration.
2419 2005-04-01 Ian Lance Taylor <ian@airs.com>
2421 * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
2422 doing a peephole optimization, once again put any notes in the
2425 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
2427 * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
2429 2005-04-01 Nathan Sidwell <nathan@codesourcery.com>
2431 * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
2432 (block_alloc, find_free_reg): Likewise.
2433 * loop-doloop.c (doloop_modify): Likewise.
2434 * loop-invariant.c (record_use): Likewise.
2435 * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
2436 get_iv_value, canon_condition, eliminate_implied_condition,
2437 eliminate_implied_condition, simplify_using_initial_values,
2438 shorten_into_mode, canonicalize_iv_subregs,
2439 iv_number_of_iterations): Likewise.
2440 * loop-unroll.c (expand_var_during_unrolling): Likewise.
2441 * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
2442 unswitch_loop): Likewise.
2443 * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
2444 move_movables, replace_call_address, find_and_verify_loops,
2445 rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
2446 record_giv, final_giv_value, general_induction_var,
2447 simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
2448 loop_giv_dump): Likewise.
2450 * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
2451 GCOV_CHECK_WRITING): Remove.
2452 (gcov_position, gcov_rewrite): Use gcc_assert.
2453 * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
2454 gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
2455 * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
2458 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
2460 * tree-inline.c: Fix a typo.
2462 2005-04-01 Nathan Sidwell <nathan@codesourcery.com>
2464 * configure.ac (enable-checking): Explicitly set all variables for
2465 collective switch values. Alphabetize variables. Rename
2466 ac_checking_valgrind to ac_valgrind_checking. Allow 'none' as
2468 * doc/install.texi (enable-checking): Update documentation.
2469 * configure: Rebuilt.
2471 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
2473 * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
2476 2005-04-01 Richard Earnshaw <richard.earnshaw@arm.com>
2478 * arm.c (adjacent_mem_locations): Reject volatile memory refs.
2479 Also reject cases where this pattern will cause load delay stalls
2480 unless optimizing for size and it will produce a shorter sequence.
2481 * arm.md (arith_adjacent_mem): Make better use of ldm addressing
2482 variants to avoid pre-adjusting the base when possible.
2484 2005-04-01 Richard Earnshaw <richard.earnshaw@arm.com>
2486 * arm.md (minmax_arithsi): Reject all eliminable registers, not just
2487 the frame and argument pointers.
2488 (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
2489 (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
2490 (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
2491 (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
2492 (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
2493 (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
2495 2005-04-01 Danny Smith <dannysmith@users.sourceforge.net>
2497 * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
2498 with entry for selectany attribute.
2499 * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
2501 * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
2502 (i386_pe_asm_named_section): Handle sections generated by
2503 selectany attribute.
2504 * doc/extend.texi (selectany): Document attribute.
2506 2005-04-01 Paolo Bonzini <bonzini@gnu.org>
2507 Jan Hubicka <jh@suse.cz>
2509 * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
2510 to fix addresses involving EBP and ESP.
2511 (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
2512 for SUBREGed registers.
2513 (legitimate_address_p): Accept SUBREGed registers.
2515 2005-04-01 Jakub Jelinek <jakub@redhat.com>
2518 * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
2519 (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
2522 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
2524 * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
2526 2005-04-01 James E Wilson <wilson@specifixinc.com>
2529 * dwarf2out.c (rtl_for_decl_init): New function.
2530 (rtl_for_decl_location): Extracted from here.
2531 (tree_add_const_value_attribute): Call rtl_for_decl_init and
2532 add_const_value_attribute. Delete initializer_constant_valid_p call.
2534 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
2536 * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
2537 lambda-code.c, loop.c, machmode.def, mips-tfile.c,
2538 modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
2539 tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
2540 config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
2541 config/i386/i386.md, config/rs6000/predicates.md,
2542 config/rs6000/rs6000.c, config/s390/fixdfdi.h,
2543 config/s390/s390.c, config/stormy16/stormy16.c,
2544 config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
2547 2005-04-01 Joseph S. Myers <joseph@codesourcery.com>
2550 * gimplify.c (gimplify_expr): Create a temporary for lvalue
2551 COND_EXPR and CALL_EXPR.
2553 2005-03-31 Vladimir Makarov <vmakarov@redhat.com>
2556 * genautomata.c (first_cycle_unit_presence): Check all alternative
2557 states for unit presence.
2559 * doc/md.texi: Remove remark about impossibility to query unit
2560 presence in non nondeterministic automaton state.
2562 * config/ia64/ia64.c (get_template): Change order of unit querying.
2564 2005-03-31 Kazu Hirata <kazu@cs.umass.edu>
2566 * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
2569 2005-03-31 Zdenek Dvorak <dvorakz@suse.cz>
2571 * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
2572 flag for edges outside any loops.
2574 2005-03-31 Janis Johnson <janis187@us.ibm.com>
2576 * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
2578 2005-03-31 Kazu Hirata <kazu@cs.umass.edu>
2580 * tree-ssa-alias.c: Follow spelling conventions.
2581 * doc/tree-ssa.texi: Fix a typo.
2583 2005-03-31 J"orn Rennecke <joern.rennecke@st.com>
2585 * postreload-gcse.c: Include target.h.
2586 (gcse_after_reload_main): Return early if we cannot modify jumps.
2587 * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
2589 2005-03-31 David Edelsohn <edelsohn@gnu.org>
2591 * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
2592 expensive operations.
2594 2005-03-31 Ian Lance Taylor <ian@airs.com>
2596 * collect2.c (lderrout): New variable.
2597 (collect_exit): Dump ldout to stdout. Dump and unlink lderrout,
2598 if it is set, to stderr.
2599 (handler): Unlink lderrout if it is set.
2600 (dump_file): Add "to" parameter. Change all callers.
2601 (main): Initialize lderrout.
2602 (collect_execute): Add errname parameter. Change all callers.
2603 Rename redir parameter to outname. Never pass
2604 PEX_STDERR_TO_STDOUT to pex_run.
2605 * collect2.h (collect_execute, dump_file): Update declarations.
2606 * tlink.c (tlink_execute): Add errname parameter. Change all
2608 (do_tlink): Check lderrout as well as ldout.
2610 2005-03-31 Caroline Tice <ctice@apple.com>
2612 * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
2613 (bb-reorder.o): Add errors.h to list of requirements.
2614 (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
2615 profiledbootstrap flags.
2616 * bb-reorder.c (errors.h): Add new include.
2617 (struct bbro_basic_block_data_def): Add new field, in_trace.
2618 (add_unlikely_executed_notes): Remove function.
2619 (mark_bb_for_unlikely_executed_section): Remove function.
2620 (insert_section_boundary_note): New function.
2621 (verify_hot_cold_block_grouping): New function.
2622 (push_to_next_round_p): Remove variables and tests that push all
2623 cold blocks to last round.
2624 (find_traces): Remove code that added extra round of trace finding
2625 when doing partitioning.
2626 (find_traces_1_round) : Remove variable last_round; add code to
2627 update new struct field, in_trace; correct trace_length where it was
2628 incorrect before (after call to copy_bb); change code that pushed all
2629 cold blocks to last round. Instead verify that all blocks going into
2630 a trace belong in the same partition.
2631 (connect_traces): Modify to connect the traces in two passes, if the
2632 function contains both hot and cold blocks. The first pass connects
2633 all the traces for blocks in the partition that the first block in
2634 the function belongs to; the second pass connnects all the traces
2635 containing blocks that belong in the other partition.
2636 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
2637 code that automatically put the first block in a function into the
2638 hot partition if the function had any hot blocks.
2639 (fix_crossing_unconditional_branches): Check number of succ edges
2640 before attempting to get one.
2641 (fix_edges_for_rarely_executed_code): Update comment describing
2643 (reorder_basic_blocks): Add code to initialize new field (in_trace);
2644 remove call to add_unlikely_executed_notes; add call to
2645 verify_hot_cold_block_grouping.
2646 (duplicate_computed_gotos): Don't change computed goto if it's a
2648 (partition_hot_cold_basic_blocks): Update function comment.
2649 * cfgcleanup.c (try_simplify_condjump): Remove redundacy from
2651 (try_forward_edges): Likewise.
2652 (merge_blocks_move_predecessor_nojumps): Likewise.
2653 (merge_blocks_move_successor_nojumps): Likewise.
2654 (merge_blocks_move): Likewise.
2655 (try_crossjump_bb): Likewise.
2656 * cfglayout.c (update_unlikely_executed_notes): Remove function.
2657 (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
2658 notes to cold bb's; remove call to update_unlikely_executed_notes.
2659 (duplicate_insn_chain): change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
2660 NOTE_INSN_SWITCH_TEXT_SECTIONS.
2661 * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
2662 function declaration.
2663 * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
2665 (rtl_can_merge_blocks): Remove redundancy from condition.
2666 (try_redirect_by_replacing_jump): Likewise.
2667 (force_nonfallthru_and_redirect): Remove code for adding
2668 UNLIKELY_EXECUTED_CODE notes to cold bb's.
2669 (commit_one_edge_insertion): Likewise.
2670 (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
2671 * dbxout.c (FORCE_TEXT): Replace function_section with
2672 current_function_section.
2673 (struct dbx_debug_h): Add do_nothing function for new debug_hooks
2674 function, switch_text_section.
2675 (struct xcoff_debug): Likewise.
2676 (dbxout_function_end): Add code to put out label diffs for both
2677 hot and cold sections.
2678 * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
2679 for new debug_hooks funciton, switch_text_section..
2680 * debug.h (struct gcc_debug_hooks): Add new function to debug_hooks,
2681 switch_text_section.
2682 * dwarf2out.c (struct dw_fde_struct): Add five new fields:
2683 dw_fde_hot_section_label, dw_fde_hot_section_end_label,
2684 dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and
2685 dw_fde_switched_sections.
2686 (output_call_frame_info): Add test to see if function switches text
2687 sections in the middle; if so, use appropriate extra hot and cold
2688 section labels to compute size deltas for the hot and cold sections.
2689 (dwarf2out_begin_prologue): Add code to initialize new fields in
2691 (dwarf2out_switch_text_section): New function (invoked through
2692 debug_hook); updates new fields in dw_fde_struct appropriately and
2693 increments separate_line_info_table_in_use.
2694 (dwarf2_debug_hooks): Initialize switch_text_section function to be
2695 dwarf2out_switch_text_section.
2696 (struct var_loc_node): Add new field, section_label.
2697 (output_aranges): Add code to check whether in hot or cold section and
2698 use the appropriate label in calculating deltas.
2699 (output_ranges): Likewise.
2700 (output_line_info): Add code to check which section we're in and
2701 use appropriate hot/cold label.
2702 (add_location_or_constant_value_attribute): Likewise.
2703 (gen_subprogam_die): Modify arange attributes to use correct labels.
2704 (dwarf2out_begin_block): Change call to function_section into call to
2705 current_function_section.
2706 (dwarf2out_end_block): Likewise.
2707 (dwarf2out_source_line): Likewise.
2708 (dwarf2out_var_location): Add code to check whether in hot or cold
2709 section and use the appropriate label.
2710 * except.c (output_function_exception_table): Change call to
2711 function_section into call to current_function_section.
2712 * final.c (profile_function): Likewise.
2713 (scan_ahead_for_unlikely_executed_note): Remove function.
2714 (final_scan_insn): Remove calls to
2715 scan_ahead_for_unlikely_executed_note, and related code for switching
2716 to cold section, except for the single time
2717 NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered; add calls to
2718 debug_hooks->switch_text_sections; replace appropriate calls to
2719 function_section with calls to current_function_section.
2720 * ifcvt.c (find_if_case_1): Remove redundancy from condition, add
2721 test_bb to condition.
2722 (find_if_case_2): Likewise.
2723 * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
2724 NOTE_INSN_SWITCH_TEXT_SECTIONS. Update comment appropriately.
2725 * opts.c (decode_options): Change warning about hot/cold partitioning
2726 with exceptionss to inform (so as not to cause bootstrap failures);
2727 remove warning about partitioning with DWARF debug info.
2728 * output.h (current_function_section): Add new function decl.
2729 (insert_section_boundary_note): Likewise.
2730 (enum in_section): Move this declaration here from varasm.c.
2731 (unlikely_section_label): Likewise.
2732 (unlikely_text_section_name): Likewise.
2733 (last_text_section_name): New global variable.
2734 (last_text_section): Likewise.
2735 (hot_section_label): Likewise.
2736 (hot_section_end_label): Likewise.
2737 (cold_section_end_label): Likewise.
2738 * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
2739 * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
2740 to NOTE_INSN_SWITCH_TEXT_SECTIONS.
2741 * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note
2742 insn from consideration.
2743 * sdbout.c (sdb_debug_hooks): Add do_nothing for new function,
2744 switch_text_section.
2745 * varasm.c (basic-block.h): Add new include.
2746 (unlikely_section_label_printed): Remove global variable.
2747 (unlikely_section_label): Make global variable not be static any more.
2748 (unlikely_text_section_name): Likewise.
2749 (hot_section_end_label): New global variable (not static)
2750 (first_function_block_is_cold): Likewise.
2751 (hot_section_label): Likewise.
2752 (cold_section_end_label): Likewise..
2753 (last_text_section): New global variable, not static.
2754 (last_text_section_name): New global variable, not static.
2755 (initialize_cold_section_name): New function.
2756 (enum in_section): Move declaration to output.h.
2757 (text_section): Update last_text_section.
2758 (unlikely_text_section): Replace code to determine cold section name
2759 with call to initialize_cold_section_name; Add code to update
2760 last_text_section; remove code for printing out label.
2761 (named_section_real): Add code to update last_text_section and
2762 last_text_section_name as appropriate.
2763 (function_section): Change test for 'unlikely' to depend on
2764 first_function_block_is_cold (moved old test to
2765 current_function_section).
2766 (current_function_section): New function.
2767 (assemble_start_function): Move code that frees
2768 unlikely_text_section_name; initialize hot_section_end_label;
2769 print hot and cold section labels at the start of the function;
2770 set first_function_block_is_cold, if appropriate; initialize l
2771 ast_text_section; add call to insert_section_boundary_note.
2772 (assemble_end_function): Add code to write out hot and cold section
2774 *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
2775 switch_text_section.
2776 * config/darwin.c (machopic_select_section): Replace incorrect
2777 function in base_funs; update reloc for cold sections if necessary.
2778 * config/darwin.h (SECTION_FUNCTION): Add code to update
2779 last_text_section if appropriate.
2780 (text_unlikely_section): Remove.
2781 * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
2782 * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
2783 * config/xtensa/xtensa.c (override_options): Turn off hot/cold
2784 partitioning for this architecture.
2786 2005-03-31 Olivier Hainque <hainque@adacore.com>
2788 * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
2789 defined and non-zero.
2791 2005-03-31 Gabriel Dos Reis <gdr@integrable-solutions.net>
2794 * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
2797 2005-03-31 Alan Modra <amodra@bigpond.net.au>
2800 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
2801 label operand. Remove (use (unspec..)). Don't emit a label on
2803 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
2804 generate inline label for load_toc_v4_PIC_1b.
2805 (rs6000_emit_load_toc_table): Likewise.
2807 2005-03-31 Kazu Hirata <kazu@cs.umass.edu>
2809 * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
2810 ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
2812 2005-03-29 Devang Patel <dpatel@apple.com>
2814 * tree-sra.c (decide_block_copy): Disable scalarization of
2817 2005-03-30 Stuart Hastings <stuart@apple.com>
2818 Dale Johannesen <dalej@apple.com>
2820 * Makefile.in (print-tree.o): Depend on tree-iterator.h.
2821 * print-tree.c (print_node): Add case STATEMENT_LIST.
2823 2005-03-31 Alan Modra <amodra@bigpond.net.au>
2825 * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
2826 (powerpc64-*-linux*): Use it. Rearrange tm_file assignment.
2827 (powerpc-*-linux*): Build a biarch compiler when --enable-targets
2828 is given with "powerpc64*" or "all", or when --with-cpu chooses
2831 2005-03-30 James E. Wilson <wilson@specifixinc.com>
2834 * dwarf2out.c (add_high_low_attributes): New function, extracted from
2835 gen_lexical_block_die.
2836 (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
2838 2005-03-31 Jan Hubicka <jh@suse.cz>
2840 2004-11-02 Jan Hubicka <jh@suse.cz>
2842 * cgraph.c (cgraph_varpool_node_name): New function.
2843 (dump_cgraph_varpool_node): New function.
2844 (dump_varpool): New function.
2845 * cgraphunit.c (cgraph_optimize): Dump varpool.
2847 2004-10-16 Jan Hubicka <jh@suse.cz>
2849 * cgraph.c (decide_is_variable_needed): New function.
2850 (cgraph_varpool_finalize_decl): Use it.
2851 * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
2853 * final.c (output_addr_const): Do not call mark_referenced.
2854 * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
2855 always go via cgraph.
2856 * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
2857 (check_global_declarations): Ifdef out code clearing DECL_RTL.
2858 * tree-optimize.c (execute_inline): Mark functions called.
2859 * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
2861 2004-10-11 Jan Hubicka <jh@suse.cz>
2863 * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
2864 (cgraph_varpool_last_needed_node): New static variable.
2865 (enqueue_needed_varpool_node): Break out from ...; add items to the
2866 end of queue; update first pointers.
2867 (cgraph_varpool_mark_needed_node): ... here.
2868 (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
2869 (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
2870 * cgraph.h (cgraph_varpool_node): Add analyzed field.
2871 (cgraph_varpool_first_unanalyzed_node): Declare.
2872 * cgraphunit.c: Include output.h.
2873 (cgraph_varpool_analyze_pending_decls): New function.
2874 (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
2875 for errors, analyze pending decls.
2876 (cgraph_finalize_compilation_unit): Only analyze decls.
2877 (cgraph_optimize): Assemble the decls after expanding.
2879 2005-03-30 Daniel Berlin <dberlin@dberlin.org>
2881 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
2882 subvars get marked properly in tags for grouping.
2883 (add_pointed_to_var): Mark only actual pointed to
2884 variables/subvars in addresses needed.
2885 (create_overlap_variables_for): Clear call clobbered on original
2887 * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
2888 addresable vars with subvars into list.
2889 * tree-ssa.c (verify_ssa_name): Verify original is not used where
2892 2005-03-30 Richard Henderson <rth@redhat.com>
2894 * cgraph.h (struct cgraph_node): Add alias.
2895 * varasm.c (assemble_alias): Set it.
2896 * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
2897 avoid calling cgraph_expand_function.
2899 2005-03-30 Tom Tromey <tromey@redhat.com>
2901 * tree.def (FILE_TYPE): Removed.
2902 * typeclass.h (enum type_class): Removed file_type_class.
2903 * dwarf2out.c (is_base_type): Updated.
2904 (gen_type_die): Likewise.
2905 * dbxout.c (dbxout_type): Updated.
2906 * builtins.c (type_to_class): Updated.
2907 * tree.c (type_contains_placeholder_1): Updated.
2908 * config/sparc/sparc.c (sparc_type_code): Updated.
2909 * config/ia64/ia64.c (hfa_element_mode): Updated.
2910 * expr.c (count_type_elements): Updated.
2911 * stor-layout.c (layout_type): Updated.
2912 * tree-inline.c (remap_type): Updated.
2913 * tree-pretty-print.c (dump_generic_node): Updated.
2915 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
2917 * builtins.c (expand_builtin_powi): Fix mode of
2918 2nd argument to match int.
2919 * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
2920 2nd argument type to int.
2921 * libgcc2.c: Change prototype of __powi* functions to use
2924 2005-03-30 Dale Johannesen <dalej@apple.com>
2927 * calls.c (expand_call): Flush pending deferrals before
2930 2005-03-30 Joseph S. Myers <joseph@codesourcery.com>
2934 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
2935 C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
2936 c_label_context, label_context_stack): New.
2937 * c-decl.c (define_label): Check for jumps into statement
2938 expressions. Add label to list of defined labels.
2939 (start_function): Push context on label_context_stack.
2940 (finish_function): Pop context from label_context_stack.
2941 * c-typeck.c (label_context_stack): New.
2942 (c_finish_goto_label): Check for jumps into statement
2943 expressions. Add label to list of jumped to labels.
2944 (struct c_switch): Add blocked_stmt_expr.
2945 (c_start_case): Initialize it.
2946 (do_case): Check it.
2947 (c_finish_case): Verify !blocked_stmt_expr.
2948 (c_begin_stmt_expr): Push context on label_context_stack.
2949 Increment blocked_stmt_expr. Mark labels jumped to from outside
2951 (c_finish_stmt_expr): December blocked_stmt_expr. Mark labels
2952 defined in the statement expression and no longer jumpable to.
2953 Mark labels jumped to from just outside the statement expression
2954 as again definable. Pop context from label_context_stack.
2955 * doc/extend.texi (Statement Exprs): Update.
2957 2005-03-30 Joseph S. Myers <joseph@codesourcery.com>
2960 * c-decl.c (start_function): Check for old_decl being
2963 2005-03-30 Ian Lance Taylor <ian@airs.com>
2965 * final.c (final): Remove prescan parameter. Change all callers.
2966 (final_scan_insn): Remove prescan parameter. Change all callers.
2968 2005-03-30 Kazu Hirata <kazu@cs.umass.edu>
2970 * tree-vectorizer.c: Fix comment typos.
2972 2005-03-30 Sebastian Pop <pop@cri.ensmp.fr>
2974 * tree-scalar-evolution.c (instantiate_parameters_1): Return
2975 as soon as a chrec_dont_know is detected.
2977 2005-03-31 Danny Smith <dannysmith@users.sourceforge.net>
2979 Merge from csl-arm-branch.
2980 2004-02-12 Mark Mitchell <mark@codesourcery.com>
2982 * tlink.c (recompile_files): Do not assume that "rename" can
2983 overwrite an existing file.
2985 2005-03-31 Paolo Bonzini <bonzini@gnu.org>
2987 * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
2988 * gcc/configure: Regenerate.
2990 2005-03-30 Alan Modra <amodra@bigpond.net.au>
2992 * doc/install.texi: Update binutils requirement for powerpc*-linux.
2994 * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
2996 * calls.c (struct arg_data): Update "partial" comment.
2997 (load_register_parameters): Update "nregs" comment.
2999 2005-03-30 Richard Sandiford <rsandifo@redhat.com>
3001 * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
3002 (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
3003 (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
3004 (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
3005 (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
3006 (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
3007 than target_flags & 0.
3008 * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
3009 (iq2000_arch, iq2000_parse_cpu): Delete.
3010 (TARGET_HANDLE_OPTION): Override default.
3011 (iq2000_handle_option): New function.
3012 (override_options): Remove -march= and -mcpu= handling.
3013 * config/iq2000/iq2000.opt: New file.
3015 2005-03-30 Richard Sandiford <rsandifo@redhat.com>
3017 * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
3018 * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
3019 (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
3020 (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
3021 (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
3022 (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
3023 (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
3024 (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
3025 (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
3026 (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
3027 (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
3028 (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
3029 (c4x_rpts_cycles_string, c4x_cpu_version_string)
3030 (TARGET_OPTIONS): Delete.
3031 (c4x_rpts_cycles, c4x_cpu_version): Declare.
3032 (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
3033 (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
3034 * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
3035 (c4x_cpu_version_string): Delete.
3036 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3037 (c4x_handle_option): New function. Map -m3x and -m4x options to the
3038 equivalent -mcpu= option.
3039 (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
3040 Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
3041 TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
3042 or clearing the appropriate MASK_* bit.
3043 (c4x_file_start): Use c4x_cpu_version.
3044 * config/c4x/c4x.opt: New file.
3046 2005-03-30 Richard Sandiford <rsandifo@redhat.com>
3048 * doc/options.texi: Document the new MaskExists flag.
3049 * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
3050 if the option has the MaskExists flag.
3052 2005-03-30 Richard Sandiford <rsandifo@redhat.com>
3054 * opt-functions.awk (flag_set_p, test_flag): New functions.
3055 (switch_flags): Use them.
3056 * opth-gen.awk: Use flag_set_p to check for flags.
3057 * optc-gen.awk: Likewise. Use opt_args to check for Init(...) flags.
3059 2005-03-30 Ian Lance Taylor <ian@airs.com>
3061 * config.host (i[34567]86-*-mingw32*): Don't set
3062 host_can_use_collect2 to no.
3064 2005-03-30 Alan Modra <amodra@bigpond.net.au>
3067 * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
3068 Remove convert_memory_address call duplicating that in memory_address.
3070 2005-03-29 Richard Henderson <rth@redhat.com>
3073 * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
3074 (build_compound_literal): Likewise. Propagate decl type into the
3076 (finish_decl): Likewise. Use new return value from complete_array_type
3077 for zero sized arrays.
3078 (complete_array_type): Move ...
3079 * c-common.c (complete_array_type): ... here. Change first argument
3080 to pointer-to-type-node. Consistently use sizetype for the index
3081 except for zero sized arrays. Detect zero sized arrays for pedantic
3082 mode diagnostics. Create a new type node instead of modifying the
3084 * c-tree.h (complete_array_type): Move decl ...
3085 * c-common.h (complete_array_type): ... here.
3087 2005-03-29 Richard Henderson <rth@redhat.com>
3090 * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
3092 2005-03-29 Kazu Hirata <kazu@cs.umass.edu>
3094 * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
3095 debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
3096 rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
3097 tree-profile.c, tsystem.h, value-prof.h: Update copyright.
3099 2005-03-29 Eric Christopher <echristo@redhat.com>
3101 * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
3102 truthvalue conversion removal.
3104 2005-03-29 Ian Lance Taylor <ian@airs.com>
3107 * collect2.c: Never include <vfork.h>.
3108 (VFORK_STRING, vfork): Don't define.
3109 (pid): Remove global variable.
3110 (handler): Call raise instead of kill (getpid(), ...).
3111 (collect_wait): Add pex parameter. Change all callers. Use
3112 pex_get_status rather than pwait.
3113 (do_wait): Add pex parameter. Change all callers.
3114 (collect_execute): Return struct pex_obj * rather than void. Use
3115 pex routines rather than pexecute.
3116 (fork_execute): Get pex_obj from collect_execute, and pass it to
3118 (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
3119 Only declare quit_handler if SIGQUIT is defined.
3120 (scan_libraries): Likewise.
3121 * collect2.h (collect_execute): Update declaration.
3122 (collect_wait): Update declaration.
3123 * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
3124 pass it to collect_wait.
3126 2005-03-29 Joseph S. Myers <joseph@codesourcery.com>
3129 * c-parser.c (c_parser_compound_statement_nostart): Give error
3130 message for EOF instead of just setting parser->error.
3132 2005-03-29 Dorit Naishlos <dorit@il.ibm.com>
3134 * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
3135 (slpeel_update_phi_nodes_for_guard1): New function.
3136 (slpeel_update_phi_nodes_for_guard2): New function.
3137 (slpeel_tree_peel_loop_to_edge): Call above new functions instead
3138 of slpeel_update_phi_nodes_for_guard.
3139 (vectorize_loops): Remove call to loop_closed_rewrite.
3140 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
3143 2005-03-29 Richard Sandiford <rsandifo@redhat.com>
3145 * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
3146 (TARGET_LITTLE_ENDIAN): New macro.
3147 * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
3148 (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
3149 (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
3150 (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
3151 (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
3152 (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
3153 (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
3154 (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
3155 (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
3156 (TARGET_OPTIONS): Delete.
3157 (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
3158 (CACHE_FLUSH_TRAP): Turn into an integer.
3159 (TARGET_LITTLE_ENDIAN): Define to 0 by default.
3160 (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
3161 -mflush-trap is in use.
3162 * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
3163 (m32r_cache_flush_trap_string): Delete.
3164 (m32r_model) Initialize to M32R_MODEL_DEFAULT.
3165 (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
3166 (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
3167 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3168 (m32r_handle_option): New function. Move -mflush-trap=, -mflush-func=,
3169 -mmodel= and -msdata= handling from...
3170 (m32r_init): ...here.
3171 * config/m32r/m32r.opt: New file.
3173 2005-03-29 Keith Besaw <kbesaw@us.ibm.com>
3175 * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
3176 (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
3177 * tree-vect-analyze.c (vect_object_analysis): additional parm
3178 pass back a "struct ptr_info_def *" with the points-to info.
3179 (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
3180 statement using info returned from vect_object_analysis.
3181 * tree-vect-transform.c (update_vuses_to_preheader): New function.
3182 (vect_create_data_ref_ptr): Remove updates to vars_to_rename
3183 for virtual uses and defs when creating a replacement vector
3184 reference. Call duplicate_ssa_name_ptr_info to define points-to
3185 info for vector pointer replacement using STMT_VINFO_PTR_INFO.
3186 (vectorizable_store): copy_virtual_operands and update
3187 definition statements.
3188 (vectorizable_load): copy_virtual_operands. Remove call to
3189 mark_call_clobbered_vars_to_rename for call to "const" builtin.
3190 * tree-vectorizer.c (vectorize_loops): Remove calls to
3191 rewrite_into_ssa and bitmap_clear (vars_to_rename).
3192 (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
3193 * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
3194 define macro STMT_VINFO_PTR_INFO for use in accessing.
3195 * tree.h add export of duplicate_ssa_name_ptr_info.
3196 * rs6000.c (altivec_init_builtins): Declare builtin function
3197 __builtin_altivec_mask_for_load to be "const".
3199 2005-03-29 Jakub Jelinek <jakub@redhat.com>
3202 * cgraph.h (struct cgraph_varpool_node): Add alias field.
3203 * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
3204 assemble_variable on aliases.
3205 * varasm.c (assemble_alias): Set node->alias.
3206 * toplev.c (wrapup_global_declarations): Don't call
3207 rest_of_decl_compilation on aliases again.
3209 2005-03-29 Paul Brook <paul@codesourcery.com>
3211 * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
3212 * config/arm/arm.c (arm_dbx_register_number): New function.
3213 * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
3215 2005-03-29 Eric Botcazou <ebotcazou@libertysurf.fr>
3218 * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
3219 the DECL_NAME, not the DECL_ASSEMBLER_NAME.
3221 2005-03-29 Dale Johannesen <dalej@apple.com>
3223 * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
3224 $(TREE_H) and $(COVERAGE_H).
3225 * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
3226 * opts.c (common_handle_option): Enable tree-based value transforms.
3227 * toplev.c (process_options): Ditto.
3228 * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
3229 refers to references to this type.
3230 * tree-flow.h: (struct stmt_ann_d): Add histograms field.
3231 * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
3232 for may_be_more, may_be_less.
3233 (rtl_gen_pow2_profiler): Adjust.
3234 (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
3235 (rtl_gen_one_value_profiler): Adjust.
3236 (rtl_gen_const_delta_profiler): Adjust.
3237 * tree-profile.c (tree_gen_interval_profiler): Implement.
3238 (tree_gen_pow2_profiler): Ditto.
3239 (tree_gen_one_value_profiler): Ditto.
3240 (tree_profiling): New.
3241 (pass_tree_profile): Reference it.
3242 * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
3244 (insn_divmod_values_to_profile): Rename to
3245 rtl_divmod_values_to_profile. Adjust.
3246 (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
3247 (insn_prefetch_values_to_profile): Adjust.
3248 (rtl_value_profile_transformations): Adjust.
3249 (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
3250 (gen_mod_pow2): Rename to rtl_mod_pow2.
3251 (gen_mod_subtract): Rename to rtl_mod_subtract.
3252 (divmod_fixed_value_transform): Rename to
3253 rtl_divmod_fixed_value_transform.
3254 (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
3255 (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
3256 (rtl_find_values_to_profile): Adjust.
3257 (tree_value_profile_transformations): Implement.
3258 (tree_divmod_values_to_profile): New.
3259 (tree_values_to_profile): New.
3260 (tree_divmod_fixed_value): New.
3261 (tree_mod_pow2): New.
3262 (tree_mod_subtract): New.
3263 (tree_divmod_fixed_value_transform): New.
3264 (tree_mod_pow2_value_transform): New.
3265 (tree_mod_subtract_transform): New.
3266 (tree_find_values_to_profile): Implement.
3267 * profile.c (instrument_values): Free histograms.
3268 (compute_value_histograms): Adjust. Implement tree version.
3270 2005-03-29 Uros Bizjak <uros@kss-loka.si>
3272 * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
3273 * config/i386/i386.c (output_fix_trunc): Add new round_mode
3274 variable. Output "fldcw" depending on round_mode.
3275 * config/i386/i386.md (UNSPEC_FIST): New.
3276 (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
3277 New isns patterns to implement lrint and llrint built-ins as x87
3279 (fistdi2, fist<mode>2 splitters): New splitters.
3280 (lrint<mode>2): New expanders.
3282 2005-03-28 Ian Lance Taylor <ian@airs.com>
3284 * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
3285 0 when calling final_scan_insn.
3287 2005-03-28 Jan Hubicka <jh@suse.cz>
3290 * varasm.c (mark_decl_referenced): Do not mark extern inline functions
3293 * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
3294 types where possible.
3296 2005-03-26 Per Bothner <per@bothner.com>
3298 Make -f[no-]show-column also control non-cpp diagnostics.
3299 * c.opt (fshow-column): Move option from here ...
3300 * common.opt (fshow-column): ... to here.
3301 * diagnostic.c (diagnostic_build_prefix): Only print column number
3302 if flag_show_column.
3304 2005-03-27 Steven Bosscher <stevenb@suse.de>
3306 * vax-protos.h (vax_output_int_move, vax_output_int_add,
3307 vax_output_conditional_branch): New prototypes.
3308 * vax.c (vax_output_int_move, vax_output_int_add): New functions,
3309 extracted from vax.md mov and add patterns.
3310 (vax_output_conditional_branch): New function to output conditional
3311 branch instructions.
3312 * vax.md: Use mode macros for arithmetic and mov patterns.
3313 Use code macros for the jump patterns.
3315 2005-03-26 Andrew Pinski <pinskia@physics.uc.edu>
3317 * Makefile.in (libbackend.o): Depend on version files;
3318 add custom generation command.
3320 2005-03-26 Andrew Pinski <pinskia@physics.uc.edu>
3323 * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
3324 sure that we have a REG before getting its REGNO.
3326 2005-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3328 * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
3329 * builtins.def (BUILT_IN_STRNDUP): New.
3331 2005-03-25 Pat Haugen <pthaugen@us.ibm.com>
3333 PR tree-optimization/20470
3334 * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
3337 2005-03-25 Mike Stump <mrs@apple.com>
3339 * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
3342 2005-03-25 Geoffrey Keating <geoffk@apple.com>
3344 * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
3345 Use our own structure definitions.
3347 * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
3348 (fix_truncdfsi2): Allow registers or memory as destination.
3349 When TARGET_PPC_GFXOPT, generate simplified pattern.
3350 (fix_truncdfsi2_internal): Use define_insn_and_split.
3351 (fix_truncdfsi2_internal_gfxopt): New.
3352 (fctiwz): Don't confuse register allocation by giving it no choices.