OSDN Git Service

fdbb23c2160bbc3ab9d6cb62d10dd42e18028cbc
[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.
3380         (unlikely_text_section_name): Likewise.
3381         (last_text_section_name): New global variable.
3382         (last_text_section): Likewise.
3383         (hot_section_label): Likewise.
3384         (hot_section_end_label): Likewise.
3385         (cold_section_end_label): Likewise.
3386         * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
3387         * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
3388         to NOTE_INSN_SWITCH_TEXT_SECTIONS.
3389         * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note
3390         insn from consideration.
3391         * sdbout.c (sdb_debug_hooks): Add do_nothing for new function,
3392         switch_text_section.
3393         * varasm.c (basic-block.h): Add new include.
3394         (unlikely_section_label_printed): Remove global variable.
3395         (unlikely_section_label): Make global variable not be static any more.
3396         (unlikely_text_section_name): Likewise.
3397         (hot_section_end_label): New global variable (not static)
3398         (first_function_block_is_cold): Likewise.
3399         (hot_section_label): Likewise.
3400         (cold_section_end_label): Likewise..
3401         (last_text_section): New global variable, not static.
3402         (last_text_section_name): New global variable, not static.
3403         (initialize_cold_section_name): New function.
3404         (enum in_section): Move declaration to output.h.
3405         (text_section): Update last_text_section.
3406         (unlikely_text_section): Replace code to determine cold section name
3407         with call to initialize_cold_section_name; Add code to update
3408         last_text_section; remove code for printing out label.
3409         (named_section_real): Add code to update last_text_section and
3410         last_text_section_name as appropriate.
3411         (function_section): Change test for 'unlikely' to depend on
3412         first_function_block_is_cold (moved old test to
3413         current_function_section).
3414         (current_function_section): New function.
3415         (assemble_start_function): Move code that frees
3416         unlikely_text_section_name; initialize hot_section_end_label;
3417         print hot and cold section labels at the start of the function;
3418         set first_function_block_is_cold, if appropriate; initialize l
3419         ast_text_section; add call to insert_section_boundary_note.
3420         (assemble_end_function):  Add code to write out hot and cold section
3421         end labels.
3422         *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
3423         switch_text_section.
3424         * config/darwin.c (machopic_select_section): Replace incorrect
3425         function in base_funs; update reloc for cold sections if necessary.
3426         * config/darwin.h (SECTION_FUNCTION):  Add code to update
3427         last_text_section if appropriate.
3428         (text_unlikely_section): Remove.
3429         * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
3430         * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
3431         * config/xtensa/xtensa.c (override_options): Turn off hot/cold
3432         partitioning for this architecture.
3433
3434 2005-03-31  Olivier Hainque  <hainque@adacore.com>
3435
3436         * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
3437         defined and non-zero.
3438
3439 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3440
3441         PR c++/18644
3442         * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
3443         semantics.
3444
3445 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
3446
3447         PR target/20611
3448         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
3449         label operand.  Remove (use (unspec..)).  Don't emit a label on
3450         the offset word.
3451         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
3452         generate inline label for load_toc_v4_PIC_1b.
3453         (rs6000_emit_load_toc_table): Likewise.
3454
3455 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
3456
3457         * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
3458         ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
3459
3460 2005-03-29  Devang Patel  <dpatel@apple.com>
3461
3462         * tree-sra.c (decide_block_copy): Disable scalarization of
3463         sub-elements.
3464
3465 2005-03-30  Stuart Hastings  <stuart@apple.com>
3466             Dale Johannesen  <dalej@apple.com>
3467
3468         * Makefile.in (print-tree.o):  Depend on tree-iterator.h.
3469         * print-tree.c (print_node):  Add case STATEMENT_LIST.
3470
3471 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
3472
3473         * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
3474         (powerpc64-*-linux*): Use it.  Rearrange tm_file assignment.
3475         (powerpc-*-linux*): Build a biarch compiler when --enable-targets
3476         is given with "powerpc64*" or "all", or when --with-cpu chooses
3477         a 64-bit cpu.
3478
3479 2005-03-30  James E. Wilson  <wilson@specifixinc.com>
3480
3481         PR debug/20268
3482         * dwarf2out.c (add_high_low_attributes): New function, extracted from
3483         gen_lexical_block_die.
3484         (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
3485
3486 2005-03-31  Jan Hubicka  <jh@suse.cz>
3487
3488         2004-11-02  Jan Hubicka  <jh@suse.cz>
3489
3490         * cgraph.c (cgraph_varpool_node_name): New function.
3491         (dump_cgraph_varpool_node): New function.
3492         (dump_varpool): New function.
3493         * cgraphunit.c (cgraph_optimize): Dump varpool.
3494
3495         2004-10-16  Jan Hubicka  <jh@suse.cz>
3496
3497         * cgraph.c (decide_is_variable_needed): New function.
3498         (cgraph_varpool_finalize_decl): Use it.
3499         * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
3500         unit-at-a-time.
3501         * final.c (output_addr_const): Do not call mark_referenced.
3502         * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
3503         always go via cgraph.
3504         * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
3505         (check_global_declarations): Ifdef out code clearing DECL_RTL.
3506         * tree-optimize.c (execute_inline): Mark functions called.
3507         * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
3508
3509         2004-10-11  Jan Hubicka  <jh@suse.cz>
3510
3511         * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
3512         (cgraph_varpool_last_needed_node): New static variable.
3513         (enqueue_needed_varpool_node): Break out from ...; add items to the
3514         end of queue; update first pointers.
3515         (cgraph_varpool_mark_needed_node): ... here.
3516         (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
3517         (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
3518         * cgraph.h (cgraph_varpool_node): Add analyzed field.
3519         (cgraph_varpool_first_unanalyzed_node): Declare.
3520         * cgraphunit.c: Include output.h.
3521         (cgraph_varpool_analyze_pending_decls): New function.
3522         (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
3523         for errors, analyze pending decls.
3524         (cgraph_finalize_compilation_unit): Only analyze decls.
3525         (cgraph_optimize): Assemble the decls after expanding.
3526
3527 2005-03-30  Daniel Berlin  <dberlin@dberlin.org>
3528
3529         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
3530         subvars get marked properly in tags for grouping.
3531         (add_pointed_to_var): Mark only actual pointed to
3532         variables/subvars in addresses needed.
3533         (create_overlap_variables_for): Clear call clobbered on original
3534         variable.
3535         * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
3536         addresable vars with subvars into list.
3537         * tree-ssa.c (verify_ssa_name): Verify original is not used where
3538         subvar should be.
3539
3540 2005-03-30  Richard Henderson  <rth@redhat.com>
3541
3542         * cgraph.h (struct cgraph_node): Add alias.
3543         * varasm.c (assemble_alias): Set it.
3544         * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
3545         avoid calling cgraph_expand_function.
3546
3547 2005-03-30  Tom Tromey  <tromey@redhat.com>
3548
3549         * tree.def (FILE_TYPE): Removed.
3550         * typeclass.h (enum type_class): Removed file_type_class.
3551         * dwarf2out.c (is_base_type): Updated.
3552         (gen_type_die): Likewise.
3553         * dbxout.c (dbxout_type): Updated.
3554         * builtins.c (type_to_class): Updated.
3555         * tree.c (type_contains_placeholder_1): Updated.
3556         * config/sparc/sparc.c (sparc_type_code): Updated.
3557         * config/ia64/ia64.c (hfa_element_mode): Updated.
3558         * expr.c (count_type_elements): Updated.
3559         * stor-layout.c (layout_type): Updated.
3560         * tree-inline.c (remap_type): Updated.
3561         * tree-pretty-print.c (dump_generic_node): Updated.
3562
3563 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
3564
3565         * builtins.c (expand_builtin_powi): Fix mode of
3566         2nd argument to match int.
3567         * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
3568         2nd argument type to int.
3569         * libgcc2.c: Change prototype of __powi* functions to use
3570         int.
3571
3572 2005-03-30  Dale Johannesen  <dalej@apple.com>
3573
3574         PR middle-end/19225
3575         * calls.c (expand_call):  Flush pending deferrals before
3576         throwing call.
3577
3578 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
3579
3580         PR c/772
3581         PR c/17913
3582         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
3583         C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
3584         c_label_context, label_context_stack): New.
3585         * c-decl.c (define_label): Check for jumps into statement
3586         expressions.  Add label to list of defined labels.
3587         (start_function): Push context on label_context_stack.
3588         (finish_function): Pop context from label_context_stack.
3589         * c-typeck.c (label_context_stack): New.
3590         (c_finish_goto_label): Check for jumps into statement
3591         expressions.  Add label to list of jumped to labels.
3592         (struct c_switch): Add blocked_stmt_expr.
3593         (c_start_case): Initialize it.
3594         (do_case): Check it.
3595         (c_finish_case): Verify !blocked_stmt_expr.
3596         (c_begin_stmt_expr):  Push context on label_context_stack.
3597         Increment blocked_stmt_expr.  Mark labels jumped to from outside
3598         as undefinable.
3599         (c_finish_stmt_expr): December blocked_stmt_expr.  Mark labels
3600         defined in the statement expression and no longer jumpable to.
3601         Mark labels jumped to from just outside the statement expression
3602         as again definable.  Pop context from label_context_stack.
3603         * doc/extend.texi (Statement Exprs): Update.
3604
3605 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
3606
3607         PR c/20368
3608         * c-decl.c (start_function): Check for old_decl being
3609         error_mark_node.
3610
3611 2005-03-30  Ian Lance Taylor  <ian@airs.com>
3612
3613         * final.c (final): Remove prescan parameter.  Change all callers.
3614         (final_scan_insn): Remove prescan parameter.  Change all callers.
3615
3616 2005-03-30  Kazu Hirata  <kazu@cs.umass.edu>
3617
3618         * tree-vectorizer.c: Fix comment typos.
3619
3620 2005-03-30  Sebastian Pop  <pop@cri.ensmp.fr>
3621
3622         * tree-scalar-evolution.c (instantiate_parameters_1): Return
3623         as soon as a chrec_dont_know is detected.
3624
3625 2005-03-31  Danny Smith  <dannysmith@users.sourceforge.net>
3626
3627         Merge from csl-arm-branch.
3628         2004-02-12  Mark Mitchell  <mark@codesourcery.com>
3629
3630         * tlink.c (recompile_files): Do not assume that "rename" can
3631         overwrite an existing file.
3632
3633 2005-03-31  Paolo Bonzini  <bonzini@gnu.org>
3634
3635         * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
3636         * gcc/configure: Regenerate.
3637
3638 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
3639
3640         * doc/install.texi: Update binutils requirement for powerpc*-linux.
3641
3642         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
3643
3644         * calls.c (struct arg_data): Update "partial" comment.
3645         (load_register_parameters): Update "nregs" comment.
3646
3647 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
3648
3649         * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
3650         (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
3651         (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
3652         (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
3653         (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
3654         (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
3655         than target_flags & 0.
3656         * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
3657         (iq2000_arch, iq2000_parse_cpu): Delete.
3658         (TARGET_HANDLE_OPTION): Override default.
3659         (iq2000_handle_option): New function.
3660         (override_options): Remove -march= and -mcpu= handling.
3661         * config/iq2000/iq2000.opt: New file.
3662
3663 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
3664
3665         * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
3666         * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
3667         (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
3668         (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
3669         (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
3670         (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
3671         (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
3672         (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
3673         (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
3674         (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
3675         (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
3676         (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
3677         (c4x_rpts_cycles_string, c4x_cpu_version_string)
3678         (TARGET_OPTIONS): Delete.
3679         (c4x_rpts_cycles, c4x_cpu_version): Declare.
3680         (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
3681         (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
3682         * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
3683         (c4x_cpu_version_string): Delete.
3684         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3685         (c4x_handle_option): New function.  Map -m3x and -m4x options to the
3686         equivalent -mcpu= option.
3687         (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
3688         Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
3689         TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
3690         or clearing the appropriate MASK_* bit.
3691         (c4x_file_start): Use c4x_cpu_version.
3692         * config/c4x/c4x.opt: New file.
3693
3694 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
3695
3696         * doc/options.texi: Document the new MaskExists flag.
3697         * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
3698         if the option has the MaskExists flag.
3699
3700 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
3701
3702         * opt-functions.awk (flag_set_p, test_flag): New functions.
3703         (switch_flags): Use them.
3704         * opth-gen.awk: Use flag_set_p to check for flags.
3705         * optc-gen.awk: Likewise.  Use opt_args to check for Init(...) flags.
3706
3707 2005-03-30  Ian Lance Taylor  <ian@airs.com>
3708
3709         * config.host (i[34567]86-*-mingw32*): Don't set
3710         host_can_use_collect2 to no.
3711
3712 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
3713
3714         PR target/20203
3715         * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
3716         Remove convert_memory_address call duplicating that in memory_address.
3717
3718 2005-03-29  Richard Henderson  <rth@redhat.com>
3719
3720         PR c/20519
3721         * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
3722         (build_compound_literal): Likewise.  Propagate decl type into the
3723         initializer.
3724         (finish_decl): Likewise.  Use new return value from complete_array_type
3725         for zero sized arrays.
3726         (complete_array_type): Move ...
3727         * c-common.c (complete_array_type): ... here.  Change first argument
3728         to pointer-to-type-node.  Consistently use sizetype for the index
3729         except for zero sized arrays.  Detect zero sized arrays for pedantic
3730         mode diagnostics.  Create a new type node instead of modifying the
3731         old node in place.
3732         * c-tree.h (complete_array_type): Move decl ...
3733         * c-common.h (complete_array_type): ... here.
3734
3735 2005-03-29  Richard Henderson  <rth@redhat.com>
3736
3737         PR tree-opt/19108
3738         * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
3739
3740 2005-03-29  Kazu Hirata  <kazu@cs.umass.edu>
3741
3742         * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
3743         debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
3744         rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
3745         tree-profile.c, tsystem.h, value-prof.h: Update copyright.
3746
3747 2005-03-29  Eric Christopher  <echristo@redhat.com>
3748
3749         * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
3750         truthvalue conversion removal.
3751
3752 2005-03-29  Ian Lance Taylor  <ian@airs.com>
3753
3754         PR bootstrap/14316
3755         * collect2.c: Never include <vfork.h>.
3756         (VFORK_STRING, vfork): Don't define.
3757         (pid): Remove global variable.
3758         (handler): Call raise instead of kill (getpid(), ...).
3759         (collect_wait): Add pex parameter.  Change all callers.  Use
3760         pex_get_status rather than pwait.
3761         (do_wait): Add pex parameter.  Change all callers.
3762         (collect_execute): Return struct pex_obj * rather than void.  Use
3763         pex routines rather than pexecute.
3764         (fork_execute): Get pex_obj from collect_execute, and pass it to
3765         do_wait.
3766         (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
3767         Only declare quit_handler if SIGQUIT is defined.
3768         (scan_libraries): Likewise.
3769         * collect2.h (collect_execute): Update declaration.
3770         (collect_wait): Update declaration.
3771         * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
3772         pass it to collect_wait.
3773
3774 2005-03-29  Joseph S. Myers  <joseph@codesourcery.com>
3775
3776         PR c/20672
3777         * c-parser.c (c_parser_compound_statement_nostart): Give error
3778         message for EOF instead of just setting parser->error.
3779
3780 2005-03-29  Dorit Naishlos  <dorit@il.ibm.com>
3781
3782         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
3783         (slpeel_update_phi_nodes_for_guard1): New function.
3784         (slpeel_update_phi_nodes_for_guard2): New function.
3785         (slpeel_tree_peel_loop_to_edge): Call above new functions instead
3786         of slpeel_update_phi_nodes_for_guard.
3787         (vectorize_loops): Remove call to loop_closed_rewrite.
3788         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
3789         assertion.
3790
3791 2005-03-29  Richard Sandiford  <rsandifo@redhat.com>
3792
3793         * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
3794         (TARGET_LITTLE_ENDIAN): New macro.
3795         * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
3796         (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
3797         (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
3798         (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
3799         (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
3800         (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
3801         (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
3802         (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
3803         (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
3804         (TARGET_OPTIONS): Delete.
3805         (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
3806         (CACHE_FLUSH_TRAP): Turn into an integer.
3807         (TARGET_LITTLE_ENDIAN): Define to 0 by default.
3808         (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
3809         -mflush-trap is in use.
3810         * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
3811         (m32r_cache_flush_trap_string): Delete.
3812         (m32r_model) Initialize to M32R_MODEL_DEFAULT.
3813         (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
3814         (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
3815         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3816         (m32r_handle_option): New function.  Move -mflush-trap=, -mflush-func=,
3817         -mmodel= and -msdata= handling from...
3818         (m32r_init): ...here.
3819         * config/m32r/m32r.opt: New file.
3820
3821 2005-03-29  Keith Besaw  <kbesaw@us.ibm.com>
3822
3823         * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
3824         (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
3825         * tree-vect-analyze.c (vect_object_analysis): additional parm
3826         pass back a "struct ptr_info_def *" with the points-to info.
3827         (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
3828         statement using info returned from vect_object_analysis.
3829         * tree-vect-transform.c (update_vuses_to_preheader): New function.
3830         (vect_create_data_ref_ptr): Remove updates to vars_to_rename
3831         for virtual uses and defs when creating a replacement vector
3832         reference.  Call duplicate_ssa_name_ptr_info to define points-to
3833         info for vector pointer replacement using STMT_VINFO_PTR_INFO.
3834         (vectorizable_store): copy_virtual_operands and update
3835         definition statements.
3836         (vectorizable_load): copy_virtual_operands.  Remove call to
3837         mark_call_clobbered_vars_to_rename for call to "const" builtin.
3838         * tree-vectorizer.c (vectorize_loops): Remove calls to
3839         rewrite_into_ssa and bitmap_clear (vars_to_rename).
3840         (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
3841         * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
3842         define macro STMT_VINFO_PTR_INFO for use in accessing.
3843         * tree.h add export of duplicate_ssa_name_ptr_info.
3844         * rs6000.c (altivec_init_builtins): Declare builtin function
3845         __builtin_altivec_mask_for_load to be "const".
3846
3847 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
3848
3849         PR middle-end/20622
3850         * cgraph.h (struct cgraph_varpool_node): Add alias field.
3851         * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
3852         assemble_variable on aliases.
3853         * varasm.c (assemble_alias): Set node->alias.
3854         * toplev.c (wrapup_global_declarations): Don't call
3855         rest_of_decl_compilation on aliases again.
3856
3857 2005-03-29  Paul Brook  <paul@codesourcery.com>
3858
3859         * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
3860         * config/arm/arm.c (arm_dbx_register_number): New function.
3861         * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
3862
3863 2005-03-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
3864
3865         PR middle-end/20263
3866         * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
3867         the DECL_NAME, not the DECL_ASSEMBLER_NAME.
3868
3869 2005-03-29  Dale Johannesen <dalej@apple.com>
3870
3871         * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
3872         $(TREE_H) and $(COVERAGE_H).
3873         * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
3874         * opts.c (common_handle_option): Enable tree-based value transforms.
3875         * toplev.c (process_options): Ditto.
3876         * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
3877         refers to references to this type.
3878         * tree-flow.h: (struct stmt_ann_d): Add histograms field.
3879         * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
3880         for may_be_more, may_be_less.
3881         (rtl_gen_pow2_profiler): Adjust.
3882         (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
3883         (rtl_gen_one_value_profiler): Adjust.
3884         (rtl_gen_const_delta_profiler): Adjust.
3885         * tree-profile.c (tree_gen_interval_profiler): Implement.
3886         (tree_gen_pow2_profiler): Ditto.
3887         (tree_gen_one_value_profiler): Ditto.
3888         (tree_profiling): New.
3889         (pass_tree_profile): Reference it.
3890         * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
3891         tree.h, gcov-io.h.
3892         (insn_divmod_values_to_profile): Rename to
3893         rtl_divmod_values_to_profile. Adjust.
3894         (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
3895         (insn_prefetch_values_to_profile): Adjust.
3896         (rtl_value_profile_transformations): Adjust.
3897         (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
3898         (gen_mod_pow2): Rename to rtl_mod_pow2.
3899         (gen_mod_subtract): Rename to rtl_mod_subtract.
3900         (divmod_fixed_value_transform): Rename to
3901         rtl_divmod_fixed_value_transform.
3902         (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
3903         (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
3904         (rtl_find_values_to_profile): Adjust.
3905         (tree_value_profile_transformations): Implement.
3906         (tree_divmod_values_to_profile): New.
3907         (tree_values_to_profile): New.
3908         (tree_divmod_fixed_value): New.
3909         (tree_mod_pow2): New.
3910         (tree_mod_subtract): New.
3911         (tree_divmod_fixed_value_transform): New.
3912         (tree_mod_pow2_value_transform): New.
3913         (tree_mod_subtract_transform): New.
3914         (tree_find_values_to_profile): Implement.
3915         * profile.c (instrument_values):  Free histograms.
3916         (compute_value_histograms): Adjust. Implement tree version.
3917
3918 2005-03-29  Uros Bizjak  <uros@kss-loka.si>
3919
3920         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
3921         * config/i386/i386.c (output_fix_trunc): Add new round_mode
3922         variable.  Output "fldcw" depending on round_mode.
3923         * config/i386/i386.md (UNSPEC_FIST): New.
3924         (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
3925         New isns patterns to implement lrint and llrint built-ins as x87
3926         intrinsic function.
3927         (fistdi2, fist<mode>2 splitters): New splitters.
3928         (lrint<mode>2): New expanders.
3929
3930 2005-03-28  Ian Lance Taylor  <ian@airs.com>
3931
3932         * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
3933         0 when calling final_scan_insn.
3934
3935 2005-03-28  Jan Hubicka  <jh@suse.cz>
3936
3937         PR middle-end/20635
3938         * varasm.c (mark_decl_referenced): Do not mark extern inline functions
3939         as needed.
3940
3941         * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
3942         types where possible.
3943
3944 2005-03-26  Per Bothner  <per@bothner.com>
3945
3946         Make -f[no-]show-column also control non-cpp diagnostics.
3947         * c.opt (fshow-column): Move option from here ...
3948         * common.opt (fshow-column): ... to here.
3949         * diagnostic.c (diagnostic_build_prefix): Only print column number
3950         if flag_show_column.
3951
3952 2005-03-27  Steven Bosscher  <stevenb@suse.de>
3953
3954         * vax-protos.h (vax_output_int_move, vax_output_int_add,
3955         vax_output_conditional_branch): New prototypes.
3956         * vax.c (vax_output_int_move, vax_output_int_add): New functions,
3957         extracted from vax.md mov and add patterns.
3958         (vax_output_conditional_branch): New function to output conditional
3959         branch instructions.
3960         * vax.md: Use mode macros for arithmetic and mov patterns.
3961         Use code macros for the jump patterns.
3962
3963 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
3964
3965         * Makefile.in (libbackend.o): Depend on version files;
3966         add custom generation command.
3967
3968 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
3969
3970         PR target/20636
3971         * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
3972         sure that we have a REG before getting its REGNO.
3973
3974 2005-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3975
3976         * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
3977         * builtins.def (BUILT_IN_STRNDUP): New.
3978
3979 2005-03-25  Pat Haugen  <pthaugen@us.ibm.com>
3980
3981         PR tree-optimization/20470
3982         * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
3983         ABS(x-y).
3984
3985 2005-03-25  Mike Stump  <mrs@apple.com>
3986
3987         * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
3988         sized objects.
3989
3990 2005-03-25  Geoffrey Keating  <geoffk@apple.com>
3991
3992         * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
3993         Use our own structure definitions.
3994
3995         * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
3996         (fix_truncdfsi2): Allow registers or memory as destination.
3997         When TARGET_PPC_GFXOPT, generate simplified pattern.
3998         (fix_truncdfsi2_internal): Use define_insn_and_split.
3999         (fix_truncdfsi2_internal_gfxopt): New.
4000         (fctiwz): Don't confuse register allocation by giving it no choices.
4001         (stfiwx): New.
4002         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
4003         (EXTRA_MEMORY_CONSTRAINT): Likewise.
4004         * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
4005         * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
4006
4007 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
4008
4009         * dominance.c (free_dominance_info): Speed up by freeing et
4010         data structures without maintaining other nodes.
4011         * et-forest.c (et_free_tree_force): New.
4012         * et-forest.h: Add a prototype for et_free_tree_force.
4013
4014         * tree.c (get_set_constructor_bits,
4015         get_set_constructor_bytes): Remove.
4016         * tree.h: Remove the corresponding prototypes.
4017
4018 2005-03-25  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
4019
4020         PR target/15491
4021         * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
4022         (vax_rtx_costs): Return false when passed unsupported rtx's.  Handle
4023         FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE.  Fix costs for POST_INC,
4024         PRE_DEC, NEG and NOT.
4025
4026 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
4027
4028         * fold-const.c: Convert uses of fold (build (...)) to
4029         fold_buildN.
4030
4031 2005-03-25  Zdenek Dvorak  <dvorakz@suse.cz>
4032
4033         PR rtl-optimization/20249
4034         * cse.c (insert_regs): Do not record equivalence of registers in
4035         different modes.
4036
4037 2005-03-24  Kazu Hirata  <kazu@cs.umass.edu>
4038
4039         * emit-rtl.c (reverse_comparison): Remove.
4040         * rtl.h: Remove the corresponding prototype.
4041
4042 2005-03-24  James E Wilson  <wilson@specifixinc.com>
4043
4044         * doc/install.texi (--enable-altivec): Delete docs.
4045
4046 2005-03-24  David Edelsohn  <edelsohn@gnu.org>
4047
4048         * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
4049         SFmode and DFmode before reload when
4050         flag_unsafe_math_optimizations not enabled.
4051
4052 2005-03-24  Geoffrey Keating  <geoffk@apple.com>
4053
4054         * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
4055
4056         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
4057         MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
4058
4059 2005-03-24  Nathan Sidwell  <nathan@codesourcery.com>
4060
4061         * configure.ac (enable-checking): Add 'runtime' option.
4062         * doc/install.texi (enable-checking): Document 'runtime' checking.
4063         * tsystem.h (gcc_assert, gcc_unreachable): Define.
4064         * config.in: Regenerated.
4065         * configure: Regenerated.
4066
4067 2005-03-23  Uros Bizjak  <uros@kss-loka.si>
4068
4069         * optabs.h (enum optab_index): Remove OTI_llrint.
4070         (llrint_optab): Remove macro.
4071         * optabs.c (init_optabs): Remove llrint_optab initialization.
4072         * genopinit.c (optabs): Remove llrint_optab implementation.
4073         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
4074         using lrint_optab.
4075
4076 2005-03-24  Alexandre Oliva  <aoliva@redhat.com>
4077
4078         PR rtl-optimization/20532
4079         * simplify-rtx.c (simplify_binary_operation_1): Protect from
4080         overflow when adding coefficients for PLUS or MINUS.
4081         (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
4082         two as multiplier.
4083
4084 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
4085
4086         * langhooks.h (truthvalue_conversion): Remove.
4087         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
4088         LANG_HOOKS_TRUTHVALUE_CONVERSION.
4089         * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
4090         * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
4091         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
4092
4093 2005-03-23  Kazu Hirata  <kazu@cs.umass.edu>
4094
4095         * params.def: Fix a typo.
4096         * config/mips/mips.c: Follow the spelling convensions.
4097         * doc/invoke.texi: Fix typos.
4098
4099 2005-03-23  Daniel Berlin  <dberlin@dberlin.org>
4100
4101         Fix PR tree-optimization/20601
4102
4103         * tree-ssa-pre.c (insert_aux): Add missing condition to
4104         constification.
4105
4106 2005-03-23  Ian Lance Taylor  <ian@airs.com>
4107
4108         * final.c (final_scan_insn): Don't remove no-op instructions.
4109         * reload1.c (reload): Remove simple no-op instructions even when
4110         not optimizing.
4111
4112 2005-03-23  Dorit Naishlos  <dorit@il.ib.com>
4113
4114         PR tree-optimization/20501
4115         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
4116         reporting that peeling for alignment is applied moved to...
4117         * (vect_analyze_data_refs_alignment): Here.
4118
4119 2005-03-23  Ian Lance Taylor  <ian@airs.com>
4120
4121         * reorg.c (dbr_schedule): Remove #if 0 code to call final.
4122
4123 2005-03-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4124
4125         * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
4126         Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
4127
4128 2005-03-23  Hans-Peter Nilsson  <hp@axis.com>
4129
4130         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
4131         imply that this is called once, independent of asms in code.
4132         Adjust to now being pased output and input lists.  Mention helper
4133         function decl_overlaps_hard_reg_set_p.
4134         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
4135         hook_tree_tree_identity and to take three trees, returning third.
4136         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
4137         prototype.
4138         * stmt.c: include hard-reg-set.h before tree.h.
4139         (decl_overlaps_hard_reg_set_p): New function, broken out from...
4140         (decl_conflicts_with_clobbers_p): Call
4141         decl_overlaps_hard_reg_set_p.
4142         (expand_asm_operands): Pass output and input lists in call to
4143         targetm.md_asm_clobbers.
4144         * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
4145         hook_tree_tree_tree_tree_3rd_identity.
4146         * target.h (struct gcc_target.md_asm_clobbers): Take three tree
4147         parameters.
4148         * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
4149         * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
4150         parameters, first two unused.
4151         * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
4152         parameters.  Only add MOF to clobbers if there's no 'h' mentioned
4153         in constraint letters and MOF is not mentioned as a asm-declared
4154         register in neither of the input and output lists.
4155
4156 2005-03-23  DJ Delorie  <dj@redhat.com>
4157
4158         * optabs.c (expand_binop): Make sure the first subword's result
4159         gets stored.
4160
4161 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
4162
4163         * c-common.c (c_common_truthvalue_conversion): Adjust comment.
4164         Call c_common_truthvalue_conversion rather than
4165         lang_hooks.truthvalue_conversion.
4166         * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
4167         * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
4168         c-typeck.c.
4169         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
4170         c_common_truthvalue_conversion.
4171         * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
4172         c_parser_conditional_expression, c_parser_binary_expression): Call
4173         c_objc_common_truthvalue_conversion.
4174         * c-typeck.c (build_unary_op): Call
4175         c_objc_common_truthvalue_conversion.
4176         (build_conditional_expr): Do not call
4177         lang_hooks.truthvalue_conversion.
4178         (build_binary_op): Call c_common_truthvalue_conversion.
4179         (c_objc_common_truthvalue_conversion): Moved from
4180         c-objc-common.c.  Call default_function_array_conversion instead
4181         of default_conversion.
4182
4183 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
4184
4185         * c-common.h (default_conversion): Remove.
4186         (perform_integral_promotions): Add.
4187         * c-tree.h (default_conversion): Add.
4188         * c-typeck.c (perform_integral_promotions): New, split out from
4189         default_conversion.
4190         * c-common.c (check_case_value): Use perform_integral_promotions,
4191         not default_conversion.
4192         (c_add_case_label): Don't continue processing case label after
4193         found to be pointer.
4194
4195 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
4196
4197         * gcc.c (do_spec_1): Do not add a -L path for a directory in
4198         the prefix list if we have already added a multilib directory
4199         based on that path.
4200         (main): Do not add MD_EXEC_PREFIX to the list of directories to
4201         search with -L.
4202
4203 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
4204
4205         * reload1.c (indirect_symref_ok, reload_obstack): Make them
4206         static.
4207         * reload.h: Remove the prototype for indirect_symref_ok.
4208
4209         * reload1.c (indirect_symref_ok): Make it global.
4210         * reload.h: Add a prototype for indirect_symref_ok.
4211
4212 2005-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
4213
4214         * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
4215         ashlhi3 expander.
4216
4217 2005-03-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
4218
4219         * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
4220
4221 2005-03-22  Daniel Berlin  <dberlin@dberlin.org>
4222
4223         * c-opts.c (c_common_parse_file): Only start/end main source file
4224         if debug hooks says the writer wants it.
4225         * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
4226         member.
4227         (xcoff_debug_hooks): Ditto.
4228         * debug.c (do_nothing_hooks): Ditto.
4229         * debug.h (gcc_debug_hooks): Ditto.
4230         * dwarf2out.c (dwarf2_debug_hooks): Ditto.
4231         * sdbout.c (sdb_debug_hooks): Ditto.
4232         * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
4233
4234 2005-03-22  Mark Mitchell  <mark@codesourcery.com>
4235
4236         * doc/extend.texi: Deprecate C++ min/max operators.
4237
4238 2005-03-22  Zdenek Dvorak  <dvorakz@suse.cz>
4239
4240         * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
4241         artificial original candidates.
4242
4243 2005-03-22  Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
4244             Jan Hubicka  <jh@suse.cz>
4245             Steven Bosscher <stevenb@suse.de>
4246
4247         * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
4248         call cost based on argument sizes.
4249         (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
4250         inlining.
4251         * params.def: (max-inline-inssn-single): Set to 450.
4252         (max-inline-insns-auto): Set to 90.
4253         (max-inline-insns-recursive): Set to 450
4254         (max-inline-insns-recursive-auto): Set to 450.
4255         (large-function-insns): Set to 2700.
4256         (inline-call-cost): New parameter.
4257         * tree-inline.c (estimate_move_cost): New function.
4258         (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
4259         for non-gimple-regs, set cost to 0 for gimple-regs.  Compute call size
4260         based on arguments.
4261         * tree-inline.h (estimate_move_cost): Declare.
4262         * invoke.texi: (max-inline-inssn-single): Change default to 450.
4263         (max-inline-insns-auto): Change default to 90.
4264         (max-inline-insns-recursive): Change default to 450
4265         (max-inline-insns-recursive-auto): Change default to 450.
4266         (large-function-insns): Change default to 2700.
4267         (inline-call-cost): Document new parameter.
4268
4269 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
4270
4271         * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
4272         (TARGET_DEFAULT): Delete.
4273         * config/i860/i860.opt: New file.
4274
4275 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
4276
4277         * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
4278         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
4279         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
4280         (frv_sched_lookahead): Delete.
4281         * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
4282         (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
4283         (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
4284         (MASK_LIBPIC, MASK_ACC_4,  MASK_PACK, MASK_LONG_CALLS)
4285         (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
4286         (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
4287         (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
4288         (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
4289         (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
4290         (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
4291         (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
4292         (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
4293         (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
4294         (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
4295         (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
4296         (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
4297         (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
4298         (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
4299         (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
4300         (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
4301         (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
4302         (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
4303         * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
4304         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
4305         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
4306         (frv_sched_lookahead): Delete.
4307         (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
4308         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
4309         (frv_handle_option): New function.  Move -mcpu= handling from...
4310         (frv_override_options): ...here.  Remove handling of other
4311         TARGET_OPTIONS.
4312         (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
4313         TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
4314         (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
4315         and TARGET_NO_MULTI_CE.
4316         (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
4317         !TARGET_VLIW_BRANCH.
4318         * config/frv/frv.opt: New file.
4319
4320 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
4321
4322         * fold-const.c (fold_ternary): Take decomposed arguments of
4323         CALL_EXPR.
4324         (fold): Update a call to fold_ternary.
4325
4326         * fold-const.c (fold_build1, fold_build2, fold_build3): New.
4327         * tree.h: Add corresponding prototypes.
4328
4329 2005-03-22  Jakub Jelinek  <jakub@redhat.com>
4330
4331         PR target/20561
4332         * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
4333         between jump table and its label.
4334         * final.c (shorten_branches): Handle notes in between ADDR_VEC
4335         resp. ADDR_DIFF_VEC and the label preceeding it.
4336         (final_scan_insn): Likewise.  Ensure ADDR_VEC resp. ADDR_DIFF_VEC
4337         is emitted in the right section.
4338
4339 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
4340
4341         * fold-const.c (fold_unary, fold_binary): Update comments
4342         about arguments.
4343
4344 2005-03-22  Hans-Peter Nilsson  <hp@axis.com>
4345
4346         PR rtl-optimization/20527
4347         * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
4348         REG_INC note, test that the register also isn't mentioned in PRED
4349         or SUCC.
4350
4351 2005-03-22  Ben Elliston  <bje@au.ibm.com>
4352
4353         * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
4354         and definition.
4355
4356 2005-03-21  Mike Stump  <mrs@apple.com>
4357
4358         * varasm.c (default_assemble_visibility): Remove extra ().
4359
4360 2005-03-21  Roger Sayle  <roger@eyesopen.com>
4361
4362         PR middle-end/20557
4363         * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
4364         to determine whether a block can be duplicated, rather than test
4365         whether the block contains noncopyable insns ourselves.
4366
4367 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
4368
4369         * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
4370         predicates.
4371
4372 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
4373
4374         * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
4375
4376 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
4377
4378         * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
4379         (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
4380         * config/fr30/fr30.opt: New file.
4381
4382 2005-03-18  Daniel Berlin  <dberlin@dberlin.org>
4383
4384         Fix PR tree-optimization/20542
4385
4386         * tree-flow-inline.h (overlap_subvar): Move to here.
4387         * tree-ssa-operands.c: From here.
4388         * tree-flow.h (overlap_subvar): Declare.
4389         * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
4390         * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
4391         for variables with subvars.
4392
4393 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
4394
4395         PR middle-end/20177
4396         * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
4397         * modulo-sched.c (const_iteration_count): Return on NULL
4398         pre-header.
4399         (print_node_sched_params): Return on NULL dump_file.
4400         (generate_reg_moves): Handle reg-anti dependencies and disregard
4401         closing branch when generating register moves.
4402         (sms_schedule): Mark the SMSed block dirty.
4403         * passes.c (rest_of_handle_sms): Call update_life_info for all
4404         basic-blocks.
4405         * testsuite/gcc.dg/20050321-1.c: New test.
4406
4407 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
4408
4409         * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
4410         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
4411         movqi_internal): Likewise.
4412
4413 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
4414
4415         * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
4416         xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
4417         xtensa_b4const): Delete prototypes.
4418         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
4419         xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
4420         (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
4421         xtensa_extra_constraint): New prototypes.
4422         (add_operand, arith_operand, nonimmed_operand, mem_operand,
4423         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
4424         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
4425         move_operand, const_float_1_operand, fpmem_offset_operand,
4426         branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
4427         * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
4428         (xtensa_b4const_or_zero): ...this.  Change return type to bool and
4429         argument type to HOST_WIDE_INT.
4430         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
4431         xtensa_mask_immediate): Likewise.
4432         (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
4433         Likewise.  Also make these functions static.
4434         (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
4435         (xtensa_const_ok_for_letter_p): New.
4436         (add_operand, arith_operand, nonimmed_operand, mem_operand,
4437         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
4438         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
4439         move_operand, const_float_1_operand, fpmem_offset_operand,
4440         branch_operator, ubranch_operator, boolean_operator): Move to
4441         predicates.md.
4442         (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
4443         (xtensa_mem_offset): Change return type to bool.
4444         (xtensa_extra_constraint): New.
4445         (gen_int_relational): Update type of const_range_p function pointer.
4446         Use xtensa_b4const_or_zero.
4447         * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
4448         xtensa_const_ok_for_letter_p.  Update comments.
4449         (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
4450         (PREDICATE_CODES): Delete.
4451         * config/xtensa/xtensa.md: Include predicates.md.
4452         * config/xtensa/predicates.md: New file.
4453
4454 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
4455
4456         * config/v850/v850-protos.h: Remove the prototypes for
4457         reg_or_int9_operand, reg_or_const_operand,
4458         pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
4459         reg_or_0_operand, reg_or_int5_operand, call_address_operand,
4460         movsi_source_operand, power_of_two_operand,
4461         not_power_of_two_operand, special_symbolref_operand,
4462         pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
4463         register_is_ok_for_epilogue.
4464         * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
4465         reg_or_int9_operand, reg_or_const_operand,
4466         call_address_operand, special_symbolref_operand,
4467         movsi_source_operand, power_of_two_operand,
4468         not_power_of_two_operand, register_is_ok_for_epilogue,
4469         pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
4470         pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
4471         predicates.md.
4472         * config/v850/v850.h (PREDICATE_CODES): Remove.
4473         * config/v850/v850.md: Include predicates.md.
4474         * config/v850/predicates.md: New.
4475
4476 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
4477
4478         * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
4479         (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
4480         (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
4481         (itoolsdir, itoolsdatadir): Move definition above new first use.
4482         (install-itoolsdirs): New rule.
4483         (install-mkheaders): Depend on install-itoolsdirs, not
4484         install-include-dir.
4485
4486 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
4487
4488         * tree-into-ssa.c: Remove obsolete comments.
4489
4490 2005-03-21  Richard Guenther  <rguenth@gcc.gnu.org>
4491
4492         * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
4493         unrolling if -fpeel-loops is specified, too.
4494         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
4495         Remove superfluous check for flag_unroll_loops.
4496
4497 2005-03-21  Uros Bizjak  <uros@kss-loka.si>
4498
4499         * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
4500         (lrint_optab, llrint_optab): Define corresponding macros.
4501         * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
4502         * genopinit.c (optabs): Implement lrint_optab using lrintsi2
4503         pattern and llrint_optab using llrintdi2 patterns.
4504         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
4505         using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
4506         (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
4507         BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
4508         flag_unsafe_math_optimizations is set.
4509
4510 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
4511
4512         * combine.c (combine_simplify_rtx, simplify_if_then_else,
4513         simplify_logical, if_then_else_cond, known_cond,
4514         simplify_comparison): Adjust calls to reverse_comparison.
4515         Don't use combine_reversed_comparison_code).
4516         (combine_reversed_comparison_code): Remove.
4517         (reversed_comparison): Using reversed_comparison_code, move it...
4518         * jump.c (reversed_comparison): ... here.
4519         * rtl.h (reversed_comparison): Add prototype.
4520
4521 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
4522
4523         * builtins.c (fold_builtin): Take decomposed arguments of
4524         CALL_EXPR.
4525         * fold-const.c (fold_ternary): Update a call to fold_builtin.
4526         * gimplify.c (gimplify_call_expr): Likewise.
4527         * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
4528         * tree.h: Update the prototype of fold_builtin.
4529
4530 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
4531
4532         * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
4533         * rtlhooks.c (gen_lowpart_no_emit_general): New.
4534         * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
4535         (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
4536         * simplify-rtx.c (simplify_binary_operation_1): Use it.
4537
4538 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
4539
4540         * builtins.c (fold_builtin_1): Take decomposed arguments of
4541         CALL_EXPR.
4542         (fold_builtin): Update a call to fold_builtin_1.
4543
4544 2005-03-21  Nathan Sidwell  <nathan@codesourcery.com>
4545
4546         PR other/20564
4547         * gcov.c (output_lines): Only output function block summary when
4548         outputting branch information.
4549         * doc/gcov.texi: Document format of preamble and additional block
4550         information lines.
4551
4552 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
4553
4554         * libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro.
4555         (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_TF_MODE, LIBGCC2_HAS_XF_MODE): Make
4556         the defaults false if BITS_PER_UNIT != 8.
4557         (SFtype, SCtype, __fixsfdi, __floatdisf, __fixunssfSI, __fixunssfDI)
4558         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE rather
4559         than BITS_PER_UNIT != 8.
4560         (L_fixdfdi, L_fixsfdi, L_fixtfdi, L_fixunsdfdi, L_fixunsdfsi)
4561         (L_fixunssfdi, L_fixunssfsi, L_fixunstfdi, L_fixunsxfdi, L_fixunsxfsi)
4562         (L_fixxfdi, L_floatdidf, L_floatdisf, L_floatditf, L_floatdixf): Remove
4563         #undefs.
4564         * libgcc2.c (__fixunssfDI, __fixsfdi, __floatdisf, __fixunssfSI)
4565         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE.
4566
4567 2005-03-20  Roger Sayle  <roger@eyesopen.com>
4568
4569         PR middle-end/20539
4570         * fold-const.c (fold_binary): Fix type mismatch between
4571         TRUTH_{AND,OR,XOR}_EXPR nodes an their operands' types.
4572         (fold_binary) <TRUTH_XOR_EXPR>: Avoid calling invert_truthvalue
4573         for non-truth-valued expressions.
4574
4575         * c-common.c (c_common_truthvalue_conversion): Handle ERROR_MARK
4576         and FUNCTION_DECL in the main switch.
4577         <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
4578         TRUTH_XOR_EXPR>: When changing the result type of these tree nodes,
4579         we also need to convert their operands to match.
4580         <TRUTH_NOT_EXPR>: Likewise.
4581
4582 2005-03-21  Joseph S. Myers  <joseph@codesourcery.com>
4583
4584         * c-common.c (lvalue_or_else): Replace by lvalue_error; only give
4585         diagnostic without checking whether an lvalue.
4586         * c-common.h (lvalue_p): Remove.
4587         (enum lvalue_use): Update comment.
4588         (lvalue_or_else): Replace by lvalue_error.
4589         * c-typeck.c (lvalue_p): Make static.
4590         (lvalue_or_else): New.  Call lvalue_error.
4591
4592 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
4593
4594         * config/rs6000/rs6000.c (rs6000_parm_start): New function.
4595         (function_arg_advance): Use rs6000_parm_start.
4596         (function_arg, rs6000_arg_partial_bytes): Likewise.
4597
4598 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
4599
4600         * c-common.c (check_case_value): Adjust comment about stripping
4601         NOPs.
4602         (handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
4603         * c-typeck.c (default_conversion, convert_arguments,
4604         build_modify_expr, convert_for_assignment, store_init_value,
4605         digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
4606         manually.  Remove inaccurate comments.
4607
4608 2005-03-20  Roger Sayle  <roger@eyesopen.com>
4609             Joseph S. Myers  <joseph@codesourcery.com>
4610
4611         * varasm.c (do_assemble_alias): Restore comment describing function.
4612         Annotate the target parameter as potentially unused.
4613
4614 2005-03-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4615
4616         PR target/18551
4617         * config/avr/avr.c (avr_output_function_prologue): Do not use
4618         current_function_name() in a label, use a local label instead.
4619
4620 2005-03-20  David Edelsohn  <edelsohn@gnu.org>
4621
4622         * config/rs6000/rs6000.c (rs6000_generate_compare): Test
4623         flag_finite_math_only, not flag_unsafe_math_optimizations.
4624
4625 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
4626
4627         * builtins.c (fold_builtin_1): Update a call to
4628         targetm.fold_builtin.
4629         * hooks.c (hook_tree_tree_bool_null): Rename to
4630         hook_tree_tree_tree_bool_null.  Take one more argument of type
4631         tree.
4632         * hooks.h: Update the prototype of hook_tree_tree_bool_null.
4633         * target-def.h (TARGET_FOLD_BUILTIN): Define it as
4634         hook_tree_tree_tree_bool_null.
4635         * target.h (gcc_target): Update the prototype of fold_builtin.
4636         * config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
4637         arguments of CALL_EXPR.
4638         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update.  Mention the
4639         new prototype.
4640
4641 2005-03-20  Jan Hubicka  <jh@suse.cz>
4642
4643         * cgraph.h (cgraph_node): Add prev_clone pointer.
4644         * cgraph.c (cgraph_remove_node): Remove from doubly linked chain.
4645         (cgraph_clone_node): Produce doubly linked chain.
4646
4647 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
4648
4649         * c-common.c (handle_aligned_attribute, check_function_sentinel,
4650         get_nonnull_operand, handle_sentinel_attribute,
4651         check_function_arguments_recurse): Do not strip NOPS from
4652         INTEGER_CSTs.
4653         * c-decl.c (check_bitfield_type_and_width, build_enumerator):
4654         Likewise.
4655         * c-format.c (get_constant): Likewise.
4656         * c-parser.c (c_parser_postfix_expression): Likewise.
4657         * c-typeck.c (set_init_index): Likewise.
4658         (convert_arguments): Don't check for NOP_EXPR containing integer
4659         constant.
4660
4661 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
4662
4663         * builtins.c (fold_fixed_mathfn, fold_builtin_trunc,
4664         fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround):
4665         Take decomposed arguments of CALL_EXPR.
4666         (fold_builtin_1): Update calls to the functions mentioned
4667         above.
4668
4669 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
4670
4671         * c-decl.c (check_bitfield_type_and_width): Require bit-field
4672         width to have integer type.
4673         (build_enumerator): Require enumerator value to have integer type.
4674
4675 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
4676
4677         * doc/extend.texi (__builtin_inf): Move statement about INFINITY
4678         to __builtin_inff.
4679
4680 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
4681
4682         * c.opt (ansi, std=iso9899:1990, std=iso9899:1999,
4683         std=iso9899:199x): Correct descriptions.
4684
4685 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
4686
4687         * config.gcc: Consistently use solaris2.1[0-9]* instead of
4688         solaris2.1[0-9].
4689
4690 2005-03-19  Kazu Hirata  <kazu@cs.umass.edu>
4691
4692         * builtins.c (fold_builtin_memcpy): Take decomposed arguments
4693         of CALL_EXPR.
4694         (expand_builtin_memcpy, fold_builtin_1): Update calls to
4695         fold_builtin_memcpy.
4696
4697         * builtins.c (fold_trunc_transparent_mathfn): Take decomposed
4698         arguments of CALL_EXPR.
4699         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil,
4700         fold_builtin_found, fold_builtin_1): Update calls to
4701         fold_trunc_transparent_mathfn.
4702
4703 2005-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4704
4705         PR middle-end/20493
4706         * fold-const.c (fold_widened_comparison): Don't optimize casts of
4707         function pointers on targets that require function pointer
4708         canonicalization.
4709         (fold_sign_changed_comparison): Likewise.
4710
4711 2005-03-19  Bernd Schmidt  <bernd.schmidt@analog.com>
4712
4713         * combine.c (try_combine): When changing the mode of a hard reg, make
4714         sure that doing so is valid.
4715
4716 2005-03-19  Richard Sandiford  <rsandifo@redhat.com>
4717
4718         * config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static.
4719         (TARGET_HANDLE_OPTION): Override default.
4720         (avr_handle_option): New function.
4721         * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP)
4722         (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS)
4723         (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS)
4724         (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS)
4725         (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK)
4726         (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG)
4727         (TARGET_SWITCHES, avr_init_stack, avr_mcu_name)
4728         (TARGET_OPTIONS): Delete.
4729         * config/avr/avr.opt: New file.
4730
4731 2005-03-18  2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
4732
4733         * config/m32r/m32r-protos.h: Remove the prototypes for
4734         call_address_operand, symbolic_operand, seth_add3_operand,
4735         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
4736         reg_or_uint16_operand, reg_or_cmp_int16_operand,
4737         two_insn_const_operand, move_src_operand,
4738         move_double_src_operand, move_dest_operand,
4739         eqne_comparison_operator, signed_comparison_operator,
4740         large_insn_p, conditional_move_operand, carry_compare_operand,
4741         m32r_block_immediate_operand, extend_operand,
4742         reg_or_eq_int16_operand, int8_operand, and
4743         reg_or_zero_operand.
4744         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
4745         seth_add3_operand, int8_operand, cmp_int16_operand,
4746         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
4747         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
4748         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
4749         move_double_src_operand, move_dest_operand,
4750         eqne_comparison_operator, signed_comparison_operator,
4751         extend_operand, small_insn_p, large_insn_p,
4752         conditional_move_operand, carry_compare_operand,
4753         m32r_block_immediate_operand): Move to predicates.md.
4754         (MAX_MOVE_BYTES): Move to m32r.h.
4755         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
4756         * config/m32r/m32r.md: Include predicates.md.
4757         * config/m32r/predicates.md: New.
4758
4759 2005-03-18  James E Wilson  <wilson@specifixinc.com>
4760
4761         PR c++/19769
4762         * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
4763         origin.
4764
4765 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
4766
4767         * config/mn10300/mn10300-protos.h: Remove the prototypes for
4768         call_address_operand, const_8bit_operand.
4769         * config/mn10300/mn10300.c (call_address_operand,
4770         const_8bit_operand, const_1f_operand): Move to predicates.md.
4771         * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
4772         * config/mn10300/mn10300.md: Include predicates.md.
4773         * config/mn10300/predicates.md: New.
4774
4775 2005-03-18  Joseph S. Myers  <joseph@codesourcery.com>
4776
4777         * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
4778         declarations in diagnostics and %E for identifiers, not %s.
4779
4780 2005-03-18  Jan Hubicka  <jh@suse.cz>
4781             Dale Johannesen  <dalej@apple.com>
4782
4783         * basic-block.h (scale_bbs_frequencies_int,
4784         scale_bbs_frequencies_gcov_type): Declare.
4785         * cfg.c (RDIV): New macro.
4786         (update_bb_frequency_for_threading): Fix.
4787         * basic-block.h (scale_bbs_frequencies_int,
4788         scale_bbs_frequencies_gcov_type): New.
4789         * cfgloopmanip.c (scale_bbs_frequencies): Kill.
4790         (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
4791         scale_bbs_frequencies_int.
4792         * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
4793
4794 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
4795
4796         * config/m32r/m32r-protos.h: Remove the prototypes for
4797         call_address_operand, symbolic_operand, seth_add3_operand,
4798         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
4799         reg_or_uint16_operand, reg_or_cmp_int16_operand,
4800         two_insn_const_operand, move_src_operand,
4801         move_double_src_operand, move_dest_operand,
4802         eqne_comparison_operator, signed_comparison_operator,
4803         large_insn_p, conditional_move_operand, carry_compare_operand,
4804         m32r_block_immediate_operand, extend_operand,
4805         reg_or_eq_int16_operand, int8_operand, and
4806         reg_or_zero_operand.
4807         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
4808         seth_add3_operand, int8_operand, cmp_int16_operand,
4809         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
4810         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
4811         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
4812         move_double_src_operand, move_dest_operand,
4813         eqne_comparison_operator, signed_comparison_operator,
4814         extend_operand, small_insn_p, large_insn_p,
4815         conditional_move_operand, carry_compare_operand,
4816         m32r_block_immediate_operand): Move to predicates.md.
4817         (MAX_MOVE_BYTES): Move to m32r.h.
4818         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
4819         * config/m32r/m32r.md: Include predicates.md.
4820         * config/m32r/predicates.md: New.
4821
4822         * config/pa/pa-protos.h: Add prototypes for magic_milli and
4823         shadd_constant_p.
4824         * config/pa/pa.c (reg_or_0_operand, call_operand_address,
4825         symbolic_operand, symbolic_memory_operand,
4826         reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
4827         indexed_memory_operand, move_dest_operand, move_src_operand,
4828         prefetch_cc_operand, prefetch_nocc_operand,
4829         reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
4830         arith_operand, arith11_operand, pre_cint_operand,
4831         post_cint_operan, arith_double_operand, ireg_or_int5_operand,
4832         ireg_operand, int5_operand, uint5_operand, int11_operand,
4833         uint32_operand, arith5_operand, and_operand, ior_operand,
4834         lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
4835         pc_or_label_operand, div_operand, plus_xor_ior_operator,
4836         shadd_operand, movb_comparison_operator,
4837         cmpib_comparison_operator): Move to predicates.md.
4838         (magic_milli, shadd_constant_p): Make it extern.
4839         * config/pa/pa.h (PREDICATE_CODES): Remove.
4840         * config/pa/pa.md: Include predicates.md.
4841         * config/pa/predicates.md: New.
4842
4843         * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
4844         predicate.
4845
4846 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
4847
4848         * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
4849         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
4850         config/alpha/freebsd.h, config/alpha/linux.h,
4851         config/alpha/netbsd.h, config/alpha/osf5.h,
4852         config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
4853         config/h8300/h8300-protos.h, config/h8300/h8300.c,
4854         config/h8300/h8300.h, config/ia64/unwind-ia64.c,
4855         doc/cppopts.texi: Update copyright.
4856
4857 2005-03-18  Jan Hubicka  <jh@suse.cz>
4858
4859         PR middle-end/20225
4860         * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
4861         too late.
4862         * varasm.c (find_decl_and_mark_needed): Mark needed only when not
4863         called too late.
4864
4865 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
4866
4867         * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
4868         VEC_safe_push.
4869
4870 2005-03-18  Paolo Bonzini  <bonzini@gnu.org>
4871
4872         * combine.c (gen_binary): Remove.
4873         (known_cond, simplify_shift_const, find_split_point,
4874         combine_simplify_rtx, simplify_if_then_else, simplify_set,
4875         simplify_logical, expand_field_assignment, extract_left_shift,
4876         force_to_mode, if_then_else_cond, apply_distributive_law,
4877         simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
4878         simplify_comparison, reversed_comparison): Replace with
4879         simplify_gen_binary, simplify_gen_relational or
4880         distribute_and_simplify_rtx.
4881         (distribute_and_simplify_rtx): New function.
4882
4883 2005-03-18  Alexey Neyman  <alex.neyman@auriga.ru>
4884             Paolo Bonzini  <gcc.gnu.org>
4885
4886         * calls.c (setjmp_call_p, special_function_p): Update comments
4887         at the head of the functions.
4888
4889 2005-03-18  Jan Hubicka  <jh@suse.cz>
4890
4891         * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
4892
4893         * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
4894         function body should be released; do not proactively release function
4895         bodies in non-unit-at-a-time mode.
4896
4897 2005-03-18  Ralf Corsepius  <ralf.corsepius@rtems.org>
4898
4899         * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
4900         mno-fp-ret-in-387 multilib variants.
4901
4902 2005-03-18  Richard Sandiford  <rsandifo@redhat.com>
4903
4904         * common.opt (m): Remove.
4905         * opts.c (handle_option): Pass 'm' options to set_target_switch if
4906         table lookup fails.
4907         (common_handle_option): Remove OPT_m case.
4908
4909 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
4910
4911         * builtins.c (fold_builtin_bitop): Take decomposed arguments
4912         of CALL_EXPR.
4913         (fold_builtin_1): Update a call to fold_builtin_bitop.
4914
4915         * builtins.c (fold_builtin_signbit): Take decomposed arguments
4916         of CALL_EXPR.
4917         (fold_builtin_1): Update a call to fold_builtin_signbit.
4918
4919 2005-03-17  Dorit Naishlos  <dorit@il.ibm.com>
4920
4921         PR tree-optimization/20474
4922         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
4923         size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
4924
4925 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
4926
4927         * config/h8300/h8300-protos.h: Remove prototypes for
4928         general_operand_src, general_operand_dst, single_one_operand,
4929         single_zero_operand, call_insn_operand,
4930         two_insn_adds_subs_operand, small_call_insn_operand,
4931         jump_address_operand, bit_operand, bit_memory_operand,
4932         stack_pointer_operand, const_int_gt_2_operand,
4933         const_int_ge_8_operand, const_int_qi_operand,
4934         const_int_hi_operand, incdec_operand, bit_operator,
4935         nshift_operator, eqne_operator, gtle_operator,
4936         gtuleu_operator, iorxor_operator.
4937         Add prototypes for h8sx_shift_type h8sx_classify_shift and
4938         h8300_ldm_stm_parallel.
4939         * config/h8300/h8300.c (h8sx_shift_type,): Move to
4940         h8300-protos.h.
4941         (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
4942         SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
4943         (h8300_ldm_stm_parallel): Make it extern.
4944         (h8300_ldm_parallel, h8300_stm_parallel,
4945         h8300_return_parallel, general_operand_src,
4946         general_operand_dst, h8300_dst_operand, h8300_src_operand,
4947         nibble_operand, reg_or_nibble_operand, single_one_operand,
4948         single_zero_operand, call_insn_operand,
4949         two_insn_adds_subs_operand, small_call_insn_operand,
4950         jump_address_operand, bit_operand, bit_memory_operand,
4951         stack_pointer_operand, const_int_gt_2_operand,
4952         const_int_ge_8_operand, const_int_qi_operand,
4953         const_int_hi_operand, incdec_operand, eqne_operator,
4954         gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
4955         h8sx_binary_memory_operator, h8sx_unary_memory_operator,
4956         h8sx_unary_shift_operator, h8sx_binary_shift_operator,
4957         nshift_operator): Move to predicates.md.
4958         * config/h8300/h8300.h (PREDICATE_CODES): Remove.
4959         * config/h8300/h8300.md: Include predicates.md.
4960         * config/h8300/predicates.md: New.
4961
4962 2005-03-17  Richard Henderson  <rth@redhat.com>
4963
4964         * config.gcc (ia64*-*-hpux*): Add extra_options.
4965         * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
4966         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
4967         * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
4968         (ia64_tls_size_string, ia64_tune_string): Remove.
4969         (ia64_tune): Init to PROCESSOR_ITANIUM2.
4970         (TARGET_DEFAULT_TARGET_FLAGS): New.
4971         (TARGET_HANDLE_OPTION): New.
4972         (ia64_override_options): Move options parsing ...
4973         (ia64_handle_option): ... here.  New.
4974         * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
4975         MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
4976         MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
4977         MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
4978         MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
4979         MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
4980         MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
4981         TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
4982         TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
4983         TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
4984         TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
4985         TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
4986         TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
4987         TARGET_EARLY_STOP_BITS): Remove.
4988         (TARGET_ILP32): Default false.
4989         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
4990         (enum ia64_inline_type): New.
4991         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
4992         * config/ia64/ia64.md: Update for new definitions of
4993         TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
4994         * config/ia64/ia64.opt: New file.
4995         * config/ia64/ilp32.opt: New file.
4996
4997 2005-03-17  H.J. Lu  <hongjiu.lu@intel.com>
4998
4999         PR target/18380
5000         * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
5001
5002 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
5003
5004         * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
5005         instead of MASK_H8300S.
5006         * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
5007         MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
5008         MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
5009         MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
5010         TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
5011         TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
5012         TARGET_SWITCHES): Remove.
5013         (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
5014         TARGET_H8300SX.
5015         * config/h8300/h8300.opt: New.
5016
5017         * config/alpha/alpha.opt, config/arc/arc.opt,
5018         config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
5019         notices.
5020
5021 2005-03-17  Ian Lance Taylor  <ian@airs.com>
5022
5023         * gmon.c: Remove.
5024
5025 2005-03-17  Richard Sandiford  <rsandifo@redhat.com>
5026
5027         * config/arc/arc.c (arc_cpu_string): Make static.  Default to "base"
5028         (arc_text_string, arc_data_string, arc_rodata_string): Make static.
5029         (TARGET_HANDLE_OPTION): Override default.
5030         (arc_handle_option): New function.
5031         (arc_init): Remove code to set arch_cpu_string.
5032         * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
5033         (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
5034         (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
5035         (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
5036         (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
5037         (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
5038         (arc_rodata_string, TARGET_OPTIONS): Delete.
5039         * config/arc/arc.opt: New file.
5040
5041 2005-03-17  Richard Henderson  <rth@redhat.com>
5042
5043         * doc/extend.texi (Weak Pragmas): New section.
5044         (attribute alias): Clarify that target must be in the same
5045         translation unit.
5046
5047 2005-03-17  Richard Henderson  <rth@redhat.com>
5048
5049         * config/alpha/alpha.opt: New file.
5050         * config/alpha/alpha.c (alpha_tune): New.  Rename all existing uses
5051         of alpha_cpu.
5052         (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
5053         alpha_fprm_string, alpha_fptm_string): Make static.
5054         (alpha_tls_size_string): Remove.
5055         (alpha_handle_option): New.
5056         (override_options): Update for alpha_cpu/alpha_tune split.
5057         (alpha_file_start): Likewise.
5058         (TARGET_DEFAULT_TARGET_FLAGS): New.
5059         (TARGET_HANDLE_OPTION): New.
5060         * config/alpha/alpha.h (alpha_tune): Declare.
5061         (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
5062         MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
5063         MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
5064         TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
5065         TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
5066         TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
5067         MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
5068         MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
5069         TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
5070         TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
5071         (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
5072         (TARGET_DEFAULT): Remove MASK_FP.
5073         (TARGET_FP): Redefined based on TARGET_SOFT_FP.
5074         (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
5075         (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
5076         alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
5077         alpha_tls_size_string): Remove.
5078         * config/alpha/alpha.md (prefetch): Use alpha_cpu.
5079         (attribute tune): Rename from attribute cpu.
5080         * config/alpha/ev4.md: Update to match.
5081         * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
5082         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
5083         * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
5084         * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
5085         * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
5086         * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
5087
5088 2005-03-16  James E. Wilson  <wilson@specifixinc.com>
5089
5090         * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
5091         and return without creating new state if before_nops_num is nonzero.
5092         * config/ia64/ia64.md (first_insn): New attribute.
5093         (alloc): Set it to yes.
5094
5095 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
5096
5097         * tree-vectorizer.c (new_vec_stmt_info): Initialize
5098         STMT_VINFO_SUBVARS to NULL.
5099         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
5100
5101 2005-03-16 Dale Johannesen  <dalej@apple.com>
5102
5103         * rtlanal.c (find_first_parameter_load):  Rewrite to
5104         return actual first param load or the call if none,
5105         instead of first in block, when not all loads exist.
5106
5107 2005-03-16  Roger Sayle  <roger@eyesopen.com>
5108
5109         * optabs.c (expand_copysign_absneg): Make static.
5110         * optabs.h (expand_copysign_absneg): Delete prototype.
5111         * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
5112
5113 2005-03-16  Richard Henderson  <rth@redhat.com>
5114
5115         PR middle-end/15700
5116         * varasm.c (struct alias_pair): Rename from struct output_def_pair.
5117         (alias_pairs): Rename from output_defs.
5118         (find_decl_and_mark_needed): Split out from assemble_alias.
5119         (do_assemble_alias): New.
5120         (assemble_output_def): Remove.
5121         (finish_aliases_1, finish_aliases_2): New.
5122         (process_pending_assemble_output_defs): Remove.
5123         (assemble_alias): Defer aliases for which we don't yet have a
5124         non-external decl for the target symbol.
5125         * passes.c (rest_of_decl_compilation): Register variables with cgraph.
5126         * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
5127         * toplev.c (compile_file): Use finish_aliases_2 instead of
5128         process_pending_assemble_output_defs.
5129         * tree.h (finish_aliases_1, finish_aliases_2): Declare.
5130         (process_pending_assemble_output_defs): Remove.
5131
5132 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
5133
5134         Fix PR tree-optimization/20489
5135
5136         * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
5137         for empty structures.
5138
5139 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
5140
5141         Fix PR tree-optimization/20490
5142
5143         * tree-ssa-pre.c (create_expression_by_pieces): Use
5144         force_gimple_operand on result of fold.
5145
5146 2005-03-16  Andrew Pinski  <pinskia@physics.uc.edu>
5147
5148         * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
5149         of closing parenthesis.
5150
5151 2005-03-16  Kazu Hirata  <kazu@cs.umass.edu>
5152
5153         * builtins.c (expand_movstr): Update a call to
5154         fold_builtin_strcpy.
5155         (expand_builtin_strncpy): Update a call to
5156         fold_builtin_strncpy.
5157         (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
5158         arguments of CALL_EXPR.
5159         (fold_builtin_1): Update calls to fold_builtin_strcpy and
5160         fold_builtin_strncpy.
5161         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
5162         * tree.h: Update the prototypes of fold_builtin_strcpy and
5163         fold_builtin_strncpy.
5164
5165 2005-03-16  Steven Bosscher  <stevenb@suse.de>
5166             Dorit Naishlos  <dorit@il.ibm.com>
5167
5168         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy
5169         UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero"
5170         error.
5171
5172 2005-03-16  Steven Bosscher  <stevenb@suse.de>
5173
5174         * tree-inline.c (walk_type_fields, walk_tree,
5175         walk_tree_without_duplicates): Move from here...
5176         * tree.c: ...to here.
5177
5178 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
5179
5180         * BASE-VER, DATESTAMP, DEV-PHASE: New files.
5181         * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
5182         (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
5183         (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
5184         (version): Define using $(BASEVER_c).
5185         (Makefile, config.status, build/gcov-iov.o): No longer depends on
5186         version.c.
5187         (version.o): Depend on version files; add custom generation command.
5188         (prefix.o): Define BASEVER on command line.
5189         (s-iov): Depend on version files; adjust command.
5190         (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
5191         Add gcc-vers.texi.
5192         (gcc-vers.texi): New rule.
5193         (doc/%.info, doc/%.dvi): Add -I . to command line.
5194         (doc/gccinstall.dvi): Likewise.
5195         (PACKAGE): Delete.  All uses replaced with "gcc".
5196         * aclocal.m4: Do not include gcc-version.m4.
5197         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
5198         Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
5199         Set is_release based on contents of DEV-PHASE.
5200         Set gcc_version based on contents of BASE-VER.
5201         Define WIN32_REGISTRY_KEY only if the user overrode the default.
5202         * config.in, configure: Regenerate.
5203         * gccbug.in: Determine version of GCC in use at runtime.
5204         * gcov-iov.c: Get version number and development phase from
5205         command line, not by including version.c.
5206         * intl.c: Replace all uses of PACKAGE with "gcc".
5207         * libada-mk.in: Delete unused "gcc_version" variable.
5208         * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
5209         * version.c: (VERSUFFIX): New hook for redistributors; adjust
5210         commentary to match.
5211         (version_string): Put together from pieces.
5212         * config/alpha/x-vms: Do not use $(gcc_version).
5213         * config/i386/t-nwld: Likewise.
5214         * doc/include/gcc-common.texi: Include gcc-vers.texi for
5215         version-GCC and DEVELOPMENT.
5216
5217 2005-03-15  Roger Sayle  <roger@eyesopen.com>
5218
5219         PR tree-optimization/17454
5220         * tree.c (tree_size): Add case for TREE_BINFO.
5221         * fold-const.c (fold_checksum_tree): Only clear the overloaded
5222         field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
5223
5224 2005-03-15  Roger Sayle  <roger@eyesopen.com>
5225
5226         * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
5227         op1 whilst expanding the signed widenening multiply variant.
5228
5229 2005-03-15  Richard Sandiford  <rsandifo@redhat.com>
5230
5231         * toplev.c (display_target_options): Avoid unused variable warning if
5232         TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
5233         * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
5234         (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
5235         (mips_isa): Initialize to MIPS_ABI_DEFAULT.
5236         (mips_isa_info): New variable.
5237         (mips_parse_cpu): Remove the first argument and leave the caller
5238         to report errors.
5239         (TARGET_HANDLE_OPTION): Override default.
5240         (mips_handle_option): New function.  Move option validation code from...
5241         (override_options): ...here.  Update calls to mips_parse_cpu.
5242         * config/mips/mips.h (mips_arch_string, mips_tune_string)
5243         (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
5244         (SUBTARGET_TARGET_OPTIONS): Delete.
5245         * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
5246         (mno-flush-func, mtune=): New options.
5247
5248 2005-03-15  Roger Sayle  <roger@eyesopen.com>
5249             Richard Henderson  <rth@redhat.com>
5250
5251         * real.c (c4x_single_format, c4x_extended_format): Provide values
5252         for signbit_ro for c4x's single and extended floating point formats.
5253         * optabs.c (expand_copysign): Use the floating point format's
5254         signbit_ro for expanding via expand_copysign_absneg, and it's
5255         signbit_rw field for expanding via expand_copysign_bit.
5256
5257 2005-03-15  Dorit Naishlos  <dorit@il.ibm.com>
5258
5259         * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
5260         known_alignment_for_access_p.
5261         (known_alignment_for_access_p): New.
5262         (do_peeling_for_alignment): Field made int instead of bool and renamed
5263         to peeling_for_alignment.
5264         (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
5265         * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
5266         functionality used to be in vect_analyze_operations.
5267         (vect_analyze_operations): Code to determine vectorization factor was
5268         moved to vect_determine_vectorization_factor.
5269         (vect_enhance_data_refs_alignment): Update to correct alignment when it
5270         is known instead of -1.  Set LOOP_PEELING_FOR_ALIGNMENT to peeling
5271         factor.
5272         (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
5273         be part of vect_analyze_operations).
5274         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
5275         creating the guard condition, as the number of iterations may be
5276         constant.
5277         (slpeel_tree_peel_loop_to_edge): Use new name of
5278         LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
5279         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
5280         alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
5281         (vect_do_peeling_for_alignment): Use fold.
5282         (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
5283
5284         (vect_update_inits_of_dr): Renamed to
5285         vect_update_init_of_dr.
5286         (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
5287         (vectorizable_store): Fix assertion to use == instead of =.
5288
5289 2005-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
5290
5291         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
5292         call_used_regs for wCG registers.
5293
5294 2005-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
5295
5296         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
5297         for non-offsettable memory references to cope with outstanding reload
5298         replacements, take 2.
5299
5300 2005-03-15  Uros Bizjak  <uros@kss-loka.si>
5301
5302         PR target/18668
5303         * config/i386/i386.h (x86_fisttp): New.
5304         (TARGET_FISTTP): New macro.
5305         * config/i386/i386.c (x86_fisttp): Set for NOCONA.
5306         (output_fix_trunc): Add fisttp parameter.  Generate fisttp x87
5307         instruction when fisttp flag is set.
5308         * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
5309
5310         * config/i386/i386.md (type attribute): Add fisttp.
5311         (unit attribute): Set to i387 for fisttp type.
5312         (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
5313         (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
5314         TARGET_FISTTP.
5315         (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
5316         Generate fisttp patterns for TARGET_FISTTP. Implement using mode
5317         macros.
5318         (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
5319         patterns for TARGET_FISTTP.  Enable patterns for
5320         (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
5321         (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
5322         fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
5323         implement fisttp x87 insn.
5324         (fix_trunc*_i387_fisttp splitters): New patterns.
5325         (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
5326         Rename to *fix_trunc<mode>_i387_1.  Implement using mode macros.
5327         Disable patterns for TARGET_FISTTP.  Add comment about FLAGS_REG
5328         clobber.
5329         (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
5330         Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
5331         Implement using mode macros. Disable patterns for TARGET_FISTTP.
5332         (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
5333         fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
5334         fix_trunc<mode>_i387_with_temp. Implement using mode macros.
5335         Disable patterns for TARGET_FISTTP.
5336         (fix_trunc*_i387 splitters): Implement usign mode macros.
5337         (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
5338         fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
5339         (fix_trunx*_sse peephole2s): Implement using mode macros.
5340
5341 2005-03-15  J"orn Rennecke <joern.rennecke@st.com>
5342
5343         PR rtl-optimization/20291
5344         * combine.c (try_combine): If splitting fails, re-try with
5345         original combined pattern, i.e. before clobber stripping.
5346
5347 2005-03-14  Eric Christopher  <echristo@redhat.com>
5348
5349         * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
5350         STACK_GROWS_DOWNWARD.
5351
5352 2005-03-14  Roger Sayle  <roger@eyesopen.com>
5353
5354         * real.h (struct real_format): Split the signbit field into two
5355         two fields, signbit_ro and signbit_rw.
5356         * real.c (ieee_single_format, mips_single_format, ieee_double_format,
5357         mips_double_format, ieee_extended_motorola_format,
5358         ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
5359         ieee_extended_intel_128_format, ibm_extended_format,
5360         mips_extended_format, ieee_quad_format, mips_quad_format,
5361         vax_f_format, vax_d_format, vax_g_format, i370_single_format,
5362         i370_double_format, c4x_single_format, c4x_extended_format,
5363         real_internal_format): Update initializers for new field.
5364         * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
5365         real_format structure.
5366         * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
5367         field of the real_format structure.
5368
5369 2005-03-14  Daniel Berlin <dberlin@dberlin.org>
5370
5371         Fix PR tree-optimization/20458
5372
5373         * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
5374         DECL_EXTERNAL on STRUCT_FIELD tags.
5375         (clear_call_clobbered): Ditto.
5376         * tree-ssa-operands.c (note_addressable): Make sure the original
5377         variable doesn't slip into the addressable list if we have
5378         subvars.
5379         * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
5380         tags too.
5381
5382 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
5383
5384         * doc/cppopts.texi (-fexec-charset): Add concept index entry.
5385         (-fwide-exec-charset): Likewise.
5386         (-finput-charset): Likewise.
5387         * doc/invoke.texi (Warning Options): Document -Wnormalized=.
5388         * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
5389         * c.opt (Wnormalized): New.
5390
5391 2005-03-14  Devang Patel  <dpatel@apple.com>
5392
5393         * doc/invoke.texi: Add reference to Visibility document.
5394
5395 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
5396
5397         * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
5398         MASK_SPLIT_ADDRESSES.
5399         * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
5400         (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
5401         (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
5402         (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
5403         (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
5404         (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
5405         (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
5406         (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
5407         (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
5408         (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
5409         (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
5410         (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
5411         (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
5412         (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
5413         (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
5414         (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
5415         (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
5416         (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
5417         (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
5418         (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
5419         (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
5420         (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
5421         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
5422         (TARGET_EXPLICIT_RELOCS): Delete.
5423         (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
5424         (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
5425         * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
5426         (override_options): Set MASK_LONG64 if -mint64 is given and no
5427         -mlongXX option is.  Complain about -mint64 -mlong32.
5428         (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
5429         MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
5430         * config/mips/mips.opt: New file.
5431
5432 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
5433
5434         * config.gcc (extra_options): New variable for listing option files.
5435         Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
5436         * configure.ac (extra_opt_files): New AC_SUBST variable.
5437         (tm_file_list, tm_include_list): Include options.h first.
5438         * configure: Regenerate.
5439         * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
5440         (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
5441         (s-options-h): New rule.
5442         (options.h): Depend on it.
5443         (TEXI_GCCINT_FILES): Add options.texi.
5444         * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
5445         * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
5446         * target.h (gcc_target): Add default_target_flags and handle_option.
5447         * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
5448         (TARGET_HANDLE_OPTION): New macros.
5449         (TARGET_INITIALIZER): Include them.
5450         * opt-functions.awk (opt_args, nth_arg): New functions.
5451         (switch_flags): Handle the "Target" flag.
5452         (var_args): Delete.
5453         (var_name): Use opt_args and nth_arg.
5454         (var_set, var_ref): Likewise.  Handle "Mask" and "InverseMask".
5455         * opth-gen.awk: Declare target_flags.  Declare MASK_* and TARGET_*
5456         macros for the "Mask" and "InverseMask" options.
5457         * opts.h (cl_var_cond): New enum.
5458         (cl_option): Replace the "has_set_value" and "set_value" fields with
5459         "var_cond" and "var_value".
5460         (CL_TARGET): New macro.
5461         (option_enabled, print_filtered_help): Declare.
5462         (decode_options): Move definition.
5463         * opts.c (handle_option): Search for the original option before
5464         removing any "no-" prefix.  Handle CL_TARGET.  Adjust for the new
5465         var_cond and var_value fields.  Use targetm.handle_option to handle
5466         target options.
5467         (decode_options): Set target_flags to targetm.default_target_flags.
5468         (print_filtered_help): Make global.  Handle CL_TARGET.
5469         (option_enabled): New function.
5470         * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
5471         (display_target_options, set_target_switch, print_switch_values)
5472         (default_pch_valid_p): Guard uses of target_switches with
5473         #ifdef TARGET_SWITCHES.  Also...
5474         (display_target_options): Display the CL_TARGET entries in cl_options.
5475         (set_target_option): Don't complain about the "" option when
5476         TARGET_SWITCHES is undefined.
5477         (print_switch_values): Use option_enabled.
5478         (default_pch_valid_p): Check cl_options[] when looking for something
5479         that has changed the value of target_flags.
5480         * c.opt: Remove documentation from top of file.
5481         * doc/gccint.texi: Add an "Options" chapter.  Include options.texi.
5482         * doc/sourecebuild.texi: Refer to the new options documentation
5483         instead of c.opt.  Document machine-specific .opt files.
5484         * doc/tm.texi (target_flags): Say that this variable is declared
5485         by options.h.
5486         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
5487         (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
5488         an alternative.
5489         * doc/options.texi: New file.
5490
5491 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
5492
5493         PR middle-end/18628
5494         * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
5495         register.
5496
5497 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
5498
5499         PR c++/20280
5500         * gimplify.c (gimplify_cond_expr): Add fallback argument.  Use a
5501         temporary variable of pointer type if an lvalues is required.
5502         (gimplify_modify_expr_rhs): Request an rvalue from it.
5503         (gimplify_expr): Pass fallback on.
5504
5505 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
5506
5507         * cfgbuild.c: Update comments.
5508
5509 2005-03-14  Roger Sayle  <roger@eyesopen.com>
5510
5511         PR rtl-optimization/17236
5512         * optabs.c (expand_doubleword_mult): New helper function split out
5513         from expand_binop.  Permute the order in which instructions are
5514         emitted to minimize the number of simultaneously live registers.
5515         (expand_binop): Call expand_doubleword_mult to synthesize a double
5516         word multiplication.
5517
5518 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
5519
5520         * basic-block.h: Update the prototypes of cached_make_edge and
5521         rtl_make_eh_edge.
5522         * cfg.c (cached_make_edge): Take edge_cache representing one
5523         row of the adjacency matrix of edges.
5524         * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
5525         (make_edges): Initialize edge_cache to represent one row of
5526         the adjacency matrix of edges.
5527
5528 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
5529
5530         * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
5531         New functions.
5532         (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
5533         Remove unused removed_phis variable.
5534         (conditional_replacement): Use build1/build2.
5535         (abs_replacement): Use last_and_only_stmt and build1/build2.
5536
5537 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
5538
5539         * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
5540         ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
5541         * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
5542         (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
5543         * c-common.c (handle_novops_attribute): New function.
5544         (c_common_attribute_table): Add "no vops" entry.
5545         * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
5546         * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
5547         * tree-ssa-operands.c (get_call_expr_operands): Do not
5548         create virtual operands for calls with ECF_NOVOPS flag.
5549         * tree.h (DECL_IS_NOVOPS): New macro.
5550         (struct tree_decl): Add novops_flag.
5551         (ECF_NOVOPS): New constant.
5552
5553 2005-03-14  Uros Bizjak  <uros@kss-loka.si>
5554
5555         PR target/17688
5556         * config/i386/i386.c (x86_use_himode_fiop): New.
5557         (x86_use_simode_fiop): Rename from x86_use_fiop.
5558         * config/i386/i386.h (x86_use_himode_fiop): Declare.
5559         (TARGET_USE_HIMODE_FIOP): New.
5560         (x86_use_simode_fiop): Rename from x86_use_fiop.
5561         (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
5562
5563         * config/i386/i386.md (X87MODEI12): New mode macro define.
5564         (*cmpfp_<mode>): Rename from *cmpfp_si.  Use X87MODEI12 mode macro
5565         to implement x87 FP compare with HImode input operands.
5566         (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
5567         Use X87MODEI12 mode macro to handle HImode input operands.
5568         (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
5569         *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
5570         Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
5571         *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
5572         macro to implement x87 operators with HImode input operands.
5573         (fop splitters): Use X87MODEI12 mode macro to handle HImode
5574         input operands.
5575
5576 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
5577
5578         * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
5579         integer_zerop.
5580         * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
5581         constants invariant.
5582
5583 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
5584
5585         * basic-block.h (BB_VISITED): Removed.
5586         * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
5587
5588 2005-03-14  Falk Hueffner  <falk@debian.org>
5589
5590         PR bootstrap/20424
5591         * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
5592
5593 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
5594
5595         * ggc-zone.c: Fix comment typos.
5596
5597         * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
5598         stringpool.c, config/mips/mips-protos.h: Update copyright.
5599
5600 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
5601
5602         * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
5603         throughout with its typedef, "rtx".
5604         * config/rs6000/rs6000.c: Likewise.  Formatting fixes.
5605         (rs6000_tls_symbol_ref_1): Remove inline keyword.
5606         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting.  Reorder
5607         regs in comment to match code.
5608
5609 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
5610
5611         * except.c (check_handled): Make it static.
5612         * except.h: Remove the corresponding prototype.
5613
5614         * function.c (get_func_frame_size): Make it static.
5615         * function.h: Remove the corresponding type.
5616
5617         * regclass.c (reg_class_superclasses, reg_class_subclasses):
5618         Make them static.
5619         * hard-reg-set.h: Remove the corresponding declarations.
5620
5621         * tree-cfg.c (verify_stmts): Check that
5622         bb_for_stmt (stmt) == bb for every PHI node and statement.
5623
5624 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
5625
5626         * config.gcc: Remove excess indentation.
5627         (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
5628
5629 2005-03-13  Roger Sayle  <roger@eyesopen.com>
5630
5631         PR middle-end/19331
5632         * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
5633         * fold-const.c (fold_sign_changed_comparison): Likewise.
5634         (fold_binary): Optimize comparisons against widened operands if
5635         the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
5636
5637 2005-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
5638
5639         * config/sparc/sparc.c (struct_value_alias_set): New global variable.
5640         (sparc_override_options): Initialize it.
5641         (sparc_struct_value_rtx): Set it on the MEM to be returned.
5642
5643 2005-03-13  David Edelsohn  <edelsohn@gnu.org>
5644
5645         * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
5646         (reg_or_none500mem_operand): New predicate.
5647         (zero_reg_mem_operand): New predicate.
5648         * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
5649         to reg_or_none500mem_operand.
5650         (extendsfdf2_fpr): Add MEM alternative.
5651         (extenddftf2_internal): Change operand2 predicate to
5652         zero_reg_mem_operand.
5653
5654 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
5655
5656         * ggc-zone.c: Rewritten.
5657
5658         * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
5659         if there are none.
5660         * configure.ac: Define GGC_ZONE for --with-gc=zone.
5661         * config.in: Regenerated.
5662         * configure: Regenerated.
5663         * gengtype.c (write_types_process_field, write_func_for_structure):
5664         Pass new argument to gt_pch_note_object.
5665         * ggc-common.c (struct ptr_data): Add TYPE.
5666         (gt_pch_note_object): Take TYPE argument and save it.
5667         (call_count): Update call to ggc_pch_count_object.
5668         (call_alloc): Update call to ggc_pch_alloc_object.
5669         (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
5670         file.
5671         * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
5672         * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
5673         (ggc_alloc_zone_stat): Delete.
5674         (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
5675         * ggc.h (gt_pch_note_object, ggc_pch_count_object)
5676         (ggc_pch_alloc_object): Update prototypes.
5677         (garbage_zone): Delete.
5678         (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
5679         GGC_ZONE conditional.  Update.  Change tree_zone and rtl_zone into
5680         pointers.
5681         (tree_id_zone): New variable.
5682         (ggc_alloc_cleared_zone): Remove unused.
5683         (ggc_alloc_zone): Define.
5684         (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
5685         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
5686         ggc_alloc_zone_stat.
5687         * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
5688         * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
5689         (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
5690         (make_node_stat): Likewise.  Use tree_id_zone.
5691
5692 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
5693             Joseph S. Myers  <joseph@codesourcery.com>
5694
5695         * configure.ac: Check for MIPS TLS.
5696         * configure: Regenerated.
5697         * config/mips/mips-protos.h (enum mips_symbol_type): Add
5698         SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
5699         SYMBOL_GOTTPREL, and SYMBOL_TPREL.
5700         * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
5701         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
5702         (mips_classify_symbol, mips_symbolic_constant_p)
5703         (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
5704         (mips_tls_operand_p, mips_call_tls_get_addr)
5705         (mips_legitimize_tls_address, mips_cannot_force_const_mem)
5706         (mips_tls_symbol_ref_1): New functions.
5707         (mips_legitimize_address, mips_legitimize_const_move): Call
5708         mips_legitimize_tls_address.
5709         (override_options): Handle V1_REG and TLS symbols.  Disable TLS
5710         for MIPS16.
5711         * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
5712         (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
5713         (mips_char_to_class): Document V1_REG.
5714         (HAVE_AS_TLS): Provide default.
5715         * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
5716         constants.
5717         (load_got<mode>): Renamed from *load_got<mode>.  Allow when
5718         !TARGET_ABICALLS.
5719         (tls_get_tp_<mode>): New instruction.
5720
5721 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
5722
5723         * configure.ac: Update checks for target tools.
5724         * configure: Regenerated.
5725
5726 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
5727
5728         * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
5729
5730 2005-03-13  Roger Sayle  <roger@eyesopen.com>
5731
5732         * expmed.c (expand_mult): Use synthetic multiplication sequences for
5733         more classes of DImode multiplication by constant.  Allow both
5734         multiplication by small negative constants (by performing a
5735         multiplication by a positive constant and negating the result) and
5736         multiplications by large powers of two, by using a left shift.
5737
5738 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
5739
5740         * tree-into-ssa.c (find_idf): Speed up by putting the indexes
5741         of basic blocks into work_stack.
5742
5743         * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
5744         config/mips/vr.h: Update copyright.
5745
5746         * c-decl.c (c_init_decl_processing): Remove useless calls to
5747         build_function_type.
5748
5749         * builtins.c (fold_trunc_transparent_mathfn,
5750         fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
5751         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
5752         fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
5753         fold_builtin_strcpy, fold_builtin_strncpy,
5754         fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
5755         TREE_TYPE (exp).
5756
5757         * builtins.c (expand_builtin_mathfn_3): Remove local variable
5758         before_call.
5759
5760         * lambda-code.c (lambda_compute_auxillary_space): Remove local
5761         variable determinant.
5762
5763         * tree-cfg.c (group_case_labels): Remove local variable type.
5764
5765         * tree-ssa-live.c (build_tree_conflict_graph): Remove local
5766         variable ann.
5767
5768         * tree-ssa-phiopt.c (value_replacement): Remove local variable
5769         result.
5770
5771 2005-03-13  Andy Hutchinson  <HutchinsonAndy@netscape.net>
5772
5773         PR target/18251
5774         * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
5775         (*movmemqi_insn): Delete.
5776         (*movmemhi): Delete.
5777
5778 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
5779
5780         * builtins.c (fold_builtin_classify): Take decomposed
5781         arguments of CALL_EXPR.
5782         (fold_builtin_1): Update a call to fold_builtin_classify.
5783
5784 2005-03-13  Joseph S. Myers  <joseph@codesourcery.com>
5785
5786         PR c/20402
5787         * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
5788         through into call to parser_xref_tag after parse error.
5789         (c_parser_struct_declaration): Consistently return NULL_TREE on
5790         error.
5791
5792 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
5793
5794         * tree-flow-inline.h (ref_contains_array_ref): New function.
5795         (lookup_subvars_for_var): Ditto.
5796         (get_subvars_for_var): Ditto.
5797         (var_can_have_subvars): Ditto.
5798
5799         * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
5800         (struct subvar): New type.
5801
5802         * tree-dfa.c (okay_component_ref_for_subvars): New function.
5803
5804         * tree-optimize.c (init_tree_optimization_passes): Call
5805         pass_create_structure_vars.
5806
5807         * tree-ssa-alias.c: Include vec.h.
5808         (init_alias_info): Don't auto-clear call clobbered on struct-field
5809         tags.
5810         (compute_flow_insensitive_aliasing): Handle subvars.
5811         (group_aliases): Handle STRUCT_FIELD aliases.
5812         (setup_pointers_and_addressables): Ditto.
5813         Don't mark variables non-addressable if they still have
5814         addressable subvars.
5815         Also mark subvars addressable when the real variable is marked
5816         addressable.
5817         (add_pointed_to_var): Try to prune the pointed-to set by only
5818         pointing to subvars when possible.
5819         Otherwise, make sure we set addresses_needed and pt_vars to
5820         properly include subvars.
5821         (bitpos_of_field): New function.
5822         (push_fields_onto_fieldstack): Ditto.
5823         (get_or_create_used_part_for): Ditto.
5824         (create_overlap_variables_for): Ditto.
5825         (find_used_portions): Ditto.
5826         (create_structure_vars): Ditto.
5827         (pass_create_structure_vars): New structure.
5828
5829         * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
5830         (get_expr_operands): Handle subvars.  Also try to turn
5831         COMPONENT_REF accesses into must-defs now that we can accurately
5832         portray it.
5833         (note_addressable): Try to only mark as addressable those subvars
5834         we know a COMPONENT_REF touches.
5835         (overlap_subvar): New function.
5836
5837         * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
5838         Handle subvar storing.
5839         (vect_address_analysis): Update caller of vect_object_analysis.
5840
5841         * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
5842
5843         * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
5844         (STMT_VINFO_SUBVARS): New macro.
5845
5846         * common.opts: add flag_tree_salias.
5847
5848         * opts.c (decode_options): flag_tree_salias defaults to on.
5849
5850         * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
5851
5852         * doc/tree-ssa.texi: Document structural alias analysis.
5853
5854 2005-03-12  Steven Bosscher  <stevenb@suse.de>
5855
5856         * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
5857         * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
5858         * tree-ssa-operands.c (get_expr_operands): Likewise.
5859         (get_expr_operands): Likewise for ERROR_MARK.
5860
5861 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
5862
5863         * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
5864         var.
5865
5866         * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
5867         removed_phis.
5868
5869         * tree-ssa-pre.c (compute_avail): Remove local variable val.
5870         (mark_operand_necessary): Remove local variable ver.
5871
5872         * tree-vect-transform.c (vect_get_new_vect_var): Remove local
5873         variable prefix_len.
5874
5875         * value-prof.c (mod_subtract_transform): Remove local variable
5876         value.
5877
5878         * builtins.c (fold_builtin_exponent): Take decomposed
5879         arguments of CALL_EXPR.
5880         (fold_builtin_1): Update a call to fold_builtin_exponent.
5881
5882         * builtins.c (fold_builtin_logarithm): Take decomposed
5883         arguments of CALL_EXPR.
5884         (fold_builtin_1): Update a call to fold_builtin_logarithm.
5885
5886         * c-decl.c (c_init_decl_processing): Remove local variables
5887         ptr_ftype_void and ptr_ftype_ptr.
5888
5889         * gimplify.c (gimplify_expr): Remove local variables r0 and
5890         r1.
5891
5892         * reg-stack.c (move_for_stack_reg): Remove local variable
5893         push_insn.
5894         (compare_for_stack_reg): Remove local variable flags_user.
5895         (convert_regs_1): Remove local variable deleted.
5896
5897         * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
5898         variable new_cond.
5899         (combine_blocks): Remove local variables exits and new_e.
5900
5901         * tree-inline.c (expand_call_inline): Remove local variable
5902         decl.
5903
5904         * tree-ssa-live.c (create_ssa_var_map,
5905         calculate_live_on_entry): Remove local variable snn.
5906
5907 2005-03-12  Geoffrey Keating  <geoffk@apple.com>
5908
5909         * c-lex.c (c_lex_with_flags): Add parameter to call to
5910         cpp_spell_token.
5911
5912 2005-03-11  Per Bothner  <per@bothner.com>
5913
5914         * c-tree.h (struct c_declarator): New id_loc field.
5915         * c-pragma.h (c_lex_with_flags): Take position reference.
5916         * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
5917         iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
5918         (c_lex): Pass dummy location to c_lex_with_flags.
5919         * c-parser.c (c_lex_one_token): Set c_token's location using
5920         c_lex_with_flags, instead of input_location, which might be "ahead".
5921         (c_parser_direct_declarator): Set declarator's id_loc from
5922         c_token's id_loc.
5923         * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
5924         declarator's id_loc, rather than probably-imprecise input_location.
5925         (build_id_declarator): Initialize c_declarator's id_loc field.
5926
5927 2005-03-11  Roger Sayle  <roger@eyesopen.com>
5928
5929         PR middle-end/20419
5930         * builtins.c (expand_builtin_signbit): Force the signbit's word
5931         into an integer register to avoid SUBREGs of floating point modes.
5932
5933 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
5934
5935         * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
5936         target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
5937         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
5938         config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
5939
5940 2005-03-11  David Edelsohn  <edelsohn@gnu.org>
5941
5942         PR rtl-optimization/20306
5943         * expr.c (emit_move_complex): Set try_int false if mode is
5944         MODE_COMPLEX_FLOAT and mov_optab exists for inner mode.  Only try
5945         emit_block_move if try_int is true.
5946
5947 2005-03-11  Richard Henderson  <rth@redhat.com>
5948
5949         PR target/20415
5950         * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
5951         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
5952         to match.
5953
5954 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
5955
5956         * config/mips/mips.h (mips_fix_vr4130_string): Declare.
5957         (TARGET_FIX_VR4130): New macro.
5958         (TARGET_OPTIONS): Add -mfix-vr4130.
5959         (ISA_HAS_MACCHI): New macro.
5960         (ASM_SPEC): Add -mfix-vr4130.
5961         * config/mips/mips.c (mips_fix_vr4130_string): New variable.
5962         (override_options): Handle mips_fix_vr4130_string.
5963         (mips_avoid_hazards): Clear all_noreorder_p
5964         if we're working around VR4130 errata and the macc alternatives
5965         are not available.
5966         * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
5967         (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
5968         * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
5969         (MULTILIB_DEFAULTS): Remove leading "march=".
5970         (DRIVER_SELF_SPECS): Likewise.  Make -mfix-vr4130 imply -march=vr4130
5971         if no architecture option is given.
5972         * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
5973         VR4130 multilibs.
5974         (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
5975         * doc/invoke.texi: Document -mfix-vr4130.
5976
5977 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
5978
5979         * config/mips/mips.c (override_options): Only warn about -mint64
5980         deprecation if TARGET_INT64.
5981
5982 2005-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5983
5984         * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
5985         ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
5986         ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
5987         are non-specific regarding the nonnull parameter positions.
5988         (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
5989         ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
5990         ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
5991         ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
5992
5993         * builtins.def: Use the non-specific "nonnull" attibute lists.
5994
5995 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
5996
5997         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
5998         single_pred_edge, single_succ, single_pred): Improve comments.
5999
6000 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
6001
6002         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
6003         single_pred_edge, single_succ, single_pred): New inline functions.
6004         * bb-reorder.c (rotate_loop, find_traces_1_round,
6005         add_labels_and_missing_jumps, fix_up_fall_thru_edges,
6006         duplicate_computed_gotos): Use the single_succ/pred functions.
6007         * cfganal.c (forwarder_block_p): Ditto.
6008         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
6009         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
6010         outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
6011         merge_seq_blocks): Ditto.
6012         * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
6013         * cfglayout.c (fixup_reorder_chain): Ditto.
6014         * cfgloop.c (mark_single_exit_loops, update_latch_info,
6015         canonicalize_loop_headers, verify_loop_structure): Ditto.
6016         * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
6017         mfb_update_loops, create_preheader, force_single_succ_latches,
6018         create_loop_notes): Ditto.
6019         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
6020         force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
6021         commit_one_edge_insertion, purge_dead_edges,
6022         cfg_layout_can_merge_blocks_p): Ditto.
6023         * except.c (sjlj_emit_function_enter): Ditto.
6024         * flow.c (init_propagate_block_info): Ditto.
6025         * function.c (thread_prologue_and_epilogue_insns): Ditto.
6026         * gcse.c (find_implicit_sets, bypass_conditional_jumps,
6027         insert_insn_end_bb): Ditto.
6028         * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
6029         find_if_case_2): Ditto.
6030         * lambda-code.c (perfect_nestify): Ditto.
6031         * lcm.c (optimize_mode_switching): Ditto.
6032         * loop-doloop.c (doloop_modify): Ditto.
6033         * loop-init.c (loop_optimizer_init): Ditto.
6034         * loop-iv.c (simplify_using_initial_values): Ditto.
6035         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
6036         * loop-unswitch.c (unswitch_loop): Ditto.
6037         * modulo-sched.c (generate_prolog_epilog): Ditto.
6038         * predict.c (combine_predictions_for_insn, estimate_probability,
6039         tree_estimate_probability, last_basic_block_p,
6040         estimate_bb_frequencies): Ditto.
6041         * profile.c (branch_prob): Ditto.
6042         * regrename.c (copyprop_hardreg_forward): Ditto.
6043         * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
6044         * tracer.c (layout_superblocks): Ditto.
6045         * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
6046         cfg_remove_useless_stmts_bb, cleanup_control_flow,
6047         cleanup_control_expr_graph, disband_implicit_edges,
6048         tree_find_edge_insert_loc, bsi_commit_edge_inserts,
6049         tree_verify_flow_info, tree_make_forwarder_block,
6050         tree_forwarder_block_p, remove_forwarder_block,
6051         remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
6052         * tree-if-conv.c (tree_if_conversion): Ditto.
6053         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
6054         * tree-ssa-dce.c (remove_dead_stmt): Ditto.
6055         * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
6056         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
6057         copy_loop_headers): Ditto.
6058         * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
6059         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
6060         * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
6061         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
6062         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
6063         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
6064         * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
6065         * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
6066         * tree-ssa-threadupdate.c (redirect_edges): Ditto.
6067         * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
6068         eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
6069         * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
6070         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
6071         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
6072         slpeel_add_loop_guard): Ditto.
6073
6074 2005-03-11  James A. Morrison  <phython@gcc.gnu.org>
6075
6076         PR tree-optimization/15784
6077         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
6078         and -1 - A to ~A.
6079
6080         * stmt.c (expand_case): Don't change index_type.  Convert minval
6081         to the proper type.
6082
6083         PR tree-optimization/20130
6084         * fold-const.c (fold): Fold x * -1 into -x.
6085
6086 2005-03-11  Kaz Kojima  <kkojima@gcc.gnu.org>
6087
6088         PR rtl-optimization/20331
6089         * rtlanal.c (modified_between_p): Check its address first for MEM.
6090         (modified_in_p): Likewise.
6091
6092 2005-03-11  Joseph S. Myers  <joseph@codesourcery.com>
6093
6094         * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
6095
6096 2005-03-10  Steven Bosscher  <stevenb@suse.de>
6097
6098         * expr.c (expand_expr_real_1): If possible, use a conditional
6099         move for expanding MIN_EXPR and MAX_EXPR.
6100         Use temp for moving around rtx-en.
6101
6102 2005-03-10  Andrew Pinski  <pinskia@physics.uc.edu>
6103
6104         PR rtl-opt/20412
6105         * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
6106         correct mode.
6107
6108 2005-03-10  Roger Sayle  <roger@eyesopen.com>
6109
6110         * builtins.c (expand_builtin_signbit): Extend to handle floating
6111         point modes wider than the largest integer type, using the
6112         operand_subword_force function to obtain the signbit's word.
6113
6114 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
6115
6116         PR target/20322
6117         * combine.c (try_combine): If recog_for_combine added CLOBBERs
6118         to NEWI2PAT, fail to combine if they are used by NEWPAT.
6119
6120 2005-03-10  Aldy Hernandez  <aldyh@redhat.com>
6121
6122         * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
6123
6124 2005-03-10  Kazu Hirata  <kazu@cs.umass.edu>
6125
6126         * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
6127         type void.
6128         (perform_edge_inserts): Unconditionally call
6129         free_dominator_info.
6130
6131         * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
6132
6133 2005-03-10  Bob Wilson  <bob.wilson@acm.org>
6134
6135         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
6136
6137 2005-03-10  Nathan Sidwell  <nathan@codesourcery.com>
6138
6139         * bitmap.c (bitmap_copy): Remove manual loop unrolling.
6140
6141         * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
6142         gcc_unreachable.
6143         (rtl_register_value_prof_hooks,
6144         tree_value_profile_transformations,
6145         tree_register_value_prof_hooks): Likewise.
6146         * var-tracking.c (stack_adjust_offset_pre_post,
6147         variable_htab_free, variable_union, dataflow_set_different_2,
6148         count_uses, variable_was_changed, set_frame_base_location,
6149         set_variable_part, emit_note_insn_var_location, vt_emit_notes,
6150         vt_add_function_parameters): Likewise.
6151         * varasm.c (named_section_real, named_section, make_decl_rtl,
6152         asm_emit_uninitialised, assemble_integer, decode_addr_const,
6153         const_hash_1, compare_constant, copy_constant, force_const_mem,
6154         output_constant_pool_2, output_constant_pool_1, output_constant,
6155         output_constructor, make_decl_one_only, decl_tls_model,
6156         default_no_named_section, default_elf_select_section_1,
6157         default_unique_section_1): Likewise.
6158         * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
6159         * vmsdbgout.c (addr_const_to_string): Likewise.
6160
6161         PR c++/20375
6162         * function.c (struct assign_parm_data_one): Remove last_named
6163         field.
6164         (assign_parm_find_data_types): Don't determine last_named.
6165         Reorder named_parm determination.
6166         (assign_parms): Only setup varargs on the last non-varadic
6167         parameter.
6168
6169 2005-03-10  Kazuhiro Inaoka  <inaoka.lazuhiro@renesas.com>
6170
6171         * config/m32r/m32r.md (load_sda_base_32): New pattern.  Loads
6172         sda base address on medium model.
6173
6174 2005-03-10  Zdenek Dvorak  <dvorakz@suse.cz>
6175
6176         * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
6177         * cfgloop.c (flow_loop_nodes_find): Export.
6178         * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
6179         Declare.
6180         * cfgloopmanip.c (fix_loop_structure): New function.
6181         * predict.c (predict_loops): Clean up the loops information.
6182         * tree-cfg.c (cleanup_tree_cfg_loop): New function.
6183         (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
6184         loop structure.
6185         * tree-flow.h (cleanup_tree_cfg_loop): Declare.
6186         (rewrite_into_loop_closed_ssa): Declaration changed.
6187         * tree-loop-linear.c (linear_transform_loops): Add argument to
6188         rewrite_into_loop_closed_ssa call.
6189         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
6190         * tree-ssa-loop-im.c (move_computations): Ditto.
6191         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
6192         * tree-vectorizer.c (vectorize_loops): Ditto.
6193         * tree-optimize.c: Include cfgloop.h.
6194         (execute_todo): Choose whether to call cleanup_tree_cfg or
6195         cleanup_tree_cfg_loop.
6196         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
6197         (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
6198         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
6199         cleanup_tree_cfg_loop call.
6200         * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
6201         (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
6202         work on part of cfg.
6203
6204 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
6205
6206         PR inline-asm/20314
6207         * gimplify.c (gimplify_asm_expr): Handle input/output constraints
6208         with multiple alternatives.
6209
6210         * stmt.c (parse_output_constraint): Fix a typo.
6211
6212 2005-03-09  Bob Wilson  <bob.wilson@acm.org>
6213
6214         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
6215         assembly directive instead of deprecated "no-generics".
6216
6217 2005-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
6218
6219         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
6220         for non-offsettable memory references to cope with outstanding reload
6221         replacements.
6222         * config/s390/s390.md ("reload_outti"): Call find_replacement to
6223         avoid losing outstanding address reloads.
6224         ("reload_outdi", "reload_outdf"): Likewise.
6225
6226 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6227
6228         * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
6229         code.  Add more cbrt transformations.
6230
6231 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6232
6233         * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
6234
6235 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
6236
6237         * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
6238         NULL_TREE when a given tree is not simplified.
6239         (fold): Return the original tree when any of the functions
6240         mentioned above NULL_TREE.
6241
6242         * fold-const.c (fold_unary, fold_binary): Take decomposed
6243         arguments, code, type, op0, and op1 in case of fold_binary.
6244         (fold): Update calls to fold_unary and fold_binary.
6245
6246 2005-03-09  Roger Sayle  <roger@eyesopen.com>
6247
6248         * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
6249         a fndecl and an arglist instead of a CALL_EXPR, exp.
6250
6251 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
6252
6253         * cfglayout.c (fixup_reorder_chain): Remove old_bb.
6254
6255         * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
6256
6257         * expr.c (expand_assignment): Remove orig_to_rtx.
6258
6259         * fold-const.c (int_const_binop): Remove no_overflow.
6260
6261         * ifcvt.c (noce_emit_move_insn): Remove inmode.
6262
6263         * loop-iv.c (get_biv_step_1): Remove lhs.
6264
6265         * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
6266
6267         * real.c (real_nan): Remove neg.
6268
6269         * function.c (thread_prologue_and_epilogue_insns): Remove i
6270         and newinsn.
6271
6272         * tree-data-ref.c (array_base_name_differ_p): Remove ta and
6273         tb.
6274
6275         * tree-eh.c (tree_could_trap_p): Remove idx.
6276
6277         * tree-into-ssa.c (ann): Remove ann.
6278
6279         * tree-outof-ssa.c (num_nodes): Remove num_nodes.
6280
6281         * tree-sra.c (decide_block_copy): Remove inst_count.
6282
6283         * tree-ssa-alias.c (may_alias_p): Remove v_ann.
6284
6285         * tree-ssa-loop-im.c (lhs): Remove.
6286
6287         * cfgbuild.c (state, STATE, SET_STATE,
6288         BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
6289         make_edges.
6290         (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
6291         (find_basic_blocks): Set the state of each basic block to
6292         BLOCK_NEW.
6293
6294 2005-03-08  Jeff Law  <law@redhat.com>
6295
6296         * tree-cfg.c (cleanup_control_flow): If removal of a computed
6297         goto results in the removal of edges in the CFG, then we need
6298         to recompute dominators.
6299
6300 2005-03-09  Ben Elliston  <bje@au.ibm.com>
6301
6302         * c-common.c (c_do_switch_warnings): Comment fix.
6303
6304 2005-03-08  Julian Brown  <julian@codesourcery.com>
6305
6306         * Patch from 2005-03-08 reverted for causing regressions and
6307         ppc-darwin bootstrap failure.
6308
6309 2005-03-08  Fariborz Jahanian <fjahanian@apple.com>
6310
6311         * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
6312         Define the real function for ppc-darwin.
6313         * c-typeck.c (convert_arguments): Check for target-specific
6314         invalid argument call to unprototyped function.
6315         * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
6316         New Macro.
6317         * target.h (invalid_arg_for_unprototyped_fn): New field
6318         in struct calls.
6319         * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
6320         default target hook.
6321         * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
6322         Declare.
6323
6324 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
6325
6326         * c-typeck.c (constructor_stack, constructor_range_stack,
6327         initializer_stack): Make them static.
6328
6329         * cfg.c (rbi_pool): Make it static.
6330
6331         * gimple-low.c (lower_stmt_body): Make it static.
6332         * tree-flow.h: Remove the corresponding prototype.  Don't
6333         declare lower_data.
6334
6335         * sched-deps.c (cache_size): Make it static.
6336
6337         * stor-layout.c (lang_adjust_rli): Make it static.
6338
6339 2005-03-08  Julian Brown  <julian@codesourcery.com>
6340
6341         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
6342         from being used for symbols with vague linkage when
6343         HAVE_GAS_COMDAT_GROUP is true.
6344
6345 2005-03-08  J"orn Rennecke <joern.rennecke@st.com>
6346
6347         * jump.c (invert_jump_1): Don't call redirect_jump_1 with
6348         nlabel == JUMP_LABEL (jump).
6349
6350 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
6351
6352         * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
6353         gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
6354         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
6355         tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
6356
6357 2005-03-08  Alexey Neyman  <alex.neyman@auriga.ru>
6358
6359         PR c/14411
6360         * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
6361         * c-common.c (handle_returns_twice): New function.
6362         (c_common_attribute_table): Declare eturns_twice' attribute.
6363         * doc/extend.texi: Document eturns_twice' attribute.
6364         * tree.h (DECL_IS_RETURNS_TWICE): New macro.
6365         (struct tree_decl): Add returns_twice_flag.
6366
6367 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
6368
6369         * tree-ssa-phiopt.c: Fix a comment typo.
6370
6371         * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
6372         loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
6373         config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
6374         copyright.
6375
6376 2005-03-08  Richard Henderson  <rth@redhat.com>
6377
6378         * config/alpha/alpha.c (code_for_builtin): Replace special-case
6379         builtin codes with ctzdi2, clzdi2, popcountdi2.
6380         (struct alpha_builtin_def): Add is_const.
6381         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
6382         (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
6383         (alpha_init_builtins): Init them.  Set nothrow and const attributes
6384         on builtins.
6385         (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
6386         alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
6387         alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
6388         alpha_fold_vector_minmax, alpha_fold_builtin_perr,
6389         alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
6390         alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
6391         alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
6392         alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
6393         (TARGET_FOLD_BUILTIN): New.
6394         * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
6395         (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
6396         (ffsdi2): Use ctz.
6397         (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
6398
6399 2005-03-08  Ira Rosen  <irar@il.ibm.com>
6400
6401         PR tree-optimization/20122
6402         * tree-vect-analyze.c (vect_object_analysis): Analyze initial
6403         condition of access function instead of base.
6404
6405 2005-03-07  Jeff Law  <law@redhat.com>
6406             Steven Bosscher  <stevenb@suse.de>
6407
6408         * tree-cfg.c (find_taken_edge_computed_goto): New function.
6409         (find_taken_edge): Call find_taken_edge_computed_goto as
6410         appropriate.  Allow any gimple invariant rather than just
6411         INTEGER_CST for VAL.
6412         (cleanup_control_flow): Cleanup a computed goto which has turned
6413         into a simple goto.
6414         (tree_merge_blocks): If block B has any forced labels, move
6415         them to the start of block A.
6416         * tree-ssa-dom.c (thread_across_edge): Allow threading across
6417         computed gotos as well.
6418         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
6419         removal of unnecessary computed gotos too.
6420         (lookup_redirection_data): Fix type of INSERT argument.  Callers
6421         updated.
6422
6423 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
6424
6425         * tree-ssa-phiopt.c: Update copyright.  Fix indentations.
6426         Remove trailing spaces.
6427
6428         * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
6429         unshare_all_trees): Make them static.
6430         * tree-gimple.h: Remove the corresponding prototypes.
6431
6432         * diagnostic.h: Remove unused prototype
6433         debug_output_buffer.
6434         * modulo-sched.c: Remove unused prototype
6435         set_row_column_for_ps.
6436
6437         * tree-ssa-phiopt.c (tree_ssa_phiopt,
6438         replace_phi_edge_with_variable): Remove unused variable i.
6439
6440 2005-03-07  Per Bothner  <per@bothner.com>
6441
6442         * tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
6443
6444 2005-03-06  Andrew Pinski  <pinskia@physics.uc.edu>
6445
6446         PR tree-opt/17671
6447         * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
6448         bbs on the COND_EXPR instead of the PHI_NODEs.
6449         (candidate_bb_for_phi_optimization): Remove.
6450         (replace_phi_with_stmt): Rename to ...
6451         (replace_phi_edge_with_variable): this and change so that we
6452         replace the phi argument instead of removing the PHI.
6453         (conditional_replacement): Change so we deal with PHI with more
6454         than two arguments.
6455         (value_replacement): Likewise.
6456         (abs_replacement): Likewise.
6457
6458 2005-03-07  Aldy Hernandez  <aldyh@redhat.com>
6459
6460         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to
6461         output_e500_flip_gt_bit.
6462
6463         * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31
6464         as bit 31.
6465         (rs6000_generate_compare): Fix logic to look at the correct bits.
6466         (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit.
6467         Look at GT bit.
6468         (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to
6469         gen_e500_flip_gt_bit.  Rename gen_move_from_CR_eq_bit to
6470         gen_move_from_CR_gt_bit.
6471
6472         * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit
6473         ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit.
6474         (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT.
6475
6476         * config/rs6000/spe.md ("e500_cr_ior_compare"): New.
6477         (E500_CR_IOR_COMPARE): New constant.
6478
6479 2005-03-08  Earl Chew <earl_chew@agilent.com>
6480             David Billinghurst <David.Billinghurst@riotinto.com>
6481
6482         * config/i386/host-cygwin.c: New file to support precompiled
6483         headers on cygwin
6484         * config/i386/x-cygwin: Use host-cygwin.c on cygwin host
6485         * config.host: Use above files for cygwin host.
6486
6487 2005-03-07  David Edelsohn  <edelsohn@gnu.org>
6488
6489         * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
6490         ordering ops from earlier change.
6491
6492 2005-03-07  Per Bothner  <per@bothner.com>
6493
6494         Various fixes to allow us to again build if --enable-mapped-location:
6495         * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
6496         unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
6497         * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
6498         local variable loc. Change logic appropriately.
6499         * tree-vect-transform.c (vect_finish_stmt_generation): Use
6500         EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
6501         * c-parser.c (c_parser_for_statement): Initialize loc variable.
6502         * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
6503         DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
6504
6505 2005-03-07  Richard Sandiford  <rsandifo@redhat.com>
6506
6507         PR rtl-optimization/19683
6508         * reload1.c (choose_reload_regs): Pass the number of bits, not the
6509         number of bytes, to smallest_int_for_mode.  Fix arguments to
6510         REG_CANNOT_CHANGE_MODE_P.
6511
6512 2005-03-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
6513
6514         * reorg.c (relax_delay_slots): Check that the jump is
6515         conditional before trying to invert it.
6516
6517 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
6518
6519         * bb-reorder.c (max_entry_frequency, max_entry_frequency):
6520         Make them static.
6521
6522         * calls (stack_arg_under_construction): Make it static.
6523
6524         * flow.c (regs_live_at_setjmp): Make it static.
6525         * flow.h: Remove the corresponding prototype.
6526
6527         * reload1.c (reload_startobj, reload_firstobj,
6528         something_needs_operands_changed, reload_inherited,
6529         reload_inheritance_insn, reload_override_in,
6530         reload_spill_index): Make them static.
6531
6532         * recog.c (verify_changes): Make it static.
6533         * recog.h: Remove the corresponding prototype.
6534
6535         * cfgbuild.c (find_sub_basic_blocks): Remove.
6536         * basic-block.h: Remove the corresponding prototype.
6537         * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
6538         in comments.
6539         * doc/cfg.texi: Don't mention find_sub_basic_blocks.
6540
6541         * tree-ssa-operands.c (check_build_stmt): Remove.
6542
6543         * stor-layout.c (set_alignment): Remove.
6544         * tree.h: Remove the corresponding prototype.
6545
6546         * tree-ssa-pre.c (has_abnormal_preds): Make it static.
6547
6548         * tree-ssa-dce.c (control_dependence_map,
6549         visited_control_parents): Make them static.
6550
6551         * cfghooks.c (verify_flow_info): Remove local variable
6552         num_bb_notes.
6553
6554         * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
6555         last_bb_seen.
6556
6557         * loop-unswitch.c (unswitch_loop): Remove local variable src.
6558
6559 2005-03-07  David Billinghurst <David.Billinghurst@riotinto.com>
6560
6561         * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
6562
6563 2005-03-07  Joseph S. Myers  <joseph@codesourcery.com>
6564
6565         * config/ia64/hpux.h (LINK_SPEC): Add -z.
6566         * config/ia64/ia64.c (ia64_function_value): Return a REG not a
6567         PARALLEL for an empty structure.
6568
6569 2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
6570
6571         * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
6572
6573         * fold-const.c (fold_binary): Unroll the very first "for"
6574         loop.
6575
6576 2005-03-06  David Edelsohn  <edelsohn@gnu.org>
6577
6578         * config/rs6000/predicates.md (branch_comparison_operator): Remove
6579         redundant match_code test.
6580         (scc_comparison_operator): Swap match_operand and match_code
6581         tests.
6582         (branch_positive_comparison_operator): Same.
6583         (trap_comparison_operator): Use comparison_operator and swap with
6584         match_code test.
6585
6586 2005-03-06  Marek Michalkiewicz  <marekm@amelek.gda.pl>
6587
6588         PR target/20288
6589         * config/avr/avr.c (print_operand): Add 'p' and 'r'.
6590         (out_movhi_r_mr): Read low byte of volatile MEM first.
6591         (out_movhi_mr_r): Write high byte of volatile MEM first.
6592
6593 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
6594
6595         * cselib.c (reg_values, reg_values_size): Make them static.
6596
6597         * cse.c (cse_reg_info_table): Make it static.
6598
6599         * fold-const.c (fold_unary): Use build1 instead of copy_node.
6600
6601 2005-03-06  Zdenek Dvorak  <dvorakz@suse.cz>
6602
6603         * cse.c (find_best_addr): Use canon_for_address.
6604
6605 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
6606
6607         * cse.c (fold_rtx_subreg, fold_rtx_mem): New.
6608         (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
6609         SUBREG and MEM, respectively.
6610
6611         * fold-const.c (fold_binary): Use code instead of t.
6612
6613         * fold-const.c (optimize_minmax_comparison): Take decomposed
6614         arguments code, type, op0, and op1 instead of t.
6615         (fold_binary): Update a call to optimize_minmax_comparison.
6616
6617         * fold-const.c (fold_range_test): Take decomposed arguments
6618         code, type, op0, and op1 instead of t.
6619         (fold_binary): Update a call to fold_range_test.
6620
6621         * fold-const.c (fold_binary_op_with_conditional_arg): Take
6622         decomposed arguments code, type, op0, and op1 instead of t.
6623         (fold_binary): Update a call to fold_range_test.
6624
6625 2005-03-06  Kazu Hirata  <kazu@cs.umass.edu>
6626
6627         * fold-const.c (fold_binary): Avoid directly using the original
6628         expression t as much as possible.
6629
6630 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
6631
6632         * c-semantics.c (build_stmt): Use TYPE_P instead of
6633         IS_NON_TYPE_CODE_CLASS.
6634         * tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
6635         (NON_TYPE_CHECK): Use TYPE_P instead of
6636         IS_NON_TYPE_CODE_CLASS.
6637
6638         * fold-const.c (fold): Remove handling of binary expressions.
6639
6640 2005-03-05  James A. Morrison  <phython@gcc.gnu.org>
6641
6642         * doc/c-tree.texi: Wrap comments in @r{}.
6643         * doc/cpp.texi: Likewise.
6644         * doc/cppinternals.texi: Likewise.
6645         * doc/extend.texi: Likewise.
6646         * doc/md.texi: Likewise.
6647         * doc/objc.texi: Likewise.
6648         * doc/sourcebuild.texi: Likewise.
6649         * doc/tm.texi: Likewise.
6650         * doc/tree-ssa.texi
6651
6652 2005-03-05  Kazu Hirata  <kazu@cs.umass.edu>
6653
6654         * predict.c (apply_return_prediction): Standardize PHI chain
6655         walking.
6656         * tree-ssa.c (ssa_redirect_edge): Likewise.
6657
6658         * genattrtab.c, genemit.c, genoutput.c, genrecog.c,
6659         gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
6660         Update copyright.
6661
6662         * tree-phinodes.c (remove_phi_node): Drop the last argument.
6663         * tree-flow.h: Adjust the prototype for remove_phi_node.
6664         * lambda-code.c (perfect_nestify): Adjust a call to
6665         remove_phi_node.
6666         * tree-cfg.c
6667         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
6668         * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
6669         Likewise.
6670         * tree-ssa-dce.c (remove_dead_phis): Likewise.
6671         * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
6672         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
6673         * tree-ssa.c (kill_redundant_phi_nodes): Likewise.
6674
6675         * combine.c (simplify_and_const_int): Use gen_int_mode instead
6676         of GEN_INT (trunc_int_for_mode (...)).
6677         * loop-iv.c (iv_number_of_iterations): Likewise.
6678         * postreload.c (reload_cse_move2add): Likewise.
6679         * simplify-rtx.c (simplify_const_unary_operation,
6680         simplify_const_binary_operation): Likewise.
6681         * stor-layout.c (get_mode_bounds): Likewise.
6682
6683         * fold-const.c (fold_binary): New.
6684         (fold): Call fold_binary on binary expressions.
6685
6686 2005-03-05  Richard Sandiford  <rsandifo@redhat.com>
6687
6688         * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
6689         * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
6690         (TARGET_SWITCHES): Add -msym32 and -mno-sym32.
6691         (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
6692         (ASM_SPEC): Pass down -msym32 and -mno-sym32.
6693
6694 2005-03-04  Devang Patel  <dpatel@apple.com>
6695
6696         PR tree-optimization/18815
6697         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
6698         loops with zero exit edges.
6699
6700 2005-03-04  Devang Patel  <dpatel@apple.com>
6701
6702         * doc/invoke.texi: Remove reference to webpage that does not exist.
6703
6704 2005-03-04  John David Anglin  <dave.danglin@nrc-cnrc.gc.ca>
6705             Joseph S. Myers  <joseph@codesourcery.com>
6706
6707         PR c++/19797
6708         * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
6709         (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
6710         * pa-protos.h (pa_hpux_asm_output_external): Add prototype.
6711         * pa.c (get_plabel): Change argument to symbol_ref.  Call
6712         maybe_get_identifier instead of get_identifier.
6713         (pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
6714         (struct deferred_plabel): Replace name field with symbol field.
6715         (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
6716         ASM_OUTPUT_EXTERNAL_REAL is defined.
6717         (output_global_address): Use output_addr_const for output of all
6718         symbol_refs.
6719         (output_deferred_plabels): Use symbol_ref instead of name for address
6720         output.
6721         * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
6722         ASM_OUTPUT_SYMBOL_REF): New macros.
6723         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw.  Update
6724         comment.
6725         (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
6726         label.
6727
6728 2005-03-05  Joseph S. Myers  <joseph@codesourcery.com>
6729
6730         * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
6731         *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.
6732
6733 2005-03-04  Jeff Law  <law@redhat.com>
6734
6735         * basic-block.h (rediscover_loops_after_threading): Declare.
6736         * tree-ssa-dom.c: Include cfgloop.h.
6737         (tree_ssa_dominator_optimize): Discover loops and some basic
6738         properties.  Remove forwarder blocks recreated by loop header
6739         canonicalization.  Also mark backedges in the CFG.
6740         * tree-ssa-threadupdate.c: Include cfgloop.h
6741         (rediscover_loops_after_threading): Define.
6742         (struct local_info): New field, JUMP_THREADED.
6743         (prune_undesirable_thread_requests): New function.
6744         (redirect_edges): Clear EDGE_ABNORMAL.  If edges were threaded
6745         then record that fact for the callers of redirct_edges.
6746         (thread_block): If BB has incoming backedges, then call
6747         prune_undesirable_thraed_requests.    Note when we are
6748         going to have to rediscover loop information.  Return a
6749         boolean indicating if any jumps were threaded.
6750         (thread_through_all_blocks): Bubble up boolean indicating
6751         if any jumps were threaded.
6752         * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
6753         (tree-ssa-threadupdate.o): Similarly.
6754
6755 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
6756
6757         * fold-const.c (fold_ternary): Unroll the "for" loop to
6758         extract operands.
6759
6760 2005-03-04  Andrew Haley  <aph@redhat.com>
6761
6762         * unwind-dw2-fde-glibc.c (struct
6763         unw_eh_callback_data.check_cache): New field.
6764         (frame_hdr_cache): New.
6765         (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
6766         Cache frame header info.
6767
6768 2005-03-04  Richard Sandiford  <rsandifo@redhat.com>
6769
6770         * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
6771         (print_c_condition): Declare.
6772         * read-rtl.c (ptr_loc): New structure.
6773         (ptr_locs, ptr_loc_obstack, joined_conditions)
6774         (joined_conditions_obstack): New variables.
6775         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
6776         (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
6777         (join_c_conditions, print_c_condition): New functions.
6778         (apply_macro_to_string): Associate the new string with the same
6779         source location as the old one.
6780         (add_condition_to_string): Use join_c_conditions.
6781         (read_string): Use set_rtx_ptr_loc to record a filename and line
6782         number for the string.
6783         (read_rtx): Initialize the new variables above.
6784         * genattrtab.c (write_test_expr, write_attr_value): Use
6785         print_c_condition.
6786         * genconditions.c (write_header): Don't define MAYBE_EVAL.  Move its
6787         comment above the GCC_VERSION check.
6788         (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
6789         Inline the definition of MAYBE_EVAL.
6790         * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
6791         * genoutput.c (process_template): Likewise.
6792         * genpreds.c (write_predicate_subfunction): Likewise.
6793         (write_predicate_expr): Use print_c_condition.
6794         * genrecog.c (write_cond): Likewise.
6795         * gensupport.c (process_rtx): Use join_c_conditions to join the
6796         conditions of a define_insn_and_split.  Record a source location
6797         for the string after the "&&".
6798         (alter_test_for_insn): Use join_c_conditions.
6799
6800 2005-03-04  Andrew Pinski  <pinskia@physics.uc.edu>
6801
6802         Revert for now:
6803         2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
6804         PR tree-optimization/15784
6805         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
6806         and -1 - A to ~A.
6807
6808 2005-03-04  Ben Elliston  <bje@au.ibm.com>
6809
6810         * gcc.c (option_map): Add --coverage.
6811         (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
6812         (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
6813         * config/darwin.h: Pass -lgcov for `coverage'.
6814         * doc/invoke.texi (Debugging Options): Document --coverage.
6815
6816 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
6817
6818         * gcse.c (bypass_block): Use find_edge wherever possible.
6819
6820 2005-03-03  Daniel Berlin <dberlin@dbrelin.org>
6821
6822         Fix PR debug/20253
6823
6824         * c-opts.c (c_common_parse_file): Call start_source_file
6825         and end_source_file at the approriate times.
6826
6827         * dwarf2out.c (dwarf2out_finish): Don't auto-end
6828         the main file, it will be done for us now.
6829
6830 2005-03-04  Kazu Hirata  <kazu@cs.umass.edu>
6831
6832         * fold-const.c (fold_ternary): New.
6833         (fold): Call fold_ternary on ternary expressions.  Remove
6834         handling of ternary expressions.
6835
6836 2005-03-03  James A. Morrison  <phython@gcc.gnu.org>
6837
6838         PR tree-optimization/15784
6839         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
6840         and -1 - A to ~A.
6841
6842 2005-03-03  David Edelsohn  <edelsohn@gnu.org>
6843
6844         * config/rs6000/predicates.md (branch_comparison_operator):
6845         Convert from C block to conditional format.
6846
6847 2005-03-03  Jan Hubicka  <jh@suse.cz>
6848
6849         * tree-dfa.c (add_referenced_var): Don't walk initializer of external
6850         and non-constant public variables.
6851
6852 2005-03-03  Kazu Hirata  <kazu@cs.umass.edu>
6853
6854         * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
6855         with LABEL_EXPR.
6856
6857         * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
6858         EDGE_I.
6859
6860         * tree-phinodes.c (remove_phi_node): Clean up by factoring out
6861         calls to release_ssa_name and release_phi_node.
6862
6863         * fold-const.c (fold): Remove handling of unary expressions.
6864
6865         * fold-const.c (fold_unary): Avoid directly using the original
6866         expression t as much as possible.
6867
6868 2005-03-03  Roger Sayle  <roger@eyesopen.com>
6869             Andrew Pinski  <pinskia@physics.uc.edu>
6870
6871         * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
6872         RETURN rtx, and not a LABEL_REF containing a NULL pointer.
6873
6874 2005-03-03  Hans-Peter Nilsson  <hp@axis.com>
6875
6876         Describe special registers SRP and MOF as allocatable registers.
6877         * config/cris/cris.c (cris_md_asm_clobbers): New function.
6878         (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
6879         (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
6880         TARGET_HAS_MUL_INSNS.
6881         (cris_print_operand) <case 'd'>: New case.
6882         <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
6883         * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
6884         define.
6885         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
6886         (REG_ALLOC_ORDER): Update for MOF.
6887         (enum reg_class): New members MOF_REGS, GENERAL_REGS and
6888         SPECIAL_REGS.
6889         (GENERAL_REGS): No longer a define of ALL_REGS.
6890         (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
6891         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
6892         Adjust accordingly.
6893         (CRIS_SPECIAL_REGS_CONTENTS): New macro.
6894         (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
6895         (SECONDARY_RELOAD_CLASS): Define.
6896         (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
6897         (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
6898         (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
6899         (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
6900         (REGISTER_MOVE_COST): Define.
6901         (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
6902         * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
6903         (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
6904         (CRIS_MOF_REGNUM): New define_constants.
6905         ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
6906         special registers.
6907         ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"):
6908         New patterns.
6909         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
6910         ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
6911         Adjust for MOF being properly described as a register.
6912         (indir_to_reg_split): Name this split.  Conditionalize on the
6913         destination register being a general register.
6914         (movei): Conditionalize on on operands 0 and 1 having the same
6915         register class.
6916
6917 2005-03-03  Alan Modra  <amodra@bigpond.net.au>
6918
6919         PR target/20277
6920         * config/rs6000/rs6000.c (rs6000_override_options): Don't allow
6921         -mcpu to override any other explicitly given flags.
6922
6923 2005-03-02  J"orn Rennecke <joern.rennecke@st.com>
6924
6925         * recog.c (verify_changes, confirm_change_group): New functions,
6926         broken out of apply_change_group.
6927         (apply_change_group): Use them.
6928         * recog.h (verify_change, confirm_change_group): Declare.
6929         * rtl.h (redirect_jump_2): Declare.
6930         * jump.c (redirect_exp, invert_exp): Delete.
6931         (invert_exp_1): Take second parameter.  Return value.  Changed caller.
6932         (redirect_jump_2): New function, broken out of redirect_jump.
6933         (redirect_jump): Use redirect_jump_1 and redirect_jump_2.
6934         (invert_jump): Use invert_jump_1 and redirect_jump_2.
6935         * ifcvt.c (dead_or_predicable): Use redirect_jump_2.
6936
6937 2005-03-02  Geoffrey Keating  <geoffk@apple.com>
6938
6939         * varasm.c (named_section): Use xstrdup rather than doing it by
6940         hand.
6941
6942         * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
6943
6944 2005-03-02  Devang Patel  <dpatel@apple.com>
6945
6946         Undo PR tree-optimization/18815 fix.
6947
6948 2005-03-02  Devang Patel  <dpatel@apple.com>
6949
6950         PR tree-optimization/18815
6951         * tree-if-conv.c (combine_blocks): Adjust loop header edges for
6952         loops with zero exit edges.
6953
6954 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
6955
6956         * cfg.c (connect_src, connect_dest, disconnect_src,
6957         disconnct_dest): New.
6958         (unchecked_make_edge, remove_edge, redirect_edge_succ,
6959         redirect_edge_pred): Use the new functions.
6960
6961         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
6962         free_dominance_info only when needed.
6963
6964 2005-03-02  David Edelsohn  <edelsohn@gnu.org>
6965
6966         PR target/20276
6967         * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
6968         (reg_or_sub_cint64_operand): Same.
6969
6970 2005-03-02  Jeff Law  <law@redhat.com>
6971
6972         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
6973         CFG_ALTERED in the main DOM iteration loop.
6974
6975 2005-03-02  Mark Mitchell  <mark@codesourcery.com>
6976
6977         PR c++/19916
6978         * varasm.c (initializer_constant_valid_p): Allow conversions
6979         between OFFSET_TYPEs.  Tidy.
6980
6981 2005-03-02  Hans-Peter Nilsson  <hp@axis.com>
6982
6983         * config/cris/cris.md ("return"): Remove epilogue delay list
6984         sanity check.
6985
6986 2005-03-02  Daniel Jacobowitz  <dan@codesourcery.com>
6987
6988         * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
6989         for Thumb.
6990         * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
6991
6992 2005-03-02  Kazu Hirata  <kazu@cs.umass.edu>
6993
6994         * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
6995         loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
6996         config/m68k/m68k.c, config/mips/mips.h,
6997         config/rs6000/rs6000-protos.h, doc/contrib.texi,
6998         doc/include/gcc-common.texi: Update copyright.
6999
7000         PR middle-end/18029 and PR middle-end/18030
7001         * expr.c (optimize_bitfield_assignment_op): Add a special case
7002         to handle BIT_IOR_EXPR and BIT_XOR_EXPR.
7003
7004         * fold-const.c (fold_unary): New.
7005         (fold): Call fold_unary on unary expressions.
7006
7007 2005-03-02  Richard Guenther  <rguenth@gcc.gnu.org>
7008
7009         * cgraph.h (struct cgraph_edge): Add prev_caller and
7010         prev_callee fields.
7011         (cgraph_node_remove_callees): Export.
7012         * cgraph.c (cgraph_create_edge): Initialize prev_caller
7013         and prev_callee.
7014         (cgraph_edge_remove_callee): New function.
7015         (cgraph_edge_remove_caller): Likewise.
7016         (cgraph_remove_edge): Use.
7017         (cgraph_redirect_edge_callee): Likewise.
7018         (cgraph_node_remove_callees): New function.
7019         (cgraph_node_remove_callers): Likewise.
7020         (cgraph_remove_node): Use.
7021         * tree-optimize.c (tree_rest_of_compilation): Use
7022         cgraph_node_remove_callees instead of manual loop.
7023         * cgraphunit.c (cgraph_finalize_function): Likewise.
7024         (cgraph_expand_function): Likewise.
7025         (cgraph_remove_unreachable_nodes): Likewise.
7026
7027 2005-03-02  Joseph S. Myers  <joseph@codesourcery.com>
7028
7029         PR c/8927
7030         * c-tree.h (undeclared_variable, build_external_ref): Add extra
7031         argument.
7032         * c-decl.c (undeclared_variable): Take location as argument.
7033         * c-typeck.c (build_external_ref): Likewise.
7034         * c-parser.c (c_parser_postfix_expression): Pass location of
7035         identifier to build_external_ref.
7036
7037 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
7038
7039         * config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
7040         CCEQ mode for branch_positive_comparison_operator test.
7041         * config/rs6000/predicates (branch_comparison_operator): Revert to
7042         define_predicate.
7043         (scc_comparison_operator): Same.
7044         (branch_positive_comparison_operator): Same.
7045
7046 2005-03-01  Hans-Peter Nilsson  <hp@axis.com>
7047
7048         * config/cris/cris.c (cris_eligible_for_epilogue_delay)
7049         (cris_delay_slots_for_epilogue): Remove.
7050         (save_last): Move into cris_target_asm_function_epilogue.
7051         (cris_target_asm_function_epilogue): Remove tests for file being
7052         NULL.
7053         * config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
7054         (cris_delay_slots_for_epilogue): Remove prototypes.
7055         * config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
7056         (ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.
7057
7058 2005-03-01  David Edelsohn  <edelsohn@gnu.org>
7059
7060         * config/rs6000/predicates.md (branch_comparison_operator): Change
7061         to define_special_predicate.
7062         (scc_comparison_operator): Same.
7063         (branch_positive_comparison_operator): Same.
7064
7065 2005-03-01  Daniel Berlin <dberlin@dberlin.org>
7066
7067         * Makefile.in (tree-ssa-sink.o): New.
7068         (OBJS-common): Add tree-ssa-sink.o.
7069         * common.opt: Add -ftree-sink
7070         * opts.c (decode_options): flag_tree_sink is set at O1 or higher.
7071         * timevar.def (TV_TREE_SINK): new timevar.
7072         * tree-flow.h (is_hidden_global_store): Prototype.
7073         * tree-optimize.c (init_tree_optimization_passes): Add
7074         pass_sink_code.
7075         * tree-pass.h (pass_sink_code): New.
7076         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
7077         for non-obvious global store store to is_hidden_global_store, and
7078         call that new function.
7079         * tree-ssa-sink.c: New file.
7080         * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
7081         * doc/passes.texi: Document forward store motion.
7082         * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
7083         * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
7084         * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
7085         * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test
7086
7087 2005-03-01  Per Bothner  <per@bothner.com>
7088
7089         * diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
7090         and we have a non-zero column-number, add it to the message.
7091         Also factor out the diagnostic_kind_text.
7092
7093 2005-03-01  Zdenek Dvorak  <dvorakz@suse.cz>
7094
7095         * cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
7096         flow_loop_pre_header_scan, flow_loop_pre_header_find,
7097         flow_loop_scan): Removed.
7098         (flow_loop_dump): Do not dump removed fields.
7099         (flow_loop_free): Do not free removed fields.
7100         (flow_loops_find): Flags argument removed.  Do not call flow_loop_scan.
7101         (loop_exit_edge_p): New function.
7102         * cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
7103         num_pre_header_edges, entry_edges, num_entries, exit_edges,
7104         num_exits, exits_doms.
7105         (LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
7106         LOOP_EDGES, LOOP_ALL): Removed.
7107         (flow_loop_scan): Declaration removed.
7108         (loop_exit_edge_p, mark_loop_exit_edges): Declare.
7109         * cfgloopmanip.c (create_loop_notes): Do not pass flags to
7110         flow_loops_find.
7111         * ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
7112         (if_convert): Call flow_loops_find and flow_loops_free
7113         when calling mark_loop_exit_edges.
7114         * cfgloopanal.c (mark_loop_exit_edges): Moved from
7115         ifcvt.c.  Removed the flow_loops_find, flow_loops_free and
7116         free_dominance_info calls.
7117         * loop-init.c (flow_loops_find): Ditto.
7118         * passes.c (rest_of_handle_branch_prob): Ditto.
7119         * lambda-code.c (perfect_nestify): Do not call flow_loops_find.
7120         * loop-unroll.c (analyze_insns_in_loop): Do not use
7121         EDGE_LOOP_EXIT.
7122         * predict.c (predict_loops): Do not call flow_loop_scan.
7123         Use get_loop_exit_edges.
7124         (tree_estimate_probability): Do not pass flags to flow_loops_find.
7125         * tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
7126         Do not use EDGE_LOOP_EXIT.
7127         (tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
7128         to bb_with_exit_edge_p.
7129         (if_convertible_loop_p): Do not call flow_loop_scan.  Use
7130         loop->single_exit.  Do not use EDGE_LOOP_EXIT.  Pass loop
7131         to bb_with_exit_edge_p.
7132         (combine_blocks): Pass loop to bb_with_exit_edge_p.  Do not use
7133         EDGE_LOOP_EXIT.
7134         * tree-loop-linear.c (linear_transform_loops): Do not call
7135         flow_loop_scan.  Use loop->single_exit.
7136         * tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
7137         (vect_analyze_loop_form): Do not call flow_loop_scan.
7138         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
7139         loop->single_exit.
7140         (vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
7141         loop->single_exit.
7142         * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
7143         slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
7144         slpeel_tree_duplicate_loop_to_edge_cfg,
7145         slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
7146         Use loop_preheader_edge and loop->single_exit.  Do not call
7147         flow_loop_scan.
7148
7149 2005-03-01  Nick Clifton  <nickc@redhat.com>
7150
7151         * config/arm/arm.c (thumb_find_work_register): Check all of the
7152         argument registers to see if they are free, and a couple of
7153         special cases where the last argument register but can be proved
7154         to be available during the function's prologue.
7155         (print_multi_reg, arm_compute_save_reg0_reg12_mask,
7156         output_return_instruction, emit_multi_reg_push, thumb_pushpop,
7157         thumb_unexpanded_epilogue): Use unsigned long as the type for the
7158         register bit-mask.
7159         (thumb_compute_save_reg_mask): Likewise.  Also use
7160         thumb_find_work_register() to ensure that there is agreement about
7161         which work register is going to be used in the prologue.
7162         (thumb_output_function_prologue): Use unsigned long as the type
7163         for the register bit-mask.  Also delay pushing the link register if
7164         other high registers are going to be pushed.
7165         (thumb_compute_save_reg_mask, emit_multi_reg_push,
7166         print_multi-reg, number_of_first_bit_set, thumb_pushpop): Remove
7167         redundant prototypes.
7168
7169 2005-02-28  John David Anglin  <dave.anglin#nrc-cnrc.gc.ca>
7170
7171         PR target/19819
7172         * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
7173         and after reload in REG+REG indexed addresses without REG_POINTER
7174         set in the base and not set in the index.
7175
7176 2005-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
7177
7178         * config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
7179         Don't undefine here.
7180         (HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
7181         (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
7182         (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
7183         (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
7184         LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
7185         Delete.
7186         * config.gcc (sh*-*-linux*): Use config/linux.h.
7187
7188 2005-02-28  Dale Johannesen  <dalej@apple.com>
7189             Stan Shebs  <shebs@apple.com>
7190
7191         Rewrite of 64-bit Darwin structure-by-value pass/return.
7192         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
7193         intoffset, use_stack, named.
7194         * config/rs6000/rs6000.c (rs6000_darwin64_function_arg):  Remove.
7195         (rs6000_darwin64_record_arg_advance_flush):  New.
7196         (rs6000_darwin64_record_arg_advance_recurse): New.
7197         (rs6000_darwin64_record_arg_flush):  New.
7198         (rs6000_darwin64_record_arg_recurse):  New.
7199         (rs6000_darwin64_record_arg):  New.
7200         (rs6000_return_in_memory):  Remove AGGREGATE_TYPE_P check.
7201         (function_arg_boundary):  Handle 128-bit aligned structs.
7202         (function_arg_advance):  Rewrite darwin64 struct handling.
7203         (function_arg):  Call rs6000_darwin64_record_arg.
7204         (function_arg_partial_nregs):  Handle darwin64 structs.
7205         (rs6000_darwin64_function_value):  Remove.
7206         (rs6000_function_value):  Call rs6000_darwin64_record_arg.
7207
7208 2005-02-28  Roger Sayle  <roger@eyesopen.com>
7209
7210         PR tree-optimization/20216
7211         * tree-chrec.c (tree_fold_factorial): Delete.
7212         (tree_fold_binomial): Change argument list to take a return type
7213         and change the type of K to unsigned int.  Rewrite to avoid explicit
7214         evaluation of factorials, and (recursively) calling fold to perform
7215         compile-time arithmetic.  Return NULL on (internal) overflow.
7216         (chrec_evaluate): Change type of K to an unsigned int.  Avoid
7217         calling tree_fold_binomial unnecessarily.  Return chrec_dont_know
7218         if any intermediate calculation overflows.
7219         (chrec_apply): Update call to chrec_evaluate.
7220
7221 2005-02-28  James E Wilson  <wilson@specifixinc.com>
7222
7223         * config/mips/mips.h (NO_PROFILE_COUNTERS): Define.
7224
7225 2005-02-28  Joseph S. Myers  <joseph@codesourcery.com>
7226
7227         PR c/20245
7228         * c-parser.c (c_parser_compound_statement): Return error_mark_node
7229         instead of NULL_TREE on error.
7230
7231 2005-02-28  David Edelsohn  <edelsohn@gnu.org>
7232
7233         * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
7234         (EASY_VECTOR_15_ADD_SELF): Remove.
7235         (num_insns_constant_wide): Not static.
7236         (validate_condition_mode): Not static.
7237         (toc_relative_expr_p): Not static.
7238         (legitimate_indirect_address_p): Not static.
7239         (macho_lo_sum_memory_operand): Not static.
7240         (invalid_e500_subreg): Not static.
7241         (easy_vector_same): Not static.
7242         (easy_vector_splat_const): Not static.
7243         (RS6000_SYMBOL_REF_TLS_P): Remove.
7244         (any_operand): Delete.
7245         (any_parallel_operand): Delete.
7246         (count_register_operand): Delete.
7247         (altivec_register_operand): Delete.
7248         (xer_operand): Delete.
7249         (s8bit_cint_operand): Delete.
7250         (short_cint_operand): Delete.
7251         (u_short_cint_operand): Delete.
7252         (non_short_cint_operand): Delete.
7253         (exact_log2_cint_operand): Delete.
7254         (gpc_reg_operand): Delete.
7255         (cc_reg_operand): Delete.
7256         (cc_reg_not_cr0_operand): Delete.
7257         (reg_or_short_operand): Delete.
7258         (reg_or_neg_short_operand): Delete.
7259         (reg_or_aligned_short_operand): Delete.
7260         (reg_or_u_short_operand): Delete.
7261         (reg_or_cint_operand): Delete.
7262         (reg_or_arith_cint_operand): Delete.
7263         (reg_or_add_cint64_operand): Delete.
7264         (reg_or_sub_cint64_operand): Delete.
7265         (reg_or_logical_cint_operand): Delete.
7266         (got_operand): Delete.
7267         (got_no_const_operand): Delete.
7268         (easy_fp_constant): Delete.
7269         (easy_vector_constant): Delete.
7270         (easy_vector_constant_add_self): Delete.
7271         (zero_constant): Delete.
7272         (zero_fp_constant): Delete.
7273         (volatile_mem_operand): Delete.
7274         (offsettable_mem_operand): Delete.
7275         (mem_or_easy_const_operand): Delete.
7276         (add_operand): Delete.
7277         (non_add_cint_operand): Delete.
7278         (logical_operand): Delete.
7279         (non_logical_cint_operand): Delete.
7280         (mask_operand): Delete.
7281         (mask_operand_wrap): Delete.
7282         (mask64_operand): Delete.
7283         (mask64_2_operand): Delete.
7284         (and64_operand): Delete.
7285         (and64_2_operand): Delete.
7286         (and_operand): Delete.
7287         (reg_or_mem_operand): Delete.
7288         (lwa_operand): Delete.
7289         (symbol_ref_operand): Delete.
7290         (call_operand): Delete.
7291         (current_file_function_operand): Delete.
7292         (input_operand): Delete.
7293         (rs6000_nonimmediate_operand): Delete.
7294         (rs6000_tls_symbol_ref): Delete.
7295         (save_world_operation): Delete.
7296         (restore_world_operation): Delete.
7297         (load_multiple_operation): Delete.
7298         (store_multiple_operation): Delete.
7299         (vrsave_operation): Delete.
7300         (mfcr_operation): Delete.
7301         (mtcrf_operation): Delete.
7302         (lmw_operation): Delete.
7303         (stmw_operation): Delete.
7304         (branch_comparison_operator): Delete.
7305         (branch_positive_comparison_operator): Delete.
7306         (scc_comparison_operator): Delete.
7307         (trap_comparison_operator): Delete.
7308         (boolean_operator): Delete.
7309         (boolean_or_operator): Delete.
7310         (min_max_operator): Delete.
7311         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
7312         (EASY_VECTOR_15): Moved to here.
7313         (EASY_VECTOR_15_ADD_SELF): Move to here.
7314         (PREDICATE_CODES): Delete.
7315         * config/rs6000/rs6000-protos.h: Delete predicate functions.
7316         Declare functions no longer static.
7317         * config/rs6000/predicates.md: New.
7318         * config/rs6000/rs6000.md: Include predicates.md
7319
7320 2005-02-28  Kazu Hirata  <kazu@cs.umass.edu>
7321
7322         * calls.c (emit_call_1): Don't use  REG_ALWAYS_RETURN.
7323         (emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
7324         REG_ALWAYS_RETURN.
7325         * cfgrtl.c (need_fake_edge_p): Likewise.
7326         * combine.c (distribute_notes): Likewise.
7327         * emit-rtl.c (try_split): Likewise.
7328         * recog.c (peephole2_opimize): Likewise.
7329         * reg-notes.def (ALWAYS_RETURN): Remove.
7330         * rtl.h (LCT_ALWAYS_RETURN): Remove.
7331         * tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
7332         * tree.h (ECF_ALWAYS_RETURN): Remove.
7333
7334 2005-02-28  Roger Sayle  <roger@eyesopen.com>
7335
7336         PR middle-end/19874
7337         * tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
7338         between different machine modes is never a "useless" conversion.
7339
7340 2005-02-28  Geert Bosch  <bosch@gnat.com>
7341
7342         PR ada/15977
7343         * doc/contrib.texi: List contributors for Ada front end
7344
7345 2005-02-28 Paolo Bonzini <bonzini@gnu.org>
7346
7347         * simplify-rtx.c (simplify_unary_operation_1,
7348         simplify_const_unary_operation): New, extracted from...
7349         (simplify_unary_operation): ... this one.
7350         (simplify_binary_operation_1,
7351         simplify_const_binary_operation): New, extracted from...
7352         (simplify_binary_operation): ... this one.
7353         * rtl.h (simplify_const_unary_operation,
7354         simplify_const_binary_operation): Add prototypes.
7355
7356 2005-02-28  Julian Brown  <julian@codesourcery.com>
7357
7358         * config/elfos.h: Revert my patch from 2005-02-25 since it broke
7359         building libjava and caused PR regression/20228.
7360
7361 2005-02-28  Paolo Bonzini  <bonzini@gnu.org>
7362
7363         PR bootstrap/17383
7364         * Makefile.in (host_subdir): New.
7365         (build_objdir): New.  Replace ../$(build_subdir) with it throughout.
7366         * configure: Regenerate.
7367
7368 2005-02-27  Zack Weinberg  <zack@codesourcery.com>
7369
7370         * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
7371         * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
7372         installation directory first.
7373
7374 2005-02-28  Hans-Peter Nilsson  <hp@axis.com>
7375
7376         PR target/19065.
7377         * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
7378         not including (reg). Do not check for reg being CRIS_PC_REGNUM.
7379         (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
7380         * config/cris/cris.md: Tweak comments referring to Q.
7381         ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
7382         ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
7383         ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
7384         ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
7385         ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
7386         Insert spaces in constraints to align alternatives vertically for
7387         readability.
7388         ("cmphi"): Ditto.  Add separate alternative for operand 0 "r",
7389         operand 1: "M".
7390
7391 2005-02-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7392
7393         PR rtl-optimization/17728
7394         * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
7395         operand 0 from general_operand to move_dest_operand.
7396
7397 2005-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7398
7399         * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
7400         instead of trying to save and restore TREE_SYMBOL_REFERENCED.
7401         * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
7402         (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
7403
7404 2005-02-26  Nathanael Nerode  <neroden@gcc.gnu.org>
7405
7406         * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
7407         * configure: Regenerate.
7408         * libada-mk.in: Remove CC; rename
7409         cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
7410
7411 2005-02-26  Andrew Pinski  <pinskia@physics.uc.edu>
7412
7413         PR tree-opt/20188
7414         * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
7415         for the lhs, also walk over the tree.  Likewise for rhs.
7416
7417 2005-02-26  Zdenek Dvorak  <dvorakz@suse.cz>
7418
7419         * tree-ssa-dom.c (simple_iv_increment_p): New function.
7420         (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
7421         Do not propagate value of iv before increment over the increment.
7422
7423 2005-02-25  Joseph S. Myers  <joseph@codesourcery.com>
7424
7425         * c-parser.c: New file.
7426         * c-parse.in: Remove.
7427         * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
7428         Remove.
7429         (c-parser.o): Add dependencies.
7430         (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
7431         maintainer-clean, TAGS): Update.
7432         * c-config-lang.in (gtfiles): Update.
7433         * gengtype-lex.l: Don't handle "@@".
7434         * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
7435         objc_build_synchronized, objc_begin_try_stmt,
7436         objc_begin_catch_clause, objc_finish_catch_clause,
7437         objc_build_finally_clause, objc_finish_try_stmt): New.
7438         * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
7439         type_seen_p.
7440         (c_parse_init): Update comment.
7441         * c-decl.c (c_init_decl_processing): Update comment.
7442         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
7443         declspecs_add_scspec, declspecs_add_attrs): Initialize and update
7444         new c_declspecs members.
7445
7446 2005-02-25  Julian Brown  <julian@codesourcery.com>
7447
7448         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
7449         from being used for symbols with vague linkage when
7450         HAVE_GAS_COMDAT_GROUP is true.
7451
7452 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
7453
7454         * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
7455
7456 2005-02-25  Steve Ellcey  <sje@cup.hp.com>
7457
7458         PR target/19930
7459         * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
7460         (LIBGCC2_HAS_DF_MODE): New.
7461         (LIBGCC2_HAS_XF_MODE): New.
7462         (LIBGCC2_HAS_TF_MODE): New.
7463         * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
7464         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
7465         * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
7466         (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
7467         (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
7468         * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
7469         and add _fixtfdi, _fixunstfdi, _floatditf
7470         * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
7471         L_fixunstfdi, L_floatditf.
7472         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
7473         (LIBGCC2_HAS_TF_MODE): Define.
7474
7475 2005-02-25  Diego Novillo  <dnovillo@redhat.com>
7476
7477         PR tree-optimization/20204
7478         * tree-into-ssa.c (insert_phi_nodes_for): Do not use
7479         REWRITE_THIS_STMT markers on PHI nodes.
7480         (rewrite_initialize_block): Likewise.
7481
7482 2005-02-25  Mark Mitchell  <mark@codesourcery.com>
7483
7484         * version.c (version_string): Update to 4.1.
7485
7486 2005-02-25  Paolo Carlini  <pcarlini@suse.de>
7487
7488         * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
7489         Clarify that the alternative way doesn't work in GNU C++.
7490
7491 2005-02-25  Zdenek Dvorak  <dvorakz@suse.cz>
7492
7493         PR tree-optimization/19937
7494         * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
7495         to the type of the induction variable.
7496
7497 2005-02-25  Kaz Kojima  <kkojima@gcc.gnu.org>
7498
7499         PR rtl-optimization/20117
7500         * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
7501         the block including noncopyable insn.
7502
7503 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
7504
7505         * cse.c (delete_trivially_dead_insns): Speed up by minimizing
7506         calls to find_reg_note.
7507
7508 2005-02-24  Richard Henderson  <rth@redhat.com>
7509
7510         PR tree-opt/20127
7511         * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
7512         the type.
7513
7514 2005-02-24  Fariborz Jahanian <fjahanian@apple.com>
7515
7516         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
7517         vector types if to use base reg for misaligned non-word ld/std.
7518
7519 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
7520
7521         PR target/14619
7522         * config/cris/cris.c (cris_target_asm_function_prologue): Create
7523         dwarf2 label manually and put it after, not before the prologue.
7524
7525 2005-02-24  David Edelsohn  <edelsohn@gnu.org>
7526
7527         PR target/19019
7528         * reload.c (operands_match_p): Only increment register number for
7529         SCALAR_INT_MODE_P modes in multiple hard registers.
7530
7531         * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
7532         Fix formatting.
7533
7534 2005-02-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7535
7536         * ChangeLog.5: Fix log message typo(s).
7537         * ChangeLog.7: Likewise.
7538         * ChangeLog.tree-ssa: Likewise.
7539         * cfgexpand.c: Fix comment typo(s).
7540         * conflict.c: Likewise.
7541         * defaults.h: Likewise.
7542         * dwarf2out.c: Likewise.
7543         * gcse.c: Likewise.
7544         * ggc-page.c: Likewise.
7545         * tree-eh.c: Likewise.
7546         * tree-ssa-dom.c: Likewise.
7547
7548 2005-02-24  Jakub Jelinek  <jakub@redhat.com>
7549
7550         PR target/19019
7551         * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
7552         * config/rs6000/darwin-ldouble.c: Only use the .symver directives
7553         if SHARED is defined.
7554
7555         PR target/20196
7556         * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
7557         allow splitting only if operands 0 and 3 don't overlap.
7558
7559 2005-02-24  Richard Henderson  <rth@redhat.com>
7560
7561         PR middle-end/19953
7562         * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
7563         (fold_builtin_1): Call them.
7564         * fold-const.c (fold_complex_mult_parts): Split out from ...
7565         (fold_complex_mult): ... here.  Fix typo in both imaginary case.
7566         (fold_complex_div_parts, fold_complex_div): New.
7567         (fold): Use them.
7568         * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
7569
7570 2005-02-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7571
7572         * tree-ssa-ccp.c (visit_assignment): Verify that result of
7573         VIEW_CONVERT_EXPR is_gimple_min_invariant.
7574
7575         * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
7576         (print_node): Likewise.
7577         Print TYPE_SIZES_GIMPLIFIED.
7578
7579 2005-02-24  Hans-Peter Nilsson  <hp@axis.com>
7580
7581         * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
7582         ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
7583         operands as commutative in constraints.
7584
7585 2005-02-24  Diego Novillo  <dnovillo@redhat.com>
7586
7587         * tree-into-ssa.c: Re-organize internal functions.
7588
7589 2005-02-24  Richard Henderson  <rth@redhat.com>
7590
7591         PR middle-end/18902
7592         * c-opts.c (c_common_post_options): Set flag_complex_method to 2
7593         for c99.
7594         * common.opt (fcx-limited-range): New.
7595         * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
7596         * toplev.c (flag_complex_method): Initialize to 1.
7597         (process_options): Set flag_complex_method to 0 if
7598         flag_cx_limited_range.
7599         * doc/invoke.texi (-fcx-limited-range): New.
7600
7601 2005-02-24  Kazu Hirata  <kazu@cs.umass.edu>
7602
7603         * cse.c (delete_trivially_dead_insns): Speed up by using
7604         NEXT_INSN and PREV_INSN directly instead of next_real_insn and
7605         prev_real_insn.
7606
7607 2005-02-24  Andrea Tarani  <andrea.tarani@gilbarco.com>
7608
7609         * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
7610         functions when -mid-shared-library is being used.
7611
7612 2005-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
7613
7614         * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
7615         (LINK_LIBGCC_SPECIAL_1): Don't mention it.
7616         * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
7617         * system.h: Poison LINK_LIBGCC_SPECIAL.
7618
7619 2005-02-23  James E Wilson  <wilson@specifixinc.com>
7620
7621         * gengtype.c (note_insn_name): Make 1 element larger.
7622
7623 2005-02-23  Roger Sayle  <roger@eyesopen.com>
7624
7625         PR target/20018
7626         PR rtl-optimization/20097
7627         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
7628         BImode SUBREGs of SImode registers which confuse the ia64 backend.
7629
7630 2005-02-23  David Edelsohn  <edelsohn@gnu.org>
7631
7632         * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
7633         * t-aix52 (SHLIB_INSTALL): Same.
7634
7635 2005-02-23  Kazu Hirata  <kazu@cs.umass.edu>
7636
7637         * genpreds.c: Update copyright.
7638
7639 2005-02-23  Michael Beach  <michaelb@ieee.org>
7640
7641         PR target/20159
7642         * config/sparc/t-elf (startup files): Assemble with CPP.
7643
7644 2005-02-23  Paolo Bonzini  <bonzini@gnu.org>
7645
7646         * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
7647         (write_predicate_expr): Likewise.
7648
7649 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
7650
7651         PR tree-optimization/20100
7652         PR tree-optimization/20115
7653         * tree-optimize.c (init_tree_optimization_passes): Remove
7654         pass_maybe_create_global_var.
7655         * tree-pass.h (pass_maybe_create_global_var): Remove.
7656         * tree-ssa-alias.c (aliases_computed_p): Declare.
7657         (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
7658         (count_calls_and_maybe_create_global_var): Remove.
7659         (pass_maybe_create_global_var): Remove.
7660         (init_alias_info): Do not declare aliases_computed_p.
7661         (maybe_create_global_var): If the function contains no
7662         call-clobbered variables and a mix of pure/const and regular
7663         function calls, create .GLOBAL_VAR.
7664         Mark all call-clobbered variables for renaming.
7665         (merge_pointed_to_info): Update comment.
7666         (add_pointed_to_var): Likewise.
7667         (is_escape_site): Likewise.
7668         Accept struct alias_info * instead of size_t *.
7669         Update all users.
7670         Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
7671         as necessary.
7672         * tree-ssa-operands.c (get_call_expr_operands): If
7673         ALIASES_COMPUTED_P is false, do not add call-clobbering
7674         operands.
7675         * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
7676         (delete_tree_ssa): Likewise.
7677
7678 2005-02-22  James E Wilson  <wilson@specifixinc.com>
7679
7680         * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
7681         (do_compile): Do call it here.
7682
7683 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
7684
7685         PR rtl-optimization/20017.
7686         * passes.c (rest_of_handle_combine, rest_of_handle_cse,
7687         rest_of_handle_cse2, rest_of_handle_gcse): Call
7688         delete_dead_jumptables immediately before calling cleanup_cfg.
7689
7690 2005-02-22  Devang Patel  <dpatel@apple.com>
7691
7692         PR 19952
7693         * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
7694         all labels
7695
7696 2005-02-22  David Edelsohn  <edelsohn@gnu.org>
7697
7698         * config/rs6000/aix.h (WINT_TYPE): Define.
7699
7700 2005-02-22  Stan Shebs  <shebs@apple.com>
7701
7702         * config/rs6000/rs6000.c (rs6000_override_options): Default to
7703         natural alignment for 64-bit Darwin.
7704         (rs6000_parse_alignment_option): Warn about uses of -malign-power
7705         on 64-bit Darwin.
7706         * doc/invoke.texi: Document this.
7707
7708 2005-02-22  DJ Delorie  <dj@redhat.com>
7709
7710         * c-common.c (c_common_type_for_mode): Pass the mode's precision
7711         to make_[un]signed_type, not the mode itself.
7712
7713 2005-02-22  Kazu Hirata  <kazu@cs.umass.edu>
7714
7715         * cfg.c (cached_make_edge): Call make_edge if edge cache is
7716         not available.  Use tail calls wherever possible.
7717         (make_edge): Call unchecked_make_edge to create an edge.
7718
7719         * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
7720         (coalesce_ssa_name): Don't check for
7721         SSANORM_USE_COALESCE_LIST.
7722         (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
7723
7724 2005-02-22  Diego Novillo  <dnovillo@redhat.com>
7725
7726         * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
7727         (rewrite_into_ssa): ... here.
7728
7729 2005-02-21  Alexandre Oliva  <aoliva@redhat.com>
7730
7731         PR tree-optimization/19786
7732         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
7733         tag to another's may-alias bitmap when adding to the other's list.
7734
7735 2005-02-21  DJ Delorie  <dj@redhat.com>
7736
7737         * tree-ssa-loop-ivopts.c (computation_cost): Start register
7738         numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
7739         registers in unsupported ways.
7740         * expmed.c (init_expmed): Likewise.
7741
7742 2005-02-21  Stan Cox  <scox@redhat.com>
7743
7744         * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
7745
7746 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
7747
7748         * tree-cfg.c (fold_cond_expr_cond): New.
7749         (make_edges): Call fold_cond_expr_cond.
7750         (find_taken_edge): Accept nothing but INTEGER_CST.
7751         (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
7752         and 1.
7753         (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
7754
7755         * flow.c (delete_dead_jumptables): Speed up by scanning insns
7756         that do not belong to any basic block.
7757
7758 2005-02-21  Jeff Law  <law@redhat.com>
7759
7760         * cfganal.c (find_unreachable_blocks): Manually CSE load of
7761         e->dest.
7762
7763 2005-02-21  Kazu Hirata  <kazu@cs.umass.edu>
7764
7765         * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
7766         (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
7767         Adjust their definitions.
7768         (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
7769         (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
7770
7771         * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
7772         genautomata.c, langhooks.c, langhooks.h, system.h,
7773         config/arm/lib1funcs.asm: Update copyright.
7774
7775 2005-02-21  Ulrich Weigand  <uweigand@de.ibm.com>
7776
7777         * dbxout.c (dbxout_function_end): Emit Lscope label always.
7778
7779 2005-02-21  Richard Guenther  <rguenth@gcc.gnu.org>
7780
7781         PR bootstrap/13770
7782         * doc/install.texi: Document --with-gc.
7783
7784 2005-02-21  Paolo Bonzini  <bonzini@gnu.org>
7785
7786         * simplify-rtx.c (simplify_unary_operation): Add a missing
7787         "break" statement.
7788
7789 2005-02-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
7790
7791         PR tree-optimization/18663
7792         * tree-ssa-dom.c (extract_range_from_cond): Return 0
7793         if the type has variable bounds.
7794
7795 2005-02-20  Kazu Hirata  <kazu@cs.umass.edu>
7796
7797         * gcse.c: Remove an obsolete comment.
7798
7799         * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
7800
7801 2005-02-20  Hans-Peter Nilsson  <hp@axis.com>
7802
7803         * doc/extend.texi (Function Attributes) <Attribute const>: The
7804         attribute "pure" is below this text, not above.
7805
7806 2005-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7807
7808         * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
7809         (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
7810         * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
7811
7812 2005-02-20  Zack Weinberg  <zack@codesourcery.com>
7813
7814         PR 18785
7815         * langhooks.h (struct lang_hooks): Add to_target_charset.
7816         * langhooks.c (lhd_to_target_charset): New function.
7817         * langhooks-def.h: Declare lhd_to_target_charset.
7818         (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
7819         (LANG_HOOKS_INITIALIZER): Update.
7820         * c-common.c (c_common_to_target_charset): New function.
7821         * c-common.h: Declare it.
7822         * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
7823         c_common_to_target_charset.
7824
7825         * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
7826         (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
7827         Delete definitions.
7828         * system.h: Poison them.
7829         * doc/tm.texi: Don't discuss them.
7830         * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
7831         * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
7832         (pp_c_char): Do not attempt to generate letter escapes for
7833         newline, tab, etc.
7834         * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
7835         * config/mips/mips.c (mips_output_ascii): Likewise.
7836
7837 2005-02-20  Dorit Naishlos  <dorit@il.ibm.com>
7838
7839         PR tree-optimization/19951
7840         * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
7841         is abnormal.
7842
7843 2005-02-19  Steven Bosscher  <stevenb@suse.de>
7844
7845         PR middle-end/19698
7846         * function.h (struct function): New field `max_loop_depth'.
7847         * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
7848         (flow_loops_find): Reset the max loop depth count before finding loops.
7849         * flow.c (MAX_LIVENESS_ROUNDS): New constant.
7850         (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
7851         (calculate_global_regs_live): Make sure the loop will terminate
7852         when the initial sets are not empty.
7853
7854 2005-02-19  Zack Weinberg  <zack@codesourcery.com>
7855
7856         * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
7857         object inside.
7858         * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
7859
7860 2005-02-19  Richard Sandiford  <rsandifo@redhat.com>
7861
7862         PR other/19525
7863         * doc/invoke.texi: Remove documentation of %M spec.
7864         * gcc.c: Likewise.
7865         (init_spec): Remove %M suffix from -lgcc_s.
7866         (do_spec_1): Remove 'M' case.
7867         * mklibgcc.in: Remove SHLIB_MULTILIB handling.  Expect SHLIB_LINK
7868         to put shared libraries in the multilib directory.  Remove the
7869         shlib_so_soname substitution variable.  Don't add a multilib encoding
7870         to shlib_base_name.  Set shlib_slibdir_qual to the full pathname
7871         reported by -print-multi-os-directory.  Pass @multilib_dir@ to
7872         SHLIB_INSTALL as well as SHLIB_LINK.
7873         * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
7874         (SHLIB_NAME): Delete.
7875         (SHLIB_DIR): New macro.
7876         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
7877         (SHLIB_INSTALL): Adjust accordingly.
7878         * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
7879         * config/t-slibgcc-sld: Likewise.
7880         * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
7881         (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
7882         (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
7883         in $(SHLIB_DIR).
7884         (SHLIBUNWIND_INSTALL): Adjust accordingly.
7885         * config/i386/t-nwld (SHLIB_SONAME): Delete.
7886         (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
7887         Use @shlib_base_name@ instead of @shlib_so_name@.
7888         * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
7889         and @shlib_base_name@.so in @multilib_dir@.
7890         (SHLIB_INSTALL): Adjust accordingly.  Add @shlib_slibdir_qual@
7891         to the install path.
7892         * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
7893         (SHLIB_LINK): Remove previous workaround.
7894         * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
7895         (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
7896         (SHLIB_INSTALL): Adjust accordingly.  Add $(SHLIB_SLIBDIR_QUAL) to
7897         the install path.
7898         * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
7899         @multilib_dir@.  Use @multilib_dir@ to check for threading libraries.
7900         (SHLIB_INSTALL): Adjust accordingly.
7901         (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
7902         * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
7903         * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
7904         config/t-slibgcc-elf-ver.
7905
7906 2005-02-19  Zdenek Dvorak  <dvorakz@suse.cz>
7907             Jakub Jelinek  <jakub@redhat.com>
7908
7909         PR tree-optimization/19828
7910         * tree-ssa-loop-im.c: Add a TODO comment.
7911         (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
7912         without side-effects.
7913
7914 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
7915
7916         * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
7917         call fold_convert.
7918
7919 2005-02-18  James E. Wilson  <wilson@specifixinc.com>
7920
7921         * doc/invoke.texi (IA-64 Options): Delete -mb-step.
7922         * config/ia64/ia64.c (last_group, group_idx): Delete variables.
7923         (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
7924         functions.
7925         (ia64_reorg): Delete fixup_errata call.
7926         * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
7927         (TARGET_SWITCHES): Delete -mb-step entry.
7928
7929 2005-02-19  Jakub Jelinek  <jakub@redhat.com>
7930
7931         PR c/20043
7932         * c-typeck.c (composite_type): Handle quals in transparent unions.
7933         (type_lists_compatible_p): Likewise.
7934
7935 2005-02-18  Stan Shebs  <shebs@apple.com>
7936
7937         * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
7938         expressions in the .literal8 section.
7939
7940 2005-02-18  Geoffrey Keating  <geoffk@apple.com>
7941
7942         * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
7943
7944 2005-02-18  Roger Sayle  <roger@eyesopen.com>
7945
7946         * fold-const.c (constant_boolean_node): Always create values of the
7947         specified type, don't bother calling truthvalue_conversion.
7948
7949 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
7950
7951         * except.c (output_function_exception_table): Call
7952         assemble_external_libcall (eh_personality_libfunc).
7953
7954 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
7955
7956         PR target/19886
7957         * config/ia64/ia64.h (struct machine_function): Add state_num.
7958         * config/ia64/ia64.c (process_epilogue,
7959         process_for_unwind_directive): Use new unwind state numbers each
7960         time rather than state 1.
7961
7962 2005-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
7963
7964         PR target/20054
7965         * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
7966         before the "*llgt_didi" pattern.
7967
7968 2005-02-18  Jason Merrill  <jason@redhat.com>
7969
7970         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
7971
7972 2005-02-18  Richard Earnshaw  <rearnsha@arm.com>
7973
7974         * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
7975         (div0): Use it in place of ARM_FUNC_ALIAS.
7976         (lshrdi3, ashrdi3, ashlrdi3): Likewise.
7977
7978 2005-02-18  Andrew Pinski  <pinskia@physics.uc.edu>
7979
7980         PR middle-end/20030
7981         * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
7982         access, the lower bound of the array type if it exists.
7983
7984 2005-02-18  Alexandre Oliva  <aoliva@redhat.com>
7985
7986         PR c++/20008
7987         * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
7988         cases that are out-of-range for the index type.
7989
7990 2005-02-18  James A. Morrison  <phython@gcc.gnu.org>
7991
7992         * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
7993         (estimate_case_costs): Don't call convert.
7994         * expmed.c (expand_shift): Likewise.
7995         (make_tree): Call fold_convert instead of convert.
7996
7997 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
7998
7999         PR c++/19813
8000         * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
8001         that ref to be marked MEM_READONLY_P doesn't have base that needs
8002         constructing.
8003
8004 2005-02-18  Joseph S. Myers  <joseph@codesourcery.com>
8005
8006         * genautomata.c (output_get_cpu_unit_code_func,
8007         output_cpu_unit_reservation_p): Don't generate old-style function
8008         definitions.
8009
8010 2005-02-18  Jakub Jelinek  <jakub@redhat.com>
8011
8012         PR c++/20023
8013         PR tree-optimization/20009
8014         * convert.c (convert_to_integer): Revert 2005-02-16 change.
8015
8016         PR tree-optimization/18947
8017         * cgraphunit.c (cgraph_finalize_function): When redefining an extern
8018         inline, remove all nodes that are inlined into the extern inline
8019         being redefined.
8020
8021 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
8022
8023         * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
8024         loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
8025         tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
8026         config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
8027         Update copyright.
8028
8029 2005-02-17  Roger Sayle  <roger@eyesopen.com>
8030
8031         PR tree-optimization/19917
8032         * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
8033         to be potentially trapping.
8034
8035 2005-02-17  Kazu Hirata  <kazu@cs.umass.edu>
8036
8037         * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
8038
8039 2005-02-17  Andreas Krebbel  <krebbel1@de.ibm.com>
8040
8041         * builtins.c (expand_builtin_return_addr): Remove tem parameter.
8042         tem becomes a local variable which is set to the value of the
8043         back end defined INITIAL_FRAME_ADDRESS macro.
8044         (expand_builtin_frame_address): Omit the base parameter to
8045         expand_builtin_return_addr.
8046         (expand_builtin_profile_func): Likewise.
8047         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
8048         (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
8049         * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
8050
8051 2005-02-17  Jakub Jelinek  <jakub@redhat.com>
8052
8053         * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
8054         s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
8055         * config/frv/frv.c (frv_function_epilogue): Likewise.
8056
8057 2005-02-17  Daniel Berlin  <dberlin@dberlin.org>
8058
8059         * lambda-code (perfect_nestify): Remove mark/unmark
8060         for rewriting hack.
8061         * tree-loop-linear.c (linear_transform_loops): Add
8062         rewrite_into_ssa call so that ssa is correct for
8063         rewriting into loop closed.
8064
8065 2005-02-17  Nathan Sidwell  <nathan@codesourcery.com>
8066
8067         * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
8068         * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
8069         BITMAP_FREE.
8070         * bt-load.c (btr_def_live_range, combine_btr_defs,
8071         migrate_btr_def, migrate_btr_defs): Likewise.
8072         * cfgcleanup.c (thread_jump): Likewise.
8073         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
8074         * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
8075         df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
8076         df_rd_local_compute, df_reg_info_compute): Likewise.
8077         * dominance.c (init_dom_info, free_dom_info): Likewise.
8078         * flow.c (init_propagate_block_info,
8079         free_propagate_block_info): Likewise.
8080         * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
8081         * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
8082         modify_reg_pav): Likewise.
8083         * loop-invariant.c (find_defs, find_invariant_insn,
8084         find_invariants, free_inv_motion_data): Likewise.
8085         * predict.c (tree_predict_by_opcode,
8086         estimate_bb_frequencies): Likewise.
8087         * stmt.c (expand_case): Likewise.
8088         * tree-cfg.c (tree_duplicate_sese_region): Likewise.
8089         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
8090         * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
8091         * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
8092         get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
8093         rewrite_ssa_into_ssa): Likewise.
8094         * tree-optimize.c (tree_rest_of_compilation): Likewise.
8095         * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
8096         analyze_edges_for_bb, perform_edge_inserts): Likewise.
8097         * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
8098         * tree-sra.c (tree_sra): Likewise.
8099         * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
8100         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
8101         * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
8102         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
8103         * tree-ssa-dse.c (tree_ssa_dse): Likewise.
8104         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
8105         Likewise.
8106         * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
8107         calculate_live_on_entry, calculate_live_on_exit,
8108         build_tree_conflict_graph): Likewise.
8109         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
8110         record_important_candidates, set_use_iv_cost, find_depends,
8111         determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
8112         tree_ssa_iv_optimize_finalize): Likewise.
8113         * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
8114         find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
8115         tree_duplicate_loop_to_header_edge): Likewise.
8116         * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
8117         * tree-ssa.c (verify_flow_insensitive_alias_info,
8118         verify_name_tags, verify_ssa, init_tree_ssa,
8119         delete_tree_ssa): Likewise.
8120         * tree-ssanames.c (marked_ssa_names, init_ssanames,
8121         fini_ssanames): Likewise.
8122         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
8123
8124 2005-02-17  Ralf Corsepius  <ralf.corsepius@rtems.org>
8125
8126         * config/rs6000/t-rtems: Completely reworked.
8127
8128 2005-02-17  Ira Rosen  <irar@il.ibm.com>
8129
8130         * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
8131
8132 2005-02-17  Ira Rosen  <irar@il.ibm.com>
8133
8134         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
8135         POINTER_TYPE_P when checking that type is a pointer.
8136         (vect_get_memtag): Remove.
8137         (vect_address_analysis): Use POINTER_TYPE_P. Call
8138         vect_object_analysis with dummy parameter for memtag.
8139         (vect_object_analysis): Extract memtag (functionality that
8140         used to be in vect_get_memtag and moved here). Fix printings.
8141         (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
8142         with correct parameters. Remove call to vect_get_memtag.
8143
8144 2005-02-17  Dorit Naishlos  <dorit@il.ibm.com>
8145
8146         * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
8147         (tree-vectorizer.o): Added missing dependencies.
8148
8149         * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
8150         decleration.
8151         (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
8152         declaration in tree-vectorizer.c, now has an extern declaration in
8153         tree-vectorizer.h).
8154         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
8155         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
8156         get_vectype_for_scalar_type, vect_is_simple_use,
8157         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
8158         vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
8159         new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
8160         vectorizable_store, vectorizable_operation, vectorizable_assignment,
8161         vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
8162         find_loop_location): Likewise.
8163
8164         * tree-vectorizer.c (langhooks.h): #include removed.
8165         (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
8166         moved to tree-vectorized.h.
8167         (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
8168         slpeel_verify_cfg_after_peeling, vect_strip_conversion,
8169         get_vectype_for_scalar_type, vect_is_simple_use,
8170         vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
8171         vect_supportable_dr_alignment, new_loop_vec_info,
8172         destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
8173         vect_set_verbosity_level, find_loop_location): Likewise.
8174
8175         (vect_analyze_loop): Function externalized. Declaration moved to
8176         tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
8177         (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
8178         (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
8179         vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
8180         vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
8181         vect_enhance_data_refs_alignment, vect_analyze_operations,
8182         exist_non_indexing_operands_for_use_p, vect_mark_relevant,
8183         vect_stmt_relevant_p, vect_get_loop_niters,
8184         vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
8185         vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
8186         vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
8187         vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
8188         vect_get_memtag): Likewise.
8189
8190         (vectorizable_load): Function externalized. Declaration moved to
8191         tree-vectorized.h. Function definition moved to tree-vect-transform.c.
8192         (vectorizable_store, vectorizable_operation, vectorizable_assignment,
8193         vect_transform_loop): Likewise.
8194         (vect_transform_stmt): Moved to tree-vect-transform.c.
8195         (vect_align_data_ref, vect_create_destination_var,
8196         vect_create_data_ref_ptr, vect_create_index_for_vector_ref,
8197         vect_create_addr_base_for_vector_ref, vect_get_new_vect_var,
8198         vect_get_vec_def_for_operand, vect_init_vector,
8199         vect_finish_stmt_generation, vect_generate_tmps_on_preheader,
8200         vect_build_loop_niters, vect_update_ivs_after_vectorizer,
8201         vect_gen_niters_for_prolog_loop, vect_update_inits_of_dr,
8202         vect_update_inits_of_drs, vect_do_peeling_for_alignment,
8203         vect_do_peeling_for_loop_bound): Likewise.
8204
8205         * tree-vect-analyze.c: New file.
8206         * tree-vect-transform.c: New file.
8207
8208 2005-02-17  Jason Merrill  <jason@redhat.com>
8209
8210         PR mudflap/19319, c++/19317
8211         * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
8212         slot explicit.
8213
8214 2005-02-17  Gerald Pfeifer  <gerald@pfeifer.com>
8215
8216         * doc/install.texi (Specific): Update link for Darwin-specific
8217         tool binary site.
8218
8219 2005-02-16  James A. Morrison  <phython@gcc.gnu.org>
8220
8221         * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
8222         constant_boolean_node.
8223
8224 2005-02-16  David Edelsohn  <edelsohn@gnu.org>
8225
8226         PR target/19019
8227         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
8228         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Same.
8229
8230 2005-02-16  Richard Henderson  <rth@redhat.com>
8231
8232         PR 19920
8233         * libgcc2.c (WORD_SIZE): Remove all definitions; replace uses
8234         with W_TYPE_SIZE.
8235         (HIGH_WORD_COEFF, HIGH_HALFWORD_COEFF): Remove all definitions;
8236         replace uses with Wtype_MAXp1_F.
8237         (L_fixunstfdi, L_fixtfdi, L_floatditf, L_fixunsxfdi, L_fixxfdi,
8238         L_floatdixf, L_fixunsxfsi, L_fixunsdfdi, L_floatdidf, L_fixunsdfsi,
8239         L_powidf2, L_powixf2, L_powitf2, L_muldc3, L_divdc3, L_mulxc3,
8240         L_divxc3, L_multc3, L_divtc3): Protect with HAVE_DFMODE, HAVE_XFMODE,
8241         and HAVE_TFMODE as appropriate.
8242         (__fixunssfDI): Provide an implementation that doesn't need DFmode.
8243         (__floatdisf): Likewise.
8244         * libgcc2.h (LIBGCC2_DOUBLE_TYPE_SIZE): New.
8245         (HAVE_DFMODE, HAVE_XFMODE, HAVE_TFMODE): New.
8246         (Wtype_MAXp1_F): New.
8247         (DFtype, DCtype, __fixdfdi, __floatdidf, __fixunsdfSI, __fixunsdfDI,
8248         __powidf2, __divdc3, __muldc3): Protect with HAVE_DFMODE.
8249
8250 2005-02-16  Richard Earnshaw  <rearnsha@arm.com>
8251
8252         * PR target/19162
8253         * arm.c (arm_apply_result_size): New function.
8254         * arm.h (APPLY_RESULT_SIZE): Define.
8255         * arm-protos.h (arm_apply_result_size): Add prototype.
8256         * arm.md (RO_REGNUM, FPA_F0_REGNUM, FPA_F7_REGNUM): New constants.
8257         (movxf): New expand.
8258         (ldmsi_postinc4_thumb, stmsi_postinc4_thumb): New patterns for Thumb.
8259         (call_value_symbol): Remove predicate for operand 0.
8260         (call_value_insn, sibcall_value, sibcall_value_insn): Likewise.
8261         (untyped_call): Rework to correclty return values for any type.
8262         (untyped_return): New expand.
8263         * fpa.md (movxf_fpa): Simplify and use sfm/lfm when appropriate.
8264
8265 2005-02-16  Stan Shebs  <shebs@apple.com>
8266
8267         * config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.
8268         * config/rs6000/t-darwin8: New, for 64-bit multilib.
8269
8270 2005-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
8271
8272         * doc/install.texi (sparc-sun-solaris2*): Document required GMP
8273         configure settings on Solaris 7 and later.
8274
8275 2005-02-16  Diego Novillo  <dnovillo@redhat.com>
8276
8277         PR tree-optimization/19865
8278         * tree-optimize.c (init_tree_optimization_passes): Run
8279         pass_may_alias after pass_sra.
8280
8281 2005-02-16  Richard Henderson  <rth@redhat.com>
8282             Stuart Hastings  <stuart@apple.com>
8283
8284         PR debug/19521
8285         * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
8286         Do nothing if debug info suppressed for this function.
8287         (dbxout_begin_function): Early exit if debug info suppressed for
8288         this function.
8289
8290 2005-02-16  Kazu Hirata  <kazu@cs.umass.edu>
8291
8292         PR target/20007
8293         * config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
8294         find_basic_blocks.
8295         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
8296
8297         PR tree-optimization/19967
8298         * builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
8299         expand_builtin_strchr, expand_builtin_strrchr): Take a new
8300         argument TYPE.  Adjust calls to fold_builtin_XXX.
8301         (expand_builtin, fold_builtin_1): Adjust calls to
8302         expand_builtin_XXX.
8303         (fold_builtin_strchr, fold_builtin_strpbrk,
8304         fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
8305         result to a requested type TYPE.
8306
8307 2005-02-16  Jakub Jelinek  <jakub@redhat.com>
8308
8309         PR middle-end/19857
8310         * fold-const.c (fold): Don't optimize (T)(x & cst) to
8311         (T)x & (T)cst if (T)cst overflows.
8312         * convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
8313         TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.
8314
8315 2005-02-15  Jeff Law  <law@redhat.com>
8316
8317         * gcse.c (blocks_with_calls): New bitmap.
8318         (alloc_gcse_mem): Allocate it.
8319         (free_gcse_mem): Free it.
8320         (clear_modifY_mem_tables): Clear it.
8321         (record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
8322         when we encounter CALL_INSNs.
8323         (compute_transp, case MEM): Handle blocks with calls separate
8324         from blocks without calls.  Use bitmap iterators rather than
8325         FOR_EACH_BB.
8326
8327 2005-02-15  Peter O'Gorman  <peter@pogma.com>
8328
8329         PR bootstrap/18810
8330         * mklibgcc.in (vis_hide): Use a temporary object file, not
8331         -o /dev/null.
8332
8333 2005-02-15  Andy Hutchinson  <HutchinsonAndy@netscape.net>
8334
8335         PR target/19924
8336         * config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
8337         access optimization.
8338
8339 2005-02-15  David Edelsohn  <edelsohn@gnu.org>
8340             Alan Modra  <amodra@bigpond.net.au>
8341
8342         PR target/19019
8343         * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
8344         (_xlqsub): Rename to __gcc_qsub.
8345         (_xlqmul): Rename to __gcc_qmul.
8346         (_xlqdiv): Rename to __gcc_qdiv.
8347         Provide versioned symbol aliases with old names.
8348         * config/rs6000/libgcc-ppc64.ver: Rename symbols.
8349         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
8350         * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
8351         * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
8352         * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.
8353
8354 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
8355
8356         * fold-const.c (fold): Fold -(~A) to A + 1.  Fold ~(-A) to A - 1.
8357         Fold ~(A - 1) and ~(A + -1) to -A.
8358
8359 2005-02-15  James A. Morrison  <phython@gcc.gnu.org>
8360
8361         PR pch/14940
8362         PR target/19300
8363         * config/host-linux.c (linux_gt_pch_use_address): Copy from
8364         config/pa/pa-host.c:pa_gt_pch_use_address.
8365
8366 2005-02-15  Daniel Berlin  <dberlin@dberlin.org>
8367
8368         * tree-vn.c (get_value_handle): Make sure that given an
8369         is_gimple_min_invariant expression, we always return it.
8370
8371 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
8372
8373         * passes.c (rest_of_handle_gcse): Fix a comment.
8374
8375 2005-02-15  Jeff Law  <law@redhat.com>
8376
8377         * gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
8378         bitmap.
8379         (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
8380         (canon_list_insert, record_last_mem_set_info): Similarly.
8381         (clear_modify_mem_tables): Similarly.
8382
8383 2005-02-15  Kazu Hirata  <kazu@cs.umass.edu>
8384
8385         * bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
8386         tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
8387         config/mips/mips.md, config/rs6000/aix.h,
8388         config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.
8389
8390 2005-02-15  Richard Henderson  <rth@redhat.com>
8391
8392         * bb-reorder.c (find_traces_1_round): Force fallthru edge from a
8393         call to be best_edge.
8394
8395 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
8396
8397         * basic-block.h: Adjust the prototype for find_basic_blocks.
8398         * cfgbuild.c (find_basic_blocks): Remove unused arguments.
8399         * passes.c (rest_of_handle_loop_optimize): Adjust the call to
8400         find_basic_blocks.
8401
8402         * flow.c (recompute_reg_usage): Remove all arguments.
8403         * passes.c (rest_of_compilation): Adjust the call to
8404         recompute_reg_usage.
8405         * rtl.h: Adjust the prototype for recompute_reg_usage.
8406
8407 2005-02-14  Daniel Berlin  <dberlin@dberlin.org>
8408
8409         * tree-dump.c (dump_files): Update to reflect new member
8410         of dump_file_info.
8411         (dump_register): Add new argument.
8412         Set glob name.
8413         (dump_switch_p_1): Check against glob name if doglob was passed.
8414         (dump_switch_p): Check against regular first, then glob if
8415         we didn't have any hits on the dump name.
8416         * tree-optimize.c (register_one_dump_file):
8417         Pass in glob name as well.
8418         * tree-pass.h (struct dump_file_info): Add glob
8419         member.
8420
8421 2005-02-14  Joseph S. Myers  <joseph@codesourcery.com>
8422
8423         PR preprocessor/16323
8424         * doc/invoke.texi: Document that -Wendif-labels is on by default.
8425
8426 2005-02-14  David Edelsohn  <edelsohn@gnu.org>
8427
8428         PR target/19019
8429         * config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
8430         (trunctfdf2_internal1): New.
8431         (trunctfdf2_internal2): Renamed from trunctfdf2.
8432
8433 2005-02-14  Diego Novillo  <dnovillo@redhat.com>
8434
8435         PR tree-optimization/19853
8436         * tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.
8437
8438 2005-02-14  Kazu Hirata  <kazu@cs.umass.edu>
8439
8440         * passes.c (rest_of_handle_loop_optimize): Remove calls to
8441         delete_dead_jumptables and cleanup_cfg.
8442
8443 2005-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
8444
8445         * reload.c (find_reloads): Swap address_reloaded flags when
8446         swapping commutative operands.
8447
8448 2005-02-14  Sebastian Pop  <pop@cri.ensmp.fr>
8449
8450         * lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
8451         Use standard_iv_increment_position for computing the bsi position
8452         for create_iv.
8453         * tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
8454         the bsi position.
8455
8456 2005-02-13  Zdenek Dvorak  <dvorakz@suse.cz>
8457
8458         PR target/17428
8459         * cfgrtl.c (safe_insert_insn_on_edge): Avoid extending
8460         life range of hard registers.
8461         * value-prof.c (insn_prefetch_values_to_profile): Only
8462         scan normal insns.
8463
8464         * value-prof.c (rtl_find_values_to_profile): Do not look for values to
8465         profile in libcalls.
8466
8467 2005-02-13  Nathan Sidwell  <nathan@codesourcery.com>
8468
8469         * bitmap.h (bitmap_and_compl_into): Return bool.
8470         * bitmap.c (bitmap_and_compl_into): Return changed flag.
8471
8472 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
8473
8474         PR tree-optimization/19944
8475         * fold-const.c (fold): Re-add ABS_EXPR folding.
8476
8477 2005-02-13  David Edelsohn  <edelsohn@gnu.org>
8478
8479         PR target/19019
8480         * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
8481         {TARGET,MASK}_XL_COMPAT.
8482         (SUBTARGET_SWITCHES): Rename xl-call to xl-compat.  Use
8483         MASK_XL_COMPAT.
8484         * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
8485         * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
8486         TARGET_XL_COMPAT.
8487         (rs6000_arg_partial_bytes): Same.
8488         (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
8489         and XL compatibility enabled.
8490         * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
8491         * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
8492         test to final condition.
8493         (cmptf_internal2): New.
8494         * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
8495         xl-compat.  Add TFmode information to description.
8496
8497 2005-02-13  Kazu Hirata  <kazu@cs.umass.edu>
8498
8499         * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
8500
8501 2005-02-13  Jason Merrill  <jason@redhat.com>
8502
8503         PR c++/16405
8504         * fold-const.c (fold_indirect_ref_1): Split out from...
8505         (build_fold_indirect_ref): Here.
8506         (fold_indirect_ref): New fn.
8507         * tree.h: Declare it.
8508         * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
8509         (gimplify_modify_expr_rhs): Likewise.
8510         (gimplify_expr): Likewise.
8511
8512 2005-02-13  James A. Morrison  <phython@gcc.gnu.org>
8513
8514         PR tree-optimization/14303
8515         PR tree-optimization/15784
8516         * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
8517         Fold ABS_EXPR<x> < 0 to false.  Fold ABS_EXPR<x> == 0 to x == 0 and
8518         ABS_EXPR<x> != 0 to x != 0.
8519
8520 2005-02-12  Kazu Hirata  <kazu@cs.umass.edu>
8521
8522         * c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
8523         simplify-rtx.c, tree-ssa-live.h: Fix comment typos.  Follow
8524         spelling conventions.
8525
8526         * passes.c (rest_of_handle_gcse): Don't run cse_main and
8527         delete_trivially_dead_insns too many times.
8528
8529         * passes.c (rest_of_handle_gcse): Remove dead assignments to
8530         tem and tem2.
8531
8532 2005-02-12  Ira Rosen  <irar@il.ibm.com>
8533
8534         * tree-vectorizer.c (vect_get_base_and_offset): Remove.
8535         (vect_is_simple_iv_evolution): Remove redundant parameter
8536         and step check.
8537         (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
8538         without last parameter.
8539         (vect_analyze_pointer_ref_access): Get access_fn as parameter.
8540         Return pointer step. Call vect_is_simple_iv_evolution without
8541         last parameter. Check only that the step is multiple of size
8542         type. Remove stmt_vinfo updates.
8543         (vect_get_memtag_and_dr): Remove.
8544         (vect_get_memtag): New function.
8545         (vect_address_analysis): New function.
8546         (vect_object_analysis): New function.
8547         (vect_analyze_data_refs): Call vect_object_analysis and
8548         vect_get_memtag. Update stmt_vinfo fields.
8549
8550 2005-02-12  Ira Rosen  <irar@il.ibm.com>
8551
8552         * tree-data-ref.c (array_base_name_differ_p): Check that the bases
8553         exist and are objects. Remove checks for pointer.
8554         * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
8555         STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
8556         (vect_create_data_ref_ptr): Likewise.
8557         (vect_base_addr_differ_p): New function.
8558         (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
8559         (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
8560         Don't set the DR_BASE_NAME field of data-ref.
8561         (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.
8562
8563 2005-02-12  Uros Bizjak  <uros@kss-loka.si>
8564
8565         * optabs.h (enum optab_index): Add new OTI_ldexp.
8566         (ldexp_optab): Define corresponding macro.
8567         * optabs.c (init_optabs): Initialize ldexp_optab.
8568         * genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
8569         patterns.
8570         * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
8571         using ldexp_optab.
8572         (expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
8573         expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
8574
8575         * config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
8576         to implement ldexpf, ldexp and ldexpl built-ins as inline x87
8577         intrinsics.
8578
8579 2005-02-12  Ira Rosen  <irar@il.ibm.com>
8580
8581         * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
8582         to base_address.
8583         * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
8584         stmt_vec_info.
8585         (vect_get_base_and_offset): Always return an address.
8586         (vect_create_addr_base_for_vector_ref): Remove treatment for
8587         different data reference types.
8588         (vect_compute_data_ref_alignment): Rename base to base_address in
8589         stmt_vec_info. Get the object in order to force its alignment.
8590         (vect_get_memtag_and_dr): Rename base to base_address in
8591         stmt_vec_info. Extract the object for memtag analysis.
8592
8593 2005-02-12  Hans-Peter Nilsson  <hp@axis.com>
8594
8595         PR regression/19898.
8596         * config/cris/cris.c (cris_notice_update_cc): When testing if insn
8597         changes cc_status, use apply modified_in_p to part of cc_status
8598         and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
8599         body.
8600
8601 2005-02-11  Richard Henderson  <rth@redhat.com>
8602
8603         * tree-complex.c (expand_complex_libcall): New.
8604         (expand_complex_multiplication): Use it for c99 compliance.
8605         (expand_complex_division): Likewise.
8606         * fold-const.c (fold_complex_add, fold_complex_mult): New.
8607         (fold): Call them.
8608         * builtins.c (built_in_names): Remove const.
8609         * tree.c (build_common_builtin_nodes): Build complex arithmetic
8610         builtins.
8611         * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
8612         (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
8613         (built_in_names): Remove const.
8614         * c-common.c (c_common_type_for_mode): Handle complex modes.
8615         * flags.h, toplev.c (flag_complex_method): Rename from
8616         flag_complex_divide_method.
8617         * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
8618         __mulsc3, __muldc3, __mulxc3, __multc3): New.
8619         * libgcc2.h: Declare them.
8620         * libgcc-std.ver: Export them.
8621         * mklibgcc.in (lib2funcs): Build them.
8622
8623 2005-02-11  Steven Bosscher  <stevenb@suse.de>
8624
8625         PR tree-optimization/19876
8626         Partially revert my change from 2005-01-14
8627         * tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
8628         (compute_antic): ...and remove the loop here.
8629
8630 2005-02-11  Jakub Jelinek  <jakub@redhat.com>
8631
8632         PR middle-end/19858
8633         * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
8634         is number of inner's bits, avoid creating a BIT_FIELD_REF.
8635
8636         * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
8637         crtend.o if -pie.  Use %{x:a;:b} spec syntax.
8638
8639 2005-02-11  Daniel Jacobowitz  <dan@codesourcery.com>
8640
8641         * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
8642         offsets for the big-endian 32-bit case.
8643
8644 2005-02-11  Joseph S. Myers  <joseph@codesourcery.com>
8645
8646         * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
8647
8648 2005-02-11  Dale Johannesen  <dalej@apple.com>
8649
8650         * cselib.c (cselib_process_insn):  Clear out regs where
8651         HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
8652         * reload.c (find_equiv_reg): Ditto.
8653
8654 2005-02-11  Ian Lance Taylor  <ian@airs.com>
8655
8656         * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
8657         with no elements.
8658
8659         * tree.c (build_function_type_list): Work correctly if there are
8660         no arguments.
8661
8662 2005-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
8663
8664         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
8665         "*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
8666         ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
8667         TARGET_ZARCH instead of TARGET_64BIT.
8668
8669 2005-02-11  Ralf Corsepius  <ralf.corsepius@rtems.org>
8670
8671         * config/rs6000/t-rtems:
8672         (MULTILIB_OPTIONS): Remove mcpu=602.
8673         (MUTLILIB_DIRNAMES): Remove m602.
8674         (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
8675         Let mcpu=602 match mcpu=603.
8676         (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
8677
8678 2005-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8679
8680         * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
8681         signal trampolines.
8682
8683 2005-02-10  David Daney  <ddaney@avtrex.com>
8684
8685         * config/alpha/linux-unwind.h: Add exception clause to copyright.
8686         * config/i386/linux-unwind.h: Likewise.
8687         * config/ia64/linux-unwind.h: Likewise.
8688         * config/mips/linux-unwind.h: Likewise.
8689         * config/pa/linux-unwind.h: Likewise.
8690         * config/rs6000/linux-unwind.h: Likewise.
8691         * config/s390/linux-unwind.h: Likewise.
8692         * config/sh/linux-unwind.h: Likewise.
8693         * config/sparc/linux-unwind.h: Likewise.
8694
8695 2005-02-10  Steven Bosscher  <stevenb@suse.de>
8696
8697         PR tree-optimization/17549
8698         * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
8699         TER to replace a DEF with its expression if the DEF and the
8700         rhs of the expression we replace into have the same root
8701         variable.
8702
8703 2005-02-10  Richard Sandiford  <rsandifo@redhat.com>
8704
8705         * config/mips/mips.md: Fix the placement of the match_scratch in the
8706         lea64 peephole2.
8707
8708 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
8709
8710         * cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
8711         Fix comment typos.
8712
8713 2005-02-10  Zdenek Dvorak  <dvorakz@suse.cz>
8714
8715         * tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
8716         (strip_offset): Handle addresses.
8717         (add_address_candidates): Use strip_offset.
8718         (difference_cost): Reflect strip_offset change.
8719         (force_var_cost, difference_cost): Strip nops.
8720
8721 2005-02-10  Kazu Hirata  <kazu@cs.umass.edu>
8722
8723         * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
8724
8725         * builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
8726         tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
8727         config/cris/cris-protos.h, config/cris/cris.c: Update
8728         copyright.
8729
8730 2005-02-10  Jeff Law  <law@redhat.com>
8731
8732         * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
8733         (lookup_avail_expr): Similarly.
8734
8735 2005-02-10  Richard Guenther  <rguenth@gcc.gnu.org>
8736
8737         * builtins.c (fold_builtin_powi): New function.
8738         (fold_builtin_1): Call it.
8739
8740 2005-02-10  Steven Bosscher  <stevenb@suse.de>
8741
8742         PR documentation/19309
8743         * doc/cpp.texi: The __GNUC__ and related predefined macros
8744         are also defined for the "standalone" cpp.
8745         Some non-GCC compilers may also define __GNUC__.
8746
8747 2005-02-10  Jakub Jelinek  <jakub@redhat.com>
8748
8749         PR c/19342
8750         * c-typeck.c (common_type): New routine.  Old common_type renamed
8751         to...
8752         (c_common_type): ...this.
8753         (build_conditional_expr, build_binary_op): Use c_common_type instead
8754         of common_type.
8755
8756 2005-02-10  Steven Bosscher  <stevenb@suse.de>
8757
8758         * doc/md.texi: Replace @samp{length} with @code{length}.
8759
8760 2005-02-09  Zdenek Dvorak  <dvorakz@suse.cz>
8761
8762         PR tree-optimization/18687
8763         * tree-flow.h (find_loop_niter): Declare.
8764         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
8765         Try using scev even for loops with more than one exit.
8766         * tree-ssa-loop-ivopts.c (struct loop_data): Removed niter field.
8767         (struct ivopts_data): Added niters field.
8768         (struct nfe_cache_elt): New.
8769         (nfe_hash, nfe_eq, niter_for_exit, niter_for_single_dom_exit): New
8770         functions.
8771         (tree_ssa_iv_optimize_init): Initialize niters cache.
8772         (determine_number_of_iterations): Removed.
8773         (find_induction_variables): Do not call determine_number_of_iterations.
8774         Access niters for single exit through niter_for_single_dom_exit.
8775         (add_iv_outer_candidates): Access niters for single exit through
8776         niter_for_single_dom_exit.
8777         (may_eliminate_iv): Take data argument.  Use niter_for_exit.  Do not use
8778         number_of_iterations_cond.
8779         (iv_period): New function.
8780         (determine_use_iv_cost_condition): Pass data to may_eliminate_iv.
8781         (may_replace_final_value): Take data argument.  Use
8782         niter_for_single_dom_exit.
8783         (determine_use_iv_cost_outer): Pass data to may_replace_final_value.
8784         (rewrite_use_compare): Pass data to may_eliminate_iv.
8785         (rewrite_use_outer): Pass data to may_replace_final_value.
8786         (free_loop_data): Clean up the niters cache.
8787         (tree_ssa_iv_optimize_finalize): Free the niters cache.
8788         (tree_ssa_iv_optimize_loop): Do not call loop_commit_inserts.
8789         * tree-ssa-loop-niter.c (find_loop_niter): New function.
8790         (find_loop_niter_by_eval): Use tree_int_cst_lt.
8791         (num_ending_zeros): Moved to tree.c.
8792         * tree.h (num_ending_zeros): Declare.
8793         * tree.c (num_ending_zeros): Moved from tree.c.
8794
8795 2005-02-09  Richard Henderson  <rth@redhat.com>
8796
8797         * builtins.c (DEF_BUILTIN): Add COND argument.
8798         * tree.h (DEF_BUILTIN): Likewise.
8799         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN,
8800         DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to
8801         match.
8802         (DEF_BUILTIN_STUB): New.
8803         (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE,
8804         BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO,
8805         BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it.
8806         * c-common.c (DEF_BUILTIN): Add COND argument.
8807         * tree.c (local_define_builtin): New.
8808         (build_common_builtin_nodes): New.
8809
8810 2005-02-09  Roger Sayle  <roger@eyesopen.com>
8811
8812         * fold-const.c (fold_strip_sign_ops): New function to simplify a
8813         floating point expression ignoring the sign of the result.
8814         (fold) <ABS_EXPR>: Use it to simplify fabs(x).
8815         (fold) <MULT_EXPR>: Use it to simplify x*x.
8816         * tree.h (fold_strip_sign_ops): Prototype here.
8817         * builtins.c (fold_builtin_copysign): Take an additional FNDECL
8818         argument.  Use fold_strip_sign_ops to simplify the first argument.
8819         (fold_builtin_pow):  Use fold_strip_sign_ops to simplify the
8820         first argument when the second argument is an even integer
8821         constant, but only with -funsafe_math_optimizations.
8822         (fold_builtin_1): Update call to fold_builtin_copysign.
8823
8824 2005-02-09  Ian Lance Taylor  <ian@airs.com>
8825
8826         PR middle-end/19583
8827         * gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
8828         just check whether EH_FILTER_FAILURE falls through.
8829
8830 2005-02-09  Andreas Krebbel  <krebbel1@de.ibm.com>
8831
8832         * gcc/haifa-sched.c (schedule_block): Make queued sched group
8833         insns return to ready list in the next turn.
8834
8835 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
8836
8837         PR middle-end/19402
8838         * builtins.def: New __builtin_powi[lf].
8839         * builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
8840         (expand_builtin_powi): New function.
8841         (expand_builtin): Dispatch to expand_builtin_powi.
8842         * libgcc2.h: Add prototypes for __builtin_powi[lf].
8843         * libgcc2.c: Add __builtin_powi[lf] implementation.
8844         * mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
8845         * optabs.h: Add powi_optab.
8846         * optabs.c (init_optabs): Initialize powi_optab.
8847         * doc/extend.texi: Document __builtin_powi[lf].
8848
8849 2005-02-09  Dorit Naishlos  <dorit@il.ibm.com>
8850
8851         * tree-vectorizer.c (vect_set_dump_settings): Check that dump_file
8852         exists.
8853
8854 2005-02-09  Richard Guenther  <rguenth@gcc.gnu.org>
8855
8856         PR middle-end/19854
8857         * fold-const.c (try_move_mult_to_index): Remove redundant
8858         type argument.  Create ADDR_EXPR with correct type.
8859         (fold): Update callers of try_move_mult_to_index.  Convert
8860         result to the appropriate type.
8861
8862 2005-02-09  Roger Sayle  <roger@eyesopen.com>
8863
8864         PR target/19597
8865         * config/avr/avr.c (default_rtx_costs): Delete.
8866         (avr_operand_rtx_cost): New function.
8867         (avr_rtx_costs): Completely rewrite.
8868
8869 2005-02-08  Hans-Peter Nilsson  <hp@axis.com>
8870
8871         PR target/19806
8872         * config/cris/cris.c (in_code): New variable.
8873         (cris_output_addr_const): Now a static function, a wrapper for
8874         output_addr_const.
8875         (cris_asm_output_symbol_ref): New function, broken out SYMBOL_REF
8876         case from old cris_output_addr_const.
8877         (cris_asm_output_label_ref): Similar for LABEL_REF.
8878         (cris_output_addr_const_extra): Similar for UNSPEC.
8879         * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA)
8880         (ASM_OUTPUT_SYMBOL_REF, ASM_OUTPUT_LABEL_REF): Define.
8881         * config/cris/cris-protos.h (cris_output_addr_const): Remove
8882         declaration.
8883         (cris_asm_output_symbol_ref, cris_output_addr_const_extra)
8884         (cris_asm_output_label_ref): Declare.
8885
8886 2005-02-08  Paolo Bonzini  <bonzini@gnu.org>
8887
8888         PR preprocessor/19801
8889         * doc/cppinternals.texi (Conventions, Lexer, Files): Adjust
8890         filenames that changed when libcpp was moved to the toplevel.
8891
8892 2005-02-07  Roger Sayle  <roger@eyesopen.com>
8893
8894         * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
8895         zero extensions of BImode operands.  Call lowpart_subreg instead
8896         of gen_lowpart_common and gen_lowpart_SUBREG.
8897
8898 2005-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
8899
8900         PR ada/19489
8901         * libada-mk.in: Use cc_for_cross_gnattools, not cc_set_by_configure.
8902         * configure.ac: Set cc_for_cross_gnattools.
8903         * configure: Regenerate.
8904
8905 2005-02-08  Alan Modra  <amodra@bigpond.net.au>
8906
8907         PR target/19803
8908         * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
8909
8910 2005-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
8911
8912         PR debug/19327
8913         * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
8914         of nested functions.
8915
8916 2005-02-07  Jonathan Wakely  <redi@gcc.gnu.org>
8917
8918         * doc/extend.texi: Document deprecated extensions allowing
8919         static floating-point members to have initializers and allowing
8920         floating-point literals in integral constant expressions.
8921
8922 2005-02-07  Kazu Hirata  <kazu@cs.umass.edu>
8923
8924         * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
8925         config/darwin7.h, config/mips/mips.c,
8926         config/rs6000/altivec.md, config/rs6000/darwin-tramp.asm:
8927         Update copyright.
8928
8929         * cse.c: Update comments.
8930
8931 2005-02-07  Richard Guenther  <rguenth@gcc.gnu.org>
8932
8933         PR middle-end/19775
8934         * builtins.c (fold_builtin_sqrt): Transform
8935         sqrt(pow(x,y)) to pow(fabs(x),y*0.5), not
8936         pow(x,y*0.5).
8937
8938 2005-02-07  Leehod Baruch  <leehod@il.ibm.com>
8939             Dorit Naishlos  <dorit@il.ibm.com>
8940
8941         * doc/invoke.texi (ftree-vectorizer-verbose): New.
8942         * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
8943         * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
8944         was added.
8945         * tree.h (vect_set_verbosity_level): New extern function declaration
8946         added.
8947         * tree-vectorizer.h (verbosity_levels): New enum type.
8948         * tree-vectorizer.c (vect_debug_stats): Function removed.
8949         (vect_debug_details): Likewise.
8950         (vect_verbosity_level): Global variable was defined and initialized.
8951         (vect_dump): Global variable definition.
8952         (vect_print_dump_info): New function.
8953         (vect_set_dump_settings): New function.
8954         (vect_set_verbosity_level): New function.
8955         (vectorize_loops): Add call to vect_set_dump_settings.
8956
8957         (slpeel_make_loop_iterate_ntimes): Dump condition was changed.
8958         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
8959         (slpeel_tree_peel_loop_to_edge): Likewise.
8960
8961         (vect_analyze_offset_expr): Call to vect_print_dump_info with
8962         appropriate verbosity level instead of call to vect_debug_details
8963         or vect_debug_stats.
8964         (vect_get_base_and_offset):
8965         (vect_create_addr_base_for_vector_ref):
8966         (get_vectype_for_scalar_type):
8967         (vect_create_data_ref_ptr):
8968         (vect_init_vector):
8969         (vect_get_vec_def_for_operand):
8970         (vect_finish_stmt_generation):
8971         (vectorizable_assignment):
8972         (vectorizable_operation):
8973         (vectorizable_store):
8974         (vectorizable_load):
8975         (vect_transform_stmt):
8976         (vect_update_ivs_after_vectorizer):
8977         (vect_do_peeling_for_loop_bound):
8978         (vect_update_inits_of_drs):
8979         (vect_do_peeling_for_alignment):
8980         (vect_transform_loop):
8981         (vect_is_simple_use):
8982         (vect_analyze_operations):
8983         (vect_is_simple_iv_evolution):
8984         (vect_analyze_scalar_cycles):
8985         (vect_analyze_data_ref_dependence):
8986         (vect_analyze_data_ref_dependences):
8987         (vect_compute_data_ref_alignment):
8988         (vect_enhance_data_refs_alignment):
8989         (vect_analyze_data_refs_alignment):
8990         (vect_analyze_data_ref_access):
8991         (vect_analyze_data_ref_accesses):
8992         (vect_analyze_pointer_ref_access):
8993         (vect_get_memtag_and_dr):
8994         (vect_analyze_data_refs):
8995         (vect_mark_relevant):
8996         (vect_stmt_relevant_p):
8997         (vect_mark_stmts_to_be_vectorized):
8998         (vect_can_advance_ivs_p):
8999         (vect_get_loop_niters):
9000         (vect_analyze_loop_form):
9001         (vect_analyze_loop):
9002         (vectorize_loops): Likewise.
9003
9004         (vect_do_peeling_for_loop_bound): Dump format slightly changed.
9005         (vect_update_inits_of_drs):
9006         (vect_do_peeling_for_alignment):
9007         (vect_transform_loop):
9008         (vect_analyze_operations):
9009         (vect_analyze_scalar_cycles):
9010         (vect_analyze_data_ref_dependences):
9011         (vect_analyze_data_refs_alignment):
9012         (vect_analyze_data_ref_accesses):
9013         (vect_analyze_data_refs):
9014         (vect_mark_stmts_to_be_vectorized):
9015         (vect_get_loop_niters):
9016         (vect_analyze_loop_form):
9017         (vect_analyze_loop): Likewise.
9018         (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
9019
9020 2005-02-07  Richard Sandiford  <rsandifo@redhat.com>
9021
9022         PR bootstrap/19796
9023         Revert:
9024         2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
9025         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
9026         either -ffast-math or -funsafe-math-optimizations is in use.
9027
9028         2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
9029         * config/mips/irix-csr.c: New file.
9030         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
9031         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
9032         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
9033         executables.
9034
9035 2005-02-07  Alexandre Oliva  <aoliva@redhat.com>
9036
9037         * config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
9038         redundant, incorrect definitions.
9039
9040         * config/frv/frv.md ("tls_indirect_call"): Turn into libcall-like
9041         expand.
9042         ("*tls_indirect_call"): New, reference hard regs directly.
9043         * config/frv/frv.c (gen_inlined_tls_plt): Adjust.
9044
9045 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
9046
9047         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC):
9048         Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
9049
9050 2005-02-06  Roger Sayle  <roger@eyesopen.com>
9051
9052         PR rtl-optimization/19800
9053         * simplify_rtx.c (simplify_relational_operation_1): Explicitly
9054         call gen_lowpart_common and gen_lowpart_SUBREG instead of calling
9055         gen_lowpart.
9056
9057 2005-02-07  Ralf Corsepius  <ralf.corsepius@rtems.org>
9058
9059         * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
9060
9061 2005-02-07  Joseph S. Myers  <joseph@codesourcery.com>
9062
9063         PR other/17135
9064         * doc/invoke.texi: Correct documentation of -freorder-functions.
9065
9066 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
9067
9068         PR other/14402
9069         * doc/invoke.texi: Don't mention gccbug.
9070
9071 2005-02-06  Roger Sayle  <roger@eyesopen.com>
9072             Andrew Pinski  <pinskia@physics.uc.edu>
9073             Paolo Bonzini  <paolo.bonzini@lu.unisi.ch>
9074
9075         * simplify-rtx.c (simplify_relational_operation_1): Simplify
9076         (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))
9077         into just (zero_extract:SI FOO (const_int 1) BAR).
9078
9079 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
9080
9081         * doc/cpp.texi: Include gcc-common.texi.  Don't define gcctabopt
9082         macro locally.  Don't give last revision date.  Use GCC version
9083         number from gcc-common.texi.
9084         * doc/cppinternals.texi: Include gcc-common.texi.  Don't give last
9085         revision date.  Use GCC version number from gcc-common.texi.
9086         Describe being a library as current state rather than as 3.x
9087         history.
9088         * doc/gcc.texi: Remove last update date.
9089         * doc/gccint.texi: Likewise.  Update copyright dates.
9090         * doc/install.texi: Update copyright dates.
9091
9092 2005-02-06  Joseph S. Myers  <joseph@codesourcery.com>
9093
9094         PR other/7549
9095         * doc/invoke.texi: Mention for each option included in -Wall that
9096         it is included in -Wall.
9097         * doc/gcc.texi: Update copyright and last modification date.
9098
9099 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
9100
9101         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
9102         unnecessary cast to original induction variable increments.
9103
9104 2005-02-06  Zdenek Dvorak  <dvorakz@suse.cz>
9105
9106         PR tree-optimization/18219
9107         * tree-ssa-loop-ivopts.c (get_computation_at): Produce computations
9108         in distributed form.
9109
9110 2005-02-06  Richard Sandiford  <rsandifo@redhat.com>
9111
9112         * expmed.c (store_bit_field): Make the SUBREG code adjust bitnum.
9113         Set bitpos and offset later in the function.  Do nothing if the
9114         target is a register and if the bitfield lies completely outside
9115         that register.
9116         (extract_bit_field): Make the same SUBREG, bitpos and offset changes
9117         here.  Return an uninitialised register if the source value is stored
9118         in a register and the bitfield lies completely outside that register.
9119
9120 2005-02-06  Steven Bosscher  <stevenb@suse.de>
9121
9122         * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
9123         not SET_DEST.
9124
9125 2005-02-06  Marcin Dalecki  <martin@dalecki.de>
9126
9127         * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
9128
9129 2005-02-06  Geoffrey Keating  <geoffk@apple.com>
9130
9131         * config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.
9132         * config/darwin8.h: New.
9133         * config/darwin7.h: Update comment.
9134
9135 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
9136             Dorit Naishlos  <dorit@il.ibm.com>
9137
9138         * tree-vectorizer.h (LOC): New type.
9139         (UNKNOWN_LOC, EXPR_LOC, LOC_FILE, LOC_LINE): New macros.
9140         (loop_line_number): New field in struct _loop_vec_info.
9141         (LOOP_VINFO_LOC, LOOP_LOC): New macros.
9142
9143         * tree-vectorizer.c (input.h): Included.
9144         (find_loop_location): New function.
9145         (vect_debug_stats): Argument changed from loop to LOC. Computation of
9146         loop line number removed.
9147         (vect_debug_details): Likewise.
9148         (new_loop_vec_info): Initialize new field LOOP_VINFO_LOC.
9149
9150         (slpeel_make_loop_iterate_ntimes): Call find_loop_location. Argument in
9151         call to vect_debug_details/stats changed from loop to loop_loc.
9152         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
9153         (slpeel_tree_peel_loop_to_edge): Likewise.
9154
9155         (vect_analyze_offset_expr): Argument in call to vect_debug_details/stats
9156         changed from NULL to UNKNOWN_LOC.
9157         (vect_get_base_and_offset):
9158         (vect_create_addr_base_for_vector_ref):
9159         (get_vectype_for_scalar_type):
9160         (vect_create_data_ref_ptr):
9161         (vect_init_vector):
9162         (vect_get_vec_def_for_operand):
9163         (vect_finish_stmt_generation):
9164         (vectorizable_assignment):
9165         (vectorizable_operation):
9166         (vectorizable_store):
9167         (vectorizable_load):
9168         (vect_transform_stmt):
9169         (vect_update_ivs_after_vectorizer):
9170         (vect_do_peeling_for_loop_bound):
9171         (vect_do_peeling_for_alignment):
9172         (vect_transform_loop):
9173         (vect_is_simple_use):
9174         (vect_analyze_operations):
9175         (vect_is_simple_iv_evolution):
9176         (vect_analyze_scalar_cycles):
9177         (vect_analyze_data_ref_dependences):
9178         (vect_compute_data_ref_alignment):
9179         (vect_enhance_data_refs_alignment):
9180         (vect_analyze_data_ref_access):
9181         (vect_analyze_data_ref_accesses):
9182         (vect_analyze_pointer_ref_access):
9183         (vect_get_memtag_and_dr):
9184         (vect_analyze_data_refs):
9185         (vect_mark_relevant):
9186         (vect_stmt_relevant_p):
9187         (vect_mark_stmts_to_be_vectorized):
9188         (vect_can_advance_ivs_p):
9189         (vect_get_loop_niters):
9190         (vect_analyze_loop):
9191         (vectorize_loops): Likewise.
9192
9193         (vectorizable_load): Argument in call to vect_debug_details/stats
9194         changed from loop to LOOP_LOC (loop_vinfo).
9195         (vect_transform_loop):
9196         (vect_analyze_operations):
9197         (vect_analyze_scalar_cycles):
9198         (vect_analyze_data_ref_dependence):
9199         (vect_enhance_data_refs_alignment):
9200         (vect_analyze_data_ref_accesses):
9201         (vect_analyze_pointer_ref_access):
9202         (vect_analyze_data_refs):
9203         (vect_analyze_loop): Likewise.
9204
9205         (vect_analyze_loop_form): Argument in call to vect_debug_details/stats
9206         changed from loop to loop_loc.
9207
9208         (vect_enhance_data_refs_alignment): Removed unused variable loop.
9209
9210 2005-02-03  Leehod Baruch  <leehod@il.ibm.com>
9211             Dorit Naishlos  <dorit@il.ibm.com>
9212
9213         * tree-vectorizer.c (vect_analyze_data_ref_dependence): Function
9214         declaration added.
9215         (vect_analyze_data_ref_dependences): Likewise.
9216
9217         (vect_is_simple_use): Argument changed from loop structure to
9218         loop_vect_info structure.
9219         (vect_can_advance_ivs_p): Likewise.
9220         (vect_create_index_for_vector_ref): Likewise.
9221         (vect_update_ivs_after_vectorizer): Likewise.
9222         (new_stmt_vec_info): Likewise.
9223
9224         (new_loop_vec_info): Second argument in call to new_stmt_vec_info was
9225         changed from loop to loop_vinfo.
9226         (vect_create_data_ref_ptr): First argument in call to
9227         vect_create_index_for_vector_ref was changed from loop to loop_vinfo.
9228         (vectorizable_assignment): Second argument in call to vect_is_simple_use
9229         was changed from loop to loop_vinfo.
9230         (vectorizable_operation): Likewise.
9231         (vectorizable_store): Likewise.
9232         (vect_mark_stmts_to_be_vectorized): Likewise.
9233         (vect_do_peeling_for_loop_bound): First argument in call to
9234         vect_update_ivs_after_vectorizer was changed from loop to loop_vinfo.
9235         (vect_analyze_operations): Argument in call to vect_can_advance_ivs_p
9236         was changed from loop to loop_vinfo.
9237         (vect_analyze_data_ref_dependences): Third argument in call to
9238         vect_analyze_data_ref_dependence was changed from loop to loop_vinfo.
9239
9240         (vect_create_index_for_vector_ref): Get the loop from loop_vinfo.
9241         (vect_create_data_ref_ptr): Likewise.
9242         (vect_init_vector): Likewise.
9243         (vect_get_vec_def_for_operand): Likewise.
9244         (vectorizable_assignment): Likewise.
9245         (vectorizable_operation): Likewise.
9246         (vectorizable_store): Likewise.
9247         (vectorizable_load): Likewise.
9248         (vect_update_ivs_after_vectorizer): Likewise.
9249         (vect_is_simple_use): Likewise.
9250         (vect_analyze_data_ref_dependence): Likewise.
9251         (vect_analyze_pointer_ref_access): Likewise.
9252         (vect_can_advance_ivs_p): Likewise.
9253
9254         * tree-vectorizer.h: (_loop_vec_info): Definition and macros moved
9255         before _stmt_vec_info.
9256         (_stmt_vec_info): Loop field replaced by loop_vec_info.
9257         (STMT_VINFO_LOOP): Replaced with STMT_VINFO_LOOP_VINFO.
9258         (new_stmt_vec_info): Argument changed from loop structure to
9259         loop_vect_info structure
9260
9261         (vect_analyze_data_ref_dependences): Unnecessary line was removed.
9262         (vect_analyze_offset_expr): Avoid 80 columns overflow.
9263         (vect_create_addr_base_for_vector_ref): Likewise.
9264         (vect_analyze_pointer_ref_access): Likewise.
9265
9266 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
9267
9268         PR tree-opt/19768
9269         * tree-ssa-dse.c (fix_phi_uses): Update the occurs in abnormal
9270         phi flag if the phi is abnormal.
9271
9272 2005-02-03  Andrew Pinski  <pinskia@physics.uc.edu>
9273
9274         PR tree-opt/19736
9275         * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
9276         information for the new statement.
9277
9278 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
9279
9280         PR driver/19117
9281         * gcc.c (main): Include the target in -v output.
9282
9283 2005-02-03  Alexandre Oliva  <aoliva@redhat.com>
9284
9285         * combine.c (simplify_comparison, case SIGN_EXTEND, ZERO_EXTEND):
9286         Do not drop the extend if we'd have to add a paradoxical subreg
9287         later.  Include optabs.h and insn-codes.h.
9288         * Makefile.in (combine.o): Depend on $(OPTABS_H).
9289
9290 2005-02-02  Roger Sayle  <roger@eyesopen.com>
9291
9292         PR middle-end/19405
9293         * real.h (REAL_MODE_FORMAT_COMPOSITE_P): New macro.
9294         * fold-const.c (const_binop): Avoid constant folding floating
9295         point operations in modes that use composite representations.
9296         * simplify-rtx.c (simplify_binary_operation): Likewise.
9297
9298 2005-02-02  Geoffrey Keating  <geoffk@apple.com>
9299
9300         * config/rs6000/altivec.md (altivec_dst): Make the first operand
9301         a REG, not a MEM.
9302         (altivec_dstt): Likewise.
9303         (altivec_dstst): Likewise.
9304         (altivec_dststt): Likewise.
9305         * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Adjust creation
9306         of first operand.
9307
9308 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
9309
9310         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Copy
9311         EXPR_LOCUS from orig_cond to the new cond_stmt.
9312         (vect_finish_stmt_generation): Copy EXPR_LOCUS from stmt to
9313         the new vec_stmt.
9314
9315 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
9316
9317         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Call
9318         standard_iv_increment_position. Remove call to bsi_next
9319         (no need to bump the iterator anymore).
9320         (vect_create_index_for_vector_ref): Call
9321         standard_iv_increment_position. Remove second function argument.
9322         (vect_finish_stmt_generation): Remove call to bsi_next
9323         (no need to bump the iterator anymore).
9324         (vect_create_data_ref_ptr): Remove second argument (bsi) in call
9325         to vect_create_index_for_vector_ref.
9326
9327 2005-02-03  Dorit Naishlos  <dorit@il.ibm.com>
9328
9329         * tree-vectorizer.c (vect_mark_stmts_to_be_vectorized): Check if
9330         phis are used out of the loop.
9331
9332 2005-02-03  Joseph S. Myers  <joseph@codesourcery.com>
9333
9334         PR c/17807
9335         * c-decl.c (undef_nested_function): New variable.
9336         (pop_scope): Diagnose undefined nested functions.
9337         (finish_function): Don't attempt cgraph processing or genericizing
9338         if current top-level function contained an undefined nested
9339         function.  Reset undef_nested_function at the end of a top-level
9340         function.
9341
9342 2005-02-02  Zdenek Dvorak  <dvorakz@suse.cz>
9343
9344         * tree.c (build_int_cst_type): Take sign of the value into account
9345         when deciding whether sign extend the value.
9346
9347 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
9348
9349         PR c/18502
9350         * gcc.c (cpp_unique_options): Remove %{trigraphs}.
9351         (cpp_options, cc1_options): Change %{std*&ansi} to
9352         %{std*&ansi&trigraphs}.
9353
9354 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
9355
9356         * cse.c: Update comments.
9357
9358 2005-02-02  Aldy Hernandez  <aldyh@redhat.com>
9359
9360         * config/rs6000/rs6000.c (rs6000_spe_function_arg): Multi-reg
9361         arguments go on the stack.  Do not put complex doubles in odd/even
9362         pairs.
9363
9364 2005-02-02  Steven Bosscher  <stevenb@suse.de>
9365
9366         * doc/invoke.texi: Update the options enabled at -O1, -O2,
9367         and -O3.  Update the documentation for -fgcse-sm, -fgcse-las,
9368         -ftree-pre, and -fthread-jumps.
9369
9370 2005-02-02  Richard Sandiford  <rsandifo@redhat.com>
9371
9372         PR tree-optimization/19578
9373         * tree-flow.h (modified_noreturn_calls): Declare.
9374         (noreturn_call_p): Declare.
9375         * tree-flow-inline.h (noreturn_call_p): New function.
9376         (modify_stmt): Add modified noreturn calls to modified_noreturn_calls.
9377         * tree-cfg.c (modified_noreturn_calls): New variable.
9378         (cleanup_control_flow): Use noreturn_call_p.  Split basic blocks
9379         that contain a mid-block noreturn call.
9380         * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls.
9381
9382 2005-02-02  Kazu Hirata  <kazu@cs.umass.edu>
9383
9384         * df.c (df_def_record_1, df_uses_record): Don't use
9385         DF_FOR_REGALLOC.
9386         * df.h (DF_FOR_REGALLOC): Remove.
9387
9388 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
9389
9390         PR c/19435
9391         * c-typeck.c (really_start_incremental_init): Reset
9392         constructor_max_index for arrays of incomplete type.
9393
9394 2005-02-02  Jeff Law  <law@redhat.com>
9395
9396         * gcse.c (struct reg_set): Store the block index where the register
9397         was set rather than the setting insn.
9398         (record_one_set, compute_transp): Corresponding changes.
9399         (pre_insert_copy_insn): Do not call replace_one_set.
9400         (replace_one_set): Remove.
9401
9402 2005-02-02  Joseph S. Myers  <joseph@codesourcery.com>
9403
9404         PR other/15514
9405         * doc/gcov.texi: Fix typo.
9406
9407 2005-02-01  Richard Henderson  <rth@redhat.com
9408
9409         PR target/19680
9410         * config/i386/i386.h (MODES_TIEABLE_P): Use ix86_modes_tieable_p.
9411         * config/i386/i386.c (ix86_hard_regno_mode_ok): Change return
9412         type to bool.
9413         (ix86_tieable_integer_mode_p, ix86_modes_tieable_p): New.
9414         * config/i386/i386-protos.h: Update.
9415
9416 2005-02-01  Steven Bosscher  <stevenb@suse.de>
9417
9418         PR tree-optimization/19217
9419         * tree-cfg.c (verify_expr): Use the data field to see if TP was
9420         seen inside a PHI node.  Do not do the ADDR_EXPR check if it was.
9421         (verify_stmts): Pass (void*)1 as data to verify_expr to signal
9422         that it is walking a PHI node.
9423
9424 2005-02-01  Joseph S. Myers  <joseph@codesourcery.com>
9425
9426         * doc/extend.texi (Nested Functions): Update.
9427
9428 2005-02-01  Richard Henderson  <rth@redhat.com>
9429
9430         PR 19696
9431         * optabs.c (expand_copysign_absneg): Export.
9432         * optabs.h (expand_copysign_absneg): Declare.
9433         * config/rs6000/rs6000.md (copysigntf3): New.
9434
9435 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
9436
9437         PR tree-optimization/19633
9438         * tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
9439         * tree-ssa-alias.c (init_alias_info): Initialize.
9440         (merge_pointed_to_info): Set.
9441         (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
9442         (dump_points_to_info_for): Show value of pt_null.
9443         (struct count_ptr_d): Declare.
9444         (find_ptr_dereference): Remove.
9445         (ptr_is_dereferenced_by): Remove.
9446         (count_ptr_derefs): New local function.
9447         (count_uses_and_derefs): New local function.
9448         (compute_points_to_and_addr_escape): Call it.  If the number
9449         of dereferences is greater than zero, mark the pointer as
9450         dereferenced.  If there are fewer dereferences than uses of
9451         the pointer, the pointer's value escapes.
9452
9453 2005-02-01  Diego Novillo  <dnovillo@redhat.com>
9454
9455         PR tree-optimization/19670
9456         * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
9457         here...
9458         (verify_use): ... set it here, instead.
9459
9460 2005-02-01  Janis Johnson  <janis187@us.ibm.com>
9461
9462         * doc/sourcebuild.texi (Test directives): Fix formatting.
9463
9464         * doc/sourcebuild.texi (Test directives): Describe selector
9465         expressions.
9466
9467 2005-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
9468
9469         * config.gcc (powerpc64-*-linux*): Default to -m64 also for
9470         specific 64-bit CPUs.
9471
9472 2005-02-01  Richard Earnshaw  <rearnsha@arm.com>
9473
9474         PR target/16201
9475         * arm.c (arm_eliminable_register): New function.
9476         (adjacent_mem_locations): Don't allow eliminable registers.  Use
9477         HOST_WIDE_INT for address offsets.
9478         * arm-protos.h (arm_eliminable_register): Add prototype.
9479
9480 2005-02-01  Steven Bosscher  <stevenb@suse.de>
9481
9482         PR optimization/15242
9483         * params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
9484         * basic-block.h (duplicate_computed_gotos): Add prototype.
9485         * bb-reorder.c (duplicate_computed_gotos): New function to
9486         duplicate sufficiently small blocks ending in a computed jump.
9487         * passes.c (rest_of_compilation): Call duplicate_computed_gotos
9488         if not optimizing for size.
9489         * cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
9490         never do tail merging for blocks ending in a computed jump.
9491         * doc/invoke.texi: Document the max-goto-duplication-insns param.
9492
9493 2005-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
9494
9495         Patch from Richard Sandiford <rsandifo@redhat.com>
9496         * reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
9497         from inheriting a subreg equivalence with a non-spill register.
9498
9499         * tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
9500
9501 2005-02-01  Alexandre Oliva  <aoliva@redhat.com>
9502
9503         * config/frv/frv.c (movcc_fp_destination_operand): New.
9504         (gpr_or_memory_operand): Fix typo in comment.
9505         (gpr_or_memory_operand_with_scratch): New.
9506         * config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
9507         * config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
9508         movcc_fp_destination_operand.
9509         (reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
9510         Legitimize memory addresses using a scratch register.
9511
9512 2005-01-31  Jeff Law  <law@redhat.com>
9513
9514         * tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
9515         bitmap a sparse bitmap instead of a simple bitmap.
9516         (mark_def_sites_initialize_block):  Corresponding changes.
9517         (ssa_mark_def_sites_initialize_block): Likewise.
9518         (ssa_mark_phi_uses): Likewise.
9519         (mark_def_site, ssa_mark_def_sites): Likewise.
9520         (mark_def_site_blocks): Likewise.
9521         (rewrite_ssa_into_ssa): Likewise.
9522
9523         * tree-ssa-dom.c (record_cond): Pass correct variable type
9524         for last argument to htab_find_slot_with_hash.
9525
9526         * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
9527         effects when optimizing 0 % X.  Do not try to optimize X % 0.
9528
9529 2005-01-31  James E. Wilson  <wilson@specifixinc.com>
9530
9531         * config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
9532         1_mmalua.
9533
9534 2005-02-01  Eric Christopher  <echristo@redhat.com>
9535
9536         * config/mips/mips.c (override_options): Warn if -mint64
9537         is used.
9538         * doc/invoke.texi (MIPS Options): Document that -mint64 is
9539         deprecated.
9540
9541 2005-02-01  Kazu Hirata  <kazu@cs.umass.edu>
9542
9543         * cse.c (cse_reg_info): Remove hash_next, next, regno.  Add
9544         timestamp.
9545         (cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
9546         REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
9547         cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
9548         (cached_regno): Initialize to INVALID_REGNUM.
9549         (cse_reg_info_table_size,
9550         cse_reg_info_table_first_uninitialized,
9551         cse_reg_info_timestamp): New.
9552         (REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
9553         get_cse_reg_info.
9554         (init_cse_reg_info, get_cse_reg_info_1): New.
9555         (get_cse_reg_info): Cache the last look-up.
9556         (new_basic_block): Update the code to clear mappings from
9557         registers to cse_reg_info entries.
9558         (cse_main): Call init_cse_reg_info.
9559
9560         * cse.c (get_cse_reg_info): Update a comment.
9561
9562 2005-01-31  Steven Bosscher  <stevenb@suse.de>
9563
9564         PR c/19333
9565         * c-decl.c (start_decl): Do not warn about arrays of elements with
9566         an incomplete type here.
9567         (grokdeclarator): Do it here by making a pedwarn an error.
9568         * c-typeck.c (push_init_level): If there were previous errors with
9569         the constructor type, do not warn about braces for initializers.
9570         (process_init_element): Likewise for excess initializer elements.
9571
9572 2005-01-31  Kazu Hirata  <kazu@cs.umass.edu>
9573
9574         * cse.c (delete_trivially_dead_insn): Don't iterate.
9575
9576 2005-01-31  Andrew Pinski  <pinskia@physics.uc.edu>
9577
9578         * config/rs6000/rs6000.md (copysignsf3): New expand.
9579         (copysigndf3): Likewise.
9580
9581 2005-01-31  Steven Bosscher  <stevenb@suse.de>
9582
9583         * recog.c (constrain_operands): Only look for earlyclobber operand
9584         conflicts if an '&' constraint was seen.
9585
9586 2005-01-31  Marc Espie <espie@openbsd.org>
9587
9588         * config.gcc: Don't include embedded systems fragment, switches default
9589         debugging format to ELF.
9590         * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
9591         longer pick it up there.
9592
9593 2005-01-31  Dale Johannesen  <dalej@apple.com>
9594
9595         * doc/extend.texi (nested functions): Fix linkage description.
9596         Clarify that static is not allowed.
9597
9598 2005-01-31  Dale Johannesen  <dalej@apple.com>
9599
9600         * config/rs6000/darwin.md (movsf_low_di):  Make work.
9601         (movdf_low_di):  Make work.
9602
9603 2005-01-31  Dale Johannesen  <dalej@apple.com>
9604
9605         * config/rs6000/darwin-tramp.asm (__trampoline_setup):
9606         Make work for 64 bit.
9607
9608 2005-01-31  Roger Sayle  <roger@eyesopen.com>
9609             Dale Johannesen  <dalej@apple.com>
9610
9611         PR middle-end/19650
9612         * fold-const.c (fold_binary_op_with_conditional_arg):
9613         Make types match original operands, before STRIP_NOPS.
9614
9615 2005-01-31  Alan Modra  <amodra@bigpond.net.au>
9616
9617         * config/rs6000/linux-unwind.h (struct gcc_vregs): New.
9618         (struct gcc_regs): Rename from gcc_pt_regs.  Add more regs.
9619         (struct gcc_sigcontext): Delete.  Merge contents to..
9620         (struct gcc_ucontext): ..here.
9621         (get_sigcontext): Delete.
9622         (get_regs): New function, like get_sigcontext but return regs ptr.
9623         64-bit version finds regs from r1 to support vdso.
9624         (ppc_linux_aux_vector): New function.
9625         (ppc_fallback_frame_state): Modify for get_regs.  Restore fprs
9626         and vector regs.
9627
9628 2005-01-31  Ira Rosen  <irar@il.ibm.com>
9629
9630         * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
9631         sizetype.
9632         (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
9633         redundant fold. Fix misalignment for MINUS_EXPR.
9634         (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
9635         (vect_analyze_pointer_ref_access): Likewise.
9636         (vect_get_memtag_and_dr): Likewise.
9637
9638 2005-01-31  Richard Henderson  <rth@redhat.com>
9639
9640         * config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
9641         (absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
9642         absnegdf2_i387, absnegxf2_i387): Likewise.
9643
9644 2005-01-31  Richard Henderson  <rth@redhat.com>
9645
9646         PR 19696
9647         * optabs.c (expand_copysign_absneg): New.
9648         (expand_copysign_bit): Split out from ...
9649         (expand_copysign): ... here.  Use expand_copysign_absneg.
9650
9651 2005-01-30  Roger Sayle  <roger@eyesopen.com>
9652
9653         PR middle-end/19697
9654         * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
9655         constant as the second operand and a register as the third.
9656
9657 2005-01-31  Danny Smith  <dannysmith@users.sourceforge.net>
9658
9659         PR target/19704
9660         * config/i386/i386.c (ix86_function_ok_for_sibcall):  Also check
9661         that dllimport'd functions do not use all call-clobbered registers
9662         to pass parameters.
9663
9664 2005-01-30  Richard Henderson  <rth@redhat.com>
9665
9666         PR 19696
9667         * optabs.c (expand_absneg_bit): Split out from expand_unop and
9668         expand_abs_nojump and generalize.  Use operand_subword and
9669         emit_no_conflict_block.  Support large modes.
9670         (expand_abs_nojump): Use it.  Use HONOR_SIGNED_ZEROS to fall
9671         back to maximum.
9672         (expand_unop): Likewise.  Use HONOR_SIGNED_ZEROS to fall back
9673         negation to subtraction.
9674         (expand_copysign): Check that the format has signed zeros.
9675         Use operand_subword and emit_no_conflict_block.  Support large modes.
9676
9677 2005-01-30  Daniel Berlin  <dberlin@dberlin.org>
9678
9679         Fix PR tree-optimization/19624
9680
9681         * Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
9682         * tree-ssa-pre.c: Add cfgloop.h.
9683         Update comment.
9684         (pre_stats): New member, constified.
9685         (inserted_exprs): New static variable.
9686         (NECESSARY): New macro.
9687         (create_expression_by_pieces): Fold the expression, and
9688         mark it as defaulting to not necessary. Also put in
9689         inserted_exprs.
9690         (fully_constant_expression): New function.
9691         (insert_into_preds_of_block): Modify to not insert phis when we
9692         are playing with induction variables.
9693         Push phis onto the inserted_exprs vector, and mark them as not
9694         necessary by default.
9695         (insert_aux): Call fully_constant_expression on eprime.
9696         If all edges produce the same value, mark it constant.
9697         (mark_operand_necessary): New function.
9698         (remove_dead_inserted_code): New function.
9699         (init_pre): Init loop optimizer to get loop info.
9700         (fini_pre): Free loop_optimizer, and inserted_exprs vec.
9701         (execute_pre): Commit edge inserts, then remove dead code.
9702
9703 2005-01-30  Richard Henderson  <rth@redhat.com>
9704
9705         * rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
9706         * varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
9707
9708 2005-01-30  Richard Henderson  <rth@redhat.com>
9709
9710         PR target/19700
9711         * config/i386/i386.c (ix86_expand_copysign): New.
9712         (ix86_split_copysign_const): New.
9713         (ix86_split_copysign_var): Rename from ix86_split_copysign,
9714         rearrange op1/nmask operands.
9715         * config/i386/i386-protos.h: Update.
9716         * config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
9717         (copysigndf3): Likewise.
9718         (copysignsf3_const, copysigndf3_const): New.
9719         (copysignsf3_var): Rename from copysignsf3, split out splitter
9720         and fix split predicate for X constraint.
9721         (copysigndf3_var): Similarly.
9722
9723 2005-01-30  Kazu Hirata  <kazu@cs.umass.edu>
9724
9725         * optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
9726         doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
9727         doc/tm.texi, doc/tree-ssa.texi: Update copyright.
9728
9729 2005-01-29  Richard Henderson  <rth@redhat.com>
9730
9731         PR target/19690
9732         * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
9733         of # and * in constraints.
9734
9735 2005-01-29  Richard Henderson  <rth@redhat.com>
9736
9737         PR middle-end/19689
9738         * expr.c (store_field): Don't strip sub-mode cast when the input
9739         data is even smaller.
9740
9741 2005-01-29  Richard Henderson  <rth@redhat.com>
9742
9743         PR middle-end/19687
9744         * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
9745         union being empty.
9746
9747 2005-01-29  Richard Henderson  <rth@redhat.com>
9748
9749         * combine.c (make_field_assignment): Fix argument order
9750         to gen_int_mode.
9751
9752 2005-01-29  Richard Guenther <richard.guenther@uni-tuebingen.de>
9753
9754         PR tree-optimization/15791
9755         * fold-const.c (extract_array_ref): New function.
9756         (fold): Fold comparisons between &a[i] and &a[j] or
9757         semantically equivalent trees.
9758
9759 2005-01-29  Jeff Law  <law@redhat.com>
9760
9761         * gcse.c (insert_expr_in_table): Revamp handling of available
9762         and anticipatable occurrence lists to avoid unnecessary list
9763         walking.
9764         (insert_set_in_table): Similarly.
9765
9766 2005-01-29  Joseph S. Myers  <joseph@codesourcery.com>
9767
9768         * c-common.c (fix_string_type): Just use c_build_qualified_type to
9769         build string type.
9770         (c_build_qualified_type): Build qualified array types with
9771         TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
9772         * c-decl.c (c_make_fname_decl): Build unqualified array type
9773         before qualified type.
9774         (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
9775         type is qualified, not just if type itself is.  Don't apply
9776         qualifiers to array type when declarator is processed.  Apply
9777         qualifiers to field type whether or not it is an array type.
9778         Don't handle array types specially for applying qualifiers to
9779         variables.
9780         * c-typeck.c (composite_type): Build unqualified element type and
9781         array type when forming composite of array types.
9782         (common_pointer_type, comptypes, comp_target_types,
9783         type_lists_compatible_p, build_indirect_ref, build_array_ref,
9784         convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
9785         types.
9786         (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
9787         (args2) in variables a1 and a2.
9788
9789 2005-01-29  Kazu Hirata  <kazu@cs.umass.edu>
9790
9791         * cse.c (n_elements_made, max_elements_made): Remove.
9792         (insert): Don't touch n_elements_made.
9793         (cse_main): Don't touch n_elements_made or max_elements_made.
9794
9795 2005-01-28  Stephane Carrez  <stcarrez@nerim.fr>
9796
9797         PR target/15384
9798         * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
9799         configuration part of dp-bit.c to be lost.
9800
9801 2005-01-28  Roger Sayle  <roger@eyesopen.com>
9802
9803         * expmed.c (expand_mult_highpart_optab): When attempting to use
9804         a non-widening multiplication in a wider mode, the operands need
9805         to be converted (zero or sign extended) to that mode.
9806
9807 2005-01-28  Ian Lance Taylor  <ian@airs.com>
9808
9809         PR middle-end/16558
9810         PR middle-end/19583
9811         * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
9812         through if both operands fall through.
9813
9814 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
9815
9816         * cse.c (fold_rtx) <PC>: Don't optimize.
9817
9818 2005-01-28  Jeff Law  <law@redhat.com>
9819
9820         * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
9821         (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
9822
9823 2005-01-28  Kazu Hirata  <kazu@cs.umass.edu>
9824
9825         * cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
9826         cse_reg_info_used_list_end): Remove.
9827         (cse_reg_info_list, cse_reg_info_list_free): New.
9828         (get_cse_reg_info): When allocating an instance of
9829         cse_reg_info, add it to the beginning of the cse_reg_info_list
9830         list.  Remove code to maintain cse_reg_info_used_list.
9831         (new_basic_block): Reset the free list to the beginning of
9832         cse_reg_info_list.
9833
9834 2005-01-28  Richard Sandiford  <rsandifo@redhat.com>
9835
9836         * config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
9837         (frv_init_builtins): Change its prototype to take 4 uhalf arguments.
9838         (frv_expand_mdpackh_builtin): New function.
9839         (frv_expand_builtin): Use it to expand __MDPACKH.
9840         * doc/extend.texi (__MDPACKH): Update documentation.
9841
9842 2005-01-28  Uros Bizjak  <uros@kss-loka.si>
9843
9844         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
9845         SSE_FLOAT_MODE_P for use_sse computation.
9846
9847 2005-01-28  Ralf Corsepius  <ralf.corsepius@rtems.org>
9848
9849         PR target/19663
9850         * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
9851
9852 2005-01-27  Richard Henderson  <rth@redhat.com>
9853
9854         * builtins.c (expand_builtin_copysign): New.
9855         (expand_builtin): Call it.
9856         * genopinit.c (optabs): Add copysign_optab.
9857         * optabs.c (init_optabs): Initialize it.
9858         (expand_copysign): New.
9859         * optabs.h (OTI_copysign, copysign_optab): New.
9860         (expand_copysign): Declare.
9861
9862         * config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
9863         (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
9864
9865         * config/i386/i386.c (ix86_build_signbit_mask): Split from ...
9866         (ix86_expand_fp_absneg_operator): ... here.
9867         (ix86_split_copysign): New.
9868         * config/i386/i386-protos.h: Update.
9869         * config/i386/i386.md (UNSPEC_COPYSIGN): New.
9870         (copysignsf3, copysigndf3): New.
9871
9872         * config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
9873         (copysignsf3, ncopysignsf3): New.
9874         (copysigndf3, ncopysigndf3): New.
9875         (copysignxf3, ncopysignxf3): New.
9876         * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
9877
9878 2005-01-27  Arend Bayer  <arend.bayer@web.de>
9879             Kazu Hirata  <kazu@cs.umass.edu>
9880
9881         * cse.c: (find_best_addr): Don't call copy_rtx before calling
9882         fold_rtx.  Save cost recomputation if fold_rtx did nothing.
9883         (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
9884         NULL_RTX.
9885
9886 2005-01-27  Jeff Law  <law@redhat.com>
9887
9888         * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
9889         definitions of SSA_NAMEs which are not being rewritten.
9890         (rewrite_ssa_into_ssa): Only initialize the current definition
9891         of an SSA_NAME if that SSA_NAME has been marked for rewriting.
9892         If checking is enabled, assert that SSA_NAME_AUX is clear for all
9893         SSA_NAMEs before returning.
9894
9895 2005-01-27  Kazu Hirata  <kazu@cs.umass.edu>
9896
9897         * c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
9898         cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
9899         tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
9900         config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
9901         config/mips/iris6.h, config/sh/sh.c: Update copyright.
9902
9903 2005-01-27  Steven Bosscher  <stevenb@suse.de>
9904
9905         PR middle-end/17278
9906         * opts.c (decode_options): Move flag_thread_jumps from -O1 and
9907         higher to -O2 and higher.  Likewise for tree PRE.
9908         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
9909         and better.
9910
9911 2005-01-27  Ian Lance Taylor  <ian@airs.com>
9912
9913         PR middle-end/19583
9914         * gimple-low.c (try_catch_may_fallthru): New static function.
9915         (block_may_fallthru): Handle TRY_CATCH_EXPR.
9916         * tree-inline.c (expand_call_inline): Don't warn about reaching
9917         the end of a non-void function being inlined if the function uses
9918         a return slot.
9919
9920 2005-01-27  Jakub Jelinek  <jakub@redhat.com>
9921
9922         * config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
9923
9924         PR c/18946
9925         * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
9926         (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
9927         (implicitly_declare): Handle error_mark_node.
9928
9929 2005-01-27  Richard Henderson  <rth@redhat.com>
9930
9931         PR tree-opt/14329
9932         * tree.h (struct tree_decl): Add debug_expr_is_from.
9933         (DECL_DEBUG_EXPR_IS_FROM): New.
9934         (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
9935         * dwarf2out.c (dwarf2out_var_location): Update to match.
9936         * tree-outof-ssa.c (create_temp): Likewise.
9937         * var-tracking.c (track_expr_p): Likewise.
9938         * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
9939         * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
9940         * toplev.c (default_tree_printer): Likewise.
9941
9942 2005-01-27  Alexandre Oliva  <aoliva@redhat.com>
9943
9944         * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
9945         GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
9946
9947 2005-01-27  Steven Bosscher  <stevenb@suse.de>
9948
9949         * tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
9950         CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
9951         ASM_CLOBBERS): Add tree checks.
9952
9953         * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
9954         (SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
9955         * c-common.def (SWITCH_STMT): Update to match.
9956         * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
9957         macros instead of SWITCH_EXPR ones.
9958         * c-dump.c (c_dump_tree): Likewise.
9959         * c-gimplify.c (gimplify_switch_stmt): Likewise.
9960         * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
9961
9962         * doc/c-tree.texi (SWITCH_STMT): Update accessor macro names.
9963
9964 2005-01-27  Alan Modra  <amodra@bigpond.net.au>
9965
9966         * unwind-dw2.c (execute_stack_op): Add missing cases for
9967         DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
9968
9969 2005-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
9970
9971         * config.gcc (Obsolete configurations): Remove 'dummy', add
9972         sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
9973         sparc-*-openbsd*.
9974
9975 2005-01-26  Diego Novillo  <dnovillo@redhat.com>
9976
9977         PR tree-optimization/19633
9978         * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
9979         CALL_EXPRs.
9980         (maybe_create_global_var): Do not create .GLOBAL_VAR if there
9981         are no call-clobbered variables.
9982         * tree-outof-ssa.c (check_replaceable): Return false for calls
9983         with side-effects.
9984
9985 2005-01-26  Ulrich Weigand  <uweigand@de.ibm.com>
9986
9987         * dbxout.c (dbxout_symbol_location): Resolve constant pool references
9988         even for variables with NULL DECL_INITIAL.
9989
9990 2005-01-26  Stuart Hastings  <stuart@apple.com>
9991
9992         * gimplify.c (shortcut_cond_expr): Re-compute side-effects.
9993
9994 2005-01-26  Richard Henderson  <rth@redhat.com>
9995
9996         PR middle-end/18008
9997         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
9998         field's type.
9999         * expr.c (store_field): Strip conversions to odd-bit-sized types
10000         if the destination field width matches.
10001
10002 2005-01-26  Richard Henderson  <rth@redhat.com>
10003
10004         * c-decl.c, expmed.c, expr.c: Revert last change.
10005
10006 2005-01-26  Richard Henderson  <rth@redhat.com>
10007
10008         PR middle-end/18008
10009         * c-decl.c (finish_struct): Set DECL_MODE after resetting a
10010         field's type.
10011         * expmed.c (store_fixed_bit_field): Create a paradoxical subreg
10012         if we don't need the bits above those present in the current mode.
10013         * expr.c (store_field): Strip conversions to odd-bit-sized types
10014         if the destination field width matches.
10015
10016 2005-01-26  Richard Sandiford  <rsandifo@redhat.com>
10017
10018         * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
10019         either -ffast-math or -funsafe-math-optimizations is in use.
10020
10021 2005-01-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10022
10023         PR target/19293
10024         PR target/19329
10025         * config/avr/avr.c (notice_update_cc): Only set condition code for
10026         ashrqi3 if shift count > 0.
10027         (out_shift_with_cnt): Handle shift count <= 0 as a no-op.
10028         (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out,
10029         ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift
10030         count <= 0 as a no-op, and shift count >= width by copying zero
10031         or sign bit to all bits of the result.
10032         * config/avr/avr.md (all shifts): Add alternatives for zero shift
10033         count, with attribute "length" set to 0 and "cc" set to "none".
10034
10035 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
10036
10037         * doc/invoke.texi: Document -mTLS.
10038
10039         * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New.
10040         * testsuite/gcc.target/frv/all-tls-initial-exec.c: New.
10041         * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New.
10042         * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New.
10043         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New.
10044         * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New.
10045         * testsuite/gcc.target/frv/all-tls-local-exec.c: New.
10046         * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New.
10047
10048         * configure.ac: Check for a TLS capable gas.
10049
10050         * configure: Regenerate.
10051
10052 2005-01-26  Richard Henderson  <rth@redhat.com>
10053
10054         PR middle-end/18008
10055         * combine.c (make_field_assignment): Simplify store to zero_extract
10056         from a source with an overlapping mask.
10057
10058 2005-01-26  Aldy Hernandez  <aldyh@redhat.com>
10059
10060         2004-11-11  Eric Christopher  <echristo@redhat.com>
10061
10062         * config/frv/frv.md: Add fr400_integer automaton. Don't
10063         allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel
10064         to TYPE_MACC.
10065
10066 2005-01-26  Steven Bosscher  <stevenb@suse.de>
10067
10068         PR middle-end/16585
10069         * cfgbuild.c (make_edges): Do not clear or set
10070         current_function_has_computed_jump.
10071         * function.h (struct function): Remove the has_computed_jump field.
10072         (current_function_has_computed_jump): Do not define.
10073         * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
10074         in a computed jump.  Ignore current_function_has_computed_jump.
10075
10076 2005-01-26  Richard Henderson  <rth@redhat.com>
10077
10078         PR middle-end/19515
10079         * expr.c (categorize_ctor_elements): New argument p_must_clear.
10080         (categorize_ctor_elements_1): Likewise.  Detect a union that isn't
10081         fully initialized.
10082         (mostly_zeros_p): Update for new categorize_ctor_elements argument.
10083         * gimplify.c (gimplify_init_constructor): Likewise.  Only shove
10084         objects into static storage if they have more than one non-zero value.
10085         * tree.h (categorize_ctor_elements): Update decl.
10086
10087 2005-01-26  Steven Bosscher  <stevenb@suse.de>
10088
10089         PR middle-end/19616
10090         * tree.h (CALL_EXPR_TAILCALL): Add comment.
10091         * calls.c (check_sibcall_argument_overlap_1): Revert the change
10092         to this function from 2004-07-10.
10093         * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
10094         the current function for tail call optimizations if the address
10095         of one of it its arguments is taken.
10096
10097 2005-01-26  Kazu Hirata  <kazu@cs.umass.edu>
10098
10099         * cse.c (fold_rtx): Call equiv_constant only when necessary.
10100
10101 2005-01-26  Bernd Schmidt  <bernd.schmidt@analog.com>
10102
10103         * function.c (expand_function_end): If current_function_calls_alloca,
10104         emit stack restore in a place that is reached when the function falls
10105         through at the end.
10106
10107 2005-01-26  Alexandre Oliva  <aoliva@redhat.com>
10108
10109         * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
10110         rule to avoid matching inappropriate suffix rule.
10111
10112 2005-01-26  Jan Hubicka  <jh@suse.cz>
10113
10114         PR tree-optimization/19241
10115         * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
10116
10117 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
10118
10119         * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
10120         -lsyssim.  Wrap -lc -lsyssim in --start-group --end-group instead
10121         of doubling.
10122         (STARTFILE_SPEC): Add crti.o, before crtbegin.o.
10123         <sim*>: Always use crt1.o, regardless of N in simN.
10124         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
10125         (ENDFILE_SPEC): Add crtn.o, after crtend.o.
10126         (CRT_CALL_STATIC_FUNCTION): Remove.
10127         * config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
10128         use crt1.o, regardless of N in simN.
10129         <!sim>: Drop support for -pg and -p variants; always use crt0.o.
10130         (LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
10131         (CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
10132         case isystem setting.
10133         (MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
10134
10135 2005-01-25  Ian Lance Taylor  <ian@airs.com>
10136
10137         * gimple-low.c (block_may_fallthru): Correct handling of
10138         SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
10139
10140 2005-01-26  Hans-Peter Nilsson  <hp@axis.com>
10141
10142         * config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
10143         handlers to match indentation; nested under the mtune=* handler.
10144         Similar for mcpu= and march=.
10145
10146 2005-01-25  Daniel Jacobowitz  <dan@codesourcery.com>
10147
10148         * config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
10149         * config/mips/linux64.h (LIB_SPEC): Likewise.
10150         * config/mn10300/linux.h (LIB_SPEC): Likewise.
10151         * config/sh/linux.h (LIB_SPEC): Likewise.
10152
10153 2005-01-25  Aldy Hernandez  <aldyh@redhat.com>
10154
10155         * config/frv/frv.c (frv_legitimize_tls_address): New.
10156         (TARGET_HAVE_TLS): Define.
10157         (FRV_SYMBOL_REF_TLS_P): Define.
10158         (frv_override_options): Handle new register classes.
10159         (frv_legitimate_address_p): Reject tls addresses.
10160         (frv_legitimize_address): Handle TLS addresses.
10161         (gen_inlined_tls_plt): New.
10162         (gen_tlsmoff): New.
10163         (frv_legitimize_tls_address): New.
10164         (unspec_got_name): Add TLS entries.
10165         (got12_operand): Add R_FRV_TLSMOFF12 case.
10166         (frv_emit_move): Fixup TLS addresses.
10167         (frv_emit_movsi): Legitimize TLS addresses.
10168
10169         * config/frv/frv.h (MASK_BIG_TLS): New.
10170         (TARGET_BIG_TLS): New.
10171         (HAVE_AS_TLS): Define.
10172         (TARGET_SWITCHES): Add -mTLS and -mtls options.
10173         (enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
10174         (REG_CLASS_NAMES): Same.
10175         (REG_CLASS_CONTENTS): Same.
10176         (CONSTRAINT_LEN): New.
10177         (REG_CLASS_FROM_CONSTRAINT): New.
10178         (PREDICATE_CODES): Add symbolic_operand.
10179
10180         * config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
10181         UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
10182         UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
10183         UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
10184         R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
10185         R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
10186         R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
10187         GR9_REG, GR14_REG, LRREG.
10188         (type): Add load_or_call attribute.
10189         ("load_or_call"): New reservation.
10190         ("call_gettlsoff"): New.
10191         ("tls_indirect_call"): New.
10192         ("tls_load_gottlsoff12"): New.
10193         ("tlsoff_hilo"): New.
10194         ("tls_tlsdesc_ldd"): New.
10195         ("tls_tlsoff_ld"): New.
10196         ("tls_lddi"): New.
10197
10198         * config/frv/frv-protos.h (symbolic_operand): Protoize.
10199
10200         2005-01-25  Alexandre Oliva  <aoliva@redhat.com>
10201
10202         * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
10203         * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
10204         * config/frv/frv.c (TLS_BIAS): Define.
10205         (frv_output_dwarf_dtprel): New.
10206
10207 2005-01-26  Jakub Jelinek  <jakub@redhat.com>
10208
10209         PR rtl-optimization/19579
10210         * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up
10211         both A and B, see if they don't clobber registers the other expr uses.
10212
10213 2005-01-25  J"orn Rennecke <joern.rennecke@st.com>
10214
10215         * real.c (do_add): Initialize signalling and canonical members.
10216
10217         * real.c (real_from_integer): Zero out destination.
10218
10219 2005-01-18  Jan Hubicka  <jh@suse.cz>
10220
10221         PR tree-optimize/19337
10222         * tree-inline.c (initialize_inlined_parameters): Copy
10223         saved_static_chain_decl only.
10224
10225 2005-01-25  Richard Henderson  <rth@redhat.com>
10226
10227         PR target/19556
10228         PR target/19584
10229         * config/i386/i386.c (x86_inter_unit_moves): Zero.
10230         (ix86_preferred_reload_class): Rewrite fp-constant section, with
10231         80387 enabled, to return a proper subclass.  Return the subset that
10232         overlaps with GENERAL_REGS for PLUS.
10233         * config/i386/i386.md (movsi_1, movdi_2): Set type to "mmx" for pxor.
10234
10235 2005-01-25  Richard Henderson  <rth@redhat.com>
10236
10237         PR middle-end/19609
10238         * tree-complex.c (expand_complex_div_wide): Use the correct formulae.
10239
10240 2005-01-25  Roger Sayle  <roger@eyesopen.com>
10241
10242         * expmed.c (choose_multiplier): Change interface to return the
10243         multiplier lowpart as an rtx instead of an unsigned HOST_WIDE_INT.
10244         (expand_divmod): Update calls to choose_multiplier.
10245
10246 2005-01-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10247
10248         PR middle-end/19330
10249         * expmed.c (extract_bit_field): Use adjust_address instead of
10250         gen_lowpart when op0 is a MEM.
10251
10252 2005-01-24  Steven Bosscher  <stevenb@suse.de>
10253
10254         * cfgexpand.c (expand_gimple_tailcall): Fix typo.
10255
10256 2005-01-24  Richard Sandiford  <rsandifo@redhat.com>
10257
10258         * config/mips/irix-csr.c: New file.
10259         * config/mips/t-iris6 (irix-csr.o): New rule to build it.
10260         (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
10261         * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
10262         executables.
10263
10264 2005-01-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
10265
10266         PR bootstrap/19364
10267         * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
10268         sparc/elf.h, add sparc/sp-elf.h.
10269         (sparc-*-rtems*): Likewise.
10270         (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
10271         tm-dwarf2.h, add sparc/sp-elf.h.
10272         (sparc86x-*-elf): Likewise.
10273         (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
10274         * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
10275         TARGET_OS_CPP_BUILTINS.
10276         * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
10277         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
10278         Undefine it.
10279         * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
10280         * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
10281         (SWITCH_TAKES_ARG): Likewise.
10282         (LOCAL_LABEL_PREFIX): Likewise.
10283         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
10284         (TARGET_N_FORMAT_TYPES): Delete.
10285         (TARGET_FORMAT_TYPES): Likewise.
10286         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
10287         * config/sparc/elf.h: Delete.
10288         * config/sparc/sp-elf.h: New file.
10289
10290 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
10291
10292         * tree-flow-inline.h (phi_arg_from_edge): Remove.
10293         * tree-flow.h: Remove the corresponding prototype.
10294         * tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
10295         tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
10296
10297 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
10298
10299         PR target/17751
10300         * config/rs6000/rs6000.c (rs6000_file_start): Create toc section
10301         for AIX ABI or ELF -fPIC.
10302         (rs6000_emit_load_toc_table): Don't create toc_section here.
10303         (rs6000_xcoff_file_start): Nor here.
10304
10305 2005-01-24  J"orn Rennecke <joern.rennecke@st.com>
10306
10307         * sh.c (ra.h): Don't #include.
10308         (hard_regs_intersect_p): New function, resurrected from ra.c.
10309
10310         * sh.c: Fix 1996 Copyright.
10311
10312 2005-01-24  Richard Henderson  <rth@redhat.com>
10313             Aldy Hernandez  <aldyh@redhat.com>
10314
10315         * regrename.c (note_sets): Handle subregs.
10316
10317 2005-01-24  Joseph S. Myers  <joseph@codesourcery.com>
10318
10319         PR bootstrap/18058
10320         * genconditions.c (write_header, write_conditions): Elide file if
10321         not GCC >= 3.0.1.
10322
10323 2005-01-24  Kazu Hirata  <kazu@cs.umass.edu>
10324
10325         * c-opts.c, expmed.c, gengtype.c, tree-complex.c,
10326         config/arm/iwmmxt.md, config/avr/avr.c, config/s390/s390.h:
10327         Update copyright.
10328
10329 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
10330
10331         * builtins.c (get_pointer_alignment, gimplify_va_arg_expr,
10332         expand_builtin_printf, expand_builtin_fprintf,
10333         expand_builtin_sprintf): Use POINTER_TYPE_P instead TREE_CODE
10334         checking against POINTER_TYPE.
10335         (validate_arglist): Handle POINTER_TYPE code by checking
10336         POINTER_TYPE_P.
10337
10338 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
10339
10340         * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1,
10341         init_rtlanal): New.
10342         (for_each_rtx): Call for_each_rtx_1.
10343         * rtl.h (init_rtlanal): Declare.
10344         * toplev.c (backend_init): Call init_rtlanal.
10345
10346 2005-01-24  Jakub Jelinek  <jakub@redhat.com>
10347
10348         * flow.c (propagate_one_insn): Formatting.
10349
10350         PR middle-end/19551
10351         * flow.c (libcall_dead_p): Be more conservative if unsure.
10352         If there are any instructions between insn and call, see if they are
10353         all dead before saying the libcall is dead.
10354
10355 2005-01-24  Uros Bizjak  <uros@kss-loka.si>
10356
10357         * config/i386/i386.md (*extendsfdf2_sse): Use "nonimmediate_operand"
10358         operand constraint for operand 0.
10359
10360 2005-01-23  Richard Henderson  <rth@redhat.com>
10361
10362         PR 19486
10363         * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
10364         edges leading to join block.
10365
10366 2005-01-23  Roger Sayle  <roger@eyesopen.com>
10367
10368         * expmed.c (expand_mult_highpart): Make static.  Change type of
10369         constant multiplier argument from unsigned HOST_WIDE_INT to rtx.
10370         (expand_divmod): Updates calls to expand_mult_highpart by using
10371         gen_int_mode to pass a CONST_INT rtx.
10372         * rtl.h (expand_mult_highpart): Remove prototype.
10373
10374 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
10375
10376         * flow.c (regset_bytes, regset_size): Remove.
10377
10378         * cfganal.c: Fix a reference to Harvey's paper.
10379
10380 2005-01-23  Steven Bosscher  <stevenb@suse.de>
10381
10382         PR rtl-optimization/19464
10383         * tree-optimize.c (init_tree_optimization_passes): Add one more
10384         copyrename pass just before out-of-ssa.
10385
10386 2005-01-23  Joseph S. Myers  <joseph@codesourcery.com>
10387
10388         PR bootstrap/18058
10389         * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
10390         * ggc-none.c (ggc_free): Define.
10391
10392 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
10393
10394         * cse.c (max_reg, max_insn_uid): Remove.
10395         (cse_main): Don't access max_reg or max_insn_uid.
10396
10397         * c-common.c (explicit_flag_signed_bitfields,
10398         lang_statement_code_p, lang_expand_function_end): Remove.
10399         * c-common.h: Remove the corresponding declarations.
10400         * c-opts.c (c_common_handle_option): Remove all write access
10401         to explicit_flag_signed_bitfields.
10402
10403         * cgraph.c (cgraph_varpool_n_nodes): Remove.
10404         (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
10405         * cgraph.h: Remove the corresponding declaration.
10406
10407         * gcse.c (null_pointer_info): Remove.
10408
10409 2005-01-23  Roger Sayle  <roger@eyesopen.com>
10410             Eric Botcazou  <ebotcazou@libertysurf.fr>
10411
10412         * combine.c (simplify_logical): Only simplify logical expressions
10413         of the form ior(and(x,y),z) by the inverse distributive law if the
10414         result is cheaper than the original.
10415
10416 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
10417
10418         * alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
10419         fold-const.c, gimplify.c, params.h, tree-data-ref.c,
10420         tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
10421         tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
10422         config/freebsd-spec.h, config/arm/arm.h,
10423         config/h8300/h8300.md, config/i386/i386.md,
10424         config/i386/predicates.md, config/i386/sse.md,
10425         config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
10426         config/vax/vax.md: Fix comment typos.  Follow spelling
10427         conventions.
10428
10429 2005-01-23  Steven Bosscher  <stevenb@suse.de>
10430
10431         * gengtype.c (walk_type): Produce `not equal to' compares for loop
10432         tests, instead of `less than'.
10433
10434 2005-01-23  Richard Sandiford  <rsandifo@redhat.com>
10435
10436         * function.c (assign_parm_setup_block): When creating a new stack slot
10437         for a parameter, get its alignment from the parameter's DECL_ALIGN
10438         rather than the type's TYPE_ALIGN.  Make sure that the parameter
10439         is at least word aligned.
10440
10441 2005-01-22  Roger Sayle  <roger@eyesopen.com>
10442
10443         PR middle-end/19378
10444         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
10445
10446 2005-01-22  Richard Henderson  <rth@redhat.com>
10447
10448         PR target/19506
10449         * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
10450         in both compare operands.
10451         (movdfcc_1_sse_max): Likewise.
10452         (movsfcc_1_sse): Likewise.  Add earlyclobber for scratch.
10453         (movdfcc_1_sse): Likewise.
10454         * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
10455         scratch register as needed.
10456
10457 2005-01-22  Richard Henderson  <rth@redhat.com>
10458
10459         * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
10460
10461         * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
10462
10463 2005-01-22  Richard Henderson  <rth@redhat.com>
10464
10465         * genopinit.c (optabs): Use smin/smax for floating point too.
10466         * doc/md.texi: Update to match.  Clarify that floating point
10467         results are undefined for +0/-0 and NaN.
10468         * doc/rtl.texi: Likewise.
10469         * rtl.def (SMIN, SMAX): Likewise
10470         * tree.def (MIN_EXPR, MAX_EXPR): Likewise.
10471
10472         * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
10473         leading 's' to the name.
10474         * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
10475         smaxxf3, sminxf3): Likewise.
10476         * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
10477         Likewise.
10478
10479 2005-01-22  Paul Brook  <paul@codesourcery.com>
10480
10481         * config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.
10482
10483 2005-01-21  Mark Dettinger  <dettinge@de.ibm.com>
10484
10485         * config/s390/s390.c (struct processor_costs): New fields
10486         dlgr, dlr, dr, dsgfr, dsgr.
10487         (z900_cost, z990_cost): Values for new fields.
10488         (s390_rtx_costs): New cases MEM und COMPARE in switch
10489         statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
10490         DIV, MOD, UDIV, UMOD.
10491
10492 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
10493
10494         * config/s390/s390.md ("doloop_si64"): Reload input value directly
10495         into the register being decremented.
10496         ("doloop_si31", "doloop_di"): Likewise.
10497         ("*doloop_si_long"): Adapt pattern.
10498
10499 2005-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
10500
10501         * config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
10502         access registers.
10503         (CLASS_MAX_NREGS): Likewise.
10504
10505 2005-01-21  Daniel Berlin  <dberlin@dberlin.org>
10506
10507         * doc/tree-ssa.texi (Statement Operands): Add example for new
10508         must-def macro. Note deprecation of old operands interface.
10509
10510 2005-01-22  Richard Sandiford  <rsandifo@redhat.com>
10511
10512         PR tree-optimization/19484
10513         * tree-cfg.c (remove_fallthru_edge): New function.
10514         (cleanup_control_flow): Remove fallthru edges from calls that are
10515         now known not to return.
10516
10517 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
10518
10519         Fix PR tree-optimization/19038
10520         * tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
10521         copies with loop variant ones.
10522
10523 2005-01-22  Kazu Hirata  <kazu@cs.umass.edu>
10524
10525         * cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
10526         config/alpha/alpha-protos.h, config/alpha/alpha.h,
10527         config/alpha/alpha.md, config/alpha/predicates.md,
10528         config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
10529         config/sparc/sol2.h: Update copyright.
10530
10531         * tree-cfg.c (remove_forwarder_block_with_phi): Look at the
10532         first label to see if it is a nonlocal label.
10533
10534 2005-01-22  David Edelsohn  <edelsohn@gnu.org>
10535             Andrew Pinski  <pinskia@physics.uc.edu>
10536
10537         PR target/19491
10538         * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
10539         maximum number of GPRs.  Saturate n_fpr at maximum number of FPRs.
10540
10541 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
10542
10543         * config/rs6000/rtems.h: Update copyright.
10544
10545 2005-01-22  Ralf Corsepius  <ralf.corsepius@rtems.org>
10546
10547         PR target/19548
10548         * config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
10549         (CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
10550         (SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.
10551
10552 2005-01-22  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
10553
10554         PR c/18809
10555         * c-typeck.c (convert_arguments): Check for error_mark_node.
10556
10557 2005-01-21  Ian Lance Taylor  <ian@airs.com>
10558
10559         PR tree-optimization/13000
10560         * tree-inline.c: Include "tree-flow.h".
10561         (expand_call_inline): If warn_return_type, warn if non-void inline
10562         function falls through.
10563         * tree-cfg.c (execute_warn_function_return): Don't warn about
10564         control reaching end if TREE_NO_WARNING is set.  Set
10565         TREE_NO_WARNING.
10566         * gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
10567         has been lowered.
10568         * gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
10569         branch if we don't need one.
10570         * c-typeck.c: Include "tree-flow.h"
10571         (c_finish_bc_stmt): Don't add a goto if the current statement
10572         list doesn't fall through to the current point.
10573
10574 2005-01-21  Roger Sayle  <roger@eyesopen.com>
10575
10576         PR rtl-optimization/576
10577         * real.c (real_arithmetic): Change return type from void to bool
10578         to return an indication that the result may be inexact.
10579         * real.h (real_arithmeric): Update prototype.
10580         * fold-const.c (const_binop):  Don't constant fold floating
10581         point expressions when the user specifies -frounding-math and
10582         the result may depend upon the run-time rounding mode.
10583         (fold_convert_const_real_from_real): Clean-up.
10584         (fold_initializer): Ignore flag_rounding_math for initializers.
10585         * simplify-rtx.c (simplify_binary_operation): Likewise, don't
10586         constant fold FP operations with flag_rounding_math if the
10587         result may depend upon the run-time rounding mode.
10588
10589 2005-01-21  Tom Tromey  <tromey@redhat.com>
10590
10591         * c-cppbuiltin.c (define__GNUC__): Correct assertion.
10592
10593 2005-01-21  Kazu Hirata  <kazu@cs.umass.edu>
10594
10595         * tree-cfg.c: Fix comment typos.
10596
10597 2005-01-21  J"orn Rennecke <joern.rennecke@st.com>
10598
10599         * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
10600         around the call to rest_of_handle_branch_target_load_optimize.
10601
10602 2005-01-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
10603
10604         * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
10605         (sparc64-*-openbsd*): Likewise.
10606         (sparclite-*-elf*): Include tm-dwarf2.h.
10607         (sparc86x-*-elf*): Likewise.
10608         (sparc64-*-elf*): Likewise.
10609         * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete.
10610         (DBX_DEBUGGING_INFO): Likewise.
10611         * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise.
10612         (PREFERRED_DEBUGGING_TYPE): Likewise.
10613         * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise.
10614         * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise.
10615         (PREFERRED_DEBUGGING_TYPE): Likewise.
10616         * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO): Likewise.
10617         (PREFERRED_DEBUGGING_TYPE): Likewise.
10618         * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise.
10619
10620 2005-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
10621
10622         PR target/18701
10623         * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
10624
10625 2005-01-20  Paul Brook  <paul@codesourcery.com>
10626
10627         * doc/rtl.texi: Document value extension requirements for CONST_INT.
10628
10629 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
10630
10631         * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal
10632         label is first in a sequence of labels.
10633
10634         * tree-cfg.c (tree_verify_flow_info): Fix a typo.
10635
10636 2005-01-20  Janis Johnson  <janis187@us.ibm.com>
10637             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
10638
10639         * doc/sourcebuild.texi (Test Directives): New.
10640
10641 2005-01-20  Roger Sayle  <roger@eyesopen.com>
10642
10643         * real.c (real_floor): Don't leave the result uninitialized when
10644         mode is VOIDMode, but return the unrounded intermediate value.
10645         (real_ceil): Likewise.
10646
10647 2005-01-20  Paul Brook  <paul@codesourcery.com>
10648
10649         * config/arm/arm.md (insv): Use gen_int_mode.
10650
10651 2005-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
10652
10653         * config/sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
10654         * config/sparc/linux.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
10655         * config/sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
10656         * config/sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
10657         * config/sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
10658
10659 2005-01-20  Daniel Berlin  <dberlin@dberlin.org>
10660
10661         Fix PR debug/19124
10662         * dwarf2out.c (concat_loc_descriptor): We don't know we can use
10663         fbreg, so we have to assume we can't.
10664         (loc_descriptor_from_tree_1): Ditto.
10665         (containing_function_has_frame_base): New function.
10666         (add_location_or_const_value_attribute): Use it.
10667         Also try to generate a frame_base from a single element location
10668         list.
10669
10670 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
10671
10672         PR tree-optimization/15349
10673         * timevar.def (TV_TREE_MERGE_PHI): New.
10674         * tree-cfg.c (tree_forwarder_block_p): Add a new argument
10675         PHI_WANTED.
10676         (remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
10677         calls to tree_forwarder_block_p.
10678         (remove_forwarder_block_with_phi, merge_phi_nodes,
10679         gate_merge_phi, pass_merge_phi): New.
10680         * tree-optimize.c (init_tree_optimization_passes): Add
10681         pass_merge_phi.
10682         * tree-pass.h: Add an extern for pass_merge_phi;
10683
10684 2005-01-20  Richard Henderson  <rth@redhat.com>
10685
10686         PR target/19418
10687         * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128): New.
10688         (_mm_castps_pd, _mm_castps_si128): New.
10689         (_mm_castsi128_ps, _mm_castsi128_pd): New.
10690
10691 2005-01-20  Richard Henderson  <rth@redhat.com>
10692
10693         PR target/19530
10694         * config/i386/mmintrin.h (_mm_cvtsi32_si64): Use
10695         __builtin_ia32_vec_init_v2si.
10696         (_mm_cvtsi64_si32): Use __builtin_ia32_vec_ext_v2si.
10697         * config/i386/i386.c (IX86_BUILTIN_VEC_EXT_V2SI): New.
10698         (ix86_init_mmx_sse_builtins): Create it.
10699         (ix86_expand_builtin): Expand it.
10700         (ix86_expand_vector_set): Handle V2SFmode and V2SImode.
10701         * config/i386/mmx.md (vec_extractv2sf_0, vec_extractv2sf_1): New.
10702         (vec_extractv2si_0, vec_extractv2si_1): New.
10703
10704 2005-01-20  Richard Henderson  <rth@redhat.com>
10705
10706         PR target/16533
10707         * config/i386/i386.c (ix86_expand_push): New.
10708         * config/i386/mmx.md (push<MMXMODE>1): New.
10709         * config/i386/sse.md (push<SSEMODE>1): New.
10710         * config/i386/i386-protos.h: Update.
10711
10712 2005-01-20  Kazu Hirata  <kazu@cs.umass.edu>
10713
10714         * params.def, params.h, predict.c, tree-ssa-loop-im.c: Update
10715         copyright.
10716
10717 2005-01-20  Richard Henderson  <rth@redhat.com>
10718
10719         * rtl.def (CONST_VECTOR): Use RTX_CONST_OBJ.
10720         * rtl.h (CONSTANT_P): Don't special case CONST_VECTOR.
10721
10722 2005-01-19  Richard Henderson  <rth@redhat.com>
10723
10724         PR target/19350
10725         * config/i386/i386.c (ix86_expand_vector_move_misalign): Convert
10726         to V4SFmode in SSE1 fallback load path.
10727
10728 2005-01-19  Richard Henderson  <rth@redhat.com>
10729
10730         * config/i386/i386.c (ix86_expand_vector_init_one_var): Fix typo
10731         in QImode expansion to ix86_expand_vector_set.
10732         (ix86_expand_vector_init_general): Fix typo in V8HImode recursive call.
10733
10734 2005-01-19  Richard Henderson  <rth@redhat.com>
10735
10736         PR target/19511
10737         * config/i386/i386.c (ix86_preferred_reload_class): Return a proper
10738         subclass of the input class.
10739         (ix86_secondary_memory_needed): Always true for cross-MMX classes.
10740         Always true for cross-SSE1 classes.  Rationalize conditionals.
10741         * config/i386/i386.h (SSE_CLASS_P, MMX_CLASS_P): Use straight equality.
10742         * config/i386/i386.md (movsi_1): Add MMX/SSE zeros.  Fix alternatives
10743         for SSE1.  Don't check TARGET_INTER_UNIT_MOVES.
10744         (movdi_2): Add MMX/SSE zeros.
10745         (movdi_1_rex64): Likewise.  Don't check TARGET_INTER_UNIT_MOVES.
10746         (movsf_1): Don't check TARGET_INTER_UNIT_MOVES.
10747         (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
10748         (movsi_1_nointernunit, movdi_1_rex64_nointerunit): Remove.
10749         (movsf_1_nointerunit, zero_extendsidi2_32_1): Remove.
10750         (zero_extendsidi2_rex64_1): Remove.
10751         (MOV0 peephole): Check GENERAL_REG_P.
10752
10753 2005-01-19  Richard Henderson  <rth@redhat.com>
10754
10755         PR target/19427
10756         * config/i386/i386.c (ix86_expand_vector_set): Fix third and fourth
10757         shufps elements.
10758         (ix86_expand_vector_extract): Likewise.
10759
10760 2005-01-19  Richard Henderson  <rth@redhat.com>
10761
10762         PR middle-end/19304
10763         * expr.c (emit_move_change_mode): New argument force; use
10764         simplify_gen_subreg if true.
10765         (emit_move_via_alt_mode): Merge into ...
10766         (emit_move_via_integer): ... here.
10767         (emit_move_ccmode): Use emit_move_change_mode directly.
10768
10769 2005-01-19  Richard Henderson  <rth@redhat.com>
10770
10771         PR target/19518
10772         * config/alpha/alpha.c (alpha_rtx_costs): Handle HIGH.
10773         (alpha_preferred_reload_class): Handle CONST_VECTOR.
10774         (alpha_emit_set_const_1): Add no_output parameter; don't emit
10775         rtl if true.
10776         (alpha_emit_set_const): Likewise.  Make static.
10777         (alpha_emit_set_long_const): Make static.
10778         (alpha_extract_integer): Split out from alpha_expand_mov.
10779         (alpha_split_const_mov): Likewise.
10780         (alpha_expand_mov): Use them.  Handle CONST_VECTOR.
10781         (alpha_legitimate_constant_p): New.
10782         * config/alpha/alpha-protos.h: Update.
10783         * config/alpha/alpha.h (REGISTER_MOVE_COST): Correct fp<->gp cost.
10784         (LEGITIMATE_CONSTANT_P): Re-implement with a function.
10785         * config/alpha/alpha.md (movsi): Add n alternative.
10786         (movsi_nt_vms, movdi_er_nofix, movdi_er_fix, movdi_fix): Likewise.
10787         (mov<VEC>_fix, mov<VEC>_nofix): Add i alternative.
10788         (splitters for all of the above): Use alpha_split_const_mov.
10789         * config/alpha/predicates.md (non_add_const_operand): New.
10790         (non_zero_const_operand): New.
10791         (input_operand): Use alpha_legitimate_constant_p after reload.
10792
10793 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
10794
10795         PR tree-optimization/19038
10796         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): New function.
10797         (add_candidate): Add ivs with increment in latch only if
10798         allow_ip_end_pos_p is true.
10799         (determine_iv_cost): Use empty_block_p.
10800
10801 2005-01-19  Daniel Berlin  <dberlin@dberlin.org>
10802
10803         * cfganal.c (compute_dominance_frontiers_1): Replace with new algorithm
10804         (compute_dominance_frontiers): Ditto.
10805
10806 2005-01-19  Ralf Corsepius  <ralf.corsepius@rtems.org>
10807
10808         PR target/19529
10809         * config/sh/t-rtems: New.
10810         * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems.
10811
10812 2005-01-19  Zdenek Dvorak  <dvorakz@suse.cz>
10813
10814         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Always subtract
10815         the offset of the selected field.
10816
10817 2005-01-19  Kazu Hirata  <kazu@cs.umass.edu>
10818
10819         * tree-cfg.c (remove_forwarder_block): Fix the check to
10820         prevent a nonlocal label from appearing in the middle of a
10821         basic block.
10822
10823 2005-01-19  Hans-Peter Nilsson  <hp@axis.com>
10824
10825         PR rtl-optimization/19462
10826         * reorg.c (find_end_label): Create return insn only if
10827         current_function_epilogue_delay_list is empty.
10828
10829 2005-01-19  Paolo Bonzini  <bonzini@gnu.org>
10830
10831         * doc/passes.texi: Remove paragraph mentioning new-ra.
10832
10833 2005-01-19  Jakub Jelinek  <jakub@redhat.com>
10834
10835         PR rtl-optimization/15139
10836         * combine.c: Include params.h.
10837         (count_rtxs): New function.
10838         (record_value_for_reg): If replace_rtx would replace at least
10839         2 occurrences of REG in VALUE and TEM is really large, replace REG with
10840         (clobber (const_int 0)) instead of TEM.
10841         * params.def (PARAM_MAX_LAST_VALUE_RTL): New.
10842         * params.h (MAX_LAST_VALUE_RTL): New.
10843         * Makefile.in (combine.o): Depend on $(PARAMS_H).
10844         * doc/invoke.texi (--param max-last-value-rtl=N): Document.
10845
10846         PR c/17297
10847         * c-typeck.c (digest_init): Only call build_vector if all constructor
10848         elements are *_CST nodes.
10849         * gimplify.c (gimplify_init_constructor): Likewise.
10850
10851         PR middle-end/19164
10852         * c-typeck.c (digest_init): Only call build_vector if inside_init
10853         is a CONSTRUCTOR.
10854
10855 2005-01-18  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
10856
10857         * toplev.c (init_asm_output): Remove dead #ifdef.
10858
10859 2005-01-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10860
10861         * config/sh/linux.h (TARGET_C99_FUNCTIONS): Define.
10862
10863 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
10864
10865         * calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
10866         accessing DECL_FUNCTION_CODE.
10867         * dojump.c (do_jump): Likewise.
10868         * gimplify.c (gimplify_call_expr): Likewise.
10869         * predict.c (expr_expected_value): Likewise.
10870         (strip_builtin_expect): Likewise.
10871         * tree-inline.c (estimate_num_insns_1): Likewise.
10872         * tree-ssa-loop-im.c (stmt_cost): Likewise
10873         * fold-const.c (fold): Test for BUILT_IN_NORMAL.
10874         (tree_expr_nonnegative_p): Likewise.
10875
10876 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
10877
10878         * config/sparc/sparc.c (load_pic_register): Emit the appropriate
10879         variant of the load_pcrel_sym pattern.
10880         * config/sparc/sparc.md (P macro): Move to the top.
10881         (load_pcrel_sym): Macroize using P.
10882         (save_register_window): Likewise.
10883
10884 2005-01-18  Aldy Hernandez  <aldyh@redhat.com>
10885
10886         * config/rs6000/rs6000.md ("sunordered"): Disable for e500.
10887         ("sordered"): Same.
10888
10889 2005-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
10890
10891         PR C/19472
10892         * c-typeck.c (build_asm_expr): Strip nops off
10893         input memory operands.
10894
10895 2005-01-18  David Edelsohn  <edelsohn@gnu.org>
10896
10897         * config/rs6000/aix43.h (CPLUSPLUS_CPP_SPEC): Delete
10898         _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _LARGE_FILE_API.
10899         * config/rs6000/aix51.h (CPLUSPLUS_CPP_SPEC): Same.
10900         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Same.
10901
10902 2005-01-18  Joel Sherrill <joel.sherrill@oarcorp.com>
10903
10904         PR target/19379
10905         * config/i386/i386.c (override_options): If the 80387 is disabled,
10906         then do not return FP values using FP registers.
10907
10908 2005-01-18  Kazu Hirata  <kazu@cs.umass.edu>
10909
10910         * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
10911         c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
10912         combine.c, config.gcc, coverage.h, cse.c, cselib.c,
10913         defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
10914         flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
10915         gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
10916         output.h, postreload-gcse.c, postreload.c, recog.c,
10917         resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
10918         targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
10919         tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
10920         tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
10921         tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
10922         tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
10923         tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
10924         unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
10925
10926         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
10927         config/alpha/alpha.c, config/arm/vfp.md,
10928         config/i386/emmintrin.h, config/i386/i386-modes.def,
10929         config/i386/i386-protos.h, config/i386/i386.h,
10930         config/i386/pmmintrin.h, config/i386/ppro.md,
10931         config/i386/predicates.md, config/i386/xmmintrin.h,
10932         config/i860/i860.c, config/ia64/ia64-modes.def,
10933         config/ia64/ia64-protos.h, config/ia64/ia64.h,
10934         config/ia64/ia64.md, config/ia64/itanium1.md,
10935         config/ia64/itanium2.md, config/ia64/predicates.md,
10936         config/iq2000/iq2000.h, config/mips/linux64.h,
10937         config/rs6000/aix41.h, config/rs6000/aix43.h,
10938         config/rs6000/aix52.h, config/rs6000/darwin-fallback.c,
10939         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
10940         config/rs6000/spe.md, config/sh/sh.md, config/sparc/linux.h,
10941         config/sparc/linux64.h, config/sparc/litecoff.h,
10942         config/sparc/sp64-elf.h, config/sparc/sparc.c,
10943         config/sparc/sparc.h, config/sparc/sparc.md,
10944         config/sparc/sysv4-only.h: Update copyright.
10945
10946 2005-01-18  Richard Henderson  <rth@redhat.com>
10947
10948         PR target/19496
10949         * config/i386/i386.c (ix86_expand_fp_movcc): Fail for LTGT and UNEQ.
10950
10951 2005-01-18  Marc Espie  <espie@openbsd.org>
10952         * config/i386/openbsdelf.h: Typo.
10953
10954 2005-01-18  Richard Henderson  <rth@redhat.com>
10955
10956         * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP
10957         special case for sse.
10958         * config/i386/predicates.md (sse_comparison_operator): Likewise.
10959
10960 2005-01-18  Dorit Naishlos  <dorit@il.ibm.com>
10961
10962         * tree-inline.c (estimate_num_insns_1): Added cases for
10963         ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.
10964
10965 2005-01-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
10966
10967         PR rtl-optimization/19296
10968         * combine.c (simplify_comparison): Rewrite the condition under
10969         which a non-paradoxical SUBREG of a PLUS can be lifted when
10970         compared against a constant.
10971
10972 2005-01-18  Andi Kleen <ak@muc.de>
10973
10974         * c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
10975         * c.opt (-Wpointer-sign): Add.
10976         * doc/invoke.texi: (-Wpointer-sign): Add.
10977
10978 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
10979
10980         * config/i386/i386.c (override_options): Revert 2004-11-24 change.
10981         * config/i386/i386.md (fmodsf3, dremsf3, *sinsf2, *cossf2, sincossf3,
10982         *tansf3_1, tansf2, atan2sf3_1, atan2sf3, atansf2, asinsf2, acossf2,
10983         logsf2, log10sf2, log2sf2, log1psf2, logbsf2, ilogbsf2, expsf2,
10984         exp10sf2, exp2sf2, expm1sf2, rintsf2, floorsf2, ceilsf2, btruncsf2,
10985         nearbyintsf2): Disable for TARGET_SSE_MATH.  Leave patterns enabled
10986         for TARGET_MIX_SSE_I387.
10987         (fmoddf3, dremdf3, *sindf2, *sinextendsfdf2, *cosdf2, *cosextendsfdf2,
10988         sincosdf3, *sincosextendsfdf3, *tandf3_1, tandf2, atan2df3_1,
10989         atan2df3, atandf2, asindf2, acosdf2, logdf2, log10df2, log2df2,
10990         log1pdf2, logbdf2, expdf2, exp10df2, exp2df2, expm1df2, rintdf2,
10991         floordf2, ceildf2, btruncdf2, nearbyintdf2): Disable for
10992         (TARGET_SSE2 && TARGET_SSE_MATH).  Leave patterns enabled for
10993         TARGET_MIX_SSE_I387.
10994         (atan2sf3, atan2df3, atan2xf3): Remove register constraints
10995         from expander.
10996
10997 2005-01-18  Uros Bizjak  <uros@kss-loka.si>
10998
10999         PR target/19424
11000         * config/i386/mmx.md (*movv2sf_internal_rex64, *movv2sf_internal):
11001         Add movaps alternative for xmm reg->reg move.
11002
11003 2005-01-17  Jeff Law  <law@redhat.com>
11004
11005         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Clear SSA_NAME_VALUE
11006         at the end of the main DOM loop rather than just before DOM exits.
11007
11008 2005-01-17  Diego Novillo  <dnovillo@redhat.com>
11009
11010         PR tree-optimization/19121
11011         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): When
11012         adding aliases to a name tag, also add them to the pointer's
11013         type tag.
11014         * tree-ssa-copy.c (merge_alias_info): Do not merge flow
11015         sensitive alias info at all.  Only check that the two pointers
11016         have compatible pointed-to sets.
11017         * tree-ssa.c (verify_name_tags): Verify that the alias set of
11018         a pointer's type tag is a superset of the alias set of the
11019         pointer's name tag.
11020
11021 2005-01-17  James E Wilson  <wilson@specifixinc.com>
11022
11023         PR target/19357
11024         * config/ia64/ia64.md (movxf): Handle general register source.  Adjust
11025         comment to document why.
11026
11027 2005-01-17  Richard Henderson  <rth@redhat.com>
11028
11029         * config/i386/sse.md (smaxv4sf3_finite, sse_vmsmaxv4sf3_finite,
11030         sminv4sf3_finite, sse_vmsminv4sf3_finite, smaxv2df3_finite,
11031         sse2_vmsmaxv2df3_finite, sminv2df3_finite,
11032         sse2_vmsminv2df3_finite): New.
11033         (smaxv4sf3, sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, smaxv2df3,
11034         sse2_vmsmaxv2df3, sminv2df3, sse2_vmsminv2df3): Remove commutative.
11035         Force op1 into register.
11036
11037 2005-01-17  Kelley Cook  <kcook@gcc.gnu.org>
11038
11039         * Makefile.in (STAGEMOVESTUFF): Stage all the stamp files to prevent
11040         bubblestrap from always rebuilding build directory.
11041
11042 2005-01-17  Ulrich Weigand  <uweigand@de.ibm.com>
11043
11044         * config/s390/s390.md ("*clc"): Remove incorrect '='.
11045         ("*cmpmem_short"): Likewise.
11046
11047 2005-01-17  Steven Bosscher  <stevenb@suse.de>
11048
11049         * basic-block.h: Document BB_* flags.
11050         * regrename.c (copyprop_hardreg_forward): Don't use BB_VISITED,
11051         use an sbitmap instead.
11052         * sched-rgn.c (compute_trg_info): Likewise.
11053
11054 2005-01-17  Richard Sandiford  <rsandifo@redhat.com>
11055
11056         * config.gcc (mips64*-*-linux*): Set the default abi to n32.  Remove
11057         redundant target_cpu_default and extra_parts lines.  Use the default
11058         "from-abi" ISA.
11059         * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
11060         (SUBTARGET_EXTRA_SPECS): Delete.
11061         (DRIVER_SELF_SPECS): Remove architecture lines.  Set the ABI directly.
11062         (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
11063         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
11064         and "n32" for -mabi=n32.
11065
11066 2005-01-17  Ian Lance Taylor  <ian@airs.com>
11067
11068         PR c/5675
11069         * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't
11070         fold constant variables into initial values.
11071
11072 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
11073
11074         * tree-cfg.c (tree_can_merge_blocks_p): Reorder two checks.
11075
11076         * tree-cfg.c (tree_forwarder_block_p): Speed up by walking
11077         through the statements backward.
11078
11079 2005-01-17  Ian Lance Taylor  <ian@airs.com>
11080
11081         PR middle-end/13127:
11082         * tree-inline.c (expand_call_inline): Set TREE_NO_WARNING on
11083         a variable set to the return value of the inlined function.
11084
11085 2005-01-17  Mark Dettinger  <dettinge@de.ibm.com>
11086
11087         * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
11088         when modes are tieable.
11089
11090 2005-01-17  Ranjit Mathew  <rmathew@hotmail.com>
11091
11092         * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
11093         of pthread_create to find out if threads are enabled.
11094         * gthr-posix95.h (__gthread_active_p): Likewise.
11095
11096 2005-01-17  Paolo Bonzini  <bonzini@gnu.org>
11097
11098         * common.opt (-fnew-ra): Remove.
11099         * ra*.*: Remove.
11100         * toplev.h (flag_new_regalloc): Remove.
11101         * Makefile.in (ra*.*): Don't mention.
11102         * passes.c (rest_of_handle_new_regalloc): Remove.
11103         (rest_of_handle_combine, rest_of_compilation): Always consider
11104         flag_new_regalloc as false.
11105         * doc/invoke.texi: Don't document -fnew-ra.
11106
11107 2005-01-17  Paolo Bonzini <bonzini@gnu.org>
11108
11109         * bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
11110         last parameter to reg_scan.
11111         * loop.c (loop_optimize): Likewise.
11112         * passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
11113         rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
11114         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
11115         rest_of_handle_gcse, rest_of_handle_loop_optimize,
11116         rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
11117         * regclass.c (reg_scan): Likewise, for the declaration.
11118         * rtl.h (reg_scan): Likewise, for the prototype.
11119
11120 2005-01-17  Kazu Hirata  <kazu@cs.umass.edu>
11121
11122         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call
11123         mark_dfs_back_edges.
11124
11125 2005-01-16  Daniel Berlin  <dberlin@dberlin.org>
11126
11127         * tree-ssa-pre.c (add_to_sets): s1 may be NULL.
11128         (compute_avail): Uses don't go in tmp_gen.
11129
11130 2005-01-16  Steven Bosscher  <stevenb@suse.de>
11131
11132         * ggc-page.c (ggc_alloc_stat): Use __builtin_ctzl instead of a
11133         loop to look for a free slot in a page entry.
11134
11135 2005-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11136
11137         PR target/16304
11138         * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
11139         * toplev.c (compile_file): Call process_pending_assemble_output_defs
11140         just before targetm.asm_out.file_end.
11141         * tree.h (process_pending_assemble_output_defs): Declare.
11142         * varasm.c (assemble_output_def, process_pending_assemble_output_defs):
11143         New functions.
11144         (assemble_alias): Defer generation of assembly code for defines when
11145         TARGET_DEFERRED_OUTPUT_DEFS is true.
11146         * config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
11147         * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
11148         * doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.
11149
11150 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11151
11152         PR target/19336
11153         * pa.c (pa_scalar_mode_supported_p): New function.
11154         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
11155         * pa.h (MIN_UNITS_PER_WORD): Add comment.
11156
11157         * pa-protos.h (prefetch_operand): Delete.
11158         (prefetch_cc_operand, prefetch_nocc_operand): New declations.
11159         * pa.c (prefetch_operand): Delete.
11160         (prefetch_cc_operand, prefetch_nocc_operand): New functions.
11161         * pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
11162         (PREDICATE_CODES): Delete prefetch_operand.  Add prefetch_cc_operand
11163         and prefetch_nocc_operand.
11164         * pa.md (prefetch): Rework to avoid reload problems handling short
11165         displacements when a cache control completer needs to be provided.
11166         (prefetch_32, prefetch_64): Delete.
11167         (prefetch_cc, prefetch_nocc): New patterns.
11168
11169 2005-01-15  David Edelsohn  <edelsohn@gnu.org>
11170
11171         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
11172
11173 2005-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11174
11175         PR ada/19388
11176         * pa.c (pa_asm_output_aligned_common): Warn if specified alignment
11177         exceeds maximum alignment for global common data.
11178         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
11179         * som.h (MAX_OFILE_ALIGNMENT): Likewise.
11180
11181 2004-01-15  Roger Sayle  <roger@eyesopen.com>
11182
11183         * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
11184
11185 2004-01-15  Roger Sayle  <roger@eyesopen.com>
11186
11187         * harg-reg-set.h (reg_class_names): Prototype global array.
11188         * regclass.c (reg_class_names): Declare here and initialize to
11189         REG_CLASS_NAMES.
11190         (dump_regclass): Remove local declaration of reg_class_names.
11191         (regclass): Likewise.
11192         * cfg.c (dump_flow_info): Likewise.
11193         * ra-debug.c (reg_class_names): Likewise.
11194         * regrename.c (reg_class_names): Likewise.
11195         * reload.c (reg_class_names): Likewise.
11196         * reload1.c (spill_failure): Likewise.
11197         * config/m68hc11/m68hc11.c (reg_class_names): Likewise.
11198
11199 2005-01-15  Ulrich Weigand  <uweigand@de.ibm.com>
11200
11201         * config/s390/s390.md ("reload_outti"): Remove predicate for
11202         output operand.  Abort if operand is not a MEM.
11203         ("reload_outdi", "reload_outdf"): Likewise.
11204
11205 2005-01-15  Marc Espie  <espie@openbsd.org>
11206
11207         * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
11208         (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
11209         * config/openbsd.h:  Fix C++ includes for native configurations.
11210         Add proper OS_CPP_BUILTINS.  Fix libspec for recent OpenBSD.
11211         Add trampoline support.
11212         * config/i386/openbsdelf.h: New.
11213
11214 2005-01-15  Marc Espie  <espie@openbsd.org>
11215
11216         * collect2.c (main): Explicitly parse -dynamic-linker option.
11217
11218 2005-01-15  Jakub Jelinek  <jakub@redhat.com>
11219
11220         PR tree-optimization/19060
11221         * tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
11222         Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
11223         (simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
11224         and handle extract_range_from_cond returning false.
11225         * fold-const.c (fold): Optimize comparisons with min/max even for
11226         width > HOST_BITS_PER_WIDE_INT.
11227
11228 2005-01-15  Ralf Corsepius  <ralf.corsepius@rtems.org>
11229
11230         * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
11231         * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS):
11232         Remove little endian multilib variants.
11233         Add mips32 multilib variant.
11234
11235 2005-01-15  Kazu Hirata  <kazu@cs.umass.edu>
11236
11237         * explow.c (copy_all_reg, stabilize): Remove.
11238         * expr.h: Remove the corresponding prototypes.
11239
11240         * rtlanal.c (regs_set_between_p): Remove.
11241         * rtl.h: Remove the corresponding prototype.
11242
11243 2005-01-14  David Edelsohn  <edelsohn@gnu.org>
11244
11245         * config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
11246         to rs6000_nonimmediate_operand.
11247         * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
11248         rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
11249         * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
11250         rs6000_nonimmediate_operand.
11251         * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
11252         rs6000_nonimmediate_operand.
11253
11254 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
11255
11256         * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
11257
11258 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
11259
11260         * config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
11261         on e500v2.
11262         (CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
11263         (PREDICATE_CODES): Add rs6k_nonimmediate_operand.
11264
11265         * config/rs6000/rs6000.c (invalid_e500_subreg): New.
11266         (rs6k_nonimmediate_operand): New.
11267         (rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
11268         correctly.
11269         (legitimate_lo_sum_address_p): Same.
11270         (rs6000_legitimize_address): Same.
11271         (rs6000_legitimize_reload_address): Same.
11272         (rs6000_legitimate_address): Same.
11273         (spe_build_register_parallel): Pass DF and DC modes in a DI
11274         register.
11275
11276         * config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
11277         to rs6k_nonimmediate_operand.
11278
11279         * config/rs6000/spe.md ("*frob_df_di"): New.
11280         ("*frob_di_df"): New.
11281         ("*frob_di_df_2"): New.
11282         ("*mov_sidf_e500_subreg0"): New.
11283         ("*mov_sidf_e500_subreg4"): New.
11284         ("*movdf_e500_double"): Change predicate to
11285         rs6k_nonimmediate_operand.
11286
11287 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
11288
11289         * postreload.c (move2add_note_store): Only call
11290         trunc_int_for_mode on scalar integers.
11291
11292 2005-01-14  Steven Bosscher  <stevenb@suse.de>
11293
11294         * tree-ssa-dce.c (visited_control_parents): New sbitmap to
11295         replace BB_VISITED uses.
11296         (find_obviously_necessary_stmts): Don't clear BB_VISITED.
11297         (propagate_necessity): Check the bitmap instead of BB_VISITED.
11298         (tree_dce_done): Free visited_control_parents.
11299         (perform_tree_ssa_dce): Allocate and clear it.
11300         * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
11301         (compute_antic): Iterate from here using a DFS.  Use an sbitmap
11302         instead of BB_VISITED.
11303
11304 2005-01-14  Kazu Hirata  <kazu@cs.umass.edu>
11305
11306         * c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
11307         rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
11308         Remove unused prototypes.
11309
11310 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
11311
11312         * config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
11313         64-bit register usage.
11314         (spe_func_has_64bit_regs_p): Add FIXME note.
11315
11316 2005-01-14  Aldy Hernandez  <aldyh@redhat.com>
11317
11318         * config/rs6000/rs6000.c (rs6000_generate_compare): Replace
11319         flag_finite_math_only with flag_unsafe_math_optimizations.
11320
11321 2005-01-14  J. D. Johnston  <jjohnst@us.ibm.com>
11322
11323         * config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
11324         end-of-stack check.
11325         (__tpf_eh_return): Copy TPF private stack area from the module
11326         boundary stack frame.  Add check for when module addresses are
11327         equal, but no stub address is found.
11328
11329 2005-01-14  Richard Earnshaw  <rearnsha@arm.com>
11330
11331         PR target/7525
11332         * arm.h (struct machine_function): Add call_via field.
11333         (thumb_call_via_label): Declare.
11334         * arm.c (thumb_call_via_label): New variable.
11335         (thumb_call_reg_needed): New variable.
11336         (arm_output_function_epilogue): For Thumb code, output any per-function
11337         call-indirect trampolines.
11338         (thumb_call_via_reg): New function.
11339         (arm_file_end): New function.
11340         (TARGET_ASM_FILE_END): Call arm_file_end.
11341         (aof_file_end): Likewise.
11342         * arm-protos.h (thumb_call_via_reg): Declare.
11343         * arm.md (call_reg_thumb, call_value_reg_thumb): Call
11344         thumb_call_via_reg in normal case.
11345
11346 2005-01-14  Jakub Jelinek  <jakub@redhat.com>
11347
11348         PR middle-end/19084
11349         PR rtl-optimization/19348
11350         * recog.c (peephole2_optimize): Do global life update if some peephole
11351         decides it doesn't need at least one of its inputs and that change
11352         influences liveness at the start of the basic block.
11353
11354         * basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
11355         arguments instead of 1.
11356
11357 2005-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
11358
11359         PR middle-end/18820
11360         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
11361         zero for nested functions needing a static chain or functions
11362         with a non-constant address.
11363
11364 2005-01-13  Roger Sayle  <roger@eyesopen.com>
11365
11366         * simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
11367         (and (sign_extend X) C) into (zero_extend (and X C)).
11368
11369 2005-01-13  David O'Brien  <obrien@FreeBSD.org>
11370
11371         * config/freebsd-spec.h:  Make KSE pthread lib logic the default.
11372
11373 2005-01-13  Richard Henderson  <rth@redhat.com>
11374
11375         PR target/19009
11376         PR target/19250
11377         PR target/19252
11378         * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
11379         bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
11380         not just TARGET_SSE.
11381         (cmpfp_i_387): Rename from cmpfp_i.  Move after sse patterns.
11382         (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
11383         (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
11384         (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
11385         (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
11386         (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
11387         (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
11388         fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
11389         (movdicc_c_rex64): Rename with '*'.
11390         (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
11391         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
11392         (movsfcc_1_387): Rename from movsfcc_1.
11393         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
11394         (movdfcc_1, movdfcc_1_rex64): Add check for 387.
11395         (sminsf3, smaxsf3, smindf3, smaxdf3): New.
11396         (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
11397         mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
11398         maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
11399         sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
11400         sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
11401         sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
11402         sse_movdfcc_const0_4): Remove.
11403         * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
11404         recognize min/max early.  Update for changed sse cmove patterns.
11405         (ix86_split_sse_movcc): New.
11406         * config/i386/i386-protos.h: Update.
11407
11408 2005-01-13  Steven Bosscher  <stevenb@suse.de>
11409
11410         * tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
11411         (fix_stmt_v_may_defs): Likewise.
11412
11413 2005-01-13  Richard Henderson  <rth@redhat.com>
11414
11415         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
11416         for converting the mask.
11417
11418 2005-01-13  David Edelsohn  <edelsohn@gnu.org>
11419
11420         * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
11421         definition to 600.
11422
11423 2005-01-13  Richard Henderson  <rth@redhat.com>
11424
11425         * config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
11426         IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
11427         IX86_BUILTIN_MOVDQ2Q): Remove.
11428         (IX86_BUILTIN_VEC_EXT_V4SI): New.
11429         (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
11430         (ix86_expand_vector_extract): For V4S[FI], extract element 0 after
11431         shuffling.
11432         * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
11433         (sse2_pextrw): Fix immediate constraint.
11434         (sse2_loadq, sse2_loadq_rex64): Remove.
11435         * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
11436         Use __builtin_ia32_vec_ext_<size>.
11437         (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.
11438
11439 2005-01-13  Aldy Hernandez  <aldyh@redhat.com>
11440
11441         * function.c (assign_parm_setup_block): Look inside original
11442         entry_parm when inspecting PARALLEL.
11443
11444 2005-01-13  Ralf Corsepius  <ralf.corsepius@rtems.org>
11445             Joel Sherrill  <joel@oarcorp.com>
11446
11447         PR target/19399
11448         * gthr-rtems.h (__gthread_recursive_mutex_t): New type.
11449         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
11450         rtems_gxx_recursive_mutex_init.
11451         (__gthread_recursive_mutex_lock): New function.
11452         (__gthread_recursive_mutex_trylock): Likewise.
11453         (__gthread_recursive_mutex_unlock): Likewise.
11454
11455 2005-01-13  Ralf Corsepius <ralf.corsepius@rtems.org>
11456
11457         * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
11458
11459 2005-01-13  Jan Beulich  <jbeulich@novell.com>
11460
11461         * config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
11462         (ashrti3_internal): Indicate output is early clobber. Generate result
11463         into output rather than first input. Use move for low word of output
11464         if shift count is exactly 64.
11465         (lshrti3_internal): Likewise.
11466
11467 2005-01-13  Hans-Peter Nilsson  <hp@bitrange.com>
11468
11469         PR target/18329
11470         PR target/18330
11471         * reload1.c (delete_output_reload): Don't delete an output reload
11472         if the pseudo lives longer than a single basic block.  Adjust and
11473         improve wording of comment.
11474
11475 2005-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
11476
11477         PR target/19334
11478         * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
11479         of TYPE_SIZE where we mean the number of bytes.
11480
11481 2005-01-12  Aldy Hernandez  <aldyh@redhat.com>
11482
11483         * function.c (assign_parm_setup_block): Relax condition on
11484         multi-register optimization.
11485
11486 2005-01-12  Nick Clifton  <nickc@redhat.com>
11487
11488         * config/sh/sh.md (udivsi3_sh2a, divsi3_sh2a): Give these patterns
11489         an "in_delay_slot" attribute of "no" to prevent them being used in
11490         delay slots.  This is forbidden because they might generate
11491         exceptions.
11492
11493 2005-01-12  Alan Modra  <amodra@bigpond.net.au>
11494
11495         PR target/19389
11496         * config/rs6000/rs6000.md (movtf_internal): Replace r->o and m->r
11497         with r->Y and Y->r.
11498
11499 2005-01-12  Nick Clifton  <nickc@redhat.com>
11500
11501         * config/iq2000/iq2000.h (ASM_SPEC): Undefine (to stop -Qy being
11502         passed on to GAS) but do not define, as GAS no longer supports or
11503         needs the -m2000 option.
11504
11505 2005-01-11  Roger Sayle  <roger@eyesopen.com>
11506
11507         * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
11508         type as args of unprototyped builtins aren't automatically promoted.
11509         (fold_builtin_abs): Likewise.
11510
11511 2005-01-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11512
11513         * Makefile.in: Set a `build-warn' variable.
11514
11515 2005-01-11  Zdenek Dvorak  <dvorakz@suse.cz>
11516
11517         PR tree-optimization/17949
11518         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): New function.
11519         (find_interesting_uses_address): Use it.
11520
11521 2005-01-11  Aldy Hernandez  <aldyh@redhat.com>
11522
11523         * regrename.c (kill_value): Handle subreg's that won't simplify.
11524
11525 2005-01-11  Richard Henderson  <rth@redhat.com>
11526
11527         PR target/13366
11528         * config/i386/i386.h (enum ix86_builtins): Move ...
11529         * config/i386/i386.c: ... here.
11530         (IX86_BUILTIN_MOVDDUP, IX86_BUILTIN_MMX_ZERO, IX86_BUILTIN_PEXTRW,
11531         IX86_BUILTIN_PINSRW, IX86_BUILTIN_LOADAPS, IX86_BUILTIN_LOADSS,
11532         IX86_BUILTIN_STORESS, IX86_BUILTIN_SSE_ZERO, IX86_BUILTIN_PEXTRW128,
11533         IX86_BUILTIN_PINSRW128, IX86_BUILTIN_LOADAPD, IX86_BUILTIN_LOADSD,
11534         IX86_BUILTIN_STOREAPD, IX86_BUILTIN_STORESD,  IX86_BUILTIN_STOREHPD,
11535         IX86_BUILTIN_STORELPD, IX86_BUILTIN_SETPD1, IX86_BUILTIN_SETPD,
11536         IX86_BUILTIN_CLRPD, IX86_BUILTIN_LOADPD1, IX86_BUILTIN_LOADRPD,
11537         IX86_BUILTIN_STOREPD1, IX86_BUILTIN_STORERPD, IX86_BUILTIN_LOADDQA,
11538         IX86_BUILTIN_STOREDQA, IX86_BUILTIN_CLRTI,
11539         IX86_BUILTIN_LOADDDUP): Remove.
11540         (IX86_BUILTIN_VEC_INIT_V2SI, IX86_BUILTIN_VEC_INIT_V4HI,
11541         IX86_BUILTIN_VEC_INIT_V8QI, IX86_BUILTIN_VEC_EXT_V2DF,
11542         IX86_BUILTIN_VEC_EXT_V2DI, IX86_BUILTIN_VEC_EXT_V4SF,
11543         IX86_BUILTIN_VEC_EXT_V8HI, IX86_BUILTIN_VEC_EXT_V4HI,
11544         IX86_BUILTIN_VEC_SET_V8HI, IX86_BUILTIN_VEC_SET_V4HI): New.
11545         (ix86_init_builtins): Make static.
11546         (ix86_init_mmx_sse_builtins): Update for changed builtins.
11547         (ix86_expand_binop_builtin): Only use ix86_fixup_binary_operands
11548         if all the modes match.  Otherwise, fake it.
11549         (get_element_number, ix86_expand_vec_init_builtin,
11550         ix86_expand_vec_ext_builtin, ix86_expand_vec_set_builtin): New.
11551         (ix86_expand_builtin): Make static.  Update for changed builtins.
11552         (ix86_expand_vector_move_misalign): Use sse2_loadlpd with zero
11553         operand instead of sse2_loadsd.  Cast sse1 fallback to V4SFmode.
11554         (ix86_expand_vector_init_duplicate): New.
11555         (ix86_expand_vector_init_low_nonzero): New.
11556         (ix86_expand_vector_init_one_var, ix86_expand_vector_init_general):
11557         Split out from ix86_expand_vector_init; handle integer modes.
11558         (ix86_expand_vector_init): Use them.
11559         (ix86_expand_vector_set, ix86_expand_vector_extract): New.
11560         * config/i386/i386-protos.h: Update.
11561         * config/i386/predicates.md (reg_or_0_operand): New.
11562         * config/i386/mmx.md (mov<MMXMODEI>_internal): Add 'r' variants.
11563         (movv2sf_internal): Likewise.  And a splitter to match them all.
11564         (vec_dupv2sf, mmx_concatv2sf, vec_setv2sf, vec_extractv2sf,
11565         vec_initv2sf, vec_dupv4hi, vec_dupv2si, mmx_concatv2si, vec_setv2si,
11566         vec_extractv2si, vec_initv2si, vec_setv4hi, vec_extractv4hi,
11567         vec_initv4hi, vec_setv8qi, vec_extractv8qi, vec_initv8qi): New.
11568         (mmx_pinsrw): Fix operand ordering.
11569         * config/i386/sse.md (movv4sf splitter): Use direct pattern,
11570         rather than sse_loadss expander.
11571         (movv2df splitter): Similarly.
11572         (sse_loadss, sse_loadlss): Remove.
11573         (vec_dupv4sf, sse_concatv2sf, sse_concatv4sf, vec_extractv4sf_0): New.
11574         (vec_setv4sf, vec_setv2df): Use ix86_expand_vector_set.
11575         (vec_extractv4sf, vec_extractv2df): Use ix86_expand_vector_extract.
11576         (sse3_movddup): Rename with '*'.
11577         (sse3_movddup splitter): Use gen_rtx_REG instead of gen_lowpart.
11578         (sse2_loadsd): Remove.
11579         (vec_dupv2df_sse3): Rename from sse3_loadddup.
11580         (vec_dupv2df, vec_concatv2df_sse3, vec_concatv2df): New.
11581         (sse2_pinsrw): Fix argument ordering.
11582         (sse2_loadld, sse2_loadq): Add sse1 alternatives.
11583         (sse2_stored): Remove 'r' destination.
11584         (vec_dupv4si, vec_dupv2di, sse2_concatv2si, sse1_concatv2si,
11585         vec_concatv4si_1, vec_concatv2di, vec_setv2di, vec_extractv2di,
11586         vec_initv2di, vec_setv4si, vec_extractv4si, vec_initv4si,
11587         vec_setv8hi, vec_extractv8hi, vec_initv8hi, vec_setv16qi,
11588         vec_extractv16qi, vec_initv16qi): New.
11589
11590         * config/i386/emmintrin.h (__m128i, __m128d): Use typedef, not define.
11591         (_mm_set_sd, _mm_set1_pd, _mm_setzero_pd, _mm_set_epi64x,
11592         _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128): Use
11593         constructor form.
11594         (_mm_load_pd, _mm_store_pd): Use plain dereference.
11595         (_mm_load_si128, _mm_store_si128): Likewise.
11596         (_mm_load1_pd): Use _mm_set1_pd.
11597         (_mm_load_sd): Use _mm_set_sd.
11598         (_mm_store_sd, _mm_storeh_pd): Use __builtin_ia32_vec_ext_v2df.
11599         (_mm_store1_pd, _mm_storer_pd): Use _mm_store_pd.
11600         (_mm_set_epi64): Use _mm_set_epi64x.
11601         (_mm_set1_epi64x, _mm_set1_epi64, _mm_set1_epi32, _mm_set_epi16,
11602         _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
11603         _mm_setr_epi8): Use _mm_set_foo form.
11604         (_mm_loadl_epi64, _mm_movpi64_epi64, _mm_move_epi64): Use _mm_set_epi64.
11605         (_mm_storel_epi64, _mm_movepi64_pi64): Use __builtin_ia32_vec_ext_v2di.
11606         (_mm_extract_epi16): Use __builtin_ia32_vec_ext_v8hi.
11607         (_mm_insert_epi16): Use __builtin_ia32_vec_set_v8hi.
11608         * config/i386/mmintrin.h (_mm_setzero_si64): Use plain cast.
11609         (_mm_set_pi32): Use __builtin_ia32_vec_init_v2si.
11610         (_mm_set_pi16): Use __builtin_ia32_vec_init_v4hi.
11611         (_mm_set_pi8): Use __builtin_ia32_vec_init_v8qi.
11612         (_mm_set1_pi16, _mm_set1_pi8): Use _mm_set_piN variant.
11613         * config/i386/pmmintrin.h (_mm_loaddup_pd): Use _mm_load1_pd.
11614         (_mm_movedup_pd): Use _mm_shuffle_pd.
11615         * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss,
11616         _mm_set1_ps, _mm_set_ps, _mm_setr_ps): Use constructor form.
11617         (_mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps,
11618         _mm_cvtps_pi8, _mm_cvtpi32x2_ps): Avoid __builtin_ia32_mmx_zero;
11619         Use _mm_setzero_ps.
11620         (_mm_load_ss, _mm_load1_ps): Use _mm_set* form.
11621         (_mm_load_ps, _mm_loadr_ps): Use raw dereference.
11622         (_mm_store_ss): Use __builtin_ia32_vec_ext_v4sf.
11623         (_mm_store_ps): Use raw dereference.
11624         (_mm_store1_ps): Use _mm_storeu_ps.
11625         (_mm_storer_ps): Use _mm_store_ps.
11626         (_mm_extract_pi16): Use __builtin_ia32_vec_ext_v4hi.
11627         (_mm_insert_pi16): Use __builtin_ia32_vec_set_v4hi.
11628
11629 2005-01-11  Stan Shebs  <shebs@apple.com>
11630
11631         * config/rs6000/rs6000.c (machopic_output_stub): Issue
11632         ldu instead of lwzu if 64-bit -mdynamic-no-pic.
11633
11634 2005-01-11  Andrew Pinski  <pinskia@physics.uc.edu>
11635
11636         PR target/18761
11637         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
11638         Skip all DECLs except for FIELD_DECLs.
11639
11640 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
11641
11642         * config/s390/s390.c (override_options): Return error if
11643         -mbackchain, -mpacked-stack and -mhard-float are used together.
11644         (s390_va_start): Remove the backchain && packed-stack special case.
11645         (s390_gimplify_va_arg): Likewise.
11646         * doc/invoke.texi: Remove the ABI incompatibility note.
11647
11648 2005-01-11  Andreas Krebbel  <krebbel1@de.ibm.com>
11649
11650         * config/s390/s390.c (struct s390_frame_layout): Remove
11651         save_backchain_p.
11652         (s390_frame_info, s390_emit_prologue): Replace occurrences of
11653         save_backchain_p with TARGET_BACKCHAIN.
11654
11655 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
11656
11657         PR target/18916
11658         * builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
11659         * expr.h (struct locate_and_pad_arg_data): Add "boundary".
11660         * function.c (locate_and_pad_parm): Set new field.
11661         (assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
11662         Tweak where_pad test to include "none".  Always set mem align for
11663         stack_parm.
11664         (assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
11665         not sufficient for type.
11666         (assign_parm_setup_block): If stack_parm is zero on entry, always
11667         make a new stack local.  Block move old stack parm if necessary
11668         to new aligned stack local.
11669         (assign_parm_setup_stack): Use a block move to handle
11670         potentially misaligned entry_parm.
11671         (assign_parms_unsplit_complex): Specify required alignment when
11672         creating stack local.
11673         * calls.c (compute_argument_addresses): Override alignment of stack
11674         arg calculated from its type with the alignment given by
11675         FUNCTION_ARG_BOUNDARY.
11676         (store_one_arg): Likewise.
11677
11678 2005-01-11  Jan Beulich  <jbeulich@novell.com>
11679
11680         * config/ia64/ia64.md (zero_extendsidi2): Replace zxt4 by addp4.
11681         Change respective itanium_class attribute to ialu.
11682         (shladdp4_internal): New.
11683         * config/ia64/predicates.md (shladd_log2_operand): New.
11684
11685 2005-01-11  Richard Henderson  <rth@redhat.com>
11686
11687         * expr.c (store_constructor): Use rtvec_alloc instead of
11688         alloca+gen_rtvec_v, and an incorrect number passed to alloca.
11689
11690 2005-01-11  Kazu Hirata  <kazu@cs.umass.edu>
11691
11692         * config/alpha/alpha.c, config/i386/mmx.md: Fix comment typos.
11693
11694 2005-01-11  Alan Modra  <amodra@bigpond.net.au>
11695
11696         * varasm.c (default_section_type_flags_1): Don't set SECTION_SMALL.
11697         * config/ia64/ia64.c (TARGET_SECTION_TYPE_FLAGS): Define.
11698         (TARGET_RWRELOC): Define.
11699         (ia64_rwreloc_section_type_flags): Delete.
11700         (ia64_section_type_flags): New function.
11701         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): Don't define.
11702         (TARGET_RWRELOC): Define.
11703
11704 2005-01-10  David Mosberger  <davidm@hpl.hp.com>
11705
11706         PR target/18987
11707         * config/ia64/ia64.c (process_set): For alloc insn, only call
11708         process_epilogue is !frame_pointer_needed.
11709
11710 2005-01-10  Roger Sayle  <roger@eyesopen.com>
11711
11712         PR c++/19355
11713         * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a
11714         unary operator and can't be treated as a binary/comparison operator.
11715
11716 2005-01-10  Richard Henderson  <rth@redhat.com>
11717
11718         * config/i386/i386.c (ix86_function_value): Use type_natural_mode.
11719         (ix86_return_in_memory): Likewise.
11720         (function_arg_advance):  Likewise.  Mirror structure in function_arg
11721         for choosing register to advance.
11722
11723 2005-01-10  Kazu Hirata  <kazu@cs.umass.edu>
11724
11725         * tree-vectorizer.c, tree.def: Fix comment typos.
11726
11727 2005-01-10  Mark Dettinger  <dettinge@de.ibm.com>
11728
11729         * config/s390/s390.c (struct processor_costs): 4 new fields:
11730         ddbr, ddr, debr, der.
11731         (s390_rtx_costs): More precise handling of divide instructions.
11732
11733 2005-01-10  David Edelsohn  <edelsohn@gnu.org>
11734
11735         * config/rs6000/t-aix43 (BOOT_LDFLAGS): Define.
11736
11737 2005-01-10  Jan Beulich  <jbeulich@novell.com>
11738
11739         * config/ia64/ia64.c (ia64_in_small_data_p): Also handle the section
11740         names resulting from -ffunction-sections/-fdata-sections and linkonce
11741         ones.
11742         * varasm.c (default_section_type_flags_1): Also set SECTION_SMALL
11743         based on the section name. Rearrange the section name comparison logic
11744         slightly so that each section name is compared against at most once.
11745
11746 2005-01-10  Ben Elliston  <bje@au.ibm.com>
11747
11748         * doc/invoke.texi (Code Gen Options): Add PowerPC to the list of
11749         targets for which -fPIC reduces limitations on the GOT size.
11750
11751 2005-01-09  Falk Hueffner  <falk@debian.org>
11752
11753         * fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
11754         X/C1 cmpop C2.
11755
11756 2005-01-09  David Edelsohn  <edelsohn@gnu.org>
11757
11758         PR target/18720
11759         * collect2.c (main): Set aixrtl_flag for -brtl option.
11760         (resolve_lib_name): Search for .so file extension before .a
11761         if aixrtl_flag set.
11762
11763 2005-01-09  Dorit Naishlos  <dorit@il.ibm.com>
11764
11765         * tree-vectorizer.c (vect_enhance_data_refs_alignment): Add dump prints.
11766         (vect_analyze_data_refs_alignment): Add dump prints.
11767
11768 2005-01-09  Ira Rosen  <irar@il.ibm.com>
11769
11770         * tree-vectorizer.c (vect_analyze_offset_expr): Use
11771         expr_invariant_in_loop_p.
11772         Initialize outputs first thing in the function.
11773         (vect_update_ivs_after_vectorizer): Call initial_condition_in_loop_num.
11774         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
11775         (vect_analyze_pointer_ref_access): Check that the initial condition of
11776         the access function is loop invariant.
11777
11778 2005-01-09  Richard Henderson  <rth@redhat.com>
11779
11780         * config/i386/i386.c (bdesc_2arg): Update names for mmx_ prefixes.
11781         (ix86_expand_builtin): Likewise.  Frob MASKMOVQ wrt the input mem
11782         just like MASKMOVDQU.  Return plain zero for MMX_ZERO.
11783         * config/i386/i386.md (MMXMODEI, mov<MMXMODEI>,
11784         mov<MMXMODEI>_internal_rex64, mov<MMXMODEI>_internal, movv2sf,
11785         movv2sf_internal_rex64, movv2sf_internal, MMXMODE,
11786         movmisalign<MMXMODE>, mmx_pmovmskb, mmx_maskmovq, mmx_maskmovq_rex,
11787         sse_movntdi, addv8qi3, addv4hi3, addv2si3, mmx_adddi3, ssaddv8qi3,
11788         ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3, subv4hi3, subv2si3,
11789         mmx_subdi3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
11790         mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
11791         sse2_umulsidi3, mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3,
11792         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pinsrw,
11793         mmx_pextrw, mmx_pshufw, eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3,
11794         gtv2si3, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3,
11795         ashrv2si3, lshrv4hi3, lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3,
11796         mmx_ashldi3, mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
11797         mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
11798         mmx_punpckldq, emms, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3,
11799         eqv2sf3, pfmaxv2sf3, pfminv2sf3, mulv2sf3, femms, pf2id, pf2iw,
11800         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pfrcpv2sf2, pfrcpit1v2sf3,
11801         pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3, pmulhrwv4hi3, pswapdv2si2,
11802         pswapdv2sf2): Move to mmx.md; rename as necessary with leading
11803         mmx_ prefix.
11804         (mmx_clrdi, pavgusb): Remove.
11805         (ldmxcsr, stmxcsr, sfence, sfence_insn): Move to sse.md; rename
11806         with leading sse_ prefix.
11807         * config/i386/sse.md: Receive them.
11808         * config/i386/mmx.md: New file.
11809         (MMXMODE12, MMXMODE24, mmxvecsize): New.
11810         (subrv2sf3): Turn into expander for normal subtraction.
11811         (mmx_addv2sf3, mmx_mulv2sf3, mmx_smaxv2sf3, mmx_sminv2sf3,
11812         mmx_eqv2sf3, mmx_mulv4hi3, mmx_smulv4hi3_highpart,
11813         mmx_umulv4hi3_highpart, mmx_pmaddwd, mmx_pmulhrwv4hi3, sse2_umulsidi3,
11814         mmx_umaxv8qi3, mmx_smaxv4hi3, mmx_uminv8qi3, mmx_sminv4hi3): Mark
11815         commutative; use ix86_binary_operator_ok.
11816         (mmx_add<MMXMODEI>3, mmx_ssadd<MMXMODE12>3, mmx_usadd<MMXMODE12>3,
11817         mmx_sub<MMXMODEI>3, mmx_sssub<MMXMODE12>3, mmx_ussub<MMXMODE12>3
11818         mmx_ashr<MMXMODE24>3, mmx_lshr<MMXMODE23>3, mmx_ashl<MMXMODE24>3
11819         mmx_eq<MMXMODEI>3, mmx_gt<MMXMODEI>3, mmx_and<MMXMODEI>3,
11820         mmx_nand<MMXMODEI>3, mmx_ior<MMXMODEI>3, mmx_xor<MMXMODEI>3):
11821         Macroize from existing patterns; use ix86_binary_operator_ok.
11822         (mmx_packsswb, mmx_packssdw, mmx_packuswb): Add memory alternative.
11823         (mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
11824         mmx_punpckhdq, mmx_punpckhdq, mmx_punpckldq): Likewise.  Model
11825         with vec_select+vec_concat.
11826         (mmx_pshufw, mmx_pshufw_1): Likewise.
11827         (mmx_uavgv8qi3): Merge pavgusb.  Model correcty.
11828         (mmx_uavgv4hi3): Model correctly.
11829         * config/i386/mmintrin.h (_mm_and_si64, _mm_andnot_si64, _mm_or_si64,
11830         _mm_xor_si64): Remove casts.
11831
11832 2005-01-09  Zdenek Dvorak  <dvorakz@suse.cz>
11833
11834         PR tree-optimization/19224
11835         * tree-scalar-evolution.c (get_instantiated_value,
11836         set_instantiated_value): New functions.
11837         (instantiate_parameters_1): Cache the results.
11838         (instantiate_parameters, resolve_mixers): Initialize and free
11839         the cache.
11840
11841 2005-01-08  David Edelsohn  <edelsohn@gnu.org>
11842
11843         * config/i386/i386.md (addhi_4): Correct reference in comment.
11844         (addqi_4): Same.
11845
11846 2005-01-08  Richard Henderson  <rth@redhat.com>
11847
11848         * config/i386/emmintrin.h (_mm_cvtsi128_si32): Move earlier.
11849         (_mm_cvtsi128_si64x): Likewise.
11850         (_mm_srl_epi64, _mm_srl_epi32, _mm_srl_epi16, _mm_sra_epi32,
11851         _mm_sra_epi16, _mm_sll_epi64, _mm_sll_epi32, _mm_sll_epi16): Use
11852         the _mm_{srl,sll}i_foo counterpart, and _mm_cvtsi128_si32.
11853         * config/i386/i386-modes.def: Add V16HI, V32QI, V4DF, V8SF.
11854         * config/i386/i386-protos.h: Update.
11855         * config/i386/i386.c (print_operand): Add 'H'.
11856         (ix86_fixup_binary_operands): Split out from ...
11857         (ix86_expand_binary_operator): ... here.
11858         (ix86_fixup_binary_operands_no_copy): New.
11859         (ix86_expand_fp_absneg_operator): Handle vector mode results.
11860         (bdesc_2arg): Update names for sse{,2,3}_ prefixes.
11861         (ix86_init_mmx_sse_builtins): Remove *maskncmp* special cases.
11862         (safe_vector_operand): Use CONST0_RTX.
11863         (ix86_expand_binop_builtin): Use ix86_fixup_binary_operands.
11864         (ix86_expand_builtin): Merge CODE_FOR_sse2_maskmovdqu_rex64 and
11865         CODE_FOR_sse2_maskmovdqu.  Special case SSE version of MASKMOVDQU
11866         expansion.  Update names for sse{,2,3}_ prefixes.  Remove *maskncmp*
11867         special cases.
11868         * config/i386/i386.h (IX86_BUILTIN_CMPNGTSS): New.
11869         (IX86_BUILTIN_CMPNGESS): New.
11870         * config/i386/i386.md (UNSPEC_FIX_NOTRUNC): New.
11871         (attr type): Add sselog1.
11872         (attr unit, attr memory): Handle it.
11873         (movti, movti_internal, movti_rex64): Move near other integer moves.
11874         (movtf, movtf_internal): Move near other fp moves.
11875         (SSEMODE, SSEMODEI, vec_setv2df, vec_extractv2df, vec_initv2df,
11876         vec_setv4sf, vec_extractv4sf, vec_initv4sf, movv4sf, movv4sf_internal,
11877         movv2df, movv2df_internal, mov<SSEMODEI>, mov<SSEMODEI>_internal,
11878         movmisalign<SSEMODE>, sse_movups_1, sse_movmskps, sse_movntv4sf,
11879         sse_movhlps, sse_movlhps, sse_storehps, sse_loadhps, sse_storelps,
11880         sse_loadlps, sse_loadss, sse_loadss_1, sse_movss, sse_storess,
11881         sse_shufps, addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, negv4sf2,
11882         mulv4sf3, vmmulv4sf3, divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2,
11883         rsqrtv4sf2, vmrsqrtv4sf2, sqrtv4sf2, vmsqrtv4sf2, sse_andv4sf3,
11884         sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3, sse2_andv2df3,
11885         sse2_nandv2df3, sse2_iorv2df3, sse2_xorv2df3, sse2_andv2di3,
11886         sse2_nandv2di3, sse2_iorv2di3, sse2_xorv2di3, maskcmpv4sf3,
11887         vmmaskcmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
11888         smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
11889         cvttps2pi, cvtsi2ss, cvtsi2ssq, cvtss2si, cvtss2siq, cvttss2si,
11890         cvttss2siq, addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3,
11891         vmmulv2df3, divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3,
11892         vmsminv2df3, sqrtv2df2, vmsqrtv2df2, maskcmpv2df3, vmmaskcmpv2df3,
11893         sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb, sse2_maskmovdqu,
11894         sse2_maskmovdqu_rex64, sse2_movntv2df, sse2_movntv2di, sse2_movntsi,
11895         cvtdq2ps, cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq,
11896         cvtpd2pi, cvttpd2pi, cvtpi2pd, cvtsd2si, cvtsd2siq, cvttsd2si,
11897         cvttsd2siq, cvtsi2sd, cvtsi2sdq, cvtsd2ss, cvtss2sd, cvtpd2ps,
11898         cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3, ssaddv16qi3,
11899         ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3, subv4si3,
11900         subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3, mulv8hi3,
11901         smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
11902         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_uavgv16qi3, sse2_uavgv8hi3,
11903         sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd, sse2_pshuflw,
11904         sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3, gtv8hi3,
11905         gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3, ashrv8hi3,
11906         ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3, ashlv4si3,
11907         ashlv2di3, sse2_ashlti3, sse2_lshrti3, sse2_unpckhpd, sse2_unpcklpd,
11908         sse2_packsswb, sse2_packssdw, sse2_packuswb, sse2_punpckhbw,
11909         sse2_punpckhwd, sse2_punpckhdq, sse2_punpcklbw, sse2_punpcklwd,
11910         sse2_punpckldq, sse2_punpcklqdq, sse2_punpckhqdq, sse2_movupd,
11911         sse2_movdqu, sse2_movdq2q, sse2_movdq2q_rex64, sse2_movq2dq,
11912         sse2_movq2dq_rex64, sse2_loadd, sse2_stored, sse2_storehpd,
11913         sse2_loadhpd, sse2_storelpd, sse2_loadlpd, sse2_movsd, sse2_loadsd,
11914         sse2_loadsd_1, sse2_storesd, sse2_shufpd, sse2_clflush, sse2_mfence,
11915         mfence_insn, sse2_lfence, lfence_insn, mwait, monitor, addsubv4sf3,
11916         addsubv2df3, haddv4sf3, haddv2df3, hsubv4sf3, hsubv2df3, movshdup,
11917         movsldup, lddqu, loadddup, movddup): Move to sse.md.  Any with
11918         non-optabs meanings renamed with an "sse{,2,3}_" prefix at the
11919         same time.
11920         (SSEPUSH, push<SSEPUSH>): Remove.
11921         (MMXPUSH, push<MMXPUSH>): Remove.
11922         (sse_movaps, sse_movaps_1, sse_movups): Remove.
11923         (sse2_movapd, sse2_movdqa, sse2_movq): Remove.
11924         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Remove.
11925         (sse_clrv4sf, sse_clrv2df, sse2_clrti): Remove.
11926         (maskncmpv4sf3, vmmaskncmpv4sf3): Remove.
11927         (maskncmpv2df3, vmmaskncmpv2df3): Remove.
11928         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti): Remove.
11929         (lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti): Remove.
11930         * config/i386/athlon.md (athlon_sselog_load): Handle sselog1.
11931         (athlon_sselog_load_k8, athlon_sselog, athlon_sselog_k8): Likewise.
11932         * config/i386/ppro.md (ppro_sse_div_V4SF_load): Fix memory attr.
11933         (ppro_sse_log_V4SF_load): Similarly.  Handle sselog1.
11934         (ppro_sse_log_V4SF): Handle sselog1.
11935         * config/i386/predicates.md (const_0_to_1_operand): New.
11936         (const_0_to_255_mul_8_operand): New.
11937         (const_1_to_31_operand): Rename from const_int_1_31_operand.
11938         (const_2_to_3_operand, const_4_to_7_operand): New.
11939         * config/i386/sse.md: New file.
11940         (SSEMODE12, SSEMODE24, SSEMODE124, SSEMODE248, ssevecsize): New.
11941         (sse_movups): Rename from sse_movups_1.
11942         (sse_loadlss): Rename from sse_loadss_1.
11943         (andv4sf3, iorv4sf3, xorv4sf3, andv2df3): Remove the sse prefix
11944         from the name.
11945         (negv4sf2): Use ix86_expand_fp_absneg_operator.
11946         (absv4sf2, negv2df, absv2df): New.
11947         (addv4sf3): Add expander to call ix86_fixup_binary_operands_no_copy.
11948         (subv4sf3, mulv4sf3, divv4sf3, smaxv4sf3, sminv4sf3, andv4sf3,
11949         iorv4sf3, xorv4sf3, addv2df3, subv2df3, mulv2df3, divv2df3,
11950         smaxv2df3, sminv2df3, andv2df3, iorv2df3, xorv2df3, mulv8hi3,
11951         umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3): Likewise.
11952         (sse3_addsubv4sf3): Model correctly.
11953         sse3_haddv4sf3, sse3_hsubv4sf3, sse3_addsubv2df3, sse3_haddv2df3,
11954         sse3_hsubv2df3, sse2_ashlti3, sse2_lshrti3): Likewise.
11955         (sse_movhlps): Model with vec_select+vec_concat.
11956         (sse_movlhps, sse_unpckhps, sse_unpcklps, sse3_movshdup,
11957         sse3_movsldup, sse_shufps, sse_shufps_1, sse2_unpckhpd, sse3_movddup,
11958         sse2_unpcklpd, sse2_shufpd, sse2_shufpd_1, sse2_punpckhbw,
11959         sse2_punpcklbw, sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq,
11960         sse2_punpckldq, sse2_punpckhqdq, sse2_punpcklqdq, sse2_pshufd,
11961         sse2_pshufd_1, sse2_pshuflw, sse2_pshuflw_1, sse2_pshufhw,
11962         sse2_pshufhw_1): Likewise.
11963         (neg<SSEMODEI>2, one_cmpl<SSEMODEI>2): New.
11964         (add<SSEMODEI>3, sse2_ssadd<SSEMODE12>3, sse2_usadd<SSEMODE12>3,
11965         sub<SSEMODEI>3, sse2_sssub<SSEMODE12>3, sse2_ussub<SSEMODE12>3,
11966         ashr<SSEMODE24>3, lshr<SSEMODE248>3, sse2_eq<SSEMODE124>3,
11967         sse2_gt<SSEMODDE124>3, and<SSEMODEI>3, sse_nand<SSEMODEI>3,
11968         ior<SSEMODEI>3, xor<SSEMODEI>3): Macroize from existing patterns.
11969         (addv4sf3, sse_vmaddv4sf3, mulv4sf3, sse_vmmulv4sf3, smaxv4sf3,
11970         sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, addv2df3, sse2_vmaddv2df3,
11971         mulv2df3, sse2_vmmulv2df3, smaxv2df3, sse2_vmsmaxv2df3, sminv2df3,
11972         sse2_vmsminv2df3, umaxv16qi3, smaxv8hi3, uminv16qi3
11973         sminv8hi3): Mark commutative
11974         operands.  Use ix86_binary_operator_ok.
11975         (sse_unpckhps, sse_unpcklps, sse2_packsswb, sse2_packssdw,
11976         sse2_packuswb, sse2_punpckhbw, sse2_punpcklbw, sse2_punpckhwd,
11977         sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq, sse2_punpckhqdq,
11978         sse2_punpcklqdq): Allow operand2 in memory.
11979         (sse_movhlps, sse_movlhps, sse2_unpckhpd, sse2_unpcklpd
11980         sse2_movsd): Add memory alternatives.
11981         (sse_storelps): Turn expander into an insn; split after reload.
11982         (sse_storess, sse2_loadhpd, sse2_loadlpd): Add non-xmm inputs.
11983         (sse2_storehpd, sse2_storelpd): Add non-xmm outputs.
11984
11985 2005-01-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
11986
11987         * configure.ac (DWARF-2 debug_line): Use objdump.
11988         * configure: Regenerate.
11989
11990 2005-01-08  Jeff Law  <law@redhat.com>
11991             Diego Novillo  <dnovillo@redhat.com>
11992
11993         PR tree-optimization/18241
11994         * tree-nrv.c (tree_nrv): Ignore volatile return values.
11995         * tree-ssa-dse.c (dse_optimize_stmt): Do not optimize
11996         statements with volatile operands.
11997         * tree-ssa-operands.c (add_stmt_operand): Do add volatile
11998         operands after marking a statement with has_volatile_ops.
11999
12000 2005-01-08  Roger Sayle  <roger@eyesopen.com>
12001
12002         * tree.c (int_fits_type_p): Always honor integer constant
12003         TYPE_MIN_VALUE and TYPE_MAX_VALUE if they exist.
12004
12005 2005-01-08  Roger Sayle  <roger@eyesopen.com>
12006
12007         * ifcvt.c (find_if_case_1): Reinstate 2005-01-04 change, now that
12008         the latent bug in rtl_delete_block has been resolved.
12009
12010 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
12011
12012         * config/mips/t-iris6 (MULTILIB_DIRNAMES): Use -mabi argument values.
12013         (MULTILIB_OSDIRNAMES): Use the standard lib, lib32 and lib64.
12014
12015 2005-01-08  Richard Sandiford  <rsandifo@redhat.com>
12016
12017         * config/mips/t-slibgcc-irix (SHLIB_LINK): Install a copy of the
12018         library as @multilib_dir@/$(SHLIB_SONAME).
12019
12020 2005-01-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
12021
12022         * configure.ac (HAVE_AS_OFFSETABLE_LO10): Fix typo.
12023         * configure: Regenerate.
12024
12025 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
12026
12027         * c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
12028         TYPE_MODE.
12029
12030 2005-01-07  David Edelsohn  <edelsohn@gnu.org>
12031
12032         PR target/13674
12033         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
12034         Convert non-word aligned offset address using ld/std into
12035         indirect address.
12036
12037 2005-01-07  Richard Henderson  <rth@redhat.com>
12038
12039         * config/i386/i386.md (sse_loadhps splitter): Fix operand number typo.
12040
12041 2005-01-07  Richard SAndiford  <rsandifo@redhat.com>
12042
12043         * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
12044
12045 2005-01-07  Jakub Jelinek  <jakub@redhat.com>
12046
12047         PR tree-optimization/19283
12048         * fold-const.c (fold_widened_comparison): Return NULL if shorter_type
12049         is not shorter than the original type.
12050
12051         PR rtl-optimization/19012
12052         * config/i386/i386.md (addqi_1_slp): Set memory attribute.
12053
12054         PR rtl-optimization/18861
12055         * cfgbuild.c (BLOCK_USED_BY_TABLEJUMP): Define.
12056         (FULL_STATE): Define.
12057         (mark_tablejump_edge): New function.
12058         (purge_dead_tablejump_edges): New function.
12059         (find_bb_boundaries): Use it.
12060
12061         PR tree-optimization/18828
12062         * builtins.c (expand_builtin_next_arg): Remove argument and all
12063         the argument checking.
12064         (expand_builtin): Adjust caller.
12065         (expand_builtin_va_start): Likewise.  Remove error for too many
12066         arguments.
12067         (fold_builtin_next_arg): Issue error for too many arguments.
12068         After checking arguments, replace them with magic arguments that
12069         prevent further checking of the args.
12070
12071 2005-01-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12072
12073         * pa64-hpux.h (STARTFILE_SPEC): Fix typo in spec.
12074
12075 2005-01-06  Roger Sayle  <roger@eyesopen.com>
12076
12077         PR target/6077
12078         * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
12079         and %{.S:...} (and their negative variants) to test whether the
12080         input file is assembler or pre-processed-assembler independent of
12081         the actual filename extension.
12082
12083 2005-01-06  Roger Sayle  <roger@eyesopen.com>
12084
12085         * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
12086         of sign or zero extended values.
12087
12088 2005-01-06  Geoffrey Keating  <geoffk@apple.com>
12089
12090         * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
12091         for IBM long double format correctly.
12092
12093 2005-01-06  Daniel Berlin <dberlin@dberlin.org>
12094
12095         Fix PR tree-optimization/18792
12096
12097         * tree-data-ref.c (build_classic_dist_vector): Change first_loop
12098         to first_loop_depth, and use loop depth instead of loop number.
12099         (build_classic_dir_vector): Ditto.
12100         (compute_data_dependences_for_loop): Use depth, not loop number.
12101         * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop
12102         number. Pass in loops, instead of loop numbers.
12103         (gather_interchange_stats): Ditto.
12104         (linear_transform_loops): Ditto.
12105
12106 2005-01-06  Richard Sandiford  <rsandifo@redhat.com>
12107
12108         PR rtl-opt/13299
12109         * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
12110         biv_fits_mode_p, extension_within_bounds_p): New functions.
12111         (check_ext_dependent_givs): Use them.
12112
12113 2005-01-06  Roger Sayle  <roger@eyesopen.com>
12114
12115         * cfgrtl.c (rtl_delete_block): A basic block may be followed by
12116         more than one barrier, in which case we should delete them all.
12117
12118 2005-01-06  Tobias Schlueter  <tobias.schlueter@physik.uni-muenchen.de>
12119
12120         * gcc.c (process_command): Change year in 'gcc --version' to 2005.
12121
12122 2005-01-05  Daniel Berlin  <dberlin@dberlin.org>
12123
12124         Fix PR middle-end/19286
12125         Fix PR debug/19267
12126         * dwarf2out.c (gen_subprogram_die): If we've already tried to
12127         output this subprogram, simply ignore this attempt to do it again.
12128         (add_abstract_origin_attribute): Don't abort trying to add the abstract
12129         origin attribute if it's not possible.
12130         (gen_block_die): Don't ignore subblocks of "unused" blocks.
12131         (decls_for_scope): Ditto.
12132         * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
12133         (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
12134
12135 2005-01-05  Richard Henderson  <rth@redhat.com>
12136
12137         PR target/11327
12138         * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
12139         (bdesc_2arg): Use it.
12140         (ix86_expand_binop_builtin): Force operands into registers
12141         when optimizing.
12142         (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
12143         ix86_expand_sse_compare, ix86_expand_sse_comi,
12144         ix86_expand_builtin): Likewise.
12145
12146 2005-01-05  Richard Henderson  <rth@redhat.com>
12147
12148         * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
12149         and VEC_SELECT.
12150         * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
12151         (mulv4hi3): Set itanium_class mmmul.
12152         (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
12153         (fpack): Rename from fpack_sfsf.
12154
12155 2005-01-05  Richard Henderson  <rth@redhat.com>
12156
12157         PR rtl-opt/10692
12158         * reload1.c (do_input_reload): Restrict the optimization deleteing
12159         a previous output reload to RELOAD_FOR_INPUT.
12160
12161 2005-01-05  Steven Bosscher  <stevenb@suse.de>
12162
12163         * combine.c (expand_compound_operation)  <ZERO_EXTRACT>: Add
12164         comment that we fall through after case.
12165         (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
12166         (distribute_links): Likewise.
12167         * cse.c (cse_insn): Likewise.
12168         * cselib.c (cselib_invalidate_mem): Likewise.
12169         * df.c: Update comments at the top of the file.
12170         (read_modify_subreg_p): Update comments here too.
12171         (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
12172         * flow.c (mark_set_1): Likewise.
12173         (mark_used_regs): Likewise.
12174         * gcse.c (mems_conflict_for_gcse_p): Likewise.
12175         (canon_list_insert): Likewise.
12176         (mark_set): Likewise.
12177         (try_replace_reg): Likewise.
12178         (store_killed_in_insn): Likewise.
12179         * loop.c (count_one_set): Likewise.
12180         (basic_induction_var): Likewise.
12181         * postreload-gcse.c (find_mem_conflicts): Likewise.
12182         * postreload.c (reload_combine_note_store): Likewise.
12183         (move2add_note_store): Likewise.
12184         * reload.c (find_equiv_reg): Likewise.
12185         (mark_referenced_resources): Likewise.
12186         * rtlanal.c (set_noop_p): Likewise.
12187         (note_stores): Likewise.
12188         (note_uses): Likewise.
12189         * sched-deps.c (sched_analyze_1): Likewise.
12190         * sched-rgn.c (check_live_1): Likewise.
12191         (update_live_1): Likewise.
12192         * config/i860/i860.c: Likewise.
12193
12194         * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
12195         an lvalue.
12196         (ZERO_EXTRACT): Mention that this one can be an lvalue.
12197
12198         * doc/rtl.texi: Update documentation for bit-fields and SET.
12199
12200 2005-01-05  Roger Sayle  <roger@eyesopen.com>
12201
12202         * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
12203
12204 2005-01-05  Jan Hubicka  <jh@suse.cz>
12205             Richard Henderson  <rth@redhat.com>
12206
12207         PR target/18910
12208         * config/i386/i386.c (ix86_expand_move): Handle tls symbols
12209         with an offset.
12210
12211 2005-01-05  Richard Henderson  <rth@redhat.com>
12212
12213         PR target/12902
12214         * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
12215         (sse_shufps): Change operand 3 to const_int_operand.
12216         (sse2_storelps): Fix typo in template.
12217         (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
12218         * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
12219         (ix86_expand_builtin): Likewise.
12220
12221 2005-01-05  Julian Brown  <julian@codesourcery.com>
12222
12223         * config/arm/arm.c (arm_return_in_memory): Treat complex types
12224         as aggregates for AAPCS ABIs.
12225
12226 2005-01-05  Stan Shebs  <shebs@apple.com>
12227
12228         * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
12229         Mach-O getters if ppc64.
12230         * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
12231         size argument.
12232         * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
12233         signed four-byte field for global code case.
12234         (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
12235
12236 2005-01-05  Roger Sayle  <roger@eyesopen.com>
12237
12238         PR middle-end/19100
12239         * c-common.c: Include real.h.
12240         (c_common_truthvalue_conversion): Avoid destructively modifying expr.
12241         Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
12242         Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
12243         * Makefile.in (c-common.o): Update dependencies.
12244
12245 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
12246
12247         * c-parse.in (asm_string): Add trailing semicolon.
12248
12249 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
12250
12251         * c-parse.in (asm_string): New.  Don't allow wide strings in
12252         'asm'.
12253         (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
12254         asm_string instead of STRING.
12255
12256 2005-01-05  Joseph S. Myers  <joseph@codesourcery.com>
12257
12258         * c-typeck.c (constructor_no_implicit): Remove.
12259         (set_designator, process_init_element): Don't check
12260         constructor_no_implicit.
12261
12262 2005-01-05  J"orn Rennecke <joern.rennecke@st.com>
12263             Kaz Kojima  <kkojima@gcc.gnu.org>
12264
12265         PR target/16482
12266         * lcm.c (create_pre_exit): New.
12267         (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
12268         ENTRY_EXIT_EXTRA to 3.  Use create_pre_exit.
12269
12270 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
12271
12272         * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
12273         -msoft-float in target_float_switch.
12274         * arm.c (arm_override_options): Fix processing of target_float_switch.
12275
12276 2004-01-05  Richard Earnshaw  <rearnsha@arm.com>
12277
12278         * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
12279         preferencing.
12280
12281 2004-01-05  Uros Bizjak  <uros@kss-loka.si>
12282
12283         * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
12284         Replace i387 with 'i386 compiler' in -mfpmath=sse option.
12285
12286 2005-01-04  Roger Sayle  <roger@eyesopen.com>
12287
12288         * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
12289         if deleting the then-block allows the test-block to fallthru to the
12290         else-block.
12291
12292 2005-01-04  Andrew Pinski  <pinskia@physics.uc.edu>
12293
12294         PR c/19152
12295         * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
12296         after the full declaration if the are in two different TUs.
12297
12298 2005-01-04  Richard Henderson  <rth@redhat.com>
12299
12300         PR tree-opt/19158
12301         * tree-sra.c (generate_one_element_init): Just
12302         call gimplify_and_add.
12303         (generate_element_init): Record the
12304         new referenced variables and mark them for renaming
12305         and split out to ...
12306         (generate_element_init_1): This.
12307         (scalarize_init): Don't call push_gimplify_context/
12308         pop_gimplify_context.
12309
12310 2005-01-04  Geoffrey Keating  <geoffk@apple.com>
12311
12312         * toplev.c (get_src_pwd): Handle failure of getpwd().
12313
12314 2005-01-04  Roger Sayle  <roger@eyesopen.com>
12315
12316         * fold-const.c (fold_single_bit_test): Delete unreachable handling
12317         of TRUTH_NOT_EXPR.
12318         (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
12319         all the cases handled by it are inverted by invert_truthvalue.
12320
12321 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
12322
12323         * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
12324         (save_register_windowsi): Likewise.
12325
12326 2005-01-04  Richard Henderson  <rth@redhat.com>
12327
12328         * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
12329
12330 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
12331
12332         PR middle-end/17767
12333         * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
12334         any simplifications of vector mode comparison operators.
12335         * simplify-rtx.c (simplify_relational_operation): Fix variable name.
12336
12337 2005-01-04  Paolo Bonzini  <bonzini@gnu.org>
12338             Devang Patel  <dpatel@apple.com>
12339
12340         PR tree-optimization/18308
12341         * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
12342         the operands before creating a new expression.
12343         * dojump.c (do_jump): Make drop_through_label available
12344         for all cases.  Add expansion of COND_EXPR.
12345
12346 2005-01-04  Ira Rosen  <irar@il.ibm.com>
12347
12348         * tree-vectorizer.c (vect_analyze_offset_expr): Test for
12349         INTEGER_CST instead of TREE_CONSTANT.
12350         (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
12351         instead of TREE_CONSTANT.
12352         (vect_analyze_pointer_ref_access): Test for INTEGER_CST
12353         instead of TREE_CONSTANT.
12354
12355 2005-01-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
12356
12357         * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
12358
12359 2005-01-04  Uros Bizjak  <uros@kss-loka.si>
12360
12361         PR target/19240
12362         * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
12363         (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
12364
12365 2005-01-03  Richard Henderson  <rth@redhat.com>
12366
12367         * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
12368         (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
12369         fold_convert_const_real_from_real): Split out from ...
12370         (fold_convert_const): ... here.
12371
12372 2005-01-03  Richard Henderson  <rth@redhat.com>
12373
12374         PR target/19235
12375         * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
12376         (mov<MMXMODEI>_internal): Likewise.
12377         (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
12378         Add V2SF case; use it for SSE1; don't use TI.
12379         (movdf_integer): Likewise.
12380         (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
12381
12382 2005-01-03  Ira Rosen  <irar@il.ibm.com>
12383
12384         * tree-vectorizer.c (vect_strip_conversions): New function.
12385         (vect_analyze_offset_expr): Call vect_strip_conversions. Add
12386         check for binary class.
12387
12388 2005-01-03  Daniel Berlin  <dberlin@dberlin.org>
12389
12390         Fix PR debug/17924
12391         Fix PR debug/19191
12392         * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
12393         is a decl.
12394         * gimple-low.c (mark_blocks_with_used_vars): New function.
12395         (mark_blocks_with_used_subblocks): Ditto.
12396         (mark_used_blocks): Ditto.
12397         (pass_mark_used_blocks): New pass.
12398         * tree-inline.c: Include debug.h.
12399         (expand_call_inline): Call outlining_inline_function here.
12400         * tree-optimize.c (init_tree_optimization_passes): Add
12401         pass_mark_used_blocks.
12402         * tree-pass.h (pass_mark_used_blocks): New.
12403         * Makefile.in (tree-inline.o): Add debug.h dependency.
12404
12405 2005-01-03  Geoffrey Keating  <geoffk@apple.com>
12406
12407         * config/darwin.c (darwin_handle_weak_import_attribute): Permit
12408         VAR_DECLs to have weak_import attribute.
12409
12410         * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
12411         'struct ucontext'.
12412
12413 2004-01-03  Steven Bosscher  <stevenb@suse.de>
12414
12415         * passes.c (rest_of_compilation): Don't run regmove if only
12416         flag_expensive_optimizations, require flag_regmove instead.
12417
12418 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
12419
12420         * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
12421         register "sparc".
12422         * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
12423         * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
12424         * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
12425         * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
12426
12427 2005-01-03  Richard Henderson  <rth@redhat.com>
12428
12429         * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
12430         (ia64_const_ok_for_letter_p): New.
12431         (ia64_const_double_ok_for_letter_p): New.
12432         (ia64_extra_constraint): New.
12433         (ia64_expand_vecint_compare): New.
12434         (ia64_expand_vcondu_v2si): New.
12435         (ia64_expand_vecint_cmov): New.
12436         (ia64_expand_vecint_minmax): New.
12437         (ia64_print_operand): Add 'v'.
12438         (ia64_preferred_reload_class): New.
12439         (ia64_vector_mode_supported_p): New.
12440         * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
12441         (PREFERRED_RELOAD_CLASS): Move to function.
12442         (CONST_OK_FOR_LETTER_P): Move to function.
12443         (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
12444         (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
12445         (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
12446         (EXTRA_CONSTRAINT): Move to function.
12447         * config/ia64/ia64.md: Include vect.md.
12448         (itanium_class): Add mmalua.
12449         (type): Handle it.
12450         * config/ia64/itanium1.md (1_mmalua): New.  Add it to bypasses.
12451         (1b_mmalua): New.
12452         * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
12453         * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
12454         CONST0_RTX.
12455         (const_int_2bit_operand): New.
12456         (fr_reg_or_0_operand): New.
12457         * config/ia64/ia64-modes.def: Add vector modes.
12458         * config/ia64/ia64-protos.h: Update.
12459         * config/ia64/vect.md: New file.
12460
12461 2005-01-03  Richard Henderson  <rth@redhat.com>
12462
12463         * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
12464
12465 2005-01-03  Uros Bizjak  <uros@kss-loka.si>
12466
12467         PR target/19236
12468         * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
12469         to SFmode.
12470         (log1pdf2): Change mode of operands[0,1] to DFmode.
12471
12472 2005-01-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
12473
12474         * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
12475         * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
12476         * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
12477         * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
12478         SPARC_RELAXED_ORDERING.
12479
12480 2005-01-03  Richard Henderson  <rth@redhat.com>
12481             Uros Bizjak  <uros@kss-loka.si>
12482
12483         PR target/14631
12484         * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
12485         IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
12486         * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
12487         handling.
12488         (*mmx_pinsrw, *sse2_pinsrw): New patterns.
12489         * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
12490         const_pow2_1_to_128_operand): New predicates.
12491
12492 2005-01-02  Greg McGary  <greg@mcgary.org>
12493
12494         * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
12495         anonymous decls.
12496         (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
12497         object.  [ptr_type]: Remove unused variable.
12498         Remember nearest addressable array-element or record-component
12499         when checking bitfield components.  Tolerate empty BIND_EXPR.
12500
12501 2005-01-01  Richard Henderson  <rth@redhat.com>
12502
12503         * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
12504         that don't narrow the value.  Fail for other conversions.
12505
12506 2005-01-01  Richard Henderson  <rth@redhat.com>
12507
12508         PR c/19031
12509         * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
12510         * c-lang.c (finish_file): Don't do it here.
12511         * objc/objc-act.c (objc_finish_file): Likewise.
12512
12513         * cgraph.c (decl_assembler_name_equal): New.
12514         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
12515         (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
12516         * cgraph.h (struct cgraph_varpool_node): Add next.
12517         (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
12518         * varasm.c (assemble_alias): Mark the target as needed.
12519
12520 2005-01-01  Andrew Pinski  <pinskia@physics.uc.edu>
12521
12522         PR middle-end/19221
12523         * function.c (get_arg_pointer_save_area): Use entry_of_function
12524         instead of get_insns.
12525
12526 2005-01-01  Roger Sayle  <roger@eyesopen.com>
12527             Andrew Pinski  <pinskia@physics.uc.edu>
12528             James E. Wilson  <wilson@specifixinc.com>
12529
12530         PR rtl-optimization/12092
12531         * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
12532         is zero.
12533
12534 2005-01-01  Roger Sayle  <roger@eyesopen.com>
12535             Olivier Hainque  <hainque@act-europe.fr>
12536
12537         * tree.c (int_fits_type_p): A narrower type always fits in a
12538         wider one, except for negative values into unsigned types.
12539
12540 2005-01-01  Roger Sayle  <roger@eyesopen.com>
12541
12542         * tree.c (int_fits_type_p): Compare the result of force_fit_type
12543         with the original constant rather than require TREE_OVERFLOW.
12544
12545 2005-01-01  Steven Bosscher  <stevenb@suse.de>
12546
12547         PR middle-end/17544
12548         * c-decl.c (finish_function): If compiling C99, annotate the
12549         compiler generated return with the current file name and line 0.
12550         * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
12551         the source line is greater than 0.
12552         (remove_bb): Likewise.