OSDN Git Service

* arm-cores.def: Sort by architecture. Add arm946es, arm966es,
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
2
3         * arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
4         arm968es, arm10e, arm1020e, arm1022e.
5         * invoke.texi: Update list of ARM cores.
6         * arm-tune.md: Regenerate.
7
8 2004-08-03  Richard Earnshaw <rearnsha@arm.com>
9
10         * arm/gentune.sh: New file.
11         * arm/t-arm: New file.
12         * arm/arm-tune.md: New file (autogenerated).
13         * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
14         * arm.md (attribute tune): Delete.  Include arm-tune.md.
15
16 2004-08-03  Paolo Bonzini <bonzini@gnu.org>
17
18         * gcc.c (add_prefix, add_sysrooted_prefix): Remove
19         penultimate parameter.  All callers adjusted.
20         (struct prefix_list): Remove used_flag_ptr.
21         (find_a_file): Do not set *pl->used_flag_ptr.
22         (warn_B, warn_std_ptr): Remove.
23
24 2004-08-03  Yossi Markovich <yossim@il.ibm.com>
25             Mostafa Hagog <mustafa@il.ibm.com>
26
27         * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
28
29 2004-08-02  Geoffrey Keating  <geoffk@apple.com>
30
31         * dwarf2out.c (output_call_frame_info): Don't change data format
32         due to TARGET_USES_WEAK_UNWIND_INFO.  Always refer to the local
33         label.  Use 'true' not '1'.
34         * doc/install.texi (powerpc-*-darwin*): Mention cctools version
35         required.
36
37 2004-08-02  Gabriel Dos Reis  <gdr@cs.tamu.edu>
38
39         * gdbinit.in: Reflect previous changes to rtunion_def.
40
41 2004-08-02  Roger Sayle  <roger@eyesopen.com>
42
43         * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
44         -> "X % Y" is only valid for TRUNC_MOD_EXPR.
45
46 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
47
48         * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
49         vec_p_reserve. 
50         * langhooks.h (lang_hooks::builtin_function): Rename parameter
51         from "class" to "bt_class".
52
53 2004-08-02  Paul Brook  <paul@codesourcery.com>
54
55         PR rtl-optimization/15068
56         * flow.c (init_propagate_block_info): Check condition is reversible.
57
58 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
59
60         * gengtype.h (options::info): Change type to const char *.
61         (enum gc_used_enum): Move out of struct type scope.
62         * gengtype.c (create_option): Convert initializer for option::info to
63         appropiate type.
64         (adjust_field_type, walk_type, write_func_for_structure,
65         write_root, write_roots): Remove pointless cast. 
66
67 2004-08-02  J"orn Rennecke <joern.rennecke@superh.com>
68
69         * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
70
71 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
72
73         * rtl.h (union rtunion_def): Have all members  start with the
74         prefix "rt_".
75         (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
76         X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE, 
77         X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
78         XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
79         access. 
80         * gengtype.c (adjust_field_rtx_def): Likewise.
81         * rtlanal.c (loc_mentioned_in_p): Likewise.
82
83 2004-08-02  Richard Sandiford  <rsandifo@redhat.com>
84
85         * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
86         Replace uses of mips/elf64.h with mips/elf.h
87         * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
88         (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
89         (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
90         (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
91         (HANDLE_SYSV_PRAGMA): Delete.
92         (ASM_OUTPUT_DEF): Fix formatting.
93         * config/mips/elf64.h: Delete.
94
95 2004-08-01  Zack Weinberg  <zack@codesourcery.com>
96
97         * config/ia64/ia64.c (got_symbolic_operand): Do require a
98         symbol+offset operand to have its offset be zero mod 0x3fff
99         when GOT entries are in use.  Clarify logic in SYMBOL_REF
100         case.  Clarify comments.
101         (ia64_expand_load_address): Split a symbol+offset load when
102         the offset is nonzero mod 0x3fff, not 0x1fff.
103
104 2004-08-01  Geoffrey Keating  <geoffk@apple.com>
105
106         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
107         if trying to *store* to a non-offsettable address.
108         * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
109         a nonoffsettable address.
110         (movdi_internal32): Don't move GPRs to a nonoffsettable address.
111         Clean up.
112         (movti_string): Don't move GPRs to a nonoffsettable address.
113         (movti_ppc64): Don't move GPRs to a nonoffsettable address.  Clean up.
114
115 2004-08-02  Ben Elliston  <bje@au.ibm.com>
116
117         PR target/16155
118         * config/rs6000/altivec.h: Replace typeof with __typeof__.
119
120 2004-08-01  Richard Henderson  <rth@redhat.com>
121
122         * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
123         variable sized types.
124
125 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
126
127         * doc/invoke.texi: In the MIPS options section, remove the passage
128         saying that -mexplicit-relocs is usually disabled for -mabicalls
129         -fno-unit-at-a-time.
130         * config/mips/mips.c (override_options): Remove the code that enforced
131         this rule.
132
133 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
134
135         * config/mips/mips.md (cprestore): Provide two alternatives, one for
136         an in-range offset and one for an out-of-range offset.  Wrap the latter
137         in .set macro/.set nomacro if it's inside a .set nomacro block.
138
139 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
140
141         * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
142         (mips_restore_gp): Declare.
143         * config/mips/mips.c (mips_add_offset): Add a scratch register
144         argument.  Reimplement in rtl only, reusing MIPS16 logic from
145         mips_output_mi_thunk.
146         (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
147         to mips_add_offset.
148         (mips_gp_save_slot): Delete.
149         (mips_restore_gp): New function.
150         (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
151         * config/mips/mips.md (exception_receiver): Turn into a
152         define_insn_and_split.  Use mips_restore_gp to do the split.
153         (call_internal, call_value_internal, call_value_multiple_internal): Use
154         mips_restore_gp to restore $gp.
155
156 2004-07-31  Andrew Pinski  <apinski@apple.com>
157
158         PR other/16842
159         * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
160
161 2004-07-31  Joseph S. Myers  <jsm@polyomino.org.uk>
162
163         * c-decl.c (diagnose_mismatched_decls): Give error for external
164         redeclaration of identifier declared with no linkage, not just
165         warning with -Wtraditional.  Do not check DECL_CONTEXT to give
166         error for redeclaration with no linkage.
167
168 2004-07-30  Geoffrey Keating  <geoffk@apple.com>
169             Fariborz Jahanian <fjahanian@apple.com>
170
171         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
172         non-offsettable addresses even for DImode.
173         (rs6000_split_multireg_move): Cope with non-offsettable addresses
174         being moved into multiple GPRs.
175
176         * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
177         to 64.
178         (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
179         * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
180         to 128.
181         * config/rs6000/darwin-ldouble.c (isless): New macro.
182         (inf): New macro.
183         (nonfinite): New macro.
184         (FPKINF): Delete.
185         (_xlqadd): Completely rewrite.
186         (_xlqmul): Correct overflow handling.
187         (_xlqdiv): Correct overflow handling.
188         * config/rs6000/darwin-ldouble-format: New file.
189
190 2004-07-30  Roger Sayle  <roger@eyesopen.com>
191             Richard Henderson  <rth@redhat.com>
192
193         * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
194         9 into the equivalent lea instruction.
195
196 2004-07-30  Richard Henderson  <rth@redhat.com>
197
198         * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
199         with DECL_INITIAL if fb_lvalue.
200         * tree-gimple.c (is_gimple_id): Add CONST_DECL.
201         * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
202         with <Cxxx>.
203         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
204
205 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
206
207         * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
208         pointer escapes through a function call, assume that the
209         callee will dereference it.
210         (add_pointed_to_var): Assume that VALUE is always an
211         ADDR_EXPR.
212         (collect_points_to_info_r): Only call add_pointed_to_var if
213         the value is an ADDR_EXPR.
214
215 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
216
217         * tree-ssa-alias.c (create_alias_map_for): Do not get the
218         alias set of the inner type of ARRAY_TYPEs.
219
220 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
221
222         * tree-ssa-ccp.c (visit_assignment): Move code to prevent
223         setting a non-register to UNDEFINED right before the call to
224         set_lattice_value.
225
226 2004-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
227
228         * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
229
230 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
231
232         * tree-ssa.c (verify_flow_sensitive_alias_info): When
233         comparing points-to sets of different pointers, make sure the
234         second pointer is actually referenced in the code.
235
236 2004-07-29  Zack Weinberg  <zack@codesourcery.com>
237
238         * config/ia64/ia64.c (setjmp_operand): Delete, unused.
239         (got_symbolic_operand): Remove unreachable code.
240         * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
241         setjmp_operand; add entry for tls_symbolic_operand.
242         * config/ia64/ia64-protos.h: Remove all prototypes of
243         predicate functions.
244
245 2004-07-29  Mark Mitchell  <mark@codesourcery.com>
246
247         * c-common.h (lang_post_pch_load): New variable.
248         * c-pch.c (lang_post_pch_load): Define it.
249         (c_common_read_pch): Use it.
250         * cgraphunit.c (record_call_1): Give the front end a chance to
251         record additional needed entities when a variable is marked as
252         needed.
253         * tlink.c (recompile_files): Robustify.
254         (scan_linker_output): If a symbol is assigned to a file,
255         but after recompilation is not present there, issue an error
256         message.
257
258 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
259
260         * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
261         Take orig_loop argument and pass it to set_level.
262         (schedule_sm): Pass the correct orig_loop to force_move_till.
263
264 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
265
266         * cfgloop.c (update_latch_info): Update dominator of the new block.
267         (canonicalize_loop_headers, flow_loops_find): Do not free dominance
268         info.
269         * dominance.c (verify_dominators): Check that the dominance tree is
270         connected.
271         (recount_dominator): Ignore unreachable blocks.
272         (iterate_fix_dominators): Cleanup old dominance information before
273         recomputing it.
274
275 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
276
277         * tree-ssa-operands.c (get_expr_operands): Revert changes
278         to ADDR_EXPR processing introduced by:
279             2004-06-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
280             * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
281
282 2004-07-29  Joseph S. Myers  <jsm@polyomino.org.uk>
283
284         * doc/implement-c.texi: Add C90 subclause references.  Point to
285         preprocessor documentation instead of duplicating it.  Add points
286         only present in C90.  Fill in documentation for all points.
287
288 2004-07-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
289
290         * pa.c (output_movb): Correct typo.
291
292 2004-07-29  Pat Haugen  <pthaugen@us.ibm.com>
293
294         * ra.h (single_reg_in_regclass): Declare.
295         * ra.c (single_reg_in_regclass): Define.
296         (first_hard_reg): New.
297         (init_ra): Initialize single_reg_in_regclass.
298         * ra-colorize.c (ok_class): New.
299         (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
300
301 2004-07-29  Nathan Sidwell  <nathan@codesourcery.com>
302
303         * gcov-io.h: Allow zero tag as EOF indicator.
304         (gcov_is_eof): Remove.
305         (gcov_truncate): Remove.
306         * gcov-io.c (gcov_seek): Always SEEK_SET.
307         * libgcov.c (gcov_exit): Don't use gcov_truncate.  Write explicit
308         EOF tag.
309         * coverage.c (read_counts_file): Don't use gcov_is_eof.
310         * gcov-dump.c (dump_file): Likewise.
311         * gcov.c (read_graph_file, read_count_file): Likewise.
312
313         * c-decl.c (complete_array_type): Don't gratuitously copy
314         maxindex.  Check it always has a type.
315
316 2004-07-29  Steven Bosscher  <stevenb@suse.de>
317
318         * rtl.c (currently_expanding_to_rtl): New.
319         * rtl.h (currently_expanding_to_rtl): Export it.
320         * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
321
322         * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
323         inliner hack.
324         * config/sh/sh.c: Replace rtx_equal_function_value_matters
325         with currently_expanding_to_rtl.
326         * config/sh/sh.md: Likewise.
327         * config/ia64/ia64.c (got_symbolic_operand): Likewise.
328
329 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
330
331         Introduce sh2a support.
332         2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
333         * config.gcc: Build multilibs for sh2a and sh2a-single by
334         default.
335         * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
336         default.  Split their tests out of the corresponding SH4
337         multilibs.
338         * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
339         multilibs for SH2a.
340         2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
341         * config.gcc: Handle sh2a multilibs and cpu selection.
342         * config/sh/sh.h: Likewise.  Handle sh2a command line flags.
343         * config/sh/t-mlib-sh2a: New.
344         * config/sh/t-mlib-sh2a-nofpu: New.
345         * config/sh/t-mlib-sh2a-single: New.
346         * config/sh/t-mlib-sh2a-single-only: New.
347         2004-07-09  Nick Clifton  <nickc@redhat.com>
348         Issue 43400
349         * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
350         -ml and -m2a are used together.
351         2004-03-23  DJ Delorie  <dj@redhat.com>
352         * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
353         when we have a double-sized FPU.
354         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
355         * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
356         is set.
357         * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
358         -msh2a-single and -msh2a-single-only
359         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
360         * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
361         is set.
362         2004-02-20  DJ Delorie  <dj@delorie.com>
363         * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
364         2004-02-20  Fred Fish <fnf@redhat.com>,
365         Corinna Vinschen <vinschen@redhat.com>
366         * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
367         (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
368         2004-02-18  DJ Delorie  <dj@redhat.com>
369         * config/sh/sh.c (broken_move): Add support for movi20.
370         * config/sh/sh.h: Likewise.
371         (SHIFT_COUNT_TRUNCATED): Set for sh2a.
372         * config/sh/sh.md (udivsi3_sh2a): New.
373         (udivsi3): Call it.
374         (divsi3_sh2a): New.
375         (divsi3): Call it.
376         (mul_r): New.
377         (ashlsi3_sh2a): New.
378         (ashrsi3_sh2a): New.
379         (lshrsi3_sh2a): New.
380         (movsi_i): Disable for sh2a.
381         (movsi_ie): Add movi20.
382         (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
383         sh2a, for -m2a-nofpu mode.
384         2004-02-13  DJ Delorie  <dj@redhat.com>
385         * config/sh/lib1funcs.asm: Handle double vs single better.
386         * config/sh/sh.h: Likewise.
387         2004-02-09  DJ Delorie  <dj@redhat.com>
388         * config/sh/crt1.asm: Add support for sh2a.
389         * config/sh/elf.h: Likewise.
390         * config/sh/lib1funcs.asm: Likewise.
391         * config/sh/sh.c: Likewise.
392         * config/sh/sh.md: Likewise.
393         * config/sh/sh.h: Likewise.
394         * config/sh/t-sh: Likewise.
395
396 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
397
398         * config/frv/frv.md (movqi_internal, movhi_internal,
399         movsi_internal): Add backup alternatives for memory inputs.
400
401 2004-07-28  Matt Austern  <austern@apple.com>
402
403         * config/darwin.c (darwin_one_byte_bool): New global variable.
404         * config/darwin.h (darwin_one_byte_bool): Declare.
405         (SUBTARGET_OPTIONS): Define macro.  (for -mone-byte-bool flag.)
406         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
407         value of darwin_one_byte_bool.
408         * doc/invoke.texi: Document -mone-byte-bool flag.
409
410 2004-07-28  Eric Christopher  <echristo@redhat.com>
411
412         * c-common.c (c_common_unsafe_for_reeval): Delete.
413         * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
414         * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
415         * calls.c (fix_unsafe_tree): Delete.
416         (expand_call): Delete code which used above.
417         * dojump.c (do_jump): Delete UNSAVE_EXPR case.
418         * expr.c (expand_expr_real_1): Ditto.
419         * fold-const.c (non_lvalue): Ditto.
420         * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
421         (lhd_unsafe_for_reeval): Ditto.
422         * langhooks.c (lhd_unsafe_for_reeval): Ditto.
423         * langhooks.h (unsafe_for_reeval): Ditto.
424         (unsave_expr_now): Adjust comment.
425         * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
426         (estimate_num_insns_1): Ditto.
427         * tree-pretty-print.c (dump_generic_node): Ditto.
428         * tree.c (expr_align): Ditto.
429         (unsave_expr): Delete.
430         (unsafe_for_reeval): Ditto.
431         * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
432         * tree.def (UNSAVE_EXPR): Delete.
433         * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
434
435 2004-07-28  Zack Weinberg  <zack@codesourcery.com>
436
437         * tree.h (enum tls_model): Move ...
438         * coretypes.h: ... here.
439
440 2004-07-28  Richard Sandiford <rsandifo@redhat.com>
441
442         * config/frv/frv.h (EPILOGUE_USES): New.  Use LR.
443
444 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
445
446         * cse.c (validate_canon_reg): New function, split out from...
447         (canon_reg): ...here.  Use validate_canon_reg for both 'e' and 'E'.
448
449 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
450
451         * tree-ssa-alias.c (maybe_create_global_var): Don't just
452         return if .GLOBAL_VAR has been created.
453
454 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
455
456         * tree-ssa.c (verify_flow_insensitive_alias_info): Process
457         every variable that may have aliases, not just tags.
458
459 2004-07-28  Aldy Hernandez  <aldyh@redhat.com>
460
461         * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
462         move_from_CR_eq_bit.
463         Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
464
465
466         * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
467         e500_flip_eq_bit.
468
469         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
470         output_e500_flip_eq_bit.
471
472         * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
473         output_e500_flip_eq_bit.
474         (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
475         output_e500_flip_eq_bit.
476         Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
477         (print_operand): case D.  Get to EQ bit.
478
479 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
480
481         * gcov.c (function_summary): Add missing \n.
482
483 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
484
485         Introduce sh4a support.
486         * config.gcc: Handle sh4a multilibs and cpu selection.
487         * config/sh/sh.h: Likewise.  Handle sh4a command line flags.
488         * config/sh/t-mlib-sh4a: New.
489         * config/sh/t-mlib-sh4al: New.
490         * config/sh/t-mlib-sh4a-nofpu: New.
491         * config/sh/t-mlib-sh4a-single: New.
492         * config/sh/t-mlib-sh4a-single-only: New.
493         2004-02-20  DJ Delorie  <dj@redhat.com>
494         * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
495         * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
496         2003-08-22  Eric Christopher  <echristo@redhat.com>
497         * config/sh/sh4a.md: Update for chip errata.
498         2003-08-07  Eric Christopher  <echristo@redhat.com>
499         * config/sh/sh4a.md: New file. sh4a processor description.
500         2003-07-08  Alexandre Oliva  <aoliva@redhat.com>
501         * config/sh/sh.h (TARGET_SWITCHES): Added 4al.  Adjust description
502         of -m4a-nofpu.
503         (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
504         * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
505         * doc/invoke.texi (SH Options): Document -m4al.
506         2003-07-03  Alexandre Oliva  <aoliva@redhat.com>
507         * config/sh/sh.c (expand_block_move): Remove commented-out code
508         checked in by mistake.
509         (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
510         single elements from SFmode vectors.
511         * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
512         register.
513         (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
514         2003-07-01  Alexandre Oliva  <aoliva@redhat.com>
515         * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
516         sh_fsca_int2sf): Remove variable declarations.
517         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
518         sh_fsca_int2sf): New functions.
519         (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
520         sh_fsca_int2sf_rtx): New static variables.
521         * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
522         sh_fsca_int2sf): Declare.
523         * config/sh/sh.md: Adjust.
524         * doc/invoke.texi (SH Options): Document new options.
525         * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
526         compatibility from SH4 code.
527         2003-06-27  Alexandre Oliva  <aoliva@redhat.com>
528         * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
529         early.
530         (memory_movsrc_operand): Renamed to...
531         (unaligned_load_operand): ... this.  Simplified.
532         * config/sh/sh.h (PREDICATE_CODES): Adjust.
533         * config/sh/sh.md (movua, extv, extzv): Likewise.  Change movua's
534         input operand to SImode, and adjust the others.  Introduce
535         post-increment by peephole.
536         * config/sh/sh.c (expand_block_move): Give the target address the
537         same mode as the temp reg.
538         * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
539         copying.
540         2003-06-26  Alexandre Oliva  <aoliva@redhat.com>
541         Introduce support for SH4a.
542         * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
543         __SH4A__.  Emit 4 4kb blocks and touch all of them otherwise.
544         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
545         sh_fsca_int2sf): New.
546         (sh_init_builtins): Initialize them.
547         (print_operand): Support `d'.
548         (expand_block_move): Use movua if src is misaligned.
549         (memory_movsrc_operand): New.
550         * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
551         and one of the SH4 macros.
552         (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
553         SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
554         SELECT_SH4A_SINGLE): New.
555         (TARGET_NONE): Add SH4A_BIT.
556         (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
557         (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
558         (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
559         (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
560         (enum processor_type): Added PROCESSOR_SH4A.
561         (PREDICATE_CODES): Add memory_movsrc_operand.
562         * config/sh/sh.md: Removed unused variables.
563         (attr cpu): Add sh4a.
564         (attr type): Add movua, fsrra and fsca.
565         (prefetch): New, for SH4.
566         (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
567         (toggle_sz): Set type to fp.
568         (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
569         (movua, extv, extzv): New.
570         * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
571         and 4a-single-only.
572
573 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
574
575         * tree-optimize.c (init_tree_optimization_passes): Schedule
576         pass_may_alias right after the program is renamed into SSA.
577         * tree-pass.h (PROP_alias): Define.
578         * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
579         * tree-sra.c (pass_sra): Likewise.
580         * tree-ssa-ccp.c (pass_ccp): Likewise.
581         * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
582         * tree-ssa-dce.c (pass_dce): Likewise.
583         * tree-ssa-dom.c (pass_dominator): Likewise.
584         * tree-ssa-dse.c (pass_dse): Likewise.
585         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
586         * tree-ssa-loop-ch.c (pass_ch): Likewise.
587         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
588         * tree-ssa-pre.c (pass_pre): Likewise.
589         * tree-tailcall.c (pass_tail_recursion): Likewise.
590         * tree-ssa.c (pass_redundant_phi): Likewise.
591         * tree-ssa-alias.c (aliases_computed_p): Remove.
592         Update all users.
593         (init_alias_info): Do not mark all type tags for renaming
594         unconditionally.
595         Clear may_aliases from every symbol.
596         (setup_pointers_and_addressables): If a pointer has not been
597         dereferenced and it had a type tag, clear it and mark the old
598         tag for renaming.
599
600 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
601
602         PR tree-optimization/16705
603         * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
604         .GLOBAL_VAR.
605
606 2004-07-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
607
608         * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
609         check.
610
611         * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
612         don't make another one.
613
614         PR optimization/15077
615         * function.h (struct function): Add field saved_static_chain_decl.
616         Fix comment for static_chain_decl.
617         * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
618         * tree-inline.h (save_body): Add new arg.
619         * tree-optimize.c (tree_rest_of_compilation): Handle saving
620         static_chain_decl.
621
622 2004-07-27  Richard Henderson  <rth@redhat.com>
623
624         * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
625         (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
626         is_gimple_addressable.
627         * tree-gimple.c (is_gimple_addressable): Rename from
628         is_gimple_addr_expr_arg; accept INDIRECT_REF.
629         (is_gimple_lvalue): Don't test INDIRECT_REF directly.
630         * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
631         rename to is_gimple_addressable.
632
633 2004-07-28  Alan Modra  <amodra@bigpond.net.au>
634
635         * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
636
637 2004-07-27  Richard Henderson  <rth@redhat.com>
638
639         * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
640         before rounding.
641
642 2004-07-27  Zack Weinberg  <zack@codesourcery.com>
643
644         * libgcc2.c: Change all conditionals testing
645         LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
646         * libgcc2.h: Likewise.
647         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
648         TYPE_PRECISION of float80_type to 80.
649         * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
650         of fpreg_type and float80_type to 80.
651         * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
652         * config/m68k/netbsd-elf.h:
653         Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
654         to evaluate to 80 whenever they would formerly have evaluated to 96.
655         * config/i386/sco5.h: Remove unnecessary redefinition of
656         LONG_DOUBLE_TYPE_SIZE.
657         * doc/rtl.texi: Clarify uses of XFmode and TFmode.
658         * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
659         XFmode, with a bitsize of 80.  Update commentary.
660         * config/ia64/ia64-modes.def: Likewise.
661         * config/m68k/m68k-modes.def: Likewise.
662
663 2004-07-27  Steven Bosscher  <stevenb@suse.de>
664
665         * cfgexpand.c (tree_expand_cfg): Fix comment.
666
667         * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
668         * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
669         Remove.
670         (prepare_function_start): Don't set rtx_equal_function_value_matters.
671         * integrate.c (copy_rtx_and_substitute): Don't test for it.
672         * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
673         Don't set rtx_equal_function_value_matters.  Don't register RTL hooks
674         here again.  Update leading comment.
675         * rtl.c (rtx_equal_function_value_matters): Remove.
676         (rtx_equal_p): Don't test for it.
677         * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
678         Likewise.
679
680         * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
681         * rtl.c (note_insn_name): Likewise.
682         * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
683         * final.c (final_scan_insn): Likewise.
684
685         * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
686         * passes.c (rest_of_handle_eh): Do it here.
687
688         * stmt.c (struct nesting): Remove struct nesting block member.
689         (struct stmt_status): Remove x_block_start_count field.
690         (current_block_start_count): Remove.
691
692 2004-07-27  Brian Booth  <bbooth@redhat.com>
693
694         * tree-optimize.c (register_one_dump_file): Update condition that uses
695         static_pass_number.
696         (dup_pass_1): Replace with...
697         (next_pass_1): This.
698         (NEXT_PASS): Call next_pass_1.
699         (DUP_PASS): Remove.
700         (init_tree_optimization_passes): Remove uses of DUP_PASS.
701         (execute_one_pass): Update condition that uses
702         static_pass_number.
703         * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
704         integer.
705
706 2004-07-27  Nick Clifton  <nickc@redhat.com>
707
708         * config/m32r/m32r.c: Include integrate.h in order to get the
709         prototype for get_hard_reg_initial_val().
710
711         * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
712         and tidy up indentation.
713         (final_presence_set): Use absence_set instead, so that if there is
714         nothing in the "o" pipe the "s" pipe can be scheduled.
715
716 2004-07-27  Diego Novillo  <dnovillo@redhat.com>
717
718         * tree-ssa-alias.c (create_name_tags): Ignore pointers that
719         don't have PT_VARS nor PT_MALLOC set.
720         Clear name tag from pointers that have not been dereferenced.
721         (set_pt_anything, set_pt_malloc): Forward declare.
722         * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
723         not type compatibility when determining if a pointer can be
724         copy propagated.
725
726 2004-07-27  Richard Sandiford  <rsandifo@redhat.com>
727
728         * expr.h (canonicalize_condition, get_condition): Add an int argument.
729         * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
730         it to check whether the condition is still valid at the jump insn.
731         * ifcvt.c (noce_get_condition): Likewise.
732         (noce_get_alt_condition): Update call to canonicalize_condition.
733         * loop-iv.c (simplify_using_initial_values): Update call to
734         get_condition.  Remove FIXME.
735         (check_simple_exit): Update call to get_condition.
736         * loop-unswitch.c (may_unswitch_on): Likewise.
737         * loop.c (check_dbra_loop): Likewise.
738         (canonicalize_condition, get_condition): Add an argument to say whether
739         the condition must still be valid at INSN.
740         (get_condition_for_loop): Update call to get_condition.  Require that
741         the condition be valid at INSN.
742         * predict.c (estimate_probability): Update call to get_condition.
743         Remove unused earliest parameter.
744         (expected_value_to_br_prob): Update call to canonicalize_condition.
745
746 2004-07-26  Eric Christopher  <echristo@redhat.com>
747
748         * tree-dfa.c (add_referenced_var): Register initializers of global
749         variables.
750
751 2004-07-26  Paolo Bonzini  <bonzini@gnu.org>
752
753         * config/i386/i386.c (function_arg): Always treat 8-
754         and 16-byte wide vectors the same, even if MMX/SSE
755         are disabled.
756         (contains_128bit_aligned_vector_p): Add comment.
757
758 2004-07-26  J"orn Rennecke <joern.rennecke@superh.com>
759
760         * ra.h (enum node_type): Rename to:
761         (enum ra_node_type).
762         * ra-colorize.c: Likewise.
763
764 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
765
766         * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
767         after simplifying the jump.
768
769 2004-06-26  Richard Henderson  <rth@redhat.com>
770
771         * calls.c (combine_pending_stack_adjustment_and_call): Make
772         preferred_unit_stack_boundary argument unsigned.  Make
773         unadjusted_alignment unsigned.
774         (expand_call): Make preferred_stack_boundary and
775         preferred_unit_stack_boundary variables unsigned.
776         * function.c (assign_stack_local_1): Make alignment unsigned.
777         * function.h (struct function): Make stack_alignment_needed,
778         preferred_stack_boundary unsigned.
779         * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
780         (ix86_compute_frame_layout): Make stack_alignment_needed,
781         preferred_alignment variables unsigned.
782         * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
783
784 2004-07-26  Tom Tromey  <tromey@redhat.com>
785
786         * tree.h: Fix typo in comment.
787
788 2004-07-26  Daniel Jacobowitz  <dan@debian.org>
789
790         PR bootstrap/12804
791         * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
792         (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
793         (ggc_free): Remove incorrect freeing.
794         (sweep_pages): Advance PP for large pages.  Fix indentation.
795
796 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
797
798         PR rtl-optimization/16643
799         * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
800         * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
801         * basic-block.h (reorder_basic_blocks): Add a flags parameter.
802         * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
803         (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
804         * function.c (thread_prologue_and_epilogue_insns): Likewise.
805         * rtl.h (tracer): Add a flags parameter.
806         * tracer.c (tracer): Pass it to cfg_layout_initialise.
807         * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
808         (rest_of_handle_reorder_blocks): Update calls to tracer and
809         reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
810         (rest_of_handle_tracer): Pass 0 to tracer.
811         (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
812
813 2004-07-25  David Edelsohn  <edelsohn@gnu.org>
814
815         PR target/16239
816         * config/rs6000/rs6000.md (movdi_internal64): Further disparage
817         f->f.
818
819 2004-07-24  Nathan Sidwell  <nathan@codesourcery.com>
820
821         * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
822         (BINFO_BASE_ACCESS): Adjust.
823         (BINFO_BASE_ACCESS_APPEND): New.
824         (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
825         * dbxout.c (dbxout_type): Adjust binfo access accessing.
826         * dwarf2out.c (gen_member_die): Likewise.
827         * tree-dump.c (deque_and_dump): Likewise.
828
829 2004-07-26  Falk Hueffner  <falk@debian.org>
830
831         * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
832         costs.
833
834 2004-07-25  Roger Sayle  <roger@eyesopen.com>
835
836         * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
837         value off of the stack if TARGET_USE_FFREEP.
838
839 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
840
841         * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
842         * gengtype-yacc.y: Likewise.  Replace free() with XDELETE ().
843         * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
844         check on invocation of XRESIZEVEC ().
845
846 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
847
848         * c-common.c (disable_builtin_function): Rename variable n to
849         new_disabled_builtin.
850         * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
851         Rename local variable old to old_decl.
852         * gensupport.c (shift_output_template): Rename parameter old to src.
853         * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
854         old_rtx and newx to new_rtx.
855
856 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
857
858         * Makefile.in (C_PRAGMA_H): New variable to track dependencies
859         of c-pragma.h.
860         * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
861         enum cpp_ttype.
862         * c-lex.c: Likewise.
863
864 2004-07-25  Roger Sayle  <roger@eyesopen.com>
865
866         * fold-const.c (constant_boolean_node): Make extern.
867         (make_range): Wrap long lines.
868         (fold_cond_expr_with_comparison): Remove unnecessary call to
869         pedantic_non_lvalue.  Add missing calls to fold_convert.
870         (fold_truthop): Add missing calls to fold_convert.
871         (fold): Likewise.
872         * tree.h (constant_boolean_node): Add prototype here.
873         * builtins.c (expand_builtin_strncmp): Add missing calls to
874         fold_convert.
875         * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
876         Call fold_convert and constant_boolean_node to correct types.
877         * tree-ssa-forwprop.c (substitute_single_use_vars): Add
878         missing call to fold_convert to correct types.
879
880 2004-07-26  Niall Douglas  <s_fsfeurope2@nedprod.com>
881             Brian Ryner  <bryner@brianryner.com>
882
883         PR c++/9283
884         PR c++/15000
885         * c-common.c (c_common_attribute_table): Allow
886         handle_visibility_attribute to be called for types.
887         (handle_visibility_attribute) When given a type, set the visibility
888         bits on the TYPE_NAME.  When given a decl, don't set no_add_attrs
889         so that we can check later whether the attribute was present. Added
890         warning if attribute applied to non class type.
891         * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
892         decls and checking that they are consistent.
893         * common.opt: Added -fvisibility.
894         * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
895         * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
896         * flags.h, tree.h: Added assorted support defines for overall patch
897         * opts.c: Added parsing support for -fvisibility.
898         * tree.c (build_decl): Set visibility for all decls to be whatever
899         is in force at that time.
900         * varasm.c (default_binds_local_p_1): Reworked logic determining
901         when to make a symbol locally bound.
902         * doc/invoke.texi: Added documentation for -fvisibility and
903         -fvisibility-inlines-hidden.
904
905 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
906
907         * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
908         * c-common.c: Add missing casts from void * to other types.
909         * c-decl.c: Likewise.
910         * c-format.c: Likewise.
911         * c-lex.c: Likewise.
912         * c-pragma.c: Likewise.
913         * c-typeck.c: Likewise.
914         * defaults.h: Likewise.
915         * genconstants.c: Likewise.
916         * gengtype-lex.l: Likewise.
917         * genmodes.c: Likewise.
918         * read-rtl.c: Likewise.
919         * rtl.c: Likewise.
920
921 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
922
923         * bitmap.c: Use type-safe memory allocation macros from libiberty.
924         * c-common.c: Likewise.
925         * c-decl.c: Likewise.
926         * c-lang.c: Likewise.
927         * c-lex.c: Likewise.
928         * c-opts.c: Likewise.
929         * c-parse.in: Likewise.
930         * c-typeck.c: Likewise.
931         * genconditions.c: Likewise.
932         * gengtype-lex.l: Likewise.
933         * gengtype-yacc.y: Likewise.
934         * gengtype.c: Likewise.
935         * genmodes.c: Likewise.
936         * gensupport.c: Likewise.
937         * read-rtl.c: Likewise.
938         * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
939         htab_find_slot().
940
941 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
942
943         * c-decl.c (groktypename, groktypename_in_param_context): Rename
944         variable typename to type_name.
945         * c-lex.c (interpret_float): Likewise.
946
947 2004-07-25  Roger Sayle  <roger@eyesopen.com>
948
949         * convert.c (convert_to_real, convert_to_integer,
950         convert_to_complex): Replace calls to build with calls to buildN.
951         * coverage.c (tree_coverage_counter_ref): Likewise.
952         * dojump.c (do_jump): Likewise.
953         * dwarf2out.c (loc_descriptor_from_tree): Likewise.
954         * emit-rtl.c (component_ref_for_mem_expr,
955         set_mem_attributes_minus_bitpos): Likewise.
956         * explow.c (update_nonlocal_goto_save_area): Likewise.
957         * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
958         expand_mult_add): Likewise.
959         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
960         store_constructor, get_inner_reference, expand_expr_real_1,
961         try_casesi, try_tablejump): Likewise.
962         * function.c (expand_function_start): Likewise.
963         * stmt.c (emit_case_bit_tests, expand_end_case_type,
964         node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
965         * stor-layout.c (place_union_field, layout_type): Likewise.
966         * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
967         * varasm.c (copy_constant): Likewise.
968
969 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
970
971         * c-common.c: Rename all identifiers named `new'.
972         * c-decl.c: Likewise.
973         * gensupport.c: Likewise.
974         * simplify-rtx.c: Likewise.
975         * c-common.c (disable_builtin_function): Replace a call to xmalloc()
976         with XNEW().
977         * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
978         with XNEWVEC().
979
980 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
981
982         PR c/15360
983         * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
984         declarations until after calling pushdecl.
985         (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
986         "extern" and not on whether the declaration is initialized.
987
988 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
989
990         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
991         (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
992         * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
993         "cpplib.h", "c-pragma.h", "c-common.h".
994         (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
995         (solaris_register_pragmas): New functions.
996         * config/sol2-protos.h: New file.
997         * config/sol2.c: New file.
998         * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
999         (REGISTER_TARGET_PRAGMAS): New macros.
1000         (solaris_pending_aligns, solaris_pending_inits)
1001         (solaris_pending_finis): New variables.
1002         * config/t-sol2 (sol2-c.o): Update dependencies.
1003         (sol2.o): New rule.
1004         * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
1005         SUBTARGET_INSERT_ATTRIBUTES.
1006         (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
1007         * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
1008         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
1009         * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
1010         * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
1011         * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
1012         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
1013         * config/sparc/sparc.c (sparc_attribute_table): New.
1014         (TARGET_INSERT_ATTRIBUTES): Define in terms of
1015         SUBTARGET_INSERT_ATTRIBUTES.
1016         (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
1017         is defined.
1018         * doc/extend.texi (Solaris Pragmas): New section.
1019
1020 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1021
1022         * c-common.c: Rename all identifiers named `class' to `cl'.
1023         * c-common.h: Likewise.
1024         * c-parse.in: Likewise.
1025         * c-typeck.c: Likewise.
1026         * genmodes.c: Likewise.
1027         * real.c: Likewise.
1028         * real.h: Likewise.
1029         * recog.c: Likewise.
1030         * recog.h: Likewise.
1031         * regrename.c: Likewise.
1032         * tree.h: Likewise.
1033         * c-common.c (builtin_function_2): Change type of 5th parameter from
1034         int to enum built_in_function. Change type of 8th parameter from int
1035         to bool.
1036         * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
1037         with GGC_CNEW().
1038         * c-typeck.c (convert_arguments): Change type of formal_prec from
1039         int to unsigned int.
1040         * genmodes.c (blank_mode): Make a few negative constants unsigned.
1041         (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
1042         emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
1043         emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
1044         emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
1045         iterator to for_all_modes () instead of an enum because enums can't
1046         be incremented in C++.
1047
1048
1049 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
1050
1051         * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
1052         hard registers.
1053
1054 2004-07-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1055
1056         * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
1057         Handle ARRAY_RANGE_REF like ARRAY_REF.
1058
1059 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
1060
1061         * c-typeck.c (digest_init): Don't allow arrays of signed or
1062         unsigned variants of wchar_t to be initialized by wide string
1063         constants.  Do allow arrays of enumerated types compatible with
1064         wchar_t to be initialized by wide string constants.  Refine tests
1065         distinguishing wide and narrow strings and arrays.  Give specific
1066         error for arrays of other integer types initialized by string
1067         constants.
1068         (output_init_element, process_init_element): Check for
1069         INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
1070         initializing with string constants.
1071
1072 2004-07-25  Richard Henderson  <rth@redhat.com>
1073
1074         * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
1075         on the RESULT_DECL.
1076         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
1077         * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
1078         DECL_IGNORED_P to new decl.
1079
1080 2004-07-24  Zack Weinberg  <zack@codesourcery.com>
1081
1082         * config/ia64/ia64.c (general_xfmode_operand)
1083         (destination_xfmode_operand): Delete.
1084         * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
1085         * config/ia64/ia64.md (*movxf_internal): Use general_operand
1086         and destination_operand.
1087
1088 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
1089
1090         * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
1091         (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
1092
1093 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
1094             Zack Weinberg  <zack@codesourcery.com
1095
1096         PR 16684
1097         * c-decl.c (diagnose_mismatched_decls): Don't issue a
1098         redundant-declaration warning the first time a builtin is
1099         declared explicitly.
1100
1101 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1102
1103         * tree.h (staticp): Change return type to bool.
1104
1105 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1106
1107         * c-common.c (c_staticp): Last episode of the staticp saga.
1108
1109 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1110
1111         * c-common.h (c_staticp): Change return type from int to bool.
1112         * tree.c (staticp): Likewise.
1113         * langhooks.h (staticp): Likewise.
1114
1115 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1116
1117         * langhooks-def.h (lhd_staticp): Change return type from int to
1118         bool in prototype to match definition.
1119
1120 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1121
1122         * system.h (bool, true, false): Don't redefine as preprocessor macros
1123         in C++.
1124
1125 2004-07-24  Roger Sayle  <roger@eyesopen.com>
1126
1127         * expmed.c (init_expmed): A signed modulus by a power of two is
1128         considered cheap if its less than or equal to four instructions.
1129
1130 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1131
1132         * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
1133         GGC_CNEWVAR): New macros.
1134
1135 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1136
1137         * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
1138         lists.
1139         * c-decl.c: Likewise.
1140         * c-format.c: Likewise.
1141         * c-lex.c: Likewise.
1142         * c-opts.c: Likewise.
1143         * c-pragma.c: Likewise.
1144         * c-typeck.c: Likewise.
1145         * gencheck.c: Likewise.
1146         * genconditions.c: Likewise.
1147         * genconfig.c: Likewise.
1148         * genflags.c: Likewise.
1149         * gengtype.c: Likewise.
1150         * gensupport.c: Likewise.
1151         * ggc-none.c: Likewise.
1152         * langhooks.c: Likewise.
1153         * statistics.h: Likewise.
1154         * stub-objc.c: Likewise.
1155         * java/decl.c: Likewise.
1156
1157 2004-07-24  Roman Zippel  <zippel@linux-m68k.org>
1158
1159         * config/m68k/m68k.c (output_scc_di): Fix coding style.
1160         (symbolic_operand): Fix prototype.
1161         * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
1162         * config/m68k/m68k.md: Add constants for registers a0 and sp and
1163         use them, change from the "{...}" syntax to the simpler {...}
1164         syntax.
1165         (*cfv4_extendqisi2): Fix destination predicate.
1166         * config/m68k/m68k-protos.h: Remove various declarations also
1167         generated via PREDICATE_CODES.
1168
1169 2004-07-23  Mike Stump  <mrs@apple.com>
1170
1171         * c-typeck.c (convert_for_assignment): Tightened up pointer
1172         converstions that differ in signedness.
1173
1174 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
1175
1176         * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
1177
1178 2004-07-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1179
1180         * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
1181         * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
1182
1183         * gimplify.c (gimplify_compound_lval): Check for no handled
1184         operations, rather than checking for explicit list of nodes.
1185         (is_gimple_addr_expr_arg_or_indirect): New function.
1186         (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
1187         redundant setting of TREE_INVARIANT.
1188         (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
1189         * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
1190
1191 2004-07-23  Diego Novillo  <dnovillo@redhat.com>
1192
1193         PR tree-optimization/16688
1194         PR tree-optimization/16689
1195         * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
1196         unnecessary initialization of 'tag'.
1197         (get_tmt_for): Check that the new type tag has the same alias
1198         set as the pointed-to type.
1199         (group_aliases): Only regular variables need to be removed
1200         from the alias set of a name tag.
1201         * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
1202         propagation if the two types are not compatible.
1203         (merge_alias_info): Rename from replace_ssa_names_ann.
1204         Add more checking.
1205         (replace_exp_1): If both arguments are SSA_NAMEs, check that
1206         the propagation can be done.
1207         Only call merge_alias_info on pointers.
1208         (propagate_value): Likewise.
1209         * tree-ssa-copyrename.c: Include langhooks.h.
1210         (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
1211         to do the merging.
1212         Do not coalesce variables with incompatible types.
1213         (rename_ssa_copies): Call replace_ssa_name_symbol.
1214         * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
1215         the same type as the underlying _DECL.
1216         * tree-ssanames.c (replace_ssa_name_symbol): New function.
1217         * tree.h (replace_ssa_name_symbol): Declare.
1218
1219 2004-07-23  Richard Henderson  <rth@redhat.com>
1220
1221         PR c++/16277
1222         * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
1223         unshare it properly.
1224         (gimplify_modify_expr_rhs): Push assignment from a conditional into
1225         the conditional for all non-register types.
1226
1227 2004-07-23  Richard Henderson  <rth@redhat.com>
1228
1229         * expr.c (expand_expr_real_1): Don't handle non-local variables.
1230         * expr.h (fix_lexical_addr): Remove.
1231         * function.c (NEED_SEPARATE_AP): Remove.
1232         (fix_lexical_addr): Remove.
1233         * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
1234         not null decl_function_context.
1235         (create_alias_vars): Likewise.
1236         * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
1237         (simple_goto_p): Likewise.
1238         * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
1239         * tree-ssa-ccp.c (get_default_value): Likewise.
1240         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
1241         * tree.c (needs_to_live_in_memory): Likewise.
1242         * tree-flow-inline.h (may_be_aliased): Move...
1243         * tree-ssa-alias.c (may_be_aliased): ... here.  Enhance check for
1244         when TREE_STATIC variables may be addressable.
1245
1246 2004-07-24  Jakub Jelinek  <jakub@redhat.com>
1247
1248         * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
1249
1250 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
1251
1252         * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
1253         bitmap contents if GENERATOR_FILE is defined.
1254         * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
1255         ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
1256
1257 2004-07-23  Joseph S. Myers  <jsm@polyomino.org.uk>
1258
1259         * c-decl.c (start_function): Form composite type of function types
1260         rather than copying type from previous prototype declaration.
1261
1262 2004-07-23  Janis Johnson  <janis187@us.ibm.com>
1263
1264         * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
1265         the const qualifier for the second argument in the C++ functions.
1266
1267         * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
1268         specific pointer types.
1269
1270         * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
1271         vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
1272         for vector bool and/or vector pixel, add C++ and C missing support.
1273         (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
1274         vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
1275         vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
1276         vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
1277         vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
1278         missing C++ and C support for vector bool and/or vector pixel.
1279         (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
1280         vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
1281         vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
1282         vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
1283         vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
1284         C++ and C types used for vector bool and/or vector pixel.
1285         (vec_st, vec_stl): Add C++ support for vector pixel.
1286         (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
1287         (vec_all_ne): Add C++ support for vector pixel.
1288
1289         * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
1290         (vec_vmulesb): Add missing C++ function.
1291         (vec_perm): Fix type of third argument in C++ function.
1292         (vec_vsum4shs): Fix C++ function name.
1293         (vec_any_ge): Remove C++ functions for unsupported arg combinations.
1294         (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
1295         argument passed to the error handler in C macro.
1296         (vec_nmsub): Remove extra parens around argument names in C macro.
1297         (vec_packpx): Add missing parens in C macro.
1298
1299 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
1300
1301         * machmode.def: Remove vector modes.
1302         * config/alpha/alpha-modes.def: Add supported vector modes.
1303         * config/arm/arm-modes.def: Likewise.
1304         * config/frv/frv-modes.def: Likewise.
1305         * config/i386/i386-modes.def: Likewise.
1306         * config/rs6000/rs6000-modes.def: Likewise.
1307         * config/sh/sh-modes.def: Likewise.
1308
1309 2004-07-23  Matthias Klose  <doko@debian.org>
1310
1311         * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
1312         * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
1313         * config.h: Regenerate.
1314         * configure: Likewise.
1315
1316 2004-07-22  Mark Mitchell  <mark@codesourcery.com>
1317
1318         * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
1319         generated SYMBOL_REFs for labels.
1320         * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
1321         Change prototype.
1322         (machopic_stub_name): Remove.
1323         (machopic_indirection_name): New function.
1324         (machopic_mcount_stub_name): Likewise.
1325         (machopic_classify_name): Remove.
1326         (machopic_function_base_sym): New function.
1327         (machpoic_classify_symbol): Likewise.
1328         (machopic_classify_ident): Remove.
1329         (machopic_define_ident): Likewise.
1330         (machopic_define_name): Likewise.
1331         (machopic_name_defined_p): Likewise.
1332         (machopic_ident_defined_p): Likewise.
1333         (darwin_strip_name_encoding): Likewise.
1334         (machopic_define_symbol): New function.
1335         * config/darwin.c (hashtab.h): Include.
1336         (machopic_defined_list): Remove.
1337         (machopic_classify_ident): Likewise.
1338         (machopic_classify_name): Likewise.
1339         (machopic_ident_defined_p): Likewise.
1340         (machopic_define_ident): Likewise.
1341         (machopic_define_name): Likewise.
1342         (machopic_symbol_defined_p): New function.
1343         (machopic_classify_symbol): Likewise.
1344         (machopic_data_defined_p): Use machopic_classify_symbol.
1345         (machopic_define_symbol): New function.
1346         (machopic_function_base_sym): New function.
1347         (machopic_non_lazy_pointers): Remove.
1348         (machopic_non_lazy_ptr_name): Likewise.
1349         (machopic_stubs): Likewise.
1350         (machopic_stub_name): Likewise.
1351         (NON_LAZY_POINTER_SUFFIX): New macro.
1352         (STUB_SUFFIX): Likewise.
1353         (machopic_indirection): New structure.
1354         (machopic_indirections): New variable.
1355         (machopic_indirection_hash): New function.
1356         (machopic_indirection_eq): Likewise.
1357         (machopic_indirection_name): Likewise.
1358         (machopic_mcount_stub_name): New function.
1359         (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
1360         hash table.
1361         (machopic_indirect_data_reference): Rework to use new functions.
1362         (machopic_indirect_call_target): Likewise.
1363         (machopic_legitimize_pic_address): Likewise.
1364         (machopic_output_indirection): New function.
1365         (machopic_finish): Use it.
1366         (machopic_operand_p): Rework to use new functions.
1367         (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
1368         (darwin_strip_name_encoding): Remove.
1369         (update_non_lazy_ptrs): Remove.
1370         (update_stubs): Likewise.
1371         (darwin_non_lazy_pcrel): Use new functions.
1372         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1373         (ASM_OUTPUT_LABELREF): Likewise.
1374         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
1375         (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
1376         (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
1377         (TARGET_STRIP_NAME_ENCODING): Do not use
1378         darwin_strip_name_encoding.
1379         (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
1380         darwin_strip_name_encoding.
1381         * config/i386/darwin.h (FUNCTION_PROFILER): Use
1382         machopic_mcount_stub_name.
1383         * config/i386/i386.c (x86_output_mi_thunk): Use
1384         machopic_indirection_name, not machopic_stub_name.
1385         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
1386         machopic_function_base_sym.
1387         (print_operand): Use machopic_classify_symbol.
1388         (rs6000_emit_prologue): Use machopic_function_base_sym.
1389         (output_profile_hook): Do not use machopic_stub_name.
1390         (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
1391
1392 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
1393
1394         PR c/7284
1395         * fold-const.c (extract_muldiv_1): Do not treat signed left shift
1396         as multiplication.
1397
1398 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
1399
1400         * doc/implement-c.texi: New file.
1401         * doc/extend.texi (C Implementation): Move to there.
1402         * doc/gcc.texi: Include implement-c.texi.
1403         * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
1404
1405 2004-07-22  Jason Merrill  <jason@redhat.com>
1406
1407         * integrate.c (copy_decl_for_inlining): Remove invisible reference
1408         handling.
1409         * tree-inline.c (setup_one_parameter): Likewise.
1410
1411 2004-07-22  Brian Booth  <bbooth@redhat.com>
1412
1413         * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
1414         (substitute_and_fold): Propigate into VUSE operands when possible.
1415         (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
1416         (cp_lattice_meet): Handle merging of latticevalues when
1417         UNKNOWN_VAL is present.
1418         (visit_stmt): Visit assignments with V_MUST_DEFs.
1419         (visit_assignment): Gather ccp information for V_MUST_DEF operands.
1420         (ccp_fold): Deal with RHS' that are constant and virtual.
1421         (evaluate_stmt): Handle UNKNOWN_VAL likely values.
1422         (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
1423         (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
1424         V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
1425         computing immediate uses.
1426         (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
1427         transition.
1428         (replace_vuse_in): New function.
1429         (likely_value): Add check of vuse operands.
1430         (get_default_value): Set the default value of virtually defined
1431         variables to UKNOWN_VAL instead of VARYING.
1432
1433 2004-07-22  Richard Henderson  <rth@redhat.com>
1434
1435         * expr.c (emit_push_insn): Don't use set_mem_attributes.
1436
1437 2004-07-22  Richard Henderson  <rth@redhat.com>
1438
1439         * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
1440         variables due to conditional compilation.
1441
1442 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
1443
1444         * tree-into-ssa.c (set_livein_block): Fix typo in comment.
1445         (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
1446         Release SSA names that have been re-renamed.
1447         * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
1448         variable.
1449         * tree-ssa-alias.c (init_alias_info): If aliases have been
1450         computed before, clear existing alias information.
1451         (create_name_tags): Do no fixup PT_ANYTHING pointers.
1452         If the new name tag for a pointer is different than the one it
1453         had before, mark the old tag for renaming.
1454         (replace_may_alias): New function.
1455         (group_aliases): Call it.
1456         (setup_pointers_and_addressables): Always call get_tmt_for.
1457         (maybe_create_global_var): Don't create .GLOBAL_VAR more than
1458         once.
1459         (set_pt_anything): New local function.
1460         (set_pt_malloc): New local function.
1461         (merge_pointed_to_info): Don't merge pointed-to variables from
1462         the original pointer if the destination is pointing to an
1463         unknown location.
1464         (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
1465         (add_pointed_to_var): Do not add a variable to the points-to
1466         set if the pointer is already pointing to anywhere.
1467         (collect_points_to_info_r): If the defining statement is a PHI
1468         node, only merge pointed-to information if the argument has
1469         already been visited.
1470         (get_tmt_for): Only create a new tag if the pointer didn't
1471         have one already.
1472         (dump_alias_info): Emit more information.
1473         (dump_points_to_info_for): Likewise.
1474         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
1475         try to get the annotation of an SSA_NAME.
1476         * tree-ssa-operands.c (add_stmt_operand): Only check for empty
1477         alias sets when checking is enabled.
1478         * tree-ssa-pre.c (need_eh_cleanup): New local variable.
1479         (eliminate): Mark basic blocks that will need
1480         EH information cleaned up.
1481         (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
1482         predecessor.
1483         Initialize need_eh_cleanup.
1484         (fini_pre): Call tree_purge_all_dead_eh_edges and
1485         cleanup_tree_cfg if needed.
1486         Free need_eh_cleanup.
1487         * tree-ssa.c (verify_ssa_name): New function.
1488         (verify_def): Call it.
1489         Re-arrange to avoid printing too many error messages.
1490         (verify_use): Likewise.
1491         (verify_phi_args): Likewise.
1492         (verify_flow_insensitive_alias_info): New function.
1493         (verify_flow_sensitive_alias_info): New function.
1494         (verify_alias_info): New function.
1495         (verify_ssa): Call verify_alias_info.
1496         Clear TREE_VISITED on all the SSA_NAMEs before scanning the
1497         program.
1498         Re-arrange to avoid printing too many error messages.
1499         * tree-ssanames.c (make_ssa_name): Clear
1500         SSA_NAME_IN_FREE_LIST.
1501         (release_ssa_name): Never release a default definition.
1502         (release_defs): New function.
1503         * tree.h: Declare it.
1504         * tree-ssa-dce.c (remove_dead_stmt): Call it.
1505
1506 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
1507
1508         * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
1509         If true, do a depth-first search.  Do a breadht-first search,
1510         otherwise.
1511         (walk_use_def_chains): Add new argument IS_DFS.
1512         Update all users.
1513         * tree-flow.h (walk_use_def_chains): Update prototype.
1514
1515 2004-07-22  Hans-Peter Nilsson  <hp@axis.com>
1516
1517         * config/cris/cris.md: Tweak formatting.
1518         (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
1519         (mover2side, moverside, movemside, movei, op3, andu): Replace
1520         live define_peephole:s with define_peephole2 near-equivalents.
1521         Delete the rest.
1522         ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap".  Match all
1523         word-size modes.
1524         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
1525         Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
1526         "*mov_sidesi_mem" respectively.
1527
1528 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
1529
1530         * tree-cfg.c (gimplify_val): Move from tree-complex.c.
1531         (gimplify_build1): Move from tree-complex.c do_unop.
1532         (gimplify_build2): Move from tree-complex.c do_binop.
1533         (gimplify_build3): New.
1534         * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
1535         Adjust throughout to call the functions above.
1536         * tree-flow.h: Declare the functions above.
1537         * tree-nested.c (gimplify_val): Rename to...
1538         (tsi_gimplify_val): ... this.
1539
1540         * Makefile.in (tree_complex.o): Update dependencies.
1541         (stor-layout.o): Depend on regs.h.
1542         * c-common.c (handle_vector_size_attribute): Update for
1543         vector types without corresponding vector modes.
1544         * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
1545         a corresponding vector mode is not available.
1546         * print-tree.c (print_node): Print nunits for vector types
1547         * regclass.c (have_regs_of_mode): New.
1548         (init_reg_sets_1): Initialize it and use it instead
1549         of allocatable_regs_of_mode.
1550         * regs.h (have_regs_of_mode): Declare it.
1551         * stor-layout.c (layout_type): Pick a mode for vector types.
1552         * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
1553         build_replicated_const, do_unop, do_binop, do_plus_minus,
1554         do_negate, expand_vector_piecewise, expand_vector_parallel,
1555         expand_vector_addition, expand_vector_operations_1,
1556         expand_vector_operations, tree_lower_operations,
1557         pass_lower_vector_ssa, pass_pre_expand): New.
1558         (expand_complex_operations, pass_lower_complex): Remove.
1559         * tree-optimize.c (init_tree_optimization_passes): Adjust
1560         pass ordering for changes in tree-complex.c.
1561         * tree-pass.h: Declare new passes.
1562         * tree.c (finish_vector_type): Remove.
1563         (make_vector_type): New.
1564         (build_vector_type_for_mode, build_vector_type): Rewritten.
1565         * tree.def (VECTOR_TYPE): Document where the number of
1566         subparts is stored.
1567         * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
1568         (make_vector): Remove declaration.
1569
1570 2004-07-21  Richard Henderson  <rth@redhat.com>
1571
1572         * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
1573         TREE_THIS_VOLATILE, may_aliases, or optimization level.
1574         (remove_useless_vars): Dump debugging info.
1575         (expand_used_vars): Move ...
1576         * cfgexpand.c (expand_used_vars): ... here.  Make static.
1577         * tree-flow-inline.h (set_is_used): New.
1578         (set_default_def): Use get_var_ann.
1579         * tree-flow.h: Update decls.
1580         * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
1581         (create_ssa_var_map): Use it.
1582         * tree-ssa.c (set_is_used): Remove.
1583
1584 2004-07-22  Ben Elliston  <bje@au.ibm.com>
1585
1586         * gdbinit.in: Set a breakpoint on internal_error.
1587
1588 2004-07-21  Richard Henderson  <rth@redhat.com>
1589
1590         * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
1591         to create a new basic block.
1592
1593 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
1594
1595         PR c/15052
1596         * c-decl.c (grokdeclarator): Only pedwarn for qualified void
1597         return type on function definitions.  Move other warnings for
1598         qualified return type to -Wreturn-type.  Do not condition any such
1599         warnings on -pedantic.  Update comments.
1600         (start_function): Only copy function type from previous prototype
1601         declaration if return types are compatible.
1602         * c-typeck.c (function_types_compatible_p): Don't condition
1603         warning for incompatibility of volatile qualifiers on the return
1604         type on -pedantic.  Update comment.
1605         * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
1606
1607 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
1608
1609         * c-typeck.c (set_init_index): Require designator to be of integer
1610         type.
1611
1612 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
1613
1614         PR c/11250
1615         * c-parse.in (init): Change to exprtype.
1616         (primary): Set original_code for STRING to STRING_CST.
1617         Call maybe_warn_string_init for compound literals.
1618         (initdcl, notype_initdcl): Call maybe_warn_string_init.
1619         (initval): Update.
1620         * c-tree.h (maybe_warn_string_init): New.
1621         (pop_init_level, process_init_element): Use struct c_expr.
1622         (struct c_expr): Update comment.
1623         * c-typeck.c (maybe_warn_string_init): New function.
1624         (digest_init): Call it.  Additional parameter strict_string.  All
1625         callers changed.
1626         (output_init_element): Likewise.
1627         (struct constructor_stack): Use struct c_expr for
1628         replacement_value.
1629         (really_start_incremental_init, push_init_level): Update.
1630         (pop_init_level): Update.  Return struct c_expr.
1631         (process_init_level): Update.  Take struct c_expr argument.
1632
1633 2004-07-21  David S. Miller  <davem@nuts.davemloft.net>
1634
1635         * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
1636         commit.
1637
1638 2004-07-21  Eric Christopher  <echristo@redhat.com>
1639
1640         * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
1641         removal.
1642         * c-decl.c (pop_scope): Ditto.
1643         * calls.c (expand_call): Remove call to current_nesting_level,
1644         update comment accordingly. Remove calls to expand_start_target_temps
1645         and expand_end_target_temps.
1646         * cfgexpand.c (construct_init_block): Remove call to
1647         expand_start_bindings_and_block.
1648         (construct_exit_block): Remove call to expand_end_bindings.
1649         * expr.c (safe_from_p): Remove BIND_EXPR handling.
1650         (expand_expr_real_1): Ditto. Fix formatting.
1651         (expand_vars): Delete.
1652         * stmt.c (POPSTACK): Remove block_stack.
1653         (stmt_status): Remove x_block_stack.
1654         (block_stack): Delete.
1655         (expand_start_bindings_and_block): Ditto.
1656         (expand_start_target_temps): Ditto.
1657         (expand_end_target_temps): Ditto.
1658         (current_nesting_level): Ditto.
1659         (warn_about_unused_variables): Ditto.
1660         (expand_end_bindings): Ditto.
1661         * tree.h: Remove declarations for above.
1662
1663 2004-07-21  Steven Bosscher  <stevenb@suse.de>
1664
1665         * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
1666         * rtl.c (note_insn_name): Likewise.
1667         * print-rtl.c (print_rtx): Don't print it.
1668         * cfgrtl.h (can_delete_note_p): Don't handle it.
1669         (rtl_delete_block): Likewise.
1670         * passes.c (rest_of_handle_guess_branch_prob): Remove.
1671         (rest_of_compilation): Don't call it.
1672         * predict.c (process_note_predictions, process_note_prediction,
1673         note_prediction_to_br_prob): Remove.
1674         * basic-block.c (note_prediction_to_br_prob): Remove prototype.
1675         * stmt.c (return_prediction): Remove.
1676         (expand_value_return): Don't call it.  Don't add prediction
1677         notes for return statements.
1678
1679 2004-07-21  Josef Zlomek  <zlomekj@suse.cz>
1680
1681         * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
1682         once.
1683
1684 2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
1685
1686         * c-common.c (vector_types_convertible_p): Use vector types'
1687         TYPE_SIZE and TREE_TYPE instead of their mode.
1688         * convert.c (convert_to_integer): Likewise.
1689         (convert_to_vector): Likewise.
1690         * fold-const.c (fold_convert): Likewise.
1691         * varasm.c (output_constant): Likewise.
1692         * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
1693         Allow a VECTOR_TYPE initializer to be made of several vectors.
1694         For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
1695         of cleared and need_to_clear, and use fold_convert.
1696         * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
1697         integer vectors.
1698
1699 2004-07-20  Richard Henderson  <rth@redhat.com>
1700
1701         * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
1702         (expand_gimple_basic_block): out from here.  Renamed from expand_block.
1703
1704 2004-07-20  David S. Miller  <davem@nuts.davemloft.net>
1705
1706         * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
1707         enormous cost if not TARGET_HARD_MUL.
1708
1709 2004-07-20  Andrew Pinski  <apinski@apple.com>
1710
1711         PR target/16557
1712         * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
1713         (ASM_SPEC): here.
1714
1715 2004-07-21  Paul brook  <paul@codesourcery.com>
1716
1717         * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
1718
1719 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1720
1721         * fold-const.c (operand_equal_p): Temporarily support NULL args.
1722         (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
1723         (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
1724
1725 2004-07-20  Zack Weinberg  <zack@codesourcery.com>
1726
1727         * rtl.h (plus_constant): Delete.
1728         (plus_constant_wide): Rename to plus_constant.
1729         (plus_constant_for_output_wide): Delete vestigial prototype.
1730         (GEN_INT): Remove unnecessary cast.
1731         * tree.h (build_int_2, size_int_type): Delete.
1732         (build_int_2_wide): Rename to build_int_2.
1733         (size_int_wide): Rename to size_int_kind.
1734         (size_int_type_wide): Rename to size_int_type.
1735         (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
1736         Remove unnecessary cast.
1737         * tree.c (build_int_2_wide): Rename build_int_2; update comment.
1738         * explow.c (plus_constant_wide): Rename plus_constant; update comment.
1739         * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
1740         (size_int_type_wide): Rename size_int_type.
1741         (int_const_binop): Use size_int_type.
1742         * c-lex.c (interpret_integer): Use build_int_2.
1743         * final.c (split_double): Remove unnecessary casts.
1744         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
1745
1746 2004-07-20  Richard Henderson  <rth@redhat.com>
1747
1748         * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
1749         (gimplify_compound_lval): Use is_gimple_tmp_reg.
1750         * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
1751         (is_gimple_tmp_reg): New.
1752         * tree-gimple.h (is_gimple_tmp_reg): Declare.
1753
1754 2004-07-20  Richard Henderson  <rth@redhat.com>
1755
1756         * tree-pretty-print.c (dump_generic_node): Dump
1757         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
1758
1759 2004-07-20  Frank Ch. Eigler  <fche@redhat.com>
1760
1761         * tree-mudflap.c (mf_set_options_fndecl): New tree.
1762         (mudflap_init): Set it.
1763         (mudflap_register_call): Remove __mf_init call.
1764         (mudflap_finish_file): Emit call to __mf_init here.  Emit a call to
1765         to pass "-ignore-reads" option to libmudflap if needed.
1766
1767 2004-07-20  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
1768
1769         PR c++/14607
1770         * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
1771         (MAKE_DECL_ONE_ONLY): Undefine.
1772         * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
1773         readonly_data, one_only_data_section, forget_section): New prototypes.
1774         * pa.c (pa_init_machine_status, som_text_section_asm_op): New
1775         functions.
1776         (pa_select_section): Add one-only (COMDAT) support.
1777         * pa.h (struct machine_function): Define.
1778         * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
1779         (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
1780         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
1781         ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
1782         ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
1783         (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
1784         (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
1785         (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
1786         ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
1787         for EXTRA_SECTION_FUNCTIONS.
1788         * doc/install.texi: Update binutils requirements.
1789
1790 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
1791
1792         * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
1793         VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
1794         VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
1795         size_t.
1796         (struct VEC): Use unsigned for num and alloc.
1797         * vec.c (struct vec_prefix): Likewise.
1798         (vec_o_reserve): Adjust.
1799
1800         * dbxout.c (dbxout_type): Fix printf format.
1801
1802         * tree.h (binfo_member): Remove.
1803         * tree.c (binfo_member): Remove.
1804
1805 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
1806
1807         * tree.h: Include vec.h
1808         (DEF_VEC_P(tree)): New type.
1809         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
1810         (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
1811         (BINFO_LANG_SLOT): Remove.
1812         (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
1813         (struct tree_binfo): Turn base_binfos into a trailing
1814         VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
1815         (binfo_lang_slots): Remove.
1816         * tree.c (binfo_lang_slots): Remove.
1817         (make_tree_binfo_stat): Take a base binfo count, not a
1818         lang slot count.  Adjust.
1819         * Makefile.in (TREE_H): Add vec.h
1820         * alias.c (record_component_aliases): Adjust BINFO access.
1821         * dbxout.c (dbxout_type): Likewise.
1822         * dwarf2out.c (gen_member_die): Likewise.
1823         * sdbout.c (sdbout_one_type): Likewise.
1824         * tree-dump.c (deque_and_dump): Likewise.
1825         * config/i386/i386.c (classify_argument,
1826         contains_128bit_aligned_vector_p): Likewise.
1827         * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
1828         * doc/c-tree.texi (Classes): Update BINFO documentation.
1829
1830 2004-07-20  Steven Bosscher  <stevenb@suse.de>
1831
1832         * c-common.h (check_case_value): Remove prototype.
1833         (c_add_case_label): Adjust prototype.
1834         * c-common.c (check_case_value): Make static.
1835         (check_case_bounds): New function.
1836         (c_add_case_label): Use it.  Take new argument orig_type.
1837         * c-typeck.c (struct c_switch): New orig_type field.
1838         (c_start_case): Set it.
1839         (do_case): Pass it to c_add_case_label.
1840         * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
1841         cases from here.  Add the labels in reverse order.
1842         * stmt.c (struct case_node): Adjust comment.  Remove balance field.
1843         (add_case_node): Return nothing, don't check for duplicate cases.
1844         Insert new case nodes in a list, not in an AVL tree.
1845         (expand_end_case_type): Don't turn a case tree into a case list.
1846         (case_tree2list): Remove.
1847         * tree.h (add_case_node): Adjust prototype.
1848
1849 2004-07-19  Paolo Bonzini  <bonzini@gnu.org>
1850
1851         * genattr.c (struct range, struct function_unit,
1852         write_units, extend_range, init_range): Remove them.
1853         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
1854         Output "#define INSN_SCHEDULING" here.
1855         * genattrtab.c (struct range, struct function_unit_op,
1856         struct function_unit, struct dimension, enum operator,
1857         operate_exp, expand_units, simplify_knowing,
1858         encode_units_mask, simplify_by_exploding,
1859         find_and_mark_used_attributes, unmark_used_attributes,
1860         add_values_to_cover, increment_current_value,
1861         test_for_current_value, simplify_with_current_value,
1862         simplify_with_current_value_aux, gen_unit,
1863         write_unit_name, write_function_unit_info,
1864         write_complex_function, write_toplevel_expr,
1865         find_single_value, extend_range): Remove.
1866         (write_attr_get): Do not handle common_av->value
1867         being an FFS.
1868         (struct attr_desc): Remove func_units_p and blockage_p.
1869         (write_attr_valueq): Do not handle them.
1870         (find_attr): Do not clear them.
1871         (make_internal_attr): Do not initialize them.
1872         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
1873         * sched-vis.c (init_target_units, insn_print_units,
1874         init_block_visualization, print_block_visualization,
1875         visualize_scheduled_insns, visualize_no_unit,
1876         visualize_stall_cycles, visualize_alloc,
1877         visualize_free, target_units, get_visual_tbl_length,
1878         MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
1879         visual_tbl_line_length, visual_tbl, n_vis_no_unit,
1880         MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
1881         * haifa-sched.c (blockage_range, clear_units,
1882         schedule_unit, actual_hazard, potential_hazard,
1883         insn_unit, unit_last_insn, unit_tick,
1884         actual_hazard_this_instance, potential_hazard,
1885         schedule_unit, max_insn_queue_index_value): Remove.
1886         (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
1887         max_insn_queue_index.
1888         * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
1889         * doc/md.texi (Processor pipeline description): Remove
1890         references to old pipeline descriptions.
1891         (Automaton pipeline description): Merge with the above.
1892         (Old pipeline description, Comparison of the two descriptions):
1893         Remove.
1894
1895         * bt-load.c (migrate_btr_def): Remove references to
1896         use_pipeline_interface.
1897         * haifa-sched.c (insn_cost, schedule_insn,
1898         schedule_block, advance_one_cycle, sched_init,
1899         queue_to_ready, sched_finish): Likewise.
1900         * modulo-sched.c (sms_schedule, advance_one_cycle,
1901         ps_has_conflicts): Likewise.
1902         * sched-rgn.c (init_ready): Likewise.
1903         (debug_dependencies): Likewise, and remove an "if (1)".
1904         * target.h (use_dfa_pipeline_interface): Remove.
1905         * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1906         * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1907         * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1908         * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1909         * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1910         * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1911         * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1912         * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1913         * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1914         * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1915         * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1916         * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1917         * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1918         * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1919         * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1920         * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1921         * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1922         * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1923         * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
1924
1925 2004-07-19  Roger Sayle  <roger@eyesopen.com>
1926
1927         * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
1928
1929 2004-07-19  Jeff Law  <law@redhat.com>
1930
1931         * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
1932         (get_eq_expr_value): Use it.  Simplify slightly.
1933
1934 2004-07-19  Maciej W. Rozycki  <macro@linux-mips.org>
1935
1936         * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
1937         (umulsidi3_32bit_r4000): Likewise.
1938
1939 2004-07-19  Nathan Sidwell  <nathan@codesourcery.com>
1940
1941         * vec.h: Propagate location information properly.
1942         (VEC_T_iterate): Add result pointer parameter.
1943         (VEC_T_space): New.
1944         (VEC_T_reserve): Use it.
1945
1946 2004-07-19  Daniel Jacobowitz  <dan@debian.org>
1947
1948         * Makefile.in (c-format.o): Depend on c-format.h.
1949         * c-format.h: New file.
1950         (struct format_char_info): Add CHAIN member.
1951         * c-format.c: Move some types and constants to c-format.h.
1952         (format_type_error): Set to -1.
1953         (struct function_format_info): Use an int for format_type.
1954         (decode_format_type): Return an int.  Return format_type_error
1955         on error.
1956         (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
1957         (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
1958         (scan_char_table, time_char_table, monetary_char_table): Initialize
1959         CHAIN to NULL.
1960         (n_format_types): New variable.
1961         (check_format_info_main): Handle CHAIN in format_char_info.
1962         (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
1963         TARGET_N_FORMAT_TYPES.
1964         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
1965         (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
1966         * config/sol2-c.c: New file.
1967         * config/t-sol2: New file.
1968         * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
1969         * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
1970         TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
1971
1972         * doc/extend.texi (Target Format Checks): New section.
1973         (Function Attributes): Mention it.
1974         * doc/invoke.texi: Mention target format checks.
1975         * doc/sourcebuild.texi: Mention target format checks.
1976         * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
1977         TARGET_FORMAT_TYPES.
1978
1979 2004-07-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1980
1981         * config/s390/s390-protos.h (s390_return_address_offset): Prototype
1982         added.
1983         * config/s390/s390.c (regclass_map initializer): Register 35 added to
1984         ADDR_REGS.
1985         (load_multiple_operation, store_multiple_operation): Removed
1986         pointless sanity check.
1987         (s390_decompose_address): Added check for return_address_pointer_rtx.
1988         (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
1989         (s390_return_address_offset): New function.
1990         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
1991         (FRAME_REGNO_P): Added check for register 35.
1992         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
1993         REG_ALLOC_ORDER): Appended entry for register 35.
1994         (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
1995         (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
1996         (RETURN_ADDRESS_POINTER_REGNUM): New macro.
1997         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
1998         is eliminable using stack pointer or hard frame pointer.
1999         (REGISTER_NAMES): Added name for register 35.
2000         * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
2001         pointless sanity check.
2002
2003 2004-07-19  Roger Sayle  <roger@eyesopen.com>
2004
2005         * fold-const.c (tree_expr_nonzero_p): Add function prototype.
2006         (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
2007         fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
2008         (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
2009         of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
2010         (fold_relational_const): Tidy up handling of floating point
2011         comparisons by calling real_compare.  Remove tree_expr_nonzero_p
2012         transformation; fold_relational_const assumes constant operands.
2013
2014 2004-07-19  Gabriel Dos Reis  <gdr@integrable-solution.net>
2015
2016         * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
2017         directory.
2018
2019 2004-07-19  Joseph S. Myers  <jsm@polyomino.org.uk>
2020
2021         * c-tree.h (struct c_expr): Define.
2022         (C_SET_EXP_ORIGINAL_CODE): Remove.
2023         (parser_build_binary_op, build_compound_expr): Update prototypes.
2024         * c-parse.in (%union): Add exprtype.
2025         (FUNC_NAME): Mark as ttype.
2026         (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
2027         exprtype.
2028         (expr): Update.  Define directly in terms of expr_no_commas
2029         instead of using nonnull_exprlist.
2030         (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
2031         offsetof_member_designator, typespec_nonreserved_nonattr, init,
2032         initval, designator, component_declarator,
2033         component_notype_declarator, enumerator, array_declarator,
2034         condition, exexpr, switch_statement, stmt_nocomp, stmt,
2035         nonnull_asm_operands, ivar_declarator, receiver): Update.  Don't
2036         set C_EXP_ORIGINAL_CODE.  Use TREE_NO_WARNING for assignments
2037         where appropriate.
2038         * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
2039         * c-common.c (c_common_truthvalue_conversion): Don't check
2040         C_EXP_ORIGINAL_CODE.
2041         * c-typeck.c (parser_build_binary_op): Use c_expr structures.
2042         Don't use C_EXP_ORIGINAL_CODE.
2043         (default_conversion, default_function_array_conversion): Don't use
2044         C_EXP_ORIGINAL_CODE.  Preserve TREE_NO_WARNING.
2045         (internal_build_compound_expr): Merge into build_compound_expr.
2046         (build_compound_expr): Take two operands instead of a TREE_LIST.
2047         * objc/objc-act.c (get_super_receiver): Update calls to
2048         build_compound_expr.
2049
2050 2004-07-12  Paolo Bonzini  <bonzini@gnu.org>
2051
2052         * config/sh/sh.c (sh_use_dfa_interface): Remove.
2053         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
2054         hook_int_void_1.
2055         * config/sh/sh.md: Extract pipeline descriptions
2056         into separate files.
2057         * config/sh/sh1.md: New file, extracted from sh.md.
2058         * config/sh/sh4.md: New file, extracted from sh.md.
2059         * config/sh/shmedia.md: New file, extracted from sh.md
2060         and rewritten using new-style pipeline description.
2061
2062 2004-07-18  Zack Weinberg  <zack@codesourcery.com>
2063
2064         * config/pa/pa.md: Delete the two remaining define_peephole
2065         patterns.
2066
2067 2004-07-18  Steven Bosscher  <stevenb@suse.de>
2068             Joseph S. Myers  <jsm@polyomino.org.uk>
2069
2070         * c-common.c (c_common_truthvalue_conversion): Don't warn if
2071         TREE_NO_WARNING is set.
2072
2073 2004-07-18  Roger Sayle  <roger@eyesopen.com>
2074
2075         * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
2076         simplify_builtin_strncmp): Delete.
2077         (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
2078         Change argument to accept an arglist instead of an "exp".  Assume
2079         that the return type is always integer_type_node.  Copy missing
2080         transformations from their now obsolete simplify_builtin_*
2081         equivalents.
2082         (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
2083         fold_builtin_strcmp and fold_builtin_strncmp.
2084         (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
2085         and fold_builtin_strncmp instead of simplify_builtin_memcmp,
2086         simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
2087
2088 2004-07-18  Daniel Jacobowitz  <dan@debian.org>
2089
2090         * Makefile.in (tree-alias-common.o): Update dependencies.
2091
2092 2004-07-17  Sebastian Pop  <pop@cri.ensmp.fr>
2093
2094         * cfgloop.c (flow_loop_nested_p): Fix comment.
2095
2096 2004-07-17  Jason Merrill  <jason@redhat.com>
2097
2098         PR c++/16115
2099         * stor-layout.c (relayout_decl): New fn.
2100         * tree.h: Declare it.
2101         (DECL_BY_REFERENCE): New macro.
2102
2103 2004-07-17  Eric Botcazou  <ebotcazou@act-europe.fr>
2104
2105         * libgcc2.c (__enable_execute_stack): New symbol.
2106         * libgcc-std.ver (GCC_3.4.2): New version.  Inherit from GCC_3.4
2107         and declare __enable_execute_stack.
2108         * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
2109         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
2110         * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
2111         ENABLE_EXECUTE_STACK.
2112         * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
2113         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
2114         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
2115         ENABLE_EXECUTE_STACK.
2116         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
2117         * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
2118         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
2119         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
2120         ENABLE_EXECUTE_STACK.
2121         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
2122         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
2123         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
2124         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
2125         * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
2126         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
2127         (sparc64_initialize_trampoline): Likewise.
2128         * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
2129
2130 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
2131
2132         * langhooks.h (builtin_function): New langhook.
2133         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
2134         (LANG_HOOKS_INITIALIZER): Update.
2135         * tree.h (builtin_function): Remove.
2136         * doc/tm.texi: Update.
2137         * c-tree.h (builtin_function): Declare.
2138         * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
2139         config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
2140         config/ia64/ia64.c, config/iq2000/iq2000.c,
2141         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
2142         config/stormy16/stormy16.c: All callers of builtin_function
2143         changed.
2144
2145 2004-07-17  Andrew Pinski  <pinskia@physics.uc.edu>
2146
2147         PR target/16556
2148         * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2149         Remove white space after the backslash.
2150
2151 2004-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
2152
2153         PR rtl-optimization/16294
2154         * resource.c (return_insn_p): New predicate.
2155         (mark_target_live_regs): Use it.  Special-case return insns.
2156         (init_resource_info): Use it.  Don't scan the epilogue past
2157         a return.
2158
2159 2004-07-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2160
2161         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
2162         destroy dominance information.
2163         * passes.c (rest_of_handle_loop2):  Free dominance information.
2164         * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
2165         jump threading.
2166         (thread_jumps): Update dominance information and remove unreachable
2167         blocks.
2168         * tree-ssa-phiopt.c (replace_phi_with_stmt):  Update dominance
2169         information and remove the unreachable block.
2170
2171 2004-07-17  Graham Stott  <graham.stott@btinternet.com>
2172
2173         * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
2174
2175 2004-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
2176
2177         * doc/sourcebuild.texi: Remove libf2c entry.
2178
2179 2004-07-17  Paolo Bonzini  <bonzini@gnu.org>
2180
2181         * config/i386/i386.md (movv16qi_internal): Fix typo.
2182
2183 2004-07-17  Steven Bosscher  <stevenb@suse.de>
2184
2185         * final.c (final_scan_insn): Fix broken commit from previous
2186         patch.
2187
2188 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
2189
2190         * c-typeck.c (parser_build_binary_op): Condition warnings for
2191         X<=Y<=Z on -Wparentheses instead of -Wextra.
2192         * doc/invoke.texi: Update.  Document that most of -Wparentheses is
2193         supported for C only.
2194
2195 2004-07-17  Steven Bosscher  <stevenb@suse.de>
2196
2197         * cfgcleanup.c (try_simplify_condjump): Don't remove line
2198         notes to avoid unreachable code warnings.
2199         * toplev.c (backend_init): Don't emit line notes for
2200         unreachable code warnings.
2201
2202         * combine.c (distribute_notes): Don't distribute a
2203         REG_VTABLE_REF note.
2204         * final.c (final_scan_insn): Don't handle it.
2205         * rtl.c (reg_note_name): Remove it.
2206         * rtl.h (enum reg_node): Dito.
2207
2208         * emit-rtl.c (force_line_numbers, restore_line_number_status):
2209         Remove.
2210         * rtl.h (force_line_numbers, restore_line_number_status):
2211         Remove prototypes.
2212
2213         * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
2214         * tree-eh.c (using_eh_for_cleanups_p): ...here.  Make static.
2215         (using_eh_for_cleanups): Also moved here.
2216
2217         * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
2218         <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY.  Update calls
2219         to expand_start_case and add_case_node.
2220         * stmt.c (struct nesting): Cleanup unused fields condition_code,
2221         last_unconditional_cleanup, nominal_type, printname, and
2222         line_number_status.
2223         (struct fixup_goto): Remove.
2224         (struct stmt_status): Remove x_goto_fixup_chain field.
2225         (goto_fixup_chain): Remove.
2226         (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
2227         pushcase, pushcase_range): Remove.
2228         (expand_start_bindings_and_block): Don't set unused fields in
2229         the nesting stack.
2230         (expand_start_case, add_case_node): Cleanup unused formal arguments.
2231         (expand_end_case_type): Don't simplify the case-list.  Use emit_jump
2232         instead of emit_jump_if_reachable.
2233         (emit_case_nodes): Likewise.
2234         * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
2235         static.
2236         (update_eh_label): Work around left-over exception handing regions.
2237         * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
2238         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
2239         (pass_cleanup_cfg_post_optimizing): New pass.
2240         (init_tree_optimization_passes): Run the new pass after all
2241         optimizations.
2242         * tree.h (pushcase, pushcase_range): Remove prototypes.
2243         (expand_start_case, add_case_node): Update prototypes.
2244
2245 2004-07-16  Krister Walfridsson  <cato@df.lth.se>
2246
2247         * tree-inline.c (estimate_num_insns_1): Correct increase of count.
2248
2249 2004-07-16  Richard Henderson  <rth@redhat.com>
2250
2251         * builtins.c (std_expand_builtin_va_arg): Remove.
2252         (expand_builtin_va_arg): Remove.
2253         * expr.h: Don't declare them.
2254         * gimplify.c (mark_decls_volatile_r): Remove.
2255         (copy_if_shared_r): Don't call it.
2256         * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
2257         * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
2258         * gimple-low.c (lower_stmt): Likewise.
2259         * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
2260         * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
2261         * tree-ssa-operands.c (get_expr_operands): Likewise.
2262         * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
2263         EXPAND_BUILTIN_VA_ARG.
2264         * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
2265         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
2266         config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
2267         config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
2268
2269 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
2270
2271         * tree-ssa-pre.c (insert_aux): Break out if we hit
2272         a critical edge.
2273
2274 2004-07-16  Richard Henderson  <rth@redhat.com>
2275
2276         * basic-block.h (remove_fake_exit_edges): Declare.
2277         * cfganal.c (remove_fake_predecessors): Rename from
2278         remove_fake_successors; iterate over predecessors.
2279         (remove_fake_exit_edges): New.
2280         * cfgcleanup.c (try_optimize_cfg): Use it.
2281         * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
2282         * predict.c (estimate_probability): Likewise.
2283         (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
2284         * tree-cfg.c (make_edges): Likewise.
2285         * tree-ssa-pre.c (fini_pre): Likewise.
2286         * profile.c (instrument_edges): Don't remove_fake_edges.
2287         (branch_prob): Do it earlier here.
2288
2289 2004-07-16  Richard Henderson  <rth@redhat.com>
2290
2291         * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
2292         switchification wrt CONSTRUCTOR.  Document the reason.
2293
2294 2004-07-16  Frank Ch. Eigler  <fche@redhat.com>
2295
2296         * tree-mudflap.c (mf_file_function_line_tree): Correct typo
2297         that prevented descriptive __mf_check source location strings.
2298
2299 2004-07-16  Richard Henderson  <rth@redhat.com>
2300
2301         * tree-def (WITH_SIZE_EXPR): New.
2302         * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
2303         * expr.c (expand_expr_real_1): Likewise.
2304         * gimplify.c (maybe_with_size_expr): New.
2305         (gimplify_arg, gimplify_modify_expr): Use it.
2306         (gimplify_modify_expr_to_memcpy): Take size parameter.
2307         (gimplify_modify_expr_to_memset): Likewise.
2308         (gimplify_expr): Handle WITH_SIZE_EXPR.
2309         * tree-alias-common.c (find_func_aliases): Likewise.
2310         * tree-eh.c (tree_could_trap_p): Likewise.
2311         (tree_could_throw_p): Likewise.
2312         * tree-gimple.c (is_gimple_lvalue): Likewise.
2313         (get_call_expr_in): Likewise.
2314         * tree-inline.c (estimate_num_insns_1): Likewise.
2315         (expand_calls_inline): Likewise.
2316         * tree-nested.c (convert_call_expr): Likewise.
2317         * tree-pretty-print.c (dump_generic_node): Likewise.
2318         * tree-sra.c (sra_walk_expr): Likewise.
2319         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
2320         * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
2321         * tree-ssa-operands.c (get_expr_operands): Likewise.
2322         * tree-tailcall.c (find_tail_calls): Likewise.
2323
2324         * calls.c (expand_call): Reset old_stack_allocated after
2325         calling emit_stack_restore.
2326
2327 2004-07-16  Richard Henderson  <rth@redhat.com>
2328
2329         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
2330         lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
2331         * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
2332         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
2333         copy_res_decl_for_inlining.
2334
2335         * tree-inline.c (declare_return_variable): New modify_dest argument.
2336         Use it as the return value, when possible or manditory.  Handle
2337         TREE_ADDRESSABLE types.
2338         (expand_call_inline): Extract MODIFY_EXPR lhs for call.  Simplify
2339         replacement of CALL_EXPR.
2340
2341 2004-07-16  Richard Henderson  <rth@redhat.com>
2342
2343         * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
2344         * gimple-low.c (expand_var_p): Don't check it.
2345         * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
2346         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
2347         * tree-ssa-operands.c (add_stmt_operand): Likewise.
2348         * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
2349         (find_referenced_vars): Don't call them.
2350         * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
2351
2352 2004-07-16  Richard Henderson  <rth@redhat.com>
2353
2354         * function.c (pass_by_reference): True for all variable sized types.
2355
2356 2004-07-16  Sebastian Pop  <pop@cri.ensmp.fr>
2357
2358         * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
2359         * tree-pretty-print.c: Include tree-chrec.h.
2360         (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
2361         and POLYNOMIAL_CHREC nodes.
2362
2363 2004-07-16  Steve Ellcey  <sje@cup.hp.com>
2364
2365         * builtins.c (expand_builtin_stpcpy): Do not create temporary
2366         reg with VOIDmode.
2367
2368 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
2369
2370         * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
2371
2372 2004-07-16  Andreas Krebbel  <krebbel1@de.ibm.com>
2373
2374         * config/s390/s390.md: Changed every occurence of BASE_REGISTER
2375         to BASE_REGNUM.
2376         * config/s390/s390.c: Likewise.
2377         * config/s390/s390.h: Likewise.
2378
2379 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2380
2381         * config/mips/mips.md (addsi3, adddi3): Remove special handling
2382         of $sp adds.  Remove REGNO checks from mips16 patterns.
2383
2384 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2385
2386         * config/mips/mips.md: Delete outdated comment.
2387
2388 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2389
2390         * config/mips/mips.c (get_float_compare_codes): Delete.
2391         (mips_emit_compare): New function, mostly extracted from
2392         get_float_compare_codes and gen_conditional_branch.
2393         (gen_conditional_branch, gen_conditional_move): Use it.
2394
2395 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
2396
2397         * genautomata.c (add_vect): Speedup by using integers as
2398         bit-vectors for walking through the comb_vect and finding
2399         a match.
2400
2401 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2402
2403         * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
2404         operand is an uns_arith_operand; use subtraction otherwise.
2405         * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
2406         not just arith_operands.
2407
2408 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2409
2410         * config/mips/mips-protos.h (gen_int_relational): Delete.
2411         (mips_emit_scc): Declare.
2412         * config/mips/mips.c (internal_test): Delete.
2413         (sle_operand, sleu_operand): New functions.
2414         (map_test_to_internal_test, gen_int_relational): Delete.
2415         (mips_emit_binary, mips_relational_operand_ok_p)
2416         (mips_emit_int_relational, mips_zero_if_equal)
2417         (mips_emit_scc): New functions.
2418         (gen_conditional_branch): Rework to use mips_emit_int_relational.
2419         * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
2420         sleu_operand.
2421         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
2422         (sltu, sleu): Use mips_emit_scc.
2423         (*sge_[sd]i, *sgeu_[sd]i): New patterns.
2424         (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
2425         (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
2426
2427 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2428
2429         * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
2430
2431 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2432
2433         * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
2434         (*sne_[sd]i): Likewise sne_[sd]i_zero.
2435         (*sgt_[sd]i): ...and sgt_[sd]i.
2436         (*slt_[sd]i): ...and slt_[sd]i.
2437         (*sgtu_[sd]i): ...and sgtu_[sd]i.
2438         (*sltu_[sd]i): ...and sltu_[sd]i.
2439         (*sleu_[sd]i): ...and sleu_[sd]i_const.
2440         Name previously unnamed mips16 patterns.  Formatting fixes.
2441
2442 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2443
2444         * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
2445         (branch_type): Delete.
2446         (gen_conditional_branch, gen_conditional_move)
2447         (mips_gen_conditional_trap): Update after name change.  Get the
2448         comparison mode from cmp_operands[0].
2449         * config/mips/mips.h (cmp_type, branch_type): Delete.
2450         (cmp_operands): Renamed from branch_cmp.
2451         * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
2452         name change.  Don't set branch_type.
2453         (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
2454         mode class of cmp_operands[0] rather than branch_type.  Update after
2455         name change.
2456
2457 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2458
2459         * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
2460         of 0...255 to 0 when inside a SET.
2461
2462 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2463
2464         * config/mips/mips.md: Remove mips16 define_peepholes.
2465
2466 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
2467
2468         * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
2469         (fini_pre): Remove fake edges.
2470
2471 2004-07-15  Richard Henderson  <rth@redhat.com>
2472
2473         * tree-ssa-operands.c (get_expr_operands): Use a switch.  Split out...
2474         (get_indirect_ref_operands, get_call_expr_operands): ... these.
2475
2476 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
2477
2478         * vec.h (VEC_address): New function.
2479
2480 2004-07-14  Jason Merrill  <jason@redhat.com>
2481
2482         PR middle-end/15885
2483         * gimplify.c (gimplify_arg): New fn, split out from...
2484         (gimplify_call_expr): Here.  Special-case BUILT_IN_VA_START.
2485
2486 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
2487
2488         * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
2489         generate code which is generated by pushqi1 now
2490         * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
2491
2492 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
2493
2494         * combine.c (simplify_set): match the mode of the constant 0 with
2495         the tested operand to match the compare behaviour and the
2496         simplify_relational_operation() expectation.
2497
2498 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
2499
2500         * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
2501         ("bordered"): Same.
2502
2503 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
2504
2505         * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
2506         unconditionally.
2507         * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
2508
2509 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
2510
2511         * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
2512         calls in mips16 code.
2513
2514 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
2515
2516         * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
2517         the destination of the li as well as for the neg.
2518
2519 2004-07-15  Frank Ch. Eigler  <fche@redhat.com>
2520
2521         g++/15861
2522         * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
2523         * cgraph.h: Update declaration.
2524         * c-decl.c (build_cdtor): Update call with default priority.
2525         * coverage.c (create_coverage): Ditto.
2526         * tree-mudflap.c (mf_init_fndecl): New tree.
2527         (mudflap_init): Set it.
2528         (mudflap_register_call): Arrange to call __mf_init before the first
2529         __mf_register call.
2530         (mudflap_finish_file): Mark the mudflap static initializer as extra
2531         high priority, to beat all C++ static constructors.
2532
2533 2004-07-15  Jeff Law  <law@redhat.com>
2534
2535         * loop.c (check_insn_for_givs): Restore check for code labels that was
2536         accidentally deleted by a recent checkin.
2537
2538 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
2539
2540         * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
2541         (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
2542
2543 2004-07-14  Richard Henderson  <rth@redhat.com>
2544
2545         * print-tree.c (print_node): Fix casts last change.
2546
2547 2004-07-15  Paul Brook  <paul@codesourcery.com>
2548
2549         * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
2550         to TARGET_UNWIND_INFO.
2551         * except.c (output_function_exception_table): Ditto.
2552         * except.h: Ditto.
2553         * opts.c (decode_options): Ditto.
2554         * passes.c (rest_of_handle_final): Ditto.
2555         * final.c (final_start_function): Ditto.
2556         (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
2557         target hook.
2558         * targhooks.h (default_unwind_emit): Declare.
2559         * targhooks.c (default_unwind_emit): New function.
2560         * target-def.h: Define and use TARGET_UNWIND_EMIT.
2561         * target.h (struct gcc_target): Add unwind_emit.
2562         * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
2563         * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
2564         Remove IA64_UNWIND_EMIT.
2565         * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
2566
2567 2004-07-14  Richard Henderson  <rth@redhat.com>
2568
2569         * print-tree.c (print_node): Handle SSA_NAME.
2570
2571 2004-07-14  James E Wilson  <wilson@specifixinc.com>
2572
2573         PR target/16325
2574         * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
2575         and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
2576
2577 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
2578
2579         * expr.c (expand_assignment): Reenable bitfield += optimizations.
2580         Use alias set 0 for memory, do proper mode calculations and adjust
2581         address for memories.
2582
2583 2004-07-14  Per Bothner  <per@bothner.com>
2584
2585         * input.h:  If USE_MAPPED_LOCATION, define separate expanded_location
2586         structure with extra column field.
2587         * tree.c (expand_location):  Also fill in column field.
2588         * gengtype-lex.l:  Ignore expanded_location typedef, sinze gengtype
2589         gets confused by the two conditionally-compiled definitions.
2590
2591 2004-07-14  Eric Christopher  <echristo@redhat.com>
2592
2593         * calls.c (expand_call): Fix typo in comment.
2594
2595 2004-07-14  Steve Ellcey  <sje@cup.hp.com>
2596
2597         * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
2598         comparision of TFmode.
2599
2600 2004-07-14  Richard Henderson  <rth@redhat.com>
2601
2602         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
2603         (alpha_gimplify_va_arg): ... handling here.  Use pass_by_reference.
2604         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
2605         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
2606         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
2607         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2608         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
2609         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
2610         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
2611
2612 2004-07-14  Mike Stump  <mrs@apple.com>
2613
2614         * config/darwin.h (WINT_TYPE): Define to be int to match
2615         system header files.
2616
2617 2004-07-14  Bob Wilson  <bob.wilson@acm.org>
2618
2619         * config/xtensa/xtensa.c (function_arg_advance): Check for args
2620         that must be passed in the stack.
2621         (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
2622         arguments if the size is not a constant.
2623
2624 2004-07-14  Per Bothner  <per@bothner.com>
2625
2626         * c-typeck.c (emit_side_effect_warnings):  Use EXPR_HAS_LOCATION
2627         instead of EXPR_LOCUS in a boolean context, which is always true
2628         if --enable-mapped-location.
2629         * stmt.c (warn_if_unused_value):  Likewise.  Also use EXPR_LOCATION.
2630
2631 2004-07-14  Richard Henderson  <rth@redhat.com>
2632
2633         * dominance.c (struct dom_info): Add fake_exit_edge.
2634         (init_dom_info): Allocate it.
2635         (free_dom_info): Free it.
2636         (calc_dfs_tree): Set it.  Handle noreturn and infinite loops
2637         in two passes.
2638         (calc_idoms): Honor fake_exit_edge.
2639
2640 2004-07-13  Jason Merrill  <jason@redhat.com>
2641
2642         * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
2643         (rhs_test_for): New fn.
2644         (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
2645         * tree-gimple.h: Declare them.
2646         * gimplify.c (gimplify_modify_expr): Use the new fns.
2647
2648 2004-07-14  Richard Henderson  <rth@redhat.com>
2649
2650         * config/arm/arm-protos.h (arm_va_arg): Remove.
2651         * config/arm/arm.c (arm_va_arg): Remove.
2652         (arm_init_expanders): Fix alignment of arg_pointer_rtx.
2653         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
2654
2655 2004-07-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2656
2657         * pa.c (fix_range): New function to mark a range(s) of registers as
2658         fixed registers.
2659         (override_options): Call fix_range if the -mfixed-range option string
2660         is not empty.
2661         * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
2662         * doc/invoke.texi (-mfixed-range): Document new option.
2663
2664 2004-07-14  David Edelsohn  <edelsohn@gnu.org>
2665
2666         * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
2667         for TARGET_64BIT.
2668         (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
2669
2670 2004-07-14  Roger Sayle  <roger@eyesopen.com>
2671
2672         * expmed.c (expand_sdiv_pow2): New function to expand signed division
2673         by a positive power of two, split out from expand_divmod.  Provide
2674         an alternate implementation when shifts are expensive.  Lower the
2675         threshold for using a branchless implementation to BRANCH_COST >= 2.
2676         (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
2677
2678 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
2679
2680         * tree-dfa.c (make_rename_temp): *Really* work just
2681         like create_tmp_var if called while outside SSA form.
2682
2683 2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
2684
2685         * config/s390/s390.md ("udivsi3"): Ensure trap is generated
2686         for division by zero.
2687         ("umodsi3"): Likewise.
2688
2689 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
2690
2691         * config/mips/mips.c (mips_output_move): When generating mips16 code,
2692         force loads of negative constants to be split.
2693         * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
2694         Generalize SImode li/neg splitter to cope with other modes.
2695
2696 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
2697
2698         * expmed.c: Remove more references to QUEUED in the comments.
2699         * expr.c: Likewise.
2700
2701 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
2702
2703         Revert:
2704         2004-07-13  Richard Henderson  <rth@redhat.com>
2705         * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
2706         correctly.
2707
2708 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
2709
2710         * tree-dfa.c (make_rename_temp): Work just like
2711         create_tmp_var if called while outside SSA form.
2712
2713 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
2714
2715         * expr.c (enqueue_insn, finish_expr_for_function,
2716         protect_from_queue, queued_subexp_p, mark_queue,
2717         emit_insns_enqueued_after_mark, emit_queue,
2718         expand_increment): Remove.
2719         (store_constructor): Expand increment as an assignment.
2720         (expand_expr_real_1 <case PREINCREMENT_EXPR,
2721         case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
2722         case POSTDECREMENT_EXPR>): Abort.
2723         * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
2724         QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
2725         protect_from_queue, emit_queue, queued_subexp_p): Remove.
2726         * function.h (pending_chain, x_pending_chain): Remove.
2727         * rtl.def (QUEUED): Remove.
2728
2729         * emit-rtl.c (copy_insn_1, copy_most_rtx,
2730         set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
2731         * genattrtab.c (attr_copy_rtx, clear_struct_flag,
2732         encode_units_mask): Likewise.
2733         * local-alloc.c (equiv_init_varies_p): Likewise.
2734         * rtl.c (copy_rtx): Likewise.
2735         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
2736         * simplify-rtx.c (simplify_gen_subreg): Likewise.
2737         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
2738
2739         * builtins.c (expand_builtin, expand_builtin_apply,
2740         expand_builtin_mathfn, expand_builtin_mathfn_2,
2741         expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
2742         Remove calls to emit_queue and protect_from_queue.
2743         * calls.c (expand_call, precompute_arguments,
2744         precompute_register_parameters, rtx_for_function_call,
2745         store_one_arg): Likewise.
2746         * dojump.c (do_compare_and_jump, do_jump): Likewise.
2747         * explow.c (memory_address): Likewise.
2748         * expmed.c (clear_by_pieces_1, clear_storage,
2749         clear_storage_via_libcall, emit_group_load,
2750         emit_group_store, emit_store_flag,
2751         expand_expr_real_1, store_by_pieces,
2752         store_constructor, store_expr, try_casesi,
2753         try_tablejump): Likewise.
2754         * function.c (expand_pending_sizes): Likewise.
2755         * optabs.c (emit_cmp_and_jump_insns,
2756         emit_conditional_add, emit_conditional_move,
2757         expand_fix, expand_float, prepare_cmp_insn): Likewise.
2758         * stmt.c (emit_case_bit_tests,
2759         expand_asm_expr, expand_computed_goto,
2760         expand_decl_init, expand_end_case_type,
2761         expand_end_stmt_expr, expand_expr_stmt_value,
2762         expand_return, expand_start_case,
2763         optimize_tail_recursion): Likewise.
2764         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
2765         * config/s390/s390.c (s390_expand_cmpmem): Likewise.
2766
2767 2004-07-14  Ben Elliston  <bje@au.ibm.com>
2768
2769         * vec.h: Comment fix.
2770
2771 2004-07-13  Richard Henderson  <rth@redhat.com>
2772
2773         * target.h (struct gcc_target): Add calls.pass_by_reference.
2774         * target-def.h (TARGET_PASS_BY_REFERENCE): New.
2775         * function.c (pass_by_reference): Use the hook.
2776         * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
2777         * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
2778         (hook_pass_by_reference_must_pass_in_stack): New.
2779         * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
2780         (alpha_pass_by_reference): New.
2781         (TARGET_PASS_BY_REFERENCE): New.
2782         * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2783         * config/arc/arc.c (arc_pass_by_reference): New.
2784         (TARGET_PASS_BY_REFERENCE): New.
2785         * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2786         (FUNCTION_ARG_CALLEE_COPIES): True.
2787         * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
2788         * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
2789         (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
2790         * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2791         * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2792         * config/cris/cris.c (cris_pass_by_reference): New.
2793         (TARGET_PASS_BY_REFERENCE): New.
2794         * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
2795         (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
2796         (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2797         * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
2798         * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2799         * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
2800         * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
2801         (frv_function_arg_pass_by_reference): Remove.
2802         * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2803         * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
2804         * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
2805         (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
2806         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2807         * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
2808         * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
2809         (ia64_pass_by_reference): Rename from
2810         ia64_function_arg_pass_by_reference.
2811         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2812         * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2813         * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
2814         * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
2815         (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
2816         * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2817         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
2818         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
2819         * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
2820         (m32r_pass_by_reference): Adjust prototype.  Make static.
2821         Handle mode sizes correctly.
2822         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2823         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
2824         (m68hc11_function_arg_pass_by_reference): Remove.
2825         * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2826         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
2827         * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
2828         * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2829         * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
2830         * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
2831         (mips_va_arg): Use pass_by_reference.
2832         (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
2833         Handle mode sizes correctly.
2834         * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2835         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
2836         * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
2837         * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
2838         (mmix_pass_by_reference): Rename from
2839         mmix_function_arg_pass_by_reference.
2840         * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2841         (FUNCTION_ARG_CALLEE_COPIES): True.
2842         * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
2843         (mn10300_pass_by_reference): New.
2844         * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2845         (FUNCTION_ARG_CALLEE_COPIES): True.
2846         * config/pa/pa.c (pa_pass_by_reference): New.
2847         (TARGET_PASS_BY_REFERENCE): New.
2848         * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2849         (FUNCTION_ARG_CALLEE_COPIES): True.
2850         * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
2851         * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
2852         (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
2853         * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2854         * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
2855         * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
2856         (s390_pass_by_reference): Rename from
2857         s390_function_arg_pass_by_reference.
2858         (s390_function_arg_advance): Don't query pass-by-ref.
2859         (s390_function_arg): Likewise.
2860         (s390_gimplify_va_arg): Use pass_by_reference.
2861         (s390_call_saved_register_used): Likewise.
2862         * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2863         * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
2864         (shcompact_byref, sh_pass_by_reference): New.
2865         * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2866         (SHCOMPACT_BYREF): Remove.
2867         * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
2868         * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
2869         (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
2870         (sparc_gimplify_va_arg): Use pass_by_reference.
2871         * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2872         * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2873         * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
2874         (v850_pass_by_reference): New.
2875         * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2876         (FUNCTION_ARG_CALLEE_COPIES): True.
2877         * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
2878         FUNCTION_ARG_PASS_BY_REFERENCE docs.
2879
2880 2004-07-14  Richard Henderson  <rth@redhat.com>
2881             Richard Sandiford  <rsandifo@redhat.com>
2882
2883         * config/mips/mips-protos.h (mips_va_arg): Delete.
2884         * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
2885         * config/mips/mips.c: Include tree-gimple.h.
2886         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
2887         (mips_arg_info): Remove special handling of must_pass_in_stck args.
2888         (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
2889         (function_arg_pass_by_reference): Return true if must_pass_in_stack.
2890
2891 2004-07-13  Bob Wilson  <bob.wilson@acm.org>
2892
2893         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
2894         arguments for COND_EXPR in big-endian adjustment code.
2895
2896 2004-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2897
2898         * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
2899         * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
2900         * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
2901         * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
2902
2903 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
2904
2905         PR tree-optimization/16443
2906         * tree-ssa-alias.c: Add more description for
2907         CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
2908         * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
2909         clobbering of call-clobbered and addressable variables.  If
2910         there are any before aliases have been computed, add them.
2911
2912 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
2913
2914         * tree-optimize.c (execute_todo): Flush DUMP_FILE before
2915         verification.
2916
2917 2004-07-13  Ulrich Weigand  <uweigand@de.ibm.com>
2918
2919         * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
2920         of build_int_2.  Convert both operands of PLUS_EXPR and MULT_EXPR
2921         to the same type.
2922
2923 2004-07-13  Per Bothner  <per@bothner.com>
2924
2925         * collect2.c (main):  Handle --no-demangle and --demangle flags.
2926
2927 2004-07-13  Sebastian Pop  <pop@cri.ensmp.fr>
2928
2929         * Makefile.in (OBJS-common): Add tree-data-ref.o.
2930         (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
2931         (tree-data-ref.o): New rule.
2932         * lambda.h: New file.
2933         * tree-data-ref.c: New file.
2934         * tree-data-ref.h: New file.
2935         * tree.c (int_cst_value, tree_fold_gcd): New functions.
2936         * tree.h (int_cst_value, tree_fold_gcd): Declared here.
2937
2938 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2939
2940         PR target/13926
2941         * config/sparc/sparc-protos.h (output_ubranch): New prototype.
2942         * config/sparc/sparc.c (output_ubranch): New function.
2943         * config/sparc/sparc.md (jump pattern): Use it.
2944
2945 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2946
2947         PR target/16494
2948         * config/sparc/sparc.c (output_cbranch): Properly guard
2949         the code handling far branches with TARGET_V9.
2950         * config/sparc/sparc.md (length attribute): Document the
2951         side-effect of having a length greater or equal to 3.
2952
2953 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2954             Lloyd Parkes  <lloyd@must-have-coffee.gen.nz>
2955
2956         PR target/15186
2957         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
2958         /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
2959
2960 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2961             Martin Sebor  <sebor@roguewave.com>
2962
2963         PR target/12602
2964         * doc/invoke.texi (SPARC options): Document -threads
2965         and -pthreads on Solaris.
2966
2967 2004-07-13  Richard Henderson  <rth@redhat.com>
2968
2969         * builtins.c (std_gimplify_va_arg_expr): Handle types passed
2970         by reference.
2971         (ind_gimplify_va_arg_expr): Remove.
2972         * tree.h (ind_gimplify_va_arg_expr): Remove.
2973         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
2974         * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
2975         argsp to be null.
2976
2977         * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
2978         (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
2979         * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
2980         config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
2981         config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
2982
2983 2004-07-13  Richard Henderson  <rth@redhat.com>
2984
2985         * function.c (pass_by_reference): New.
2986         (assign_parm_find_data_types): Use it.
2987         * calls.c (initialize_argument_information): Likewise.
2988         (emit_library_call_value_1): Likewise.
2989         * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
2990         * function.h (pass_by_reference): Declare.
2991
2992 2004-07-13  Richard Henderson  <rth@redhat.com>
2993
2994         * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
2995         * target.h (struct gcc_target): Add calls.must_pass_in_stack.
2996         * expr.h (MUST_PASS_IN_STACK): Remove.
2997         * system.h (MUST_PASS_IN_STACK): Poison.
2998         * tree.h (must_pass_in_stack_var_size): Declare.
2999         (must_pass_in_stack_var_size_or_pad): Declare.
3000         * calls.c (must_pass_in_stack_var_size): New.
3001         (must_pass_in_stack_var_size_or_pad): Rename from
3002         default_must_pass_in_stack.
3003         * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
3004         (TARGET_MUST_PASS_IN_STACK): New.
3005         * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
3006         * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
3007         (TARGET_MUST_PASS_IN_STACK): New.
3008         * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
3009         * config/frv/frv.c (frv_must_pass_in_stack): New.
3010         (TARGET_MUST_PASS_IN_STACK): New.
3011         * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
3012         * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
3013         * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
3014         (ix86_must_pass_in_stack): Make static.
3015         * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
3016         * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
3017         * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
3018         * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
3019         * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
3020         * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
3021         * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
3022         (mcore_must_pass_on_stack): Remove.
3023         * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
3024         * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
3025         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
3026         * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
3027         * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
3028         * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
3029         * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
3030         * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
3031         (TARGET_MUST_PASS_IN_STACK): New.
3032         * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
3033         * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
3034         * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
3035         * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
3036         * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
3037         * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
3038         * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
3039         MUST_PASS_IN_STACK.
3040
3041         * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
3042         config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
3043         config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
3044         config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
3045         config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
3046         config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
3047         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
3048         config/xtensa/xtensa.c: Use target hook.
3049
3050 2004-07-13  Anthony Heading  <aheading@jpmorgan.com>
3051
3052         * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
3053         * configure: Rebuilt.
3054
3055 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
3056
3057         * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
3058         * config/mips/mips.h (mips_reg_names): Don't declare.
3059         (MASK_NAME_REGS): Delete.  Shuffle other MASK_* values down.
3060         (TARGET_NAME_REGS): Delete.
3061         (TARGET_SWITCHES): Remove -mrnames.
3062         (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
3063         (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
3064         in REGISTER_NAMES.
3065         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
3066         (override_options): Remove handling of TARGET_NAME_REGS.
3067
3068 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
3069
3070         * config/mips/mips.h (TARGET_*): Boolify.
3071
3072 2004-07-12  Nick Clifton  <nickc@redhat.com>
3073
3074         * config.gcc: Add sh-*-symbianelf target.
3075         * config/sh/sh.c: Add new target macros:
3076         TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
3077         TARGET_CXX_IMPORT_EXPORT_CLASS.
3078         (sh_file_start): Create a definition of the .directive section.
3079         (sh_attribute): Add dllimport and dllexport attributes.
3080         * config/sh/symbian-pre.h: New file.
3081         * config/sh/symbian-post.h: New file.
3082         * config/sh/symbian.c: New file. Contains Symbian specific
3083         functions.
3084         * config/sh/sh-protos.h: Add prototypes for new functions
3085         provided by symbian.c.
3086         * config/sh/t-symbian: New file.
3087         * doc/extend.texi: Document support for dllimport and dllexport
3088         attributes by the sh-symbianelf target.
3089
3090 2004-07-12  James E Wilson  <wilson@specifixinc.com>
3091
3092         * Makefile.in (AR): Use @AR@ not ar.
3093         (NM): New.
3094         (AR_FOR_TARGET): Use $(AR) not ar for native.
3095         (NM_FOR_TARGET): Use $(NM) not nm for native.
3096         * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
3097         * configure: Regenerate.
3098
3099 2004-07-12  David S. Miller  <davem@nuts.davemloft.net>
3100
3101         * config/sparc/sparc.md (ashlsi3): Eliminate const 1
3102         special case.
3103         (ashldi3_sp64): Likewise.
3104
3105 2004-07-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3106
3107         PR target/16477
3108         * pa.c (function_arg): Update comment.
3109         * pa.h (BLOCK_REG_PADDING): Define.
3110
3111 2004-07-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3112
3113         PR tree-optimization/16461
3114         * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
3115         arguments of phi nodes.
3116
3117 2004-07-12  Devang Patel  <dpatel@apple.com>
3118
3119         * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
3120
3121 2004-07-12  Steve Ellcey  <sje@cup.hp.com>
3122
3123         * function.c (expand_function_start): Ensure r_save is in Pmode.
3124         * calls.c (prepare_call_address): Ensure static_chain_value is
3125         in Pmode.
3126         * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
3127         r_save_area are in Pmode.
3128         * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
3129         fnaddr, and static_chain are in Pmode.
3130
3131 2004-07-12  Vladimir Makarov  <vmakarov@redhat.com>
3132
3133         PR target/16445
3134         * config/ia64/ia64.c (bundling): Don't count ignored insns.
3135
3136 2004-07-12  Richard Henderson  <rth@redhat.com>
3137
3138         * target.h (struct gcc_target): Move gimplify_va_arg_expr
3139         next to build_builtin_va_list.
3140         * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
3141         * builtins.c (gimplify_va_arg_expr): Likewise.
3142         * gimplify.c (copy_if_shared_r): Likewise.
3143
3144 2004-07-12  Alexandre Oliva  <aoliva@redhat.com>
3145
3146         * passes.c (rest_of_decl_compilation): Don't defer call of
3147         assemble_variable if its DECL_RTL is already set.
3148
3149 2004-07-12  Sebastian Pop  <pop@cri.ensmp.fr>
3150
3151         * cfgloop.h (struct loop): Add nb_iterations field.
3152         (current_loops): Declare.
3153         * tree-chrec.c (chrec_not_analyzed_yet,
3154         chrec_dont_know, chrec_known, count_ev_in_wider_type,
3155         chrec_contains_symbols_defined_in_loop): Remove the temporary
3156         hooks.
3157         * tree-flow-inline.h (loop_containing_stmt): New function.
3158         * tree-scalar-evolution.c: Add implementation.
3159         * tree-scalar-evolution.h: Add declarations.
3160
3161 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
3162
3163         PR rtl-optimization/15921
3164         * Makefile.in (global.o): Add recog.h.
3165
3166         * global.c (recog.h): Add the include-clause.
3167         (bb_info): New member earlyclobber.
3168         (allocate_bb_info, free_bb_info): Initialize/finish the new
3169         member.
3170         (earlyclobber_regclass, earlyclobber_regclass_length): The new
3171         global variables.
3172         (check_earlyclobber, regclass_intersect,
3173         mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
3174         New functions.
3175         (calculate_local_reg_bb_info): Calculate value of earlyclobber.
3176         (make_accurate_live_analysis): Modify pavin.
3177
3178 2004-07-12  Diego Novillo  <dnovillo@redhat.com>
3179
3180         * tree-cfg.c (find_taken_edge): Statically compute the truth
3181         value of a predicate comparing an SSA_NAME to itself.
3182
3183 2004-07-12  Roger Sayle  <roger@eyesopen.com>
3184
3185         * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
3186         rs6000 doesn't have shift-and-add or shift-and-sub instructions
3187         by returning the cost of a multiplication plus an addition.
3188
3189 2004-07-12  Paolo Bonzini  <bonzini@gnu.org>
3190
3191         PR tree-optimization/14107
3192         * gimplify.c (gimplify_return_expr): Accept a
3193         RETURN_EXPR with an error argument.
3194         * tree-optimize.c (init_tree_optimization_passes):
3195         Run pass_warn_function_return at -O0.
3196
3197 2004-07-12  Roger Sayle  <roger@eyesopen.com>
3198
3199         * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
3200         index entry.
3201
3202 2004-07-12  Richard Sandiford  <rsandifo@redhat.com>
3203
3204         * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
3205         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
3206         * config/mips/3000.md: Add copyright notice.  Remove automota and
3207         function units; use generic ones instead.  Only define reservations
3208         for things that are different from generic.md.  Extend each clause
3209         to include r3900.
3210         * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
3211         * config/mips/mips.md: Include them. Remove define_function_units.
3212         (alu, imuldiv): New automata and units.
3213
3214 2004-07-12  Ben Elliston  <bje@au.ibm.com>
3215
3216         * doc/invoke.texi (Optimize Options): Document -frename-registers
3217         not being enabled by default at -O3.
3218
3219 2004-07-11  Roger Sayle  <roger@eyesopen.com>
3220
3221         * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
3222         floating point additions, to keep real immediate constant positive.
3223         <MINUS_EXPR>:  For floating point subtractions, only transform X - -C
3224         into X + C, and leave positive real constants as X - C.
3225
3226 2004-07-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3227
3228         * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
3229
3230 2004-07-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3231
3232         PR tree-optimization/15654
3233         * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
3234
3235 2004-07-11  Roger Sayle  <roger@eyesopen.com>
3236
3237         * builtins.c (fold_builtin_fputs): Don't bother converting the
3238         return type to integer_type_node, as we've already checked that
3239         the result will be ignored.
3240
3241         * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
3242         that signed addition, subtraction, multiplication, division,
3243         remainder, negation and absolute value may potentially trap.
3244
3245         * fold-const.c (fold_ignored_result): New function to strip
3246         non-side-effecting tree nodes from an expression whose result
3247         is ignored.
3248         (fold_convert): Call fold_ignored_result when casting a value
3249         to VOID_TYPE.
3250         (omit_one_operand):  Call fold_ignored_result on the "omitted"
3251         operand when building a COMPOUND_EXPR.
3252         (pedantic_omit_one_operand): Likewise.
3253         * tree.h (fold_ignored_result): Prototype here.
3254         * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
3255         when we're going to ignore the result.
3256
3257 2004-07-11  Richard Henderson  <rth@redhat.com>
3258
3259         PR tree-opt/16383
3260         * tree-ssa-ccp.c (fold_stmt_r): Split out...
3261         * tree.c (fields_compatible_p, find_compatible_field): ... new.
3262         * tree.h (fields_compatible_p, find_compatible_field): Declare.
3263         * tree-sra.c (sra_hash_tree): Hash fields by offset.
3264         (sra_elt_eq): Use fields_compatible_p.
3265         (generate_one_element_ref): Use find_compatible_field.
3266
3267 2004-07-11  Richard Henderson  <rth@redhat.com>
3268
3269         PR tree-opt/16422
3270         * tree-sra.c (generate_one_element_init): New.
3271         (generate_element_init): Use it.
3272         (scalarize_init): Push/pop gimplify context around it.
3273         (find_new_referenced_vars_1, find_new_referenced_vars): New.
3274         * gimplify.c (gimplify_expr): Allow SSA_NAME.
3275
3276 2004-07-11  Roger Sayle  <roger@eyesopen.com>
3277
3278         * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
3279         combine.c's combine_insn_cost.
3280         * rtl.h (insn_rtx_cost): Prototype here.
3281         * combine.c (combine_insn_cost): Delete function.
3282         (combine_validate_cost): Update callers of combine_insn_cost to
3283         call insn_rtx_cost instead.
3284         (combine_instructions): Likewise.  Use NONJUMP_INSN_P to avoid
3285         requesting the rtx_cost of call and/or jump instructions.
3286
3287         * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
3288         rtx_cost directly.  Don't request/use the cost of call or jump
3289         instructions.  Return -1 if the cost of any instruction can't be
3290         determined (or the BB contains a function call).
3291         (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
3292         -1 (i.e. can't determine the cost of any instruction or the basic
3293         block contains a subroutine call).
3294         (find_if_case_2): Likewise.
3295
3296 2004-07-11  Roger Sayle  <roger@eyesopen.com>
3297
3298         * rs6000.c (struct processor_costs): Change semantics of fields to
3299         include the COST_N_INSNS scaling, and update all initializers.
3300         (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
3301         Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
3302         Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP.  When
3303         optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
3304
3305 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
3306
3307         * LANGUAGES: Remove obsolete information.
3308
3309 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
3310
3311         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
3312         SIGBUS signal frames, the PSW address points *to* the faulting
3313         instruction, not after it.
3314
3315 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
3316
3317         * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
3318         added to TLS symbol addresses.
3319
3320 2004-07-11  Richard Henderson  <rth@redhat.com>
3321
3322         * expmed.c (init_expmed): Use stack-local structures for
3323         temporary rtl.  Don't recognize shifts.
3324
3325 2004-07-11  Richard Henderson  <rth@redhat.com>
3326
3327         * expr.c (store_expr): Don't fiddle subreg promotion for types
3328         with precision smaller than the mode.
3329
3330 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
3331
3332         * tree.h (all_types_permanent): Remove.
3333
3334 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
3335
3336         * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
3337         maybe_build_cleanup, update_decl_after_saving): Remove hooks.
3338         * langhooks.c (lhd_clear_binding_stack): Remove.
3339         * langhooks-def.h (lhd_clear_binding_stack,
3340         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
3341         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
3342         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
3343         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
3344         (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
3345         * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
3346         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
3347         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
3348         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
3349         * tree.h (poplevel): Don't declare.
3350         * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
3351         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
3352         * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
3353         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
3354         Remove.
3355
3356 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
3357
3358         PR tree-optimization/16437
3359         * c-common.c (shorten_compare): Don't mark result of conversion to
3360         narrower signed type as overflowing.
3361         * fold-const.c (decode_field_reference): Determine whether
3362         signedness comes from outer type using precision rather than size.
3363
3364 2004-07-11  Phil Edwards  <phil@codesourcery.com>
3365
3366         * configure.ac:  Alphabetize --enable-checking list, add
3367         missing valgrind entry.
3368         * configure:  Regenerate.
3369
3370 2004-07-11  Phil Edwards  <phil@codesourcery.com>
3371
3372         * doc/install.texi (Testing):  Fix syntax in "make check" example.
3373
3374 2004-07-10  James E Wilson  <wilson@specifixinc.com>
3375
3376         * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
3377
3378 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3379
3380         PR rtl-optimization/16001
3381         * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
3382         niter_expr.
3383
3384 2004-07-10  Geoffrey Keating  <geoffk@apple.com>
3385
3386         * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
3387
3388 2004-07-10  Steve Kargl  <sgk@troutmask.apl.washington.edu>
3389             James Morrison  <phython@gcc.gnu.org>
3390
3391         * doc/contrib.texi (Contributors): Add gfortran contributors and
3392         fix a couple of typos.
3393
3394 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3395
3396         PR rtl-optimization/15387
3397         * calls.c (check_sibcall_argument_overlap_1): Handle pointers
3398         to incoming args space correctly.
3399
3400 2004-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3401
3402         * pa.c (output_indirect_call): Only use %r2 as the link register in
3403         indirect calls with the long PA 2.0 pc-relative branch.
3404
3405 2004-07-10  Daniel Jacobowitz  <dan@debian.org>
3406
3407         * config/i386/i386.c (override_options): Pick a 64-bit CPU
3408         for the default tuning if TARGET_64BIT.
3409
3410 2004-07-10  Richard Henderson  <rth@redhat.com>
3411
3412         * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
3413         to HOST_WIDE_INT.  Fold pad-args-down arithmetic.
3414
3415 2004-07-10  Jakub Jelinek  <jakub@redhat.com>
3416
3417         * expr.h (store_bit_field, extract_bit_field): Remove last argument.
3418         * expmed.c (store_bit_field, extract_bit_field): Remove last
3419         argument.
3420         * builtins.c (expand_builtin_signbit): Adjust callers.
3421         * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
3422         * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
3423         * ifcvt.c (noce_emit_move_insn): Likewise.
3424         * stmt.c (expand_return): Likewise.
3425         * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
3426         store_field, expand_expr_real_1): Likewise.
3427
3428 2004-07-10  Richard Henderson  <rth@redhat.com>
3429
3430         * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
3431
3432 2004-07-09  Mike Stump  <mrs@apple.com>
3433
3434         * config/darwin.c (no_dead_strip): Add.
3435         (HAVE_DEAD_STRIP): Add.
3436         (darwin_emit_unwind_label): Ensure that we don't dead code strip
3437         the .eh label.
3438
3439 2004-07-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3440
3441         * tree-ssa-loop-im.c: New file.
3442         * Makefile.in (tree-ssa-loop-im.o): Add.
3443         * cfgloop.c (superloop_at_depth): New function.
3444         * cfgloop.h (superloop_at_depth): Declare.
3445         * common.opt (ftree-lim): New flag.
3446         * expr.c (array_ref_up_bound): New function.
3447         * params.def (PARAM_LIM_EXPENSIVE): New parameter.
3448         * timevar.def (TV_LIM): New timevar.
3449         * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
3450         computing immediate uses of a phi node.
3451         * tree-flow.h (struct tree_ann_common_d): Add aux field.
3452         (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
3453         * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
3454         * tree-pass.h (pass_lim): Declare.
3455         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
3456         functions.
3457         (pass_lim): New pass structure.
3458         * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
3459         * tree.c (in_array_bounds_p): New function.
3460         * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
3461         (in_array_bounds_p, array_ref_up_bound): Declare.
3462         * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
3463         * doc/passes.texi (tree-ssa-loop-im.c): Document.
3464
3465 2004-07-09  Richard Henderson  <rth@redhat.com>
3466
3467         * builtins.c (expand_builtin_stpcpy): Don't modify len.
3468
3469         * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
3470         with prejudice.
3471
3472 2004-07-10  Kelley Cook  <kcook@gcc.gnu.org>
3473
3474         * flags.h: Delete redundant prototypes that are being generated
3475         in options.h from common.opt.
3476         * common.opt: Add in the expository comments formerly in flags.h.
3477
3478 2004-07-09  Jan Beulich  <jbeulich@novell.com>
3479
3480         * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
3481         available for use only when TARGET_MMX/_SSE is set, and check for
3482         variable argument function if any register count is non-zero.
3483         (function_arg): Correctly suppress repeated warnings for passing SSE
3484         vectors are arguments without SSE enabled.
3485         (ix86_function_arg_boundary): Without SSE enabled, the use of what
3486         would be SSE register modes does no longer influence the alignment.
3487
3488 2004-07-09  Richard Henderson  <rth@redhat.com>
3489
3490         * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
3491         Always align upward to arg boundary.  Use size_in_bytes/round_up.
3492         Maintain type-correctness of constants.
3493         * stor-layout.c (round_up, round_down): Special-case powers of 2.
3494
3495 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
3496
3497         * config/sparc/sparc.c (*_costs): Scale instruction costs
3498         by COSTS_N_INSNS.
3499         (sparc_rtx_costs): Adjust as appropriate.
3500
3501 2004-07-09  Jan Beulich  <jbeulich@novell.com>
3502
3503         * config/i386/mm3dnow.h: New.
3504         * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
3505
3506 2004-07-09  Richard Henderson  <rth@redhat.com>
3507
3508         * simplify-rtx.c (simplify_const_relational_operation): Only
3509         look at bounds of scalar integers.
3510
3511 2004-07-09  Jan Beulich  <jbeulich@novell.com>
3512
3513         * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
3514
3515 2004-07-09  Andrew Pinski  <apinski@apple.com>
3516
3517         * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
3518         always referenced.
3519         (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
3520         UOBJC_METACLASS_decl.
3521
3522 2004-07-09  James E Wilson  <wilson@specifixinc.com>
3523
3524         PR target/16364
3525         * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
3526         do return a parallel if hfa_mode == XFmode and mode == TImode.
3527
3528 2004-07-09  Jan Beulich  <jbeulich@novell.com>
3529
3530         * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
3531         permissible for unary plus.
3532
3533 2004-07-09  Jan Beulich  <jbeulich@novell.com>
3534
3535         * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
3536         (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
3537         (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
3538         (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
3539         BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
3540         * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
3541         BUILTIN_POPCOUNTxxx): Arguments are unsigned.
3542         (BUILTIN_xxxIMAX): New.
3543         * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
3544         BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
3545         BUILT_IN_PARITYIMAX.
3546
3547 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
3548
3549         * config/sparc/sparc.h (processor_costs): Define.
3550         (sparc_costs): Declare.
3551         * config/sparc/sparc.c (cypress_costs, supersparc_costs,
3552         hypersparc_costs, sparclet_costs, ultrasparc_costs,
3553         ultrasparc3_costs): New.
3554         (sparc_override_options): Set sparc_costs as appropriate.
3555         (sparc_rtx_costs): Use sparc_costs instead of messy
3556         conditionals.
3557
3558 2004-07-09  Steven Bosscher  <stevenb@suse.de>
3559
3560         * doc/md.texi (Processor pipeline description): Mention that
3561         the old pipeline description is deprecated.
3562
3563         * config/rs6000/7450.md (automaton ppc7450): Split up, move
3564         mciu_7450 function unit to...
3565         (automaton ppc7450mciu): ...new automaton.
3566
3567         * haifa-sched.c (insert_schedule_bubbles_p): Remove.
3568         (schedule_block): Don't consider inserting bubbles.
3569         (sched_init): Don't initialize DFA bubbles.
3570         * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
3571         TARGET_SCHED_DFA_BUBBLE): Remove.
3572         * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
3573         * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
3574         TARGET_SCHED_DFA_BUBBLE): Remove documentation.
3575
3576         * stmt.c (conditional_context): Remove prototype.
3577         * tree.h (conditional_context): Remove.
3578         * tree-cfg.c (pre_insert_on_edge): Remove.
3579
3580         * c-common.h (c_expand_asm_operands): Remove prototype.
3581         * c-typeck.c (c_expand_asm_operands): Remove.
3582
3583 2004-07-09  Jan Beulich  <jbeulich@novell.com>
3584
3585         * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
3586         their base modes. CTImode, TCmode, and XCmode must be passed in memory.
3587         TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
3588         and V8QI are class SSE. All sufficiently small remaining vector modes
3589         must be passed in one or two integer registers.
3590         (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
3591         returned in memory.
3592         (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
3593         __builtin_ia32_pmuludq128 have non-uniform argument and return types
3594         and must thus be handled explicitly.
3595         * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
3596         MMX and XMM regs.
3597         (movv8qi_internal, movv4hi_internal, movv2si_internal,
3598         movv2sf_internal): Permit moving between MMX and XMM registers (since
3599         MMX areguments and return values are passed in XMM registers).
3600         (sse2_umulsidi3): Correct type and mode.
3601
3602 2004-07-09  Richard Henderson  <rth@redhat.com>
3603
3604         * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
3605
3606 2004-07-09  Eric Christopher  <echristo@redhat.com>
3607
3608         * config/rs6000/40x.md: Split into two automatons.
3609
3610 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
3611             Andrew Pinski  <apinski@apple.com>
3612
3613         * c-opts.c (c_common_post_options): Force unit-at-a-time mode
3614         on when we have more than one input file.
3615         (c_common_parse_file): Restore loop over all input files.
3616         Clarify diagnostic for -dy when YYDEBUG wasn't defined.
3617
3618         * c-decl.c (set_type_context): New function.
3619         (pop_scope): Use it to set context of types.  When we
3620         encounter a TYPE_DECL, set the context of the attached type too.
3621         (pop_file_scope): Don't call cpp_undef_all here.
3622         (diagnose_mismatched_decls): Do not complain about a second
3623         definition of an 'extern inline' function if it's not in the
3624         same translation unit.  Do not complain about inline
3625         declaration after use if the use was in a different
3626         translation unit.
3627         (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
3628         (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
3629         the external scope.
3630         (pushdecl_top_level): Likewise.
3631         (grokdeclarator): Clarify what is going on with setting
3632         DECL_EXTERNAL on function types, a little.
3633         (c_write_global_declarations): Don't do anything if
3634         -fsyntax-only or errors have been encountered.
3635
3636 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
3637
3638         * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
3639
3640 2004-07-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3641
3642         PR target/16459
3643         * pa.c (output_indirect_call): Use %r2 as the link register when
3644         calling $$dyncall with a pc-relative branch.
3645
3646 2004-07-08  Gerald Pfeifer  <gerald@pfeifer.com>
3647
3648         * doc/install.texi (Binaries): Mention OpenPKG.
3649
3650 2004-07-09  Diego Novillo  <dnovillo@redhat.com>
3651
3652         Fix PR tree-optimization/15555
3653         * tree-dfa.c (dump_variable): If the variable is a pointer
3654         SSA_NAME, also dump its points-to information.
3655         * tree-flow.h (struct ptr_info_def): Add field
3656         is_dereferenced.
3657         (dump_points_to_info_for): Declare.
3658         (debug_points_to_info_for): Declare.
3659         * tree-optimize.c (init_tree_optimization_passes): Add a
3660         second alias analysis pass after DOM2.
3661         Move pass_del_pta to a later spot.
3662         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
3663         create a name tags when we find a dereferenced pointer.  Just
3664         mark the pointer dereferenced.
3665         (collect_points_to_info_for): Move code to clear points-to
3666         information to create_name_tags.
3667         (create_name_tags): New function.
3668         (compute_flow_sensitive_aliasing): Call it.
3669         (setup_pointers_and_addressables): Mark type tags for renaming
3670         here instead of ...
3671         (create_memory_tag): ... here.
3672         (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
3673         (dump_points_to_info_for): Declare extern.
3674         (debug_points_to_info_for): New function.
3675
3676 2004-07-09  Paolo Bonzini  <bonzini@gnu.org>
3677
3678         * config/arc/arc.md: Switch to DFA-based scheduler description.
3679         * config/arc/arc.c: Switch to DFA-based scheduler description.
3680
3681 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
3682
3683         * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
3684         pointer.
3685
3686 2004-07-09  Richard Henderson  <rth@redhat.com>
3687
3688         * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
3689         * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
3690         (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
3691         * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
3692
3693         * config/v850/v850-protos.h (v850_va_arg): Remove.
3694         * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
3695         (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
3696         * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
3697         (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
3698         (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
3699
3700 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
3701
3702         PR target/12133
3703         * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
3704         and DImode to use +/-4k offset.
3705
3706 2004-07-09  Richard Henderson  <rth@redhat.com>
3707
3708         * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
3709         Remove.
3710         * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
3711         (xstormy16_gimplify_va_arg_expr): Rewrite from
3712         xstormy16_expand_builtin_va_arg.
3713         * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
3714
3715         * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
3716         * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
3717
3718         * config/sh/sh-protos.h (sh_va_arg): Remove.
3719         * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
3720         (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
3721         * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
3722
3723         * config/pa/pa-protos.h (hppa_va_arg): Remove.
3724         * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
3725         (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
3726         * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
3727
3728         * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
3729         * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
3730         (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
3731         * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
3732
3733 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
3734
3735         * config/sparc/sparc.md (return): Rewrite length formula.
3736         * config/sparc/sparc.c (output_return): Pass 1 as 5th
3737         argument to final_scan_insn when in a delay slot.
3738         (output_sibcall): Likewise.
3739
3740 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
3741
3742         * arm.c (arm_cpp_interwork): New variable.
3743         (arm_override_options): Set it if TARGET_INTERWORK was on the command
3744         line.
3745         * arm.h (arm_cpp_interwork): Declare it.
3746         (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
3747         __THUMB_INTERWORK__ in the preprocessor.
3748
3749 2004-07-09  Nathan Sidwell  <nathan@codesourcery.com>
3750
3751         * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
3752
3753 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
3754
3755         PR target/16416
3756         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
3757         Override default settings to account for -m32 and -m64.
3758
3759 2004-07-08  Randolph Chung  <tausq@debian.org>
3760
3761         * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
3762
3763 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
3764
3765         * builtins.c (fold_builtin_strncpy): Make sure len is a constant
3766         before comparing it as such.
3767
3768 2004-07-08  Richard Henderson  <rth@redhat.com>
3769
3770         * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
3771         temporary.  Use bit arithmetic to align.
3772
3773 2004-07-08  Jerry Quinn  <jlquinn@optonline.net>
3774
3775         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
3776         nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
3777         NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
3778         * bb-reorder.c (mark_bb_for_unlikely_executed_section,
3779         add_labels_and_missing_jumps, find_jump_block,
3780         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
3781         Likewise.
3782         * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
3783         link_btr_uses, move_btr_def): Likewise.
3784         * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
3785         expand_builtin_expect_jump): Likewise.
3786         * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
3787         * calls.c (expand_call, emit_library_call_value_1): Likewise.
3788         * cfganal.c (forwarder_block_p): Likewise.
3789         * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
3790         make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
3791         find_bb_boundaries): Likewise.
3792         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
3793         merge_blocks_move_predecessor_nojumps,
3794         merge_blocks_move_successor_nojumps, insns_match_p,
3795         flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
3796         try_optimize_cfg): Likewise.
3797         * cfgexpand.c (expand_block, construct_exit_block): Likewise.
3798         * cfglayout.c (skip_insns_after_block, label_for_bb,
3799         record_effective_endpoints, insn_locators_initialize,
3800         fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
3801         * cfgmainloop.c (create_loop_notes): Likewise.
3802         * cfgrtl.c (delete_insn, delete_insn_chain,
3803         create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
3804         update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
3805         block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
3806         redirect_branch_edge, force_nonfallthru_and_redirect,
3807         rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
3808         rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
3809         update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
3810         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
3811         cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
3812         cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
3813         need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
3814         * combine.c (combine_instructions, can_combine_p, try_combine,
3815         find_split_point, record_dead_and_set_regs, reg_dead_at_p,
3816         distribute_notes, distribute_links, insn_cuid): Likewise.
3817         * cse.c (fold_rtx, cse_insn, cse_around_loop,
3818         invalidate_skipped_block, cse_set_around_loop,
3819         cse_end_of_basic_block, cse_main, cse_basic_block,
3820         cse_condition_code_reg): Likewise.
3821         * cselib.c (cselib_process_insn): Likewise.
3822         * ddg.c (create_ddg): Likewise.
3823         * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
3824         Likewise.
3825         * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
3826         gen_label_die, dwarf2out_var_location): Likewise.
3827         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
3828         next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
3829         last_call_insn, active_insn_p, next_label, prev_label,
3830         link_cc0_insns, next_cc0_user, try_split, add_insn_after,
3831         add_insn_before, remove_insn, add_function_usage_to,
3832         reorder_insns, find_line_note, remove_unnecessary_notes,
3833         emit_insn_after_1, classify_insn): Likewise.
3834         * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
3835         connect_post_landing_pads, sjlj_mark_call_sites,
3836         sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
3837         can_throw_internal, can_throw_external, set_nothrow_function_flags,
3838         convert_to_eh_region_ranges): Likewise.
3839         * explow.c (optimize_save_area_alloca): Likewise.
3840         * expr.c (expand_expr_real): Likewise.
3841         * final.c (insn_current_reference_address, compute_alignments,
3842         shorten_branches, final, scan_ahead_for_unlikely_executed_note,
3843         final_scan_insn, output_asm_label, leaf_function_p): Likewise.
3844         * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
3845         propagate_block_delete_insn, propagate_one_insn,
3846         init_propagate_block_info, propagate_block, libcall_dead_p,
3847         mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
3848         Likewise.
3849         * function.c (instantiate_virtual_regs, reorder_blocks_1,
3850         expand_function_start, expand_function_end, contains,
3851         thread_prologue_and_epilogue_insns,
3852         reposition_prologue_and_epilogue_notes): Likewise.
3853         * gcse.c (constprop_register, bypass_conditional_jumps,
3854         insert_insn_end_bb, gcse_after_reload): Likewise.
3855         * genemit.c (gen_expand, gen_split): Likewise.
3856         * genpeep.c (gen_peephole, main): Likewise.
3857         * global.c (build_insn_chain): Likewise.
3858         * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
3859         * haifa-sched.c (unlink_other_notes, unlink_line_notes,
3860         get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
3861         restore_line_notes, rm_redundant_line_notes, rm_other_notes,
3862         ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
3863         * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
3864         cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
3865         merge_if_block, block_jumps_and_fallthru_p, find_if_block,
3866         dead_or_predicable): Likewise.
3867         * integrate.c (try_constants): Likewise.
3868         * jump.c (rebuild_jump_labels, cleanup_barriers,
3869         purge_line_number_notes, init_label_info, mark_all_labels,
3870         squeeze_notes, get_label_before, get_label_after,
3871         reversed_comparison_code_parts, simplejump_p, pc_set,
3872         returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
3873         delete_barrier, delete_prior_computation, delete_computation,
3874         delete_related_insns, delete_for_peephole, redirect_jump):
3875         Likewise.
3876         * lcm.c (optimize_mode_switching): Likewise.
3877         * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
3878         Likewise.
3879         * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
3880         * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
3881         * loop-iv.c (simplify_using_assignment): Likewise.
3882         * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
3883         libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
3884         find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
3885         loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
3886         check_insn_for_givs, check_final_value, update_giv_derive,
3887         basic_induction_var, product_cheap_p, check_dbra_loop,
3888         loop_insn_first_p, last_use_this_basic_block,
3889         canonicalize_condition, get_condition, loop_regs_scan, load_mems,
3890         try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
3891         * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
3892         sms_schedule_by_order): Likewise.
3893         * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
3894         * postreload.c (reload_cse_simplify_operands, reload_combine,
3895         reload_cse_move2add): Likewise.
3896         * predict.c (can_predict_insn_p, estimate_probability,
3897         expected_value_to_br_prob, process_note_predictions): Likewise.
3898         * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
3899         * profile.c (branch_prob): Likewise.
3900         * ra-build.c (live_out_1, livethrough_conflicts_bb,
3901         detect_webs_set_in_cond_jump): Likewise.
3902         * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
3903         ra_print_rtl_with_bb): Likewise.
3904         * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
3905         * recog.c (next_insn_tests_no_inequality, find_single_use,
3906         split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
3907         * reg-stack.c (next_flags_user, record_label_references,
3908         emit_swap_insn, swap_rtx_condition, subst_stack_regs,
3909         compensate_edge, convert_regs_1): Likewise.
3910         * regclass.c (scan_one_insn): Likewise.
3911         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
3912         regmove_optimize, fixup_match_1, single_set_for_csa,
3913         combine_stack_adjustments_for_block): Likewise.
3914         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
3915         * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
3916         find_equiv_reg): Likewise.
3917         * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
3918         reload_as_needed, emit_input_reload_insns, do_output_reload,
3919         delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
3920         Likewise.
3921         * reorg.c (find_end_label, emit_delay_sequence,
3922         delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
3923         get_jump_flags, rare_destination, mostly_true_jump,
3924         try_merge_delay_insns, redundant_insn, own_thread_p,
3925         fill_simple_delay_slots, fill_slots_from_thread,
3926         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
3927         dbr_schedule): Likewise.
3928         * resource.c (find_basic_block, next_insn_no_annul,
3929         find_dead_or_set_registers, mark_target_live_regs): Likewise.
3930         * rtl.h (RTX_PREV): Likewise.
3931         * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
3932         no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
3933         reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
3934         find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
3935         tablejump_p, computed_jump_p, insns_safe_to_move_p,
3936         find_first_parameter_load, can_hoist_insn_p): Likewise.
3937         * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
3938         sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
3939         * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
3940         schedule_ebbs): Likewise.
3941         * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
3942         is_conditionally_protected, can_schedule_ready_p,
3943         add_branch_dependences, debug_dependencies): Likewise.
3944         * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
3945         Likewise.
3946         * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
3947         reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
3948         set_dominates_use, ujump_to_loop_cont): Likewise.
3949         * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
3950         * varasm.c (output_constant_pool_1): Likewise.
3951
3952 2004-07-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3953
3954         * tree-scalar-evolution.c: New file.
3955         * tree-scalar-evolution.h: New file.
3956         * tree-ssa-loop-niter.c: New file.
3957         * Makefile.in (SCEV_H): New.
3958         (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
3959         * cfgloop.h (struct loop): Add bounds field.
3960         * tree-flow.h (struct tree_niter_desc): New type.
3961         (number_of_iterations_cond, number_of_iterations_exit,
3962         loop_niter_by_eval, find_loop_niter_by_eval,
3963         estimate_numbers_of_iterations, can_count_iv_in_wider_type,
3964         free_numbers_of_iterations_estimates): Declare.
3965         * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
3966         * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
3967         * doc/invoke.texi (max-iterations-to-track): Document.
3968
3969 2004-07-08  Kaz Kojima  <kkojima@gcc.gnu.org>
3970
3971         * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
3972         * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
3973         (MODE_AFTER): Add cast appropriately.
3974         * config/sh/sh.md (movdi splitter): Likewise.
3975         (casesi_worker_2): Add const qualifier appropriately.
3976         (eh_return): Remove unused variable.
3977         (insv): Initialize v;
3978
3979 2004-07-08  Richard Henderson  <rth@redhat.com>
3980
3981         * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
3982         * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
3983         (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
3984         * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
3985         (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
3986
3987         * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
3988         * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
3989         (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
3990         * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
3991
3992         * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
3993         * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
3994         (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
3995         * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
3996
3997         * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
3998         * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
3999         (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
4000         * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
4001
4002         * config/i860/i860-protos.h (i860_va_arg): Remove.
4003         * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
4004         (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
4005         * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
4006
4007 2004-05-31  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
4008
4009         * system.h: Prototype getpagesize if missing.
4010         * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
4011         * configure: Regenerate.
4012         * config.in: Regenerate.
4013
4014 2004-07-08  Richard Henderson  <rth@redhat.com>
4015
4016         * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
4017         * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
4018         (fr30_gimplify_va_arg_expr): New.
4019         (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
4020         * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
4021
4022 2004-07-08  Vladimir Makarov  <vmakarov@redhat.com>
4023
4024         PR target/16414
4025         * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
4026         of asm_noperands result.
4027
4028 2004-07-08  Richard Henderson  <rth@redhat.com>
4029
4030         * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
4031         * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
4032         (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
4033         * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
4034
4035 2004-07-08  Richard Henderson  <rth@redhat.com>
4036
4037         * builtins.c (ind_gimplify_va_arg_expr): New.
4038         * tree.h (ind_gimplify_va_arg_expr): Declare.
4039         * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
4040
4041 2004-07-08  Jan Beulich  <jbeulich@novell.com>
4042
4043         * expmed.c (extract_bit_field): Correct condition to use vec_extract
4044         patterns also on vector elements other than the first one.
4045         * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
4046         break statements.
4047
4048 2004-07-08  Geoffrey Keating  <geoffk@apple.com>
4049
4050         * config/rs6000/darwin-ldouble.c: Correct reference
4051         to the Linnainmaa paper.
4052
4053 2004-07-08  Richard Henderson  <rth@redhat.com>
4054
4055         * config/arc/arc-protos.h (arc_va_arg): Remove.
4056         * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
4057         (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
4058         * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
4059
4060         * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
4061         * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
4062         (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
4063         * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
4064
4065 2004-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4066
4067         * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
4068
4069 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
4070
4071         * c-decl.c (static_ctors, static_dtors): Make static.
4072         (pop_file_scope): Call c_common_write_pch and
4073         cgraph_finalize_compilation_unit here.
4074         (build_cdtor): Moved here from c-objc-common.c; simplify.
4075         (c_write_global_declarations_1): Clarify comment.
4076         (c_write_global_declarations): Close the external scope before
4077         doing anything else.  Call build_cdtor, cgraph_optimize, and
4078         mudflap_finish_file here.
4079         * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
4080         Clarify comment.
4081         * c-objc-common.c: No need to include cgraph.h.
4082         (build_cdtor): Moved to c-decl.c.
4083         (c_objc_common_finish_file): Delete.
4084         * c-tree.h: Update to match.
4085         * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
4086         (generate_static_references): Set TREE_USED before calling finish_decl.
4087         Eliminate unnecessary dummy declaration.  Call rest_of_decl_compilation
4088         on the static_instances_decl.
4089
4090 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
4091
4092         * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
4093         decls when there is only one input translation unit.
4094         * langhooks.c (lhd_set_decl_assembler_name): Partially revert
4095         change of 2004-07-05; do not treat declarations with
4096         DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
4097         * opts.c (cur_in_fname): Delete.
4098         * opts.h: Likewise.
4099         * tree.c: Revert changes of 2004-07-05; no special treatment
4100         for TRANSLATION_UNIT_DECLs.
4101         * Makefile.in (tree.o): Update dependencies.
4102
4103 2004-07-08  Roger Sayle  <roger@eyesopen.com>
4104
4105         * builtins.c (fold_builtin_strcpy): Merge functionality from
4106         simplify_builtin_strcpy.  Add additional len argument.  No longer
4107         static.  Remove function prototype.
4108         (fold_builtin_strncpy): Likewise integrate functionality from
4109         simplify_builtin_strncpy.  Add additional slen argument.  No
4110         longer static.  Remove function prototype.
4111         (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
4112         (simplify_builtin_fputs): Rename to fold_builtin_fputs.  Change
4113         types of "ignore" and "unlocked" parameters to bool.
4114         (fold_builtin_1):  Add additional ignore argument.  Call renamed
4115         fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
4116         builtins.  Update arguments to fold_builtin_strncpy and
4117         fold_builtin_strcpy.  Add function prototype.
4118         (fold_builtin): Add additional Boolean ignore argument to pass
4119         to fold_builtin_1.
4120         (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
4121         and fold_builtin_strncpy instead of simplify_builtin_fputs,
4122         simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
4123
4124         * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
4125         simplify_builtin_strncpy): Delete function prototypes.
4126         * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
4127         fold_builtin_strncpy): Add function prototypes here.
4128         (fold_builtin): Update function prototype with new "bool ignore".
4129
4130         * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
4131         (ccp_fold_builtin):  Update call to fold_builtin.  Call
4132         fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
4133         instead of simplify_builtin_fputs, simplify_builtin_strcpy and
4134         simplify_builtin_strncpy respectively.
4135         * fold-const.c (fold): Update call to fold_builtin.
4136
4137 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
4138
4139         * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
4140         to strcpy.
4141
4142         * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
4143         (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
4144         (FUNCTION_ARG_CALLEE_COPIES): Likewise.
4145         * calls.c: Remove ifdefs of macros above.
4146         * functions.c: Likewise.
4147         * expr.c: Likewise.
4148
4149 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
4150
4151         * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
4152         (arch attribute): Delete.
4153         (current_function_calls_alloca attribute): Rename into calls_alloca.
4154         (calls_eh_return): New attribute.
4155         (leaf_function): Likewise.
4156         (length attribute): Fix formula for sibcalls.
4157         (return insn): Correctly compute the 'length' attribute.
4158         (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
4159
4160 2004-07-08  Richard Henderson  <rth@redhat.com>
4161
4162         * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
4163         (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
4164         (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
4165         * tree-eh.c (lower_eh_constructs_1): Likewise.
4166         * tree-sra.c (sra_walk_modify_expr): Likewise.
4167         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
4168         (eliminate_unnecessary_stmts): Likewise.
4169         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
4170         * tree-tailcall.c (optimize_tail_call): Likewise.
4171         * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
4172
4173 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
4174             Jakub Jelinek  <jakub@redhat.com>
4175
4176         * config/i386/i386.c (override_options): Enable
4177         SSE prefetches with -mtune, as long as we are
4178         compiling for i686 or higher.  All i686 processors
4179         accept SSE prefetches as NOPS, some i586's don't.
4180
4181 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
4182
4183         PR target/10567
4184         * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
4185
4186 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
4187
4188         * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
4189         the handling of clobbering ASM_EXPRs.
4190
4191 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
4192
4193         PR target/16430
4194         * config/sparc/sparc.c (function_value): In 64-bit mode,
4195         return the aggregates larger than 16 bytes like unions.
4196
4197 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
4198
4199         PR target/16199
4200         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
4201         'temp' is zero, generate new pseudos as needed and emit the
4202         sequence of insns in single-assignment form.  Resync comments
4203         with code.
4204         (sparc_emit_set_const64): Pass zero as 'temp' argument to above
4205         function before reload.
4206
4207 2004-07-08  Nathan Sidwell  <nathan@codesourcery.com>
4208
4209         * vec.c (vec_assert_fail): Remove duplicate 'function'.
4210
4211         * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
4212
4213         * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
4214         Allocation is signed.
4215         (VEC_reserve): Return flag, allocation is signed.
4216
4217 2004-07-08  Richard Henderson  <rth@redhat.com>
4218
4219         * tree-ssa-ccp.c (fold_stmt): Get type directly from
4220         OBJ_TYPE_REF_OBJECT.
4221
4222 2004-07-08  Joseph S. Myers  <jsm@polyomino.org.uk>
4223             Neil Booth  <neil@daikokuya.co.uk>
4224
4225         PR c/2511
4226         PR c/3325
4227         * c-decl.c (finish_struct): Ensure bit-fields are given the
4228         correct type.
4229         * c-common.c (c_common_signed_or_unsigned_type): For C, require
4230         the precision to match as well as the mode.
4231         * expr.c (reduce_to_bit_field_precision): New function.
4232         (expand_expr_real_1): Reduce expressions of bit-field type to
4233         proper precision.
4234         * langhooks.h (reduce_bit_field_operations): New hook.
4235         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
4236         Define.
4237         * c-lang.c, objc/objc-lang.c
4238         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
4239         * objc/objc-act.c (check_ivars): Convert types to bit-field types
4240         before checking.
4241         * tree.c (build_nonstandard_integer_type): New function.
4242         * tree.h (build_nonstandard_integer_type): New prototype.
4243         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
4244         conversions between integer and boolean types as useless.
4245
4246 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
4247
4248         * c-common.c (c_common_nodes_and_builtins): Do not
4249         create __builtin_ptrdiff_t and __builtin_size_t.
4250
4251 2004-07-08  Andrew Pinski  <apinski@apple.com>
4252
4253         * Makefile.in (libbackend.o): Add -combine to the gcc
4254         command line.
4255
4256 2004-07-08  Nick Clifton  <nickc@redhat.com>
4257
4258         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
4259         Set to -Os.
4260
4261 2004-07-08  Richard Henderson  <rth@redhat.com>
4262
4263         * except.c (expand_eh_region_start, expand_eh_region_end,
4264         expand_eh_handler, expand_eh_region_end_cleanup,
4265         expand_start_all_catch, expand_start_catch, expand_end_catch,
4266         expand_end_all_catch, expand_eh_region_end_allowed,
4267         expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
4268         expand_eh_region_end_fixup): Remove.
4269         * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
4270         cleanups, outer_cleanups, label_chain, exception_region.
4271         (struct goto_fixup): Remove stack_level, cleanup_list_list.
4272         (struct label_chain): Remove.
4273         (struct stmt_status): Remove x_stack_block_stack.
4274         (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
4275         fixup_gotos, save_stack_pointer, expand_decl_cleanup,
4276         expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
4277         end_cleanup_deferral, last_cleanup_this_contour,
4278         containing_blocks_have_cleanups_or_stack_level,
4279         any_pending_cleanups): Remove.
4280         (expand_null_return_1): Take no arguments.
4281         (expand_label, expand_naked_return, expand_return,
4282         expand_start_bindings_and_block, expand_end_bindings, expand_decl,
4283         expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
4284         expand_end_case_type): Don't use any of them.
4285         * calls.c (expand_call): Likewise.
4286         * dojump.c (do_jump): Likewise.
4287         * function.c (expand_function_end): Likewise.
4288         * expr.c (store_expr, expand_expr_real_1): Likewise.
4289         (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
4290         (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
4291         CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
4292         EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
4293         * fold-const.c (fold_checksum_tree): Use first_rtl_op.
4294         * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
4295         * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
4296         for WITH_CLEANUP_EXPR.
4297         (gimple_push_cleanup): Likewise.
4298         * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
4299         * print-tree.c (print_node): Likewise.
4300         * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
4301         * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
4302         (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
4303         * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
4304         (GOTO_SUBROUTINE_EXPR): Remove.
4305         * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
4306         (DECL_TOO_LATE): Remove.
4307         * except.h, tree.h: Update decls.
4308
4309 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
4310
4311         * explow.c (optimize_save_area_alloca): Do not accept parameters.
4312         * passes.c (rest_of_handle_final): Handle symout.
4313         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
4314         Push timevar here.
4315         (rest_of_handle_sched): Break out SMS.  Remove ifs for
4316         flag_schedule_insns and flag_modulo_sched.
4317         (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
4318         collect at the end.
4319         (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
4320         (rest_of_handle_partition_blocks, rest_of_handle_sms,
4321         rest_of_handle_if_after_reload, rest_of_handle_peephole2,
4322         rest_of_handle_mode_switching, rest_of_handle_jump,
4323         rest_of_handle_guess_branch_prob, rest_of_handle_eh,
4324         rest_of_handle_jump2, rest_of_handle_postreload,
4325         rest_of_handle_flow2, rest_of_clean_state,
4326         rest_of_handle_shorten_branches,
4327         rest_of_handle_prologue_epilogue,
4328         rest_of_handle_branch_target_load_optimize): New.
4329         (rest_of_compilation): Call the above.  Remove ggc_collect
4330         calls moved to rest_of_handle_*.
4331         * rtl.h (optimize_save_area_alloca): Do not accept parameters.
4332
4333         * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
4334         * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
4335         * except.h (set_nothrow_function_flags): Update comment.
4336         * function.c (current_function_nothrow): Remove.
4337         * output.h (current_function_nothrow): Remove.
4338         * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
4339         * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
4340
4341 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
4342
4343         PR bootstrap/16326
4344         * reorg.c: Revert 2004-06-30 change.
4345         (find_end_label): If HAVE_epilogue and !HAVE_return,
4346         return 0 instead of creating a label at the end of the insn chain.
4347         (optimize_skip): Account for the failure mode of find_end_label.
4348         (fill_simple_delay_slots): Likewise.
4349         (fill_slots_from_thread): Likewise.
4350         (relax_delay_slots): Likewise.
4351
4352 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
4353
4354         * tree-flow.h (addressable_vars): Declare.
4355         * tree-ssa-alias.c (addressable_vars): Define.
4356         (setup_pointers_and_addressables): Add addressable variables
4357         to addressable_vars.
4358         * tree-ssa-operands.c (get_stmt_operands): Move
4359         handling of ASM_EXPRs ...
4360         (get_asm_expr_operands): ... here.
4361         When the ASM_EXPR clobbers memory, also clobber addressable
4362         variables.
4363         * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
4364         (delete_tree_ssa): Reset addressable_vars.
4365
4366 2004-07-07  Jan Beulich  <jbeulich@novell.com>
4367             Richard Henderson  <rth@redhat.com>
4368
4369         * varasm.c (assemble_variable): Use assemble_zeros for
4370         zero-initialized variables.
4371         (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
4372         for SECCAT_BSS and SECCAT_TBSS.
4373
4374 2004-07-07  Jan Beulich  <jbeulich@novell.com>
4375
4376         * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
4377
4378         * expmed.c (emit_store_flag): Also special-case double-word
4379         (in-)equality comparison against -1.
4380
4381         * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
4382         passing arguments the containers for which are registers.
4383
4384         * calls.c (emit_library_call_value_1): Use mode of function parameter
4385         rather than that of argument since constants have none.
4386
4387 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
4388
4389         Introduce H8SX support.
4390         * expr.c (expand_strcpy): Renamed and moved to...
4391         * builtins.c (expand_movstr): ... here.  Tweak.
4392         (expand_builtin_strcpy): Adjust.  Use movstr if len can't be
4393         computed or has side effects.
4394         (expand_builtin_stpcpy): Likewise.  Use strcpy if return value is
4395         unused, or if mempcpy fails.  Adjust the return value in the
4396         latter case.  Use movstr if everything else fails.
4397         * doc/md.texi (movstr): Document.
4398         (movmemM, clrmemM): Fix explanation of memory block operands.
4399         * config/h8300/h8300.md (stpcpy): Renamed to...
4400         (movstr): ... this.  Adjust.
4401         2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
4402         * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
4403         movmem* and clrstr* to clrmem*.
4404         2004-06-27  Alexandre Oliva  <aoliva@redhat.com>
4405         * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
4406         GENERAL_REGS, always.
4407         (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
4408         getting the stack pointer as addr.
4409         * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
4410         from general_operand_dst.
4411         * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
4412         variant of...
4413         (movmd_internal): ... this.  Add modes to operands.  Disparage `D'
4414         instead of requiring it to match only before reload.
4415         (stpcpy_internal_normal): New, normal-mode variant of...
4416         (stpcpy_internal): ... this.  Add modes to operands.  Disparage
4417         `D' instead of requiring it to match only before reload.
4418         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
4419         mode argument.
4420         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
4421         * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
4422         h8300_get_index.
4423         * config/h8300/h8300.md (attr type): Add call.
4424         (attr can_delay): If type is call, set it no.
4425         (call, call_value): Set type to call.
4426         2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
4427         * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
4428         2004-06-16  Alexandre Oliva  <aoliva@redhat.com>
4429         * tree.c (get_narrower): Don't narrow integral types into
4430         non-integral types.
4431         * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
4432         frame_size *before* the first use.
4433         * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
4434         on input.
4435         (peephole2): Don't widen instructions that push SP.  Move
4436         decrement of SP to the end of all stm-generating peepholes.
4437         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
4438         * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
4439         and OR to set it to all ones.
4440         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
4441         * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
4442         (call, call_value): Set can_delay to "no".
4443         2003-07-22  Richard Sandiford  <rsandifo@redhat.com>
4444         * config/h8300/h8300.md (extzv): Make subreg check more robust.
4445         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
4446         * config/h8300/h8300.md (*brabit): Remove.
4447         * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
4448         zero_extract.  Use bit_memory_operand as the predicate for
4449         operand 1 and 'WU' as the constraint.  Check the difference
4450         between the base length and the final one when deciding which
4451         type of branch to use.
4452         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
4453         * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
4454         Use convert_move to extend the result for TARGET_H8300SX.  Check
4455         for QImode memory references.  Optimize the case where the
4456         destination is a paradoxical subreg.
4457         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
4458         * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
4459         * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
4460         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
4461         * config/h8300/h8300.md: Include mova.md
4462         (length_table): Add mova and mova_zero.
4463         * config/h8300/h8300.c (print_operand): Handle '%o'.  Print a length
4464         after all constant addresses for '%R', '%X', '%T' and '%S'.
4465         (h8300_mova_length): New function.
4466         (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
4467         * config/h8300/t-h8300 (mova.md): Generate from genmova.sh.  Add to
4468         dependencies for s-config, etc.
4469         * config/h8300/gemova.sh: New file.
4470         * config/h8300/mova.md: Generated.
4471         2003-07-20  Alexandre Oliva  <aoliva@redhat.com>
4472         * config/h8300/h8300.c (h8300_bitfield_length): New.
4473         (nibble_operand): Adjust.
4474         (h8300_binary_length): Handle conditional binary op.
4475         (h8300_insn_length_from_table): Handle bitfield and bitbranch.
4476         * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
4477         P#<X, respectively.  The original P is now IP4>X.  Introduced P#>0
4478         and P#<0, unused so far.  W and Y are now prefixes to multi-letter
4479         constraints.  WU is introduced as a variant of U that requires a
4480         mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
4481         * config/h8300/h8300.md (attr type): Added bitbranch.
4482         (attr length_table): Added bitfield and bitbranch.
4483         (attr length): Compute bitbranch length.
4484         (andqi): Separate pattern for H8300SX.  Use bfld for loading the
4485         least-significant bit of a byte.
4486         (brabit, brabc, brabs): New.
4487         (insv, extzv): Emit bfst and bfld on H8300SX.
4488         (bfld, bfst, seq, sne): New.
4489         (bstzhireg, cmpstz, bstz, bistz): New.
4490         (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
4491         (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
4492         2003-07-11  Richard Sandiford  <rsandifo@redhat.com>
4493         * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
4494         (h8sx_unary_memory_operator): New function.
4495         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
4496         (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
4497         * config/h8300/h8300.md: Add peepholes to combine reloads and
4498         arithmetic insns.
4499         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
4500         * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
4501         (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
4502         (and?i, ior?i, xor?i): Likewise.
4503         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
4504         * config/h8300/h8300.c: Move enums and prototypes to head of file.
4505         Various whitespace fixes.
4506         (h8300_constant_length): New function, split out from...
4507         (h8300_displacement_size): ...here.  Rename h8300_displacement_length.
4508         (h8300_classify_operand): Use IN_RANGE.
4509         (h8300_classify_operand): Use h8300_constant_length.
4510         (h8300_short_move_mem_p): Tighten size check.
4511         (h8sx_mergeable_memrefs_p): Tighten equality check.
4512         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
4513         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
4514         for -msx.
4515         * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
4516         * config/h8300/crtn.asm: Likewise.
4517         * config/h8300/lib1funcs.asm: Likewise.  Use 32-bit pointers
4518         if __H8300SX__ is defined.
4519         2003-06-27  Richard Sandiford  <rsandifo@redhat.com>
4520         * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
4521         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
4522         (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
4523         addresses as mode-dependent.
4524         * config/h8300/h8300.c (print_operand_address): Update call to
4525         h8300_get_index.
4526         (h8300_get_index): Take a mode argument.  Rework to fix an
4527         earlier misunderstanding.
4528         2003-06-26  Richard Sandiford  <rsandifo@redhat.com>
4529         * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
4530         into a register if TARGET_H8300SX.
4531         (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
4532         TARGET_H8300SX.  Also disable related define_splits.
4533         (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
4534         2003-06-23  Richard Sandiford  <rsandifo@redhat.com>
4535         * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
4536         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
4537         * config/h8300/h8300.h (OK_FOR_Z): New macro.
4538         (EXTRA_CONSTRAINT_STR): Check it.
4539         * config/h8300/h8300.c (h8300_classify_operand): Accept null
4540         class arguments.
4541         (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
4542         * config/h8300/h8300.md (length_table): Add mov_imm4.
4543         (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
4544         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
4545         * genattrtab.c (write_eligible_delay): Allow candidate_insn to
4546         be a label.
4547         * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
4548         * config/h8300/h8300.c (h8300_reorg): New function.
4549         (TARGET_MACHINE_DEPENDENT_REORG): Define.
4550         * config/h8300/h8300.md (length): Subtract the length of the
4551         delay slot from (pc) when checking the range of forward branches.
4552         (delay_slot, can_delay): New attributes.
4553         (define_delay): Add bra/s handling.
4554         (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
4555         (jump): Add delayed-branch handling.
4556         2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
4557         * expr.c (expand_strcpy): New function.
4558         * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
4559         (expand_builtin_stpcpy): Likewise.
4560         * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
4561         (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
4562         * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
4563         handling to improve register allocation for -fno-omit-frame-pointer.
4564         (h8sx_split_movmd): Delete, moving er6 handling into...
4565         (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
4566         * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
4567         (movmd): Add calls to copy_rtx.
4568         (movmd_internal): In the second alternative, allow the initial and
4569         final destination registers to be different .  Update the splitter
4570         accordingly.  Call h8300_swap_into_er6 and h8300_swap_out_of_er6
4571         instead of h8sx_split_movmd.
4572         (stpcpy, movsd): New expanders.
4573         (movsd_internal): New define_insn.
4574         2003-06-13  Richard Sandiford  <rsandifo@redhat.com>
4575         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
4576         (h8sx_emit_movmd, h8sx_split_movmd): Declare.
4577         * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
4578         and DESTINATION_REGS.
4579         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4580         (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
4581         (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
4582         (h8300_move_ratio): Declare.
4583         (MOVE_RATIO): Use it.
4584         * config/h8300/h8300.c (h8300_move_ratio): New variable.
4585         (h8300_init_once): Initialize it.
4586         (h8300_reg_class_from_letter): New function.
4587         (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
4588         (h8sx_emit_movmd, h8sx_split_movmd): New functions.
4589         * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
4590         (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
4591         (movstrsi, movmd): New expanders.
4592         (movmd_internal): New insn.
4593         2003-06-06  Richard Sandiford  <rsandifo@redhat.com>
4594         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
4595         2003-06-04  Richard Sandiford  <rsandifo@redhat.com>
4596         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
4597         * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
4598         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
4599         * config/h8300/h8300.c (nibble_operand): Fix warning.
4600         * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
4601         (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
4602         (movsf_h8300h): Disable for TARGET_H8300SX.
4603         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
4604         * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
4605         h8300_stm_parallel and h8300_return_parallel.
4606         * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
4607         h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
4608         h8300_stm_parallel, h8300_return_parallel): New functions.
4609         (h8300_expand_prologue): Don't enforce ldm/stm register alignment
4610         if TARGET_H8300SX.  Use h8300_push_pop.
4611         (h8300_expand_epilogue): Likewise.  Try to merge the return insn
4612         and final pop when generating h8sx code.  Always emit some form
4613         of return insn.
4614         * config/h8300/h8300.md: Don't enforce register alignment in
4615         stm peepholes if TARGET_H8300SX.
4616         (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
4617         (ldm_h8300s_[234], stm_h8300_[234]): Disable.
4618         (epilogue): Expect h8300_expand_epilogue to emit a return insn.
4619         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
4620         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
4621         (MULTILIB_DIRNAMES): Add a directory for it.
4622         (MULTILIB_MATCHES): Delete.
4623         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
4624         * final.c (walk_alter_subreg): Handle addresses with subregs
4625         inside a ZERO_EXTEND or AND.
4626         * config/h8300/h8300-protos.h (h8300_get_index): Declare.
4627         * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
4628         if TARGET_H8300SX.
4629         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
4630         * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
4631         @(dd,Rn.w) and @(dd,ERn.L).
4632         (h8300_displacement_size): Take the whole address as argument.
4633         (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
4634         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
4635         * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
4636         (h8sx_mergeable_memrefs_p): Declare.
4637         * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
4638         (HAVE_PRE_INCREMENT): Likewise.
4639         (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
4640         addresses for TARGET_H8300SX,
4641         * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
4642         and POST_DEC.
4643         (movb_length_table, movl_length_table): New tables.
4644         (movw_length_table): Define to movb_length_table.
4645         (h8300_displacement_size): New, split out from...
4646         (h8300_classify_address): ...here.  Handle pre/post inc/dec.
4647         (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
4648         (h8300_insn_length_from_table): Add cases for movb, movw and movl.
4649         (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
4650         (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
4651         (compute_plussi_length, compute_plussi_cc): Update accordingly.
4652         (h8sx_unary_shift_operator): Get the mode from the operator.
4653         (binary_shift_operator): Likewise.
4654         * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
4655         a memory reference, check whether the reference is offsettable.
4656         (length_table): Add movb, movw and movl.
4657         (movqi): Add new h8sx pattern.  Don't force one operand to be a
4658         register when generating h8sx code.
4659         (movhi, movsi, movsf): Likewise.
4660         (movstrictqi): Use the length_table attribute.
4661         (movstricthi): Likewise.  Add h8sx alternative for mov.w #xx:3,Rn.
4662         (addqi3): Split into a define_expand and define_insn.  Don't accept
4663         memory operands in the expander.  Use h8300_operands_match_p to
4664         check for matching operands in the define_insn.
4665         (subqi3, negqi2, one_cmplqi2): Likewise.
4666         (add[hs]i3): Don't accept memory operands in the expander.  Likewise
4667         in any patterns that are unused in h8sx code.  In the h8sx patterns,
4668         use h8300_operands_match_p to check whether operands match.
4669         (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
4670         one_cmpl[hs]i3): Likewise.
4671         (andqi3, iorqi3, xorqi3): Likewise.  Don't call fix_bit_operand
4672         in the expander.
4673         2003-05-23  Richard Sandiford  <rsandifo@redhat.com>
4674         * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
4675         (h8300_insn_length_from_table): Add a second parameter.
4676         (output_h8sx_shift): Declare.
4677         * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
4678         (EXTRA_CONSTRAINT): Replace with...
4679         (EXTRA_CONSTRAINT_STR): ...this.  Use OK_FOR_W and OK_FOR_Y.
4680         (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
4681         (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
4682         and h8sx_binary_shift_operator.
4683         * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
4684         for TARGET_H8300SX.
4685         (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
4686         (bit_memory_operand, fix_bit_operand): Likewise.
4687         (h8300_length_table_for_insn): Remove.
4688         (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
4689         instructions.
4690         (h8300_short_immediate_length, h8300_binary_length): New functions.
4691         (h8300_insn_length_from_table): Add an opcodes parameter.  Rework.
4692         (output_plussi): Use sub to add negative constants.
4693         (compute_plussi_length): Adjust accordingly.
4694         (h8sx_single_shift_type): New enum.
4695         (h8sx_single_shift, h8sx_unary_shift_operator,
4696         h8sx_binary_shift_operator, output_h8sx_shift): New functions.
4697         (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
4698         single h8sx instruction.  Return false in this case.
4699         * config/h8300/h8300.md (length_table): Add short_immediate.
4700         (length): Pass the operand array to h8300_insn_length_from_table.
4701         (adjust_length): Assume "no" for insns with a length_table attribute.
4702         (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
4703         (*addhi3_h8300hs): Don't use for h8sx.
4704         (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
4705         and sub.w #xx:3.
4706         (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
4707         1's predicate to nonimmediate_operand.  Only skip default expansion
4708         if expand_a_shift or expand_a_rotate returns true.  Add new patterns
4709         for single h8sx shift instructions.
4710         2003-05-22  Alexandre Oliva  <aoliva@redhat.com>
4711         * config/h8300/h8300.c (nibble_operand): Split out of...
4712         (reg_or_nibble_operand): ... this.
4713         * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
4714         * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
4715         umulhisi3): Introduce expand, and introduce separate insns for
4716         sign- or zero-extended REG and already-extended CONST_INT.
4717         2003-05-20  Richard Sandiford  <rsandifo@redhat.com>
4718         * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
4719         * config/h8300/h8300.md (subqi3): Generalize for h8sx.
4720         (subhi3): Likewise.  Don't accept immediates for operand 1.
4721         Remove the early clobber from second alternative of the h8300s pattern.
4722         (subsi3): Generalize for h8sx.  Force operand 2 into a register
4723         on plain h8300 targets.
4724         (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
4725         (subsi3_h8300h): Generalize for h8sx.
4726         (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
4727         2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
4728         * config/h8300/h8300.c (reg_or_nibble_operand): New.
4729         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
4730         (TARGET_H8300SXMUL): New.
4731         (CONST_OK_FOR_P): New.
4732         (CONST_OK_FOR_LETTER_P): Adjust.
4733         * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
4734         umulhisi3): Accept 4-bit immediate on H8SX.
4735         (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
4736         (udivsi3, divhi3, udivsi3, divsi3): New.
4737         2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
4738         * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
4739         * config/h8300/h8300.h (OK_FOR_Q): New macro.
4740         (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
4741         (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
4742         Add ADDRESSOF to the bit_operand entry.
4743         * config/h8300/h8300.c (h8300_dst_operand): New predicate.
4744         (h8300_src_operand): Likewise.
4745         (bit_operand): Check nonimmediate_operand rather than general_operand.
4746         Accept any nonimmediate_operand in h8sx code.
4747         (h8300_and_costs): Initialize operands[1].
4748         (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
4749         (h8300_operand_class): New enum.
4750         (h8300_length_table): New typedef.
4751         (addb_length_table, addw_length_table, addl_length_table,
4752         logicl_length_table): New tables.
4753         (logicb_length_table, logicw_length_table): New macros.
4754         (h8300_classify_operand, h8300_length_from_table,
4755         h8300_length_table_for_insn, h8300_unary_length,
4756         h8300_insn_length_from_table): New functions.
4757         (output_plussi): Only use adds and subs for register destinations.
4758         Disable redundant clause.
4759         (compute_plussi_cc): Likewise.
4760         (compute_plussi_length): Likewise.  Use h8300_length_from_table
4761         to work out the length of an insn.
4762         (output_logical_op): Only use narrower immediate instructions
4763         if the destination is a register.
4764         (compute_logical_op_cc): Likewise.
4765         (compute_logical_op_length): Likewise.  Use h8300_length_from_table.
4766         (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
4767         * config/h8300/h8300.md (length_table): New attribute.
4768         (length): When an instruction has a length_table attribute, use
4769         h8300_insn_length_from_table to calculate its default length.
4770         (cmpqi): Use h8300_dst_operand for the first operand and
4771         h8300_src_operand for the second.
4772         (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
4773         negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
4774         addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
4775         iorsi3, xorhi3, xorsi3): Likewise.
4776         (andqi3): Use h8300_src_operand for operand 2.  Adjust the condition
4777         so that it allows any combination of operands for TARGET_H8300SX.
4778         (iorqi3, xorqi3): Likewise.
4779         (cmpqi): Use the length_table attribute.
4780         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
4781         xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
4782         (cmpqi): Add 'Q' constraint.
4783         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
4784         iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
4785         2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
4786         * config/h8300/h8300.h (MASK_H8300SX): New macro.
4787         (TARGET_H8300S): True for both -ms and -msx.
4788         (TARGET_H8300SX): New macro.
4789         (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
4790         * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
4791         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
4792         * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
4793         [Temporary change.]
4794         2003-02-28  Alexandre Oliva  <aoliva@redhat.com>
4795         * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
4796         16-bit pointers and 32-bit ints.
4797         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
4798         CONST_DOUBLE with mode no wider than SImode.
4799         * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
4800         output operand.
4801         2003-02-27  Alexandre Oliva  <aoliva@redhat.com>
4802         * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
4803         or SUBREG thereof.
4804         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
4805         2003-02-22  Alexandre Oliva  <aoliva@redhat.com>
4806         * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
4807
4808 2004-05-28  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
4809
4810         * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
4811
4812 2004-07-07  Per Bothner  <per@bothner.com>
4813
4814         * flow.c (attempt_auto_inc):  Remove now-redundant PUT_CODE.
4815
4816 2004-07-07  Mike Stump  <mrs@apple.com>
4817
4818         * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
4819         * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
4820         (machopic_finish): Likewise.
4821
4822 2004-07-07  Richard Henderson  <rth@redhat.com>
4823
4824         * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
4825         through any value-preserving cast.
4826
4827 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
4828
4829         * function.c (assign_parm_find_data_types): Call
4830         FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
4831
4832 2004-07-07  Steven Bosscher  <stevenb@suse.de>
4833
4834         * tree-cfg.c (group_case_labels): Remove case labels that have
4835         the same target as the default case.
4836
4837 2004-07-07  Steven Bosscher  <stevenb@suse.de>
4838
4839         * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
4840         regardless of DECL_LANG_SPECIFIC being present or not.
4841         * tree.h (DECL_NUM_STMTS): Purge.
4842
4843 2004-07-07  Andrew Pinski  <apinski@apple.com>
4844
4845         * configure: Regenerate with the right autoconf.
4846
4847 2004-07-07  David Edelsohn  <edelsohn@gnu.org>
4848
4849         * ifcvt.c (total_bb_rtx_cost): New function.
4850         (find_if_case_1): Compare rtx_cost of basic block to cost of
4851         BRANCH_COST insns.
4852         (find_if_case_2): Same.
4853
4854 2004-07-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
4855
4856         PR target/10567
4857         * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
4858         (output_return): Likewise.
4859         (output_sibcall): Abort if !flag_delayed_branch.
4860         (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
4861         (emit_and_preserve): New function.
4862         (sparc_output_mi_thunk): Use it.  Honor flag_delayed_branch.  Emit an
4863         indirect jump to the thunked-to function if !flag_delayed_branch.
4864         * config/sparc/sparc.md (delayed_branch): New attribute.
4865         (load_pcrel_sym): Honor flag_delayed_branch.  Use above
4866         attribute to compute the length of the insn.
4867         (goto_handler_and_restore): Likewise.
4868
4869 2004-07-07  Andrew Pinski  <apinski@apple.com>
4870
4871         PR tree-optimization/15777
4872         * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
4873
4874         * expr.c (expand_expr_real_1): Fix formating.
4875         BUFFER_REF and IN_EXPR are dead.
4876         * fold-const.c (non_lvalue): BUFFER_REF is dead.
4877         * tree-inline.c (estimate_num_insns_1): Likewise.
4878         * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
4879         IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
4880         * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
4881
4882 2004-07-07  H.J. Lu  <hongjiu.lu@intel.com>
4883
4884         * collect2.c (dump_file): Don't call cplus_demangle if
4885         HAVE_LD_DEMANGLE is defined.
4886         (main): Pass "--demangle" to ld if no_demangle is not 0 and
4887         HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
4888         if HAVE_LD_DEMANGLE is defined.
4889
4890         * configure.ac (--with-demangler-in-ld): Added
4891         (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
4892         --with-demangler-in-ld is used.
4893         * config.in: Regenerated.
4894         * configure: Likewise.
4895
4896 2004-07-07  Roger Sayle  <roger@eyesopen.com>
4897
4898         * config/rs6000/rs6000.c (struct processor_costs): Add new fields
4899         for simple floating point operations "fp", double precision
4900         multiplication "dmul", and single and double precision division
4901         "sdiv" and "ddiv".  Update all CPU variant tables as appropriate.
4902         (ppc630_cost): New table split from ppc620_cost, to distinguish
4903         differences in floating point latencies.
4904         (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
4905         (rs6000_rtx_costs): Add support for single and double precision
4906         floating point addition, subtraction, multiplication, division,
4907         fused-multiply-add, fused-multiply-sub, negation, absolute value
4908         and negative absolute value.  Tweak MEM case to use prefered idiom.
4909
4910 2004-07-07  Richard Henderson  <rth@redhat.com>
4911
4912         * tree-flow-inline.h (may_propagate_copy): Move...
4913         * tree-ssa-copy.c (may_propagate_copy): ... here.  Fail if we
4914         attempt to copy between types requiring conversion.
4915         * tree-flow.h (may_propagate_copy): Update decl.
4916         * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
4917
4918 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
4919
4920         * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
4921         from -mtune= option.
4922
4923 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
4924
4925         * builtins.c: Rename movstr*, except for movstrict*, to
4926         movmem* and clrstr* to clrmem*.
4927         * expr.c: Likewise.
4928         * expr.h: Likewise.
4929         * genopinit.c: Likewise.
4930         * integrate.c: Likewise.
4931         * local-alloc.c: Likewise.
4932         * optabs.c: Likewise.
4933         * optabs.h: Likewise.
4934         * config/alpha/alpha.h: Likewise.
4935         * config/alpha/alpha.md: Likewise.
4936         * config/arm/arm-protos.h: Likewise.
4937         * config/arm/arm.c: Likewise.
4938         * config/arm/arm.md: Likewise.
4939         * config/avr/avr.md: Likewise.
4940         * config/c4x/c4x.c: Likewise.
4941         * config/c4x/c4x.md: Likewise.
4942         * config/frv/frv.md: Likewise.
4943         * config/i386/i386-protos.h: Likewise.
4944         * config/i386/i386.c: Likewise.
4945         * config/i386/i386.h: Likewise.
4946         * config/i386/i386.md: Likewise.
4947         * config/i860/i860.c: Likewise.
4948         * config/i860/i860.md: Likewise.
4949         * config/ip2k/ip2k.md: Likewise.
4950         * config/ip2k/libgcc.S: Likewise.
4951         * config/ip2k/t-ip2k: Likewise.
4952         * config/m32r/m32r.c: Likewise.
4953         * config/m32r/m32r.md: Likewise.
4954         * config/mcore/mcore.md: Likewise.
4955         * config/mips/mips.c: Likewise.
4956         * config/mips/mips.md: Likewise.
4957         * config/ns32k/ns32k.c: Likewise.
4958         * config/ns32k/ns32k.h: Likewise.
4959         * config/ns32k/ns32k.md: Likewise.
4960         * config/pa/pa.c: Likewise.
4961         * config/pa/pa.md: Likewise.
4962         * config/pdp11/pdp11.h: Likewise.
4963         * config/pdp11/pdp11.md: Likewise.
4964         * config/rs6000/rs6000.c: Likewise.
4965         * config/rs6000/rs6000.md: Likewise.
4966         * config/s390/s390-protos.h: Likewise.
4967         * config/s390/s390.c: Likewise.
4968         * config/s390/s390.md: Likewise.
4969         * config/sh/lib1funcs.asm: Likewise.
4970         * config/sh/sh.c: Likewise.
4971         * config/sh/sh.md: Likewise.
4972         * config/sh/t-sh: Likewise.
4973         * config/sparc/sparc.h: Likewise.
4974         * config/vax/vax.md: Likewise.
4975         * config/xtensa/xtensa.c: Likewise.
4976         * config/xtensa/xtensa.md: Likewise.
4977         * doc/invoke.texi: Likewise.
4978         * doc/md.texi: Likewise.
4979         * doc/rtl.texi: Likewise.
4980
4981 2004-07-07  Richard Sandiford  <rsandifo@redhat.com>
4982
4983         PR target/16407
4984         * config/mips/mips-protos.h (mips_declare_common_object): Declare.
4985         * config/mips/mips.c (mips_declare_common_object): New function,
4986         mostly split out from...
4987         (mips_output_aligned_decl_common): ...here.
4988         * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
4989         (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
4990         * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
4991         rather than ASM_OUTPUT_LOCAL.  Call mips_declare_common_object.
4992
4993 2004-07-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4994
4995         PR c/16392
4996         * function.c (assign_parms): Fix typo from previous change.
4997
4998 2004-07-07  Jason Merrill  <jason@redhat.com>
4999
5000         PR c++/15815
5001         * doc/extend.texi (C++ Interface): Correct information and
5002         discourage use.
5003
5004 2004-07-07  Vladimir Makarov  <vmakarov@redhat.com>
5005
5006         PR target/16130
5007         PR target/16142
5008         PR target/16143
5009         * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
5010         insn.
5011
5012 2004-07-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
5013
5014         PR target/1679.
5015         * config/m32r/m32r.c (m32r_function_symbol): New function:
5016         Generate a symbol name RTX with the correct m32r specific flags
5017         set.
5018         (block_move_call): Use new function to generate correct symbol.
5019         * config/m32r/m32r-protos.h: Add prototype for new funcion.
5020         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
5021         function.
5022
5023 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
5024
5025         * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
5026         TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
5027         TYPE_BINFO_BASETYPE): Remove.
5028         (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
5029         to ...
5030         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
5031         here.
5032         (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
5033         (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
5034         (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
5035         (struct tree_binfo): Rename base_types to base_binfos.
5036         * alias.c (record_component_aliases): Adjust BINFO macros.
5037         * dbxout.c (dbxout_type): Likewise.
5038         * dwarf2out.c (gen_member_die): Likewise.
5039         * sdbout.c (sdbout_one_type): Likewise.
5040         * tree-dump.c (deque_and_dump): Likewise.
5041         * config/i386/i386.c (classify_argument,
5042         contains_128bit_aligned_vector_p): Likewise.
5043
5044 2004-07-07  Nick Clifton  <nickc@redhat.com>
5045
5046         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
5047         arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
5048
5049 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
5050
5051         * vec.h: Fix the example use.
5052
5053 2004-07-06  Richard Henderson  <rth@redhat.com>
5054
5055         * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
5056         * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
5057         * tree-inline.c (copy_body_r, setup_one_parameter,
5058         initialize_inlined_parameters, expand_call_inline,
5059         declare_inline_vars): Don't check it.
5060         (expand_calls_inline): Remove old version, rename new version
5061         from gimple_expand_calls_inline.
5062         * tree-optimize.c (execute_gimple): Remove.
5063         (pass_gimple): Don't run anything.
5064
5065 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
5066
5067         * doc/sourcebuild.texi: Use semicolons instead of commas in
5068         section title.
5069
5070 2004-07-06  Richard Henderson  <rth@redhat.com>
5071
5072         * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
5073         (sra_walk_modify_expr, scan_init): Likewise.
5074         (generate_element_zero): Check visited before scanning children.
5075         (generate_element_init): Set visited on error.
5076         (scalarize_init): Handle generate_element_init failure similar
5077         to use_block_copy.
5078
5079 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
5080
5081         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
5082         (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
5083
5084 2004-07-06  Richard Henderson  <rth@redhat.com>
5085
5086         * config/i386/i386.c (legitimize_pic_address): Make static.
5087         (legitimize_address): Handle CONST with TLS operand.
5088         (ix86_expand_move): Don't call legitimize_pic_address directly.
5089         * config/i386/i386-protos.h (legitimize_pic_address): Remove.
5090
5091 2004-07-06  Roger Sayle  <roger@eyesopen.com>
5092
5093         * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
5094         (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
5095         (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
5096         is currently executed unconditionally, i.e. not in "else_bb".
5097
5098 2004-07-06  Steven Bosscher  <stevenb@suse.de>
5099
5100         * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
5101         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
5102         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
5103         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
5104         * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
5105         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
5106         * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
5107         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
5108         * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
5109         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
5110         * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
5111         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
5112         * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
5113         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
5114         * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
5115         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
5116
5117 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
5118
5119         * dojump.c (do_jump): REFERENCE_EXPR is dead.
5120         * expr.c (expand_expr_real_1): Ditto.
5121         * tree-inline.c (estimate_num_insns_1): Ditto.
5122         * tree-pretty-print.c (dump_generic_node): Ditto.
5123         (op_symbol): Ditto.
5124         * tree.def: Ditto.
5125
5126 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
5127
5128         * tree-ssa-pre.c (reference_node_pool): New pool.
5129         (find_or_generate_expression): Class 'r' is okay too.
5130         (create_value_expr_from): Ditto.
5131         (add_to_sets): LHS should not include vuses.
5132         (eliminate): Ditto.
5133         (compute_avail): Reverse ordering of tests.
5134         Valuize INDIRECT_REF as well.
5135
5136 2004-07-06  Richard Sandiford  <rsandifo@redhat.com>
5137
5138         PR rtl-optimization/16380
5139         * loop.c (check_dbra_loop): Sink comparison instructions if they
5140         do something other than set cc0.
5141
5142 2004-07-06  James E Wilson  <wilson@specifixinc.com>
5143
5144         * doc/interface.texi (longjmp and automatic variables): Delete
5145         paragraph recommending taking the address of a variable.
5146
5147 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
5148
5149         * vec.h (VEC_embedded_alloc): Remove.
5150         (VEC_embedded_size, VEC_embedded_init): New.
5151         (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
5152         MEM_STAT_INFO.
5153         (VEC_truncate): New.
5154         (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
5155         (vec_embedded_alloc): Remove.
5156         * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
5157         (vec_embedded_alloc): Remove.
5158
5159 2004-07-06  Mark Mitchell  <mark@codesourcery.com>
5160
5161         * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
5162         (gt-langhooks.h): Remove.
5163
5164 2004-07-06  George Helffrich <george@gly.bris.ac.uk>
5165
5166         * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
5167
5168 2004-07-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
5169
5170         * config/sparc/sparc.c (get_pc_symbol): Rename into
5171         add_pc_to_pic_symbol.
5172         (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
5173         (load_pic_register): Account for previous changes.
5174         Use reg_names.  Don't create the label twice.
5175         * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
5176         UNSPEC_LOAD_PCREL_SYM.
5177         (get_pc): Rename into load_pcrel_sym.  Add predicate to
5178         operands.  Remove condition.
5179
5180 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
5181
5182         * dbxout.c (dbxout_type): Don't test whether the binfo slot of
5183         RECORD, UNION & QUAL_UNION is actually a binfo.
5184
5185         * tree.h (TREE_VIA_VIRTUAL): Rename to ...
5186         (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
5187         (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
5188         * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
5189         * dwarf2out.c (add_data_member_location_attribute): Likewise.
5190         (gen_inheritance_die): Likewise.
5191         * tree-dump.c (deque_and_dump): Likewise.
5192         * doc/c-tree.texi (Binfos): Add under reconstruction note.
5193
5194 2004-07-06  Steven Bosscher  <stevenb@suse.de>
5195
5196         * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
5197         Define.
5198         * config/mcore/mcore.md: Model memory latency with a simple DFA
5199         pipeline description instead of a define_function_unit.
5200
5201 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5202
5203         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
5204         * langhooks.h (var_mod_type_p): Likewise.
5205         * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
5206         * expr.c (count_type_elements): Properly handle return from
5207         array_type_nelts and properly test for overflow.
5208         * gimplify.c (gimplify_init_constructor): Properly handle return
5209         from array_type_nelts.
5210         (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
5211         * integrate.c (copy_decl_for_inlining): Correct comments.
5212         * tree-inline.c (remap_decl): Update comments, remove dead code,
5213         and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
5214         (remap_type): Only remap if variably modified by vars in function
5215         being inlined.
5216         (copy_body_r): Use compatible_type langhooks to see when can fold.
5217         (setup_one_parameter): Don't remap type.
5218         (inline_forbidden_p_1): Add arg to variably_modified_type_p.
5219         * tree.c (recompute_tree_invarant_for_addr_expr): Properly
5220         compute TREE_INVARIANT for decl case.
5221         (find_var_from_fn): New function.
5222         (variably_modified_type_p): Add arg and call new function.
5223         * tree.h (variably_modified_type_p): Add extra arg.
5224
5225 2004-07-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
5226
5227         * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
5228         (goto_handler_and_restore_v9): Delete disabled insn.
5229         (goto_handler_and_restore_v9_sp64): Likewise.
5230
5231 2004-07-05  Roger Sayle  <roger@eyesopen.com>
5232
5233         * calls.c (load_register_parameters): Call expand_shift instead
5234         of expand_binop with ashl_optab (or other shift optab) directly.
5235         * expr.c (emit_group_load, emit_group_store): Likewise.
5236         * function.c (assign_parm_setup_block): Likewise.
5237         * stmt.c (shift_return_value): Likewise.
5238
5239 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
5240
5241         * expr.c (expand_assignment): Disable the bitfield += optimizations.
5242
5243 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
5244
5245         * doc/sourcebuild.texi: Revert previous patch.
5246
5247 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
5248
5249         * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
5250         TARGET_MEM_FUNCTIONS.
5251         * system.h: Poison TARGET_MEM_FUNCTIONS.
5252         * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
5253         bcmp_libfunc, bzero_libfunc): Remove.
5254         * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
5255         bzero_libfunc.
5256         * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
5257         * doc/standards.texi: Don't mention calling BSD string functions.
5258         * doc/invoke.texi: Likewise.  Mention that memmove may be called.
5259         * config/vax/t-memfuncs: New.
5260         * config/memcmp.c, config/memcpy.c, config/memmove.c,
5261         config/memset.c: New.
5262         * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
5263         * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
5264         vax/t-memfuncs.
5265         * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
5266         config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
5267         config/elfos.h, config/gnu.h, config/h8300/h8300.h,
5268         config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
5269         config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
5270         config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
5271         config/netbsd.h, config/openbsd.h, config/pa/pa.h,
5272         config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
5273         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
5274         config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
5275
5276 2004-07-05  Richard Henderson  <rth@redhat.com>
5277
5278         * function.c (assign_parm_setup_reg): Properly rename variables in
5279         FUNCTION_ARG_CALLEE_COPIES section.
5280
5281 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
5282
5283         * tree-mudflap.c: Include cgraph.h.
5284         (mf_init_extern_trees): Rename to mudflap_init.  Export.
5285         Rewrite to create synthetic declarations instead of looking
5286         up declarations from mf-runtime.h.
5287         (mf_make_builtin, mf_make_cache_struct_type): New functions.
5288         (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
5289         Correct commentary.
5290         (execute_mudflap_function_decls, mudflap_register_call):
5291         Don't call mf_init_extern_trees.
5292         (mudflap_finish_file): Use cgraph_build_static_cdtor.
5293
5294         * tree-mudflap.h: Update prototypes.
5295         * c-mudflap.c: Delete file.
5296         * c-common.c: Include tree-mudflap.h.
5297         (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
5298         * Makefile.in: Remove all references to c-mudflap.o.
5299         Update dependencies.
5300
5301 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5302
5303         * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
5304         displacements with the spatial-locality cache-control completer.
5305
5306 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
5307
5308         * langhooks.c: Don't include gt-langhooks.h.
5309         (var_labelno): Delete.
5310         (lhd_set_decl_assembler_name): Do not append a distinguishing
5311         number to file-scope internal-linkage declarations for the first
5312         input file, even if they have DECL_CONTEXT set.  Use DECL_UID of
5313         the declaration itself (if at block scope), or its containing
5314         TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
5315         number.
5316
5317         * opts.c (cur_in_fname): New global.
5318         * opts.h: Declare it.
5319         * tree.c: Include opts.h.
5320         (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
5321         DECL_UID equal to cur_in_fname.
5322         (copy_node_stat): Do not change DECL_UID when copying a
5323         TRANSLATION_UNIT_DECL.
5324         (build_common_tree_nodes): Adjust next_decl_uid to reserve the
5325         range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
5326
5327         * c-decl.c (c_static_assembler_name): Delete.
5328         * c-tree.h (c_static_assembler_name): Delete prototype.
5329         * c-lang.c, objc/objc-lang.c: Don't override
5330         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
5331
5332         * Makefile.in (tree.o): Update dependencies.
5333         (GTFILES): Remove langhooks.c.
5334
5335 2004-07-05  Roger Sayle  <roger@eyesopen.com>
5336
5337         * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
5338         by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
5339         Normalize "X % C" as "X % -C" for signed modulus and negative C.
5340         Optimize "X % -Y" as "X % Y" for signed modulus.
5341         <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
5342         into "((unsigned) X % Y) == 0".
5343
5344 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
5345
5346         * sourcebuild.texi (Config Fragments): Use @comma{} in
5347         cross-reference to section title.
5348
5349 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5350
5351         * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
5352         * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
5353         (gimplify_target_expr, gimplify_expr): Likewise.
5354         (copy_if_shared_r): No longer need special case for BIND_EXPR.
5355         (unshare_body, unvisit_body): Only look at nested if BODY_P is
5356         whole function.
5357         (gimplify_compound_lval): See if we can strip any useless conversion.
5358         (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
5359         from RHS, not LHS.
5360         (gimplify_modify_expr_to_memset): Likewise.
5361         (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
5362         * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
5363         (declare_inline_vars): Likewise.
5364         (walk_type_fields): New function.
5365         (walk_tree): Use it.
5366         * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
5367
5368         * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
5369         (sra_walk_modify_expr): Allow init function to fail.
5370         (scan_init): Now returns bool.
5371         (generate_element_init): If can't understand INIT, return false.
5372         (scalarize_init): Return false if generate_element_init does.
5373
5374         * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
5375         print bounds.
5376
5377         * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
5378         bounds if bounds aren't constant.
5379
5380         * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
5381
5382         * function.c, langhooks-def.h, langhooks.h: Move max_size hook
5383         to type hooks; remove bogus PARAMS.
5384
5385 2004-07-05  Nathan Sidwell  <nathan@codesourcery.com>
5386
5387         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
5388         * dwarf2out.c (add_data_member_location_attribute): Check for
5389         TREE_BINFO.
5390         * tree.c (tree_node_kinds): Add "binfos".
5391         (binfo_lang_slots): New.
5392         (make_node_stat): Add TREE_BINFO.
5393         (make_tree_binfo_stat): New.
5394         (tree_node_structure): Add TREE_BINFO.
5395         * tree.def (TREE_BINFO): New.
5396         * tree.h (REC_OR_UNION_CHECK): Rename to ...
5397         (RECORD_OR_UNION_CHECK): ... here.
5398         (NOT_RECORD_OR_UNION_CHECK): New.
5399         (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
5400         (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
5401         RECORD_OR_UNION_CHECK.
5402         (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
5403         (TYPE_LANG_SLOT_1): New.
5404         (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
5405         BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
5406         BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
5407         (BINFO_ELTS): Remove.
5408         (BINFO_LANG_SLOT): New.
5409         (struct tree_binfo): New.
5410         (binfo_lang_slots): Declare.
5411         (enum tree_node_structure_enum): Add TS_BINFO.
5412         (union tree_node): Add binfo.
5413         (make_tree_binfo_stat): Declare.
5414         (make_tree_binfo): New.
5415         (enum tree_node_kind): Add binfo_kind.
5416
5417         * objc/objc-act.c (start_class, objc_declare_protocols,
5418         start_protocols): Use TYPE_LANG_SLOT_1.
5419         * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
5420         to ...
5421         (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
5422         (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
5423         CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
5424         PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
5425
5426 2004-07-05  Steven Bosscher  <stevenb@suse.de>
5427
5428         * rtl.h (struct rtx_def): Remove the integrated flag.
5429         Use the return_val flag for MEM_SCALAR_P.
5430         Reshuffle and update flags in CLEAR_RTX_FLAGS.
5431
5432 2004-07-05  Richard Sandiford  <rsandifo@redhat.com>
5433
5434         PR target/16357
5435         * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
5436         to mips_expand_unaligned_load, mips_expand_unaligned_store, and
5437         move_by_pieces.
5438
5439 2004-07-05  Josef Zlomek  <zlomekj@suse.cz>
5440
5441         * var-tracking.c: Fix some comments.
5442         (frame_stack_adjust): New.
5443         (vt_stack_adjustments): Init stack_adjust of entry block to
5444         minus stack adjustment of function prologue.
5445         (adjust_stack_reference): Do not adjust if adjustment == 0.
5446         (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
5447         (emit_notes_in_bb): Likewise.
5448         (vt_add_function_parameters): Do not adjust locations of
5449         function arguments.
5450         (vt_initialize): Compute the stack adjustment of function
5451         prologue and offset the initial "location" of frame_base_decl
5452         from the stack pointer after prologue.
5453
5454 2004-07-04  Richard Henderson  <rth@redhat.com>
5455
5456         * function.c (struct assign_parm_data_all): New.
5457         (struct assign_parm_data_one): New.
5458         (assign_parms_initialize_all, assign_parms_augmented_arg_list,
5459         assign_parm_find_data_types, assign_parms_setup_varargs,
5460         assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
5461         assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
5462         assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
5463         assign_parm_setup_block, assign_parm_setup_reg,
5464         assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
5465         (assign_parms): ... here.
5466
5467 2004-07-04  Daniel Berlin  <dberlin@dberlin.org>
5468
5469         * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
5470         now are bitmap_set_t's.
5471         (bitmap_insert_into_set): No point in inserting the value if
5472         it's invariant.
5473         (bitmap_set_contains): New function.
5474         (bitmap_set_replace_value): Add comment on why we do it
5475         this way.
5476         (set_contains): Removed.
5477         (bitmap_set_subtract_from_value_set): New name of
5478         set_subtract now that it's arguments are two different
5479         types of sets.
5480         Update callers.
5481         (bitmap_find_leader): Change algorithm used.
5482         (find_or_generate_expression): Update use of functions for new
5483         bitmap sets.
5484         (create_expression_by_pieces): Ditto.
5485         (insert_aux): Ditto.
5486         (insert): Ditto.
5487         (add_to_sets): Ditto.
5488         (init_pre): Ditto.
5489         (execute_pre): Ditto.
5490         (compute_avail): Ditto.
5491         Also ignore virtual phis.
5492
5493 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
5494
5495         * combine.c (simplify_comparison): Fix comment typo.
5496
5497 2004-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
5498
5499         * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
5500         into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
5501         (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
5502         (output_restore): Change parameter from 'insn' to 'pat'.
5503         (output_return): Adjust call to output_restore.
5504         (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
5505         Adjust call to output_restore.
5506
5507 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
5508
5509         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
5510         and assert system is bsd.
5511
5512 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
5513
5514         * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
5515         (TARGET_SWITCHES): Remove -mdebugc.
5516         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
5517         (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
5518         (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
5519         (sle_[sd]i_reg): Delete.
5520
5521 2004-07-04  Steven Bosscher  <stevenb@suse.de>
5522
5523         * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
5524         Define.
5525         * config/iq2000/iq2000.md: Translate old pipeline description to an
5526         equivalent new one.
5527
5528 2004-07-04  Roger Sayle  <roger@eyesopen.com>
5529
5530         * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
5531         Ensure the replacement rhs is valid gimple before performing
5532         the substitution.  Return false if these sanity checks fail.
5533         (fold_stmt): Only set changed to true, if set_rhs returns true.
5534         (execute_fold_all_builtins): Only call modify_stmt if set_rhs
5535         succeeds.
5536
5537 2004-07-04  Richard Henderson  <rth@redhat.com>
5538
5539         PR c/16348
5540         * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
5541
5542 2004-07-04  Mark Mitchell  <mark@codesourcery.com>
5543
5544         * configure.ac (ranlib_flags): New variable.
5545         * Makefile.in (RANLIB_FLAGS): New variable.
5546         (libbackend.a): Use it.
5547         * configure: Regenerated.
5548
5549 2004-07-04  Roger Sayle  <roger@eyesopen.com>
5550
5551         * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
5552         a "sign mask" instead of using ashr_optab directly.
5553
5554 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
5555
5556         * doc/cpp.texi: Don't document what we do for ill-formed expressions.
5557         * doc/cppopts.texi: Clarify processing of command-line defines.
5558
5559 2004-07-04  Gerald Pfeifer  <gerald@pfeifer.com>
5560
5561         * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
5562
5563 2004-07-04  Richard Henderson  <rth@redhat.com>
5564
5565         * rtl.def (ADDRESSOF): Remove.
5566         * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
5567         (find_base_term, memrefs_conflict_p): Likewise.
5568         * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
5569         (fold_rtx, cse_insn, set_live_p): Likewise.
5570         * dwarf2out.c (mem_loc_descriptor): Likewise.
5571         (add_location_or_const_value_attribute): Likewise.
5572         * emit-rtl.c (copy_insn_1): Likewise.
5573         * explow.c (memory_address): Likewise.
5574         * expmed.c (store_split_bit_field): Likewise.
5575         * expr.c (expand_expr_real_1): Likewise.
5576         * function.c (instantiate_decl
5577         (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
5578         * genrecog.c (preds, validate_pattern): Likewise.
5579         * integrate.c (copy_rtx_and_substitute): Likewise.
5580         * recog.c (general_operand, register_operand): Likewise.
5581         (memory_address_p): Likwise.
5582         * reload1.c (eliminate_regs, elimination_effects): Likewise.
5583         * rtl.c (copy_rtx): Likewise.
5584         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
5585         (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
5586         * rtlhooks.c (gen_lowpart_general): Likewise.
5587         * stmt.c (expand_asm_operands): Likewise.
5588         * web.c (entry_register, replace_ref, web_main): Likewise.
5589         * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
5590         alpha_expand_block_move, alpha_expand_block_clear): Likewise.
5591         * config/arm/arm.c (thumb_rtx_costs): Likewise.
5592         * config/c4x/c4x.c (c4x_valid_operands): Likewise.
5593         * config/frv/frv.c (move_destination_operand, move_source_operand,
5594         condexec_dest_operand, condexec_source_operand,
5595         condexec_memory_operand): Likewise.
5596         * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
5597         * config/ia64/ia64.c (general_xfmode_operand): Likewise.
5598         (destination_xfmode_operand): Likewise.
5599         * config/mips/mips.h (PREDICATE_CODES): Likewise.
5600         * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
5601         * config/s390/s390.c (general_s_operand): Likewise.
5602         * config/s390/s390.md (mov*): Likewise.
5603         * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
5604
5605         * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
5606         * expr.c (expand_expr_real_1): Likewise.
5607         * stmt.c (expand_decl): Likewise.
5608         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
5609
5610         * function.c (struct fixup_replacement, struct insns_for_mem_entry,
5611         postponed_insns, put_var_into_stack, put_reg_into_stack,
5612         schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
5613         fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
5614         fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
5615         walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
5616         gen_mem_addressof, flush_addressof, put_addressof_into_stack,
5617         purge_bitfield_addressof_replacements, purge_addressof_replacements,
5618         purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
5619         struct insns_for_mem_walk_info, insns_for_mem_walk,
5620         compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
5621         setjmp_protect_args): Remove.
5622         (push_function_context_to): Don't handle var_refs_queue.
5623         (pop_function_context_from, free_after_compilation): Likewise.
5624         (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
5625         (assign_parms, allocate_struct_function): Likewise.
5626         (use_register_for_decl): New.
5627         (expand_function_end): Don't setjmp_protect.
5628         * function.h (struct emit_status): Update commentary.
5629         (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
5630         (max_parm_reg, parm_reg_stack_loc): Remove.
5631         * passes.c (DFI_addressof): Remove.
5632         (dump_file_info): Remove addressof.
5633         (rest_of_handle_addressof): Remove.
5634         (rest_of_compilation): Don't call it.
5635         * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
5636         * stmt.c (expand_decl): Use use_register_for_decl.
5637         * tree.h: Update decls.
5638         * web.c (mark_addressof): Remove.
5639         * doc/invoke.texi (-dF): Remove.
5640
5641 2004-07-03  Richard Henderson  <rth@redhat.com>
5642
5643         * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
5644         instead of gen_mem_addressof.
5645         * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
5646         TImode output register.
5647
5648 2004-07-03  Richard Henderson  <rth@redhat.com>
5649
5650         PR tree-optimization/16341
5651         * tree-sra.c (sra_walk_function): Increment to next stmt before
5652         processing the current stmt.
5653         (sra_insert_after): Always use BSI_SAME_STMT.
5654
5655 2004-07-03  Richard Henderson  <rth@redhat.com>
5656
5657         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
5658         fp plus with minus.
5659
5660 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
5661
5662         * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
5663         with tree_int_cst_equal.
5664
5665 2004-07-03  Andreas Schwab  <schwab@suse.de>
5666
5667         * config/ia64/ia64.md: Define new attribute "empty".
5668         (prologue_use, nop_x, insn_group_barrier): Set it.
5669
5670         * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
5671         skip over "empty" insns.
5672
5673 2004-07-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5674
5675         * tree-inline.c (initialize_inlined_parameters): Pass proper function
5676         context to gimplify_body.
5677         (walk_tree): Don't walk into types twice.
5678         (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
5679
5680         * tree-sra.c (generate_element_init): Remove any useless conversions.
5681
5682         * gimplify.c (gimplify_conversion): Remove stripping useless
5683         conversions from here.
5684         (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
5685         (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
5686         Unshare before substituting PLACEHOLDER_EXPR.
5687         (gimplify_modify_expr_to_memset): Likewise.
5688         Pass address of TO to memset, not TO itself.
5689         (gimplify_init_constructor): Make copy of OBJECT so we have it each
5690         time we make an expression (to match a PLACEHOLDER_EXPR).
5691
5692         * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
5693         VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
5694         * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
5695         * tree-ssa-dom.c (local_fold): Likewise.
5696
5697         * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
5698         * langhooks.h (strct lang_hooks): New field type_max_size.
5699         * function.c (assign_temp): Call it.
5700
5701 2004-07-03  Steven Bosscher  <stevenb@suse.de>
5702
5703         * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
5704         * config/sh/sh.md: Convert the SH1 pipeline description to
5705         a DFA model.
5706
5707 2004-07-02  Zack Weinberg  <zack@codesourcery.com>
5708
5709         * c-decl.c (struct c_binding): Remove contour field; add
5710         depth, invisible, nested fields.
5711         (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
5712         (B_IN_EXTERNAL_SCOPE): New convenience macros.
5713         (bind): Add invisible and nested arguments. Initialize
5714         new fields of struct c_binding; adjust loop scanning for
5715         insertion point.
5716         (free_binding_and_advance): Clear structure with memset.
5717         (pop_scope): Adjust to match.  Set DECL_CONTEXT on everything
5718         in file scope, even if it's in external scope too.
5719         (pushdecl): Adjust to match.  Create invisible file-scope
5720         declarations for block-scope forward declarations of static functions.
5721         (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
5722         (undeclared_variable, lookup_label, declare_label, define_label)
5723         (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
5724         (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
5725         (store_parm_decls_oldstyle): Adjust to match.
5726         (diagnose_mismatched_decls): Correct handling of linkage clashes.
5727         (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
5728
5729         * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
5730         (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
5731
5732 2004-07-02  Richard Henderson  <rth@redhat.com>
5733
5734         * c-decl.c (grokdeclarator): Don't frob current_function_decl
5735         around variable_size.
5736         (set_decl_nonlocal): Remove.
5737         (store_parm_decls): Add stmts for pending sizes.
5738         * calls.c (calls_function, calls_function_1): Remove.
5739         (precompute_arguments): Don't call it.
5740         * cfgexpand.c (set_save_expr_context): Remove.
5741         (tree_expand_cfg): Don't call it.
5742         * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
5743         (dwarf2out_finish): Likewise.
5744         * expr.c (emit_block_move): Adjust addresses to BLKmode.
5745         (store_constructor): Don't pre-evaluate SAVE_EXPR.
5746         (safe_from_p): Don't queue SAVE_EXPRs.
5747         (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
5748         or build plain VAR_DECLs.
5749         * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
5750         (fold): Likewise.
5751         (fold_checksum_tree): Don't special-case SAVE_EXPR.
5752         * function.c (free_after_compilation): Don't clear x_save_expr_regs.
5753         (put_var_into_stack): Don't handle SAVE_EXPR.
5754         (gen_mem_addressof): Likewise.
5755         * function.h (struct function): Remove x_save_expr_regs.
5756         (save_expr_regs): Remove.
5757         * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
5758         * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
5759         * stor-layout.c (variable_size): Don't set it.
5760         (force_type_save_exprs, force_type_save_exprs_1): Remove.
5761         * tree-inline.c (remap_save_expr): Remove fn argument.  Update
5762         all callers.  Don't set SAVE_EXPR_CONTEXT.
5763         * tree-inline.h (remap_save_expr): Update decl.
5764         * tree.c (save_expr): Update build size.
5765         (first_rtl_op): Don't handle SAVE_EXPR.
5766         (unsave_expr_1, contains_placeholder_p): Likewise.
5767         (decl_function_context): Likewise.
5768         * tree.def (SAVE_EXPR): Remove args 1 and 2.
5769         * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
5770         (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
5771
5772 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
5773
5774         * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
5775         doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
5776         doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
5777         doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
5778         some first-person references and patronizing comments.  Based on
5779         printed manual.
5780         * doc/invoke.texi: Don't reference fortran@gnu.org.
5781         * doc/trouble.texi (Warning when a non-void function value is
5782         ignored): Rewrite.  From Russ Allbery and Chris Devers.
5783
5784 2004-07-02  Daniel Berlin  <dberlin@dberlin.org)
5785
5786         * tree-ssa-pre.c (bitmap_set_t): New.
5787         (bb_value_sets): avail_out is now a bitmap_set_t.
5788         (bitmap_find_leader): New function.
5789         (bitmap_value_insert_into_set): Ditto.
5790         (bitmap_set_copy): Ditto.
5791         (bitmap_value_replace_in_set): Ditto.
5792         (bitmap_set_contains_value): Ditto.
5793         (bitmap_set_new): Ditto.
5794         (bitmap_set_pool): New pool.
5795         (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
5796         (insert_aux): Ditto.
5797         (add_to_sets): Ditto.
5798         (compute_avail): Ditto
5799         (eliminate): Ditto.
5800         (init_pre): Ditto.
5801         (fini_pre): Ditto.
5802         (execute_pre): Ditto.
5803
5804 2004-07-02  Roger Sayle  <roger@eyesopen.com>
5805
5806         * config/rs6000/rs6000.c (struct processor_costs): New structure
5807         used to hold instruction latencies/sizes for processor types.
5808         (rs6000_cost): New global variable pointing to current CPU's costs.
5809         (rs6000_override_options): Initialize rs6000_cost to point to the
5810         appropriate cost table based upon rs6000_cpu and optimize_size.
5811         (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
5812         timings inline.
5813
5814 2004-07-02  Richard Henderson  <rth@redhat.com>
5815
5816         * expmed.c (make_tree): Don't use SET_DECL_RTL.
5817
5818 2004-07-02  Steven Bosscher  <stevenb@suse.de>
5819
5820         * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
5821
5822 2004-07-01  Richard Henderson  <rth@redhat.com>
5823
5824         * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
5825         (alpha_gp_save_rtx): Use assign_stack_local instead of
5826         gen_mem_addressof.
5827
5828 2004-07-01  Richard Henderson  <rth@redhat.com>
5829
5830         * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
5831         (alpha_rtx_cost_data): Update to match.
5832         (alpha_rtx_cost_size): New.
5833         (alpha_rtx_costs): Honor optimize_size.
5834
5835 2004-07-01  Richard Henderson  <rth@redhat.com>
5836
5837         * gimple-low.c (lower_function_body): Don't reset_block_changes here.
5838         * cfgexpand.c (tree_expand_cfg): Do it here.
5839         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
5840         * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
5841         * config/mips/mips.c (mips_output_mi_thunk): And here.
5842         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
5843         * config/sh/sh.c (sh_output_mi_thunk): And here.
5844         * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
5845
5846 2004-07-01  Richard Henderson  <rth@redhat.com>
5847
5848         * tree.def (RTL_EXPR): Remove.
5849         * c-typeck.c (lvalue_p): Don't handle it.
5850         * expr.c (safe_from_p): Likewise.
5851         (expand_expr_real_1): Likewise.
5852         * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
5853         (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
5854         * gengtype.c (adjust_field_tree_exp): Likewise.
5855         * stmt.c (warn_if_unused_value): Likewise.
5856         * tree-gimple.c (recalculate_side_effects): Likewise.
5857         * tree-pretty-print.c (dump_generic_node): Likewise.
5858         * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
5859         (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
5860         * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
5861
5862         * stmt.c (struct stmt_status): Remove x_last_expr_type,
5863         x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
5864         (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
5865         (expand_expr_stmt): Merge with expand_expr_stmt_value.  Remove
5866         all the bits that tracked last_expr.
5867         (expand_end_bindings): Don't track last_expr.
5868         (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
5869         (clear_last_expr): Remove.
5870         (expand_asm): Don't call it.
5871         (expand_asm_operands, expand_end_cond): Likewise.
5872         (expand_naked_return, expand_null_return_1): Likewise.
5873         * c-typeck.c (c_begin_compound_stmt): Likewise.
5874         * cfgexpand.c (expand_block): Use expand_expr_stmt.
5875         * expr.c (expand_expr_real_1): Likewise.
5876         * tree.h: Update prototypes.
5877
5878         * function.h (struct sequence_stack): Remove sequence_rtl_expr.
5879         (struct emit_status): Remove sequence_rtl_expr.
5880         (struct function): Remove x_rtl_expr_chain.
5881         (seq_rtl_expr, rtl_expr_chain): Remove.
5882         * function.c (struct temp_slot): Remove rtl_expr.
5883         (assign_stack_temp_for_type): Don't set it.
5884         (free_temp_slots, pop_temp_slots): Don't check it.
5885         (free_after_compilation): Don't clear x_rtl_expr_chain.
5886         (fixup_var_refs): Don't search it.
5887         (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
5888         * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
5889         or seq_rtl_expr.
5890         (push_topmost_sequence): Likewise.
5891         (end_sequence, init_emit): Likewise.
5892         (start_sequence_for_rtl_expr): Remove.
5893         * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
5894         * rtl.h (preserve_rtl_expr_result): Remove.
5895
5896 2004-07-02  Kazu Hirata  <kazu@cs.umass.edu>
5897
5898         * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
5899         tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
5900         typos.
5901
5902 2004-07-02  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
5903
5904         * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
5905         (STANDARD_STARTFILE_PREFIX_2): Define.
5906         (standard_startfile_prefix_1): Initialize to
5907         STANDARD_STARTFILE_PREFIX_1.
5908         (standard_startfile_prefix_2): Initialize to
5909         STANDARD_STARTFILE_PREFIX_2.
5910         * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
5911         (STANDARD_STARTFILE_PREFIX_1): Define.
5912         (STANDARD_STARTFILE_PREFIX_2): Define.
5913         * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
5914         (STANDARD_STARTFILE_PREFIX_2): Document.
5915
5916 2004-07-01  Richard Henderson  <rth@redhat.com>
5917
5918         * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
5919         in order to disable scalarization.  Instead set a flag and wait
5920         for a candidate decl.
5921
5922 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
5923
5924         * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
5925         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
5926         Use terminology "testsuite" and "enumerated".
5927
5928 2004-07-01  Richard Henderson  <rth@redhat.com>
5929
5930         * dwarf2out.c (reg_save): Use INVALID_REGNUM.
5931         (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
5932         (initial_return_save): Likewise.
5933         (flush_queued_reg_saves): Remap register numbers.
5934         (dwarf2out_return_reg): Likewise.
5935
5936 2004-07-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5937
5938         * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
5939
5940         * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
5941         access functions for lower bound and element size and only output
5942         if lower bound nonzero or element size not same as that of type.
5943         (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
5944
5945 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
5946
5947         * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
5948
5949 2004-07-01  Per Bothner  <per@bothner.com>
5950
5951         * final.c (final):  Fix typo reported by Aaron W. LaFramboise.
5952
5953 2004-07-01  Jakub Jelinek  <jakub@redhat.com>
5954
5955         * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
5956         bitfields as well.  STRIP_NOPS from src operand and PLUS_EXPR's
5957         first operand.  Don't optimize if the bitfield is volatile.
5958
5959 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
5960
5961         * c-pretty-print.c (pp_c_postfix_expression): Handle
5962         floating-point comparison operators.
5963         (pp_c_expression): Pass floating-point comparison
5964         operators to pp_c_postfix_expression.
5965
5966 2004-07-01  Roger Sayle  <roger@eyesopen.com>
5967
5968         * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
5969         rtx_cost instead of "had_mult" to determine whether the transformed
5970         expression is cheaper than the original.
5971
5972 2004-07-01  Jerry Quinn  <jlquinn@optonline.net>
5973
5974         * alias.c (get_alias_set, canon_rtx, get_addr,
5975         nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
5976         Use MEM_P.
5977         * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
5978         expand_builtin): Likewise.
5979         * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
5980         Likewise.
5981         * combine.c (can_combine_p, combinable_i3pat, try_combine,
5982         find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
5983         rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
5984         record_dead_and_set_regs_1, get_last_value_validate,
5985         mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
5986         * cse.c (check_dependence, canon_hash, equiv_constant,
5987         gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
5988         cse_around_loop, cse_check_loop_start, cse_set_around_loop,
5989         count_reg_usage): Likewise.
5990         * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
5991         cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
5992         cselib_record_sets): Likewise.
5993         * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
5994         dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
5995         * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
5996         * df.c (df_uses_record): Likewise.
5997         * dojump (do_jump): Likewise.
5998         * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
5999         loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
6000         decl_start_label): Likewise.
6001         * emit-rtl.c (gen_complex_constant_part, gen_highpart,
6002         operand_subword, change_address_1, make_safe_from): Likewise.
6003         * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
6004         stabilize, force_not_mem): Likewise.
6005         * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
6006         expand_mult_const, expand_divmod, emit_store_flag): Likewise.
6007         * expr.c (convert_move, convert_modes, emit_block_move,
6008         emit_group_load, emit_group_store, clear_storage, emit_move_insn,
6009         emit_move_insn_1, expand_assignment, store_expr,
6010         store_constructor_field, store_constructor, store_field,
6011         force_operand, safe_from_p, expand_expr_real_1, expand_increment):
6012         Likewise.
6013         * final.c (cleanup_subreg_operands, alter_subreg,
6014         get_mem_expr_from_op): Likewise.
6015         * flow.c (notice_stack_pointer_modification_1,
6016         init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
6017         Likewise.
6018         * function.c (mark_temp_addr_taken, preserve_temp_slots,
6019         preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
6020         optimize_bit_field, flush_addressof, purge_addressof_1,
6021         instantiate_decl, instantiate_virtual_regs_1, assign_parms,
6022         setjmp_protect, setjmp_protect_args, fix_lexical_addr,
6023         keep_stack_depressed): Likewise.
6024         * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
6025         noce_process_if_block, find_memory): Likewise.
6026         * integrate.c (subst_constants, allocate_initial_values): Likewise.
6027         * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
6028         update_equiv_regs): Likewise.
6029         * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
6030         maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
6031         * optabs.c (expand_abs, emit_unop_insn): Likewise.
6032         * passes.c (rest_of_handle_final): Likewise.
6033         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
6034         move2add_note_store): Likewise.
6035         * ra-build.c (detect_remat_webs): Likewise.
6036         * ra-debug.c (dump_static_insn_cost): Likewise.
6037         * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
6038         * recog.c (validate_change, apply_change_group, cancel_changes,
6039         validate_replace_rtx_1, general_operand, register_operand,
6040         nonmemory_operand, push_operand, pop_operand, memory_operand,
6041         indirect_operand, asm_operand_ok, offsettable_memref_p,
6042         offsettable_nonstrict_memref_p, constrain_operands,
6043         store_data_bypass_p): Likewise.
6044         * reg-stack.c (subst_stack_regs_pat): Likewise.
6045         * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
6046         copy_cost, reg_scan_mark_refs): Likewise.
6047         * regmove.c (optimize_reg_copy_3, stack_memref_p,
6048         combine_stack_adjustments_for_block): Likewise.
6049         * regrename.c (copyprop_hardreg_forward_1): Likewise.
6050         * reload.c (can_reload_into, push_reload, decompose, immune_p,
6051         find_reloads, find_reloads_address, find_reloads_address_1,
6052         reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
6053         find_equiv_reg): Likewise.
6054         * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
6055         reload_as_needed, choose_reload_regs, emit_input_reload_insns,
6056         do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
6057         delete_address_reloads): Likewise.
6058         * resource.c (mark_referenced_resources): Likewise.
6059         * rtlanal.c (get_jump_table_offset, count_occurrences,
6060         reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
6061         reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
6062         num_sign_bit_copies1): Likewise.
6063         * rtlhooks.c (gen_lowpart_general): Likewise.
6064         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
6065         * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
6066         sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
6067         sdbout_global_decl): Likewise.
6068         * simplify-rtx.c (simplify_subreg): Likewise.
6069         * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
6070         expand_anon_union_decl, expand_end_case_type): Likewise.
6071         * unroll.c (calculate_giv_inc): Likewise.
6072         * var-tracking.c (stack_adjust_offset_pre_post,
6073         bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
6074         add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
6075         vt_add_function_parameters): Likewise.
6076         * varasm.c (make_var_volatile, notice_global_symbol,
6077         assemble_external, decode_addr_const, mark_weak,
6078         default_encode_section_info): Likewise.
6079
6080 2004-07-01  Steven Bosscher  <stevenb@suse.de>
6081
6082         * stmt.c (check_seenlabel): Remove.
6083         (pushcase, pushcase_range, expand_end_case_type): Don't call it.
6084
6085 2004-07-01  Richard Henderson  <rth@redhat.com>
6086
6087         * function.h (struct function): Remove x_function_call_count.
6088         (function_call_count): Remove.
6089         * calls.c (expand_call): Don't set it.
6090         * integrate.c (copy_rtx_and_substitute): Likewise.
6091
6092         * function.h (struct function): Remove x_cleanup_label.
6093         (cleanup_label): Remove.
6094         * stmt.c (expand_value_return): Don't use it.
6095         * function.c (free_after_compilation): Don't set it.
6096         (expand_function_start): Likewise.  Remove parms_have_cleanups arg.
6097         * cfgexpand.c (tree_expand_cfg): Update call.
6098         * tree.h (expand_function_start): Update decl.
6099
6100 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
6101
6102         PR c/1027
6103         * c-lang.c (c_initialize_diagnostics): Move from here ...
6104         * c-objc-common.c: ... to here.  Include "c-pretty-print.h".
6105         (c_tree_printer): Use pretty-printer to format %T.
6106         * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
6107         before '*' if not C++.
6108         (pp_c_direct_abstract_declarator): Don't try to print array upper
6109         bound for flexible array members.
6110         * c-tree.h: Include "diagnostic.h".
6111         (c_initialize_diagnostics): Declare.
6112         * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
6113         * c-format.c (format_type_warning): New function.  Improve
6114         diagnostics for incorrect format argument types.
6115         (check_format_types): Use it.  Add two parameters.  Use the
6116         TYPE_MAIN_VARIANT of wanted_type.
6117         (check_format_info_main): Pass new parameters to
6118         check_format_types.
6119         (struct format_wanted_type): Update comment.
6120
6121 2004-07-01  Nick Clifton  <nickc@redhat.com>
6122
6123         * target.h (struct gcc_target): Add new field to struct cxx:
6124         import_export_class.
6125         * target-def.h (TARGET_CXX): Initialise the new field.
6126         (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
6127         the new field.
6128         * doc/tm.texi: Document the new target hook.
6129
6130 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
6131
6132         * builtins.c (fold_builtin_classify): Fix typo.
6133
6134 2004-07-01  Richard Henderson  <rth@redhat.com>
6135
6136         * function.c (identify_blocks, identify_blocks_1): Remove.
6137         * function.h (identify_blocks): Remove.
6138         * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
6139
6140 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
6141
6142         * builtins.c (fold_builtin_classify): New.
6143         (fold_builtin_unordered_cmp): Fix commentary.
6144         (fold_builtin): Use it.
6145         * builtins.def: Define builtins for isnan,
6146         isnanf, isnanl, finite, finitef, finitel,
6147         isinf, isinff, isinfl.
6148
6149 2004-07-01  Richard Henderson  <rth@redhat.com>
6150
6151         * function.h (struct function): Remove dont_emit_block_notes.
6152         * gimple-low.c (lower_function_body): Don't set it.
6153         * cfgexpand.c (expand_block): Don't check it.
6154         * cfglayout.c (insn_locators_initialize): Likewise.
6155         * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
6156         * passes.c (rest_of_compilation): Likewise.
6157         * stmt.c (expand_start_bindings_and_block): Likewise.
6158         (expand_end_bindings): Likewise.
6159
6160 2004-07-01  Richard Henderson  <rth@redhat.com>
6161
6162         * cgraph.h (cgraph_build_static_cdtor): Declare.
6163         * cgraphunit.c (cgraph_build_static_cdtor): New.
6164         * c-objc-common.c (build_cdtor): Use it.
6165         * coverage.c (create_coverage): Likewise.
6166         * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
6167         * optabs.c (init_optabs): Don't set gcov_init_libfunc.
6168
6169 See ChangeLog.11 for earlier changes.