OSDN Git Service

2005-04-19 Andrew Haley <aph@redhat.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-04-19  Andrew Haley  <aph@redhat.com>
2
3         PR java/21022
4         * dbxout.c (dbxout_type_fields): Check DECL_IGNORED_P before
5         looking at a field's bitpos.
6
7 2005-04-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8
9         * system.h (fopen, fdopen, freopen): Define these to the unlocked
10         libiberty functions.
11
12 2005-04-19  Kazu Hirata  <kazu@cs.umass.edu>
13
14         PR tree-optimization/21096
15         * tree-ssa-copy.c (fini_copy_prop): Free cached_last_copy_of.
16
17 2005-04-19  Alan Modra  <amodra@bigpond.net.au>
18
19         PR target/21098
20         * config/rs6000/rs6000.c (rs6000_elf_end_indicate_exec_stack): New.
21         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Use the above.
22
23 2005-04-19  Alexandre Oliva  <aoliva@redhat.com>
24
25         * tree-cfg.c (dump_function_to_file): Use cfun info only if it
26         refers to the function being dumped.
27
28 2005-04-18  Daniel Jacobowitz  <dan@codesourcery.com>
29
30         * varasm.c (assemble_start_function): Remove reset of in_section.
31
32 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
33
34         PR tree-optimization/21085
35         * fold-const (fold_binary): Don't change X % -C to X % C if C has
36         overflowed.
37
38 2005-04-19  Ben Elliston  <bje@au.ibm.com>
39
40         * doc/invoke.texi (Optimize Options): Refer to the correct
41         optimisation flag -ftree-dominator-opts, not -ftree-dom.
42
43 2005-04-18  Christopher Jaillet <christophe.jaillet@wanadoo.fr>
44
45         * config/rs6000/rs6000.c (machopic_output_stub):  Increase
46         alloca argument to be big enough.
47
48 2005-04-18  Alexandre Oliva  <aoliva@redhat.com>
49
50         PR middle-end/21049
51         * tree-cfg.c (dump_function_to_file): Do not crash if cfun or
52         cfun->cfg are NULL.
53
54 2005-04-18  Tom Tromey  <tromey@redhat.com>
55
56         * cgraphunit.c (cgraph_finalize_compilation_unit): Fix a comment
57         typo.
58
59 2005-04-18  Richard Henderson  <rth@redhat.com>
60
61         * config/alpha/alpha.c (alpha_split_atomic_op): New.
62         (alphaev5_insn_pipe): Add LD_L, ST_C, MB types.
63         (alphaev4_insn_pipe): Likewise.  Correct IST and LDSYM pipes.
64         * config/alpha/alpha-protos.h: Update.
65         * config/alpha/alpha.md (UNSPECV_MB, UNSPECV_LL, UNSPECV_SC): New.
66         (UNSPECV_ATOMIC, UNSPECV_CMPXCHG, UNSPECV_XCHG): New.
67         (attr type): Add ld_l, st_c, mb.
68         (andsi_internal, andnotsi3, iorsi_internal, one_cmplsi_internal,
69         iornotsi3, xorsi_internal, xornotsi3): New.
70         * config/alpha/ev4.md (ev4_ld): Add ld_l.
71         (ev4_ist_c, ev4_mb): New.
72         * config/alpha/ev5.md (ev5_st): Add st_c, mb.
73         (ev5_ld_l): New.
74         * config/alpha/ev6.md (ev6_ild): Add ld_l.
75         (ev6_ist): Add st_c.
76         (ev6_mb): New.
77         * config/alpha/sync.md: New file.
78
79 2005-04-18  Richard Henderson  <rth@redhat.com>
80
81         * builtins.c (expand_builtin_sync_operation): Fold nand to and
82         for constants.
83
84         * optabs.c (expand_sync_operation): Fix typo expanding nand to and.
85
86 2005-04-18  Devang Patel  <dpatel@apple.com>
87
88         * config/rs6000/atlivec.md (mulv4si3): New pattern.
89         
90 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
91
92         PR tree-optimization/20922
93         * fold-const.c (fold_binary): Fold X - c > X and X + c < X to false.
94         Fold X + c >= X and fold X - c <= X to true.
95
96 2005-04-18  James A. Morrison  <phython@gcc.gnu.org>
97
98         * config/ia64/unwind-ia64.c (emergency_reg_state_free): Make an
99         unsigned int.
100         (emergency_labeled_state_free): Likewise.
101
102 2005-04-18  Nick Clifton  <nickc@redhat.com>
103
104         * config/h8300/h8300.md (jump): Remove prescan parameter from
105         calls to final_scan_insn.
106
107         * config/arc/arc.c (arc_output_function_epilogue): Remove prescan
108         parameter from calls to final_scan_insn.
109
110         * config.gcc (m68hc12): Use the m68hc11.opt file for target
111         specific options.
112         (v850e, v850e1): Use the v850.opt file for target specific
113         options.
114
115 2005-04-18  Kazu Hirata  <kazu@cs.umass.edu>
116
117         PR tree-optimization/21001
118         * tree-optimize.c (init_tree_optimization_passes): Move the
119         first pass_forwprop immediately before pass_vrp.
120
121 2005-04-17  Ian Lance Taylor  <ian@airs.com>
122
123         * c-common.def (SIZEOF_EXPR, ARROW_EXPR, ALIGNOF_EXPR): Remove.
124         * c-common.c (c_sizeof_or_alignof_type): Change second parameter
125         from enum tree_code op to bool is_sizeof.
126         * c-common.h (c_sizeof_or_alignof_type): Update declaration.
127         (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
128         * c-pretty-print.c (pp_c_postfix_expression): Remove ARROW_EXPR
129         case.
130         (pp_c_unary_expression): Remove SIZEOF_EXPR and ALIGNOF_EXPR
131         cases.
132         (pp_c_expression): Remove ARROW_EXPR, SIZEOF_EXPR, and
133         ALIGNOF_EXPR cases.
134
135 2005-04-17  Ian Lance Taylor  <ian@airs.com>
136
137         * system.h: Poison DONT_ACCESS_GBLS_AFTER_EPILOGUE.
138
139 2005-04-17  Richard Henderson  <rth@redhat.com>
140
141         * config/alpha/alpha.c (va_list_skip_additions): Only define if
142         TARGET_ABI_OSF.
143         (TARGET_STDARG_OPTIMIZE_HOOK): Likewise.
144         (alpha_stdarg_optimize_hook): Likewise.  Allow for one more round
145         of indirection through ssa names while looking for the gpr counter
146         field.
147         (alpha_setup_incoming_varargs) <TARGET_ABI_OSF>: Make use of the
148         saved va_list_gpr_size and va_list_fpr_size.
149
150 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
151
152         * tree-vrp.c (compare_values): Check that VAL1 and VAL2 are
153         both pointers or both integers.
154
155         * tree-vrp.c (maybe_add_assert_expr): Don't assert
156         ASSERT_EXPRs for single-use variable.
157
158         * tree-into-ssa.c: Fix a comment typo.
159
160 2005-04-17  Richard Sandiford  <rsandifo@redhat.com>
161
162         * config/mips/iris6.h (DRIVER_SELF_SPECS): Check -march as well as
163         -mipsN before forcing a default of -mips2.
164
165 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
166
167         * predict.h (IS_TAKEN): Remove.
168         * rtl.h (NOTE_PREDICTION): Likewise.
169
170         * modulo-sched.c (CFG_HOOKS): Remove.
171
172         * c-parser.c (N_C_TTYPES): Remove.
173
174         * tree-flow-inline.h (get_stmt_operands): Remove.
175         * lambda-code.c, tree-ssa-loop-unswitch.c,
176         tree-ssa-operands.c, tree-ssa-pre.c, tree-ssa-propagate.c,
177         tree-ssa-sink.c, tree-ssa.c, tree-tailcall.c,
178         tree-vect-transform.c, tree-vectorizer.c, tree-vrp.c): Remove
179         calls to get_stmt_operands.
180         * doc/tree-ssa.texi: Don't mention get_stmt_operands.
181
182 2005-04-17  Richard Henderson  <rth@redhat.com>
183
184         PR target/20375
185         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Advance a copy
186         of CUMULATIVE_ARGS past the last named argument.
187         (alpha_va_start): Expect pretend_args_size only if strictly less than
188         6 named arguments.
189
190 2005-04-17  Kazu Hirata  <kazu@cs.umass.edu>
191
192         PR middle-end/21024
193         * builtins.c (expand_builtin_strcat): Convert the result of
194         strlen to the right type.
195         * fold-const.c (fold_binary) <PLUS_EXPR>: Use fold_convert to
196         avoid creating type mismatches.
197         <GE_EXPR>: Pass op0 and op1 to fold_build2 to avoid creating
198         type mismatches.
199
200         * c-lex.c (WCHAR_TYPE_SIZE, WCHAR_BYTES): Remove.
201
202 2005-04-16  Richard Henderson  <rth@redhat.com>
203
204         PR target/21051
205         * builtins.c (expand_builtin) <BUILT_IN_BOOL_COMPARE_AND_SWAP_*>:
206         Use the mode of boolean_type_node when the user doesn't provide one.
207         * config/ia64/sync.md (sync_lock_release<I48MODE>): Use operand 1.
208
209 2005-04-16  Alexandre Oliva  <aoliva@redhat.com>
210
211         PR target/20126
212         * loop.c (loop_givs_rescan): Handle non-replaceable (plus (reg)
213         (const)).
214
215         * tree-scalar-evolution.c (interpret_rhs_modify_expr): Fix typo in
216         comment.
217
218 2005-04-16  Roger Sayle  <roger@eyesopen.com>
219             Steven Bosscher  <stevenb@suse.de>
220
221         * fold-const.c (fold_binary_to_constant): Delete obsolete comment.
222         (fold_unary_to_constant): Likewise.
223
224 2005-04-16  Kazu Hirata  <kazu@cs.umass.edu>
225
226         * basic-block.h: Adjust the value of PROP_SCAN_DEAD_STORES,
227         PROP_ASM_SCAN.
228
229 2005-04-16  Gerald Pfeifer  <gerald@pfeifer.com>
230
231         * doc/install.texi (Specific): Avoid using asterisks in @anchor
232         names related to target triplets.
233         Remove i?86-*-esix from platform directory.
234         Remove powerpc-*-eabiaix from platform directory.
235
236 2005-04-16  Joseph S. Myers  <joseph@codesourcery.com>
237
238         PR middle-end/20491
239         * config/ia64/ia64.c (rtx_needs_barrier): Recurse instead of
240         falling through from SUBREG case to REG.
241
242 2005-04-15  Roger Sayle  <roger@eyesopen.com>
243
244         * fold-const.c (fold_relational_hi_lo): Delete function and prototype.
245         (fold_binary): Update comment mentioning fold_relational_hi_lo.
246         (fold_binary_to_constant): Simplify using fold_binary.
247         (fold_unary_to_constant): Likewise, simplify using fold_unary.
248
249 2005-04-15  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
250
251         * gthr-posix.c (pthread_cancel): Define.
252         (pthread_mutexattr_init): Likewise.
253         (pthread_mutexattr_settype): Likewise.
254         (pthread_mutexattr_destroy): Likewise.
255
256 2005-04-15  David S. Miller  <davem@davemloft.net>
257
258         PR target/20673
259         * config/sparc/sparc.h (sparc_hard_reg_printed): Mark as GTY(()).
260
261 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
262
263         PR tree-optimization/21031
264         * tree-ssa-forwprop.c (ssa_name_defined_by_comparison_p): New.
265         (forward_propagate_into_cond_1): Call it.  Forward propagate
266         integer-integer casts into COND_EXPRs.
267
268 2005-04-15  Dave Korn  <dave.korn@artimi.com>
269
270         * gcc.c (default_compilers): Clarify obscure error message when
271         reading from standard input.
272
273 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
274
275         * basic-block.h (PROP_EQUAL_NOTES): Remove.
276         * flow.c (propagate_one_insn): Don't use PROP_EQUAL_NOTES.
277
278         * tree-ssa-alias.c (init_alias_info): Remove a call to
279         get_stmt_operands.
280
281 2005-04-15  Andrew MacLeod  <amacleod@redhat.com>
282
283         * tree-vect-analyze.c (vect_stmt_relevant_p): Process immediate uses
284         of non-virtual PHI nodes like we use to.
285
286 2005-05-15  Paolo Bonzini  <bonzini@gnu.org>
287
288         * genattrtab.c (ATTR_EQ_ATTR_P): Remove.
289         (attr_copy_rtx): Do not use it.
290
291 2005-04-15  Andrew Macleod  <amacleod@redhat.com>
292
293         * doc/tree-ssa.texi: Grammer/abbreviation updates.
294
295 2005-04-15  Diego Novillo  <dnovillo@redhat.com>
296
297         * tree-vect-transform.c (vectorizable_store): Mark necessary
298         objects in the vectorized store needing renaming.  Update the
299         SSA graph for V_MAY_DEF operands in the original store.
300
301 2005-04-14  Daniel Berlin <dberlin@dberlin.org>
302
303         * tree-ssa-pre.c (compute_avail): It's okay to have
304         TREE_INVARIANT's here, and value number the resulting expressions.
305         (create_expression_by_pieces): Make sure operands that were
306         min_invariant when we started, stay that way.
307
308 2005-04-15  David Edelsohn  <edelsohn@gnu.org>
309
310         * doc/install.texi (*-ibm-aix*): Add comment about system limits.
311
312 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
313
314         PR tree-optimization/20936.
315         * tree-ssa-ccp.c (visit_assignment): Fix a typo.
316
317 2005-04-15  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
318
319         * doc/invoke.texi: Fix typos.
320         * doc/md.texi: Likewise.
321         * doc/rtl.texi: Likewise.
322         * doc/sourcebuild.texi: Likewise.
323         * doc/tm.texi: Likewise.
324
325 2005-04-15  Uros Bizjak  <uros@kss-loka.si>
326
327         PR tree-optimization/21004
328         * convert.c (convert_to_integer): Convert ceilf, ceill, floorf
329         and floorl in c99 mode only.
330         * builtins.c (expand_builtin_int_roundingfn): Assert that
331         fallback_fndecl is not NULL_TREE.
332
333 2005-04-15  Kazu Hirata  <kazu@cs.umass.edu>
334
335         * cfgrtl.c (purge_all_dead_edge): Remove an unused argument.
336         * basic-block.h: Update the prototype for
337         purge_all_dead_edges.
338         * cfgexpand.c (tree_expand_cfg): Update a call to
339         purge_all_dead_edges.
340         * combine.c (combine_instructions): Likewise.
341         * passes.c (rest_of_handle_old_regalloc, rest_of_handle_cse,
342         rest_of_handle_cse2, rest_of_handle_gcse,
343         rest_of_handle_postreload): likewise.
344
345 2005-04-15  Alexandre Oliva  <aoliva@redhat.com>
346
347         PR middle-end/20739
348         * gimplify.c (gimplify_addr_expr): Compensate for removal of
349         e.g. cv-qualification conversions.
350
351 2005-04-14  Mike Stump  <mrs@apple.com>
352
353         * config/darwin-c.c (framework_construct_pathname): We must
354         find all headers of a framework in the first instance of it
355         found in the seach path.
356
357 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
358
359         PR tree-optimization/21021
360         * tree-vrp.c (compare_values): Work around a bug in the front
361         end that produces a comparison of mismatched types.
362
363 2004-04-14  Richard Henderson  <rth@redhat.com>
364
365         * config/ia64/ia64.h (enum fetchop_code): Remove.
366         (enum ia64_builtins): Move ...
367         * config/ia64/ia64.c (enum ia64_builtins): ... here.  Remove all
368         members except BSP and FLUSHRS.
369         (ia64_init_builtins): Remove __sync builtins.
370         (ia64_expand_builtin): Likewise.
371         (ia64_expand_fetch_and_op, ia64_expand_op_and_fetch): Remove.
372         (ia64_expand_compare_and_swap, ia64_expand_lock_test_and_set): Remove.
373         (ia64_expand_lock_release): Remove.
374         * config/ia64/ia64.md (mf): Move to sync.md.
375         (mf_internal, fetchadd_acq_si, fetchadd_acq_di, cmpxchg_acq_si,
376         cmpxchg_acq_di, xchgsi, xchgdi): Likewise.
377         * config/ia64/sync.md: New file.
378         (memory_barrier): Rename from mf.
379         (fetchadd_acq_<I48MODE>): Macroize from _si/_di patterns.
380         (cmpxchg_acq_<I48MODE>): Likewise.
381         (sync_lock_test_and_set<I48MODE>): Likewise.
382
383         * config/ia64/ia64intrin.h: Define nothing for C; limit #defines
384         to c++.  Remove __sync* declarations.  s/_si/_4/.  s/_di/_8/.
385
386 2004-04-14  Richard Henderson  <rth@redhat.com>
387
388         * config/i386/i386.c (x86_cmpxchg, x86_xadd): New.
389         (ix86_compare_emitted): New.
390         (ix86_expand_compare): Use ix86_compare_emitted if set.
391         (ix86_expand_setcc): Only emit REG_EQUAL if both ix86_compare_op0
392         and ix86_compare_op0 are set.
393         * config/i386/i386.h (x86_cmpxchg, x86_xadd): Declare.
394         (TARGET_CMPXCHG, TARGET_XADD): New.
395         (ix86_compare_emitted): Declare.
396         * config/i386/i386.md: Include sync.md
397         (UNSPECV_CMPXCHG_1, UNSPECV_CMPXCHG_2): New.
398         (UNSPECV_XCHG, UNSPECV_LOCK): New.
399         * config/i386/sync.md: New file.
400
401 2004-04-14  Richard Henderson  <rth@redhat.com>
402
403         PR middle-end/14311
404         * builtin-types.def (BT_BOOL, BT_VOLATILE_PTR, BT_I1, BT_I2,
405         BT_I4, BT_I8, BT_FN_VOID_VPTR, BT_FN_I1_VPTR_I1, BT_FN_I2_VPTR_I2,
406         BT_FN_I4_VPTR_I4, BT_FN_I8_VPTR_I8, BT_FN_BOOL_VPTR_I1_I1,
407         BT_FN_BOOL_VPTR_I2_I2, BT_FN_BOOL_VPTR_I4_I4, BT_FN_BOOL_VPTR_I8_I8,
408         BT_FN_I1_VPTR_I1_I1, BT_FN_I2_VPTR_I2_I2, BT_FN_I4_VPTR_I4_I4,
409         BT_FN_I8_VPTR_I8_I8): New.
410         * builtins.def (DEF_SYNC_BUILTIN): New.
411         (BUILT_IN_FETCH_AND_ADD_N, BUILT_IN_FETCH_AND_ADD_1,
412         BUILT_IN_FETCH_AND_ADD_2, BUILT_IN_FETCH_AND_ADD_4,
413         BUILT_IN_FETCH_AND_ADD_8, BUILT_IN_FETCH_AND_SUB_N,
414         BUILT_IN_FETCH_AND_SUB_1, BUILT_IN_FETCH_AND_SUB_2,
415         BUILT_IN_FETCH_AND_SUB_4, BUILT_IN_FETCH_AND_SUB_8,
416         BUILT_IN_FETCH_AND_OR_N, BUILT_IN_FETCH_AND_OR_1,
417         BUILT_IN_FETCH_AND_OR_2, BUILT_IN_FETCH_AND_OR_4,
418         BUILT_IN_FETCH_AND_OR_8, BUILT_IN_FETCH_AND_AND_N,
419         BUILT_IN_FETCH_AND_AND_1, BUILT_IN_FETCH_AND_AND_2,
420         BUILT_IN_FETCH_AND_AND_4, BUILT_IN_FETCH_AND_AND_8,
421         BUILT_IN_FETCH_AND_XOR_N, BUILT_IN_FETCH_AND_XOR_1,
422         BUILT_IN_FETCH_AND_XOR_2, BUILT_IN_FETCH_AND_XOR_4,
423         BUILT_IN_FETCH_AND_XOR_8, BUILT_IN_FETCH_AND_NAND_N,
424         BUILT_IN_FETCH_AND_NAND_1, BUILT_IN_FETCH_AND_NAND_2,
425         BUILT_IN_FETCH_AND_NAND_4, BUILT_IN_FETCH_AND_NAND_8,
426         BUILT_IN_ADD_AND_FETCH_N, BUILT_IN_ADD_AND_FETCH_1,
427         BUILT_IN_ADD_AND_FETCH_2, BUILT_IN_ADD_AND_FETCH_4,
428         BUILT_IN_ADD_AND_FETCH_8, BUILT_IN_SUB_AND_FETCH_N,
429         BUILT_IN_SUB_AND_FETCH_1, BUILT_IN_SUB_AND_FETCH_2,
430         BUILT_IN_SUB_AND_FETCH_4, BUILT_IN_SUB_AND_FETCH_8,
431         BUILT_IN_OR_AND_FETCH_N, BUILT_IN_OR_AND_FETCH_1,
432         BUILT_IN_OR_AND_FETCH_2, BUILT_IN_OR_AND_FETCH_4,
433         BUILT_IN_OR_AND_FETCH_8, BUILT_IN_AND_AND_FETCH_N,
434         BUILT_IN_AND_AND_FETCH_1, BUILT_IN_AND_AND_FETCH_2,
435         BUILT_IN_AND_AND_FETCH_4, BUILT_IN_AND_AND_FETCH_8,
436         BUILT_IN_XOR_AND_FETCH_N, BUILT_IN_XOR_AND_FETCH_1,
437         BUILT_IN_XOR_AND_FETCH_2, BUILT_IN_XOR_AND_FETCH_4,
438         BUILT_IN_XOR_AND_FETCH_8, BUILT_IN_NAND_AND_FETCH_N,
439         BUILT_IN_NAND_AND_FETCH_1, BUILT_IN_NAND_AND_FETCH_2,
440         BUILT_IN_NAND_AND_FETCH_4, BUILT_IN_NAND_AND_FETCH_8,
441         BUILT_IN_BOOL_COMPARE_AND_SWAP_N, BUILT_IN_BOOL_COMPARE_AND_SWAP_1,
442         BUILT_IN_BOOL_COMPARE_AND_SWAP_2, BUILT_IN_BOOL_COMPARE_AND_SWAP_4,
443         BUILT_IN_BOOL_COMPARE_AND_SWAP_8, BUILT_IN_VAL_COMPARE_AND_SWAP_N,
444         BUILT_IN_VAL_COMPARE_AND_SWAP_1, BUILT_IN_VAL_COMPARE_AND_SWAP_2,
445         BUILT_IN_VAL_COMPARE_AND_SWAP_4, BUILT_IN_VAL_COMPARE_AND_SWAP_8,
446         BUILT_IN_LOCK_TEST_AND_SET_N, BUILT_IN_LOCK_TEST_AND_SET_1,
447         BUILT_IN_LOCK_TEST_AND_SET_2, BUILT_IN_LOCK_TEST_AND_SET_4,
448         BUILT_IN_LOCK_TEST_AND_SET_8, BUILT_IN_LOCK_RELEASE_N,
449         BUILT_IN_LOCK_RELEASE_1, BUILT_IN_LOCK_RELEASE_2,
450         BUILT_IN_LOCK_RELEASE_4, BUILT_IN_LOCK_RELEASE_8,
451         BUILT_IN_SYNCHRONIZE: New.
452         * builtins.c (called_as_built_in): Rewrite from CALLED_AS_BUILT_IN
453         as a function.  Accept __sync_ as a prefix as well.
454         (expand_builtin_sync_operation, expand_builtin_compare_and_swap,
455         expand_builtin_lock_test_and_set, expand_builtin_synchronize,
456         expand_builtin_lock_release): New.
457         (expand_builtin): Call them.
458         * c-common.c (DEF_BUILTIN): Don't require __builtin_ prefix if
459         neither BOTH_P nor FALLBACK_P are defined.
460         (builtin_type_for_size): New.
461         (sync_resolve_size, sync_resolve_params, sync_resolve_return): New.
462         (resolve_overloaded_builtin): New.
463         * c-common.h (resolve_overloaded_builtin): Declare.
464         (builtin_type_for_size): Declare.
465         * c-typeck.c (build_function_call): Invoke resolve_overloaded_builtin.
466         * expr.c (sync_add_optab, sync_sub_optab, sync_ior_optab,
467         sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab,
468         sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab,
469         sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab,
470         sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab,
471         sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap,
472         sync_compare_and_swap_cc, sync_lock_test_and_set,
473         sync_lock_release): New.
474         * optabs.h: Declare them.
475         * expr.h (expand_val_compare_and_swap, expand_bool_compare_and_swap,
476         expand_sync_operation, expand_sync_fetch_operation,
477         expand_sync_lock_test_and_set): Declare.
478         * genopinit.c (optabs): Add sync optabs.
479         * optabs.c (init_optabs): Initialize sync optabs.
480         (expand_val_compare_and_swap_1, expand_val_compare_and_swap,
481         expand_bool_compare_and_swap, expand_compare_and_swap_loop,
482         expand_sync_operation, expand_sync_fetch_operation,
483         expand_sync_lock_test_and_set): New.
484         * doc/extend.texi (Atomic Builtins): New section
485         * doc/md.texi (Standard Names): Add sync patterns.
486
487 2005-04-14  Alexandre Oliva  <aoliva@redhat.com>
488
489         * tree-eh.c (lower_try_finally_copy): Generate new code in
490         response to goto_queue entries as if the queue was sorted by
491         index, not pointers.
492         (lower_try_finally_switch): Likewise.
493
494 2005-04-14  Richard Henderson  <rth@redhat.com>
495
496         * config/i386/i386.c (ix86_expand_sse_cmp): Split out from ...
497         (ix86_expand_sse_movcc): ... here.  Take cmp as a pre-computed
498         register.
499         (ix86_expand_fp_movcc): Update to match.
500         (ix86_expand_fp_vcond, ix86_expand_int_vcond): New.
501         * config/i386/i386-protos.h: Update.
502         * config/i386/sse.md (vcondv4sf, vcondv2df): New.
503         (vcond<SSEMODE124>, vcondu<SSEMODE12>): New.
504
505 2005-04-14  Joseph S. Myers  <joseph@codesourcery.com>
506
507         * doc/cpp.texi, doc/install.texi: Change references to GCC 3.5 to
508         refer to 4.0.
509
510 2005-04-14  Julian Brown  <julian@codesourcery.com>
511
512         * Revert elfos.h part of my patch from 2005-04-13 for causing libstdc++
513         link failures on ppc64 Linux.
514
515 2005-04-14  Andreas Krebbel  <krebbel1@de.ibm.com>
516
517         * config.gcc: Set cpu_type for s390.
518
519 2005-04-14  Daniel Berlin  <dberlin@dberlin.org>
520
521         Fix PR tree-optimization/20963
522         * tree-ssa-pre.c (compute_avail): Remove special case for
523         TREE_INVARIANT.
524         (create_expression_by_pieces): Add value numbers for forced out
525         statements.
526
527 2005-04-14  Hans-Peter Nilsson  <hp@axis.com>
528
529         * config/cris/cris.md: Replace references to (reg:SI 16) with
530         (reg:SI CRIS_SRP_REGNUM).
531
532 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
533
534         PR tree-optimization/20657
535         * tree-vrp.c (extract_range_from_expr): Notice INTEGER_CST to
536         create an appropriate range from it.
537
538 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
539
540         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST_FLOOR> and
541         <UNSPEC_FIST_CEIL> case.
542
543         * config/i386/i386.md (UNSPEC_FIST_FLOOR, UNSPEC_FIST_CEIL): New.
544         (*fist<mode>2_floor_1, fistdi2_floor, fistdi2_floor_with_temp)
545         (fist<mode>2_floor, fist<mode>2_floor_with_temp): New isns patterns
546         to implement lfloor and llfloor built-ins as x87 intrinsic function.
547         (fistdi2_floor, fist<mode>2_floor splitters): New splitters.
548         (lfloor<mode>2): New expanders.
549         (*fist<mode>2_ceil_1, fistdi2_ceil, fistdi2_ceil_with_temp)
550         (fist<mode>2_ceil, fist<mode>2_ceil_with_temp): New isns patterns
551         to implement lceil and llceil built-ins as x87 intrinsic function.
552         (fistdi2_ceil, fist<mode>2_ceil splitters): New splitters.
553         (lceil<mode>2): New expanders.
554
555 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
556
557         * convert.c (convert_to_integer): Convert (long int)trunc{,f,l},
558         and (long long int)ceil{,f,l} into FIX_TRUNC_EXPR.
559
560 2005-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
561
562         PR target/20927
563         * config/s390/s390-modes.def: Define TFmode.
564
565 2005-04-13  Richard Sandiford  <rsandifo@redhat.com>
566
567         * config/mips/mips.h (ASM_OUTPUT_CASE_LABEL): Delete.
568         (JUMP_TABLES_IN_TEXT_SECTION): Define.
569         * config/mips/mips.c (mips16_insn_length): Remove reference to
570         JUMP_TABLES_IN_TEXT_SECTION.
571
572 2005-04-13 Fariborz Jahanian <fjahanian@apple.com>
573
574         * simplify-rtx.c (simplify_binary_operation_1): Return
575         scalar or vector of constant 0, depending on the xor's
576         mode.
577
578 2005-04-13  Dale Johannesen  <dalej@apple.com>
579
580         * objc/Make-lang.in (objc-lang.o):  Depend on tree-gimple.h.
581         (objc-act.o):  Ditto.
582         * objc/objc-act.c (objc_gimplify_expr):  New.
583         (objc_get_callee_fndecl):  New.
584         * objc/objc-act.h:  Include tree-gimple.h.  Declare new functions.
585         * objc/objc-lang.c (LANG_HOOKS_GIMPLIFY_EXPR):  Define.
586         (LANG_HOOKS_GET_CALLEE_FNDECL):  Define.
587
588 2005-04-13  Devang Patel  <dpatel@apple.com>
589
590         * tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
591         temp variables.
592
593 2005-04-13  Hans-Peter Nilsson  <hp@axis.com>
594
595         CRIS prologue as RTL.
596         * config/cris/cris-protos.h (cris_emit_movem_store)
597         (cris_expand_prologue): Prototype.
598         * config/cris/cris.c (struct machine_function): New member
599         stdarg_regs.
600         (cfa_label_num, cris_target_asm_function_prologue): Remove.
601         (TARGET_ASM_FUNCTION_PROLOGUE): Don't override.
602         (cris_general_operand_or_gotless_symbol): Accept CRIS_UNSPEC_GOT.
603         (cris_load_multiple_op, cris_return_address_on_stack)
604         (cris_return_address_on_stack_for_return): ISO-Cify.
605         (cris_store_multiple_op): New predicate function.
606         (cris_expand_prologue, cris_emit_movem_store): New functions.
607         (cris_print_operand) <case 'O'>: Handle modifications other than
608         post-increment.
609         (cris_symbol, cris_got_symbol): Return 0 for CRIS_UNSPEC_GOT.
610         (cris_gotless_symbol): Return 1 for CRIS_UNSPEC_GOT.
611         (cris_gen_movem_load): Rearrange slightly to make local variable
612         src a parameter, removing osrc.
613         (cris_setup_incoming_varargs): Set machine_function member
614         stdarg_regs to correspond to the number of registers that need to
615         be saved.
616         * config/cris/cris.h (EXTRA_CONSTRAINT_S): Accept
617         CRIS_UNSPEC_GOT.
618         (PREDICATE_CODES): Add cris_store_multiple_op.  Make
619         cris_general_operand_or_gotless_symbol accept UNSPEC.
620         * config/cris/cris.md (CRIS_UNSPEC_GOT): New constant.
621         ("*movsi_internal") <alternative 8>: Handle CRIS_UNSPEC_GOT.
622         ("*cris_store_multiple"): New pattern.  Tweak common comment above
623         this and "*cris_load_multiple".
624         ("prologue"): New define_expand.
625
626         * config/cris/cris.md ("epilogue"): Conditionalize on
627         TARGET_PROLOGUE_EPILOGUE.
628
629 2005-04-13  Steve Ellcey  <sje@cup.hp.com>
630
631         PR target/20924
632         * config/ia64/ia64.md (divsf3_internal_lat): Generate frcpa with
633         fpsr 0 instead of fpsr 1.
634         (divsf3_internal_thr): Ditto.
635         (divdf3_internal_lat): Ditto.
636         (divdf3_internal_thr): Ditto.
637         (divxf3_internal_lat): Ditto.
638         (divxf3_internal_thr): Ditto.
639
640 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
641
642         PR tree-optimization/20913
643         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Fold COND_EXPR.
644
645         PR tree-optimization/20702
646         * tree-vrp.c (maybe_add_assert_expr): Recurse into
647         dominator children that haven't been walked into.
648
649 2005-04-13  Julian Brown  <julian@codesourcery.com>
650
651         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from
652         being used for symbols with vague linkage when HAVE_GAS_COMDAT_GROUP
653         is true.
654
655 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
656
657         * basic-block.h, tree-ssa-uncprop.c, varasm.c,
658         config/i386/sse.md: Fix comment typos.
659
660         * genattrtab.c (NULL_ATTR): Remove.
661         * ifcvt.c (NULL_EDGE): Likewise.
662
663         * rtl.h (RTX_EXPR_FIRST, RTX_EXPR_LAST): Remove.
664
665         * rtl.h (NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS,
666         NOTE_PREDICT): Remove.
667
668 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
669
670         * configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
671         * configure: Regenerate.
672         * config.in: Likewise.
673         * system.h: Declare vsnprintf if not already declared.
674
675 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
676
677         * optc-gen.awk: Handle stand-alone Mask records.
678         * opth-gen.awk: Likewise.
679         * doc/options.texi (Option file format): Document them.
680         * config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*,
681         sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt.
682         (sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt.
683         * config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES,
684         MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9,
685         MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS,
686         MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT,
687         MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS,
688         MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete.
689         (TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE,
690         TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS,
691         TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD,
692         TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS,
693         TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS,
694         TARGET_LONG_DOUBLE_128): Likewise.
695         (TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise.
696         (TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise.
697         * config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise.
698         * config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise.
699         * config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise.
700         * config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise.
701         * config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
702         * config/sparc/sparc.c (fpu_option_set): New global.
703         (sparc_handle_option): New function.
704         (sparc_override_options): Test fpu_option_set.
705         (TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT.
706         (TARGET_HANDLE_OPTION): Set to sparc_handle_option.
707         * config/sparc/sparc.opt: New file.
708         * config/sparc/little-endian.opt: Likewise.
709         * config/sparc/long-double-switch.opt: Likewise.
710
711 2005-04-13  Bernd Schmidt  <bernd.schmidt@analog.com>
712
713         * config/bfin/bfin.c (bfin_lib_id_given): New static variable.
714         (bfin_handle_options): Set it if -mshared-library-id= is seen.
715         * config/bfin/bfin.opt (mshared-library-id=): Lose
716         Var(bfin_lib_id_given).
717
718 2005-04-13  Matt Thomas  <matt@3am-software.com>
719
720         * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
721         defining.
722
723 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
724
725         * rtl.h (CLEAR_RTX_FLAGS): Remove.
726
727         * cgraphunit.c (INSNS_PER_CALL): Remove.
728
729         * tree-ssa-forwprop.c (vars,
730         record_single_argument_cond_exprs,
731         substitute_single_use_vars): Remove.
732         (forward_propagate_into_cond_1, forward_propagate_into_cond):
733         New.
734         (tree_ssa_forward_propagate_single_use_vars): Call
735         forward_propagate_into_cond for each COND_EXPR.
736
737         * tree-inline.c (INSNS_PER_STMT): Remove.
738
739 2005-04-12  Richard Henderson  <rth@redhat.com>
740
741         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Split ...
742         (ix86_expand_sse_fp_minmax): ... from ...
743         (ix86_expand_fp_movcc): ... here.
744         (ix86_expand_sse_movcc): Rewrite from ix86_split_sse_movcc.
745         * config/i386/i386-protos.h: Update.
746         * config/i386/i386.md (UNSPEC_IEEE_MIN, UNSPEC_IEEE_MAX): New.
747         (sse_setccsf, sse_setccdf): Allow before reload.
748         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): Remove.
749         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): Remove.
750         (ieee_sminsf3, ieee_smaxsf3, ieee_smindf3, ieee_smaxdf3): New.
751         * config/i386/sse.md (andsf3, nandsf3, iorsf3, xorsf3): New.
752         (anddf3, nanddf3, iordf3, xordf3): New.
753
754 2005-04-12  Jeff Law  <law@redhat.com>
755
756         * Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
757         (tree-ssa-uncprop.o): Add dependencies.
758         * tree-cfg.c (remove_useless_stmts_bb, remove_useless_stmts): Remove.
759         * tree-flow.h (remove_useless_stmts): Remove prototype.
760         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
761         remove_useless_stmts.
762         * timevar.def (TV_TREE_SSA_UNCPROP): New timevar.
763         * tree-optimize.c (init_tree_optimization_passes): Add uncprop pass.
764         * tree-pass.h (pass_uncprop): Declare.
765         * tree-ssa-uncprop.c: New file.
766
767 2005-04-12  James E. Wilson  <wilson@specifixinc.com>
768
769         PR target/20670
770         * unwind-ia64.c (uw_intall_context): Add missing load of r27.
771
772 2005-04-12  Caroline Tice  <ctice@apple.com>
773
774         Temporary fix for partitioning problems.
775         * passes.c (rest_of_handle_final): Remove code that
776         frees unlikely_text_section_name,
777         * varasm.c (assemble_start_function): Test for partitioning
778         flag before writing out section labels.
779         (assemble_end_function): Test for partitioning flag before
780         writing out section labels.
781
782 2005-04-12  Steven Bosscher  <stevenb@suse.de>
783             Stuart Hastings <stuart@apple.com>
784             Jan Hubicka  <jh@suse.cz>
785
786         * Makefile.in: Add function.h to BASIC_BLOCK_H.  Remove all
787         references to gt-tree-cfg.h.
788         * basic-block.h (struct basic_block_def): Don't skip rbi
789         for garbage collection.
790         (struct reorder_block_def): Make GTY-able.
791         (struct control_flow_graph): New structure.
792         (n_edges, n_basic_blocks, last_basic_block, basic_block_info,
793         BASIC_BLOCK, EXIT_BLOCK_PTR, ENTRY_BLOCK_PTR): No longer vars,
794         but instead defines to the control_flow_graph for cfun.
795         (label_to_block_map): New define, points to the label map of
796         the control_flow_graph for cfun.
797         (n_edges_for_function, n_basic_blocks_for_function,
798         last_basic_block_for_function, basic_block_info_for_function,
799         EXIT_BLOCK_PTR_FOR_FUNCTION, ENTRY_BLOCK_PTR_FOR_FUNCTION,
800         basic_block_info_for_function, label_to_block_map_for_function):
801         Counterparts for the above, taking a struct function as an extra
802         argument.
803         (alloc_rbi_pool, free_rbi_pool): Remove prototypes.
804         * cfg.c: (n_edges, n_basic_blocks, last_basic_block,
805         basic_block_info, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Remove.
806         (alloc_rbi_pool, free_rbi_pool): Remove.
807         (initialize_bb_rbi): Use ggc_alloc_cleared instead of pool_alloc.
808         * cfglayout.c: (cfg_layout_initialize): Don't allocate the rbi pool
809         here...
810         (cfg_layout_finalize) ... and don't free it here.
811         * cfgrtl.c (cfg_layout_delete_block): Zero out rbi so it gets
812         garbage collected.
813         * flow.c (free_basic_block_vars): Set label_to_block_map and
814         n_edges to zero too.
815         * function.h (struct function): Add cfg field.
816         * function.c (allocate_struct_function): Allocate the cfg.
817         * tree-cfg.c (label_to_block_map): Remove.
818         (build_tree_cfg): Don't allocate the rbi pool here...
819         (delete_tree_cfg_annotations): ...and don't free it here.
820         Also don't nullify label_to_block_map for cfun.
821
822 2005-04-12  Caroline Tice  <ctice@apple.com>
823
824         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
825         Revert my patch from April 9.
826         (fix_edges_for_rarely_executed_code): Revert my patch from April 9.
827         (reorder_basic_blocks): Revert my patch from April 9.
828         (insert_section_boundary_note): Revert my patch from April 9.
829         * dbxout.c (dbxout_function_end): Revert my patch from April 9.
830         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): Revert my patch from April 9.
831         (COLD_END_LABEL):  Revert my patch from April 9.
832         (cold_text_section_label):  Revert my patch from April 9.
833         (cold_end_label): Revert my patch from April 9.
834         (dwarf2out_switch_text_section): Revert my patch from April 9.
835         (output_aranges): Revert my patch from April 9.
836         (output_ranges):  Revert my patch from April 9.
837         (output_line_info): Revert my patch from April 9.
838         (add_location_or_const_value_attribute):  Revert my patch from April 9.
839         (dwarf2out_var_location): Revert my patch from April 9.
840         (dwarf2out_init):  Revert my patch from April 9.
841         (dwarf2out_finish): Revert my patch from April 9.
842         * function.h (struct function): Revert my patch from April 9.
843         * opts.c (decode_options): Revert my patch from April 9.
844         * output.h (unlikely_section_label, hot_section_label,
845         hot_section_end_label, cold_section_end_label,
846         unlikely_text_section_name): Revert my patch from April 9.
847         * passes.c (rest_of_handle_final): Revert my patch from April 9.
848         * varasm.c (unlikely_section_label, hot_section_label,
849         hot_section_end_label, cold_section_end_label,
850         unlikely_text_section_name): Revert my patch from April 9.
851         (initialize_cold_section_name): Revert my patch from April 9.
852         (unlikely_text_section): Revert my patch from April 9.
853         (in_unlikely_text_section): Revert my patch from April 9.
854         (named_section): Revert my patch from April 9.
855         (function_section): Revert my patch from April 9.
856         (current_function_section): Revert my patch from April 9.
857         (assemble_start_function): Revert my patch from April 9.
858         (assemble_end_function): Revert my patch from April 9.
859         (default_section_type_flags_1): Revert my patch from April 9.
860
861 2005-04-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
862
863         * config/sparc/sparc.h (APPLY_RESULT_SIZE): Set to 24 in 64-bit mode.
864         * config/sparc/sparc.md (untyped_call): Save the registers manually.
865
866         * config/sparc/sparc.c (legitimate_address_p): Use TARGET_ARCH32.
867
868 2005-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
869
870         PR middle-end/20917
871         * config/s390/s390.md ("*set_tp"): Use SET in pattern.
872         ("set_tp_64", "set_tp_31"): Adapt expanded pattern.
873
874 2004-04-12  Richard Henderson  <rth@redhat.com>
875
876         * config/i386/i386.md (UNSPEC_FIX, UNSPEC_MOVA, UNSPEC_SHUFFLE,
877         UNSPEC_PSHUFLW, UNSPEC_PSHUFHW, UNSPEC_ADDSUB, UNSPEC_HADD,
878         UNSPEC_HSUB, UNSPEC_MOVSHDUP, UNSPEC_MOVSLDUP, UNSPEC_MOVDDUP): Remove.
879         (UNSPEC_*, UNSPECV_*): Renumber.
880
881 2005-04-12  Frank Ch. Eigler  <fche@redhat.com>
882
883         PR mudflap/19266
884         From Richard Henderson <rth@redhat.com>:
885         * tree-mudflap.c (mf_build_check_statement_for): Correct block
886         splitting logic.
887
888 2005-04-12  Dorit Naishlos  <dorit@il.ibm.com>
889
890         * tree-cfg.c (tree_verify_flow_info): Use LABEL_EXPR_LABEL.
891
892 2005-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
893
894         * config/bfin/bfin.c (bfin_library_id_string): Remove.
895         (bfin_library_id): New variable.
896         (bfin_expand_prologue): Use bfin_library_id and bfin_lib_id_given
897         instead of bfin_library_id_string.
898         (bfin_handle_option): New function.
899         (override_options): Remove most code to deal with shared library IDs,
900         just check they aren't used without -mid-shared-library.
901         (TARGET_HANDLE_OPTION): Define.
902         * config/bfin/bfin.h (TARGET_OPTIONS): Delete macro.
903         * config/bfin/bfin.opt (mshared-library-id=): New.
904
905 2005-04-12  Kazu Hirata  <kazu@cs.umass.edu>
906
907         * tree-vect-transform.c: Fix comment typos.
908
909 2005-04-12 Mostafa Hagog <mustafa@il.ibm.com>
910
911         * postreload-gcse.c (eliminate_partially_redundant_load): Don't
912         split critical edges when not possible/profitable.
913
914 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
915
916         * config/ns32k/ns32k.h (target_flags, MASK_32081, MASK_RTD)
917         (MASK_REGPARM, MASK_32532, MASK_32332, MASK_NO_SB, MASK_NO_BITFIELD)
918         (MASK_HIMEM, MASK_32381, MASK_MULT_ADD, MASK_SRC, MASK_IEEE_COMPARE)
919         (TARGET_32081, TARGET_32381, TARGET_MULT_ADD, TARGET_RTD)
920         (TARGET_REGPARM, TARGET_32532, TARGET_32332, TARGET_SB, TARGET_HIMEM)
921         (TARGET_BITFIELD, TARGET_IEEE_COMPARE, TARGET_SWITCHES): Delete.
922         (OVERRIDE_OPTIONS): Clear MASK_SB instead of setting MASK_NO_SB.
923         * config/ns32k/netbsd.h (TARGET_DEFAULT): Remove MASK_NO_SB and
924         MASK_NO_BITFIELD.
925         * config/ns32k/ns32k.c (ns32k_handle_option): New function.
926         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
927         * config/ns32k/ns32k.opt: New file.
928
929 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
930
931         * config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options.
932         * config/m68k/m68k.h (target_flags, MASK_68020, TARGET_68020)
933         (MASK_68030, TARGET_68030, MASK_68040, TARGET_68040, MASK_68040_ONLY)
934         (TARGET_68040_ONLY, MASK_68060, TARGET_68060, MASK_5200, TARGET_5200)
935         (MASK_CFV3, TARGET_CFV3, MASK_CFV4, TARGET_CFV4, MASK_528x)
936         (TARGET_528x, MASK_CF_HWDIV, TARGET_CF_HWDIV, MASK_68881, TARGET_68881)
937         (MASK_BITFIELD, TARGET_BITFIELD, MASK_SHORT, TARGET_SHORT)
938         (MASK_ALIGN_INT, TARGET_ALIGN_INT, MASK_PCREL, TARGET_PCREL)
939         (MASK_NO_STRICT_ALIGNMENT, TARGET_STRICT_ALIGNMENT, MASK_RTD)
940         (TARGET_RTD, MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY)
941         (TARGET_ID_SHARED_LIBRARY, MASK_ALL_CF_BITS, TARGET_SWITCHES)
942         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Delete.
943         (MASK_COLDFIRE): Formatting fixes.
944         (TARGET_COLDFIRE): Turn into a boolean value for consistency.
945         * config/m68k/linux.h (SUBTARGET_SWITCHES): Delete.
946         * config/m68k/m68k.c (m68k_library_id_string): Initialize to
947         "_current_shared_library_a5_offset_".
948         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
949         (MASK_ALL_CPU_BITS): New macro.
950         (m68k_handle_option): New function.
951         (override_options): Remove handling of m68k_library_id_string.
952         * config/m68k/m68k.opt: New file.
953         * config/m68k/ieee.opt: New file.
954
955 2005-04-11  Mark Mitchell  <mark@codesourcery.com>
956
957         * target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
958         (TARGET_CXX_DETERMINE_CLASS_VISIBILITY): New macro.
959         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
960         (TARGET_CXX): Adjust accordingly.
961         * target.h (struct gcc_target): Remove epxort_class_data.  Add
962         determine_class_data_visibility and class_data_always_comdat.
963         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
964         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Document.
965         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
966         * config/arm/arm.c (arm_cxx_export_class_data): Remove.
967         (arm_cxx_determine_class_data_visibility): New.
968         (arm_cxx_class_data_always_comdat): Likewise.
969         (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
970         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
971         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
972         * config/arm/arm.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P): Define.
973         * config/arm/symbian.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P):
974         Define.
975
976 2005-04-11  Devang Patel  <dpatel@apple.com>
977
978         * tree-data-ref.c (build_classic_dist_vector,
979         compute_subscript_distance): Make externally visible.
980         * tree-data-ref.h (build_classic_dist_vector,
981         compute_subscript_distance): Same.
982         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
983         Check distance vector against vectorization factor.
984         (vect_analyze_loop): Determine vectorizaion factor before
985         analyzing data dependences.
986         * tree-vectorizer.c (loops_num): Make it externally visible and
987         rename ...
988         * tree-vectorizer.c (vect_loops_num): ... new name.
989         * tree-vectorizer.h  (vect_loops_num): New.
990
991 2005-04-11  Devang Patel  <dpatel@apple.com>
992
993         * tree-vect-analyze.c (vect_analyze_operations): Check
994         vectorizable codition.
995         * tree-vect-transform.c (vect_is_simple_cond): New function.
996         (vectorizable_condition): New function.
997         (vect_transform_stmt): Handle condition_vec_info_type.
998         * tree-vectorizer.h (enum stmt_vec_info_type): Add
999         condition_vec_info_type.
1000         (vectorizable_condition): New.
1001
1002 2005-04-11  Geoffrey Keating  <geoffk@apple.com>
1003
1004         * config/i386/i386.h (TARGET_FPMATH_DEFAULT): New.
1005         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT): New.
1006         * config/i386/i386.c (override_options): Use TARGET_FPMATH_DEFAULT.
1007
1008         * config/i386/darwin.h (ASM_SPEC): Use -arch i386 not -arch i686.
1009         (SUBTARGET_EXTRA_SPECS): Always 'i386'.
1010
1011         * dwarf2out.c (output_line_info): Don't try to dereference
1012         a NULL current_function_decl.
1013
1014         * config/t-slibgcc-darwin: Don't put shared libraries in
1015         directories other than $(slibdir).
1016         * config/rs6000/darwin.h: Find -m64 libgcc under the name the
1017         OS uses for it.
1018
1019 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
1020
1021         PR tree-optimization/20933
1022         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Move
1023         logic to reject aliases between read-only and writable
1024         variables ...
1025         (may_alias_p): ... here.
1026         (get_tmt_for): Do not associate read-only tags to pointers
1027         whose pointed-to type is not read-only.
1028         * tree-ssa.c (verify_ssa): Check that memory stores have at
1029         least one V_MAY_DEF or V_MUST_DEF.
1030
1031 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1032
1033         PR/17092
1034         * configure.ac (gcc_UNLOCKED_FUNCS): New.
1035         (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
1036         * system.h (putchar, getc, getchar, clearerr, feof, fileno,
1037         fflush, fgetc, fgets, ferror, fread): Redefine to the associated
1038         _unlocked function.
1039         (fwrite_unlocked): Fix prototype.
1040
1041         * configure, config.in: Regenerate.
1042
1043 2005-04-11  David Edelsohn  <edelsohn@gnu.org>
1044
1045         * tree-ssa-loop-im.c: Include real.h.
1046         (determine_invariantness_stmt): If real division divisor is
1047         invariant and flag_unsafe_math_optimizations enabled, generate
1048         invariant reciprocal for hoisting.
1049         * Makefile.in (tree-ssa-loop-im.o): Add real.h dependency.
1050
1051 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
1052
1053         Fix PR tree-optimization/20926
1054
1055         * tree-ssa-alias.c (add_type_alias): Handle subvars.
1056
1057 2005-04-11  Devang Patel  <dpatel@apple.com>
1058
1059         * config/rs6000.c (rs6000_emit_vector_select): Fix vector select
1060         operand ordering.
1061
1062 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
1063
1064         * fold-const.c (fold_binary_op_with_conditional_arg):
1065         use fold_buildN instead of "fold (buildN" in some
1066         non obvious places.
1067         (fold_unary): Likewise.
1068         (fold_binary): Likewise.
1069
1070 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
1071
1072         Fix PR tree-optimization/20612
1073         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Fix increment
1074         handling
1075         (perfect_nestify): preheaderbb is *not* part of loop of the
1076         old destination.
1077
1078 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
1079
1080         * tree-ssa-alias.c (may_alias_p): If the variable
1081         is a global variable and the pointer is parameter
1082         and -fargument-noalias-global is used, then
1083         the pointer cannot alias the variable.
1084
1085 2005-04-11  James A. Morrison  <phython@gcc.gnu.org>
1086
1087         * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable.
1088         * config/sparc/sparc.h: Likewise.
1089         * config/sparc/sparc.md: Likewise.
1090
1091 2005-04-11  Kazu Hirata  <kazu@cs.umass.edu>
1092
1093         * tree-vrp.c (maybe_add_assert_expr): Move a comment.
1094
1095         * tree-vrp.c: Fix a comment typo.
1096
1097 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
1098
1099         PR tree-optimization/20920
1100         * tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
1101         SSA_NAME flows through an abnormal edge.
1102         * tree-vrp.c (infer_value_range): Ignore SSA names that flow
1103         through abnormal edges.
1104         (maybe_add_assert_expr): Likewise.
1105
1106 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
1107
1108         * config/s390/s390.h (s390_tune_string, s390_arch_string)
1109         (s390_warn_framesize_string, s390_warn_dynamicstack_string)
1110         (s390_stack_size_string, s390_stack_guard_string, target_flags)
1111         (MASK_HARD_FLOAT, MASK_SMALL_EXEC, MASK_DEBUG_ARG, MASK_64BIT)
1112         (MASK_ZARCH, MASK_MVCLE, MASK_TPF_PROFILING, MASK_NO_FUSED_MADD)
1113         (MASK_BACKCHAIN, MASK_PACKED_STACK, TARGET_HARD_FLOAT)
1114         (TARGET_SOFT_FLOAT, TARGET_SMALL_EXEC, TARGET_DEBUG_ARG)
1115         (TARGET_64BIT, TARGET_ZARCH, TARGET_MVCLE, TARGET_TPF_PROFILING)
1116         (TARGET_NO_FUSED_MADD, TARGET_FUSED_MADD, TARGET_BACKCHAIN)
1117         (TARGET_PACKED_STACK, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
1118         * config/s390/s390.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
1119         (TARGET_HANDLE_OPTION): Likewise.
1120         (s390_tune): Initialize to PROCESSOR_max.
1121         (s390_arch_string): Make static.
1122         (s390_tune_string, s390_warn_framesize_string): Delete.
1123         (s390_warn_dynamicstack_string, s390_stack_size_string): Delete.
1124         (s390_stack_guard_string, s390_warn_dynamicstack_p): Delete.
1125         (s390_handle_arch_option, s390_handle_option): New functions.
1126         (override_options): Remove parsing of option strings.
1127         * config/s390/s390.opt: New file.
1128
1129 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
1130
1131         * tree-complex.c (expand_vector_operations): Call
1132         update_stmt_if_modified.
1133
1134 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
1135
1136         * tree-vect-analyze (vect_determine_vectorization_factor):
1137         Do not use GET_MODE_NUNITS.
1138         * tree-vect-transform.c (vect_get_vec_def_for_operand,
1139         (vectorizable_load, vect_transform_loop): Likewise.
1140
1141 2005-04-11  Uros Bizjak  <uros@kss-loka.si>
1142
1143         * builtins.def (BUILT_IN_LCEIL, BUILT_IN_LCEILF, BUILT_IN_LCEILL)
1144         (BUILT_IN_LLCEIL, BUILT_IN_LLCEILF, BUILT_IN_LLCEILL): New.
1145         * optabs.h (enum optab_index): Add new OTI_lceil.
1146         (lceil_optab): Define corresponding macro.
1147         * optabs.c (init_optabs): Initialize lceil_optab.
1148         * genopinit.c (optabs): Implement lceil_optab using lceilsi2
1149         and lceildi2 patterns.
1150         * builtins.c (expand_builtin_int_roundingfn): Handle
1151         BUILT_IN_LCEIL{,F,L} and BUILT_IN_LLCEIL{,F,L}.
1152         (fold_builtin_int_roundingfn): Handle BUILT_IN_LCEIL{,F,L} and
1153         BUILT_IN_LLCEIL{,F,L}.
1154         (fold_builtin_1): Fold BUILT_IN_LCEIL{,F,L} and
1155         BUILT_IN_LLCEIL{,F,L} using fold_builtin_int_roundingfn.
1156         (mathfn_built_in): Handle BUILT_IN LCEIL and BUILT_IN_LLCEIL.
1157         (expand_builtin): Expand BUILT_IN_LCEIL{,F,L} and
1158         BUILT_IN_LLCEIL{,F,L} using expand_builtin_int_roundingfn.
1159         * convert.c (convert_to_integer): Convert (long int)ceil{,f,l},
1160         into lceil built-in function and (long long int)ceil{,f,l} into
1161         llceil built-in function.
1162         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LCEIL and
1163         BUILT_IN_LLCEIL.
1164
1165 2005-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1166
1167         * pa/quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from
1168         zero.
1169
1170 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
1171
1172         * config/arm/arm.c: Fix a comment typo.
1173         * doc/tree-ssa.texi: Fix a typo.
1174
1175 2005-04-10  Steven Bosscher  <stevenb@suse.de>
1176
1177         * cselib.c (clear_table): Rename to cselib_clear_table.
1178         * cselib.h (cselib_clear_table): Add prototype.
1179         * gcse.c (gcse_main): Make 'f' argument unused.
1180         (alloc_gcse_mem): Do not walk the insn chain, walk the contents
1181         of each basic block instead.
1182         (compute_sets, compute_hash_table_work): Likewise.
1183         (constprop_register): Change int 'alter_jumps' argument to bool.
1184         (do_local_cprop): Likewise.
1185         (local_cprop_pass): Likewise.  Also walk basic blocks instead of
1186         the insn chain.  Explicitly clear the cselib tables after finishing
1187         one basic block.  Make sure there are no unterminated libcall blocks.
1188         Update compute_sets call.
1189         (cprop): Walk basic blocks instead of the insn chain.
1190         (one_cprop_pass, compute_ld_motion_mems, compute_store_table):
1191         Likewise.
1192         (bypass_jumps): Update alloc_gcse_mem, compute_sets, and
1193         one_cprop_pass calls.
1194
1195 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
1196
1197         * combine.c (combine_simplify_rtx): Remove a transformation that
1198         relies on an invalid assumption about rtl sign-extension semantics.
1199
1200 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
1201
1202         * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
1203         to build_int_cst_wide.
1204
1205 2005-04-09  Alexandre Oliva  <aoliva@redhat.com>
1206
1207         PR target/20126
1208         * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
1209         set the original address pseudo to the correct value before the
1210         original insn, if possible, and leave the insn alone, otherwise
1211         create a new pseudo, set it and replace it in the insn.
1212         * recog.c (validate_change_maybe_volatile): New.
1213         * recog.h (validate_change_maybe_volatile): Declare.
1214
1215 2005-04-09  Caroline Tice  <ctice@apple.com>
1216
1217         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
1218         Remove targetm.have_named_sections test.
1219         (fix_edges_for_rarely_executed_code): Likewise.
1220         (insert_section_boundary_note): Likewise.
1221         (reorder_basic_blocks): Check partitioning flag before calling
1222         verify_hot_cold_block_grouping.
1223         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
1224         the function struct rather than global variables.
1225         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
1226         (COLD_END_LABEL): Likewise
1227         (cold_text_section_label): New static global variable.
1228         (cold_end_label): Likewise.
1229         (dwarf2out_switch_text_section): Get hot/cold section labels from
1230         the function struct rather than global variables.
1231         (output_aranges): Use cold_text_section_label and cold_end_label;
1232         check partitioning flag before putting out delta.
1233         (output_ranges): Remove incorrect code attempting to use
1234         hot/cold labels.
1235         (output_line_info): Get cold section label from function struct.
1236         (add_location_or_const_value_attribute): Likewise.
1237         (get_subprogram_die): Get hot/cold section labels from function struct.
1238         (dwarf2out_var_location): Likewise.
1239         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
1240         write out cold_text_section_label if partition flag is set.
1241         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
1242         * function.h (struct function): Add new fields to point to hot/cold
1243         section labels: hot_section_label, cold_section_label,
1244         hot_section_end_label and cold_section_end_label; also add new field
1245         for cold text section name, unlikely_text_section_name.
1246         * opts.c (decode_options): Turn off partitioning flag if
1247         !targetm.have_named_sections.
1248         * output.h (hot_section_label): Remove.
1249         (hot_section_end_label): Remove.
1250         (cold_section_end_label): Remove.
1251         (unlikely_section_label): Remove.
1252         (unlikely_text_section_name): Remove.
1253         * passes.c (rest_of_handle_final):  Remove code that frees
1254         unlikely_text_section_name.
1255         * varasm.c (unlikely_section_label): Remove.
1256         (hot_section_label): Remove.
1257         (hot_section_end_label): Remove.
1258         (cold_section_end_label): Remove.
1259         (unlikely_text_section_name):  Remove.
1260         (initialize_cold_section_name): Modify to call
1261         targetm.strip_name_encoding; to store cold section name in current
1262         function struct, if it exists; and to only use the decl_section_name
1263         if flag_named_sections is true.
1264         (unlikely_text_section): Modify to get section name out of current
1265         function struct, if there is one; otherwise build it from
1266         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
1267         (in_unlikely_text_section): Likewise.
1268         (named_section): Modify to get/put cold section name in current function
1269         struct, if there is one.
1270         (function_section):  Change 'bool unlikely' to 'int reloc'; check
1271         targetm.have_named_sections before calling named_section.
1272         (current_function_section): Likewise.
1273         (assemble_start_function): Modify to get/put unlikely_text_section_name
1274         in current function struct; modify to get hot/cold section labels
1275         from function struct; initialize labels using
1276         ASM_GENERATE_INTERNAL_LABEL;
1277         test partitioning flag before writing out hot section label.
1278         (assemble_end_function): Test partitioning flag before writing out
1279         hot/cold section labels.
1280         (default_section_type_flags_1):  Modify to use array instead of
1281          char* for unlikely_text_section_name; set flags correctly for
1282          cold text section if there is not a current function decl.
1283
1284 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
1285
1286         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
1287         and TI_VA_LIST_FPR_COUNTER_FIELD.
1288         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
1289         * tree-pass.h (pass_stdarg): Add.
1290         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
1291         * tree-stdarg.c: New file.
1292         * tree-stdarg.h: New file.
1293         * Makefile.in (OBJS-common): Add tree-stdarg.o.
1294         (tree-stdarg.o): Add dependencies.
1295         * function.h (struct function): Add va_list_gpr_size and
1296         va_list_fpr_size fields.
1297         * function.c (allocate_struct_function): Initialize them.
1298         * target.h (struct gcc_target): Add stdarg_optimize_hook.
1299         * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
1300         (TARGET_INITIALIZER): Add it.
1301
1302         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
1303         va_list_{g,f}pr_counter_field.
1304         (ix86_setup_incoming_varargs): Don't do anything if reg_save
1305         area will not be used.  Only save registers that tree-stdarg.c
1306         detected they need saving.
1307         (ix86_va_start): Don't set up fields that won't be used.
1308
1309         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
1310         va_list_{g,f}pr_counter_field.
1311         (setup_incoming_varargs): Don't do anything if reg_save
1312         area will not be used.  Only save registers that tree-stdarg.c
1313         detected they need saving.
1314         (rs6000_va_start): Don't set up fields that won't be used.
1315
1316         * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
1317         (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
1318         (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
1319         (TARGET_STDARG_OPTIMIZE_HOOK): Define.
1320
1321 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
1322
1323         PR target/20795
1324         * config/i386/i386.c (construct_container): Pass empty aligned
1325         struct, union or class in memory.
1326
1327 2005-04-09  Kazu Hirata  <kazu@cs.umass.edu>
1328
1329         * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
1330         tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
1331         config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
1332         config/rs6000/predicates.md: Fix comment typos.
1333
1334         * sched-int.h (haifa_insn_data): Remove blockage and units.
1335         (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
1336         ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
1337         MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
1338
1339 2005-04-09  Jan Hubicka  <jh@suse.cz>
1340             Steven Bosscher  <stevenb@suse.de>
1341
1342         * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
1343         * cfgloop.c (get_loop_exit_edges): Likewise.
1344         * cfgloopmanip.c (fix_irreducible_loops): Likewise.
1345         (unloop): Likewise.
1346         * loop-unroll.c (analyze_insns_in_loop): Likewise.
1347         * tree-cfg.c (dump_cfg_status): Likewise.
1348
1349 2005-04-09  David Edelsohn  <edelsohn@gnu.org>
1350
1351         * config/rs6000/predicates.md (altivec_register_operand): Remove
1352         redundant match_code test.
1353         (gpc_reg_operand): Same.
1354         (cc_reg_operand): Same.
1355         (cc_reg_not_cr0_operand): Same.
1356
1357 2005-04-09  Jan Hubicka  <jh@suse.cz>
1358
1359         Forgotten hunk from my last merge patch:
1360         * final.c (output_addr_const): Do not call mark_referenced.
1361
1362 2005-04-09  Andrew MacLeod  <amacleod@redhat.com>
1363
1364         * doc/tree-ssa.texi: Add immediate use documentation.
1365
1366 2005-04-09  Richard Earnshaw <richard.earnshaw@arm.com>
1367
1368         * arm.c (FL_WBUF): Define.
1369         (arm_tune_strongarm): Renamed from arm_is_strong.  All uses changed.
1370         (arm_is_6_or_7): Delete.
1371         (arm_tune_wbuf): New.
1372         (arm_override_options): Set arm_tune_wbuf.
1373         * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
1374         (arm_is_6_or_7): Delete declaration.
1375         (arm_tune_wbuf): New declartion.
1376         * arm.md (is_strongarm): Derive from arm_tune_strongarm.
1377         (model_wbuf): Derive from arm_tune_wbuf.
1378         * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
1379         (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
1380         (arm740t): Mark CPUs as having a write buffer.
1381
1382 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
1383
1384         * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
1385         of 'const_double_operand' in operand 2 constraints.  Update enable
1386         condition.
1387
1388 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
1389
1390         * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
1391         (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
1392         * optabs.h (enum optab_index): Add new OTI_lfloor.
1393         (lfloor_optab): Define corresponding macro.
1394         * optabs.c (init_optabs): Initialize lfloor_optab.
1395         * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
1396         and lfloordi2 patterns.
1397         * builtins.c (expand_builtin_int_roundingfn): New prototype.
1398         (expand_builtin_int_roundingfn): New function.
1399         (fold_builtin_int_roundingfn): New prototype.
1400         (fold_builtin_int_roundingfn): New function, renamed from
1401         fold_builtin_lround.
1402         Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
1403         BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
1404         (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
1405         BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
1406         (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
1407         (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
1408         BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
1409         * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
1410         into lfloor built-in function and (long long int)floor{,f,l} into
1411         llfloor built-in function.
1412         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
1413         BUILT_IN_LLFLOOR.
1414
1415 2005-04-08  Ian Lance Taylor  <ian@airs.com>
1416
1417         * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
1418         CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
1419         * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
1420         (DO_COND, DO_BODY): Likewise.
1421         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
1422         (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
1423         (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
1424         BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
1425         (build_continue_stmt, build_break_stmt): Don't declare.
1426         (c_do_switch_warnings): Update declaration.
1427         * c-gimplify.c (enum bc_t): Remove.
1428         (struct c_gimplify_ctx, ctxp): Remove.
1429         (push_context, pop_context): Remove static functions.
1430         (c_genericize): Don't call push_context or pop_context.
1431         (begin_bc_block, finish_bc_block): Remove static functions.
1432         (build_bc_goto): Likewise.
1433         (gimplify_c_loop): Likewise.
1434         (gimplify_for_stmt, gimplify_while_stmt): Likewise.
1435         (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
1436         (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
1437         DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
1438         * c-common.c (c_do_switch_warnings): Rename from
1439         c_do_switch_warnings_1.
1440         (c_do_switch_warnings) [old version]: Remove.
1441         (c_do_switch_expr_warnings): Remove.
1442         * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
1443         function instead of c_do_switch_expr_warnings.
1444         * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
1445         CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
1446         * c-pretty-print.c (pp_c_statement): Likewise.
1447         * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
1448
1449 2005-04-08  Devang Patel  <dpatel@apple.com>
1450
1451         * tree-if-conv.c (find_phi_replacement_condition): New parameter, loop.
1452         While selecting replacement condition pay attention to loop header.
1453
1454 2005-04-08  Diego Novillo  <dnovillo@redhat.com>
1455
1456         Merge from tree-cleanup-branch: VRP, store CCP, store
1457             copy-prop, incremental SSA updating of FUD chains and
1458             newly exposed symbols.
1459
1460         * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
1461         (OBJS-common): Add tree-vrp.o.
1462         (tree-vrp.o): New rule.
1463         * basic-block.h (nearest_common_dominator_for_set): Declare.
1464         * common.opt (ftree-store-ccp): New flag.
1465         (ftree-copy-prop): New flag.
1466         (ftree-vrp): New flag.
1467         (ftree-store-copy-prop): New flag.
1468         * dominance.c (nearest_common_dominator_for_set): New.
1469         * domwalk.c (walk_dominator_tree): Only traverse
1470         statements in blocks marked in walk_data->interesting_blocks.
1471         * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
1472         * fold-const.c (fold): Handle ASSERT_EXPR.
1473         * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
1474         Set flag_tree_store_ccp, flag_tree_store_copy_prop and
1475         flag_tree_vrp at -O2.
1476         * timevar.def (TV_TREE_VRP): Define.
1477         (TV_TREE_COPY_PROP): Define.
1478         (TV_TREE_STORE_COPY_PROP): Define.
1479         (TV_TREE_SSA_INCREMENTAL): Define.
1480         (TV_TREE_STORE_CCP): Define.
1481         * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
1482         to kill_redundant_phi_nodes from comment.
1483         (verify_expr): Handle ASSERT_EXPR.
1484         * tree-dfa.c (mark_new_vars_to_rename): Remove second
1485         argument.  Update all users.
1486         (mark_call_clobbered_vars_to_rename): Remove.  Update all
1487         users.
1488         * tree-flow-inline.h (unmodifiable_var_p): New.
1489         * tree-flow.h (enum value_range_type): Declare.
1490         (struct value_range_def): Declare.
1491         (value_range): Declare.
1492         (remove_all_phi_nodes_for): Remove.  Update all users.
1493         (find_phi_node_for): Declare.
1494         (add_type_alias): Declare.
1495         (count_uses_and_derefs): Declare.
1496         (kill_redundant_phi_nodes): Remove.
1497         (rewrite_into_ssa): Remove.
1498         (rewrite_def_def_chains): Remove.
1499         (update_ssa, register_new_name_mapping, create_new_def_for,
1500         need_ssa_update_p, name_registered_for_update_p,
1501         release_ssa_name_after_update_ssa, dump_repl_tbl,
1502         debug_repl_tbl, dump_names_replaced_by,
1503         debug_names_replaced_by, mark_sym_for_renaming,
1504         mark_set_for_renaming, get_current_def, set_current_def,
1505         get_value_range, dump_value_range, debug_value_range,
1506         dump_all_value_ranges, debug_all_value_ranges,
1507         expr_computes_nonzero, loop_depth_of_name,
1508         unmodifiable_var_p): Declare.
1509         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
1510         ASSERT_EXPR.
1511         * tree-into-ssa.c (block_defs_stack): Update comment.
1512         (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
1513         syms_to_rename, names_to_release, repl_tbl,
1514         need_to_initialize_update_ssa_p, need_to_update_vops_p,
1515         need_to_replace_names_p): New locals.
1516         (NAME_SETS_GROWTH_FACTOR): Define.
1517         (struct repl_map_d): Declare.
1518         (struct mark_def_sites_global_data): Add field
1519         interesting_blocks.
1520         (enum rewrite_mode): Declare.
1521         (REGISTER_DEFS_IN_THIS_STMT): Define.
1522         (compute_global_livein): Use last_basic_block instead of
1523         n_basic_blocks.
1524         (set_def_block): Remove last argument.  Update all callers.
1525         (prepare_use_operand_for_rename): Remove.  Update all callers.
1526         (prepare_def_operand_for_rename): Remove.  Update all callers.
1527         (symbol_marked_for_renaming): New.
1528         (is_old_name): New.
1529         (is_new_name): New.
1530         (repl_map_hash): New.
1531         (repl_map_eq): New.
1532         (repl_map_free): New.
1533         (names_replaced_by): New.
1534         (add_to_repl_tbl): New.
1535         (add_new_name_mapping): New.
1536         (mark_def_sites): Assume that all the operands in the
1537         statement are in normal form.
1538         (find_idf): Assert that the block in the stack is valid.
1539         (get_default_def_for): New.
1540         (insert_phi_nodes_for): Add new argument 'update_p'.
1541         Add documentation.
1542         If update_p is true, add a new mapping between the LHS of
1543         each new PHI and the name that it replaces.
1544         (insert_phi_nodes_1): Only call find_idf if needed.
1545         (get_reaching_def): Call get_default_def_for.
1546         (rewrite_operand): Remove.
1547         (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
1548         and REWRITE_THIS_STMT are false.
1549         Assume that all the operands in the statement are in
1550         normal form.
1551         (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
1552         (rewrite_virtual_phi_arguments): Remove.
1553         (invalidate_name_tags): Remove.
1554         (register_new_update_single, register_new_update_set,
1555         rewrite_update_init_block, replace_use,
1556         rewrite_update_fini_block, rewrite_update_stmt,
1557         rewrite_update_phi_arguments): New.
1558         rewrite_blocks): Remove argument 'fix_virtual_phis'.
1559         Add arguments 'entry', 'what' and 'blocks'.
1560         Initialize the dominator walker according to 'what' and
1561         'blocks'.
1562         Start the dominator walk at 'entry'.
1563         (mark_def_site_blocks): Add argument 'interesting_blocks'.
1564         Use it to configure the dominator walker.
1565         (rewrite_into_ssa): Remove argument 'all'.
1566         Make internal.
1567         (rewrite_all_into_ssa): Remove.
1568         (rewrite_def_def_chains): Remove.
1569         (mark_def_interesting, mark_use_interesting,
1570         prepare_phi_args_for_update, prepare_block_for_update,
1571         prepare_def_site_for, prepare_def_sites,
1572         dump_names_replaced_by, debug_names_replaced_by,
1573         dump_repl_tbl, debug_repl_tbl, init_update_ssa,
1574         delete_update_ssa, create_new_def_for,
1575         register_new_name_mapping, mark_sym_for_renaming,
1576         mark_set_for_renaming, need_ssa_update_p,
1577         name_registered_for_update_p, ssa_names_to_replace,
1578         release_ssa_name_after_update_ssa,
1579         insert_updated_phi_nodes_for, update_ssa): New.
1580         * tree-loop-linear.c (linear_transform_loops): Call
1581         update_ssa instead of rewrite_into_ssa.
1582         * tree-optimize.c (vars_to_rename): Remove.
1583         Update all users.
1584         (init_tree_optimization_passes): Replace
1585         pass_redundant_phi with pass_copy_prop.
1586         Add pass_vrp.
1587         Replace pass_ccp with pass_store_ccp.
1588         Add pass_store_copy_prop after pass_store_ccp.
1589         (execute_todo): If the TODO_ flags don't include updating
1590         the SSA form, assert that it does not need to be updated.
1591         Call update_ssa instead of rewrite_into_ssa and
1592         rewrite_def_def_chains.
1593         If TODO_verify_loops is set, call verify_loop_closed_ssa.
1594         (tree_rest_of_compilation):
1595         * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
1596         TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
1597         TODO_cleanup_cfg): Renumber.
1598         (TODO_verify_loops, TODO_update_ssa,
1599         TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
1600         TODO_update_ssa_only_virtuals): Define.
1601         (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
1602         Declare.
1603         * tree-phinodes.c (make_phi_node): Update documentation.
1604         (remove_all_phi_nodes_for): Remove.
1605         (find_phi_node_for): New.
1606         * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
1607         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
1608         (interpret_rhs_modify_expr): Likewise.
1609         * tree-sra.c (decide_instantiations): Mark all symbols in
1610         SRA_CANDIDATES for renaming.
1611         (mark_all_v_defs_1): Rename from mark_all_v_defs.
1612         (mark_all_v_defs): New function.  Update all users to call it
1613         with the whole list of scalarized statements, not just the
1614         first one.
1615         * tree-ssa-alias.c (count_ptr_derefs): Make extern.
1616         (compute_flow_insensitive_aliasing): If the tag is
1617         unmodifiable and the variable isn't or vice-versa, don't
1618         make them alias of each other.
1619         (setup_pointers_and_addressables): If the type tag for
1620         VAR is about to change, mark the old one for renaming.
1621         (add_type_alias): New.
1622         * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
1623         (ccp_lattice_t): Rename from latticevalue.
1624         (value): Remove.  Update all users.
1625         (const_val): New local variable.
1626         (do_store_ccp): New local variable.
1627         (dump_lattice_value): Handle UNINITIALIZED.
1628         (debug_lattice_value): New.
1629         (get_default_value): Re-write.
1630         (set_lattice_value): Re-write.
1631         (def_to_varying): Remove.  Update all users.
1632         (likely_value): Return VARYING for statements that make
1633         stores when STORE_CCP is false.
1634         Return VARYING for any statement other than MODIFY_EXPR,
1635         COND_EXPR and SWITCH_EXPR.
1636         (ccp_initialize): Re-write.
1637         (replace_uses_in, replace_vuse_in, substitute_and_fold):
1638         Move to tree-ssa-propagate.c.
1639         (ccp_lattice_meet): Handle memory stores when
1640         DO_STORE_CCP is true.
1641         (ccp_visit_phi_node): Likewise.
1642         (ccp_fold): Likewise.
1643         (evaluate_stmt): Likewise.
1644         (visit_assignment): Likewise.
1645         (ccp_visit_stmt): Likewise.
1646         (execute_ssa_ccp): Add argument 'store_ccp'.  Copy it
1647         into DO_STORE_CCP.
1648         (do_ssa_ccp): New.
1649         (pass_ccp): Use it.
1650         (do_ssa_store_ccp): New.
1651         (gate_store_ccp): New.
1652         (pass_store_ccp): Declare.
1653         * tree-ssa-copy.c: Include tree-ssa-propagate.h.
1654         (may_propagate_copy): Reformat.
1655         Don't abort if ORIG is a virtual and DEST isn't.
1656         If NEW does not have alias information but DEST does,
1657         copy it.
1658         (copy_of, cached_last_copy_of, do_store_copy_prop, enum
1659         copy_prop_kind, which_copy_prop): Declare.
1660         (stmt_may_generate_copy, get_copy_of_val,
1661         get_last_copy_of, set_copy_of_val, dump_copy_of,
1662         copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
1663         copy_prop_visit_stmt, copy_prop_visit_phi_node,
1664         init_copy_prop, fini_copy_prop, execute_copy_prop,
1665         gate_copy_prop, do_copy_prop, gate_store_copy_prop,
1666         store_copy_prop): New.
1667         (pass_copy_prop, pass_store_copy_prop): Declare.
1668         * tree-ssa-dom.c (struct opt_stats_d): Add fields
1669         'num_const_prop' and 'num_copy_prop'.
1670         (cprop_operand): Update them.
1671         (dump_dominator_optimization_stats): Dump them.
1672         (tree_ssa_dominator_optimize): Call update_ssa instead of
1673         rewrite_into_ssa.
1674         (loop_depth_of_name): Declare extern.
1675         (simplify_cond_and_lookup_avail_expr): Guard against NULL
1676         values for LOW or HIGH.
1677         (cprop_into_successor_phis): Only propagate if NEW != ORIG.
1678         (record_equivalences_from_stmt): Call expr_computes_nonzero.
1679         (cprop_operand): Only propagate if VAL != OP.
1680         * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
1681         statement for renaming.
1682         * tree-ssa-loop-im.c (move_computations): Call update_ssa.
1683         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
1684         add_type_alias if necessary.
1685         Call mark_new_vars_to_rename.
1686         (tree_ssa_iv_optimize): If new symbols need to be renamed,
1687         mark every statement updated, call update_ssa and
1688         rewrite_into_loop_closed_ssa.
1689         * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
1690         from LIVEIN if VAR is a virtual.
1691         * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
1692         * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
1693         (get_call_expr_operands): Reformat statement.
1694         (add_stmt_operand): Don't create V_MAY_DEFs for read-only
1695         symbols.
1696         * tree-ssa-propagate.c (ssa_prop_init): Initialize
1697         SSA_NAME_VALUE for every name.
1698         (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
1699         get_value_loaded_by): New.
1700         (replace_uses_in, replace_vuses_in, replace_phi_args_in,
1701         substitute_and_fold): Move from tree-ssa-ccp.c.
1702         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
1703         first_vdef, stmt_makes_single_load, stmt_makes_single_store,
1704         get_value_loaded_by, replace_uses_in, substitute_and_fold):
1705         Declare.
1706         * tree-ssa.c (verify_use): Fix error message.
1707         (propagate_into_addr, replace_immediate_uses, get_eq_name,
1708         check_phi_redundancy, kill_redundant_phi_nodes,
1709         pass_redundant_phi): Remove.  Update all users.
1710         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
1711         add_type_alias, if necessary.
1712         * tree-vectorizer.h (struct _stmt_vect_info): Update
1713         documentation for field 'memtag'.
1714         * tree-vrp.c: New file.
1715         * tree.def (ASSERT_EXPR): Define.
1716         * tree.h (ASSERT_EXPR_VAR): Define.
1717         (ASSERT_EXPR_COND): Define.
1718         (SSA_NAME_VALUE_RANGE): Define.
1719         (struct tree_ssa_name): Add field 'value_range'.
1720         (PHI_REWRITTEN): Remove.
1721         (struct tree_phi_node): Remove field 'rewritten'.
1722         * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
1723         -ftree-store-copy-prop): Document.
1724         * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
1725         Document usage of update_ssa.
1726
1727 2005-04-08  David Edelsohn  <edelsohn@gnu.org>
1728
1729         PR target/20814
1730         * config/rs6000/predicates.md (altivec_register_operand): Accept
1731         SUBREG.
1732         (and64_operand): Do not limit CONST_INT to mask64_operand.
1733         (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
1734         (and_operand): Do not limit CONST_INT to mask_operand.
1735
1736 2005-04-09  Hans-Peter Nilsson  <hp@axis.com>
1737
1738         PR rtl-optimization/20466
1739         * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
1740         for overlap of the address of each list member.
1741         (mark_set_1): Call invalidate_mems_from_set for MEMs too.
1742
1743 2005-04-08  Mike Stump  <mrs@apple.com>
1744
1745         * config/darwin.c (indirect_data): Fix typo in strncmp logic.
1746
1747         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
1748         instead of 4.
1749
1750 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
1751
1752         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
1753
1754         * function.c (push_function_context_to): Don't set
1755         contains_functions.
1756         * function.h (function): Remove contains_functions.
1757         (current_function_contains_functions): Remove.
1758
1759         * function.h (function): Remove instrument_entry_exit.
1760         (current_function_instrument_entry_exit): Remove.
1761
1762         * function.h (nonlocal_labels): Remove.
1763
1764         * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
1765
1766         * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
1767         (check_attr_value, write_attr_get, write_expr_attr_cache,
1768         find_attr, make_internal_attr): Don't reference negative_ok or
1769         unsigned_p.
1770         * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
1771         ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
1772         (ATTR_STATIC): Adjust the value.
1773
1774         * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
1775
1776 2005-04-08  Ulrich Weigand  <uweigand@de.ibm.com>
1777
1778         * config/s390/tpf.h (ASM_SPEC): Define.
1779
1780 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
1781
1782         * tree-flow.h: Remove the prototype for
1783         redirect_immediate_uses.
1784         (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
1785
1786 2005-04-08  Richard Earnshaw  <richard.earnshaw@arm.com>
1787
1788         * arm.c (arm_const_double_by_parts): New function.
1789         * arm-protos.h (arm_const_double_by_parts): Add prototype.
1790         * arm.md (define_split for 64-bit constants): Add another one.
1791
1792 2005-04-08  Andrew MacLeod  <amacleod@redhat.com>
1793
1794         * tree-ssa-operands.c (correct_use_link): Remove linear scan.
1795
1796 2005-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1797
1798         * system.h: Revert last change.
1799
1800 2005-04-08  Richard Sandiford  <rsandifo@redhat.com>
1801
1802         * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
1803         (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
1804         (TARGET_SWITCHES): Delete.
1805         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
1806         * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
1807         TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
1808         * config/xtensa/xtensa.opt: New file.
1809
1810 2005-04-08  Ben Elliston  <bje@au.ibm.com>
1811
1812         * config/fp-bit.c: Include L_mul_tf in #endif comment.
1813         * config/fp-bit.h: Tidy comments.
1814
1815 2005-04-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1816
1817         * system.h: Poison PARAMS.
1818
1819 2005-04-07  Richard Sandiford  <rsandifo@redhat.com>
1820
1821         * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
1822         (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
1823         (TARGET_SWITCHES): Delete.
1824         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
1825         * config/vax/vax.opt: New file.
1826
1827 2005-04-07  Daniel Berlin  <dberlin@dberlin.org>
1828
1829         * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
1830
1831 2005-04-07  Ian Lance Taylor  <ian@airs.com>
1832
1833         * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
1834         define.
1835         * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
1836         * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
1837         Likewise.
1838
1839 2005-04-07  Kazu Hirata  <kazu@cs.umass.edu>
1840
1841         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
1842         all immediate uses in PHI nodes.
1843
1844 2005-04-07  Richard Earnshaw  <richard.earnshaw@arm.com>
1845
1846         * arm.c (arm_const_double_inline_cost): Handle any constant by
1847         using gen_lowpart and gen_highpart_mode.
1848         (note_invalid_constants): All constants in an RTX with a constraint
1849         that permits memory are now pushed to the constant pool.
1850         (output_move_double): Delete code to handle reg to reg and
1851         constant to reg moves.
1852         (const_double_needs_minipool, output_mov_immediate): Delete.
1853         * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
1854         CONST_INT and CONST_VECTOR.
1855         * arm.md (ANY64): New mode macro.
1856         (arm_movdi): Split reg-reg and const-reg moves.  Simplify constraints.
1857         (movdf_soft_insn): Split reg-reg and const-reg moves.
1858         (split patterns for 64-bit constant and register moves): New.
1859         * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
1860         (cirrus_movdf_hard_insn): Likewise.
1861         * fpa.md (movdf_fpa): Likewise.
1862         * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
1863         (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
1864         constraints.
1865         (movv2si_internal_2): Likewise.
1866         * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
1867         (movdf_vfp): Likewise.
1868         * arm-protos.h (output_mov_immediate): Delete prototype.
1869
1870 2005-04-07  Joseph S. Myers  <joseph@codesourcery.com>
1871
1872         PR target/20093
1873         * simplify-rtx.c (simplify_unary_operation_1): Check
1874         SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
1875
1876 2005-04-06  James E Wilson  <wilson@specifixinc.com>
1877
1878         PR target/20717
1879         * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
1880         ADDR_EXPR.
1881
1882 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
1883
1884         * coverage.h (GCOV_TYPE_NODE): Delete.
1885         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
1886         (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
1887         * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
1888         (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
1889         * value-prof.c (tree_divmod_fixed_value_transform): Delete.
1890
1891 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
1892
1893         PR other/20792
1894         * Makefile.in (gcc.pot): Remove options.c dependency.
1895         * optc-gen.awk: Don't quote help strings with N_().
1896
1897 2005-04-06  James A. Morrison  <phython@gcc.gnu.org>
1898
1899         * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
1900         the function returns a pointer type.
1901
1902 2005-04-06  Daniel Berlin  <dberlin@dberlin.org>
1903
1904         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
1905         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
1906         * doc/invoke.texi: Documnet salias-max-implicit-fields.
1907         * tree-ssa-alias.c (struct used_part): Add implicit_uses and
1908         explicit_uses members.
1909         (get_or_create_used_part_for): Initialize new fields.
1910         (fieldoff_compare): New function.
1911         (create_overlap_variables_for): Count number of fields, use
1912         heuristic to determine whether to create subvars for vars with
1913         only implicit uses.
1914         Sort the field list by offset and avoid creating duplicate SFT's.
1915
1916 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
1917
1918         * c.opt (-F): Remove trailing whitespace from help string.
1919         (-finput-charset): Use a tab to separate the switch name and help
1920         string.
1921         * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
1922         (-ftree-vectorizer-verbose): Likewise.
1923
1924 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
1925
1926         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
1927         a PHI argument where a use occurs instead of all PHI arguments.
1928
1929 2005-04-06  Joseph S. Myers  <joseph@codesourcery.com>
1930
1931         * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
1932         scope.
1933
1934 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
1935
1936         * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
1937         tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
1938         config/bfin/bfin.h: Fix comment typos.
1939
1940 2005-04-06  Ranjit Mathew  <rmathew@hotmail.com>
1941
1942         * doc/install.texi: Update the URL for Jacks.
1943         * doc/sourcebuild.texi: Likewise.
1944
1945 2005-04-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1946
1947         PR target/17245
1948         * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
1949         Revert 2004-10-08 patch.  Reject TFmode LO_SUM in 32-bit mode.
1950
1951 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
1952
1953         * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
1954
1955 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
1956
1957         * config/v850/v850-protos.h (override_options): Delete.
1958         * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
1959         (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
1960         (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
1961         (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
1962         (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
1963         (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
1964         (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
1965         (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
1966         (OVERRIDE_OPTIONS): Delete.
1967         (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
1968         (small_memory_info): Remove the value field.
1969         (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
1970         TARGET_NO_APP_REGS.
1971         * config/v850/v850.c (small_memory): Remove the value field.
1972         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1973         (override_options): Delete.
1974         (v850_handle_memory_option, v850_handle_option): New functions.
1975         * config/v850/v850.opt: New file.
1976
1977 2005-04-06  Geoffrey Keating  <geoffk@apple.com>
1978
1979         * config.host: Add a section for generic hosts, and a subsection
1980         for Darwin.  Add a case for x86-darwin.  Update ppc-darwin case.
1981         * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
1982         * config/host-darwin.h: New.
1983         * config/x-darwin: New.
1984         * config/i386/host-i386-darwin.c: New.
1985         * config/i386/x-darwin: New.
1986         * config/rs6000/host-darwin.c: Include host-darwin.h.
1987         (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
1988         (darwin_rs6000_gt_pch_use_address): Likewise.
1989         * config/rs6000/x-darwin: Change name of .o built, update
1990         dependencies for changes to rs6000/host-darwin.c.
1991
1992 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
1993
1994         PR target/17824
1995         * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
1996
1997 2005-04-06  Dorit Naishlos  <dorit@il.ibm.com>
1998
1999         * tree-vect-analyze.c (vect_analyze_loop_form): Call
2000         split_loop_exit_edge instead of loop_split_edge_with.
2001
2002 2005-04-06  Paolo Bonzini  <bonzini@gnu.org>
2003
2004         * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
2005         UNSPEC_SET_VSCR): New constants, used throughout.
2006         (*andc3_v4sf): New.
2007         (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
2008         Replace with...
2009         (altivec_vspltis<VI_char>): ... this pattern, using
2010         a QImode const_int_operand for the immediate.
2011         (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
2012         define_expands.
2013
2014 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
2015
2016         PR target/17822
2017         * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
2018
2019 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
2020
2021         * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
2022
2023 2005-04-06  Ben Elliston  <bje@au.ibm.com>
2024
2025         * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
2026         DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
2027         macros as living in "this file" and not gcc.h.
2028
2029 2005-04-06  Ben Elliston  <bje@au.ibm.com>
2030
2031         * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
2032         -ftree-live_range_split.  Perhaps renamed at some point?
2033
2034 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
2035
2036         PR target/20625
2037         * tree-ssa-loop-ivopts.c (generic_type_for): New function.
2038         (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
2039
2040 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
2041
2042         * tree-flow.h (number_of_iterations_cond): Declaration removed.
2043         * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
2044         (number_of_iterations_special): New function.
2045         (number_of_iterations_exit): Use number_of_iterations_special.
2046         Use simplify_using_outer_evolutions only at -O3.
2047         (number_of_iterations_cond, tree_simplify_using_condition,
2048         simplify_using_initial_conditions, loop_niter_by_eval,
2049         compare_trees, can_count_iv_in_wider_type_bound,
2050         simplify_using_outer_evolutions): Use fold_build.
2051
2052 2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
2053
2054         * doc/install.texi (Configuration): Document --with-java-home.
2055
2056 2005-04-05  Richard Henderson  <rth@redhat.com>
2057
2058         PR target/20342
2059         PR target/20447
2060         * config/i386/i386.c (print_operand): Handle vector zeros.
2061         (ix86_split_to_parts): Handle CONST_VECTOR.
2062         (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
2063         (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
2064         what modes to tie for MMX and SSE registers.
2065         * config/i386/i386.h (MMX_REG_MODE_P): Remove.
2066         * config/i386/i386.md: Extend move 0 -> xor peephole to apply
2067         to vector modes as well.
2068         * config/i386/predicates.md (const0_operand): Handle VOIDmode
2069         properly as an input mode.
2070
2071 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
2072
2073         * tree-ssa-operands.c (verify_abort): Use %p for pointers.
2074
2075 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
2076
2077         * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
2078
2079 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
2080
2081         * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
2082         and local functions, set sse_nregs to 8 and float_in_sse.
2083         (function_arg_advance, function_arg): If float_in_sse, pass
2084         SFmode and DFmode arguments in SSE registers.
2085         * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
2086
2087         * config/i386/i386.c (ix86_value_regno): Only optimize local functions
2088         of -funit-at-a-time.
2089
2090 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
2091
2092         * config/i386/i386-protos.h (ix86_function_value): Accept two
2093         arguments, like the target macro.
2094         * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
2095         * config/i386/i386.c (ix86_function_value): Accept the second
2096         argument of the target macro.
2097         (ix86_function_ok_for_sibcall): Pass a function pointer to
2098         ix86_function_value.
2099         (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
2100         call to ix86_value_regno).
2101         (ix86_value_regno): Add support for returning floating point values
2102         in SSE registers.
2103
2104 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
2105
2106         PR tree-optimization/20076
2107         * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
2108         that call __builtin_return or __builtin_apply_args.
2109
2110 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
2111
2112         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
2113         Use immediate use iterator.
2114         (stmt_is_bumper_for_loop): Use immediate use iterator.
2115         * predict.c (strip_builtin_expect): Use update_stmt.
2116         * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
2117         on all elements of a STATEMENT_LIST.
2118         (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
2119         (bsi_remove): Remove imm_use links and mark the stmt as modified.
2120         (bsi_replace): Mark stmt as modified and the update it.
2121         * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
2122         (expand_complex_libcal): Call update_stmt.
2123         (expand_complex_comparison): Call mark_stmt_modified.
2124         (expand_complex_operations_1): Call update_stmt_if_modified.
2125         (expand_vector_operations_1): Call mark_stmt_modified.
2126         * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
2127         compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
2128         add_immediate_use, redirect_immediate_use,
2129         redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
2130         dump_immediate_uses_for, debug_immediate_uses_for): Delete.
2131         (mark_new_vars_to_rename): Call update_stmt.
2132         * tree-dump.c (dump_option_value_in): Add "stmtaddr".
2133         * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.
2134         Ignore PHI nodes.
2135         (unmodify_stmt): Delete.
2136         (update_stmt): New.  Force an update of a stmt.
2137         (update_stmt_if_modified): update a stmt if it is out of date.
2138         (get_stmt_operands): Verify stmt is NOT modified.
2139         (stmt_modified_p): Update comment.
2140         (delink_imm_use): Remove a use node from its immuse list.
2141         (link_imm_use_to_list): Link a use node to a specific list.
2142         (link_imm_use): Link a node to the correct list.
2143         (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
2144         it in the correct list, if appropriate.
2145         (link_imm_use_stmt): Link a use node, and set the stmt pointer.
2146         (relink_imm_use): Link a use node in place of another node in a list.
2147         (relink_imm_use_stmt): LInk a node in place of another node, and set
2148         the stmt pointer.
2149         (end_safe_imm_use_traverse): New.  Terminate a safe immuse iterator.
2150         (end_safe_imm_use_p): New.  Check for the end of a safe immuse iterator.
2151         (first_safe_imm_use): New.  Initialize a safe immuse iterator.
2152         (next_safe_imm_use): New.  Proceed to next safe immuse iterator value.
2153         (end_readonly_imm_use_p): New.  Check for end of a fast immuse iterator.
2154         (first_readonly_imm_use): New.  Initialize a fast immuse iterator.
2155         (next_readonly_imm_use): New.  Get the next fast immuse iterator value.
2156         (has_zero_uses): New.  Return true if there are no uses of a var.
2157         (has_single_use): New.  Return true if there is only a single use of a
2158         variable.
2159         (single_imm_use): New.  Return the simgle immediate use.
2160         (num_imm_uses): New.  Return the number of immediate uses.
2161         (get_v_must_def_ops): Use is now a pointer.
2162         (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
2163         get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of
2164         the use node.
2165         (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
2166         (delink_stmt_imm_use): Delink all immuses from a stmt.
2167         (phi_arg_index_from_use): New.  Return a phi arg index for a use.
2168         * tree-flow.h (struct dataflow_d): Delete.
2169         (immediate_use_iterator_d): New.  Immediate use iterator struct.
2170         (FOR_EACH_IMM_USE_FAST): New.  Macro for read only immuse iteration.
2171         (FOR_EACH_IMM_USE_SAFE): New.  Macro for write-safe immuse iteration.
2172         (BREAK_FROM_SAFE_IMM_USE): New.  Macro for earlyu exit from write-safe
2173         iteration.
2174         (struct stmt_ann_d): Remove dataflow_t from struct.
2175         * tree-if-conv.c (tree_if_conversion).  Don't call free_df.
2176         (if_convertible_phi_p): Use FAST immuse iterator.
2177         (if_convertible_loop_p): Don't call compute_immediate_uses.
2178         (replace_phi_with_cond_modify_expr): Call update_stmt.
2179         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call
2180         update_stmt_if_modified.
2181         (rewrite_all_into_ssa): Initialize ssa operands.
2182         * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
2183         compute_immediate_uses.
2184         * tree-optimize.c (execute_todo): Call verify_ssa whenever the
2185         ssa_property is available.
2186         (execute_one_pass):  Change parameters passed to execute_todo.
2187         * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
2188         (remove_ssa_form): Call fini_ssa_operands.
2189         (insert_backedge_copies): Delete call to modify_stmt.
2190         * tree-phinodes.c (make_phi_node): Initialize use nodes.
2191         (release_phi_node): Delink any use nodes before releasing.
2192         (resize_phi_node): Relink any use nodes.
2193         (remove_phi_arg_num): Delink the use node.
2194         (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
2195         (remove_all_phi_nodes_for): Release phi node first.
2196         * tree-pretty-print.c (dump_generic_node): Print stmt address.
2197         * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
2198         (scalarize_use, scalarize_copy): Call update_stmt.
2199         * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
2200         (compute_points_to_and_addr_escape): Call mark_stmt_modified.
2201         * tree-ssa-cpp.c (need_imm_uses_for): Delete.
2202         (ccp_initialize): Remove call to compute_immediate_uses.
2203         (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
2204         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified
2205         stmts.
2206         (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
2207         (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
2208         (eliminate_redundant_computations): Call mark_stmt_modified.
2209         (cprop_operand): Call mark_stmt_modified.
2210         (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
2211         * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
2212         (dse_optimize_stmt): Use new immuse interface.
2213         (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
2214         * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
2215         (substitute_single_use_vars): Use new immuse interface.
2216         (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
2217         and compute_immediate_uses.
2218         * tree-ssa-loop-im.c (single_reachable_address): Use new immuse
2219         interface.
2220         (rewrite_mem_refs): Call update_stmt.
2221         (determine_lsm): Remove call to compute_imm_uses and free_df.
2222         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
2223         (try_unroll_loop_completely): Call update_stmt.
2224         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
2225         (rewrite_use_compare): Call update_stmt.
2226         (compute_phi_arg_on_exit): Insert each stmt before trying to process.
2227         (rewrite_use) : Call update_stmt.
2228         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
2229         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call
2230         update_stmt.
2231         * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
2232         (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
2233         (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
2234         use nodes.
2235         (initialize_vuse_operand): New.  Initialize a vuse operand.
2236         (initialize_v_may_def_operand): New.  Initialize a maydef operand.
2237         (initialize_v_must_def_operand): New.  Initialize a mustdef operand.
2238         (finalize_ssa_defs): Use stmt parameter.
2239         (correct_use_link): Ensure a use node is in the correct list, and has
2240         the correct stmt pointer.
2241         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
2242         finalize_ssa_v_must_defs): Also initialize use nodes.
2243         (finalize_ssa_stmt_operands): Pass extra stmt operands.
2244         (build_ssa_operands): Seperate parsing from final operand construction.
2245         (parse_ssa_operands): New.  Parse entry point for operand building.
2246         (swap_tree_operands): New.  Swap 2 tree operands.
2247         (update_stmt_operands): Ranamed from get_stmt_operands.  Always builds
2248         operands.
2249         (get_expr_operands): Call swap_tree_operands when needed.
2250         (copy_virtual_operands): Use initialize routines for virtual use ops.
2251         (create_ssa_artficial_load_stmt): Add extra stmt parameter.
2252         (verify_abort): New.  Issue imm_use error.
2253         (verify_imm_links): New Verify imm_use links for a var.
2254         (dump_immediate_uses_for): New.  Dump imm_uses for a var to file.
2255         (dump_immediate_uses): New.  Dump imm_uses for all vars to file.
2256         (debug_immediate_uses): New.  Dump imm_uses for all vars to stderr.
2257         (debug_immediate_uses_for): New.  Dump imm_uses for a var to stderr.
2258         * tree-ssa-operands.h (struct use_operand_ptr): Delete.
2259         (NULL_USE_OPERAND_P) Define.
2260         (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
2261         use node.
2262         (struct vuse_operand_type): New struct.
2263         (SET_USE): Call set_ssa_use_from_ptr.
2264         (USE_STMT): Define.
2265         (PHI_ARG_INDEX_FROM_USE): Define.
2266         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi
2267         argument via SET_USE, not PHI_ARG_DEF_TREE.
2268         * tree-ssa-pre.c (eliminate): Call update_stmt.
2269         * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators.  Don't
2270         call free_df.
2271         * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
2272         (nearest_common_dominator_of_uses): Use imm_use iterator.
2273         (statement_sink_location): Use imm_use iterator and interface.
2274         (execute_sink_code): Don't call compute_immediate_uses or free-df.
2275         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
2276         PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
2277         * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
2278         (verify_ssa): Ensure no stmt is marked modify after optimization pass
2279         if new parameter is true.
2280         (init_tree_ssa): Don't initialize operand cache here.
2281         (delete_tree_ssa): Don't destroy operand cache here.
2282         (propagate_into_addr): Pass in a use pointer, return true if anything
2283         was changed.
2284         (replace_immediate_uses): Use imm_use iterator, call update_stmt.
2285         (check_phi_redundancy): Use imm_use iterator.
2286         (kill_redundant_phi_nodes): Don't call compute_immediate_uses or
2287         free_df.
2288         * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
2289         (release_ssa_name): Delink node and all elements in its imm_use list.
2290         * tree-tailcall.c (adjust_return_value): Call update_stmt.
2291         * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
2292         * tree-vectorizer.c (need_imm_uses_for): Delete.
2293         (vectorize_loops): Dont call compute_immediate_uses or free_df.
2294         * tree.h (struct ssa_imm_use_d): Define.
2295         (SSA_NAME_IMM_USE_NODE): Define.
2296         (struct tree_ssa_name): Add imm_use node.
2297         (PHI_DF): Delete.
2298         (PHI_ARG_IMM_USE_NODE): Define.
2299         (struct phi_arg_d): Add imm_use node.
2300         (struct tree_phi_node): Remove struct dataflow_d element.
2301         (TDF_STMTADDR): Define.
2302
2303 2005-04-05  Dale Johannesen  <dalej@apple.com>
2304
2305         * doc/invoke.texi (Optimization Options):  Remove
2306         duplicate -fcse-follow-jumps.  Add -fweb.
2307         (-ftree-lim):  Fix spelling (-ftree-loop-im, invariants).
2308         (-fivcanon):  Fix spelling (-ftree-loop-ivcanon).
2309
2310 2005-04-05  Per Bothner  <per@bothner.com>
2311
2312         * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
2313         to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
2314         (warn_uninit): Get EXPR_LOCUS from context now instead.
2315         This fixes a USE_MAPPED_LOCATION testsuite failure.
2316
2317         * tree-ssa.c (warn_uninitialized_var): Remove useless local.
2318
2319 2005-04-05  Per Bothner  <per@bothner.com>
2320
2321         * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
2322         of the artification 'return 0' in main() to BUILTINS_LOCATION.
2323         * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
2324         before warning.
2325
2326 2004-04-05  Devang Patel  <dpatel@apple.com>
2327
2328         * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
2329         (lhsr<mode>3): ... new name.
2330         (altivec_vsra<VI_char>): Rename to ..
2331         (ashr<mode>3): ... new name.
2332         * config/rs6000/rs6000.c (builtin_description): Rename shift
2333         operations.
2334
2335 2004-04-05  Paolo Bonzini  <bonzini@gnu.org>
2336
2337         * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
2338         gen_lowpart_for_combine.
2339         * cse.c (gen_lowpart_if_possible): Move...
2340         * rtlhooks.c (gen_lowpart_if_possible): ... here.  Also try
2341         gen_lowpart_SUBREG.
2342         (gen_lowpart_no_emit_general): Use it.
2343
2344 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
2345
2346         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
2347         overriding.
2348
2349 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
2350
2351         * system.h: Fix typo.
2352
2353 2005-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
2354
2355         * config/bfin/bfin-modes.def: New file.
2356         * config/bfin/bfin-protos.h: New file.
2357         * config/bfin/bfin.c: New file.
2358         * config/bfin/bfin.h: New file.
2359         * config/bfin/bfin.md: New file.
2360         * config/bfin/bfin.opt: New file.
2361         * config/bfin/crti.s: New file.
2362         * config/bfin/crtn.s: New file.
2363         * config/bfin/elf.h: New file.
2364         * config/bfin/lib1funcs.asm: New file.
2365         * config/bfin/predicates.md: New file.
2366         * config/bfin/t-bfin: New file.
2367         * config/bfin/t-bfin-elf: New file.
2368         * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
2369         Document new attributes.
2370         (interrupt, interrupt_handler, saveall): Update documentation for
2371         these attributes.
2372         * doc/install.texi (Specific): Add entry for the Blackfin.
2373         * doc/invoke.texi (Blackfin Options): New section.
2374         * doc/md.texi (Blackfin family): New section to document constraints.
2375         * config.gcc: Add bfin*-* and bfin*-elf configurations.
2376
2377 2005-04-05  Olivier Hainque  <hainque@adacore.com>
2378
2379         * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
2380         match what the system unwinder expects.
2381         * config/mips/mips.c (mips_frame_set): If we're saving the return
2382         address register and the dwarf return address column number differs
2383         from the hard register number, adjust the note reg to refer to the
2384         former.
2385
2386 2004-04-05  Richard Sandiford  <rsandifo@redhat.com>
2387
2388         * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
2389         * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
2390         (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
2391         (processor_type): New enum.
2392         (mn10300_processor): New variable.
2393         (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
2394         (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
2395         * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
2396         (PROCESSOR_DEFAULT): New macro.
2397         * config/mn10300/mn10300.c (mn10300_processor): New variable.
2398         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2399         (mn10300_handle_option, mn10300_override_options): New functions.
2400         * config/mn10300/mn10300.opt: New file.
2401
2402 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
2403             Sebastian Pop <sebastian.pop@cri.ensmp.fr>
2404
2405         PR tree-optimization/19903
2406         * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
2407         that don't fit in their type after conversion.
2408
2409 2005-04-05  Uros Bizjak <uros@kss-loka.si>
2410
2411         PR target/20421
2412         * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
2413         (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
2414         Allocate local stack slots here.  Set ix86_optimize_mode_switching.
2415         flag here. Implement using define_insn_and_split.
2416         (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
2417         (frndintxf2_mask_pm_i387): New insn patterns.
2418         (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
2419         Do not set ix86_optimize_mode_switching flag.
2420         (ceilsf2, ceildf2, ceilxf2): Same.
2421         (btruncsf2, btruncdf2, btruncxf2): Same.
2422         (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
2423
2424 2005-04-05  Ian Lance Taylor  <ian@airs.com>
2425
2426         PR debug/9963
2427         * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
2428         i386_pe_record_external_function.
2429         (i386_pe_record_external_function): Update declaration.
2430         * config/i386/winnt.c (struct extern_list): Add decl field.
2431         (i386_pe_record_external_function): Add decl parameter.
2432         (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
2433         identifier.
2434         * config/i386/i386-protos.h (i386_pe_record_external_function):
2435         Update declaration.
2436
2437 2005-04-05  Kazu Hirata  <kazu@cs.umass.edu>
2438
2439         * config/m68k/m68k-protos.h: Add a prototype for
2440         valid_dbcc_comparison_p_2.
2441         * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
2442         extend_operator, const_uint32_operand, const_sint32_operand,
2443         general_src_operand, nonimmediate_src_operand,
2444         memory_src_operand, post_inc_operand, pre_dec_operand,
2445         pcrel_address): Move to predicates to predicates.md.
2446         * config/m68k/m68k.h (PREDICATE_CODES): Remove.
2447         * config/m68k/m68k.md: Include predicates.md.
2448         * config/m68k/predicates.md: New.
2449
2450 2005-04-04  Roger Sayle  <roger@eyesopen.com>
2451
2452         * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
2453
2454         * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
2455
2456 2005-04-04  Ian Lance Taylor  <ian@airs.com>
2457
2458         * c-typeck.c (struct c_switch): Rename switch_stmt field to
2459         switch_expr.
2460         (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
2461         (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
2462         (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
2463         Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
2464         * c-common.c (c_do_switch_warnings_1): New static function broken
2465         out of c_do_switch_warnings.
2466         (c_do_switch_warnings): Call c_do_switch_warnings_1.
2467         (c_do_switch_expr_warnings): New function.
2468         * c-common.h (c_do_switch_expr_warnings): Declare.
2469
2470 2005-04-04  David Edelsohn  <edelsohn@gnu.org>
2471             Daniel Jacobowitz  <dan@codesourcery.com>
2472
2473         * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
2474         trapping divide.
2475         * rtlanal.c (may_trap_p): Same.
2476
2477 2005-04-04  Dale Johannesen  <dalej@apple.com>
2478
2479         * ChangeLog:  remove reference to ChangeLog.12.
2480
2481 2005-04-05  Hans-Peter Nilsson  <hp@axis.com>
2482
2483         CRIS epilogue as RTL.
2484         * config/cris/cris.md: Change all 0 in unspec 0 to
2485         CRIS_UNSPEC_PLT.
2486         (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
2487         ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
2488         patterns.
2489         ("return"): Change to define_expand.  Call cris_expand_return for
2490         actual expansion.
2491         ("*return_expanded"): New pattern.
2492         ("epilogue"): New define_expand.
2493         * config/cris/cris.h (PREDICATE_CODES): Add
2494         cris_load_multiple_op.
2495         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
2496         type.
2497         (enum cris_retinsn_type): New.
2498         (struct machine_function): New member return_type.
2499         (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
2500         (cris_target_asm_function_epilogue): Remove, moving RTLified
2501         contents to...
2502         (cris_expand_epilogue): New function.
2503         (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
2504         (cris_gen_movem_load, cris_load_multiple_op)
2505         (cris_return_address_on_stack_for_return, cris_expand_return): New
2506         functions.
2507         (cris_target_asm_function_prologue)
2508         (cris_initial_frame_pointer_offset): Call
2509         cris_reg_saved_in_regsave_area instead of complicated expression.
2510         Call cris_return_address_on_stack instead of an expression.
2511         (cris_print_operand) <case 'o', case 'O'>: New cases.
2512         (cris_return_address_on_stack): Change return-type to bool.
2513         (cris_simple_epilogue): Ditto.  Return false if registers are
2514         saved.
2515         * config/cris/cris-protos.h (cris_simple_epilogue)
2516         (cris_return_address_on_stack): Adjust prototype return type.
2517         (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
2518         (cris_return_address_on_stack_for_return): New prototypes.
2519
2520 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
2521
2522         * config/frv/frv.h (PREDICATE_CODES): Add CONST to
2523         gpr_or_int12_operand.
2524
2525         * config/frv/frv-protos.h: Add a prototype to
2526         frv_legitimate_memory_operand and frv_const_unspec_p.
2527         (frv_unspec): Move from frv.c.
2528         * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
2529         (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
2530         (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
2531         gpr_or_fpr_operand, gpr_or_int12_operand,
2532         gpr_fpr_or_int12_operand, fpr_or_int6_operand,
2533         gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
2534         int6_operand, int5_operand, uint5_operand, uint4_operand,
2535         uint1_operand, int_2word_operand, uint16_operand,
2536         upper_int16_operand, integer_register_operand,
2537         gpr_no_subreg_operand, fpr_operand, even_reg_operand,
2538         odd_reg_operand, even_gpr_operand, odd_gpr_operand,
2539         quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
2540         dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
2541         move_destination_operand, movcc_fp_destination_operand,
2542         frv_function_symbol_referenced_p, move_source_operand,
2543         condexec_dest_operand, condexec_source_operand,
2544         reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
2545         const_unspec_operand, gpr_or_memory_operand,
2546         gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
2547         icc_operand, fcc_operand, cc_operand, icr_operand,
2548         fcr_operand, cr_operand, call_operand, sibcall_operand,
2549         symbolic_operand, relational_operator,
2550         integer_relational_operator, float_relational_operator,
2551         ccr_eqne_operator, minmax_operator,
2552         condexec_si_binary_operator, condexec_si_media_operator,
2553         condexec_si_divide_operator, condexec_si_unary_operator,
2554         condexec_sf_conv_operator, condexec_sf_add_operator,
2555         condexec_memory_operand, intop_compare_operator, acc_operand,
2556         even_acc_operand, quad_acc_operand, accg_operand: Move to
2557         predicates.md.
2558         * config/frv/frv.h (PREDICATE_CODES): Remove.
2559         * config/frv/frv.md: Include predicates.md.
2560         * config/frv/predicates.md: New.
2561
2562 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
2563
2564         PR target/19537
2565         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
2566         * tree-ssa-loop-ivopts.c: Include langhooks.h.
2567         (add_standard_iv_candidates_for_size): New function, extracting code
2568         from add_standard_iv_candidates and parameterizing it by type size.
2569         (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
2570
2571 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
2572
2573         * system.h (GCOV_SIZE_TYPE): Unposion.
2574         * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
2575         (GCOV_TYPE_SIZE): ...this new macro.
2576         * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
2577         * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
2578         (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
2579         (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
2580         (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
2581         instead of unsigned_intSI_type_node.
2582         * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
2583         (rtl_gen_one_value_profiler_no_edge_manipulation)
2584         (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
2585         * value-prof.c: Include coverage.h.
2586
2587 2005-04-02  Daniel Berlin  <dberlin@dberlin.org>
2588             Diego Novillo <dnovillo@redhat.com>
2589
2590         Fix PR tree-optimization/20703
2591         Fix PR tree-optimization/20725
2592
2593         * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
2594         (create_expression_by_pieces): Ditto.
2595         (valid_in_set): Ditto. Also handle tcc_declaration.
2596         (find_or_generate_expression): Handle comparison class.
2597         (insert_into_preds_of_block): Ditto.
2598         (insert_aux): Ditto.
2599         (create_value_expr_from): Handle comparison class, recursively
2600         handle reference nodes.
2601         (compute_avail): Handle comparison classes, rewrite a little cleaner.
2602         (execute_pre): Fix spacing.
2603         (do_fre): Renamed to execute_fre.
2604
2605 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2606
2607         * doc/invoke.texi (SPARC options): Document that
2608         -mlittle-endian is not supported on Linux either.
2609
2610 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2611
2612         PR target/4198
2613         PR target/12027
2614         * config.gcc (Obsolete configurations): Remove
2615         sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
2616         (sparclite-*-coff*): Delete.
2617         (sparclite-*-elf*): Likewise.
2618         (sparc86x-*-elf*): Likewise.
2619         (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
2620         * config/sparc/lite.h: Delete.
2621         * config/sparc/litecoff.h: Likewise.
2622         * config/sparc/liteelf.h: Likewise.
2623         * config/sparc/sp86x-elf.h: Likewise.
2624         * config/sparc/t-sparclite: Likewise.
2625         * config/sparc/t-sp86x: Likewise.
2626
2627 2005-04-04  Adrian Straetling  <straetling@de.ibm.com>
2628
2629         * config/s390/s390-protos.h: (s390_comparison,
2630         s390_alc_comparison, s390_slb_comparison, const0_operand,
2631         consttable_operand, larl_operand, s_operand,
2632         shift_count_operand, bras_sym_operand, load_multiple_operation,
2633         store_multiple_operation, s390_plus_operand): Remove prototypes.
2634         (s390_legitimate_address_without_index_p): New prototype.
2635         * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
2636         to s390.h.
2637         (s390_comparison, s390_alc_comparison, s390_slb_comparison,
2638         const0_operand, consttable_operand, larl_operand, s_operand,
2639         shift_count_operand, bras_sym_operand, load_multiple_operation,
2640         store_multiple_operation, s390_plus_operand): Move to
2641         predicates.md.
2642         (check_mode): Remove.
2643         (s390_branch_condition_mask): Remove 'static'. Move prototype to
2644         s390-protos.h.
2645         (s390_legitimate_address_without_index_p): New.
2646         * config/s390/s390.h (PREDICATE_CODES): Remove.
2647         * config/s390/s390.md: Include predicates.md.
2648         * config/s390/predicates.md: New.
2649
2650 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2651
2652         PR target/20446
2653         * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
2654         * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
2655         (NEED_INDICATE_EXEC_STACK): Define to 1.
2656         * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
2657         (NEED_INDICATE_EXEC_STACK): Define to 1.
2658         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
2659         (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
2660         (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
2661         (pic_helper_emitted_p): New global.
2662         (emit_pic_helper): New function extracted from...
2663         (load_pic_register): ...here.  Add 'delay_pic_helper' parameter.
2664         Do not call emit_pic_helper if delay_pic_helper is true.
2665         (sparc_expand_prologue): Pass 'false' to load_pic_register.
2666         (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
2667         (sparc_file_end): New function.
2668
2669 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
2670
2671         * config/mcore/mcore-protos.h: Remove the prototypes for
2672         mcore_arith_reg_operand, mcore_general_movsrc_operand,
2673         mcore_general_movdst_operand, mcore_reload_operand,
2674         mcore_arith_J_operand, mcore_arith_K_operand,
2675         mcore_arith_K_operand_not_0, mcore_arith_M_operand,
2676         mcore_arith_K_S_operand, mcore_arith_imm_operand,
2677         mcore_arith_any_imm_operand, mcore_arith_O_operand,
2678         mcore_literal_K_operand, mcore_addsub_operand,
2679         mcore_compare_operand, mcore_load_multiple_operation,
2680         mcore_store_multiple_operation, mcore_call_address_operand.
2681         Add a prototype for const_ok_for_mcore.
2682         * config/mcore/mcore.c (mcore_call_address_operand,
2683         mcore_general_movsrc_operand, mcore_general_movdst_operand,
2684         mcore_arith_reg_operand, mcore_reload_operand,
2685         mcore_arith_J_operand, mcore_arith_K_operand,
2686         mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
2687         mcore_arith_M_operand, mcore_arith_imm_operand,
2688         mcore_arith_any_imm_operand, mcore_arith_O_operand,
2689         mcore_literal_K_operand, mcore_addsub_operand,
2690         mcore_compare_operand, mcore_load_multiple_operation,
2691         mcore_store_multiple_operation): Move to predicates.md.
2692         (const_ok_for_mcore): Export.
2693         * config/mcore/mcore.h (PREDICATE_CODES): Remove.
2694         * config/mcore/mcore.md: Include predicates.md.
2695         * config/mcore/predicates.md: New.
2696
2697         * config/mcore/predicates.md: Fix a comment typo.
2698
2699 2005-04-04  Andreas Krebbel  <krebbel1@de.ibm.com>
2700             Adrian Straetling  <straetling@de.ibm.com>
2701
2702         * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
2703         * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
2704         * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
2705         attribute.
2706         ("imul"): Removed from "type" attribute.
2707         ("*muldi3_sign", "muldi3"): Changed type to imuldi.
2708         ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"):
2709         Changed type to imulsi.
2710         ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
2711
2712 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
2713
2714         * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
2715         (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
2716         (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
2717         (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
2718         (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
2719         (TARGET_SWITCHES, mcore_stack_increment_string)
2720         (TARGET_OPTIONS): Delete.
2721         (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
2722         than *_BIT constants.
2723         (TARGET_8ALIGN): #undef old definition before redefining to 1.
2724         * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
2725         (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
2726         (mcore_override_options): Delete mcore_stack_increment code.
2727         Change use of M340_BIT to MASK_M340.
2728         * config/mcore/mcore.opt: New file.
2729
2730 2005-04-04  Ian Lance Taylor  <ian@airs.com>
2731
2732         * config/arm/arm.c (replace_symbols_in_block): Remove static
2733         function.
2734
2735 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
2736
2737         * config/fr30/fr30-protos.h: Remove the prototypes for
2738         stack_add_operand, add_immediate_operand,
2739         high_register_operand, low_register_operand, call_operand,
2740         di_operand, and nonimmediate_di_operand.
2741         * config/fr30/fr30.c (stack_add_operand,
2742         add_immediate_operand, high_register_operand,
2743         low_register_operand, call_operand, di_operand,
2744         nonimmediate_di_operand): Move to predicates.md.
2745         * config/fr30/fr30.h (PREDICATE_CODES): Remove.
2746         * config/fr30/fr30.md: Include predicates.md.
2747         * config/fr30/predicates.md: New.
2748
2749         * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
2750         LABEL_REF to mcore_general_movsrc_operand.  Add SYMBOL_REF to
2751         mcore_call_address_operand.
2752
2753         * config/sh/sh.h (PREDICATE_CODES): Add CONST to
2754         general_movsrc_operand.
2755
2756 2005-04-04  Alan Modra  <amodra@bigpond.net.au>
2757
2758         * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
2759         after freeing.
2760
2761 2005-04-04  Richard Earnshaw  <richard.earnshaw@arm.com>
2762
2763         PR target/14812
2764         * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
2765         a negated value.
2766
2767 2005-04-04  Richard Henderson  <rth@redhat.com>
2768             Jakub Jelinek  <jakub@redhat.com>
2769
2770         PR rtl-optimization/16104
2771         * fold-const.c (fold_unary): Fix folding of vector conversions.
2772
2773 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
2774
2775         * config.gcc (xstormy16-*-elf): Set extra_options.
2776         * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
2777         * config/stormy16/stormy16.opt: New file.
2778
2779 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
2780
2781         * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
2782         (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
2783         (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
2784         (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
2785         (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
2786         (TARGET_UNIX_ASM): Delete.
2787         (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
2788         * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
2789         * config/pdp11/pdp11.c (pdp11_handle_option): New function.
2790         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2791         * config/pdp11/pdp11.opt: New file.
2792
2793 2005-04-03  Roger Sayle  <roger@eyesopen.com>
2794             Alexandre Oliva  <aoliva@redhat.com>
2795
2796         PR c++/19199
2797         * fold-const.c (non_lvalue): Split tests into...
2798         (maybe_lvalue_p): New function.
2799         (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
2800         C++ front-end prior to lowering into gimple form.
2801
2802 2005-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2803
2804         * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
2805         BUILT_IN_STRNCASECMP): New.
2806         * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
2807         and strndup.
2808
2809 2005-04-03  Richard Earnshaw  <richard.earnshaw@arm.com>
2810
2811         PR target/14812
2812         * arm.md (addsi3_compare0_for_combiner): Delete.
2813         (addsi3_compare0_scratch_for_combiner): Delete.
2814         (cmpsi_neg_shiftsi): Delete.
2815         (compare_negsi_si): New pattern.
2816         (cmpsi_negshiftsi_si): New pattern.
2817         (negated_cbranchsi4): Restrict to equality_operator.
2818
2819         * arm.md (movhi_insn_arch4): delete trailing white space from assembler
2820         template.
2821
2822 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
2823
2824         * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
2825         Fix comment typos.
2826
2827         * doc/install.texi: Fix a typo.
2828
2829 2005-04-03  Steven Bosscher  <stevenb@suse.de>
2830
2831         PR middle-end/20648
2832         * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
2833         a computed goto if the edge to the computed goto block has
2834         incoming abnormal edges.  Clarify how the function works.
2835
2836 2005-04-03  Nathan Sidwell  <nathan@codesourcery.com>
2837
2838         * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
2839         * passes.c (open_dump_file, rest_of_handle_final): Likewise.
2840         * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
2841         hash_scan_set, reg_set_between_after_reload_p,
2842         reg_used_between_after_reload_p, get_avail_load_store_reg,
2843         eliminate_partially_redundant_load): Likewise.
2844         * postreload.c (reload_cse_simplify_set,
2845         reload_combine_note_use): Likewise.
2846         * predict.c (predict_insn, expected_value_to_br_prob,
2847         propagate_freq, expensive_function_p): Likewise.
2848         * print-rtl.c (print_rtx): Likewise.
2849         * profile.c (instrument_edges, instrument_values,
2850         compute_branch_probabilities, branch_prob, union_groups,
2851         tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
2852         * protoize.c (in_system_include_dir, file_could_be_converted,
2853         file_normally_convertible, gen_aux_info_file, seek_to_line,
2854         do_cleaning): Likewise.
2855         * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
2856         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
2857         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
2858
2859 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
2860
2861         * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
2862         * modulo-sched.c (undo_replace_buff_elem): New structure.
2863         (kernel_number_of_cycles, ps_unschedule_node,
2864         undo_generate_reg_moves,free_undo_replace_buff,
2865         undo_permute_partial_schedule,  loop_single_full_bb_p,
2866         SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
2867         build_loops_structure, get_sched_window): New.
2868         (generate_reg_moves): Return undo_replace_buff_elem and other
2869         fixes.
2870         (generate_prolog_epilog): Remove old loop versioning.
2871         (sms_schedule): Use loop information and loop_version.
2872         (sms_schedule_by_order): Split part of it to get_sched_window.
2873         * passes.c (rest_of_handle_sms): call cfg_layout_initialize
2874         cfg_layout_finalize and free_dominance_info before/after SMS.
2875
2876 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
2877
2878         * cfghooks.c (lv_flush_pending_stmts,
2879         cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
2880         lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
2881         * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
2882         lv_add_condition_to_bb,
2883         lv_adjust_loop_header_phi, extract_cond_bb_edges,
2884         flush_pending_stmts): New in cfg_hooks structure.
2885         (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
2886         extract_cond_bb_edges, lv_adjust_loop_header_phi,
2887         lv_add_condition_to_bb): New declarations.
2888         * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
2889         bool.
2890         (loop_version): Declare.
2891         * cfgloopmanip.c (cfghooks.h): Include.
2892         (duplicate_loop_to_header_edge): Change return type to bool.
2893         (loop_version, lv_adjust_loop_entry_edge): Move here.
2894         * cfgrtl.c (cfgloop.h): Include.
2895         (rtl_verify_flow_info_1): Fix.
2896         (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
2897         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
2898         initialization.
2899         * tree-cfg.c (tree_lv_adjust_loop_header_phi,
2900         tree_lv_add_condition_to_bb): New.
2901         (tree_cfg_hooks): Add new hooks to initialization.
2902         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
2903         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
2904
2905 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
2906
2907         * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
2908         xstormy16_below100_or_register,
2909         xstormy16_splittable_below100_or_register, and
2910         nonimmediate_nonstack_operand.
2911
2912         * config/stormy16/stormy16-protos.h: Remove the prototypes for
2913         xstormy16_ineqsi_operator, equality_operator,
2914         inequality_operator, shift_operator,
2915         xstormy16_below100_operand, xstormy16_below100_or_register,
2916         xstormy16_splittable_below100_or_register,
2917         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
2918         * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
2919         equality_operator, inequality_operator,
2920         xstormy16_below100_operand, xstormy16_below100_or_register,
2921         xstormy16_splittable_below100_or_register,
2922         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
2923         nonimmediate_nonstack_operand, shift_operator): Move to
2924         predicates.md.
2925         * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
2926         * config/stormy16/stormy16.md: Include predicates.md.
2927         * config/stormy16/predicates.md: New.
2928
2929 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
2930
2931         * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
2932         small_int, large_int, reg_or_0_operand, simple_memory_operand,
2933         equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
2934         move_operand, power_of_2_operand): Move to predicates.md.
2935         * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
2936         PREDICATE_CODE): Remove.
2937         * config/iq2000/iq2000.md: Include predicates.md.
2938         * config/iq2000/predicates.md: New.
2939
2940 2005-04-02  Richard Sandiford  <rsandifo@redhat.com>
2941
2942         * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
2943         (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
2944         (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
2945         (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
2946         (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
2947         (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
2948         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
2949         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
2950         (TARGET_M68HC11): Delete.
2951         (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
2952         * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
2953         * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
2954         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
2955         (nb_soft_regs): Delete.
2956         (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
2957         (m68hc11_override_options): Remove the code that caters for MASK_M6811
2958         and MASK_M6812 being set simultaneously.  Change the code that sets
2959         the default m68hc11_soft_reg_count to use integers instead of strings.
2960         (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
2961         m68hc11_soft_reg_count (which now has an int type) as the number
2962         of soft registers.
2963         * config/m68hc11/m68hc11.opt: New file.
2964
2965 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
2966
2967         * config/fr30/fr30.h (PREDICATE_CODES): Remove
2968         fp_displacement_operand, sp_displacement_operand.
2969
2970         * config/m68hc11/m68hc11-protos.h: Add a prototype for
2971         m68hcc_auto_inc_p.
2972         Remove the prototypes for tst_operand, cmp_operand,
2973         stack_register_operand, d_register_operand,
2974         hard_addr_reg_operand, splitable_operand,
2975         m68hc11_logical_operator, m68hc11_arith_operator,
2976         m68hc11_non_shift_operator, m68hc11_shift_operator,
2977         m68hc11_unary_operator, m68hc11_eq_compare_operator,
2978         non_push_operand, hard_reg_operand, and
2979         reg_or_some_mem_operand.
2980         * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
2981         extern.
2982         (tst_operand, cmp_operand, non_push_operand,
2983         splitable_operand, reg_or_some_mem_operand,
2984         stack_register_operand, d_register_operand,
2985         hard_addr_reg_operand, hard_reg_operand,
2986         m68hc11_eq_compare_operator, m68hc11_logical_operator,
2987         m68hc11_arith_operator, m68hc11_non_shift_operator,
2988         m68hc11_shift_operator, m68hc11_unary_operator): Move to
2989         predicates.md.
2990         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
2991         * config/m68hc11/m68hc11.md: Include predicates.md.
2992         * config/m68hc11/predicates.md: New.
2993
2994 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
2995
2996         PR debug/19345
2997         * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
2998         change checked in along with 2005-03-03's patch for debug/20253.
2999         * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
3000         (remap_decl): Insert type decl in map earlier.
3001
3002 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
3003
3004         PR tree-optimization/20640
3005         * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
3006         post-dominator if it has phi nodes.
3007         (eliminate_unnecessary_stmts): Remove dead phis in all blocks
3008         before dead statements.
3009
3010 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
3011
3012         PR middle-end/20491
3013         * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
3014
3015 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
3016
3017         PR rtl-optimization/20290
3018         * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
3019         in every iteration if the entry point is the exit test.
3020
3021 2005-04-02  Hans-Peter Nilsson  <hp@axis.com>
3022
3023         * config/cris/cris.md (attribute "length"): Define.
3024
3025 2005-04-02  Geoffrey Keating  <geoffk@apple.com>
3026
3027         * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
3028         (word_offset_memref_operand): New.
3029         * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
3030         (indexed_or_indirect_operand): Delete.
3031         * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
3032         (indexed_or_indirect_operand): Delete.
3033
3034         * config/rs6000/t-darwin8: Comment out ppc64 multilib.
3035
3036         PR 20650
3037         * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
3038         a register.
3039
3040         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
3041         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
3042
3043 2005-04-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
3044
3045         * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
3046
3047 2005-04-01  Ian Lance Taylor  <ian@airs.com>
3048
3049         * gcc.c: Don't include <sys/resource.h> or declare getrusage.
3050         (rus, prus): Remove static variables.
3051         (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
3052         (process_command): Permit report_times and use_pipes together.
3053
3054 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
3055
3056         * c-decl.c (validate_proto_after_old_defn): Look at
3057         TYPE_MAIN_VARIANT of argument types.
3058
3059 2005-04-01  Paul Brook  <paul@codesourcery.com>
3060
3061         * config/arm/arm.c (thumb_call_via_label): Include space for SP.
3062         (arm_output_function_epilogue): Allow call_via_SP.
3063         (thumb_call_via_reg, arm_file_end): Ditto.
3064         * config/arm/arm.h (struct machine_function): Include space for SP.
3065         (thumb_call_via_label): Update declaration.
3066
3067 2005-04-01  Ian Lance Taylor  <ian@airs.com>
3068
3069         * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
3070         doing a peephole optimization, once again put any notes in the
3071         proper position.
3072
3073 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
3074
3075         * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
3076
3077 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
3078
3079         * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
3080         (block_alloc, find_free_reg): Likewise.
3081         * loop-doloop.c (doloop_modify): Likewise.
3082         * loop-invariant.c (record_use): Likewise.
3083         * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
3084         get_iv_value, canon_condition, eliminate_implied_condition,
3085         eliminate_implied_condition, simplify_using_initial_values,
3086         shorten_into_mode, canonicalize_iv_subregs,
3087         iv_number_of_iterations): Likewise.
3088         * loop-unroll.c (expand_var_during_unrolling): Likewise.
3089         * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
3090         unswitch_loop): Likewise.
3091         * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
3092         move_movables, replace_call_address, find_and_verify_loops,
3093         rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
3094         record_giv, final_giv_value, general_induction_var,
3095         simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
3096         loop_giv_dump): Likewise.
3097
3098         * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
3099         GCOV_CHECK_WRITING): Remove.
3100         (gcov_position, gcov_rewrite): Use gcc_assert.
3101         * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
3102         gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
3103         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
3104         gcc_assert.
3105
3106 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
3107
3108         * tree-inline.c: Fix a typo.
3109
3110 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
3111
3112         * configure.ac (enable-checking): Explicitly set all variables for
3113         collective switch values.  Alphabetize variables. Rename
3114         ac_checking_valgrind to ac_valgrind_checking.  Allow 'none' as
3115         synonym for 'no'.
3116         * doc/install.texi (enable-checking): Update documentation.
3117         * configure: Rebuilt.
3118
3119 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
3120
3121         * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
3122         possible.
3123
3124 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
3125
3126         * arm.c (adjacent_mem_locations): Reject volatile memory refs.
3127         Also reject cases where this pattern will cause load delay stalls
3128         unless optimizing for size and it will produce a shorter sequence.
3129         * arm.md (arith_adjacent_mem): Make better use of ldm addressing
3130         variants to avoid pre-adjusting the base when possible.
3131
3132 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
3133
3134         * arm.md (minmax_arithsi): Reject all eliminable registers, not just
3135         the frame and argument pointers.
3136         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
3137         (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
3138         (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
3139         (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
3140         (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
3141         (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
3142
3143 2005-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
3144
3145         * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
3146         with entry for selectany attribute.
3147         * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
3148         Declare.
3149         * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
3150         (i386_pe_asm_named_section): Handle sections generated by
3151         selectany attribute.
3152         * doc/extend.texi (selectany): Document attribute.
3153
3154 2005-04-01  Paolo Bonzini  <bonzini@gnu.org>
3155             Jan Hubicka  <jh@suse.cz>
3156
3157         * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
3158         to fix addresses involving EBP and ESP.
3159         (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
3160         for SUBREGed registers.
3161         (legitimate_address_p): Accept SUBREGed registers.
3162
3163 2005-04-01  Jakub Jelinek  <jakub@redhat.com>
3164
3165         PR c++/19406
3166         * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
3167         (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
3168         for FIELD_DECLs.
3169
3170 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
3171
3172         * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
3173
3174 2005-04-01  James E Wilson  <wilson@specifixinc.com>
3175
3176         PR c++/20505
3177         * dwarf2out.c (rtl_for_decl_init): New function.
3178         (rtl_for_decl_location): Extracted from here.
3179         (tree_add_const_value_attribute): Call rtl_for_decl_init and
3180         add_const_value_attribute.  Delete initializer_constant_valid_p call.
3181
3182 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
3183
3184         * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
3185         lambda-code.c, loop.c, machmode.def, mips-tfile.c,
3186         modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
3187         tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
3188         config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
3189         config/i386/i386.md, config/rs6000/predicates.md,
3190         config/rs6000/rs6000.c, config/s390/fixdfdi.h,
3191         config/s390/s390.c, config/stormy16/stormy16.c,
3192         config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
3193         typos.
3194
3195 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
3196
3197         PR c/17855
3198         * gimplify.c (gimplify_expr): Create a temporary for lvalue
3199         COND_EXPR and CALL_EXPR.
3200
3201 2005-03-31  Vladimir Makarov  <vmakarov@redhat.com>
3202
3203         PR target/20632
3204         * genautomata.c (first_cycle_unit_presence): Check all alternative
3205         states for unit presence.
3206
3207         * doc/md.texi: Remove remark about impossibility to query unit
3208         presence in non nondeterministic automaton state.
3209
3210         * config/ia64/ia64.c (get_template): Change order of unit querying.
3211
3212 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
3213
3214         * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
3215         obsolete comment.
3216
3217 2005-03-31  Zdenek Dvorak  <dvorakz@suse.cz>
3218
3219         * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
3220         flag for edges outside any loops.
3221
3222 2005-03-31  Janis Johnson  <janis187@us.ibm.com>
3223
3224         * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
3225
3226 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
3227
3228         * tree-ssa-alias.c: Follow spelling conventions.
3229         * doc/tree-ssa.texi: Fix a typo.
3230
3231 2005-03-31  J"orn Rennecke <joern.rennecke@st.com>
3232
3233         * postreload-gcse.c: Include target.h.
3234         (gcse_after_reload_main): Return early if we cannot modify jumps.
3235         * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
3236
3237 2005-03-31  David Edelsohn  <edelsohn@gnu.org>
3238
3239         * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
3240         expensive operations.
3241
3242 2005-03-31  Ian Lance Taylor  <ian@airs.com>
3243
3244         * collect2.c (lderrout): New variable.
3245         (collect_exit): Dump ldout to stdout.  Dump and unlink lderrout,
3246         if it is set, to stderr.
3247         (handler): Unlink lderrout if it is set.
3248         (dump_file): Add "to" parameter.  Change all callers.
3249         (main): Initialize lderrout.
3250         (collect_execute): Add errname parameter.  Change all callers.
3251         Rename redir parameter to outname.  Never pass
3252         PEX_STDERR_TO_STDOUT to pex_run.
3253         * collect2.h (collect_execute, dump_file): Update declarations.
3254         * tlink.c (tlink_execute): Add errname parameter.  Change all
3255         callers.
3256         (do_tlink): Check lderrout as well as ldout.
3257
3258 2005-03-31  Caroline Tice  <ctice@apple.com>
3259
3260         * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
3261         (bb-reorder.o): Add errors.h to list of requirements.
3262         (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
3263         profiledbootstrap flags.
3264         * bb-reorder.c (errors.h): Add new include.
3265         (struct bbro_basic_block_data_def): Add new field, in_trace.
3266         (add_unlikely_executed_notes):  Remove function.
3267         (mark_bb_for_unlikely_executed_section): Remove function.
3268         (insert_section_boundary_note): New function.
3269         (verify_hot_cold_block_grouping): New function.
3270         (push_to_next_round_p): Remove variables and tests that push all
3271         cold blocks to last round.
3272         (find_traces): Remove code that added extra round of trace finding
3273         when doing partitioning.
3274         (find_traces_1_round) :  Remove variable last_round;  add code to
3275         update new struct field, in_trace; correct trace_length where it was
3276         incorrect before (after call to copy_bb); change code that pushed all
3277         cold blocks to last round. Instead verify that all blocks going into
3278         a trace belong in the same partition.
3279         (connect_traces): Modify to connect the traces in two passes, if the
3280         function contains both hot and cold blocks.  The first pass connects
3281         all the traces for blocks in the partition that the first block in
3282         the function belongs to; the second pass connnects all the traces
3283         containing blocks that belong in the other partition.
3284         (find_rarely_executed_basic_blocks_and_crossing_edges):  Remove
3285         code that automatically put the first block in a function into the
3286         hot partition if the function had any hot blocks.
3287         (fix_crossing_unconditional_branches): Check number of succ edges
3288         before attempting to get one.
3289         (fix_edges_for_rarely_executed_code):  Update comment describing
3290         function.
3291         (reorder_basic_blocks):  Add code to initialize new field (in_trace);
3292         remove call to add_unlikely_executed_notes; add call to
3293         verify_hot_cold_block_grouping.
3294         (duplicate_computed_gotos): Don't change computed goto if it's a
3295         crossing edge.
3296         (partition_hot_cold_basic_blocks):  Update function comment.
3297         * cfgcleanup.c (try_simplify_condjump): Remove redundacy from
3298         condition.
3299         (try_forward_edges): Likewise.
3300         (merge_blocks_move_predecessor_nojumps): Likewise.
3301         (merge_blocks_move_successor_nojumps): Likewise.
3302         (merge_blocks_move): Likewise.
3303         (try_crossjump_bb): Likewise.
3304         * cfglayout.c (update_unlikely_executed_notes): Remove function.
3305         (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
3306         notes to cold bb's; remove call to update_unlikely_executed_notes.
3307         (duplicate_insn_chain):  change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
3308         NOTE_INSN_SWITCH_TEXT_SECTIONS.
3309         * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
3310         function declaration.
3311         * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
3312         from consideration.
3313         (rtl_can_merge_blocks): Remove redundancy from condition.
3314         (try_redirect_by_replacing_jump): Likewise.
3315         (force_nonfallthru_and_redirect): Remove code for adding
3316         UNLIKELY_EXECUTED_CODE notes to cold bb's.
3317         (commit_one_edge_insertion): Likewise.
3318         (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
3319         * dbxout.c (FORCE_TEXT): Replace function_section with
3320         current_function_section.
3321         (struct dbx_debug_h): Add do_nothing function for new debug_hooks
3322         function, switch_text_section.
3323         (struct xcoff_debug): Likewise.
3324         (dbxout_function_end): Add code to put out label diffs for both
3325         hot and cold sections.
3326         * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
3327         for new debug_hooks funciton, switch_text_section..
3328         * debug.h (struct gcc_debug_hooks):  Add new function to debug_hooks,
3329         switch_text_section.
3330         * dwarf2out.c (struct dw_fde_struct):  Add five new fields:
3331         dw_fde_hot_section_label, dw_fde_hot_section_end_label,
3332         dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and
3333         dw_fde_switched_sections.
3334         (output_call_frame_info):  Add test to see if function switches text
3335         sections in the middle; if so, use appropriate extra hot and cold
3336         section labels to compute size deltas for the hot and cold sections.
3337         (dwarf2out_begin_prologue): Add code to initialize new fields in
3338         dw_fde_struct.
3339         (dwarf2out_switch_text_section): New function (invoked through
3340         debug_hook); updates new fields in dw_fde_struct appropriately and
3341         increments separate_line_info_table_in_use.
3342         (dwarf2_debug_hooks): Initialize switch_text_section function to be
3343         dwarf2out_switch_text_section.
3344         (struct var_loc_node): Add new field, section_label.
3345         (output_aranges): Add code to check whether in hot or cold section and
3346         use the appropriate label in calculating deltas.
3347         (output_ranges): Likewise.
3348         (output_line_info): Add code to check which section we're in and
3349         use appropriate hot/cold label.
3350         (add_location_or_constant_value_attribute): Likewise.
3351         (gen_subprogam_die): Modify arange attributes to use correct labels.
3352         (dwarf2out_begin_block): Change call to function_section into call to
3353         current_function_section.
3354         (dwarf2out_end_block): Likewise.
3355         (dwarf2out_source_line): Likewise.
3356         (dwarf2out_var_location): Add code to check whether in hot or cold
3357         section and use the appropriate label.
3358         * except.c (output_function_exception_table): Change call to
3359         function_section into call to current_function_section.
3360         * final.c (profile_function): Likewise.
3361         (scan_ahead_for_unlikely_executed_note): Remove function.
3362         (final_scan_insn):  Remove calls to
3363         scan_ahead_for_unlikely_executed_note, and related code for switching
3364         to cold section, except for the single time
3365         NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered;  add calls to
3366         debug_hooks->switch_text_sections; replace appropriate calls to
3367         function_section with calls to current_function_section.
3368         * ifcvt.c (find_if_case_1): Remove redundancy from condition, add
3369         test_bb to condition.
3370         (find_if_case_2): Likewise.
3371         * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
3372         NOTE_INSN_SWITCH_TEXT_SECTIONS.  Update comment appropriately.
3373         * opts.c (decode_options): Change warning about hot/cold partitioning
3374         with exceptionss to inform (so as not to cause bootstrap failures);
3375         remove warning about partitioning with DWARF debug info.
3376         * output.h (current_function_section): Add new function decl.
3377         (insert_section_boundary_note): Likewise.
3378         (enum in_section): Move this declaration here from varasm.c.
3379         (unlikely_section_label): Likewise.