OSDN Git Service

4ab243cc7034ed1f8cd951dc618332c545a0ef40
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-04-13  Steve Ellcey  <sje@cup.hp.com>
2
3         PR target/20924
4         * config/ia64/ia64.md (divsf3_internal_lat): Generate frcpa with
5         fpsr 0 instead of fpsr 1.
6         (divsf3_internal_thr): Ditto.
7         (divdf3_internal_lat): Ditto.
8         (divdf3_internal_thr): Ditto.
9         (divxf3_internal_lat): Ditto.
10         (divxf3_internal_thr): Ditto.
11
12 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
13
14         PR tree-optimization/20913
15         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Fold COND_EXPR.
16
17         PR tree-optimization/20702
18         * tree-vrp.c (maybe_add_assert_expr): Recurse into
19         dominator children that haven't been walked into.
20
21 2005-04-13  Julian Brown  <julian@codesourcery.com>
22
23         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from
24         being used for symbols with vague linkage when HAVE_GAS_COMDAT_GROUP
25         is true. 
26
27 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
28
29         * basic-block.h, tree-ssa-uncprop.c, varasm.c,
30         config/i386/sse.md: Fix comment typos.
31
32         * genattrtab.c (NULL_ATTR): Remove.
33         * ifcvt.c (NULL_EDGE): Likewise.
34
35         * rtl.h (RTX_EXPR_FIRST, RTX_EXPR_LAST): Remove.
36
37         * rtl.h (NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS,
38         NOTE_PREDICT): Remove.
39
40 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
41
42         * configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
43         * configure: Regenerate.
44         * config.in: Likewise.
45         * system.h: Declare vsnprintf if not already declared.
46
47 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
48
49         * optc-gen.awk: Handle stand-alone Mask records.
50         * opth-gen.awk: Likewise.
51         * doc/options.texi (Option file format): Document them.
52         * config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*,
53         sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt.
54         (sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt.
55         * config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES,
56         MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9,
57         MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS,
58         MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT,
59         MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS,
60         MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete.
61         (TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE,
62         TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS,
63         TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD,
64         TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS,
65         TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS,
66         TARGET_LONG_DOUBLE_128): Likewise.
67         (TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise.
68         (TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise.
69         * config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise.
70         * config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise.
71         * config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise.
72         * config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise.
73         * config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
74         * config/sparc/sparc.c (fpu_option_set): New global.
75         (sparc_handle_option): New function.
76         (sparc_override_options): Test fpu_option_set.
77         (TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT.
78         (TARGET_HANDLE_OPTION): Set to sparc_handle_option.
79         * config/sparc/sparc.opt: New file.
80         * config/sparc/little-endian.opt: Likewise.
81         * config/sparc/long-double-switch.opt: Likewise.
82
83 2005-04-13  Bernd Schmidt  <bernd.schmidt@analog.com>
84
85         * config/bfin/bfin.c (bfin_lib_id_given): New static variable.
86         (bfin_handle_options): Set it if -mshared-library-id= is seen.
87         * config/bfin/bfin.opt (mshared-library-id=): Lose
88         Var(bfin_lib_id_given).
89
90 2005-04-13  Matt Thomas  <matt@3am-software.com>
91  
92         * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
93         defining.
94
95 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
96
97         * rtl.h (CLEAR_RTX_FLAGS): Remove.
98
99         * cgraphunit.c (INSNS_PER_CALL): Remove.
100
101         * tree-ssa-forwprop.c (vars,
102         record_single_argument_cond_exprs,
103         substitute_single_use_vars): Remove.
104         (forward_propagate_into_cond_1, forward_propagate_into_cond):
105         New.
106         (tree_ssa_forward_propagate_single_use_vars): Call
107         forward_propagate_into_cond for each COND_EXPR.
108
109         * tree-inline.c (INSNS_PER_STMT): Remove.
110
111 2005-04-12  Richard Henderson  <rth@redhat.com>
112
113         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Split ...
114         (ix86_expand_sse_fp_minmax): ... from ... 
115         (ix86_expand_fp_movcc): ... here.
116         (ix86_expand_sse_movcc): Rewrite from ix86_split_sse_movcc.
117         * config/i386/i386-protos.h: Update.
118         * config/i386/i386.md (UNSPEC_IEEE_MIN, UNSPEC_IEEE_MAX): New.
119         (sse_setccsf, sse_setccdf): Allow before reload.
120         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): Remove.
121         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): Remove.
122         (ieee_sminsf3, ieee_smaxsf3, ieee_smindf3, ieee_smaxdf3): New.
123         * config/i386/sse.md (andsf3, nandsf3, iorsf3, xorsf3): New.
124         (anddf3, nanddf3, iordf3, xordf3): New.
125
126 2005-04-12  Jeff Law  <law@redhat.com>
127
128         * Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
129         (tree-ssa-uncprop.o): Add dependencies.
130         * tree-cfg.c (remove_useless_stmts_bb, remove_useless_stmts): Remove.
131         * tree-flow.h (remove_useless_stmts): Remove prototype.
132         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
133         remove_useless_stmts.
134         * timevar.def (TV_TREE_SSA_UNCPROP): New timevar.
135         * tree-optimize.c (init_tree_optimization_passes): Add uncprop pass.
136         * tree-pass.h (pass_uncprop): Declare.
137         * tree-ssa-uncprop.c: New file.
138
139 2005-04-12  James E. Wilson  <wilson@specifixinc.com>
140
141         PR target/20670
142         * unwind-ia64.c (uw_intall_context): Add missing load of r27.
143
144 2005-04-12  Caroline Tice  <ctice@apple.com>
145
146         Temporary fix for partitioning problems.
147         * passes.c (rest_of_handle_final): Remove code that 
148         frees unlikely_text_section_name,
149         * varasm.c (assemble_start_function): Test for partitioning
150         flag before writing out section labels.
151         (assemble_end_function): Test for partitioning flag before
152         writing out section labels.
153         
154 2005-04-12  Steven Bosscher  <stevenb@suse.de>
155             Stuart Hastings <stuart@apple.com>
156             Jan Hubicka  <jh@suse.cz>
157
158         * Makefile.in: Add function.h to BASIC_BLOCK_H.  Remove all
159         references to gt-tree-cfg.h.
160         * basic-block.h (struct basic_block_def): Don't skip rbi
161         for garbage collection.
162         (struct reorder_block_def): Make GTY-able.
163         (struct control_flow_graph): New structure.
164         (n_edges, n_basic_blocks, last_basic_block, basic_block_info,
165         BASIC_BLOCK, EXIT_BLOCK_PTR, ENTRY_BLOCK_PTR): No longer vars,
166         but instead defines to the control_flow_graph for cfun.
167         (label_to_block_map): New define, points to the label map of
168         the control_flow_graph for cfun.
169         (n_edges_for_function, n_basic_blocks_for_function,
170         last_basic_block_for_function, basic_block_info_for_function,
171         EXIT_BLOCK_PTR_FOR_FUNCTION, ENTRY_BLOCK_PTR_FOR_FUNCTION,
172         basic_block_info_for_function, label_to_block_map_for_function):
173         Counterparts for the above, taking a struct function as an extra
174         argument.
175         (alloc_rbi_pool, free_rbi_pool): Remove prototypes.
176         * cfg.c: (n_edges, n_basic_blocks, last_basic_block,
177         basic_block_info, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Remove.
178         (alloc_rbi_pool, free_rbi_pool): Remove.
179         (initialize_bb_rbi): Use ggc_alloc_cleared instead of pool_alloc.
180         * cfglayout.c: (cfg_layout_initialize): Don't allocate the rbi pool
181         here...
182         (cfg_layout_finalize) ... and don't free it here.
183         * cfgrtl.c (cfg_layout_delete_block): Zero out rbi so it gets
184         garbage collected.
185         * flow.c (free_basic_block_vars): Set label_to_block_map and
186         n_edges to zero too.
187         * function.h (struct function): Add cfg field.
188         * function.c (allocate_struct_function): Allocate the cfg.
189         * tree-cfg.c (label_to_block_map): Remove.
190         (build_tree_cfg): Don't allocate the rbi pool here...
191         (delete_tree_cfg_annotations): ...and don't free it here.
192         Also don't nullify label_to_block_map for cfun.
193
194 2005-04-12  Caroline Tice  <ctice@apple.com>
195
196         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
197         Revert my patch from April 9.
198         (fix_edges_for_rarely_executed_code): Revert my patch from April 9.
199         (reorder_basic_blocks): Revert my patch from April 9.
200         (insert_section_boundary_note): Revert my patch from April 9.
201         * dbxout.c (dbxout_function_end): Revert my patch from April 9.
202         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): Revert my patch from April 9.
203         (COLD_END_LABEL):  Revert my patch from April 9.
204         (cold_text_section_label):  Revert my patch from April 9.
205         (cold_end_label): Revert my patch from April 9.
206         (dwarf2out_switch_text_section): Revert my patch from April 9.
207         (output_aranges): Revert my patch from April 9.
208         (output_ranges):  Revert my patch from April 9.
209         (output_line_info): Revert my patch from April 9.
210         (add_location_or_const_value_attribute):  Revert my patch from April 9.
211         (dwarf2out_var_location): Revert my patch from April 9.
212         (dwarf2out_init):  Revert my patch from April 9.
213         (dwarf2out_finish): Revert my patch from April 9.
214         * function.h (struct function): Revert my patch from April 9.
215         * opts.c (decode_options): Revert my patch from April 9.
216         * output.h (unlikely_section_label, hot_section_label,
217         hot_section_end_label, cold_section_end_label, 
218         unlikely_text_section_name): Revert my patch from April 9.
219         * passes.c (rest_of_handle_final): Revert my patch from April 9.
220         * varasm.c (unlikely_section_label, hot_section_label,
221         hot_section_end_label, cold_section_end_label,
222         unlikely_text_section_name): Revert my patch from April 9.
223         (initialize_cold_section_name): Revert my patch from April 9.
224         (unlikely_text_section): Revert my patch from April 9.
225         (in_unlikely_text_section): Revert my patch from April 9.
226         (named_section): Revert my patch from April 9.
227         (function_section): Revert my patch from April 9.
228         (current_function_section): Revert my patch from April 9.
229         (assemble_start_function): Revert my patch from April 9.
230         (assemble_end_function): Revert my patch from April 9.
231         (default_section_type_flags_1): Revert my patch from April 9.
232         
233 2005-04-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
234
235         * config/sparc/sparc.h (APPLY_RESULT_SIZE): Set to 24 in 64-bit mode.
236         * config/sparc/sparc.md (untyped_call): Save the registers manually.
237
238         * config/sparc/sparc.c (legitimate_address_p): Use TARGET_ARCH32.
239
240 2005-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
241
242         PR middle-end/20917
243         * config/s390/s390.md ("*set_tp"): Use SET in pattern.
244         ("set_tp_64", "set_tp_31"): Adapt expanded pattern.
245
246 2004-04-12  Richard Henderson  <rth@redhat.com>
247
248         * config/i386/i386.md (UNSPEC_FIX, UNSPEC_MOVA, UNSPEC_SHUFFLE,
249         UNSPEC_PSHUFLW, UNSPEC_PSHUFHW, UNSPEC_ADDSUB, UNSPEC_HADD,
250         UNSPEC_HSUB, UNSPEC_MOVSHDUP, UNSPEC_MOVSLDUP, UNSPEC_MOVDDUP): Remove.
251         (UNSPEC_*, UNSPECV_*): Renumber.
252
253 2005-04-12  Frank Ch. Eigler  <fche@redhat.com>
254
255         PR mudflap/19266
256         From Richard Henderson <rth@redhat.com>:
257         * tree-mudflap.c (mf_build_check_statement_for): Correct block
258         splitting logic.
259
260 2005-04-12  Dorit Naishlos  <dorit@il.ibm.com>
261
262         * tree-cfg.c (tree_verify_flow_info): Use LABEL_EXPR_LABEL.
263
264 2005-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
265
266         * config/bfin/bfin.c (bfin_library_id_string): Remove.
267         (bfin_library_id): New variable.
268         (bfin_expand_prologue): Use bfin_library_id and bfin_lib_id_given
269         instead of bfin_library_id_string.
270         (bfin_handle_option): New function.
271         (override_options): Remove most code to deal with shared library IDs,
272         just check they aren't used without -mid-shared-library.
273         (TARGET_HANDLE_OPTION): Define.
274         * config/bfin/bfin.h (TARGET_OPTIONS): Delete macro.
275         * config/bfin/bfin.opt (mshared-library-id=): New.
276
277 2005-04-12  Kazu Hirata  <kazu@cs.umass.edu>
278
279         * tree-vect-transform.c: Fix comment typos.
280
281 2005-04-12 Mostafa Hagog <mustafa@il.ibm.com>
282
283         * postreload-gcse.c (eliminate_partially_redundant_load): Don't
284         split critical edges when not possible/profitable.
285
286 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
287
288         * config/ns32k/ns32k.h (target_flags, MASK_32081, MASK_RTD)
289         (MASK_REGPARM, MASK_32532, MASK_32332, MASK_NO_SB, MASK_NO_BITFIELD)
290         (MASK_HIMEM, MASK_32381, MASK_MULT_ADD, MASK_SRC, MASK_IEEE_COMPARE)
291         (TARGET_32081, TARGET_32381, TARGET_MULT_ADD, TARGET_RTD)
292         (TARGET_REGPARM, TARGET_32532, TARGET_32332, TARGET_SB, TARGET_HIMEM)
293         (TARGET_BITFIELD, TARGET_IEEE_COMPARE, TARGET_SWITCHES): Delete.
294         (OVERRIDE_OPTIONS): Clear MASK_SB instead of setting MASK_NO_SB.
295         * config/ns32k/netbsd.h (TARGET_DEFAULT): Remove MASK_NO_SB and
296         MASK_NO_BITFIELD.
297         * config/ns32k/ns32k.c (ns32k_handle_option): New function.
298         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
299         * config/ns32k/ns32k.opt: New file.
300
301 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
302
303         * config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options.
304         * config/m68k/m68k.h (target_flags, MASK_68020, TARGET_68020)
305         (MASK_68030, TARGET_68030, MASK_68040, TARGET_68040, MASK_68040_ONLY)
306         (TARGET_68040_ONLY, MASK_68060, TARGET_68060, MASK_5200, TARGET_5200)
307         (MASK_CFV3, TARGET_CFV3, MASK_CFV4, TARGET_CFV4, MASK_528x)
308         (TARGET_528x, MASK_CF_HWDIV, TARGET_CF_HWDIV, MASK_68881, TARGET_68881)
309         (MASK_BITFIELD, TARGET_BITFIELD, MASK_SHORT, TARGET_SHORT)
310         (MASK_ALIGN_INT, TARGET_ALIGN_INT, MASK_PCREL, TARGET_PCREL)
311         (MASK_NO_STRICT_ALIGNMENT, TARGET_STRICT_ALIGNMENT, MASK_RTD)
312         (TARGET_RTD, MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY)
313         (TARGET_ID_SHARED_LIBRARY, MASK_ALL_CF_BITS, TARGET_SWITCHES)
314         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Delete.
315         (MASK_COLDFIRE): Formatting fixes.
316         (TARGET_COLDFIRE): Turn into a boolean value for consistency.
317         * config/m68k/linux.h (SUBTARGET_SWITCHES): Delete.
318         * config/m68k/m68k.c (m68k_library_id_string): Initialize to
319         "_current_shared_library_a5_offset_".
320         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
321         (MASK_ALL_CPU_BITS): New macro.
322         (m68k_handle_option): New function.
323         (override_options): Remove handling of m68k_library_id_string.
324         * config/m68k/m68k.opt: New file.
325         * config/m68k/ieee.opt: New file.
326
327 2005-04-11  Mark Mitchell  <mark@codesourcery.com>
328
329         * target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
330         (TARGET_CXX_DETERMINE_CLASS_VISIBILITY): New macro.
331         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
332         (TARGET_CXX): Adjust accordingly.
333         * target.h (struct gcc_target): Remove epxort_class_data.  Add
334         determine_class_data_visibility and class_data_always_comdat.
335         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
336         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Document.
337         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
338         * config/arm/arm.c (arm_cxx_export_class_data): Remove.
339         (arm_cxx_determine_class_data_visibility): New.
340         (arm_cxx_class_data_always_comdat): Likewise.
341         (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
342         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
343         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
344         * config/arm/arm.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P): Define.
345         * config/arm/symbian.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P):
346         Define.
347
348 2005-04-11  Devang Patel  <dpatel@apple.com>
349
350         * tree-data-ref.c (build_classic_dist_vector,
351         compute_subscript_distance): Make externally visible.
352         * tree-data-ref.h (build_classic_dist_vector,
353         compute_subscript_distance): Same.
354         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
355         Check distance vector against vectorization factor.
356         (vect_analyze_loop): Determine vectorizaion factor before
357         analyzing data dependences.
358         * tree-vectorizer.c (loops_num): Make it externally visible and
359         rename ...
360         * tree-vectorizer.c (vect_loops_num): ... new name.
361         * tree-vectorizer.h  (vect_loops_num): New.
362
363 2005-04-11  Devang Patel  <dpatel@apple.com>
364
365         * tree-vect-analyze.c (vect_analyze_operations): Check
366         vectorizable codition.
367         * tree-vect-transform.c (vect_is_simple_cond): New function.
368         (vectorizable_condition): New function.
369         (vect_transform_stmt): Handle condition_vec_info_type.
370         * tree-vectorizer.h (enum stmt_vec_info_type): Add
371         condition_vec_info_type.
372         (vectorizable_condition): New.
373         
374 2005-04-11  Geoffrey Keating  <geoffk@apple.com>
375
376         * config/i386/i386.h (TARGET_FPMATH_DEFAULT): New.
377         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT): New.
378         * config/i386/i386.c (override_options): Use TARGET_FPMATH_DEFAULT.
379
380         * config/i386/darwin.h (ASM_SPEC): Use -arch i386 not -arch i686.
381         (SUBTARGET_EXTRA_SPECS): Always 'i386'.
382
383         * dwarf2out.c (output_line_info): Don't try to dereference
384         a NULL current_function_decl.
385
386         * config/t-slibgcc-darwin: Don't put shared libraries in
387         directories other than $(slibdir).
388         * config/rs6000/darwin.h: Find -m64 libgcc under the name the
389         OS uses for it.
390
391 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
392
393         PR tree-optimization/20933
394         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Move
395         logic to reject aliases between read-only and writable
396         variables ...
397         (may_alias_p): ... here.
398         (get_tmt_for): Do not associate read-only tags to pointers
399         whose pointed-to type is not read-only.
400         * tree-ssa.c (verify_ssa): Check that memory stores have at
401         least one V_MAY_DEF or V_MUST_DEF.
402
403 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
404
405         PR/17092
406         * configure.ac (gcc_UNLOCKED_FUNCS): New.
407         (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
408         * system.h (putchar, getc, getchar, clearerr, feof, fileno,
409         fflush, fgetc, fgets, ferror, fread): Redefine to the associated
410         _unlocked function.
411         (fwrite_unlocked): Fix prototype.
412         
413         * configure, config.in: Regenerate.
414
415 2005-04-11  David Edelsohn  <edelsohn@gnu.org>
416
417         * tree-ssa-loop-im.c: Include real.h.
418         (determine_invariantness_stmt): If real division divisor is
419         invariant and flag_unsafe_math_optimizations enabled, generate
420         invariant reciprocal for hoisting.
421         * Makefile.in (tree-ssa-loop-im.o): Add real.h dependency.
422
423 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
424
425         Fix PR tree-optimization/20926
426         
427         * tree-ssa-alias.c (add_type_alias): Handle subvars.
428         
429 2005-04-11  Devang Patel  <dpatel@apple.com>
430
431         * config/rs6000.c (rs6000_emit_vector_select): Fix vector select
432         operand ordering.
433         
434 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
435
436         * fold-const.c (fold_binary_op_with_conditional_arg):
437         use fold_buildN instead of "fold (buildN" in some
438         non obvious places.
439         (fold_unary): Likewise.
440         (fold_binary): Likewise.
441
442 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
443         
444         Fix PR tree-optimization/20612
445         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Fix increment
446         handling
447         (perfect_nestify): preheaderbb is *not* part of loop of the
448         old destination.
449
450 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
451
452         * tree-ssa-alias.c (may_alias_p): If the variable
453         is a global variable and the pointer is parameter
454         and -fargument-noalias-global is used, then
455         the pointer cannot alias the variable.
456
457 2005-04-11  James A. Morrison  <phython@gcc.gnu.org>
458
459         * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable.
460         * config/sparc/sparc.h: Likewise.
461         * config/sparc/sparc.md: Likewise.
462
463 2005-04-11  Kazu Hirata  <kazu@cs.umass.edu>
464
465         * tree-vrp.c (maybe_add_assert_expr): Move a comment.
466
467         * tree-vrp.c: Fix a comment typo.
468
469 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
470
471         PR tree-optimization/20920
472         * tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
473         SSA_NAME flows through an abnormal edge.
474         * tree-vrp.c (infer_value_range): Ignore SSA names that flow
475         through abnormal edges.
476         (maybe_add_assert_expr): Likewise.
477
478 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
479
480         * config/s390/s390.h (s390_tune_string, s390_arch_string)
481         (s390_warn_framesize_string, s390_warn_dynamicstack_string)
482         (s390_stack_size_string, s390_stack_guard_string, target_flags)
483         (MASK_HARD_FLOAT, MASK_SMALL_EXEC, MASK_DEBUG_ARG, MASK_64BIT)
484         (MASK_ZARCH, MASK_MVCLE, MASK_TPF_PROFILING, MASK_NO_FUSED_MADD)
485         (MASK_BACKCHAIN, MASK_PACKED_STACK, TARGET_HARD_FLOAT)
486         (TARGET_SOFT_FLOAT, TARGET_SMALL_EXEC, TARGET_DEBUG_ARG)
487         (TARGET_64BIT, TARGET_ZARCH, TARGET_MVCLE, TARGET_TPF_PROFILING)
488         (TARGET_NO_FUSED_MADD, TARGET_FUSED_MADD, TARGET_BACKCHAIN)
489         (TARGET_PACKED_STACK, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
490         * config/s390/s390.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
491         (TARGET_HANDLE_OPTION): Likewise.
492         (s390_tune): Initialize to PROCESSOR_max.
493         (s390_arch_string): Make static.
494         (s390_tune_string, s390_warn_framesize_string): Delete.
495         (s390_warn_dynamicstack_string, s390_stack_size_string): Delete.
496         (s390_stack_guard_string, s390_warn_dynamicstack_p): Delete.
497         (s390_handle_arch_option, s390_handle_option): New functions.
498         (override_options): Remove parsing of option strings.
499         * config/s390/s390.opt: New file.
500
501 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
502
503         * tree-complex.c (expand_vector_operations): Call
504         update_stmt_if_modified.
505
506 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
507
508         * tree-vect-analyze (vect_determine_vectorization_factor):
509         Do not use GET_MODE_NUNITS.
510         * tree-vect-transform.c (vect_get_vec_def_for_operand,
511         (vectorizable_load, vect_transform_loop): Likewise.
512
513 2005-04-11  Uros Bizjak  <uros@kss-loka.si>
514
515         * builtins.def (BUILT_IN_LCEIL, BUILT_IN_LCEILF, BUILT_IN_LCEILL)
516         (BUILT_IN_LLCEIL, BUILT_IN_LLCEILF, BUILT_IN_LLCEILL): New.
517         * optabs.h (enum optab_index): Add new OTI_lceil.
518         (lceil_optab): Define corresponding macro.
519         * optabs.c (init_optabs): Initialize lceil_optab.
520         * genopinit.c (optabs): Implement lceil_optab using lceilsi2
521         and lceildi2 patterns.
522         * builtins.c (expand_builtin_int_roundingfn): Handle
523         BUILT_IN_LCEIL{,F,L} and BUILT_IN_LLCEIL{,F,L}.
524         (fold_builtin_int_roundingfn): Handle BUILT_IN_LCEIL{,F,L} and
525         BUILT_IN_LLCEIL{,F,L}.
526         (fold_builtin_1): Fold BUILT_IN_LCEIL{,F,L} and
527         BUILT_IN_LLCEIL{,F,L} using fold_builtin_int_roundingfn.
528         (mathfn_built_in): Handle BUILT_IN LCEIL and BUILT_IN_LLCEIL.
529         (expand_builtin): Expand BUILT_IN_LCEIL{,F,L} and
530         BUILT_IN_LLCEIL{,F,L} using expand_builtin_int_roundingfn.
531         * convert.c (convert_to_integer): Convert (long int)ceil{,f,l},
532         into lceil built-in function and (long long int)ceil{,f,l} into
533         llceil built-in function.
534         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LCEIL and
535         BUILT_IN_LLCEIL.
536
537 2005-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
538
539         * pa/quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from
540         zero.
541
542 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
543
544         * config/arm/arm.c: Fix a comment typo.
545         * doc/tree-ssa.texi: Fix a typo.
546
547 2005-04-10  Steven Bosscher  <stevenb@suse.de>
548
549         * cselib.c (clear_table): Rename to cselib_clear_table.
550         * cselib.h (cselib_clear_table): Add prototype.
551         * gcse.c (gcse_main): Make 'f' argument unused.
552         (alloc_gcse_mem): Do not walk the insn chain, walk the contents
553         of each basic block instead.
554         (compute_sets, compute_hash_table_work): Likewise.
555         (constprop_register): Change int 'alter_jumps' argument to bool.
556         (do_local_cprop): Likewise.
557         (local_cprop_pass): Likewise.  Also walk basic blocks instead of
558         the insn chain.  Explicitly clear the cselib tables after finishing
559         one basic block.  Make sure there are no unterminated libcall blocks.
560         Update compute_sets call.
561         (cprop): Walk basic blocks instead of the insn chain.
562         (one_cprop_pass, compute_ld_motion_mems, compute_store_table):
563         Likewise.
564         (bypass_jumps): Update alloc_gcse_mem, compute_sets, and
565         one_cprop_pass calls.
566
567 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
568
569         * combine.c (combine_simplify_rtx): Remove a transformation that
570         relies on an invalid assumption about rtl sign-extension semantics.
571
572 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
573
574         * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
575         to build_int_cst_wide.
576
577 2005-04-09  Alexandre Oliva  <aoliva@redhat.com>
578
579         PR target/20126
580         * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
581         set the original address pseudo to the correct value before the
582         original insn, if possible, and leave the insn alone, otherwise
583         create a new pseudo, set it and replace it in the insn.
584         * recog.c (validate_change_maybe_volatile): New.
585         * recog.h (validate_change_maybe_volatile): Declare.
586
587 2005-04-09  Caroline Tice  <ctice@apple.com>
588
589         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
590         Remove targetm.have_named_sections test.
591         (fix_edges_for_rarely_executed_code): Likewise.
592         (insert_section_boundary_note): Likewise.
593         (reorder_basic_blocks): Check partitioning flag before calling
594         verify_hot_cold_block_grouping.
595         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
596         the function struct rather than global variables.
597         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
598         (COLD_END_LABEL): Likewise
599         (cold_text_section_label): New static global variable.
600         (cold_end_label): Likewise.
601         (dwarf2out_switch_text_section): Get hot/cold section labels from
602         the function struct rather than global variables.
603         (output_aranges): Use cold_text_section_label and cold_end_label;
604         check partitioning flag before putting out delta.
605         (output_ranges): Remove incorrect code attempting to use
606         hot/cold labels.
607         (output_line_info): Get cold section label from function struct.
608         (add_location_or_const_value_attribute): Likewise.
609         (get_subprogram_die): Get hot/cold section labels from function struct.
610         (dwarf2out_var_location): Likewise.
611         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
612         write out cold_text_section_label if partition flag is set.
613         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
614         * function.h (struct function): Add new fields to point to hot/cold
615         section labels: hot_section_label, cold_section_label,
616         hot_section_end_label and cold_section_end_label; also add new field
617         for cold text section name, unlikely_text_section_name.
618         * opts.c (decode_options): Turn off partitioning flag if
619         !targetm.have_named_sections.
620         * output.h (hot_section_label): Remove.
621         (hot_section_end_label): Remove.
622         (cold_section_end_label): Remove.
623         (unlikely_section_label): Remove.
624         (unlikely_text_section_name): Remove.
625         * passes.c (rest_of_handle_final):  Remove code that frees
626         unlikely_text_section_name.
627         * varasm.c (unlikely_section_label): Remove.
628         (hot_section_label): Remove.
629         (hot_section_end_label): Remove.
630         (cold_section_end_label): Remove.
631         (unlikely_text_section_name):  Remove.
632         (initialize_cold_section_name): Modify to call
633         targetm.strip_name_encoding; to store cold section name in current
634         function struct, if it exists; and to only use the decl_section_name
635         if flag_named_sections is true.
636         (unlikely_text_section): Modify to get section name out of current
637         function struct, if there is one; otherwise build it from
638         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
639         (in_unlikely_text_section): Likewise.
640         (named_section): Modify to get/put cold section name in current function
641         struct, if there is one.
642         (function_section):  Change 'bool unlikely' to 'int reloc'; check
643         targetm.have_named_sections before calling named_section.
644         (current_function_section): Likewise.
645         (assemble_start_function): Modify to get/put unlikely_text_section_name
646         in current function struct; modify to get hot/cold section labels
647         from function struct; initialize labels using 
648         ASM_GENERATE_INTERNAL_LABEL;
649         test partitioning flag before writing out hot section label.
650         (assemble_end_function): Test partitioning flag before writing out
651         hot/cold section labels.
652         (default_section_type_flags_1):  Modify to use array instead of
653          char* for unlikely_text_section_name; set flags correctly for
654          cold text section if there is not a current function decl.
655
656 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
657
658         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
659         and TI_VA_LIST_FPR_COUNTER_FIELD.
660         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
661         * tree-pass.h (pass_stdarg): Add.
662         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
663         * tree-stdarg.c: New file.
664         * tree-stdarg.h: New file.
665         * Makefile.in (OBJS-common): Add tree-stdarg.o.
666         (tree-stdarg.o): Add dependencies.
667         * function.h (struct function): Add va_list_gpr_size and
668         va_list_fpr_size fields.
669         * function.c (allocate_struct_function): Initialize them.
670         * target.h (struct gcc_target): Add stdarg_optimize_hook.
671         * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
672         (TARGET_INITIALIZER): Add it.
673
674         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
675         va_list_{g,f}pr_counter_field.
676         (ix86_setup_incoming_varargs): Don't do anything if reg_save
677         area will not be used.  Only save registers that tree-stdarg.c
678         detected they need saving.
679         (ix86_va_start): Don't set up fields that won't be used.
680
681         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
682         va_list_{g,f}pr_counter_field.
683         (setup_incoming_varargs): Don't do anything if reg_save
684         area will not be used.  Only save registers that tree-stdarg.c
685         detected they need saving.
686         (rs6000_va_start): Don't set up fields that won't be used.
687
688         * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
689         (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
690         (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
691         (TARGET_STDARG_OPTIMIZE_HOOK): Define.
692
693 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
694
695         PR target/20795
696         * config/i386/i386.c (construct_container): Pass empty aligned
697         struct, union or class in memory.
698
699 2005-04-09  Kazu Hirata  <kazu@cs.umass.edu>
700
701         * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
702         tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
703         config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
704         config/rs6000/predicates.md: Fix comment typos.
705
706         * sched-int.h (haifa_insn_data): Remove blockage and units.
707         (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
708         ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
709         MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
710
711 2005-04-09  Jan Hubicka  <jh@suse.cz>
712             Steven Bosscher  <stevenb@suse.de>
713
714         * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
715         * cfgloop.c (get_loop_exit_edges): Likewise.
716         * cfgloopmanip.c (fix_irreducible_loops): Likewise.
717         (unloop): Likewise.
718         * loop-unroll.c (analyze_insns_in_loop): Likewise.
719         * tree-cfg.c (dump_cfg_status): Likewise.
720
721 2005-04-09  David Edelsohn  <edelsohn@gnu.org>
722
723         * config/rs6000/predicates.md (altivec_register_operand): Remove
724         redundant match_code test.
725         (gpc_reg_operand): Same.
726         (cc_reg_operand): Same.
727         (cc_reg_not_cr0_operand): Same.
728
729 2005-04-09  Jan Hubicka  <jh@suse.cz>
730
731         Forgotten hunk from my last merge patch:
732         * final.c (output_addr_const): Do not call mark_referenced.
733
734 2005-04-09  Andrew MacLeod  <amacleod@redhat.com>
735
736         * doc/tree-ssa.texi: Add immediate use documentation.
737
738 2005-04-09  Richard Earnshaw <richard.earnshaw@arm.com>
739
740         * arm.c (FL_WBUF): Define.
741         (arm_tune_strongarm): Renamed from arm_is_strong.  All uses changed.
742         (arm_is_6_or_7): Delete.
743         (arm_tune_wbuf): New.
744         (arm_override_options): Set arm_tune_wbuf.
745         * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
746         (arm_is_6_or_7): Delete declaration.
747         (arm_tune_wbuf): New declartion.
748         * arm.md (is_strongarm): Derive from arm_tune_strongarm.
749         (model_wbuf): Derive from arm_tune_wbuf.
750         * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
751         (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
752         (arm740t): Mark CPUs as having a write buffer.
753
754 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
755
756         * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
757         of 'const_double_operand' in operand 2 constraints.  Update enable
758         condition.
759
760 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
761
762         * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
763         (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
764         * optabs.h (enum optab_index): Add new OTI_lfloor.
765         (lfloor_optab): Define corresponding macro.
766         * optabs.c (init_optabs): Initialize lfloor_optab.
767         * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
768         and lfloordi2 patterns.
769         * builtins.c (expand_builtin_int_roundingfn): New prototype.
770         (expand_builtin_int_roundingfn): New function.
771         (fold_builtin_int_roundingfn): New prototype.
772         (fold_builtin_int_roundingfn): New function, renamed from
773         fold_builtin_lround.
774         Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
775         BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
776         (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
777         BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
778         (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
779         (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
780         BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
781         * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
782         into lfloor built-in function and (long long int)floor{,f,l} into
783         llfloor built-in function.
784         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
785         BUILT_IN_LLFLOOR.
786
787 2005-04-08  Ian Lance Taylor  <ian@airs.com>
788
789         * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
790         CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
791         * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
792         (DO_COND, DO_BODY): Likewise.
793         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
794         (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
795         (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
796         BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
797         (build_continue_stmt, build_break_stmt): Don't declare.
798         (c_do_switch_warnings): Update declaration.
799         * c-gimplify.c (enum bc_t): Remove.
800         (struct c_gimplify_ctx, ctxp): Remove.
801         (push_context, pop_context): Remove static functions.
802         (c_genericize): Don't call push_context or pop_context.
803         (begin_bc_block, finish_bc_block): Remove static functions.
804         (build_bc_goto): Likewise.
805         (gimplify_c_loop): Likewise.
806         (gimplify_for_stmt, gimplify_while_stmt): Likewise.
807         (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
808         (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
809         DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
810         * c-common.c (c_do_switch_warnings): Rename from
811         c_do_switch_warnings_1.
812         (c_do_switch_warnings) [old version]: Remove.
813         (c_do_switch_expr_warnings): Remove.
814         * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
815         function instead of c_do_switch_expr_warnings.
816         * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
817         CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
818         * c-pretty-print.c (pp_c_statement): Likewise.
819         * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
820
821 2005-04-08  Devang Patel  <dpatel@apple.com>
822
823         * tree-if-conv.c (find_phi_replacement_condition): New parameter, loop.
824         While selecting replacement condition pay attention to loop header.
825
826 2005-04-08  Diego Novillo  <dnovillo@redhat.com>
827
828         Merge from tree-cleanup-branch: VRP, store CCP, store
829             copy-prop, incremental SSA updating of FUD chains and
830             newly exposed symbols.
831
832         * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
833         (OBJS-common): Add tree-vrp.o.
834         (tree-vrp.o): New rule.
835         * basic-block.h (nearest_common_dominator_for_set): Declare.
836         * common.opt (ftree-store-ccp): New flag.
837         (ftree-copy-prop): New flag.
838         (ftree-vrp): New flag.
839         (ftree-store-copy-prop): New flag.
840         * dominance.c (nearest_common_dominator_for_set): New.
841         * domwalk.c (walk_dominator_tree): Only traverse
842         statements in blocks marked in walk_data->interesting_blocks.
843         * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
844         * fold-const.c (fold): Handle ASSERT_EXPR.
845         * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
846         Set flag_tree_store_ccp, flag_tree_store_copy_prop and
847         flag_tree_vrp at -O2.
848         * timevar.def (TV_TREE_VRP): Define.
849         (TV_TREE_COPY_PROP): Define.
850         (TV_TREE_STORE_COPY_PROP): Define.
851         (TV_TREE_SSA_INCREMENTAL): Define.
852         (TV_TREE_STORE_CCP): Define.
853         * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
854         to kill_redundant_phi_nodes from comment.
855         (verify_expr): Handle ASSERT_EXPR.
856         * tree-dfa.c (mark_new_vars_to_rename): Remove second
857         argument.  Update all users.
858         (mark_call_clobbered_vars_to_rename): Remove.  Update all
859         users.
860         * tree-flow-inline.h (unmodifiable_var_p): New.
861         * tree-flow.h (enum value_range_type): Declare.
862         (struct value_range_def): Declare.
863         (value_range): Declare.
864         (remove_all_phi_nodes_for): Remove.  Update all users.
865         (find_phi_node_for): Declare.
866         (add_type_alias): Declare.
867         (count_uses_and_derefs): Declare.
868         (kill_redundant_phi_nodes): Remove.
869         (rewrite_into_ssa): Remove.
870         (rewrite_def_def_chains): Remove.
871         (update_ssa, register_new_name_mapping, create_new_def_for,
872         need_ssa_update_p, name_registered_for_update_p,
873         release_ssa_name_after_update_ssa, dump_repl_tbl,
874         debug_repl_tbl, dump_names_replaced_by,
875         debug_names_replaced_by, mark_sym_for_renaming,
876         mark_set_for_renaming, get_current_def, set_current_def,
877         get_value_range, dump_value_range, debug_value_range,
878         dump_all_value_ranges, debug_all_value_ranges,
879         expr_computes_nonzero, loop_depth_of_name,
880         unmodifiable_var_p): Declare.
881         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
882         ASSERT_EXPR.
883         * tree-into-ssa.c (block_defs_stack): Update comment.
884         (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
885         syms_to_rename, names_to_release, repl_tbl,
886         need_to_initialize_update_ssa_p, need_to_update_vops_p,
887         need_to_replace_names_p): New locals.
888         (NAME_SETS_GROWTH_FACTOR): Define.
889         (struct repl_map_d): Declare.
890         (struct mark_def_sites_global_data): Add field
891         interesting_blocks.
892         (enum rewrite_mode): Declare.
893         (REGISTER_DEFS_IN_THIS_STMT): Define.
894         (compute_global_livein): Use last_basic_block instead of
895         n_basic_blocks.
896         (set_def_block): Remove last argument.  Update all callers.
897         (prepare_use_operand_for_rename): Remove.  Update all callers.
898         (prepare_def_operand_for_rename): Remove.  Update all callers.
899         (symbol_marked_for_renaming): New.
900         (is_old_name): New.
901         (is_new_name): New.
902         (repl_map_hash): New.
903         (repl_map_eq): New.
904         (repl_map_free): New.
905         (names_replaced_by): New.
906         (add_to_repl_tbl): New.
907         (add_new_name_mapping): New.
908         (mark_def_sites): Assume that all the operands in the
909         statement are in normal form.
910         (find_idf): Assert that the block in the stack is valid.
911         (get_default_def_for): New.
912         (insert_phi_nodes_for): Add new argument 'update_p'.
913         Add documentation.
914         If update_p is true, add a new mapping between the LHS of
915         each new PHI and the name that it replaces.
916         (insert_phi_nodes_1): Only call find_idf if needed.
917         (get_reaching_def): Call get_default_def_for.
918         (rewrite_operand): Remove.
919         (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
920         and REWRITE_THIS_STMT are false.
921         Assume that all the operands in the statement are in
922         normal form.
923         (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
924         (rewrite_virtual_phi_arguments): Remove.
925         (invalidate_name_tags): Remove.
926         (register_new_update_single, register_new_update_set,
927         rewrite_update_init_block, replace_use,
928         rewrite_update_fini_block, rewrite_update_stmt,
929         rewrite_update_phi_arguments): New.
930         rewrite_blocks): Remove argument 'fix_virtual_phis'.
931         Add arguments 'entry', 'what' and 'blocks'.
932         Initialize the dominator walker according to 'what' and
933         'blocks'.
934         Start the dominator walk at 'entry'.
935         (mark_def_site_blocks): Add argument 'interesting_blocks'.
936         Use it to configure the dominator walker.
937         (rewrite_into_ssa): Remove argument 'all'.
938         Make internal.
939         (rewrite_all_into_ssa): Remove.
940         (rewrite_def_def_chains): Remove.
941         (mark_def_interesting, mark_use_interesting,
942         prepare_phi_args_for_update, prepare_block_for_update,
943         prepare_def_site_for, prepare_def_sites,
944         dump_names_replaced_by, debug_names_replaced_by,
945         dump_repl_tbl, debug_repl_tbl, init_update_ssa,
946         delete_update_ssa, create_new_def_for,
947         register_new_name_mapping, mark_sym_for_renaming,
948         mark_set_for_renaming, need_ssa_update_p,
949         name_registered_for_update_p, ssa_names_to_replace,
950         release_ssa_name_after_update_ssa,
951         insert_updated_phi_nodes_for, update_ssa): New.
952         * tree-loop-linear.c (linear_transform_loops): Call
953         update_ssa instead of rewrite_into_ssa.
954         * tree-optimize.c (vars_to_rename): Remove.
955         Update all users.
956         (init_tree_optimization_passes): Replace
957         pass_redundant_phi with pass_copy_prop.
958         Add pass_vrp.
959         Replace pass_ccp with pass_store_ccp.
960         Add pass_store_copy_prop after pass_store_ccp.
961         (execute_todo): If the TODO_ flags don't include updating
962         the SSA form, assert that it does not need to be updated.
963         Call update_ssa instead of rewrite_into_ssa and
964         rewrite_def_def_chains.
965         If TODO_verify_loops is set, call verify_loop_closed_ssa.
966         (tree_rest_of_compilation):
967         * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
968         TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
969         TODO_cleanup_cfg): Renumber.
970         (TODO_verify_loops, TODO_update_ssa,
971         TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
972         TODO_update_ssa_only_virtuals): Define.
973         (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
974         Declare.
975         * tree-phinodes.c (make_phi_node): Update documentation.
976         (remove_all_phi_nodes_for): Remove.
977         (find_phi_node_for): New.
978         * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
979         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
980         (interpret_rhs_modify_expr): Likewise.
981         * tree-sra.c (decide_instantiations): Mark all symbols in
982         SRA_CANDIDATES for renaming.
983         (mark_all_v_defs_1): Rename from mark_all_v_defs.
984         (mark_all_v_defs): New function.  Update all users to call it 
985         with the whole list of scalarized statements, not just the
986         first one.
987         * tree-ssa-alias.c (count_ptr_derefs): Make extern.
988         (compute_flow_insensitive_aliasing): If the tag is
989         unmodifiable and the variable isn't or vice-versa, don't
990         make them alias of each other.
991         (setup_pointers_and_addressables): If the type tag for
992         VAR is about to change, mark the old one for renaming.
993         (add_type_alias): New.
994         * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
995         (ccp_lattice_t): Rename from latticevalue.
996         (value): Remove.  Update all users.
997         (const_val): New local variable.
998         (do_store_ccp): New local variable.
999         (dump_lattice_value): Handle UNINITIALIZED.
1000         (debug_lattice_value): New.
1001         (get_default_value): Re-write.
1002         (set_lattice_value): Re-write.
1003         (def_to_varying): Remove.  Update all users.
1004         (likely_value): Return VARYING for statements that make
1005         stores when STORE_CCP is false.
1006         Return VARYING for any statement other than MODIFY_EXPR,
1007         COND_EXPR and SWITCH_EXPR.
1008         (ccp_initialize): Re-write.
1009         (replace_uses_in, replace_vuse_in, substitute_and_fold):
1010         Move to tree-ssa-propagate.c.
1011         (ccp_lattice_meet): Handle memory stores when
1012         DO_STORE_CCP is true.
1013         (ccp_visit_phi_node): Likewise.
1014         (ccp_fold): Likewise.
1015         (evaluate_stmt): Likewise.
1016         (visit_assignment): Likewise.
1017         (ccp_visit_stmt): Likewise.
1018         (execute_ssa_ccp): Add argument 'store_ccp'.  Copy it
1019         into DO_STORE_CCP.
1020         (do_ssa_ccp): New.
1021         (pass_ccp): Use it.
1022         (do_ssa_store_ccp): New.
1023         (gate_store_ccp): New.
1024         (pass_store_ccp): Declare.
1025         * tree-ssa-copy.c: Include tree-ssa-propagate.h.
1026         (may_propagate_copy): Reformat.
1027         Don't abort if ORIG is a virtual and DEST isn't.
1028         If NEW does not have alias information but DEST does,
1029         copy it.
1030         (copy_of, cached_last_copy_of, do_store_copy_prop, enum
1031         copy_prop_kind, which_copy_prop): Declare.
1032         (stmt_may_generate_copy, get_copy_of_val,
1033         get_last_copy_of, set_copy_of_val, dump_copy_of,
1034         copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
1035         copy_prop_visit_stmt, copy_prop_visit_phi_node,
1036         init_copy_prop, fini_copy_prop, execute_copy_prop,
1037         gate_copy_prop, do_copy_prop, gate_store_copy_prop,
1038         store_copy_prop): New.
1039         (pass_copy_prop, pass_store_copy_prop): Declare.
1040         * tree-ssa-dom.c (struct opt_stats_d): Add fields
1041         'num_const_prop' and 'num_copy_prop'.
1042         (cprop_operand): Update them.
1043         (dump_dominator_optimization_stats): Dump them.
1044         (tree_ssa_dominator_optimize): Call update_ssa instead of
1045         rewrite_into_ssa.
1046         (loop_depth_of_name): Declare extern.
1047         (simplify_cond_and_lookup_avail_expr): Guard against NULL
1048         values for LOW or HIGH.
1049         (cprop_into_successor_phis): Only propagate if NEW != ORIG.
1050         (record_equivalences_from_stmt): Call expr_computes_nonzero.
1051         (cprop_operand): Only propagate if VAL != OP.
1052         * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
1053         statement for renaming.
1054         * tree-ssa-loop-im.c (move_computations): Call update_ssa.
1055         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
1056         add_type_alias if necessary.
1057         Call mark_new_vars_to_rename.
1058         (tree_ssa_iv_optimize): If new symbols need to be renamed,
1059         mark every statement updated, call update_ssa and
1060         rewrite_into_loop_closed_ssa.
1061         * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
1062         from LIVEIN if VAR is a virtual.
1063         * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
1064         * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
1065         (get_call_expr_operands): Reformat statement.
1066         (add_stmt_operand): Don't create V_MAY_DEFs for read-only
1067         symbols.
1068         * tree-ssa-propagate.c (ssa_prop_init): Initialize
1069         SSA_NAME_VALUE for every name.
1070         (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
1071         get_value_loaded_by): New.
1072         (replace_uses_in, replace_vuses_in, replace_phi_args_in,
1073         substitute_and_fold): Move from tree-ssa-ccp.c.
1074         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
1075         first_vdef, stmt_makes_single_load, stmt_makes_single_store,
1076         get_value_loaded_by, replace_uses_in, substitute_and_fold):
1077         Declare.
1078         * tree-ssa.c (verify_use): Fix error message.
1079         (propagate_into_addr, replace_immediate_uses, get_eq_name,
1080         check_phi_redundancy, kill_redundant_phi_nodes,
1081         pass_redundant_phi): Remove.  Update all users.
1082         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
1083         add_type_alias, if necessary.
1084         * tree-vectorizer.h (struct _stmt_vect_info): Update
1085         documentation for field 'memtag'.
1086         * tree-vrp.c: New file.
1087         * tree.def (ASSERT_EXPR): Define.
1088         * tree.h (ASSERT_EXPR_VAR): Define.
1089         (ASSERT_EXPR_COND): Define.
1090         (SSA_NAME_VALUE_RANGE): Define.
1091         (struct tree_ssa_name): Add field 'value_range'.
1092         (PHI_REWRITTEN): Remove.
1093         (struct tree_phi_node): Remove field 'rewritten'.
1094         * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
1095         -ftree-store-copy-prop): Document.
1096         * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
1097         Document usage of update_ssa.
1098
1099 2005-04-08  David Edelsohn  <edelsohn@gnu.org>
1100
1101         PR target/20814
1102         * config/rs6000/predicates.md (altivec_register_operand): Accept
1103         SUBREG. 
1104         (and64_operand): Do not limit CONST_INT to mask64_operand.
1105         (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
1106         (and_operand): Do not limit CONST_INT to mask_operand.
1107
1108 2005-04-09  Hans-Peter Nilsson  <hp@axis.com>
1109
1110         PR rtl-optimization/20466
1111         * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
1112         for overlap of the address of each list member.
1113         (mark_set_1): Call invalidate_mems_from_set for MEMs too.
1114
1115 2005-04-08  Mike Stump  <mrs@apple.com>
1116
1117         * config/darwin.c (indirect_data): Fix typo in strncmp logic.
1118         
1119         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
1120         instead of 4.
1121
1122 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
1123
1124         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
1125
1126         * function.c (push_function_context_to): Don't set
1127         contains_functions.
1128         * function.h (function): Remove contains_functions.
1129         (current_function_contains_functions): Remove.
1130
1131         * function.h (function): Remove instrument_entry_exit.
1132         (current_function_instrument_entry_exit): Remove.
1133
1134         * function.h (nonlocal_labels): Remove.
1135
1136         * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
1137
1138         * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
1139         (check_attr_value, write_attr_get, write_expr_attr_cache,
1140         find_attr, make_internal_attr): Don't reference negative_ok or
1141         unsigned_p.
1142         * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
1143         ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
1144         (ATTR_STATIC): Adjust the value.
1145
1146         * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
1147
1148 2005-04-08  Ulrich Weigand  <uweigand@de.ibm.com>
1149
1150         * config/s390/tpf.h (ASM_SPEC): Define.
1151
1152 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
1153
1154         * tree-flow.h: Remove the prototype for
1155         redirect_immediate_uses.
1156         (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
1157
1158 2005-04-08  Richard Earnshaw  <richard.earnshaw@arm.com>
1159
1160         * arm.c (arm_const_double_by_parts): New function.
1161         * arm-protos.h (arm_const_double_by_parts): Add prototype.
1162         * arm.md (define_split for 64-bit constants): Add another one.
1163
1164 2005-04-08  Andrew MacLeod  <amacleod@redhat.com>
1165
1166         * tree-ssa-operands.c (correct_use_link): Remove linear scan.
1167
1168 2005-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1169
1170         * system.h: Revert last change.
1171
1172 2005-04-08  Richard Sandiford  <rsandifo@redhat.com>
1173
1174         * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
1175         (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
1176         (TARGET_SWITCHES): Delete.
1177         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
1178         * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
1179         TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
1180         * config/xtensa/xtensa.opt: New file.
1181
1182 2005-04-08  Ben Elliston  <bje@au.ibm.com>
1183
1184         * config/fp-bit.c: Include L_mul_tf in #endif comment.
1185         * config/fp-bit.h: Tidy comments.
1186
1187 2005-04-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1188
1189         * system.h: Poison PARAMS.
1190
1191 2005-04-07  Richard Sandiford  <rsandifo@redhat.com>
1192
1193         * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
1194         (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
1195         (TARGET_SWITCHES): Delete.
1196         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
1197         * config/vax/vax.opt: New file.
1198
1199 2005-04-07  Daniel Berlin  <dberlin@dberlin.org>
1200
1201         * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
1202
1203 2005-04-07  Ian Lance Taylor  <ian@airs.com>
1204
1205         * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
1206         define.
1207         * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
1208         * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
1209         Likewise.
1210
1211 2005-04-07  Kazu Hirata  <kazu@cs.umass.edu>
1212
1213         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
1214         all immediate uses in PHI nodes.
1215
1216 2005-04-07  Richard Earnshaw  <richard.earnshaw@arm.com>
1217
1218         * arm.c (arm_const_double_inline_cost): Handle any constant by
1219         using gen_lowpart and gen_highpart_mode.
1220         (note_invalid_constants): All constants in an RTX with a constraint
1221         that permits memory are now pushed to the constant pool.
1222         (output_move_double): Delete code to handle reg to reg and 
1223         constant to reg moves.
1224         (const_double_needs_minipool, output_mov_immediate): Delete.
1225         * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
1226         CONST_INT and CONST_VECTOR.
1227         * arm.md (ANY64): New mode macro.
1228         (arm_movdi): Split reg-reg and const-reg moves.  Simplify constraints.
1229         (movdf_soft_insn): Split reg-reg and const-reg moves.
1230         (split patterns for 64-bit constant and register moves): New.
1231         * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
1232         (cirrus_movdf_hard_insn): Likewise.
1233         * fpa.md (movdf_fpa): Likewise.
1234         * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
1235         (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
1236         constraints.
1237         (movv2si_internal_2): Likewise.
1238         * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
1239         (movdf_vfp): Likewise.
1240         * arm-protos.h (output_mov_immediate): Delete prototype.
1241
1242 2005-04-07  Joseph S. Myers  <joseph@codesourcery.com>
1243
1244         PR target/20093
1245         * simplify-rtx.c (simplify_unary_operation_1): Check
1246         SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
1247
1248 2005-04-06  James E Wilson  <wilson@specifixinc.com>
1249
1250         PR target/20717
1251         * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
1252         ADDR_EXPR.
1253
1254 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
1255
1256         * coverage.h (GCOV_TYPE_NODE): Delete.
1257         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
1258         (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
1259         * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
1260         (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
1261         * value-prof.c (tree_divmod_fixed_value_transform): Delete.
1262
1263 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
1264
1265         PR other/20792
1266         * Makefile.in (gcc.pot): Remove options.c dependency.
1267         * optc-gen.awk: Don't quote help strings with N_().
1268
1269 2005-04-06  James A. Morrison  <phython@gcc.gnu.org>
1270
1271         * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
1272         the function returns a pointer type.
1273
1274 2005-04-06  Daniel Berlin  <dberlin@dberlin.org>
1275
1276         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
1277         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
1278         * doc/invoke.texi: Documnet salias-max-implicit-fields.
1279         * tree-ssa-alias.c (struct used_part): Add implicit_uses and
1280         explicit_uses members.
1281         (get_or_create_used_part_for): Initialize new fields.
1282         (fieldoff_compare): New function.
1283         (create_overlap_variables_for): Count number of fields, use
1284         heuristic to determine whether to create subvars for vars with
1285         only implicit uses.
1286         Sort the field list by offset and avoid creating duplicate SFT's.
1287
1288 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
1289
1290         * c.opt (-F): Remove trailing whitespace from help string.
1291         (-finput-charset): Use a tab to separate the switch name and help
1292         string.
1293         * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
1294         (-ftree-vectorizer-verbose): Likewise.
1295
1296 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
1297
1298         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
1299         a PHI argument where a use occurs instead of all PHI arguments.
1300
1301 2005-04-06  Joseph S. Myers  <joseph@codesourcery.com>
1302
1303         * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
1304         scope.
1305
1306 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
1307
1308         * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
1309         tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
1310         config/bfin/bfin.h: Fix comment typos.
1311
1312 2005-04-06  Ranjit Mathew  <rmathew@hotmail.com>
1313
1314         * doc/install.texi: Update the URL for Jacks.
1315         * doc/sourcebuild.texi: Likewise.
1316
1317 2005-04-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1318
1319         PR target/17245
1320         * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
1321         Revert 2004-10-08 patch.  Reject TFmode LO_SUM in 32-bit mode.
1322
1323 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
1324
1325         * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
1326
1327 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
1328
1329         * config/v850/v850-protos.h (override_options): Delete.
1330         * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
1331         (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
1332         (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
1333         (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
1334         (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
1335         (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
1336         (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
1337         (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
1338         (OVERRIDE_OPTIONS): Delete.
1339         (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
1340         (small_memory_info): Remove the value field.
1341         (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
1342         TARGET_NO_APP_REGS.
1343         * config/v850/v850.c (small_memory): Remove the value field.
1344         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1345         (override_options): Delete.
1346         (v850_handle_memory_option, v850_handle_option): New functions.
1347         * config/v850/v850.opt: New file.
1348
1349 2005-04-06  Geoffrey Keating  <geoffk@apple.com>
1350
1351         * config.host: Add a section for generic hosts, and a subsection
1352         for Darwin.  Add a case for x86-darwin.  Update ppc-darwin case.
1353         * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
1354         * config/host-darwin.h: New.
1355         * config/x-darwin: New.
1356         * config/i386/host-i386-darwin.c: New.
1357         * config/i386/x-darwin: New.
1358         * config/rs6000/host-darwin.c: Include host-darwin.h.
1359         (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
1360         (darwin_rs6000_gt_pch_use_address): Likewise.
1361         * config/rs6000/x-darwin: Change name of .o built, update
1362         dependencies for changes to rs6000/host-darwin.c.
1363
1364 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
1365
1366         PR target/17824
1367         * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
1368
1369 2005-04-06  Dorit Naishlos  <dorit@il.ibm.com>
1370
1371         * tree-vect-analyze.c (vect_analyze_loop_form): Call
1372         split_loop_exit_edge instead of loop_split_edge_with. 
1373
1374 2005-04-06  Paolo Bonzini  <bonzini@gnu.org>
1375
1376         * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
1377         UNSPEC_SET_VSCR): New constants, used throughout.
1378         (*andc3_v4sf): New.
1379         (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
1380         Replace with...
1381         (altivec_vspltis<VI_char>): ... this pattern, using
1382         a QImode const_int_operand for the immediate.
1383         (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
1384         define_expands.
1385
1386 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
1387
1388         PR target/17822
1389         * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
1390
1391 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
1392
1393         * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
1394
1395 2005-04-06  Ben Elliston  <bje@au.ibm.com>
1396
1397         * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
1398         DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
1399         macros as living in "this file" and not gcc.h.
1400
1401 2005-04-06  Ben Elliston  <bje@au.ibm.com>
1402
1403         * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
1404         -ftree-live_range_split.  Perhaps renamed at some point?
1405
1406 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
1407
1408         PR target/20625
1409         * tree-ssa-loop-ivopts.c (generic_type_for): New function.
1410         (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
1411
1412 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
1413
1414         * tree-flow.h (number_of_iterations_cond): Declaration removed.
1415         * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
1416         (number_of_iterations_special): New function.
1417         (number_of_iterations_exit): Use number_of_iterations_special.
1418         Use simplify_using_outer_evolutions only at -O3.
1419         (number_of_iterations_cond, tree_simplify_using_condition,
1420         simplify_using_initial_conditions, loop_niter_by_eval,
1421         compare_trees, can_count_iv_in_wider_type_bound,
1422         simplify_using_outer_evolutions): Use fold_build.
1423
1424 2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
1425
1426         * doc/install.texi (Configuration): Document --with-java-home.
1427
1428 2005-04-05  Richard Henderson  <rth@redhat.com>
1429
1430         PR target/20342
1431         PR target/20447
1432         * config/i386/i386.c (print_operand): Handle vector zeros.
1433         (ix86_split_to_parts): Handle CONST_VECTOR.
1434         (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
1435         (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
1436         what modes to tie for MMX and SSE registers.
1437         * config/i386/i386.h (MMX_REG_MODE_P): Remove.
1438         * config/i386/i386.md: Extend move 0 -> xor peephole to apply
1439         to vector modes as well.
1440         * config/i386/predicates.md (const0_operand): Handle VOIDmode
1441         properly as an input mode.
1442
1443 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
1444
1445         * tree-ssa-operands.c (verify_abort): Use %p for pointers.
1446
1447 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
1448
1449         * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
1450
1451 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
1452
1453         * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
1454         and local functions, set sse_nregs to 8 and float_in_sse.
1455         (function_arg_advance, function_arg): If float_in_sse, pass
1456         SFmode and DFmode arguments in SSE registers.
1457         * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
1458
1459         * config/i386/i386.c (ix86_value_regno): Only optimize local functions
1460         of -funit-at-a-time.
1461
1462 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
1463
1464         * config/i386/i386-protos.h (ix86_function_value): Accept two
1465         arguments, like the target macro.
1466         * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
1467         * config/i386/i386.c (ix86_function_value): Accept the second
1468         argument of the target macro.
1469         (ix86_function_ok_for_sibcall): Pass a function pointer to
1470         ix86_function_value.
1471         (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
1472         call to ix86_value_regno).
1473         (ix86_value_regno): Add support for returning floating point values
1474         in SSE registers.
1475
1476 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
1477
1478         PR tree-optimization/20076
1479         * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
1480         that call __builtin_return or __builtin_apply_args.
1481
1482 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
1483
1484         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
1485         Use immediate use iterator.
1486         (stmt_is_bumper_for_loop): Use immediate use iterator.
1487         * predict.c (strip_builtin_expect): Use update_stmt.
1488         * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
1489         on all elements of a STATEMENT_LIST.
1490         (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
1491         (bsi_remove): Remove imm_use links and mark the stmt as modified.
1492         (bsi_replace): Mark stmt as modified and the update it.
1493         * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
1494         (expand_complex_libcal): Call update_stmt.
1495         (expand_complex_comparison): Call mark_stmt_modified.
1496         (expand_complex_operations_1): Call update_stmt_if_modified.
1497         (expand_vector_operations_1): Call mark_stmt_modified.
1498         * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
1499         compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
1500         add_immediate_use, redirect_immediate_use,
1501         redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
1502         dump_immediate_uses_for, debug_immediate_uses_for): Delete.
1503         (mark_new_vars_to_rename): Call update_stmt.
1504         * tree-dump.c (dump_option_value_in): Add "stmtaddr".
1505         * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.  
1506         Ignore PHI nodes.
1507         (unmodify_stmt): Delete.
1508         (update_stmt): New.  Force an update of a stmt.
1509         (update_stmt_if_modified): update a stmt if it is out of date.
1510         (get_stmt_operands): Verify stmt is NOT modified. 
1511         (stmt_modified_p): Update comment.
1512         (delink_imm_use): Remove a use node from its immuse list.
1513         (link_imm_use_to_list): Link a use node to a specific list.
1514         (link_imm_use): Link a node to the correct list.
1515         (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
1516         it in the correct list, if appropriate.
1517         (link_imm_use_stmt): Link a use node, and set the stmt pointer.
1518         (relink_imm_use): Link a use node in place of another node in a list.
1519         (relink_imm_use_stmt): LInk a node in place of another node, and set
1520         the stmt pointer.
1521         (end_safe_imm_use_traverse): New.  Terminate a safe immuse iterator.
1522         (end_safe_imm_use_p): New.  Check for the end of a safe immuse iterator.
1523         (first_safe_imm_use): New.  Initialize a safe immuse iterator.
1524         (next_safe_imm_use): New.  Proceed to next safe immuse iterator value.
1525         (end_readonly_imm_use_p): New.  Check for end of a fast immuse iterator.
1526         (first_readonly_imm_use): New.  Initialize a fast immuse iterator.
1527         (next_readonly_imm_use): New.  Get the next fast immuse iterator value.
1528         (has_zero_uses): New.  Return true if there are no uses of a var.
1529         (has_single_use): New.  Return true if there is only a single use of a
1530         variable.
1531         (single_imm_use): New.  Return the simgle immediate use.
1532         (num_imm_uses): New.  Return the number of immediate uses.
1533         (get_v_must_def_ops): Use is now a pointer.
1534         (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
1535         get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of 
1536         the use node.
1537         (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
1538         (delink_stmt_imm_use): Delink all immuses from a stmt.
1539         (phi_arg_index_from_use): New.  Return a phi arg index for a use.
1540         * tree-flow.h (struct dataflow_d): Delete.
1541         (immediate_use_iterator_d): New.  Immediate use iterator struct.
1542         (FOR_EACH_IMM_USE_FAST): New.  Macro for read only immuse iteration.
1543         (FOR_EACH_IMM_USE_SAFE): New.  Macro for write-safe immuse iteration.
1544         (BREAK_FROM_SAFE_IMM_USE): New.  Macro for earlyu exit from write-safe 
1545         iteration.
1546         (struct stmt_ann_d): Remove dataflow_t from struct.
1547         * tree-if-conv.c (tree_if_conversion).  Don't call free_df.
1548         (if_convertible_phi_p): Use FAST immuse iterator.
1549         (if_convertible_loop_p): Don't call compute_immediate_uses.
1550         (replace_phi_with_cond_modify_expr): Call update_stmt.
1551         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call 
1552         update_stmt_if_modified.
1553         (rewrite_all_into_ssa): Initialize ssa operands.
1554         * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
1555         compute_immediate_uses.
1556         * tree-optimize.c (execute_todo): Call verify_ssa whenever the 
1557         ssa_property is available.
1558         (execute_one_pass):  Change parameters passed to execute_todo.
1559         * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
1560         (remove_ssa_form): Call fini_ssa_operands.
1561         (insert_backedge_copies): Delete call to modify_stmt.
1562         * tree-phinodes.c (make_phi_node): Initialize use nodes.
1563         (release_phi_node): Delink any use nodes before releasing.
1564         (resize_phi_node): Relink any use nodes.
1565         (remove_phi_arg_num): Delink the use node.
1566         (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
1567         (remove_all_phi_nodes_for): Release phi node first.
1568         * tree-pretty-print.c (dump_generic_node): Print stmt address.
1569         * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
1570         (scalarize_use, scalarize_copy): Call update_stmt.
1571         * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
1572         (compute_points_to_and_addr_escape): Call mark_stmt_modified.
1573         * tree-ssa-cpp.c (need_imm_uses_for): Delete.
1574         (ccp_initialize): Remove call to compute_immediate_uses.
1575         (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
1576         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified 
1577         stmts.
1578         (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
1579         (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
1580         (eliminate_redundant_computations): Call mark_stmt_modified.
1581         (cprop_operand): Call mark_stmt_modified.
1582         (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
1583         * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
1584         (dse_optimize_stmt): Use new immuse interface.
1585         (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
1586         * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
1587         (substitute_single_use_vars): Use new immuse interface.
1588         (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
1589         and compute_immediate_uses.
1590         * tree-ssa-loop-im.c (single_reachable_address): Use new immuse 
1591         interface.
1592         (rewrite_mem_refs): Call update_stmt.
1593         (determine_lsm): Remove call to compute_imm_uses and free_df.
1594         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
1595         (try_unroll_loop_completely): Call update_stmt.
1596         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
1597         (rewrite_use_compare): Call update_stmt.
1598         (compute_phi_arg_on_exit): Insert each stmt before trying to process.
1599         (rewrite_use) : Call update_stmt.
1600         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
1601         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call 
1602         update_stmt.
1603         * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
1604         (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
1605         (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
1606         use nodes.
1607         (initialize_vuse_operand): New.  Initialize a vuse operand.
1608         (initialize_v_may_def_operand): New.  Initialize a maydef operand.
1609         (initialize_v_must_def_operand): New.  Initialize a mustdef operand.
1610         (finalize_ssa_defs): Use stmt parameter.
1611         (correct_use_link): Ensure a use node is in the correct list, and has
1612         the correct stmt pointer.
1613         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
1614         finalize_ssa_v_must_defs): Also initialize use nodes.
1615         (finalize_ssa_stmt_operands): Pass extra stmt operands.
1616         (build_ssa_operands): Seperate parsing from final operand construction.
1617         (parse_ssa_operands): New.  Parse entry point for operand building.
1618         (swap_tree_operands): New.  Swap 2 tree operands.
1619         (update_stmt_operands): Ranamed from get_stmt_operands.  Always builds
1620         operands.
1621         (get_expr_operands): Call swap_tree_operands when needed.
1622         (copy_virtual_operands): Use initialize routines for virtual use ops.
1623         (create_ssa_artficial_load_stmt): Add extra stmt parameter.
1624         (verify_abort): New.  Issue imm_use error.
1625         (verify_imm_links): New Verify imm_use links for a var.
1626         (dump_immediate_uses_for): New.  Dump imm_uses for a var to file.
1627         (dump_immediate_uses): New.  Dump imm_uses for all vars to file.
1628         (debug_immediate_uses): New.  Dump imm_uses for all vars to stderr.
1629         (debug_immediate_uses_for): New.  Dump imm_uses for a var to stderr.
1630         * tree-ssa-operands.h (struct use_operand_ptr): Delete.
1631         (NULL_USE_OPERAND_P) Define.
1632         (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
1633         use node.
1634         (struct vuse_operand_type): New struct.
1635         (SET_USE): Call set_ssa_use_from_ptr.
1636         (USE_STMT): Define.
1637         (PHI_ARG_INDEX_FROM_USE): Define.
1638         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi 
1639         argument via SET_USE, not PHI_ARG_DEF_TREE.
1640         * tree-ssa-pre.c (eliminate): Call update_stmt.
1641         * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators.  Don't
1642         call free_df.
1643         * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
1644         (nearest_common_dominator_of_uses): Use imm_use iterator.
1645         (statement_sink_location): Use imm_use iterator and interface.
1646         (execute_sink_code): Don't call compute_immediate_uses or free-df.
1647         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
1648         PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
1649         * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
1650         (verify_ssa): Ensure no stmt is marked modify after optimization pass
1651         if new parameter is true.
1652         (init_tree_ssa): Don't initialize operand cache here.
1653         (delete_tree_ssa): Don't destroy operand cache here.
1654         (propagate_into_addr): Pass in a use pointer, return true if anything
1655         was changed.
1656         (replace_immediate_uses): Use imm_use iterator, call update_stmt.
1657         (check_phi_redundancy): Use imm_use iterator.
1658         (kill_redundant_phi_nodes): Don't call compute_immediate_uses or 
1659         free_df.
1660         * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
1661         (release_ssa_name): Delink node and all elements in its imm_use list.
1662         * tree-tailcall.c (adjust_return_value): Call update_stmt.
1663         * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
1664         * tree-vectorizer.c (need_imm_uses_for): Delete.
1665         (vectorize_loops): Dont call compute_immediate_uses or free_df.
1666         * tree.h (struct ssa_imm_use_d): Define.
1667         (SSA_NAME_IMM_USE_NODE): Define.
1668         (struct tree_ssa_name): Add imm_use node.
1669         (PHI_DF): Delete.
1670         (PHI_ARG_IMM_USE_NODE): Define.
1671         (struct phi_arg_d): Add imm_use node.
1672         (struct tree_phi_node): Remove struct dataflow_d element.
1673         (TDF_STMTADDR): Define.
1674
1675 2005-04-05  Dale Johannesen  <dalej@apple.com>
1676
1677         * doc/invoke.texi (Optimization Options):  Remove
1678         duplicate -fcse-follow-jumps.  Add -fweb.
1679         (-ftree-lim):  Fix spelling (-ftree-loop-im, invariants).
1680         (-fivcanon):  Fix spelling (-ftree-loop-ivcanon).
1681
1682 2005-04-05  Per Bothner  <per@bothner.com>
1683
1684         * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
1685         to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
1686         (warn_uninit): Get EXPR_LOCUS from context now instead.
1687         This fixes a USE_MAPPED_LOCATION testsuite failure.
1688
1689         * tree-ssa.c (warn_uninitialized_var): Remove useless local.
1690
1691 2005-04-05  Per Bothner  <per@bothner.com>
1692
1693         * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
1694         of the artification 'return 0' in main() to BUILTINS_LOCATION.
1695         * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
1696         before warning. 
1697
1698 2004-04-05  Devang Patel  <dpatel@apple.com>
1699
1700         * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
1701         (lhsr<mode>3): ... new name.
1702         (altivec_vsra<VI_char>): Rename to ..
1703         (ashr<mode>3): ... new name.
1704         * config/rs6000/rs6000.c (builtin_description): Rename shift
1705         operations.
1706         
1707 2004-04-05  Paolo Bonzini  <bonzini@gnu.org>
1708
1709         * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
1710         gen_lowpart_for_combine.
1711         * cse.c (gen_lowpart_if_possible): Move...
1712         * rtlhooks.c (gen_lowpart_if_possible): ... here.  Also try
1713         gen_lowpart_SUBREG.
1714         (gen_lowpart_no_emit_general): Use it.
1715
1716 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
1717
1718         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
1719         overriding.
1720
1721 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
1722
1723         * system.h: Fix typo.
1724
1725 2005-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
1726
1727         * config/bfin/bfin-modes.def: New file.
1728         * config/bfin/bfin-protos.h: New file.
1729         * config/bfin/bfin.c: New file.
1730         * config/bfin/bfin.h: New file.
1731         * config/bfin/bfin.md: New file.
1732         * config/bfin/bfin.opt: New file.
1733         * config/bfin/crti.s: New file.
1734         * config/bfin/crtn.s: New file.
1735         * config/bfin/elf.h: New file.
1736         * config/bfin/lib1funcs.asm: New file.
1737         * config/bfin/predicates.md: New file.
1738         * config/bfin/t-bfin: New file.
1739         * config/bfin/t-bfin-elf: New file.
1740         * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
1741         Document new attributes.
1742         (interrupt, interrupt_handler, saveall): Update documentation for
1743         these attributes.
1744         * doc/install.texi (Specific): Add entry for the Blackfin.
1745         * doc/invoke.texi (Blackfin Options): New section.
1746         * doc/md.texi (Blackfin family): New section to document constraints.
1747         * config.gcc: Add bfin*-* and bfin*-elf configurations.
1748
1749 2005-04-05  Olivier Hainque  <hainque@adacore.com>
1750         
1751         * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
1752         match what the system unwinder expects.
1753         * config/mips/mips.c (mips_frame_set): If we're saving the return
1754         address register and the dwarf return address column number differs
1755         from the hard register number, adjust the note reg to refer to the
1756         former.
1757
1758 2004-04-05  Richard Sandiford  <rsandifo@redhat.com>
1759
1760         * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
1761         * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
1762         (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
1763         (processor_type): New enum.
1764         (mn10300_processor): New variable.
1765         (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
1766         (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
1767         * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
1768         (PROCESSOR_DEFAULT): New macro.
1769         * config/mn10300/mn10300.c (mn10300_processor): New variable.
1770         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1771         (mn10300_handle_option, mn10300_override_options): New functions.
1772         * config/mn10300/mn10300.opt: New file.
1773
1774 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
1775             Sebastian Pop <sebastian.pop@cri.ensmp.fr>
1776
1777         PR tree-optimization/19903
1778         * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
1779         that don't fit in their type after conversion.
1780
1781 2005-04-05  Uros Bizjak <uros@kss-loka.si>
1782
1783         PR target/20421
1784         * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
1785         (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
1786         Allocate local stack slots here.  Set ix86_optimize_mode_switching.
1787         flag here. Implement using define_insn_and_split.  
1788         (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
1789         (frndintxf2_mask_pm_i387): New insn patterns.
1790         (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
1791         Do not set ix86_optimize_mode_switching flag.
1792         (ceilsf2, ceildf2, ceilxf2): Same.
1793         (btruncsf2, btruncdf2, btruncxf2): Same.
1794         (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
1795
1796 2005-04-05  Ian Lance Taylor  <ian@airs.com>
1797
1798         PR debug/9963
1799         * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
1800         i386_pe_record_external_function.
1801         (i386_pe_record_external_function): Update declaration.
1802         * config/i386/winnt.c (struct extern_list): Add decl field.
1803         (i386_pe_record_external_function): Add decl parameter.
1804         (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
1805         identifier.
1806         * config/i386/i386-protos.h (i386_pe_record_external_function):
1807         Update declaration.
1808
1809 2005-04-05  Kazu Hirata  <kazu@cs.umass.edu>
1810
1811         * config/m68k/m68k-protos.h: Add a prototype for
1812         valid_dbcc_comparison_p_2.
1813         * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
1814         extend_operator, const_uint32_operand, const_sint32_operand,
1815         general_src_operand, nonimmediate_src_operand,
1816         memory_src_operand, post_inc_operand, pre_dec_operand,
1817         pcrel_address): Move to predicates to predicates.md.
1818         * config/m68k/m68k.h (PREDICATE_CODES): Remove.
1819         * config/m68k/m68k.md: Include predicates.md.
1820         * config/m68k/predicates.md: New.
1821
1822 2005-04-04  Roger Sayle  <roger@eyesopen.com>
1823
1824         * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
1825
1826         * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
1827
1828 2005-04-04  Ian Lance Taylor  <ian@airs.com>
1829
1830         * c-typeck.c (struct c_switch): Rename switch_stmt field to
1831         switch_expr.
1832         (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
1833         (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
1834         (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
1835         Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
1836         * c-common.c (c_do_switch_warnings_1): New static function broken
1837         out of c_do_switch_warnings.
1838         (c_do_switch_warnings): Call c_do_switch_warnings_1.
1839         (c_do_switch_expr_warnings): New function.
1840         * c-common.h (c_do_switch_expr_warnings): Declare.
1841
1842 2005-04-04  David Edelsohn  <edelsohn@gnu.org>
1843             Daniel Jacobowitz  <dan@codesourcery.com>
1844
1845         * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
1846         trapping divide.
1847         * rtlanal.c (may_trap_p): Same.
1848
1849 2005-04-04  Dale Johannesen  <dalej@apple.com>
1850
1851         * ChangeLog:  remove reference to ChangeLog.12.
1852
1853 2005-04-05  Hans-Peter Nilsson  <hp@axis.com>
1854
1855         CRIS epilogue as RTL.
1856         * config/cris/cris.md: Change all 0 in unspec 0 to
1857         CRIS_UNSPEC_PLT.
1858         (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
1859         ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
1860         patterns.
1861         ("return"): Change to define_expand.  Call cris_expand_return for
1862         actual expansion.
1863         ("*return_expanded"): New pattern.
1864         ("epilogue"): New define_expand.
1865         * config/cris/cris.h (PREDICATE_CODES): Add
1866         cris_load_multiple_op.
1867         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
1868         type.
1869         (enum cris_retinsn_type): New.
1870         (struct machine_function): New member return_type.
1871         (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
1872         (cris_target_asm_function_epilogue): Remove, moving RTLified
1873         contents to...
1874         (cris_expand_epilogue): New function.
1875         (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
1876         (cris_gen_movem_load, cris_load_multiple_op)
1877         (cris_return_address_on_stack_for_return, cris_expand_return): New
1878         functions.
1879         (cris_target_asm_function_prologue)
1880         (cris_initial_frame_pointer_offset): Call
1881         cris_reg_saved_in_regsave_area instead of complicated expression.
1882         Call cris_return_address_on_stack instead of an expression.
1883         (cris_print_operand) <case 'o', case 'O'>: New cases.
1884         (cris_return_address_on_stack): Change return-type to bool.
1885         (cris_simple_epilogue): Ditto.  Return false if registers are
1886         saved.
1887         * config/cris/cris-protos.h (cris_simple_epilogue)
1888         (cris_return_address_on_stack): Adjust prototype return type.
1889         (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
1890         (cris_return_address_on_stack_for_return): New prototypes.
1891
1892 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
1893
1894         * config/frv/frv.h (PREDICATE_CODES): Add CONST to
1895         gpr_or_int12_operand.
1896
1897         * config/frv/frv-protos.h: Add a prototype to
1898         frv_legitimate_memory_operand and frv_const_unspec_p.
1899         (frv_unspec): Move from frv.c.
1900         * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
1901         (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
1902         (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
1903         gpr_or_fpr_operand, gpr_or_int12_operand,
1904         gpr_fpr_or_int12_operand, fpr_or_int6_operand,
1905         gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
1906         int6_operand, int5_operand, uint5_operand, uint4_operand,
1907         uint1_operand, int_2word_operand, uint16_operand,
1908         upper_int16_operand, integer_register_operand,
1909         gpr_no_subreg_operand, fpr_operand, even_reg_operand,
1910         odd_reg_operand, even_gpr_operand, odd_gpr_operand,
1911         quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
1912         dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
1913         move_destination_operand, movcc_fp_destination_operand,
1914         frv_function_symbol_referenced_p, move_source_operand,
1915         condexec_dest_operand, condexec_source_operand,
1916         reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
1917         const_unspec_operand, gpr_or_memory_operand,
1918         gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
1919         icc_operand, fcc_operand, cc_operand, icr_operand,
1920         fcr_operand, cr_operand, call_operand, sibcall_operand,
1921         symbolic_operand, relational_operator,
1922         integer_relational_operator, float_relational_operator,
1923         ccr_eqne_operator, minmax_operator,
1924         condexec_si_binary_operator, condexec_si_media_operator,
1925         condexec_si_divide_operator, condexec_si_unary_operator,
1926         condexec_sf_conv_operator, condexec_sf_add_operator,
1927         condexec_memory_operand, intop_compare_operator, acc_operand,
1928         even_acc_operand, quad_acc_operand, accg_operand: Move to
1929         predicates.md.
1930         * config/frv/frv.h (PREDICATE_CODES): Remove.
1931         * config/frv/frv.md: Include predicates.md.
1932         * config/frv/predicates.md: New.
1933
1934 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
1935
1936         PR target/19537
1937         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
1938         * tree-ssa-loop-ivopts.c: Include langhooks.h.
1939         (add_standard_iv_candidates_for_size): New function, extracting code
1940         from add_standard_iv_candidates and parameterizing it by type size.
1941         (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
1942
1943 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
1944
1945         * system.h (GCOV_SIZE_TYPE): Unposion.
1946         * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
1947         (GCOV_TYPE_SIZE): ...this new macro.
1948         * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
1949         * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
1950         (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
1951         (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
1952         (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
1953         instead of unsigned_intSI_type_node.
1954         * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
1955         (rtl_gen_one_value_profiler_no_edge_manipulation)
1956         (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
1957         * value-prof.c: Include coverage.h.
1958
1959 2005-04-02  Daniel Berlin  <dberlin@dberlin.org>
1960             Diego Novillo <dnovillo@redhat.com>
1961             
1962         Fix PR tree-optimization/20703
1963         Fix PR tree-optimization/20725
1964         
1965         * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
1966         (create_expression_by_pieces): Ditto.
1967         (valid_in_set): Ditto. Also handle tcc_declaration.
1968         (find_or_generate_expression): Handle comparison class.
1969         (insert_into_preds_of_block): Ditto.
1970         (insert_aux): Ditto.
1971         (create_value_expr_from): Handle comparison class, recursively
1972         handle reference nodes.
1973         (compute_avail): Handle comparison classes, rewrite a little cleaner.
1974         (execute_pre): Fix spacing.
1975         (do_fre): Renamed to execute_fre.
1976
1977 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1978
1979         * doc/invoke.texi (SPARC options): Document that
1980         -mlittle-endian is not supported on Linux either.
1981
1982 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1983
1984         PR target/4198
1985         PR target/12027
1986         * config.gcc (Obsolete configurations): Remove
1987         sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
1988         (sparclite-*-coff*): Delete.
1989         (sparclite-*-elf*): Likewise.
1990         (sparc86x-*-elf*): Likewise.
1991         (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
1992         * config/sparc/lite.h: Delete.
1993         * config/sparc/litecoff.h: Likewise.
1994         * config/sparc/liteelf.h: Likewise.
1995         * config/sparc/sp86x-elf.h: Likewise.
1996         * config/sparc/t-sparclite: Likewise.
1997         * config/sparc/t-sp86x: Likewise.
1998
1999 2005-04-04  Adrian Straetling  <straetling@de.ibm.com>
2000
2001         * config/s390/s390-protos.h: (s390_comparison,
2002         s390_alc_comparison, s390_slb_comparison, const0_operand,
2003         consttable_operand, larl_operand, s_operand,
2004         shift_count_operand, bras_sym_operand, load_multiple_operation,
2005         store_multiple_operation, s390_plus_operand): Remove prototypes.
2006         (s390_legitimate_address_without_index_p): New prototype.
2007         * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
2008         to s390.h.
2009         (s390_comparison, s390_alc_comparison, s390_slb_comparison,
2010         const0_operand, consttable_operand, larl_operand, s_operand,
2011         shift_count_operand, bras_sym_operand, load_multiple_operation,
2012         store_multiple_operation, s390_plus_operand): Move to
2013         predicates.md.
2014         (check_mode): Remove.
2015         (s390_branch_condition_mask): Remove 'static'. Move prototype to
2016         s390-protos.h.
2017         (s390_legitimate_address_without_index_p): New.
2018         * config/s390/s390.h (PREDICATE_CODES): Remove.
2019         * config/s390/s390.md: Include predicates.md.
2020         * config/s390/predicates.md: New.
2021
2022 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2023
2024         PR target/20446
2025         * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
2026         * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
2027         (NEED_INDICATE_EXEC_STACK): Define to 1.
2028         * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
2029         (NEED_INDICATE_EXEC_STACK): Define to 1.
2030         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
2031         (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
2032         (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
2033         (pic_helper_emitted_p): New global.
2034         (emit_pic_helper): New function extracted from...
2035         (load_pic_register): ...here.  Add 'delay_pic_helper' parameter.
2036         Do not call emit_pic_helper if delay_pic_helper is true.
2037         (sparc_expand_prologue): Pass 'false' to load_pic_register.
2038         (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
2039         (sparc_file_end): New function.
2040
2041 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
2042
2043         * config/mcore/mcore-protos.h: Remove the prototypes for
2044         mcore_arith_reg_operand, mcore_general_movsrc_operand,
2045         mcore_general_movdst_operand, mcore_reload_operand,
2046         mcore_arith_J_operand, mcore_arith_K_operand,
2047         mcore_arith_K_operand_not_0, mcore_arith_M_operand,
2048         mcore_arith_K_S_operand, mcore_arith_imm_operand,
2049         mcore_arith_any_imm_operand, mcore_arith_O_operand,
2050         mcore_literal_K_operand, mcore_addsub_operand,
2051         mcore_compare_operand, mcore_load_multiple_operation,
2052         mcore_store_multiple_operation, mcore_call_address_operand.
2053         Add a prototype for const_ok_for_mcore.
2054         * config/mcore/mcore.c (mcore_call_address_operand,
2055         mcore_general_movsrc_operand, mcore_general_movdst_operand,
2056         mcore_arith_reg_operand, mcore_reload_operand,
2057         mcore_arith_J_operand, mcore_arith_K_operand,
2058         mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
2059         mcore_arith_M_operand, mcore_arith_imm_operand,
2060         mcore_arith_any_imm_operand, mcore_arith_O_operand,
2061         mcore_literal_K_operand, mcore_addsub_operand,
2062         mcore_compare_operand, mcore_load_multiple_operation,
2063         mcore_store_multiple_operation): Move to predicates.md.
2064         (const_ok_for_mcore): Export.
2065         * config/mcore/mcore.h (PREDICATE_CODES): Remove.
2066         * config/mcore/mcore.md: Include predicates.md.
2067         * config/mcore/predicates.md: New.
2068
2069         * config/mcore/predicates.md: Fix a comment typo.
2070
2071 2005-04-04  Andreas Krebbel  <krebbel1@de.ibm.com>
2072             Adrian Straetling  <straetling@de.ibm.com>
2073
2074         * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
2075         * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
2076         * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
2077         attribute.
2078         ("imul"): Removed from "type" attribute.
2079         ("*muldi3_sign", "muldi3"): Changed type to imuldi.
2080         ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"): 
2081         Changed type to imulsi.
2082         ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
2083
2084 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
2085
2086         * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
2087         (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
2088         (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
2089         (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
2090         (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
2091         (TARGET_SWITCHES, mcore_stack_increment_string)
2092         (TARGET_OPTIONS): Delete.
2093         (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
2094         than *_BIT constants.
2095         (TARGET_8ALIGN): #undef old definition before redefining to 1.
2096         * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
2097         (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
2098         (mcore_override_options): Delete mcore_stack_increment code.
2099         Change use of M340_BIT to MASK_M340.
2100         * config/mcore/mcore.opt: New file.
2101
2102 2005-04-04  Ian Lance Taylor  <ian@airs.com>
2103
2104         * config/arm/arm.c (replace_symbols_in_block): Remove static
2105         function.
2106
2107 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
2108
2109         * config/fr30/fr30-protos.h: Remove the prototypes for
2110         stack_add_operand, add_immediate_operand,
2111         high_register_operand, low_register_operand, call_operand,
2112         di_operand, and nonimmediate_di_operand.
2113         * config/fr30/fr30.c (stack_add_operand,
2114         add_immediate_operand, high_register_operand,
2115         low_register_operand, call_operand, di_operand,
2116         nonimmediate_di_operand): Move to predicates.md.
2117         * config/fr30/fr30.h (PREDICATE_CODES): Remove.
2118         * config/fr30/fr30.md: Include predicates.md.
2119         * config/fr30/predicates.md: New.
2120
2121         * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
2122         LABEL_REF to mcore_general_movsrc_operand.  Add SYMBOL_REF to
2123         mcore_call_address_operand.
2124
2125         * config/sh/sh.h (PREDICATE_CODES): Add CONST to
2126         general_movsrc_operand.
2127
2128 2005-04-04  Alan Modra  <amodra@bigpond.net.au>
2129
2130         * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
2131         after freeing.
2132
2133 2005-04-04  Richard Earnshaw  <richard.earnshaw@arm.com>
2134
2135         PR target/14812
2136         * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
2137         a negated value.
2138
2139 2005-04-04  Richard Henderson  <rth@redhat.com>
2140             Jakub Jelinek  <jakub@redhat.com>
2141
2142         PR rtl-optimization/16104
2143         * fold-const.c (fold_unary): Fix folding of vector conversions.
2144
2145 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
2146
2147         * config.gcc (xstormy16-*-elf): Set extra_options.
2148         * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
2149         * config/stormy16/stormy16.opt: New file.
2150
2151 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
2152
2153         * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
2154         (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
2155         (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
2156         (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
2157         (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
2158         (TARGET_UNIX_ASM): Delete.
2159         (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
2160         * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
2161         * config/pdp11/pdp11.c (pdp11_handle_option): New function.
2162         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2163         * config/pdp11/pdp11.opt: New file.
2164
2165 2005-04-03  Roger Sayle  <roger@eyesopen.com>
2166             Alexandre Oliva  <aoliva@redhat.com>
2167
2168         PR c++/19199
2169         * fold-const.c (non_lvalue): Split tests into...
2170         (maybe_lvalue_p): New function.
2171         (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
2172         C++ front-end prior to lowering into gimple form.
2173
2174 2005-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2175
2176         * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
2177         BUILT_IN_STRNCASECMP): New.
2178         * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
2179         and strndup.
2180
2181 2005-04-03  Richard Earnshaw  <richard.earnshaw@arm.com>
2182
2183         PR target/14812
2184         * arm.md (addsi3_compare0_for_combiner): Delete.
2185         (addsi3_compare0_scratch_for_combiner): Delete.
2186         (cmpsi_neg_shiftsi): Delete.
2187         (compare_negsi_si): New pattern.
2188         (cmpsi_negshiftsi_si): New pattern.
2189         (negated_cbranchsi4): Restrict to equality_operator.
2190         
2191         * arm.md (movhi_insn_arch4): delete trailing white space from assembler
2192         template.
2193
2194 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
2195
2196         * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
2197         Fix comment typos.
2198
2199         * doc/install.texi: Fix a typo.
2200
2201 2005-04-03  Steven Bosscher  <stevenb@suse.de>
2202
2203         PR middle-end/20648
2204         * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
2205         a computed goto if the edge to the computed goto block has
2206         incoming abnormal edges.  Clarify how the function works.
2207
2208 2005-04-03  Nathan Sidwell  <nathan@codesourcery.com>
2209
2210         * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
2211         * passes.c (open_dump_file, rest_of_handle_final): Likewise.
2212         * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
2213         hash_scan_set, reg_set_between_after_reload_p,
2214         reg_used_between_after_reload_p, get_avail_load_store_reg,
2215         eliminate_partially_redundant_load): Likewise.
2216         * postreload.c (reload_cse_simplify_set,
2217         reload_combine_note_use): Likewise.
2218         * predict.c (predict_insn, expected_value_to_br_prob,
2219         propagate_freq, expensive_function_p): Likewise.
2220         * print-rtl.c (print_rtx): Likewise.
2221         * profile.c (instrument_edges, instrument_values,
2222         compute_branch_probabilities, branch_prob, union_groups,
2223         tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
2224         * protoize.c (in_system_include_dir, file_could_be_converted,
2225         file_normally_convertible, gen_aux_info_file, seek_to_line,
2226         do_cleaning): Likewise.
2227         * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
2228         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
2229         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
2230
2231 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
2232
2233         * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
2234         * modulo-sched.c (undo_replace_buff_elem): New structure.
2235         (kernel_number_of_cycles, ps_unschedule_node,
2236         undo_generate_reg_moves,free_undo_replace_buff,
2237         undo_permute_partial_schedule,  loop_single_full_bb_p,
2238         SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
2239         build_loops_structure, get_sched_window): New.
2240         (generate_reg_moves): Return undo_replace_buff_elem and other
2241         fixes.
2242         (generate_prolog_epilog): Remove old loop versioning.
2243         (sms_schedule): Use loop information and loop_version.
2244         (sms_schedule_by_order): Split part of it to get_sched_window.
2245         * passes.c (rest_of_handle_sms): call cfg_layout_initialize
2246         cfg_layout_finalize and free_dominance_info before/after SMS.
2247
2248 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
2249
2250         * cfghooks.c (lv_flush_pending_stmts,
2251         cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
2252         lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
2253         * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
2254         lv_add_condition_to_bb,
2255         lv_adjust_loop_header_phi, extract_cond_bb_edges,
2256         flush_pending_stmts): New in cfg_hooks structure.
2257         (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
2258         extract_cond_bb_edges, lv_adjust_loop_header_phi,
2259         lv_add_condition_to_bb): New declarations.
2260         * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
2261         bool.
2262         (loop_version): Declare.
2263         * cfgloopmanip.c (cfghooks.h): Include.
2264         (duplicate_loop_to_header_edge): Change return type to bool.
2265         (loop_version, lv_adjust_loop_entry_edge): Move here.
2266         * cfgrtl.c (cfgloop.h): Include.
2267         (rtl_verify_flow_info_1): Fix.
2268         (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
2269         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
2270         initialization.
2271         * tree-cfg.c (tree_lv_adjust_loop_header_phi,
2272         tree_lv_add_condition_to_bb): New.
2273         (tree_cfg_hooks): Add new hooks to initialization.
2274         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
2275         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
2276
2277 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
2278
2279         * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
2280         xstormy16_below100_or_register,
2281         xstormy16_splittable_below100_or_register, and
2282         nonimmediate_nonstack_operand.
2283
2284         * config/stormy16/stormy16-protos.h: Remove the prototypes for
2285         xstormy16_ineqsi_operator, equality_operator,
2286         inequality_operator, shift_operator,
2287         xstormy16_below100_operand, xstormy16_below100_or_register,
2288         xstormy16_splittable_below100_or_register,
2289         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
2290         * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
2291         equality_operator, inequality_operator,
2292         xstormy16_below100_operand, xstormy16_below100_or_register,
2293         xstormy16_splittable_below100_or_register,
2294         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
2295         nonimmediate_nonstack_operand, shift_operator): Move to
2296         predicates.md.
2297         * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
2298         * config/stormy16/stormy16.md: Include predicates.md.
2299         * config/stormy16/predicates.md: New.
2300
2301 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
2302
2303         * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
2304         small_int, large_int, reg_or_0_operand, simple_memory_operand,
2305         equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
2306         move_operand, power_of_2_operand): Move to predicates.md.
2307         * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
2308         PREDICATE_CODE): Remove.
2309         * config/iq2000/iq2000.md: Include predicates.md.
2310         * config/iq2000/predicates.md: New.
2311
2312 2005-04-02  Richard Sandiford  <rsandifo@redhat.com>
2313
2314         * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
2315         (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
2316         (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
2317         (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
2318         (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
2319         (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
2320         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
2321         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
2322         (TARGET_M68HC11): Delete.
2323         (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
2324         * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
2325         * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
2326         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
2327         (nb_soft_regs): Delete.
2328         (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
2329         (m68hc11_override_options): Remove the code that caters for MASK_M6811
2330         and MASK_M6812 being set simultaneously.  Change the code that sets
2331         the default m68hc11_soft_reg_count to use integers instead of strings.
2332         (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
2333         m68hc11_soft_reg_count (which now has an int type) as the number
2334         of soft registers.
2335         * config/m68hc11/m68hc11.opt: New file.
2336
2337 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
2338
2339         * config/fr30/fr30.h (PREDICATE_CODES): Remove
2340         fp_displacement_operand, sp_displacement_operand.
2341
2342         * config/m68hc11/m68hc11-protos.h: Add a prototype for
2343         m68hcc_auto_inc_p.
2344         Remove the prototypes for tst_operand, cmp_operand,
2345         stack_register_operand, d_register_operand,
2346         hard_addr_reg_operand, splitable_operand,
2347         m68hc11_logical_operator, m68hc11_arith_operator,
2348         m68hc11_non_shift_operator, m68hc11_shift_operator,
2349         m68hc11_unary_operator, m68hc11_eq_compare_operator,
2350         non_push_operand, hard_reg_operand, and
2351         reg_or_some_mem_operand.
2352         * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
2353         extern.
2354         (tst_operand, cmp_operand, non_push_operand,
2355         splitable_operand, reg_or_some_mem_operand,
2356         stack_register_operand, d_register_operand,
2357         hard_addr_reg_operand, hard_reg_operand,
2358         m68hc11_eq_compare_operator, m68hc11_logical_operator,
2359         m68hc11_arith_operator, m68hc11_non_shift_operator,
2360         m68hc11_shift_operator, m68hc11_unary_operator): Move to
2361         predicates.md.
2362         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
2363         * config/m68hc11/m68hc11.md: Include predicates.md.
2364         * config/m68hc11/predicates.md: New.
2365
2366 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
2367
2368         PR debug/19345
2369         * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
2370         change checked in along with 2005-03-03's patch for debug/20253.
2371         * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
2372         (remap_decl): Insert type decl in map earlier.
2373
2374 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
2375
2376         PR tree-optimization/20640
2377         * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
2378         post-dominator if it has phi nodes.
2379         (eliminate_unnecessary_stmts): Remove dead phis in all blocks
2380         before dead statements.
2381
2382 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
2383
2384         PR middle-end/20491
2385         * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
2386
2387 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
2388
2389         PR rtl-optimization/20290
2390         * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
2391         in every iteration if the entry point is the exit test.
2392
2393 2005-04-02  Hans-Peter Nilsson  <hp@axis.com>
2394
2395         * config/cris/cris.md (attribute "length"): Define.
2396
2397 2005-04-02  Geoffrey Keating  <geoffk@apple.com>
2398
2399         * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
2400         (word_offset_memref_operand): New.
2401         * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
2402         (indexed_or_indirect_operand): Delete.
2403         * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
2404         (indexed_or_indirect_operand): Delete.
2405
2406         * config/rs6000/t-darwin8: Comment out ppc64 multilib.
2407
2408         PR 20650
2409         * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
2410         a register.
2411
2412         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
2413         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
2414
2415 2005-04-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2416
2417         * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
2418
2419 2005-04-01  Ian Lance Taylor  <ian@airs.com>
2420
2421         * gcc.c: Don't include <sys/resource.h> or declare getrusage.
2422         (rus, prus): Remove static variables.
2423         (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
2424         (process_command): Permit report_times and use_pipes together.
2425
2426 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
2427
2428         * c-decl.c (validate_proto_after_old_defn): Look at
2429         TYPE_MAIN_VARIANT of argument types.
2430
2431 2005-04-01  Paul Brook  <paul@codesourcery.com>
2432
2433         * config/arm/arm.c (thumb_call_via_label): Include space for SP.
2434         (arm_output_function_epilogue): Allow call_via_SP.
2435         (thumb_call_via_reg, arm_file_end): Ditto.
2436         * config/arm/arm.h (struct machine_function): Include space for SP.
2437         (thumb_call_via_label): Update declaration.
2438
2439 2005-04-01  Ian Lance Taylor  <ian@airs.com>
2440
2441         * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
2442         doing a peephole optimization, once again put any notes in the
2443         proper position.
2444
2445 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
2446
2447         * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
2448
2449 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
2450
2451         * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
2452         (block_alloc, find_free_reg): Likewise.
2453         * loop-doloop.c (doloop_modify): Likewise.
2454         * loop-invariant.c (record_use): Likewise.
2455         * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
2456         get_iv_value, canon_condition, eliminate_implied_condition,
2457         eliminate_implied_condition, simplify_using_initial_values,
2458         shorten_into_mode, canonicalize_iv_subregs,
2459         iv_number_of_iterations): Likewise.
2460         * loop-unroll.c (expand_var_during_unrolling): Likewise.
2461         * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
2462         unswitch_loop): Likewise.
2463         * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
2464         move_movables, replace_call_address, find_and_verify_loops,
2465         rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
2466         record_giv, final_giv_value, general_induction_var,
2467         simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
2468         loop_giv_dump): Likewise.
2469
2470         * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
2471         GCOV_CHECK_WRITING): Remove.
2472         (gcov_position, gcov_rewrite): Use gcc_assert.
2473         * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
2474         gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
2475         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
2476         gcc_assert.
2477
2478 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
2479
2480         * tree-inline.c: Fix a typo.
2481
2482 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
2483
2484         * configure.ac (enable-checking): Explicitly set all variables for
2485         collective switch values.  Alphabetize variables. Rename
2486         ac_checking_valgrind to ac_valgrind_checking.  Allow 'none' as
2487         synonym for 'no'.
2488         * doc/install.texi (enable-checking): Update documentation.
2489         * configure: Rebuilt.
2490
2491 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
2492
2493         * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
2494         possible.
2495
2496 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
2497
2498         * arm.c (adjacent_mem_locations): Reject volatile memory refs.
2499         Also reject cases where this pattern will cause load delay stalls
2500         unless optimizing for size and it will produce a shorter sequence.
2501         * arm.md (arith_adjacent_mem): Make better use of ldm addressing
2502         variants to avoid pre-adjusting the base when possible.
2503
2504 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
2505
2506         * arm.md (minmax_arithsi): Reject all eliminable registers, not just
2507         the frame and argument pointers.
2508         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
2509         (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
2510         (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
2511         (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
2512         (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
2513         (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
2514
2515 2005-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
2516
2517         * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
2518         with entry for selectany attribute.
2519         * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
2520         Declare.
2521         * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
2522         (i386_pe_asm_named_section): Handle sections generated by
2523         selectany attribute.
2524         * doc/extend.texi (selectany): Document attribute.
2525
2526 2005-04-01  Paolo Bonzini  <bonzini@gnu.org>
2527             Jan Hubicka  <jh@suse.cz>
2528
2529         * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
2530         to fix addresses involving EBP and ESP.
2531         (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
2532         for SUBREGed registers.
2533         (legitimate_address_p): Accept SUBREGed registers.
2534
2535 2005-04-01  Jakub Jelinek  <jakub@redhat.com>
2536
2537         PR c++/19406
2538         * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
2539         (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
2540         for FIELD_DECLs.
2541
2542 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
2543
2544         * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
2545
2546 2005-04-01  James E Wilson  <wilson@specifixinc.com>
2547
2548         PR c++/20505
2549         * dwarf2out.c (rtl_for_decl_init): New function.
2550         (rtl_for_decl_location): Extracted from here.
2551         (tree_add_const_value_attribute): Call rtl_for_decl_init and
2552         add_const_value_attribute.  Delete initializer_constant_valid_p call.
2553
2554 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
2555
2556         * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
2557         lambda-code.c, loop.c, machmode.def, mips-tfile.c,
2558         modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
2559         tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
2560         config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
2561         config/i386/i386.md, config/rs6000/predicates.md,
2562         config/rs6000/rs6000.c, config/s390/fixdfdi.h,
2563         config/s390/s390.c, config/stormy16/stormy16.c,
2564         config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
2565         typos.
2566
2567 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
2568
2569         PR c/17855
2570         * gimplify.c (gimplify_expr): Create a temporary for lvalue
2571         COND_EXPR and CALL_EXPR.
2572
2573 2005-03-31  Vladimir Makarov  <vmakarov@redhat.com>
2574
2575         PR target/20632
2576         * genautomata.c (first_cycle_unit_presence): Check all alternative
2577         states for unit presence.
2578
2579         * doc/md.texi: Remove remark about impossibility to query unit
2580         presence in non nondeterministic automaton state.
2581         
2582         * config/ia64/ia64.c (get_template): Change order of unit querying.
2583
2584 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
2585
2586         * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
2587         obsolete comment.
2588
2589 2005-03-31  Zdenek Dvorak  <dvorakz@suse.cz>
2590
2591         * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
2592         flag for edges outside any loops.
2593
2594 2005-03-31  Janis Johnson  <janis187@us.ibm.com>
2595
2596         * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
2597
2598 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
2599
2600         * tree-ssa-alias.c: Follow spelling conventions.
2601         * doc/tree-ssa.texi: Fix a typo.
2602
2603 2005-03-31  J"orn Rennecke <joern.rennecke@st.com>
2604
2605         * postreload-gcse.c: Include target.h.
2606         (gcse_after_reload_main): Return early if we cannot modify jumps.
2607         * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
2608
2609 2005-03-31  David Edelsohn  <edelsohn@gnu.org>
2610
2611         * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
2612         expensive operations.
2613
2614 2005-03-31  Ian Lance Taylor  <ian@airs.com>
2615
2616         * collect2.c (lderrout): New variable.
2617         (collect_exit): Dump ldout to stdout.  Dump and unlink lderrout,
2618         if it is set, to stderr.
2619         (handler): Unlink lderrout if it is set.
2620         (dump_file): Add "to" parameter.  Change all callers.
2621         (main): Initialize lderrout.
2622         (collect_execute): Add errname parameter.  Change all callers.
2623         Rename redir parameter to outname.  Never pass
2624         PEX_STDERR_TO_STDOUT to pex_run.
2625         * collect2.h (collect_execute, dump_file): Update declarations.
2626         * tlink.c (tlink_execute): Add errname parameter.  Change all
2627         callers.
2628         (do_tlink): Check lderrout as well as ldout.
2629
2630 2005-03-31  Caroline Tice  <ctice@apple.com>
2631
2632         * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
2633         (bb-reorder.o): Add errors.h to list of requirements.
2634         (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
2635         profiledbootstrap flags.
2636         * bb-reorder.c (errors.h): Add new include.
2637         (struct bbro_basic_block_data_def): Add new field, in_trace.
2638         (add_unlikely_executed_notes):  Remove function.
2639         (mark_bb_for_unlikely_executed_section): Remove function.
2640         (insert_section_boundary_note): New function.
2641         (verify_hot_cold_block_grouping): New function.
2642         (push_to_next_round_p): Remove variables and tests that push all
2643         cold blocks to last round.
2644         (find_traces): Remove code that added extra round of trace finding
2645         when doing partitioning.
2646         (find_traces_1_round) :  Remove variable last_round;  add code to 
2647         update new struct field, in_trace; correct trace_length where it was 
2648         incorrect before (after call to copy_bb); change code that pushed all 
2649         cold blocks to last round. Instead verify that all blocks going into 
2650         a trace belong in the same partition.
2651         (connect_traces): Modify to connect the traces in two passes, if the
2652         function contains both hot and cold blocks.  The first pass connects 
2653         all the traces for blocks in the partition that the first block in 
2654         the function belongs to; the second pass connnects all the traces 
2655         containing blocks that belong in the other partition.
2656         (find_rarely_executed_basic_blocks_and_crossing_edges):  Remove
2657         code that automatically put the first block in a function into the
2658         hot partition if the function had any hot blocks.
2659         (fix_crossing_unconditional_branches): Check number of succ edges 
2660         before attempting to get one.
2661         (fix_edges_for_rarely_executed_code):  Update comment describing
2662         function.
2663         (reorder_basic_blocks):  Add code to initialize new field (in_trace);
2664         remove call to add_unlikely_executed_notes; add call to 
2665         verify_hot_cold_block_grouping.
2666         (duplicate_computed_gotos): Don't change computed goto if it's a 
2667         crossing edge.
2668         (partition_hot_cold_basic_blocks):  Update function comment.
2669         * cfgcleanup.c (try_simplify_condjump): Remove redundacy from 
2670         condition.
2671         (try_forward_edges): Likewise.
2672         (merge_blocks_move_predecessor_nojumps): Likewise.
2673         (merge_blocks_move_successor_nojumps): Likewise.
2674         (merge_blocks_move): Likewise.
2675         (try_crossjump_bb): Likewise.
2676         * cfglayout.c (update_unlikely_executed_notes): Remove function.
2677         (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
2678         notes to cold bb's; remove call to update_unlikely_executed_notes.
2679         (duplicate_insn_chain):  change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
2680         NOTE_INSN_SWITCH_TEXT_SECTIONS.
2681         * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
2682         function declaration.
2683         * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
2684         from consideration.
2685         (rtl_can_merge_blocks): Remove redundancy from condition.
2686         (try_redirect_by_replacing_jump): Likewise.
2687         (force_nonfallthru_and_redirect): Remove code for adding
2688         UNLIKELY_EXECUTED_CODE notes to cold bb's.
2689         (commit_one_edge_insertion): Likewise.
2690         (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
2691         * dbxout.c (FORCE_TEXT): Replace function_section with 
2692         current_function_section.
2693         (struct dbx_debug_h): Add do_nothing function for new debug_hooks
2694         function, switch_text_section.
2695         (struct xcoff_debug): Likewise.
2696         (dbxout_function_end): Add code to put out label diffs for both
2697         hot and cold sections.
2698         * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
2699         for new debug_hooks funciton, switch_text_section..
2700         * debug.h (struct gcc_debug_hooks):  Add new function to debug_hooks,
2701         switch_text_section.
2702         * dwarf2out.c (struct dw_fde_struct):  Add five new fields: 
2703         dw_fde_hot_section_label, dw_fde_hot_section_end_label, 
2704         dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and 
2705         dw_fde_switched_sections.
2706         (output_call_frame_info):  Add test to see if function switches text
2707         sections in the middle; if so, use appropriate extra hot and cold 
2708         section labels to compute size deltas for the hot and cold sections.
2709         (dwarf2out_begin_prologue): Add code to initialize new fields in 
2710         dw_fde_struct.
2711         (dwarf2out_switch_text_section): New function (invoked through 
2712         debug_hook); updates new fields in dw_fde_struct appropriately and
2713         increments separate_line_info_table_in_use.
2714         (dwarf2_debug_hooks): Initialize switch_text_section function to be
2715         dwarf2out_switch_text_section.
2716         (struct var_loc_node): Add new field, section_label.
2717         (output_aranges): Add code to check whether in hot or cold section and
2718         use the appropriate label in calculating deltas.
2719         (output_ranges): Likewise.
2720         (output_line_info): Add code to check which section we're in and
2721         use appropriate hot/cold label.
2722         (add_location_or_constant_value_attribute): Likewise.
2723         (gen_subprogam_die): Modify arange attributes to use correct labels.
2724         (dwarf2out_begin_block): Change call to function_section into call to
2725         current_function_section.
2726         (dwarf2out_end_block): Likewise.
2727         (dwarf2out_source_line): Likewise.
2728         (dwarf2out_var_location): Add code to check whether in hot or cold 
2729         section and use the appropriate label.
2730         * except.c (output_function_exception_table): Change call to 
2731         function_section into call to current_function_section.
2732         * final.c (profile_function): Likewise.
2733         (scan_ahead_for_unlikely_executed_note): Remove function.
2734         (final_scan_insn):  Remove calls to 
2735         scan_ahead_for_unlikely_executed_note, and related code for switching 
2736         to cold section, except for the single time 
2737         NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered;  add calls to 
2738         debug_hooks->switch_text_sections; replace appropriate calls to 
2739         function_section with calls to current_function_section.
2740         * ifcvt.c (find_if_case_1): Remove redundancy from condition, add 
2741         test_bb to condition.
2742         (find_if_case_2): Likewise.
2743         * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
2744         NOTE_INSN_SWITCH_TEXT_SECTIONS.  Update comment appropriately.
2745         * opts.c (decode_options): Change warning about hot/cold partitioning
2746         with exceptionss to inform (so as not to cause bootstrap failures);
2747         remove warning about partitioning with DWARF debug info.
2748         * output.h (current_function_section): Add new function decl.
2749         (insert_section_boundary_note): Likewise.
2750         (enum in_section): Move this declaration here from varasm.c.
2751         (unlikely_section_label): Likewise.
2752         (unlikely_text_section_name): Likewise.
2753         (last_text_section_name): New global variable.
2754         (last_text_section): Likewise.
2755         (hot_section_label): Likewise.
2756         (hot_section_end_label): Likewise.
2757         (cold_section_end_label): Likewise.
2758         * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
2759         * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
2760         to NOTE_INSN_SWITCH_TEXT_SECTIONS.
2761         * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note 
2762         insn from consideration.
2763         * sdbout.c (sdb_debug_hooks): Add do_nothing for new function, 
2764         switch_text_section.
2765         * varasm.c (basic-block.h): Add new include.
2766         (unlikely_section_label_printed): Remove global variable.
2767         (unlikely_section_label): Make global variable not be static any more.
2768         (unlikely_text_section_name): Likewise.
2769         (hot_section_end_label): New global variable (not static)
2770         (first_function_block_is_cold): Likewise.
2771         (hot_section_label): Likewise.
2772         (cold_section_end_label): Likewise..
2773         (last_text_section): New global variable, not static.
2774         (last_text_section_name): New global variable, not static.
2775         (initialize_cold_section_name): New function.
2776         (enum in_section): Move declaration to output.h.
2777         (text_section): Update last_text_section.
2778         (unlikely_text_section): Replace code to determine cold section name 
2779         with call to initialize_cold_section_name; Add code to update 
2780         last_text_section; remove code for printing out label.
2781         (named_section_real): Add code to update last_text_section and 
2782         last_text_section_name as appropriate.
2783         (function_section): Change test for 'unlikely' to depend on
2784         first_function_block_is_cold (moved old test to 
2785         current_function_section).
2786         (current_function_section): New function.
2787         (assemble_start_function): Move code that frees 
2788         unlikely_text_section_name; initialize hot_section_end_label; 
2789         print hot and cold section labels at the start of the function; 
2790         set first_function_block_is_cold, if appropriate; initialize l
2791         ast_text_section; add call to insert_section_boundary_note.
2792         (assemble_end_function):  Add code to write out hot and cold section
2793         end labels.
2794         *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
2795         switch_text_section.
2796         * config/darwin.c (machopic_select_section): Replace incorrect 
2797         function in base_funs; update reloc for cold sections if necessary.
2798         * config/darwin.h (SECTION_FUNCTION):  Add code to update 
2799         last_text_section if appropriate.
2800         (text_unlikely_section): Remove.
2801         * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
2802         * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
2803         * config/xtensa/xtensa.c (override_options): Turn off hot/cold
2804         partitioning for this architecture.
2805
2806 2005-03-31  Olivier Hainque  <hainque@adacore.com>
2807
2808         * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
2809         defined and non-zero.
2810
2811 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2812
2813         PR c++/18644
2814         * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
2815         semantics. 
2816
2817 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
2818
2819         PR target/20611
2820         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
2821         label operand.  Remove (use (unspec..)).  Don't emit a label on
2822         the offset word.
2823         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
2824         generate inline label for load_toc_v4_PIC_1b.
2825         (rs6000_emit_load_toc_table): Likewise.
2826
2827 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
2828
2829         * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
2830         ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
2831
2832 2005-03-29  Devang Patel  <dpatel@apple.com>
2833
2834         * tree-sra.c (decide_block_copy): Disable scalarization of
2835         sub-elements.
2836         
2837 2005-03-30  Stuart Hastings  <stuart@apple.com>
2838             Dale Johannesen  <dalej@apple.com>
2839
2840         * Makefile.in (print-tree.o):  Depend on tree-iterator.h.
2841         * print-tree.c (print_node):  Add case STATEMENT_LIST.
2842
2843 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
2844
2845         * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
2846         (powerpc64-*-linux*): Use it.  Rearrange tm_file assignment.
2847         (powerpc-*-linux*): Build a biarch compiler when --enable-targets
2848         is given with "powerpc64*" or "all", or when --with-cpu chooses
2849         a 64-bit cpu.
2850
2851 2005-03-30  James E. Wilson  <wilson@specifixinc.com>
2852
2853         PR debug/20268
2854         * dwarf2out.c (add_high_low_attributes): New function, extracted from
2855         gen_lexical_block_die.
2856         (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
2857
2858 2005-03-31  Jan Hubicka  <jh@suse.cz>
2859
2860         2004-11-02  Jan Hubicka  <jh@suse.cz>
2861
2862         * cgraph.c (cgraph_varpool_node_name): New function.
2863         (dump_cgraph_varpool_node): New function.
2864         (dump_varpool): New function.
2865         * cgraphunit.c (cgraph_optimize): Dump varpool.
2866
2867         2004-10-16  Jan Hubicka  <jh@suse.cz>
2868
2869         * cgraph.c (decide_is_variable_needed): New function.
2870         (cgraph_varpool_finalize_decl): Use it.
2871         * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
2872         unit-at-a-time.
2873         * final.c (output_addr_const): Do not call mark_referenced.
2874         * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
2875         always go via cgraph.
2876         * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
2877         (check_global_declarations): Ifdef out code clearing DECL_RTL.
2878         * tree-optimize.c (execute_inline): Mark functions called.
2879         * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
2880
2881         2004-10-11  Jan Hubicka  <jh@suse.cz>
2882
2883         * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
2884         (cgraph_varpool_last_needed_node): New static variable.
2885         (enqueue_needed_varpool_node): Break out from ...; add items to the
2886         end of queue; update first pointers.
2887         (cgraph_varpool_mark_needed_node): ... here.
2888         (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
2889         (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
2890         * cgraph.h (cgraph_varpool_node): Add analyzed field.
2891         (cgraph_varpool_first_unanalyzed_node): Declare.
2892         * cgraphunit.c: Include output.h.
2893         (cgraph_varpool_analyze_pending_decls): New function.
2894         (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
2895         for errors, analyze pending decls.
2896         (cgraph_finalize_compilation_unit): Only analyze decls.
2897         (cgraph_optimize): Assemble the decls after expanding.
2898
2899 2005-03-30  Daniel Berlin  <dberlin@dberlin.org>
2900
2901         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
2902         subvars get marked properly in tags for grouping.
2903         (add_pointed_to_var): Mark only actual pointed to
2904         variables/subvars in addresses needed.
2905         (create_overlap_variables_for): Clear call clobbered on original
2906         variable.
2907         * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
2908         addresable vars with subvars into list.
2909         * tree-ssa.c (verify_ssa_name): Verify original is not used where
2910         subvar should be.
2911
2912 2005-03-30  Richard Henderson  <rth@redhat.com>
2913
2914         * cgraph.h (struct cgraph_node): Add alias.
2915         * varasm.c (assemble_alias): Set it.
2916         * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
2917         avoid calling cgraph_expand_function.
2918
2919 2005-03-30  Tom Tromey  <tromey@redhat.com>
2920
2921         * tree.def (FILE_TYPE): Removed.
2922         * typeclass.h (enum type_class): Removed file_type_class.
2923         * dwarf2out.c (is_base_type): Updated.
2924         (gen_type_die): Likewise.
2925         * dbxout.c (dbxout_type): Updated.
2926         * builtins.c (type_to_class): Updated.
2927         * tree.c (type_contains_placeholder_1): Updated.
2928         * config/sparc/sparc.c (sparc_type_code): Updated.
2929         * config/ia64/ia64.c (hfa_element_mode): Updated.
2930         * expr.c (count_type_elements): Updated.
2931         * stor-layout.c (layout_type): Updated.
2932         * tree-inline.c (remap_type): Updated.
2933         * tree-pretty-print.c (dump_generic_node): Updated.
2934
2935 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
2936
2937         * builtins.c (expand_builtin_powi): Fix mode of
2938         2nd argument to match int.
2939         * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
2940         2nd argument type to int.
2941         * libgcc2.c: Change prototype of __powi* functions to use
2942         int.
2943
2944 2005-03-30  Dale Johannesen  <dalej@apple.com>
2945
2946         PR middle-end/19225
2947         * calls.c (expand_call):  Flush pending deferrals before
2948         throwing call.
2949
2950 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
2951
2952         PR c/772
2953         PR c/17913
2954         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
2955         C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
2956         c_label_context, label_context_stack): New.
2957         * c-decl.c (define_label): Check for jumps into statement
2958         expressions.  Add label to list of defined labels.
2959         (start_function): Push context on label_context_stack.
2960         (finish_function): Pop context from label_context_stack.
2961         * c-typeck.c (label_context_stack): New.
2962         (c_finish_goto_label): Check for jumps into statement
2963         expressions.  Add label to list of jumped to labels.
2964         (struct c_switch): Add blocked_stmt_expr.
2965         (c_start_case): Initialize it.
2966         (do_case): Check it.
2967         (c_finish_case): Verify !blocked_stmt_expr.
2968         (c_begin_stmt_expr):  Push context on label_context_stack.
2969         Increment blocked_stmt_expr.  Mark labels jumped to from outside
2970         as undefinable.
2971         (c_finish_stmt_expr): December blocked_stmt_expr.  Mark labels
2972         defined in the statement expression and no longer jumpable to.
2973         Mark labels jumped to from just outside the statement expression
2974         as again definable.  Pop context from label_context_stack.
2975         * doc/extend.texi (Statement Exprs): Update.
2976
2977 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
2978
2979         PR c/20368
2980         * c-decl.c (start_function): Check for old_decl being
2981         error_mark_node.
2982
2983 2005-03-30  Ian Lance Taylor  <ian@airs.com>
2984
2985         * final.c (final): Remove prescan parameter.  Change all callers.
2986         (final_scan_insn): Remove prescan parameter.  Change all callers.
2987
2988 2005-03-30  Kazu Hirata  <kazu@cs.umass.edu>
2989
2990         * tree-vectorizer.c: Fix comment typos.
2991
2992 2005-03-30  Sebastian Pop  <pop@cri.ensmp.fr>
2993
2994         * tree-scalar-evolution.c (instantiate_parameters_1): Return
2995         as soon as a chrec_dont_know is detected.
2996
2997 2005-03-31  Danny Smith  <dannysmith@users.sourceforge.net>
2998
2999         Merge from csl-arm-branch.
3000         2004-02-12  Mark Mitchell  <mark@codesourcery.com>
3001
3002         * tlink.c (recompile_files): Do not assume that "rename" can
3003         overwrite an existing file.
3004
3005 2005-03-31  Paolo Bonzini  <bonzini@gnu.org>
3006
3007         * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
3008         * gcc/configure: Regenerate.
3009
3010 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
3011
3012         * doc/install.texi: Update binutils requirement for powerpc*-linux.
3013
3014         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
3015
3016         * calls.c (struct arg_data): Update "partial" comment.
3017         (load_register_parameters): Update "nregs" comment.
3018
3019 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
3020
3021         * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
3022         (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
3023         (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
3024         (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
3025         (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
3026         (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
3027         than target_flags & 0.
3028         * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
3029         (iq2000_arch, iq2000_parse_cpu): Delete.
3030         (TARGET_HANDLE_OPTION): Override default.
3031         (iq2000_handle_option): New function.
3032         (override_options): Remove -march= and -mcpu= handling.
3033         * config/iq2000/iq2000.opt: New file.
3034
3035 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
3036
3037         * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
3038         * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
3039         (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
3040         (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
3041         (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
3042         (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
3043         (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
3044         (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
3045         (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
3046         (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
3047         (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
3048         (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
3049         (c4x_rpts_cycles_string, c4x_cpu_version_string)
3050         (TARGET_OPTIONS): Delete.
3051         (c4x_rpts_cycles, c4x_cpu_version): Declare.
3052         (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
3053         (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
3054         * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
3055         (c4x_cpu_version_string): Delete.
3056         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3057         (c4x_handle_option): New function.  Map -m3x and -m4x options to the
3058         equivalent -mcpu= option.
3059         (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
3060         Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
3061         TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
3062         or clearing the appropriate MASK_* bit.
3063         (c4x_file_start): Use c4x_cpu_version.
3064         * config/c4x/c4x.opt: New file.
3065
3066 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
3067
3068         * doc/options.texi: Document the new MaskExists flag.
3069         * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
3070         if the option has the MaskExists flag.
3071
3072 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
3073
3074         * opt-functions.awk (flag_set_p, test_flag): New functions.
3075         (switch_flags): Use them.
3076         * opth-gen.awk: Use flag_set_p to check for flags.
3077         * optc-gen.awk: Likewise.  Use opt_args to check for Init(...) flags.
3078
3079 2005-03-30  Ian Lance Taylor  <ian@airs.com>
3080
3081         * config.host (i[34567]86-*-mingw32*): Don't set
3082         host_can_use_collect2 to no.
3083
3084 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
3085
3086         PR target/20203
3087         * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
3088         Remove convert_memory_address call duplicating that in memory_address.
3089
3090 2005-03-29  Richard Henderson  <rth@redhat.com>
3091
3092         PR c/20519
3093         * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
3094         (build_compound_literal): Likewise.  Propagate decl type into the
3095         initializer.
3096         (finish_decl): Likewise.  Use new return value from complete_array_type
3097         for zero sized arrays.
3098         (complete_array_type): Move ...
3099         * c-common.c (complete_array_type): ... here.  Change first argument
3100         to pointer-to-type-node.  Consistently use sizetype for the index
3101         except for zero sized arrays.  Detect zero sized arrays for pedantic
3102         mode diagnostics.  Create a new type node instead of modifying the
3103         old node in place.
3104         * c-tree.h (complete_array_type): Move decl ...
3105         * c-common.h (complete_array_type): ... here.
3106
3107 2005-03-29  Richard Henderson  <rth@redhat.com>
3108
3109         PR tree-opt/19108
3110         * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
3111
3112 2005-03-29  Kazu Hirata  <kazu@cs.umass.edu>
3113
3114         * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
3115         debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
3116         rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
3117         tree-profile.c, tsystem.h, value-prof.h: Update copyright.
3118
3119 2005-03-29  Eric Christopher  <echristo@redhat.com>
3120
3121         * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
3122         truthvalue conversion removal.
3123
3124 2005-03-29  Ian Lance Taylor  <ian@airs.com>
3125
3126         PR bootstrap/14316
3127         * collect2.c: Never include <vfork.h>.
3128         (VFORK_STRING, vfork): Don't define.
3129         (pid): Remove global variable.
3130         (handler): Call raise instead of kill (getpid(), ...).
3131         (collect_wait): Add pex parameter.  Change all callers.  Use
3132         pex_get_status rather than pwait.
3133         (do_wait): Add pex parameter.  Change all callers.
3134         (collect_execute): Return struct pex_obj * rather than void.  Use
3135         pex routines rather than pexecute.
3136         (fork_execute): Get pex_obj from collect_execute, and pass it to
3137         do_wait.
3138         (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
3139         Only declare quit_handler if SIGQUIT is defined.
3140         (scan_libraries): Likewise.
3141         * collect2.h (collect_execute): Update declaration.
3142         (collect_wait): Update declaration.
3143         * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
3144         pass it to collect_wait.
3145
3146 2005-03-29  Joseph S. Myers  <joseph@codesourcery.com>
3147
3148         PR c/20672
3149         * c-parser.c (c_parser_compound_statement_nostart): Give error
3150         message for EOF instead of just setting parser->error.
3151
3152 2005-03-29  Dorit Naishlos  <dorit@il.ibm.com>
3153
3154         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
3155         (slpeel_update_phi_nodes_for_guard1): New function.
3156         (slpeel_update_phi_nodes_for_guard2): New function.
3157         (slpeel_tree_peel_loop_to_edge): Call above new functions instead
3158         of slpeel_update_phi_nodes_for_guard.
3159         (vectorize_loops): Remove call to loop_closed_rewrite.
3160         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
3161         assertion.
3162
3163 2005-03-29  Richard Sandiford  <rsandifo@redhat.com>
3164
3165         * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
3166         (TARGET_LITTLE_ENDIAN): New macro.
3167         * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
3168         (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
3169         (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
3170         (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
3171         (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
3172         (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
3173         (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
3174         (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
3175         (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
3176         (TARGET_OPTIONS): Delete.
3177         (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
3178         (CACHE_FLUSH_TRAP): Turn into an integer.
3179         (TARGET_LITTLE_ENDIAN): Define to 0 by default.
3180         (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
3181         -mflush-trap is in use.
3182         * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
3183         (m32r_cache_flush_trap_string): Delete.
3184         (m32r_model) Initialize to M32R_MODEL_DEFAULT.
3185         (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
3186         (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
3187         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3188         (m32r_handle_option): New function.  Move -mflush-trap=, -mflush-func=,
3189         -mmodel= and -msdata= handling from...
3190         (m32r_init): ...here.
3191         * config/m32r/m32r.opt: New file.
3192
3193 2005-03-29  Keith Besaw  <kbesaw@us.ibm.com>
3194
3195         * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
3196         (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
3197         * tree-vect-analyze.c (vect_object_analysis): additional parm
3198         pass back a "struct ptr_info_def *" with the points-to info.
3199         (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
3200         statement using info returned from vect_object_analysis.
3201         * tree-vect-transform.c (update_vuses_to_preheader): New function.
3202         (vect_create_data_ref_ptr): Remove updates to vars_to_rename
3203         for virtual uses and defs when creating a replacement vector
3204         reference.  Call duplicate_ssa_name_ptr_info to define points-to
3205         info for vector pointer replacement using STMT_VINFO_PTR_INFO.
3206         (vectorizable_store): copy_virtual_operands and update
3207         definition statements.
3208         (vectorizable_load): copy_virtual_operands.  Remove call to
3209         mark_call_clobbered_vars_to_rename for call to "const" builtin.
3210         * tree-vectorizer.c (vectorize_loops): Remove calls to
3211         rewrite_into_ssa and bitmap_clear (vars_to_rename).
3212         (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
3213         * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
3214         define macro STMT_VINFO_PTR_INFO for use in accessing.
3215         * tree.h add export of duplicate_ssa_name_ptr_info.
3216         * rs6000.c (altivec_init_builtins): Declare builtin function
3217         __builtin_altivec_mask_for_load to be "const".
3218
3219 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
3220
3221         PR middle-end/20622
3222         * cgraph.h (struct cgraph_varpool_node): Add alias field.
3223         * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
3224         assemble_variable on aliases.
3225         * varasm.c (assemble_alias): Set node->alias.
3226         * toplev.c (wrapup_global_declarations): Don't call
3227         rest_of_decl_compilation on aliases again.
3228
3229 2005-03-29  Paul Brook  <paul@codesourcery.com>
3230
3231         * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
3232         * config/arm/arm.c (arm_dbx_register_number): New function.
3233         * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
3234
3235 2005-03-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
3236
3237         PR middle-end/20263
3238         * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
3239         the DECL_NAME, not the DECL_ASSEMBLER_NAME.
3240
3241 2005-03-29  Dale Johannesen <dalej@apple.com>
3242
3243         * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
3244         $(TREE_H) and $(COVERAGE_H).
3245         * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
3246         * opts.c (common_handle_option): Enable tree-based value transforms.
3247         * toplev.c (process_options): Ditto.
3248         * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
3249         refers to references to this type.
3250         * tree-flow.h: (struct stmt_ann_d): Add histograms field.
3251         * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
3252         for may_be_more, may_be_less.
3253         (rtl_gen_pow2_profiler): Adjust.
3254         (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
3255         (rtl_gen_one_value_profiler): Adjust.
3256         (rtl_gen_const_delta_profiler): Adjust.
3257         * tree-profile.c (tree_gen_interval_profiler): Implement.
3258         (tree_gen_pow2_profiler): Ditto.
3259         (tree_gen_one_value_profiler): Ditto.
3260         (tree_profiling): New.
3261         (pass_tree_profile): Reference it.
3262         * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
3263         tree.h, gcov-io.h.
3264         (insn_divmod_values_to_profile): Rename to
3265         rtl_divmod_values_to_profile. Adjust.
3266         (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
3267         (insn_prefetch_values_to_profile): Adjust.
3268         (rtl_value_profile_transformations): Adjust.
3269         (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
3270         (gen_mod_pow2): Rename to rtl_mod_pow2.
3271         (gen_mod_subtract): Rename to rtl_mod_subtract.
3272         (divmod_fixed_value_transform): Rename to
3273         rtl_divmod_fixed_value_transform.
3274         (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
3275         (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
3276         (rtl_find_values_to_profile): Adjust.
3277         (tree_value_profile_transformations): Implement.
3278         (tree_divmod_values_to_profile): New.
3279         (tree_values_to_profile): New.
3280         (tree_divmod_fixed_value): New.
3281         (tree_mod_pow2): New.
3282         (tree_mod_subtract): New.
3283         (tree_divmod_fixed_value_transform): New.
3284         (tree_mod_pow2_value_transform): New.
3285         (tree_mod_subtract_transform): New.
3286         (tree_find_values_to_profile): Implement.
3287         * profile.c (instrument_values):  Free histograms.
3288         (compute_value_histograms): Adjust. Implement tree version.
3289
3290 2005-03-29  Uros Bizjak  <uros@kss-loka.si>
3291
3292         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
3293         * config/i386/i386.c (output_fix_trunc): Add new round_mode
3294         variable.  Output "fldcw" depending on round_mode.
3295         * config/i386/i386.md (UNSPEC_FIST): New.
3296         (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
3297         New isns patterns to implement lrint and llrint built-ins as x87
3298         intrinsic function.
3299         (fistdi2, fist<mode>2 splitters): New splitters.
3300         (lrint<mode>2): New expanders.
3301
3302 2005-03-28  Ian Lance Taylor  <ian@airs.com>
3303
3304         * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
3305         0 when calling final_scan_insn.
3306
3307 2005-03-28  Jan Hubicka  <jh@suse.cz>
3308
3309         PR middle-end/20635
3310         * varasm.c (mark_decl_referenced): Do not mark extern inline functions
3311         as needed.
3312
3313         * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
3314         types where possible.
3315
3316 2005-03-26  Per Bothner  <per@bothner.com>
3317
3318         Make -f[no-]show-column also control non-cpp diagnostics.
3319         * c.opt (fshow-column): Move option from here ...
3320         * common.opt (fshow-column): ... to here.
3321         * diagnostic.c (diagnostic_build_prefix): Only print column number
3322         if flag_show_column.
3323
3324 2005-03-27  Steven Bosscher  <stevenb@suse.de>
3325
3326         * vax-protos.h (vax_output_int_move, vax_output_int_add,
3327         vax_output_conditional_branch): New prototypes.
3328         * vax.c (vax_output_int_move, vax_output_int_add): New functions,
3329         extracted from vax.md mov and add patterns.
3330         (vax_output_conditional_branch): New function to output conditional
3331         branch instructions.
3332         * vax.md: Use mode macros for arithmetic and mov patterns.
3333         Use code macros for the jump patterns.
3334
3335 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
3336
3337         * Makefile.in (libbackend.o): Depend on version files;
3338         add custom generation command.
3339
3340 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
3341
3342         PR target/20636
3343         * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
3344         sure that we have a REG before getting its REGNO.
3345
3346 2005-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3347
3348         * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
3349         * builtins.def (BUILT_IN_STRNDUP): New.
3350
3351 2005-03-25  Pat Haugen  <pthaugen@us.ibm.com>
3352
3353         PR tree-optimization/20470
3354         * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
3355         ABS(x-y).
3356
3357 2005-03-25  Mike Stump  <mrs@apple.com>
3358
3359         * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
3360         sized objects.
3361
3362 2005-03-25  Geoffrey Keating  <geoffk@apple.com>
3363
3364         * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
3365         Use our own structure definitions.
3366
3367         * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
3368         (fix_truncdfsi2): Allow registers or memory as destination.
3369         When TARGET_PPC_GFXOPT, generate simplified pattern.
3370         (fix_truncdfsi2_internal): Use define_insn_and_split.
3371         (fix_truncdfsi2_internal_gfxopt): New.
3372         (fctiwz): Don't confuse register allocation by giving it no choices.
3373         (stfiwx): New.
3374         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
3375         (EXTRA_MEMORY_CONSTRAINT): Likewise.
3376         * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
3377         * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
3378
3379 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
3380
3381         * dominance.c (free_dominance_info): Speed up by freeing et
3382         data structures without maintaining other nodes.
3383         * et-forest.c (et_free_tree_force): New.
3384         * et-forest.h: Add a prototype for et_free_tree_force.
3385
3386         * tree.c (get_set_constructor_bits,
3387         get_set_constructor_bytes): Remove.
3388         * tree.h: Remove the corresponding prototypes.
3389
3390 2005-03-25  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
3391
3392         PR target/15491
3393         * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
3394         (vax_rtx_costs): Return false when passed unsupported rtx's.  Handle
3395         FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE.  Fix costs for POST_INC,
3396         PRE_DEC, NEG and NOT.
3397
3398 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
3399
3400         * fold-const.c: Convert uses of fold (build (...)) to
3401         fold_buildN.
3402
3403 2005-03-25  Zdenek Dvorak  <dvorakz@suse.cz>
3404
3405         PR rtl-optimization/20249
3406         * cse.c (insert_regs): Do not record equivalence of registers in
3407         different modes.
3408
3409 2005-03-24  Kazu Hirata  <kazu@cs.umass.edu>
3410
3411         * emit-rtl.c (reverse_comparison): Remove.
3412         * rtl.h: Remove the corresponding prototype.
3413
3414 2005-03-24  James E Wilson  <wilson@specifixinc.com>
3415
3416         * doc/install.texi (--enable-altivec): Delete docs.
3417
3418 2005-03-24  David Edelsohn  <edelsohn@gnu.org>
3419
3420         * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
3421         SFmode and DFmode before reload when
3422         flag_unsafe_math_optimizations not enabled.
3423
3424 2005-03-24  Geoffrey Keating  <geoffk@apple.com>
3425
3426         * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
3427
3428         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
3429         MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
3430
3431 2005-03-24  Nathan Sidwell  <nathan@codesourcery.com>
3432
3433         * configure.ac (enable-checking): Add 'runtime' option.
3434         * doc/install.texi (enable-checking): Document 'runtime' checking.
3435         * tsystem.h (gcc_assert, gcc_unreachable): Define.
3436         * config.in: Regenerated.
3437         * configure: Regenerated.
3438
3439 2005-03-23  Uros Bizjak  <uros@kss-loka.si>
3440
3441         * optabs.h (enum optab_index): Remove OTI_llrint.
3442         (llrint_optab): Remove macro.
3443         * optabs.c (init_optabs): Remove llrint_optab initialization.
3444         * genopinit.c (optabs): Remove llrint_optab implementation.
3445         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
3446         using lrint_optab.
3447
3448 2005-03-24  Alexandre Oliva  <aoliva@redhat.com>
3449
3450         PR rtl-optimization/20532
3451         * simplify-rtx.c (simplify_binary_operation_1): Protect from
3452         overflow when adding coefficients for PLUS or MINUS.
3453         (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
3454         two as multiplier.
3455
3456 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
3457
3458         * langhooks.h (truthvalue_conversion): Remove.
3459         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
3460         LANG_HOOKS_TRUTHVALUE_CONVERSION.
3461         * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
3462         * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
3463         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
3464
3465 2005-03-23  Kazu Hirata  <kazu@cs.umass.edu>
3466
3467         * params.def: Fix a typo.
3468         * config/mips/mips.c: Follow the spelling convensions.
3469         * doc/invoke.texi: Fix typos.
3470
3471 2005-03-18  Dale Johannese  <dalej@apple.com>
3472
3473         * cp/tree.c (cp_tree_equal):  Handle SSA_NAME.
3474
3475 2005-03-23  Daniel Berlin  <dberlin@dberlin.org>
3476
3477         Fix PR tree-optimization/20601
3478
3479         * tree-ssa-pre.c (insert_aux): Add missing condition to
3480         constification.
3481
3482 2005-03-23  Ian Lance Taylor  <ian@airs.com>
3483
3484         * final.c (final_scan_insn): Don't remove no-op instructions.
3485         * reload1.c (reload): Remove simple no-op instructions even when
3486         not optimizing.
3487
3488 2005-03-23  Dorit Naishlos  <dorit@il.ib.com>
3489
3490         PR tree-optimization/20501
3491         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
3492         reporting that peeling for alignment is applied moved to...
3493         * (vect_analyze_data_refs_alignment): Here.
3494
3495 2005-03-23  Ian Lance Taylor  <ian@airs.com>
3496
3497         * reorg.c (dbr_schedule): Remove #if 0 code to call final.
3498
3499 2005-03-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3500
3501         * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
3502         Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
3503
3504 2005-03-23  Hans-Peter Nilsson  <hp@axis.com>
3505
3506         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
3507         imply that this is called once, independent of asms in code.
3508         Adjust to now being pased output and input lists.  Mention helper
3509         function decl_overlaps_hard_reg_set_p.
3510         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
3511         hook_tree_tree_identity and to take three trees, returning third.
3512         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
3513         prototype.
3514         * stmt.c: include hard-reg-set.h before tree.h.
3515         (decl_overlaps_hard_reg_set_p): New function, broken out from...
3516         (decl_conflicts_with_clobbers_p): Call
3517         decl_overlaps_hard_reg_set_p.
3518         (expand_asm_operands): Pass output and input lists in call to
3519         targetm.md_asm_clobbers.
3520         * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
3521         hook_tree_tree_tree_tree_3rd_identity.
3522         * target.h (struct gcc_target.md_asm_clobbers): Take three tree
3523         parameters.
3524         * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
3525         * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
3526         parameters, first two unused.
3527         * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
3528         parameters.  Only add MOF to clobbers if there's no 'h' mentioned
3529         in constraint letters and MOF is not mentioned as a asm-declared
3530         register in neither of the input and output lists.
3531
3532 2005-03-23  DJ Delorie  <dj@redhat.com>
3533
3534         * optabs.c (expand_binop): Make sure the first subword's result
3535         gets stored.
3536
3537 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
3538
3539         * c-common.c (c_common_truthvalue_conversion): Adjust comment.
3540         Call c_common_truthvalue_conversion rather than
3541         lang_hooks.truthvalue_conversion.
3542         * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
3543         * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
3544         c-typeck.c.
3545         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
3546         c_common_truthvalue_conversion.
3547         * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
3548         c_parser_conditional_expression, c_parser_binary_expression): Call
3549         c_objc_common_truthvalue_conversion.
3550         * c-typeck.c (build_unary_op): Call
3551         c_objc_common_truthvalue_conversion.
3552         (build_conditional_expr): Do not call
3553         lang_hooks.truthvalue_conversion.
3554         (build_binary_op): Call c_common_truthvalue_conversion.
3555         (c_objc_common_truthvalue_conversion): Moved from
3556         c-objc-common.c.  Call default_function_array_conversion instead
3557         of default_conversion.
3558
3559 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
3560
3561         * c-common.h (default_conversion): Remove.
3562         (perform_integral_promotions): Add.
3563         * c-tree.h (default_conversion): Add.
3564         * c-typeck.c (perform_integral_promotions): New, split out from
3565         default_conversion.
3566         * c-common.c (check_case_value): Use perform_integral_promotions,
3567         not default_conversion.
3568         (c_add_case_label): Don't continue processing case label after
3569         found to be pointer.
3570
3571 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
3572
3573         * gcc.c (do_spec_1): Do not add a -L path for a directory in
3574         the prefix list if we have already added a multilib directory
3575         based on that path.
3576         (main): Do not add MD_EXEC_PREFIX to the list of directories to
3577         search with -L.
3578
3579 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
3580
3581         * reload1.c (indirect_symref_ok, reload_obstack): Make them
3582         static.
3583         * reload.h: Remove the prototype for indirect_symref_ok.
3584
3585         * reload1.c (indirect_symref_ok): Make it global.
3586         * reload.h: Add a prototype for indirect_symref_ok.
3587
3588 2005-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
3589
3590         * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
3591         ashlhi3 expander.
3592
3593 2005-03-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
3594
3595         * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
3596
3597 2005-03-22  Daniel Berlin  <dberlin@dberlin.org>
3598
3599         * c-opts.c (c_common_parse_file): Only start/end main source file
3600         if debug hooks says the writer wants it.
3601         * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
3602         member.
3603         (xcoff_debug_hooks): Ditto.
3604         * debug.c (do_nothing_hooks): Ditto.
3605         * debug.h (gcc_debug_hooks): Ditto.
3606         * dwarf2out.c (dwarf2_debug_hooks): Ditto.
3607         * sdbout.c (sdb_debug_hooks): Ditto.
3608         * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
3609
3610 2005-03-22  Mark Mitchell  <mark@codesourcery.com>
3611
3612         * doc/extend.texi: Deprecate C++ min/max operators.
3613
3614 2005-03-22  Zdenek Dvorak  <dvorakz@suse.cz>
3615
3616         * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
3617         artificial original candidates.
3618
3619 2005-03-22  Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
3620             Jan Hubicka  <jh@suse.cz>
3621             Steven Bosscher <stevenb@suse.de>
3622
3623         * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
3624         call cost based on argument sizes.
3625         (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
3626         inlining.
3627         * params.def: (max-inline-inssn-single): Set to 450.
3628         (max-inline-insns-auto): Set to 90.
3629         (max-inline-insns-recursive): Set to 450
3630         (max-inline-insns-recursive-auto): Set to 450.
3631         (large-function-insns): Set to 2700.
3632         (inline-call-cost): New parameter.
3633         * tree-inline.c (estimate_move_cost): New function.
3634         (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
3635         for non-gimple-regs, set cost to 0 for gimple-regs.  Compute call size
3636         based on arguments.
3637         * tree-inline.h (estimate_move_cost): Declare.
3638         * invoke.texi: (max-inline-inssn-single): Change default to 450.
3639         (max-inline-insns-auto): Change default to 90.
3640         (max-inline-insns-recursive): Change default to 450
3641         (max-inline-insns-recursive-auto): Change default to 450.
3642         (large-function-insns): Change default to 2700.
3643         (inline-call-cost): Document new parameter.
3644
3645 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
3646
3647         * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
3648         (TARGET_DEFAULT): Delete.
3649         * config/i860/i860.opt: New file.
3650
3651 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
3652
3653         * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
3654         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
3655         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
3656         (frv_sched_lookahead): Delete.
3657         * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
3658         (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
3659         (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
3660         (MASK_LIBPIC, MASK_ACC_4,  MASK_PACK, MASK_LONG_CALLS)
3661         (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
3662         (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
3663         (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
3664         (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
3665         (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
3666         (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
3667         (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
3668         (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
3669         (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
3670         (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
3671         (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
3672         (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
3673         (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
3674         (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
3675         (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
3676         (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
3677         (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
3678         (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
3679         * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
3680         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
3681         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
3682         (frv_sched_lookahead): Delete.
3683         (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
3684         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3685         (frv_handle_option): New function.  Move -mcpu= handling from...
3686         (frv_override_options): ...here.  Remove handling of other
3687         TARGET_OPTIONS.
3688         (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
3689         TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
3690         (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
3691         and TARGET_NO_MULTI_CE.
3692         (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
3693         !TARGET_VLIW_BRANCH.
3694         * config/frv/frv.opt: New file.
3695
3696 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
3697
3698         * fold-const.c (fold_ternary): Take decomposed arguments of
3699         CALL_EXPR.
3700         (fold): Update a call to fold_ternary.
3701
3702         * fold-const.c (fold_build1, fold_build2, fold_build3): New.
3703         * tree.h: Add corresponding prototypes.
3704
3705 2005-03-22  Jakub Jelinek  <jakub@redhat.com>
3706
3707         PR target/20561
3708         * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
3709         between jump table and its label.
3710         * final.c (shorten_branches): Handle notes in between ADDR_VEC
3711         resp. ADDR_DIFF_VEC and the label preceeding it.
3712         (final_scan_insn): Likewise.  Ensure ADDR_VEC resp. ADDR_DIFF_VEC
3713         is emitted in the right section.
3714
3715 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
3716
3717         * fold-const.c (fold_unary, fold_binary): Update comments
3718         about arguments.
3719
3720 2005-03-22  Hans-Peter Nilsson  <hp@axis.com>
3721
3722         PR rtl-optimization/20527
3723         * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
3724         REG_INC note, test that the register also isn't mentioned in PRED
3725         or SUCC.
3726
3727 2005-03-22  Ben Elliston  <bje@au.ibm.com>
3728
3729         * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
3730         and definition.
3731
3732 2005-03-21  Mike Stump  <mrs@apple.com>
3733
3734         * varasm.c (default_assemble_visibility): Remove extra ().
3735
3736 2005-03-21  Roger Sayle  <roger@eyesopen.com>
3737
3738         PR middle-end/20557
3739         * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
3740         to determine whether a block can be duplicated, rather than test
3741         whether the block contains noncopyable insns ourselves.
3742
3743 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
3744
3745         * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
3746         predicates.
3747
3748 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
3749
3750         * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
3751
3752 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
3753
3754         * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
3755         (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
3756         * config/fr30/fr30.opt: New file.
3757
3758 2005-03-18  Daniel Berlin  <dberlin@dberlin.org>
3759
3760         Fix PR tree-optimization/20542
3761
3762         * tree-flow-inline.h (overlap_subvar): Move to here.
3763         * tree-ssa-operands.c: From here.
3764         * tree-flow.h (overlap_subvar): Declare.
3765         * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
3766         * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
3767         for variables with subvars.
3768
3769 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
3770
3771         PR middle-end/20177
3772         * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
3773         * modulo-sched.c (const_iteration_count): Return on NULL
3774         pre-header.
3775         (print_node_sched_params): Return on NULL dump_file.
3776         (generate_reg_moves): Handle reg-anti dependencies and disregard
3777         closing branch when generating register moves.
3778         (sms_schedule): Mark the SMSed block dirty.
3779         * passes.c (rest_of_handle_sms): Call update_life_info for all
3780         basic-blocks.
3781         * testsuite/gcc.dg/20050321-1.c: New test.
3782
3783 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
3784
3785         * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
3786         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
3787         movqi_internal): Likewise.
3788
3789 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
3790
3791         * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
3792         xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
3793         xtensa_b4const): Delete prototypes.
3794         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
3795         xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
3796         (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
3797         xtensa_extra_constraint): New prototypes.
3798         (add_operand, arith_operand, nonimmed_operand, mem_operand,
3799         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
3800         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
3801         move_operand, const_float_1_operand, fpmem_offset_operand,
3802         branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
3803         * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
3804         (xtensa_b4const_or_zero): ...this.  Change return type to bool and
3805         argument type to HOST_WIDE_INT.
3806         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
3807         xtensa_mask_immediate): Likewise.
3808         (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
3809         Likewise.  Also make these functions static.
3810         (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
3811         (xtensa_const_ok_for_letter_p): New.
3812         (add_operand, arith_operand, nonimmed_operand, mem_operand,
3813         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
3814         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
3815         move_operand, const_float_1_operand, fpmem_offset_operand,
3816         branch_operator, ubranch_operator, boolean_operator): Move to
3817         predicates.md.
3818         (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
3819         (xtensa_mem_offset): Change return type to bool.
3820         (xtensa_extra_constraint): New.
3821         (gen_int_relational): Update type of const_range_p function pointer.
3822         Use xtensa_b4const_or_zero.
3823         * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
3824         xtensa_const_ok_for_letter_p.  Update comments.
3825         (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
3826         (PREDICATE_CODES): Delete.
3827         * config/xtensa/xtensa.md: Include predicates.md.
3828         * config/xtensa/predicates.md: New file.
3829
3830 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
3831
3832         * config/v850/v850-protos.h: Remove the prototypes for
3833         reg_or_int9_operand, reg_or_const_operand,
3834         pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
3835         reg_or_0_operand, reg_or_int5_operand, call_address_operand,
3836         movsi_source_operand, power_of_two_operand,
3837         not_power_of_two_operand, special_symbolref_operand,
3838         pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
3839         register_is_ok_for_epilogue.
3840         * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
3841         reg_or_int9_operand, reg_or_const_operand,
3842         call_address_operand, special_symbolref_operand,
3843         movsi_source_operand, power_of_two_operand,
3844         not_power_of_two_operand, register_is_ok_for_epilogue,
3845         pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
3846         pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
3847         predicates.md.
3848         * config/v850/v850.h (PREDICATE_CODES): Remove.
3849         * config/v850/v850.md: Include predicates.md.
3850         * config/v850/predicates.md: New.
3851
3852 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
3853
3854         * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
3855         (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
3856         (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
3857         (itoolsdir, itoolsdatadir): Move definition above new first use.
3858         (install-itoolsdirs): New rule.
3859         (install-mkheaders): Depend on install-itoolsdirs, not
3860         install-include-dir.
3861
3862 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
3863
3864         * tree-into-ssa.c: Remove obsolete comments.
3865
3866 2005-03-21  Richard Guenther  <rguenth@gcc.gnu.org>
3867
3868         * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
3869         unrolling if -fpeel-loops is specified, too.
3870         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
3871         Remove superfluous check for flag_unroll_loops.
3872
3873 2005-03-21  Uros Bizjak  <uros@kss-loka.si>
3874
3875         * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
3876         (lrint_optab, llrint_optab): Define corresponding macros.
3877         * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
3878         * genopinit.c (optabs): Implement lrint_optab using lrintsi2
3879         pattern and llrint_optab using llrintdi2 patterns.
3880         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
3881         using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
3882         (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
3883         BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
3884         flag_unsafe_math_optimizations is set.
3885
3886 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
3887
3888         * combine.c (combine_simplify_rtx, simplify_if_then_else,
3889         simplify_logical, if_then_else_cond, known_cond,
3890         simplify_comparison): Adjust calls to reverse_comparison.
3891         Don't use combine_reversed_comparison_code).
3892         (combine_reversed_comparison_code): Remove.
3893         (reversed_comparison): Using reversed_comparison_code, move it...
3894         * jump.c (reversed_comparison): ... here.
3895         * rtl.h (reversed_comparison): Add prototype.
3896
3897 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
3898
3899         * builtins.c (fold_builtin): Take decomposed arguments of
3900         CALL_EXPR.
3901         * fold-const.c (fold_ternary): Update a call to fold_builtin.
3902         * gimplify.c (gimplify_call_expr): Likewise.
3903         * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
3904         * tree.h: Update the prototype of fold_builtin.
3905
3906 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
3907
3908         * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
3909         * rtlhooks.c (gen_lowpart_no_emit_general): New.
3910         * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
3911         (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
3912         * simplify-rtx.c (simplify_binary_operation_1): Use it.
3913
3914 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
3915
3916         * builtins.c (fold_builtin_1): Take decomposed arguments of
3917         CALL_EXPR.
3918         (fold_builtin): Update a call to fold_builtin_1.
3919
3920 2005-03-21  Nathan Sidwell  <nathan@codesourcery.com>
3921
3922         PR other/20564
3923         * gcov.c (output_lines): Only output function block summary when
3924         outputting branch information.
3925         * doc/gcov.texi: Document format of preamble and additional block