OSDN Git Service

* gimplify.c (gimplify_call_expr): Make return in memory explicit.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-08-07  Jason Merrill  <jason@redhat.com>
2
3         * gimplify.c (gimplify_call_expr): Make return in memory explicit.
4         (gimplify_modify_expr_rhs): Likewise.
5         * c-common.c (c_warn_unused_result): Check TREE_USED before
6         warning about a CALL_EXPR with an unused value.
7
8 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
9
10         * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
11         to the compiler.  Use -fshort-wchar by default.
12
13 2004-08-06  Pat Haugen  <pthaugen@us.ibm.com>
14
15         * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
16         * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
17         threshhold.
18         * doc/invoke.texi (param): Document min-crossjump-insns.
19
20 2004-08-06  Richard Sandiford  <rsandifo@redhat.com>
21
22         PR c/13282
23         * c.opt (Wmissing-field-initializers): New option.
24         * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
25         * c-typeck.c (pop_init_level): Guard the missing field warning with
26         warn_missing_field_initializers rather than extra_warnings.
27         * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
28         some of the explanation from...
29         (-Wextra): ...here.  Say that the missing field warning can be
30         seperately controlled by -Wmissing-field-initializers.
31
32 2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
33
34         * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
35         * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
36         * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
37         * tree.def (ENTRY_VALUE_EXPR): Remove.
38
39 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
40
41         * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
42         the places where it is actually needed.  Don't use repz; stosb
43         for -Os with sufficiently small constant sizes.
44         For sufficiently small repz; stos{l,q} repeat counts use a sequence
45         of stos{l,q} instructions instead.
46
47 2004-08-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
48
49         PR tree-optimization/16807
50         * loop-iv.c (dump_iv_info): Dump invariants correctly.
51         (iv_subreg, iv_extend): Express value of invariant purely in
52         base field.
53
54 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
55
56         * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
57         (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
58
59 2004-08-06  Roman Zippel  <zippel@linux-m68k.org>
60  
61         * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
62         * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
63         pre_dec_operand.
64         * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
65         pattern until reload is finished to allow better code generation
66         and split them completely into separate instrunctions.
67         (*andsi3_split): New pattern.
68
69 2004-08-05  Mark Mitchell  <mark@codesourcery.com>
70
71         * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
72         Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P.  Set
73         DECL_VISIBLITY.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
74         * tree.h (handle_dll_attribute): Declare.  Test
75         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
76         * c-common.h (c_determine_visibility): Declare.
77         * c-common.c (c_determine_visibility): New function.
78         * c-decl.c (finish_decl): Use it.
79         (finish_function): Likewise.
80         * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
81         zero, by default.  Use #if, not #ifdef, to test it.
82         * config/arm/arm.c (arm_attribute_table): Use
83         handle_dll_attribute.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
84         #if.
85         * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
86         * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
87         to 1.
88         * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
89         * config/i386/i386.c (ix86_attribute_table): Use
90         handle_dll_attribute for dllimport/dllexport.  Test
91         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
92         * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
93         * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
94         it to 1.
95         * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
96         with #if.
97         * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
98         it to 1.
99         * doc/extend.texi (dllexport): Clarify and correct documentation.
100         (dllimport): Likewise.
101         * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
102         handle_dll_attribute.
103         
104 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
105
106         * tree-ssa-loop-manip.c: New file.
107         * Makefile.in (tree-ssa-loop-manip.o): Add.
108         * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
109         Declare.
110         * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
111         form.
112         (tree_ssa_loop_done): Verify loop closed ssa form.
113         * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
114
115 2004-08-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
116
117         * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
118         pa_asm_output_aligned_local): New functions.
119         * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
120         pa_asm_output_aligned_common and pa_asm_output_aligned_local.
121         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
122         pa_asm_output_aligned_common.
123         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
124         * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
125         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
126         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
127         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
128         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
129         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
130         * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
131         common data.
132
133 2004-08-05  Andrew Pinski  <apinski@apple.com>
134
135         * objc/objc-act.c (build_objc_string_object): Mark the address
136         expression as constant.
137
138 2004-08-05  David Edelsohn  <edelsohn@gnu.org>
139
140         * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
141         and mask64_operand thinkos.  Handle ZERO_EXTRACT.  Handle
142         SIGN_EXTEND / ZERO_EXTEND of MEM.  Handle rlwinm patterns.
143
144 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
145
146         * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
147         Remove definitions conditioned on USE_GNULIBC_1 or conditioned
148         out, and associated obsolete comments.
149
150 2004-08-05  Nathan Sidwell  <nathan@codesourcery.com>
151
152         * tree.h (force_fit_type): Return a tree, take three flags.
153         * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
154         TREE_CONSTANT_OVERFLOW here.
155         (int_const_binop, const_binop): Adjust.
156         (size_int_type): Do sign extension here.
157         (fold_convert_const, optimize_bit_field_compare,
158         decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
159         fold_negate_const, fold_abs_const, fold_not_const): Adjust.
160         * tree.c (size_in_bytes, int_fits_type_p): Adjust.
161
162 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
163
164         PR tree-optimization/16864
165         * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
166         for ssa names without default_def.
167
168 2004-08-05  Richard Sandiford  <rsandifo@redhat.com>
169
170         * config/i386/i386.c (ix86_expand_prologue): If the function uses a
171         frame pointer, restore eax with an ebp-relative address.
172
173 2004-08-04  Geoffrey Keating  <geoffk@apple.com>
174
175         PR 14516
176         * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
177         * c-common.h (make_rtl_for_local_static): Delete.
178         * c-decl.c (shadow_tag_warned): Clean up comment.
179         (finish_decl): Clean up spacing.  Use set_user_assembler_name when
180         appropriate.  Don't pass asmspec to rest_of_decl_compilation.
181         * c-semantics.c (make_rtl_for_local_static): Delete.
182         * expr.c (init_block_move_fn): Use set_user_assembler_name.
183         (init_block_clear_fn): Likewise.
184         * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
185         expect it to be in DECL_ASSEMBLER_NAME.  Update callers in many files.
186         * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
187         * tree.h (make_decl_rtl): Remove second parameter.
188         (set_user_assembler_name): New.
189         * varasm.c (set_user_assembler_name): New.
190         (make_decl_rtl): Remove second parameter.  Update callers in many
191         files.
192
193 2004-08-05  Adam Nemet  <anemet@lnxw.com>
194
195         * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
196         (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*.  Update
197         to LynxOS 4.0.
198         * gthr-lynx.h: New file.
199         * config/lynx-ng.h: Remove file.
200         * config/lynx.h: Update to LynxOS 4.0.
201         * config/t-lynx: New file.
202         * config/i386/lynx-ng.h: Remove file.
203         * config/i386/lynx.h: Update to LynxOS 4.0.
204         * config/rs6000/lynxbase.h: Remove file.
205         * config/rs6000/lynx.h: Update to LynxOS 4.0.
206         * config/rs6000/t-lynx: New file.
207         * doc/install.texi (Options specification): Remove reference to
208         LynxOS from systems where --with-gnu-as makes a difference.
209
210 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
211
212         * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
213         __UINTMAX_TYPE__.
214         * c-cppbuiltin.c (builtin_define_stdint_macros): New.  Define
215         __INTMAX_MAX__.
216         (c_cpp_builtins): Call it.
217         * doc/cpp.texi: Update.
218
219 2004-08-04  David Edelsohn  <edelsohn@gnu.org>
220
221         * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
222         cost.
223
224 2004-08-04  Jan Hubicka  <jh@suse.cz>
225
226         * basic-block.h (profile_staus): New global variable.
227         * cfg.c (profile_status): Declare.
228         (check_bb_profile): Break out from ....; use profile_status
229         (dump_flow_info): ... here.
230         * cfgbuild.c (find_basic_blocks): Set profile_status.
231         * cfgexpand.c (tree_expand_cfg): Likewise.
232         * predict.c (estimate_probability): Likewise.
233         * profile.c (branch_prob): Likewise.
234         * tree-cfg.c (build_tree_cfg): Likewise.
235         (dump_function_to_file): Use check_bb_profile.
236         * tree-pretty-print (dump_bb_header): Likewise.
237         * tree-profile.c (do_tree_profiling): Cleanup.
238
239 2004-08-04  Zack Weinberg  <zack@codesourcery.com>
240
241         * Makefile.in (RTL_BASE_H, RTL_H): Correct.
242         (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
243         (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
244         (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
245         (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
246         (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
247         (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
248         (ggc-none.o, errors.o): Move rule to generators section;
249         correct dependencies.
250         (min-insn-modes.o): Move rule to generators section; remove
251         unnecessary explicit command; correct dependencies.
252         (print-rtl.o, print-rtl1.o): Correct dependencies.
253         ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
254         (mostlyclean): Update.
255
256         * errors.c: Include bconfig.h not config.h.  Correct comment.
257         * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
258         * ggc-none.c: Include bconfig.h; not config.h or tm.h.
259         * print-rtl.c: Don't include tm_p.h.
260
261         * rtl.h: Move forward-decl of struct function down where it's
262         needed.  Include genrtl.h #ifndef GENERATOR_FILE, not
263         #ifndef NO_GENRTL_H.  Remove unnecessary #ifdef BUFSIZ statements.
264
265 2004-08-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
266             Jeff Law  <law@redhat.com>
267
268         * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
269         * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
270         * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
271         manipulate the duplicated ssa names.
272         * tree-ssanames.c (ssa_names_to_rewrite): New variable.
273         (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
274         unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
275         New functions.
276         (release_ssa_name): Do not release ssa names that may have multiple
277         definitions.
278         * tree.h (release_ssa_name_force, mark_for_rewrite,
279         unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
280         marked_ssa_names): Declare.
281         * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
282         (duplicate_blocks): Remove call to mark_defs_for_rewrite.
283         Update call to rewrite_ssa_into_ssa.
284
285 2004-08-04  Mark Mitchell  <mark@codesourcery.com>
286
287         * defaults.h (TARGET_DECLSPEC): New macro.
288         * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
289         * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
290         * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
291         * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
292         __declspec support.
293         (TARGET_DECLSPEC): Define.
294         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
295         __declspec support.
296         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
297         __declspec support.
298         (TARGET_DECLSPEC): Define.
299         * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
300         __declspec support.
301         * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
302         support.
303         * doc/tm.texi (TARGET_DECLSPEC): Document.
304
305         * doc/extend.texi: Fix typo in comment.
306
307 2004-08-04  Paul Brook  <paul@codesourcery.com>
308
309         * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
310         (TARGET_CXX): Use it.
311         * target.h (struct gcc_target): Add cdtor_returns_this.
312         * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
313         (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
314         * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
315
316 2004-08-03  Nathan Sidwell  <nathan@codesourcery.com>
317
318         * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
319         low/high pair. Do range checking directly.
320         (interpret_integer): Adjust.
321
322 2004-08-04  Nick Clifton  <nickc@redhat.com>
323
324         * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
325         GCC ABI.
326         * doc/invoke.texi: Document this new switch and also the -mrenesas
327         switch.
328
329 2004-08-04  Nathan Sidwell  <nathan@codesourcery.com>
330
331         * cfglayout.c (insn_locators_initialize): Update the current
332         location before initializing a location.
333
334 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
335
336         * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
337         (dbxout_function_end): Return after emitting the "Lscope" symbol
338         under the same conditions that this function formerly wasn't called.
339         Add explanatory comments.
340
341         PR 14860
342         * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
343         on the new decl.
344
345         PR 13956
346         * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
347         functions, broken out of dbxout_block.
348         (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
349         stabs too, if it contains symbols.  Use the begin_label and
350         the Lscope label (emitted by dbxout_function_end) for the
351         range of this block.
352
353 2004-08-03  Nathanael Nerode  <neroden@gcc.gnu.org>
354
355         * doc/install.texi: Update autoconf version requirements.
356
357 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
358
359         * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
360         * recog.c (general_operand, immediate_operand, nonmemory_operand)
361         (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
362         * regclass.c (record_reg_classes): Likewise.
363         * reload.c (find_reloads): Likewise.
364         * reload1.c (reload): Likewise.
365
366 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
367
368         * gensupport.c (init_md_reader_args_cb): Renamed from
369         init_md_reader_args.  Add third option, callback function for
370         parsing program-specific options.  Add diagnosis of incorrect
371         number of input files.
372         (init_md_reader): Fold into init_md_reader_args_cb.
373         (init_md_reader_args): Now a thin wrapper around
374         init_md_reader_args_cb.
375         * gensupport.h: Update prototypes.
376
377         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
378         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
379         * genrecog.c: No need to diagnose lack of an input file;
380         init_md_reader_args will handle it.
381         * genconditions.c: Likewise, and use init_md_reader_args.
382         * genconstants.c: Likewise, and no need to call read_md_rtx.
383
384 2004-08-03  Joseph S. Myers  <jsm@polyomino.org.uk>
385
386         * c-decl.c (implicitly_declare): Diagnose incompatible implicit
387         declarations.
388
389 2004-08-03  Mike Stump  <mrs@apple.com>
390
391         * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
392         for frameworks.
393         * doc/invoke.texi (Darwin Options): Update to reflect above.
394
395 2004-08-03  Roger Sayle  <roger@eyesopen.com>
396
397         PR middle-end/16790
398         * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
399         truncations, not just global truncations.
400
401 2004-08-03  Andrew Pinski  <apinski@apple.com>
402
403         PR bootstrap/16865
404         * loop-iv.c (simplify_using_assignment): Initialize lhs.
405
406 2004-08-03  Paul Brook  <paul@codesourcery.com>
407
408         * gcc/doc/install.texi: Document MPFR requirement.
409
410 2004-08-03  Maciej W. Rozycki  <macro@linux-mips.org>
411
412         * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
413         and mmap() explicitly instead of relying on preset autoconf cache
414         variables.
415         * configure: Regenerate.
416
417 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
418
419         PR target/16570
420         * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
421         to tmake_file.
422         (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
423         (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
424         to tmake_file.
425
426         * config/i386/t-gmm_malloc: New file.
427         * config/i386/t-pmm_malloc: Likewise.
428
429         * config/i386/xmmintrin.h: Include <mm_malloc.h>.
430
431 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
432             Tanguy Fautrà <tfautre@pandora.be>
433
434         * config/i386/pmm_malloc.h: New file.
435
436 2004-08-03  Danny Smith  <dannysmith@users.sourceforge.net>
437
438         * config/i386/gmm_malloc.h: New file.
439
440 2004-08-03  Dale Johannesen  <dalej@apple.com>
441
442         * config/rs6000/rs6000.c (machopic_output_stub):  Align Darwin stubs.
443         * c-common.c: Include opts.h.
444         (c_common_get_alias_set): Fix check for a single input file.
445         * toplev.c: Remove current_file_decl.
446         * tree.h: Ditto.
447
448 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
449
450         * config.gcc (arm*-*-symbianelf*): New target.
451         * config/arm/symbian.h: New file.
452
453         * gthr-gnat.c: Add visibility #pragmas.
454         * gthr-gnat.h : Likewise.
455         * gthr.h: Likewise.
456         * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
457         (__ffsDI2): Likewise.
458         (__clzSI2): Likewise.
459         (__ctzSI2): Likewise.
460         (__ctzDI2): Likewise.
461         (__popcountSI2): Likewise.
462         (__popcountDI2): Likewise.
463         (__paritySI2): Likewise.
464         (__parityDI2): Likewise.
465         * libgcc2.h: Add visibility #pragmas.
466         (__clzDI2): Add prototype.
467         (__clzSI2): Likewise.
468         (__ctzSI2): Likewise.
469         (__ffsDI2): Likewise.
470         (__ffsSI2): Likewise.
471         (__ctzDI2): Likewise.
472         (__popcountSI2): Likewise.
473         (__popcountDI2): Likewise.
474         (__paritySI2): Likewise.
475         (__parityDI2): Likewise.
476         * unwind-dw2-fde.h: Add visibility #pragmas.
477         * unwind.h: Likewise.
478
479 2004-08-03  David Edelsohn  <edelsohn@gnu.org>
480             Dale Johannesen  <dalej@apple.com>
481             Roger Sayle  <roger@eyesopen.com>
482
483         * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
484         constants more accurately.  Adjust costs for FMA instructions.
485         Add cases for most logical and float operations.  Recurse into
486         most operands.
487
488 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
489
490         * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
491
492 2004-08-03  Pat Haugen  <pthaugen@us.ibm.com>
493
494         * ra-build.c (conflicts_between_webs): For webs that cross a call add
495         conflicts to regs_invalidated_by_call.
496
497 2004-08-03  Paul Brook  <paul@codesourcery.com>
498
499         * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
500
501 2004-08-03  Jan Hubicka  <jh@suse.cz>
502
503         * coverage.c (tree_coverage_counter_ref): Fix computation of the new
504         ARRAY_REF argument.
505
506 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
507
508         * arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
509         arm968es, arm10e, arm1020e, arm1022e.
510         * invoke.texi: Update list of ARM cores.
511         * arm-tune.md: Regenerate.
512
513 2004-08-03  Richard Earnshaw <rearnsha@arm.com>
514
515         * arm/gentune.sh: New file.
516         * arm/t-arm: New file.
517         * arm/arm-tune.md: New file (autogenerated).
518         * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
519         * arm.md (attribute tune): Delete.  Include arm-tune.md.
520
521 2004-08-03  Paolo Bonzini <bonzini@gnu.org>
522
523         * gcc.c (add_prefix, add_sysrooted_prefix): Remove
524         penultimate parameter.  All callers adjusted.
525         (struct prefix_list): Remove used_flag_ptr.
526         (find_a_file): Do not set *pl->used_flag_ptr.
527         (warn_B, warn_std_ptr): Remove.
528
529 2004-08-03  Yossi Markovich <yossim@il.ibm.com>
530             Mostafa Hagog <mustafa@il.ibm.com>
531
532         * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
533
534 2004-08-02  Geoffrey Keating  <geoffk@apple.com>
535
536         * dwarf2out.c (output_call_frame_info): Don't change data format
537         due to TARGET_USES_WEAK_UNWIND_INFO.  Always refer to the local
538         label.  Use 'true' not '1'.
539         * doc/install.texi (powerpc-*-darwin*): Mention cctools version
540         required.
541
542 2004-08-02  Gabriel Dos Reis  <gdr@cs.tamu.edu>
543
544         * gdbinit.in: Reflect previous changes to rtunion_def.
545
546 2004-08-02  Roger Sayle  <roger@eyesopen.com>
547
548         * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
549         -> "X % Y" is only valid for TRUNC_MOD_EXPR.
550
551 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
552
553         * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
554         vec_p_reserve.
555         * langhooks.h (lang_hooks::builtin_function): Rename parameter
556         from "class" to "bt_class".
557
558 2004-08-02  Paul Brook  <paul@codesourcery.com>
559
560         PR rtl-optimization/15068
561         * flow.c (init_propagate_block_info): Check condition is reversible.
562
563 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
564
565         * gengtype.h (options::info): Change type to const char *.
566         (enum gc_used_enum): Move out of struct type scope.
567         * gengtype.c (create_option): Convert initializer for option::info to
568         appropiate type.
569         (adjust_field_type, walk_type, write_func_for_structure,
570         write_root, write_roots): Remove pointless cast.
571
572 2004-08-02  J"orn Rennecke <joern.rennecke@superh.com>
573
574         * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
575
576 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
577
578         * rtl.h (union rtunion_def): Have all members  start with the
579         prefix "rt_".
580         (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
581         X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
582         X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
583         XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
584         access.
585         * gengtype.c (adjust_field_rtx_def): Likewise.
586         * rtlanal.c (loc_mentioned_in_p): Likewise.
587
588 2004-08-02  Richard Sandiford  <rsandifo@redhat.com>
589
590         * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
591         Replace uses of mips/elf64.h with mips/elf.h
592         * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
593         (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
594         (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
595         (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
596         (HANDLE_SYSV_PRAGMA): Delete.
597         (ASM_OUTPUT_DEF): Fix formatting.
598         * config/mips/elf64.h: Delete.
599
600 2004-08-01  Zack Weinberg  <zack@codesourcery.com>
601
602         * config/ia64/ia64.c (got_symbolic_operand): Do require a
603         symbol+offset operand to have its offset be zero mod 0x3fff
604         when GOT entries are in use.  Clarify logic in SYMBOL_REF
605         case.  Clarify comments.
606         (ia64_expand_load_address): Split a symbol+offset load when
607         the offset is nonzero mod 0x3fff, not 0x1fff.
608
609 2004-08-01  Geoffrey Keating  <geoffk@apple.com>
610
611         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
612         if trying to *store* to a non-offsettable address.
613         * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
614         a nonoffsettable address.
615         (movdi_internal32): Don't move GPRs to a nonoffsettable address.
616         Clean up.
617         (movti_string): Don't move GPRs to a nonoffsettable address.
618         (movti_ppc64): Don't move GPRs to a nonoffsettable address.  Clean up.
619
620 2004-08-02  Ben Elliston  <bje@au.ibm.com>
621
622         PR target/16155
623         * config/rs6000/altivec.h: Replace typeof with __typeof__.
624
625 2004-08-01  Richard Henderson  <rth@redhat.com>
626
627         * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
628         variable sized types.
629
630 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
631
632         * doc/invoke.texi: In the MIPS options section, remove the passage
633         saying that -mexplicit-relocs is usually disabled for -mabicalls
634         -fno-unit-at-a-time.
635         * config/mips/mips.c (override_options): Remove the code that enforced
636         this rule.
637
638 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
639
640         * config/mips/mips.md (cprestore): Provide two alternatives, one for
641         an in-range offset and one for an out-of-range offset.  Wrap the latter
642         in .set macro/.set nomacro if it's inside a .set nomacro block.
643
644 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
645
646         * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
647         (mips_restore_gp): Declare.
648         * config/mips/mips.c (mips_add_offset): Add a scratch register
649         argument.  Reimplement in rtl only, reusing MIPS16 logic from
650         mips_output_mi_thunk.
651         (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
652         to mips_add_offset.
653         (mips_gp_save_slot): Delete.
654         (mips_restore_gp): New function.
655         (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
656         * config/mips/mips.md (exception_receiver): Turn into a
657         define_insn_and_split.  Use mips_restore_gp to do the split.
658         (call_internal, call_value_internal, call_value_multiple_internal): Use
659         mips_restore_gp to restore $gp.
660
661 2004-07-31  Andrew Pinski  <apinski@apple.com>
662
663         PR other/16842
664         * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
665
666 2004-07-31  Joseph S. Myers  <jsm@polyomino.org.uk>
667
668         * c-decl.c (diagnose_mismatched_decls): Give error for external
669         redeclaration of identifier declared with no linkage, not just
670         warning with -Wtraditional.  Do not check DECL_CONTEXT to give
671         error for redeclaration with no linkage.
672
673 2004-07-30  Geoffrey Keating  <geoffk@apple.com>
674             Fariborz Jahanian <fjahanian@apple.com>
675
676         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
677         non-offsettable addresses even for DImode.
678         (rs6000_split_multireg_move): Cope with non-offsettable addresses
679         being moved into multiple GPRs.
680
681         * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
682         to 64.
683         (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
684         * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
685         to 128.
686         * config/rs6000/darwin-ldouble.c (isless): New macro.
687         (inf): New macro.
688         (nonfinite): New macro.
689         (FPKINF): Delete.
690         (_xlqadd): Completely rewrite.
691         (_xlqmul): Correct overflow handling.
692         (_xlqdiv): Correct overflow handling.
693         * config/rs6000/darwin-ldouble-format: New file.
694
695 2004-07-30  Roger Sayle  <roger@eyesopen.com>
696             Richard Henderson  <rth@redhat.com>
697
698         * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
699         9 into the equivalent lea instruction.
700
701 2004-07-30  Richard Henderson  <rth@redhat.com>
702
703         * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
704         with DECL_INITIAL if fb_lvalue.
705         * tree-gimple.c (is_gimple_id): Add CONST_DECL.
706         * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
707         with <Cxxx>.
708         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
709
710 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
711
712         * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
713         pointer escapes through a function call, assume that the
714         callee will dereference it.
715         (add_pointed_to_var): Assume that VALUE is always an
716         ADDR_EXPR.
717         (collect_points_to_info_r): Only call add_pointed_to_var if
718         the value is an ADDR_EXPR.
719
720 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
721
722         * tree-ssa-alias.c (create_alias_map_for): Do not get the
723         alias set of the inner type of ARRAY_TYPEs.
724
725 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
726
727         * tree-ssa-ccp.c (visit_assignment): Move code to prevent
728         setting a non-register to UNDEFINED right before the call to
729         set_lattice_value.
730
731 2004-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
732
733         * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
734
735 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
736
737         * tree-ssa.c (verify_flow_sensitive_alias_info): When
738         comparing points-to sets of different pointers, make sure the
739         second pointer is actually referenced in the code.
740
741 2004-07-29  Zack Weinberg  <zack@codesourcery.com>
742
743         * config/ia64/ia64.c (setjmp_operand): Delete, unused.
744         (got_symbolic_operand): Remove unreachable code.
745         * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
746         setjmp_operand; add entry for tls_symbolic_operand.
747         * config/ia64/ia64-protos.h: Remove all prototypes of
748         predicate functions.
749
750 2004-07-29  Mark Mitchell  <mark@codesourcery.com>
751
752         * c-common.h (lang_post_pch_load): New variable.
753         * c-pch.c (lang_post_pch_load): Define it.
754         (c_common_read_pch): Use it.
755         * cgraphunit.c (record_call_1): Give the front end a chance to
756         record additional needed entities when a variable is marked as
757         needed.
758         * tlink.c (recompile_files): Robustify.
759         (scan_linker_output): If a symbol is assigned to a file,
760         but after recompilation is not present there, issue an error
761         message.
762
763 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
764
765         * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
766         Take orig_loop argument and pass it to set_level.
767         (schedule_sm): Pass the correct orig_loop to force_move_till.
768
769 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
770
771         * cfgloop.c (update_latch_info): Update dominator of the new block.
772         (canonicalize_loop_headers, flow_loops_find): Do not free dominance
773         info.
774         * dominance.c (verify_dominators): Check that the dominance tree is
775         connected.
776         (recount_dominator): Ignore unreachable blocks.
777         (iterate_fix_dominators): Cleanup old dominance information before
778         recomputing it.
779
780 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
781
782         * tree-ssa-operands.c (get_expr_operands): Revert changes
783         to ADDR_EXPR processing introduced by:
784             2004-06-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
785             * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
786
787 2004-07-29  Joseph S. Myers  <jsm@polyomino.org.uk>
788
789         * doc/implement-c.texi: Add C90 subclause references.  Point to
790         preprocessor documentation instead of duplicating it.  Add points
791         only present in C90.  Fill in documentation for all points.
792
793 2004-07-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
794
795         * pa.c (output_movb): Correct typo.
796
797 2004-07-29  Pat Haugen  <pthaugen@us.ibm.com>
798
799         * ra.h (single_reg_in_regclass): Declare.
800         * ra.c (single_reg_in_regclass): Define.
801         (first_hard_reg): New.
802         (init_ra): Initialize single_reg_in_regclass.
803         * ra-colorize.c (ok_class): New.
804         (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
805
806 2004-07-29  Nathan Sidwell  <nathan@codesourcery.com>
807
808         * gcov-io.h: Allow zero tag as EOF indicator.
809         (gcov_is_eof): Remove.
810         (gcov_truncate): Remove.
811         * gcov-io.c (gcov_seek): Always SEEK_SET.
812         * libgcov.c (gcov_exit): Don't use gcov_truncate.  Write explicit
813         EOF tag.
814         * coverage.c (read_counts_file): Don't use gcov_is_eof.
815         * gcov-dump.c (dump_file): Likewise.
816         * gcov.c (read_graph_file, read_count_file): Likewise.
817
818         * c-decl.c (complete_array_type): Don't gratuitously copy
819         maxindex.  Check it always has a type.
820
821 2004-07-29  Steven Bosscher  <stevenb@suse.de>
822
823         * rtl.c (currently_expanding_to_rtl): New.
824         * rtl.h (currently_expanding_to_rtl): Export it.
825         * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
826
827         * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
828         inliner hack.
829         * config/sh/sh.c: Replace rtx_equal_function_value_matters
830         with currently_expanding_to_rtl.
831         * config/sh/sh.md: Likewise.
832         * config/ia64/ia64.c (got_symbolic_operand): Likewise.
833
834 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
835
836         Introduce sh2a support.
837         2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
838         * config.gcc: Build multilibs for sh2a and sh2a-single by
839         default.
840         * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
841         default.  Split their tests out of the corresponding SH4
842         multilibs.
843         * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
844         multilibs for SH2a.
845         2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
846         * config.gcc: Handle sh2a multilibs and cpu selection.
847         * config/sh/sh.h: Likewise.  Handle sh2a command line flags.
848         * config/sh/t-mlib-sh2a: New.
849         * config/sh/t-mlib-sh2a-nofpu: New.
850         * config/sh/t-mlib-sh2a-single: New.
851         * config/sh/t-mlib-sh2a-single-only: New.
852         2004-07-09  Nick Clifton  <nickc@redhat.com>
853         Issue 43400
854         * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
855         -ml and -m2a are used together.
856         2004-03-23  DJ Delorie  <dj@redhat.com>
857         * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
858         when we have a double-sized FPU.
859         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
860         * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
861         is set.
862         * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
863         -msh2a-single and -msh2a-single-only
864         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
865         * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
866         is set.
867         2004-02-20  DJ Delorie  <dj@delorie.com>
868         * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
869         2004-02-20  Fred Fish <fnf@redhat.com>,
870         Corinna Vinschen <vinschen@redhat.com>
871         * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
872         (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
873         2004-02-18  DJ Delorie  <dj@redhat.com>
874         * config/sh/sh.c (broken_move): Add support for movi20.
875         * config/sh/sh.h: Likewise.
876         (SHIFT_COUNT_TRUNCATED): Set for sh2a.
877         * config/sh/sh.md (udivsi3_sh2a): New.
878         (udivsi3): Call it.
879         (divsi3_sh2a): New.
880         (divsi3): Call it.
881         (mul_r): New.
882         (ashlsi3_sh2a): New.
883         (ashrsi3_sh2a): New.
884         (lshrsi3_sh2a): New.
885         (movsi_i): Disable for sh2a.
886         (movsi_ie): Add movi20.
887         (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
888         sh2a, for -m2a-nofpu mode.
889         2004-02-13  DJ Delorie  <dj@redhat.com>
890         * config/sh/lib1funcs.asm: Handle double vs single better.
891         * config/sh/sh.h: Likewise.
892         2004-02-09  DJ Delorie  <dj@redhat.com>
893         * config/sh/crt1.asm: Add support for sh2a.
894         * config/sh/elf.h: Likewise.
895         * config/sh/lib1funcs.asm: Likewise.
896         * config/sh/sh.c: Likewise.
897         * config/sh/sh.md: Likewise.
898         * config/sh/sh.h: Likewise.
899         * config/sh/t-sh: Likewise.
900
901 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
902
903         * config/frv/frv.md (movqi_internal, movhi_internal,
904         movsi_internal): Add backup alternatives for memory inputs.
905
906 2004-07-28  Matt Austern  <austern@apple.com>
907
908         * config/darwin.c (darwin_one_byte_bool): New global variable.
909         * config/darwin.h (darwin_one_byte_bool): Declare.
910         (SUBTARGET_OPTIONS): Define macro.  (for -mone-byte-bool flag.)
911         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
912         value of darwin_one_byte_bool.
913         * doc/invoke.texi: Document -mone-byte-bool flag.
914
915 2004-07-28  Eric Christopher  <echristo@redhat.com>
916
917         * c-common.c (c_common_unsafe_for_reeval): Delete.
918         * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
919         * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
920         * calls.c (fix_unsafe_tree): Delete.
921         (expand_call): Delete code which used above.
922         * dojump.c (do_jump): Delete UNSAVE_EXPR case.
923         * expr.c (expand_expr_real_1): Ditto.
924         * fold-const.c (non_lvalue): Ditto.
925         * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
926         (lhd_unsafe_for_reeval): Ditto.
927         * langhooks.c (lhd_unsafe_for_reeval): Ditto.
928         * langhooks.h (unsafe_for_reeval): Ditto.
929         (unsave_expr_now): Adjust comment.
930         * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
931         (estimate_num_insns_1): Ditto.
932         * tree-pretty-print.c (dump_generic_node): Ditto.
933         * tree.c (expr_align): Ditto.
934         (unsave_expr): Delete.
935         (unsafe_for_reeval): Ditto.
936         * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
937         * tree.def (UNSAVE_EXPR): Delete.
938         * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
939
940 2004-07-28  Zack Weinberg  <zack@codesourcery.com>
941
942         * tree.h (enum tls_model): Move ...
943         * coretypes.h: ... here.
944
945 2004-07-28  Richard Sandiford <rsandifo@redhat.com>
946
947         * config/frv/frv.h (EPILOGUE_USES): New.  Use LR.
948
949 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
950
951         * cse.c (validate_canon_reg): New function, split out from...
952         (canon_reg): ...here.  Use validate_canon_reg for both 'e' and 'E'.
953
954 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
955
956         * tree-ssa-alias.c (maybe_create_global_var): Don't just
957         return if .GLOBAL_VAR has been created.
958
959 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
960
961         * tree-ssa.c (verify_flow_insensitive_alias_info): Process
962         every variable that may have aliases, not just tags.
963
964 2004-07-28  Aldy Hernandez  <aldyh@redhat.com>
965
966         * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
967         move_from_CR_eq_bit.
968         Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
969
970
971         * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
972         e500_flip_eq_bit.
973
974         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
975         output_e500_flip_eq_bit.
976
977         * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
978         output_e500_flip_eq_bit.
979         (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
980         output_e500_flip_eq_bit.
981         Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
982         (print_operand): case D.  Get to EQ bit.
983
984 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
985
986         * gcov.c (function_summary): Add missing \n.
987
988 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
989
990         Introduce sh4a support.
991         * config.gcc: Handle sh4a multilibs and cpu selection.
992         * config/sh/sh.h: Likewise.  Handle sh4a command line flags.
993         * config/sh/t-mlib-sh4a: New.
994         * config/sh/t-mlib-sh4al: New.
995         * config/sh/t-mlib-sh4a-nofpu: New.
996         * config/sh/t-mlib-sh4a-single: New.
997         * config/sh/t-mlib-sh4a-single-only: New.
998         2004-02-20  DJ Delorie  <dj@redhat.com>
999         * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
1000         * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
1001         2003-08-22  Eric Christopher  <echristo@redhat.com>
1002         * config/sh/sh4a.md: Update for chip errata.
1003         2003-08-07  Eric Christopher  <echristo@redhat.com>
1004         * config/sh/sh4a.md: New file. sh4a processor description.
1005         2003-07-08  Alexandre Oliva  <aoliva@redhat.com>
1006         * config/sh/sh.h (TARGET_SWITCHES): Added 4al.  Adjust description
1007         of -m4a-nofpu.
1008         (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
1009         * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
1010         * doc/invoke.texi (SH Options): Document -m4al.
1011         2003-07-03  Alexandre Oliva  <aoliva@redhat.com>
1012         * config/sh/sh.c (expand_block_move): Remove commented-out code
1013         checked in by mistake.
1014         (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
1015         single elements from SFmode vectors.
1016         * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
1017         register.
1018         (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
1019         2003-07-01  Alexandre Oliva  <aoliva@redhat.com>
1020         * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
1021         sh_fsca_int2sf): Remove variable declarations.
1022         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
1023         sh_fsca_int2sf): New functions.
1024         (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
1025         sh_fsca_int2sf_rtx): New static variables.
1026         * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
1027         sh_fsca_int2sf): Declare.
1028         * config/sh/sh.md: Adjust.
1029         * doc/invoke.texi (SH Options): Document new options.
1030         * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
1031         compatibility from SH4 code.
1032         2003-06-27  Alexandre Oliva  <aoliva@redhat.com>
1033         * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
1034         early.
1035         (memory_movsrc_operand): Renamed to...
1036         (unaligned_load_operand): ... this.  Simplified.
1037         * config/sh/sh.h (PREDICATE_CODES): Adjust.
1038         * config/sh/sh.md (movua, extv, extzv): Likewise.  Change movua's
1039         input operand to SImode, and adjust the others.  Introduce
1040         post-increment by peephole.
1041         * config/sh/sh.c (expand_block_move): Give the target address the
1042         same mode as the temp reg.
1043         * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
1044         copying.
1045         2003-06-26  Alexandre Oliva  <aoliva@redhat.com>
1046         Introduce support for SH4a.
1047         * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
1048         __SH4A__.  Emit 4 4kb blocks and touch all of them otherwise.
1049         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
1050         sh_fsca_int2sf): New.
1051         (sh_init_builtins): Initialize them.
1052         (print_operand): Support `d'.
1053         (expand_block_move): Use movua if src is misaligned.
1054         (memory_movsrc_operand): New.
1055         * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
1056         and one of the SH4 macros.
1057         (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
1058         SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
1059         SELECT_SH4A_SINGLE): New.
1060         (TARGET_NONE): Add SH4A_BIT.
1061         (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
1062         (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
1063         (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
1064         (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
1065         (enum processor_type): Added PROCESSOR_SH4A.
1066         (PREDICATE_CODES): Add memory_movsrc_operand.
1067         * config/sh/sh.md: Removed unused variables.
1068         (attr cpu): Add sh4a.
1069         (attr type): Add movua, fsrra and fsca.
1070         (prefetch): New, for SH4.
1071         (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
1072         (toggle_sz): Set type to fp.
1073         (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
1074         (movua, extv, extzv): New.
1075         * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
1076         and 4a-single-only.
1077
1078 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
1079
1080         * tree-optimize.c (init_tree_optimization_passes): Schedule
1081         pass_may_alias right after the program is renamed into SSA.
1082         * tree-pass.h (PROP_alias): Define.
1083         * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
1084         * tree-sra.c (pass_sra): Likewise.
1085         * tree-ssa-ccp.c (pass_ccp): Likewise.
1086         * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
1087         * tree-ssa-dce.c (pass_dce): Likewise.
1088         * tree-ssa-dom.c (pass_dominator): Likewise.
1089         * tree-ssa-dse.c (pass_dse): Likewise.
1090         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
1091         * tree-ssa-loop-ch.c (pass_ch): Likewise.
1092         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
1093         * tree-ssa-pre.c (pass_pre): Likewise.
1094         * tree-tailcall.c (pass_tail_recursion): Likewise.
1095         * tree-ssa.c (pass_redundant_phi): Likewise.
1096         * tree-ssa-alias.c (aliases_computed_p): Remove.
1097         Update all users.
1098         (init_alias_info): Do not mark all type tags for renaming
1099         unconditionally.
1100         Clear may_aliases from every symbol.
1101         (setup_pointers_and_addressables): If a pointer has not been
1102         dereferenced and it had a type tag, clear it and mark the old
1103         tag for renaming.
1104
1105 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
1106
1107         PR tree-optimization/16705
1108         * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
1109         .GLOBAL_VAR.
1110
1111 2004-07-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1112
1113         * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
1114         check.
1115
1116         * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
1117         don't make another one.
1118
1119         PR optimization/15077
1120         * function.h (struct function): Add field saved_static_chain_decl.
1121         Fix comment for static_chain_decl.
1122         * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
1123         * tree-inline.h (save_body): Add new arg.
1124         * tree-optimize.c (tree_rest_of_compilation): Handle saving
1125         static_chain_decl.
1126
1127 2004-07-27  Richard Henderson  <rth@redhat.com>
1128
1129         * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
1130         (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
1131         is_gimple_addressable.
1132         * tree-gimple.c (is_gimple_addressable): Rename from
1133         is_gimple_addr_expr_arg; accept INDIRECT_REF.
1134         (is_gimple_lvalue): Don't test INDIRECT_REF directly.
1135         * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
1136         rename to is_gimple_addressable.
1137
1138 2004-07-28  Alan Modra  <amodra@bigpond.net.au>
1139
1140         * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
1141
1142 2004-07-27  Richard Henderson  <rth@redhat.com>
1143
1144         * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
1145         before rounding.
1146
1147 2004-07-27  Zack Weinberg  <zack@codesourcery.com>
1148
1149         * libgcc2.c: Change all conditionals testing
1150         LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
1151         * libgcc2.h: Likewise.
1152         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
1153         TYPE_PRECISION of float80_type to 80.
1154         * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
1155         of fpreg_type and float80_type to 80.
1156         * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
1157         * config/m68k/netbsd-elf.h:
1158         Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
1159         to evaluate to 80 whenever they would formerly have evaluated to 96.
1160         * config/i386/sco5.h: Remove unnecessary redefinition of
1161         LONG_DOUBLE_TYPE_SIZE.
1162         * doc/rtl.texi: Clarify uses of XFmode and TFmode.
1163         * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
1164         XFmode, with a bitsize of 80.  Update commentary.
1165         * config/ia64/ia64-modes.def: Likewise.
1166         * config/m68k/m68k-modes.def: Likewise.
1167
1168 2004-07-27  Steven Bosscher  <stevenb@suse.de>
1169
1170         * cfgexpand.c (tree_expand_cfg): Fix comment.
1171
1172         * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
1173         * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
1174         Remove.
1175         (prepare_function_start): Don't set rtx_equal_function_value_matters.
1176         * integrate.c (copy_rtx_and_substitute): Don't test for it.
1177         * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
1178         Don't set rtx_equal_function_value_matters.  Don't register RTL hooks
1179         here again.  Update leading comment.
1180         * rtl.c (rtx_equal_function_value_matters): Remove.
1181         (rtx_equal_p): Don't test for it.
1182         * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
1183         Likewise.
1184
1185         * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
1186         * rtl.c (note_insn_name): Likewise.
1187         * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
1188         * final.c (final_scan_insn): Likewise.
1189
1190         * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
1191         * passes.c (rest_of_handle_eh): Do it here.
1192
1193         * stmt.c (struct nesting): Remove struct nesting block member.
1194         (struct stmt_status): Remove x_block_start_count field.
1195         (current_block_start_count): Remove.
1196
1197 2004-07-27  Brian Booth  <bbooth@redhat.com>
1198
1199         * tree-optimize.c (register_one_dump_file): Update condition that uses
1200         static_pass_number.
1201         (dup_pass_1): Replace with...
1202         (next_pass_1): This.
1203         (NEXT_PASS): Call next_pass_1.
1204         (DUP_PASS): Remove.
1205         (init_tree_optimization_passes): Remove uses of DUP_PASS.
1206         (execute_one_pass): Update condition that uses
1207         static_pass_number.
1208         * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
1209         integer.
1210
1211 2004-07-27  Nick Clifton  <nickc@redhat.com>
1212
1213         * config/m32r/m32r.c: Include integrate.h in order to get the
1214         prototype for get_hard_reg_initial_val().
1215
1216         * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
1217         and tidy up indentation.
1218         (final_presence_set): Use absence_set instead, so that if there is
1219         nothing in the "o" pipe the "s" pipe can be scheduled.
1220
1221 2004-07-27  Diego Novillo  <dnovillo@redhat.com>
1222
1223         * tree-ssa-alias.c (create_name_tags): Ignore pointers that
1224         don't have PT_VARS nor PT_MALLOC set.
1225         Clear name tag from pointers that have not been dereferenced.
1226         (set_pt_anything, set_pt_malloc): Forward declare.
1227         * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
1228         not type compatibility when determining if a pointer can be
1229         copy propagated.
1230
1231 2004-07-27  Richard Sandiford  <rsandifo@redhat.com>
1232
1233         * expr.h (canonicalize_condition, get_condition): Add an int argument.
1234         * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
1235         it to check whether the condition is still valid at the jump insn.
1236         * ifcvt.c (noce_get_condition): Likewise.
1237         (noce_get_alt_condition): Update call to canonicalize_condition.
1238         * loop-iv.c (simplify_using_initial_values): Update call to
1239         get_condition.  Remove FIXME.
1240         (check_simple_exit): Update call to get_condition.
1241         * loop-unswitch.c (may_unswitch_on): Likewise.
1242         * loop.c (check_dbra_loop): Likewise.
1243         (canonicalize_condition, get_condition): Add an argument to say whether
1244         the condition must still be valid at INSN.
1245         (get_condition_for_loop): Update call to get_condition.  Require that
1246         the condition be valid at INSN.
1247         * predict.c (estimate_probability): Update call to get_condition.
1248         Remove unused earliest parameter.
1249         (expected_value_to_br_prob): Update call to canonicalize_condition.
1250
1251 2004-07-26  Eric Christopher  <echristo@redhat.com>
1252
1253         * tree-dfa.c (add_referenced_var): Register initializers of global
1254         variables.
1255
1256 2004-07-26  Paolo Bonzini  <bonzini@gnu.org>
1257
1258         * config/i386/i386.c (function_arg): Always treat 8-
1259         and 16-byte wide vectors the same, even if MMX/SSE
1260         are disabled.
1261         (contains_128bit_aligned_vector_p): Add comment.
1262
1263 2004-07-26  J"orn Rennecke <joern.rennecke@superh.com>
1264
1265         * ra.h (enum node_type): Rename to:
1266         (enum ra_node_type).
1267         * ra-colorize.c: Likewise.
1268
1269 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
1270
1271         * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
1272         after simplifying the jump.
1273
1274 2004-06-26  Richard Henderson  <rth@redhat.com>
1275
1276         * calls.c (combine_pending_stack_adjustment_and_call): Make
1277         preferred_unit_stack_boundary argument unsigned.  Make
1278         unadjusted_alignment unsigned.
1279         (expand_call): Make preferred_stack_boundary and
1280         preferred_unit_stack_boundary variables unsigned.
1281         * function.c (assign_stack_local_1): Make alignment unsigned.
1282         * function.h (struct function): Make stack_alignment_needed,
1283         preferred_stack_boundary unsigned.
1284         * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
1285         (ix86_compute_frame_layout): Make stack_alignment_needed,
1286         preferred_alignment variables unsigned.
1287         * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
1288
1289 2004-07-26  Tom Tromey  <tromey@redhat.com>
1290
1291         * tree.h: Fix typo in comment.
1292
1293 2004-07-26  Daniel Jacobowitz  <dan@debian.org>
1294
1295         PR bootstrap/12804
1296         * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
1297         (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
1298         (ggc_free): Remove incorrect freeing.
1299         (sweep_pages): Advance PP for large pages.  Fix indentation.
1300
1301 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
1302
1303         PR rtl-optimization/16643
1304         * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
1305         * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
1306         * basic-block.h (reorder_basic_blocks): Add a flags parameter.
1307         * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
1308         (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
1309         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1310         * rtl.h (tracer): Add a flags parameter.
1311         * tracer.c (tracer): Pass it to cfg_layout_initialise.
1312         * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
1313         (rest_of_handle_reorder_blocks): Update calls to tracer and
1314         reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
1315         (rest_of_handle_tracer): Pass 0 to tracer.
1316         (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
1317
1318 2004-07-25  David Edelsohn  <edelsohn@gnu.org>
1319
1320         PR target/16239
1321         * config/rs6000/rs6000.md (movdi_internal64): Further disparage
1322         f->f.
1323
1324 2004-07-24  Nathan Sidwell  <nathan@codesourcery.com>
1325
1326         * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
1327         (BINFO_BASE_ACCESS): Adjust.
1328         (BINFO_BASE_ACCESS_APPEND): New.
1329         (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
1330         * dbxout.c (dbxout_type): Adjust binfo access accessing.
1331         * dwarf2out.c (gen_member_die): Likewise.
1332         * tree-dump.c (deque_and_dump): Likewise.
1333
1334 2004-07-26  Falk Hueffner  <falk@debian.org>
1335
1336         * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
1337         costs.
1338
1339 2004-07-25  Roger Sayle  <roger@eyesopen.com>
1340
1341         * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
1342         value off of the stack if TARGET_USE_FFREEP.
1343
1344 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
1345
1346         * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
1347         * gengtype-yacc.y: Likewise.  Replace free() with XDELETE ().
1348         * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
1349         check on invocation of XRESIZEVEC ().
1350
1351 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
1352
1353         * c-common.c (disable_builtin_function): Rename variable n to
1354         new_disabled_builtin.
1355         * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
1356         Rename local variable old to old_decl.
1357         * gensupport.c (shift_output_template): Rename parameter old to src.
1358         * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
1359         old_rtx and newx to new_rtx.
1360
1361 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
1362
1363         * Makefile.in (C_PRAGMA_H): New variable to track dependencies
1364         of c-pragma.h.
1365         * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
1366         enum cpp_ttype.
1367         * c-lex.c: Likewise.
1368
1369 2004-07-25  Roger Sayle  <roger@eyesopen.com>
1370
1371         * fold-const.c (constant_boolean_node): Make extern.
1372         (make_range): Wrap long lines.
1373         (fold_cond_expr_with_comparison): Remove unnecessary call to
1374         pedantic_non_lvalue.  Add missing calls to fold_convert.
1375         (fold_truthop): Add missing calls to fold_convert.
1376         (fold): Likewise.
1377         * tree.h (constant_boolean_node): Add prototype here.
1378         * builtins.c (expand_builtin_strncmp): Add missing calls to
1379         fold_convert.
1380         * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
1381         Call fold_convert and constant_boolean_node to correct types.
1382         * tree-ssa-forwprop.c (substitute_single_use_vars): Add
1383         missing call to fold_convert to correct types.
1384
1385 2004-07-26  Niall Douglas  <s_fsfeurope2@nedprod.com>
1386             Brian Ryner  <bryner@brianryner.com>
1387
1388         PR c++/9283
1389         PR c++/15000
1390         * c-common.c (c_common_attribute_table): Allow
1391         handle_visibility_attribute to be called for types.
1392         (handle_visibility_attribute) When given a type, set the visibility
1393         bits on the TYPE_NAME.  When given a decl, don't set no_add_attrs
1394         so that we can check later whether the attribute was present. Added
1395         warning if attribute applied to non class type.
1396         * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
1397         decls and checking that they are consistent.
1398         * common.opt: Added -fvisibility.
1399         * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
1400         * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
1401         * flags.h, tree.h: Added assorted support defines for overall patch
1402         * opts.c: Added parsing support for -fvisibility.
1403         * tree.c (build_decl): Set visibility for all decls to be whatever
1404         is in force at that time.
1405         * varasm.c (default_binds_local_p_1): Reworked logic determining
1406         when to make a symbol locally bound.
1407         * doc/invoke.texi: Added documentation for -fvisibility and
1408         -fvisibility-inlines-hidden.
1409
1410 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1411
1412         * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
1413         * c-common.c: Add missing casts from void * to other types.
1414         * c-decl.c: Likewise.
1415         * c-format.c: Likewise.
1416         * c-lex.c: Likewise.
1417         * c-pragma.c: Likewise.
1418         * c-typeck.c: Likewise.
1419         * defaults.h: Likewise.
1420         * genconstants.c: Likewise.
1421         * gengtype-lex.l: Likewise.
1422         * genmodes.c: Likewise.
1423         * read-rtl.c: Likewise.
1424         * rtl.c: Likewise.
1425
1426 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1427
1428         * bitmap.c: Use type-safe memory allocation macros from libiberty.
1429         * c-common.c: Likewise.
1430         * c-decl.c: Likewise.
1431         * c-lang.c: Likewise.
1432         * c-lex.c: Likewise.
1433         * c-opts.c: Likewise.
1434         * c-parse.in: Likewise.
1435         * c-typeck.c: Likewise.
1436         * genconditions.c: Likewise.
1437         * gengtype-lex.l: Likewise.
1438         * gengtype-yacc.y: Likewise.
1439         * gengtype.c: Likewise.
1440         * genmodes.c: Likewise.
1441         * gensupport.c: Likewise.
1442         * read-rtl.c: Likewise.
1443         * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
1444         htab_find_slot().
1445
1446 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1447
1448         * c-decl.c (groktypename, groktypename_in_param_context): Rename
1449         variable typename to type_name.
1450         * c-lex.c (interpret_float): Likewise.
1451
1452 2004-07-25  Roger Sayle  <roger@eyesopen.com>
1453
1454         * convert.c (convert_to_real, convert_to_integer,
1455         convert_to_complex): Replace calls to build with calls to buildN.
1456         * coverage.c (tree_coverage_counter_ref): Likewise.
1457         * dojump.c (do_jump): Likewise.
1458         * dwarf2out.c (loc_descriptor_from_tree): Likewise.
1459         * emit-rtl.c (component_ref_for_mem_expr,
1460         set_mem_attributes_minus_bitpos): Likewise.
1461         * explow.c (update_nonlocal_goto_save_area): Likewise.
1462         * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
1463         expand_mult_add): Likewise.
1464         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
1465         store_constructor, get_inner_reference, expand_expr_real_1,
1466         try_casesi, try_tablejump): Likewise.
1467         * function.c (expand_function_start): Likewise.
1468         * stmt.c (emit_case_bit_tests, expand_end_case_type,
1469         node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
1470         * stor-layout.c (place_union_field, layout_type): Likewise.
1471         * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
1472         * varasm.c (copy_constant): Likewise.
1473
1474 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1475
1476         * c-common.c: Rename all identifiers named `new'.
1477         * c-decl.c: Likewise.
1478         * gensupport.c: Likewise.
1479         * simplify-rtx.c: Likewise.
1480         * c-common.c (disable_builtin_function): Replace a call to xmalloc()
1481         with XNEW().
1482         * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
1483         with XNEWVEC().
1484
1485 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
1486
1487         PR c/15360
1488         * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
1489         declarations until after calling pushdecl.
1490         (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
1491         "extern" and not on whether the declaration is initialized.
1492
1493 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
1494
1495         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
1496         (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
1497         * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
1498         "cpplib.h", "c-pragma.h", "c-common.h".
1499         (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
1500         (solaris_register_pragmas): New functions.
1501         * config/sol2-protos.h: New file.
1502         * config/sol2.c: New file.
1503         * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
1504         (REGISTER_TARGET_PRAGMAS): New macros.
1505         (solaris_pending_aligns, solaris_pending_inits)
1506         (solaris_pending_finis): New variables.
1507         * config/t-sol2 (sol2-c.o): Update dependencies.
1508         (sol2.o): New rule.
1509         * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
1510         SUBTARGET_INSERT_ATTRIBUTES.
1511         (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
1512         * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
1513         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
1514         * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
1515         * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
1516         * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
1517         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
1518         * config/sparc/sparc.c (sparc_attribute_table): New.
1519         (TARGET_INSERT_ATTRIBUTES): Define in terms of
1520         SUBTARGET_INSERT_ATTRIBUTES.
1521         (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
1522         is defined.
1523         * doc/extend.texi (Solaris Pragmas): New section.
1524
1525 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1526
1527         * c-common.c: Rename all identifiers named `class' to `cl'.
1528         * c-common.h: Likewise.
1529         * c-parse.in: Likewise.
1530         * c-typeck.c: Likewise.
1531         * genmodes.c: Likewise.
1532         * real.c: Likewise.
1533         * real.h: Likewise.
1534         * recog.c: Likewise.
1535         * recog.h: Likewise.
1536         * regrename.c: Likewise.
1537         * tree.h: Likewise.
1538         * c-common.c (builtin_function_2): Change type of 5th parameter from
1539         int to enum built_in_function. Change type of 8th parameter from int
1540         to bool.
1541         * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
1542         with GGC_CNEW().
1543         * c-typeck.c (convert_arguments): Change type of formal_prec from
1544         int to unsigned int.
1545         * genmodes.c (blank_mode): Make a few negative constants unsigned.
1546         (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
1547         emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
1548         emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
1549         emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
1550         iterator to for_all_modes () instead of an enum because enums can't
1551         be incremented in C++.
1552
1553
1554 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
1555
1556         * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
1557         hard registers.
1558
1559 2004-07-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1560
1561         * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
1562         Handle ARRAY_RANGE_REF like ARRAY_REF.
1563
1564 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
1565
1566         * c-typeck.c (digest_init): Don't allow arrays of signed or
1567         unsigned variants of wchar_t to be initialized by wide string
1568         constants.  Do allow arrays of enumerated types compatible with
1569         wchar_t to be initialized by wide string constants.  Refine tests
1570         distinguishing wide and narrow strings and arrays.  Give specific
1571         error for arrays of other integer types initialized by string
1572         constants.
1573         (output_init_element, process_init_element): Check for
1574         INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
1575         initializing with string constants.
1576
1577 2004-07-25  Richard Henderson  <rth@redhat.com>
1578
1579         * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
1580         on the RESULT_DECL.
1581         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
1582         * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
1583         DECL_IGNORED_P to new decl.
1584
1585 2004-07-24  Zack Weinberg  <zack@codesourcery.com>
1586
1587         * config/ia64/ia64.c (general_xfmode_operand)
1588         (destination_xfmode_operand): Delete.
1589         * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
1590         * config/ia64/ia64.md (*movxf_internal): Use general_operand
1591         and destination_operand.
1592
1593 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
1594
1595         * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
1596         (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
1597
1598 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
1599             Zack Weinberg  <zack@codesourcery.com
1600
1601         PR 16684
1602         * c-decl.c (diagnose_mismatched_decls): Don't issue a
1603         redundant-declaration warning the first time a builtin is
1604         declared explicitly.
1605
1606 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1607
1608         * tree.h (staticp): Change return type to bool.
1609
1610 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1611
1612         * c-common.c (c_staticp): Last episode of the staticp saga.
1613
1614 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1615
1616         * c-common.h (c_staticp): Change return type from int to bool.
1617         * tree.c (staticp): Likewise.
1618         * langhooks.h (staticp): Likewise.
1619
1620 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1621
1622         * langhooks-def.h (lhd_staticp): Change return type from int to
1623         bool in prototype to match definition.
1624
1625 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1626
1627         * system.h (bool, true, false): Don't redefine as preprocessor macros
1628         in C++.
1629
1630 2004-07-24  Roger Sayle  <roger@eyesopen.com>
1631
1632         * expmed.c (init_expmed): A signed modulus by a power of two is
1633         considered cheap if its less than or equal to four instructions.
1634
1635 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1636
1637         * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
1638         GGC_CNEWVAR): New macros.
1639
1640 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
1641
1642         * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
1643         lists.
1644         * c-decl.c: Likewise.
1645         * c-format.c: Likewise.
1646         * c-lex.c: Likewise.
1647         * c-opts.c: Likewise.
1648         * c-pragma.c: Likewise.
1649         * c-typeck.c: Likewise.
1650         * gencheck.c: Likewise.
1651         * genconditions.c: Likewise.
1652         * genconfig.c: Likewise.
1653         * genflags.c: Likewise.
1654         * gengtype.c: Likewise.
1655         * gensupport.c: Likewise.
1656         * ggc-none.c: Likewise.
1657         * langhooks.c: Likewise.
1658         * statistics.h: Likewise.
1659         * stub-objc.c: Likewise.
1660         * java/decl.c: Likewise.
1661
1662 2004-07-24  Roman Zippel  <zippel@linux-m68k.org>
1663
1664         * config/m68k/m68k.c (output_scc_di): Fix coding style.
1665         (symbolic_operand): Fix prototype.
1666         * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
1667         * config/m68k/m68k.md: Add constants for registers a0 and sp and
1668         use them, change from the "{...}" syntax to the simpler {...}
1669         syntax.
1670         (*cfv4_extendqisi2): Fix destination predicate.
1671         * config/m68k/m68k-protos.h: Remove various declarations also
1672         generated via PREDICATE_CODES.
1673
1674 2004-07-23  Mike Stump  <mrs@apple.com>
1675
1676         * c-typeck.c (convert_for_assignment): Tightened up pointer
1677         converstions that differ in signedness.
1678
1679 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
1680
1681         * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
1682
1683 2004-07-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1684
1685         * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
1686         * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
1687
1688         * gimplify.c (gimplify_compound_lval): Check for no handled
1689         operations, rather than checking for explicit list of nodes.
1690         (is_gimple_addr_expr_arg_or_indirect): New function.
1691         (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
1692         redundant setting of TREE_INVARIANT.
1693         (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
1694         * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
1695
1696 2004-07-23  Diego Novillo  <dnovillo@redhat.com>
1697
1698         PR tree-optimization/16688
1699         PR tree-optimization/16689
1700         * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
1701         unnecessary initialization of 'tag'.
1702         (get_tmt_for): Check that the new type tag has the same alias
1703         set as the pointed-to type.
1704         (group_aliases): Only regular variables need to be removed
1705         from the alias set of a name tag.
1706         * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
1707         propagation if the two types are not compatible.
1708         (merge_alias_info): Rename from replace_ssa_names_ann.
1709         Add more checking.
1710         (replace_exp_1): If both arguments are SSA_NAMEs, check that
1711         the propagation can be done.
1712         Only call merge_alias_info on pointers.
1713         (propagate_value): Likewise.
1714         * tree-ssa-copyrename.c: Include langhooks.h.
1715         (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
1716         to do the merging.
1717         Do not coalesce variables with incompatible types.
1718         (rename_ssa_copies): Call replace_ssa_name_symbol.
1719         * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
1720         the same type as the underlying _DECL.
1721         * tree-ssanames.c (replace_ssa_name_symbol): New function.
1722         * tree.h (replace_ssa_name_symbol): Declare.
1723
1724 2004-07-23  Richard Henderson  <rth@redhat.com>
1725
1726         PR c++/16277
1727         * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
1728         unshare it properly.
1729         (gimplify_modify_expr_rhs): Push assignment from a conditional into
1730         the conditional for all non-register types.
1731
1732 2004-07-23  Richard Henderson  <rth@redhat.com>
1733
1734         * expr.c (expand_expr_real_1): Don't handle non-local variables.
1735         * expr.h (fix_lexical_addr): Remove.
1736         * function.c (NEED_SEPARATE_AP): Remove.
1737         (fix_lexical_addr): Remove.
1738         * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
1739         not null decl_function_context.
1740         (create_alias_vars): Likewise.
1741         * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
1742         (simple_goto_p): Likewise.
1743         * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
1744         * tree-ssa-ccp.c (get_default_value): Likewise.
1745         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
1746         * tree.c (needs_to_live_in_memory): Likewise.
1747         * tree-flow-inline.h (may_be_aliased): Move...
1748         * tree-ssa-alias.c (may_be_aliased): ... here.  Enhance check for
1749         when TREE_STATIC variables may be addressable.
1750
1751 2004-07-24  Jakub Jelinek  <jakub@redhat.com>
1752
1753         * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
1754
1755 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
1756
1757         * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
1758         bitmap contents if GENERATOR_FILE is defined.
1759         * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
1760         ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
1761
1762 2004-07-23  Joseph S. Myers  <jsm@polyomino.org.uk>
1763
1764         * c-decl.c (start_function): Form composite type of function types
1765         rather than copying type from previous prototype declaration.
1766
1767 2004-07-23  Janis Johnson  <janis187@us.ibm.com>
1768
1769         * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
1770         the const qualifier for the second argument in the C++ functions.
1771
1772         * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
1773         specific pointer types.
1774
1775         * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
1776         vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
1777         for vector bool and/or vector pixel, add C++ and C missing support.
1778         (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
1779         vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
1780         vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
1781         vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
1782         vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
1783         missing C++ and C support for vector bool and/or vector pixel.
1784         (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
1785         vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
1786         vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
1787         vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
1788         vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
1789         C++ and C types used for vector bool and/or vector pixel.
1790         (vec_st, vec_stl): Add C++ support for vector pixel.
1791         (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
1792         (vec_all_ne): Add C++ support for vector pixel.
1793
1794         * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
1795         (vec_vmulesb): Add missing C++ function.
1796         (vec_perm): Fix type of third argument in C++ function.
1797         (vec_vsum4shs): Fix C++ function name.
1798         (vec_any_ge): Remove C++ functions for unsupported arg combinations.
1799         (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
1800         argument passed to the error handler in C macro.
1801         (vec_nmsub): Remove extra parens around argument names in C macro.
1802         (vec_packpx): Add missing parens in C macro.
1803
1804 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
1805
1806         * machmode.def: Remove vector modes.
1807         * config/alpha/alpha-modes.def: Add supported vector modes.
1808         * config/arm/arm-modes.def: Likewise.
1809         * config/frv/frv-modes.def: Likewise.
1810         * config/i386/i386-modes.def: Likewise.
1811         * config/rs6000/rs6000-modes.def: Likewise.
1812         * config/sh/sh-modes.def: Likewise.
1813
1814 2004-07-23  Matthias Klose  <doko@debian.org>
1815
1816         * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
1817         * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
1818         * config.h: Regenerate.
1819         * configure: Likewise.
1820
1821 2004-07-22  Mark Mitchell  <mark@codesourcery.com>
1822
1823         * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
1824         generated SYMBOL_REFs for labels.
1825         * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
1826         Change prototype.
1827         (machopic_stub_name): Remove.
1828         (machopic_indirection_name): New function.
1829         (machopic_mcount_stub_name): Likewise.
1830         (machopic_classify_name): Remove.
1831         (machopic_function_base_sym): New function.
1832         (machpoic_classify_symbol): Likewise.
1833         (machopic_classify_ident): Remove.
1834         (machopic_define_ident): Likewise.
1835         (machopic_define_name): Likewise.
1836         (machopic_name_defined_p): Likewise.
1837         (machopic_ident_defined_p): Likewise.
1838         (darwin_strip_name_encoding): Likewise.
1839         (machopic_define_symbol): New function.
1840         * config/darwin.c (hashtab.h): Include.
1841         (machopic_defined_list): Remove.
1842         (machopic_classify_ident): Likewise.
1843         (machopic_classify_name): Likewise.
1844         (machopic_ident_defined_p): Likewise.
1845         (machopic_define_ident): Likewise.
1846         (machopic_define_name): Likewise.
1847         (machopic_symbol_defined_p): New function.
1848         (machopic_classify_symbol): Likewise.
1849         (machopic_data_defined_p): Use machopic_classify_symbol.
1850         (machopic_define_symbol): New function.
1851         (machopic_function_base_sym): New function.
1852         (machopic_non_lazy_pointers): Remove.
1853         (machopic_non_lazy_ptr_name): Likewise.
1854         (machopic_stubs): Likewise.
1855         (machopic_stub_name): Likewise.
1856         (NON_LAZY_POINTER_SUFFIX): New macro.
1857         (STUB_SUFFIX): Likewise.
1858         (machopic_indirection): New structure.
1859         (machopic_indirections): New variable.
1860         (machopic_indirection_hash): New function.
1861         (machopic_indirection_eq): Likewise.
1862         (machopic_indirection_name): Likewise.
1863         (machopic_mcount_stub_name): New function.
1864         (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
1865         hash table.
1866         (machopic_indirect_data_reference): Rework to use new functions.
1867         (machopic_indirect_call_target): Likewise.
1868         (machopic_legitimize_pic_address): Likewise.
1869         (machopic_output_indirection): New function.
1870         (machopic_finish): Use it.
1871         (machopic_operand_p): Rework to use new functions.
1872         (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
1873         (darwin_strip_name_encoding): Remove.
1874         (update_non_lazy_ptrs): Remove.
1875         (update_stubs): Likewise.
1876         (darwin_non_lazy_pcrel): Use new functions.
1877         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1878         (ASM_OUTPUT_LABELREF): Likewise.
1879         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
1880         (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
1881         (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
1882         (TARGET_STRIP_NAME_ENCODING): Do not use
1883         darwin_strip_name_encoding.
1884         (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
1885         darwin_strip_name_encoding.
1886         * config/i386/darwin.h (FUNCTION_PROFILER): Use
1887         machopic_mcount_stub_name.
1888         * config/i386/i386.c (x86_output_mi_thunk): Use
1889         machopic_indirection_name, not machopic_stub_name.
1890         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
1891         machopic_function_base_sym.
1892         (print_operand): Use machopic_classify_symbol.
1893         (rs6000_emit_prologue): Use machopic_function_base_sym.
1894         (output_profile_hook): Do not use machopic_stub_name.
1895         (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
1896
1897 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
1898
1899         PR c/7284
1900         * fold-const.c (extract_muldiv_1): Do not treat signed left shift
1901         as multiplication.
1902
1903 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
1904
1905         * doc/implement-c.texi: New file.
1906         * doc/extend.texi (C Implementation): Move to there.
1907         * doc/gcc.texi: Include implement-c.texi.
1908         * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
1909
1910 2004-07-22  Jason Merrill  <jason@redhat.com>
1911
1912         * integrate.c (copy_decl_for_inlining): Remove invisible reference
1913         handling.
1914         * tree-inline.c (setup_one_parameter): Likewise.
1915
1916 2004-07-22  Brian Booth  <bbooth@redhat.com>
1917
1918         * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
1919         (substitute_and_fold): Propigate into VUSE operands when possible.
1920         (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
1921         (cp_lattice_meet): Handle merging of latticevalues when
1922         UNKNOWN_VAL is present.
1923         (visit_stmt): Visit assignments with V_MUST_DEFs.
1924         (visit_assignment): Gather ccp information for V_MUST_DEF operands.
1925         (ccp_fold): Deal with RHS' that are constant and virtual.
1926         (evaluate_stmt): Handle UNKNOWN_VAL likely values.
1927         (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
1928         (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
1929         V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
1930         computing immediate uses.
1931         (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
1932         transition.
1933         (replace_vuse_in): New function.
1934         (likely_value): Add check of vuse operands.
1935         (get_default_value): Set the default value of virtually defined
1936         variables to UKNOWN_VAL instead of VARYING.
1937
1938 2004-07-22  Richard Henderson  <rth@redhat.com>
1939
1940         * expr.c (emit_push_insn): Don't use set_mem_attributes.
1941
1942 2004-07-22  Richard Henderson  <rth@redhat.com>
1943
1944         * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
1945         variables due to conditional compilation.
1946
1947 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
1948
1949         * tree-into-ssa.c (set_livein_block): Fix typo in comment.
1950         (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
1951         Release SSA names that have been re-renamed.
1952         * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
1953         variable.
1954         * tree-ssa-alias.c (init_alias_info): If aliases have been
1955         computed before, clear existing alias information.
1956         (create_name_tags): Do no fixup PT_ANYTHING pointers.
1957         If the new name tag for a pointer is different than the one it
1958         had before, mark the old tag for renaming.
1959         (replace_may_alias): New function.
1960         (group_aliases): Call it.
1961         (setup_pointers_and_addressables): Always call get_tmt_for.
1962         (maybe_create_global_var): Don't create .GLOBAL_VAR more than
1963         once.
1964         (set_pt_anything): New local function.
1965         (set_pt_malloc): New local function.
1966         (merge_pointed_to_info): Don't merge pointed-to variables from
1967         the original pointer if the destination is pointing to an
1968         unknown location.
1969         (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
1970         (add_pointed_to_var): Do not add a variable to the points-to
1971         set if the pointer is already pointing to anywhere.
1972         (collect_points_to_info_r): If the defining statement is a PHI
1973         node, only merge pointed-to information if the argument has
1974         already been visited.
1975         (get_tmt_for): Only create a new tag if the pointer didn't
1976         have one already.
1977         (dump_alias_info): Emit more information.
1978         (dump_points_to_info_for): Likewise.
1979         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
1980         try to get the annotation of an SSA_NAME.
1981         * tree-ssa-operands.c (add_stmt_operand): Only check for empty
1982         alias sets when checking is enabled.
1983         * tree-ssa-pre.c (need_eh_cleanup): New local variable.
1984         (eliminate): Mark basic blocks that will need
1985         EH information cleaned up.
1986         (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
1987         predecessor.
1988         Initialize need_eh_cleanup.
1989         (fini_pre): Call tree_purge_all_dead_eh_edges and
1990         cleanup_tree_cfg if needed.
1991         Free need_eh_cleanup.
1992         * tree-ssa.c (verify_ssa_name): New function.
1993         (verify_def): Call it.
1994         Re-arrange to avoid printing too many error messages.
1995         (verify_use): Likewise.
1996         (verify_phi_args): Likewise.
1997         (verify_flow_insensitive_alias_info): New function.
1998         (verify_flow_sensitive_alias_info): New function.
1999         (verify_alias_info): New function.
2000         (verify_ssa): Call verify_alias_info.
2001         Clear TREE_VISITED on all the SSA_NAMEs before scanning the
2002         program.
2003         Re-arrange to avoid printing too many error messages.
2004         * tree-ssanames.c (make_ssa_name): Clear
2005         SSA_NAME_IN_FREE_LIST.
2006         (release_ssa_name): Never release a default definition.
2007         (release_defs): New function.
2008         * tree.h: Declare it.
2009         * tree-ssa-dce.c (remove_dead_stmt): Call it.
2010
2011 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
2012
2013         * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
2014         If true, do a depth-first search.  Do a breadht-first search,
2015         otherwise.
2016         (walk_use_def_chains): Add new argument IS_DFS.
2017         Update all users.
2018         * tree-flow.h (walk_use_def_chains): Update prototype.
2019
2020 2004-07-22  Hans-Peter Nilsson  <hp@axis.com>
2021
2022         * config/cris/cris.md: Tweak formatting.
2023         (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
2024         (mover2side, moverside, movemside, movei, op3, andu): Replace
2025         live define_peephole:s with define_peephole2 near-equivalents.
2026         Delete the rest.
2027         ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap".  Match all
2028         word-size modes.
2029         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
2030         Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
2031         "*mov_sidesi_mem" respectively.
2032
2033 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
2034
2035         * tree-cfg.c (gimplify_val): Move from tree-complex.c.
2036         (gimplify_build1): Move from tree-complex.c do_unop.
2037         (gimplify_build2): Move from tree-complex.c do_binop.
2038         (gimplify_build3): New.
2039         * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
2040         Adjust throughout to call the functions above.
2041         * tree-flow.h: Declare the functions above.
2042         * tree-nested.c (gimplify_val): Rename to...
2043         (tsi_gimplify_val): ... this.
2044
2045         * Makefile.in (tree_complex.o): Update dependencies.
2046         (stor-layout.o): Depend on regs.h.
2047         * c-common.c (handle_vector_size_attribute): Update for
2048         vector types without corresponding vector modes.
2049         * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
2050         a corresponding vector mode is not available.
2051         * print-tree.c (print_node): Print nunits for vector types
2052         * regclass.c (have_regs_of_mode): New.
2053         (init_reg_sets_1): Initialize it and use it instead
2054         of allocatable_regs_of_mode.
2055         * regs.h (have_regs_of_mode): Declare it.
2056         * stor-layout.c (layout_type): Pick a mode for vector types.
2057         * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
2058         build_replicated_const, do_unop, do_binop, do_plus_minus,
2059         do_negate, expand_vector_piecewise, expand_vector_parallel,
2060         expand_vector_addition, expand_vector_operations_1,
2061         expand_vector_operations, tree_lower_operations,
2062         pass_lower_vector_ssa, pass_pre_expand): New.
2063         (expand_complex_operations, pass_lower_complex): Remove.
2064         * tree-optimize.c (init_tree_optimization_passes): Adjust
2065         pass ordering for changes in tree-complex.c.
2066         * tree-pass.h: Declare new passes.
2067         * tree.c (finish_vector_type): Remove.
2068         (make_vector_type): New.
2069         (build_vector_type_for_mode, build_vector_type): Rewritten.
2070         * tree.def (VECTOR_TYPE): Document where the number of
2071         subparts is stored.
2072         * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
2073         (make_vector): Remove declaration.
2074
2075 2004-07-21  Richard Henderson  <rth@redhat.com>
2076
2077         * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
2078         TREE_THIS_VOLATILE, may_aliases, or optimization level.
2079         (remove_useless_vars): Dump debugging info.
2080         (expand_used_vars): Move ...
2081         * cfgexpand.c (expand_used_vars): ... here.  Make static.
2082         * tree-flow-inline.h (set_is_used): New.
2083         (set_default_def): Use get_var_ann.
2084         * tree-flow.h: Update decls.
2085         * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
2086         (create_ssa_var_map): Use it.
2087         * tree-ssa.c (set_is_used): Remove.
2088
2089 2004-07-22  Ben Elliston  <bje@au.ibm.com>
2090
2091         * gdbinit.in: Set a breakpoint on internal_error.
2092
2093 2004-07-21  Richard Henderson  <rth@redhat.com>
2094
2095         * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
2096         to create a new basic block.
2097
2098 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
2099
2100         PR c/15052
2101         * c-decl.c (grokdeclarator): Only pedwarn for qualified void
2102         return type on function definitions.  Move other warnings for
2103         qualified return type to -Wreturn-type.  Do not condition any such
2104         warnings on -pedantic.  Update comments.
2105         (start_function): Only copy function type from previous prototype
2106         declaration if return types are compatible.
2107         * c-typeck.c (function_types_compatible_p): Don't condition
2108         warning for incompatibility of volatile qualifiers on the return
2109         type on -pedantic.  Update comment.
2110         * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
2111
2112 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
2113
2114         * c-typeck.c (set_init_index): Require designator to be of integer
2115         type.
2116
2117 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
2118
2119         PR c/11250
2120         * c-parse.in (init): Change to exprtype.
2121         (primary): Set original_code for STRING to STRING_CST.
2122         Call maybe_warn_string_init for compound literals.
2123         (initdcl, notype_initdcl): Call maybe_warn_string_init.
2124         (initval): Update.
2125         * c-tree.h (maybe_warn_string_init): New.
2126         (pop_init_level, process_init_element): Use struct c_expr.
2127         (struct c_expr): Update comment.
2128         * c-typeck.c (maybe_warn_string_init): New function.
2129         (digest_init): Call it.  Additional parameter strict_string.  All
2130         callers changed.
2131         (output_init_element): Likewise.
2132         (struct constructor_stack): Use struct c_expr for
2133         replacement_value.
2134         (really_start_incremental_init, push_init_level): Update.
2135         (pop_init_level): Update.  Return struct c_expr.
2136         (process_init_level): Update.  Take struct c_expr argument.
2137
2138 2004-07-21  David S. Miller  <davem@nuts.davemloft.net>
2139
2140         * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
2141         commit.
2142
2143 2004-07-21  Eric Christopher  <echristo@redhat.com>
2144
2145         * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
2146         removal.
2147         * c-decl.c (pop_scope): Ditto.
2148         * calls.c (expand_call): Remove call to current_nesting_level,
2149         update comment accordingly. Remove calls to expand_start_target_temps
2150         and expand_end_target_temps.
2151         * cfgexpand.c (construct_init_block): Remove call to
2152         expand_start_bindings_and_block.
2153         (construct_exit_block): Remove call to expand_end_bindings.
2154         * expr.c (safe_from_p): Remove BIND_EXPR handling.
2155         (expand_expr_real_1): Ditto. Fix formatting.
2156         (expand_vars): Delete.
2157         * stmt.c (POPSTACK): Remove block_stack.
2158         (stmt_status): Remove x_block_stack.
2159         (block_stack): Delete.
2160         (expand_start_bindings_and_block): Ditto.
2161         (expand_start_target_temps): Ditto.
2162         (expand_end_target_temps): Ditto.
2163         (current_nesting_level): Ditto.
2164         (warn_about_unused_variables): Ditto.
2165         (expand_end_bindings): Ditto.
2166         * tree.h: Remove declarations for above.
2167
2168 2004-07-21  Steven Bosscher  <stevenb@suse.de>
2169
2170         * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
2171         * rtl.c (note_insn_name): Likewise.
2172         * print-rtl.c (print_rtx): Don't print it.
2173         * cfgrtl.h (can_delete_note_p): Don't handle it.
2174         (rtl_delete_block): Likewise.
2175         * passes.c (rest_of_handle_guess_branch_prob): Remove.
2176         (rest_of_compilation): Don't call it.
2177         * predict.c (process_note_predictions, process_note_prediction,
2178         note_prediction_to_br_prob): Remove.
2179         * basic-block.c (note_prediction_to_br_prob): Remove prototype.
2180         * stmt.c (return_prediction): Remove.
2181         (expand_value_return): Don't call it.  Don't add prediction
2182         notes for return statements.
2183
2184 2004-07-21  Josef Zlomek  <zlomekj@suse.cz>
2185
2186         * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
2187         once.
2188
2189 2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
2190
2191         * c-common.c (vector_types_convertible_p): Use vector types'
2192         TYPE_SIZE and TREE_TYPE instead of their mode.
2193         * convert.c (convert_to_integer): Likewise.
2194         (convert_to_vector): Likewise.
2195         * fold-const.c (fold_convert): Likewise.
2196         * varasm.c (output_constant): Likewise.
2197         * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
2198         Allow a VECTOR_TYPE initializer to be made of several vectors.
2199         For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
2200         of cleared and need_to_clear, and use fold_convert.
2201         * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
2202         integer vectors.
2203
2204 2004-07-20  Richard Henderson  <rth@redhat.com>
2205
2206         * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
2207         (expand_gimple_basic_block): out from here.  Renamed from expand_block.
2208
2209 2004-07-20  David S. Miller  <davem@nuts.davemloft.net>
2210
2211         * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
2212         enormous cost if not TARGET_HARD_MUL.
2213
2214 2004-07-20  Andrew Pinski  <apinski@apple.com>
2215
2216         PR target/16557
2217         * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
2218         (ASM_SPEC): here.
2219
2220 2004-07-21  Paul brook  <paul@codesourcery.com>
2221
2222         * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
2223
2224 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2225
2226         * fold-const.c (operand_equal_p): Temporarily support NULL args.
2227         (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
2228         (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
2229
2230 2004-07-20  Zack Weinberg  <zack@codesourcery.com>
2231
2232         * rtl.h (plus_constant): Delete.
2233         (plus_constant_wide): Rename to plus_constant.
2234         (plus_constant_for_output_wide): Delete vestigial prototype.
2235         (GEN_INT): Remove unnecessary cast.
2236         * tree.h (build_int_2, size_int_type): Delete.
2237         (build_int_2_wide): Rename to build_int_2.
2238         (size_int_wide): Rename to size_int_kind.
2239         (size_int_type_wide): Rename to size_int_type.
2240         (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
2241         Remove unnecessary cast.
2242         * tree.c (build_int_2_wide): Rename build_int_2; update comment.
2243         * explow.c (plus_constant_wide): Rename plus_constant; update comment.
2244         * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
2245         (size_int_type_wide): Rename size_int_type.
2246         (int_const_binop): Use size_int_type.
2247         * c-lex.c (interpret_integer): Use build_int_2.
2248         * final.c (split_double): Remove unnecessary casts.
2249         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
2250
2251 2004-07-20  Richard Henderson  <rth@redhat.com>
2252
2253         * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
2254         (gimplify_compound_lval): Use is_gimple_tmp_reg.
2255         * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
2256         (is_gimple_tmp_reg): New.
2257         * tree-gimple.h (is_gimple_tmp_reg): Declare.
2258
2259 2004-07-20  Richard Henderson  <rth@redhat.com>
2260
2261         * tree-pretty-print.c (dump_generic_node): Dump
2262         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
2263
2264 2004-07-20  Frank Ch. Eigler  <fche@redhat.com>
2265
2266         * tree-mudflap.c (mf_set_options_fndecl): New tree.
2267         (mudflap_init): Set it.
2268         (mudflap_register_call): Remove __mf_init call.
2269         (mudflap_finish_file): Emit call to __mf_init here.  Emit a call to
2270         to pass "-ignore-reads" option to libmudflap if needed.
2271
2272 2004-07-20  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
2273
2274         PR c++/14607
2275         * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
2276         (MAKE_DECL_ONE_ONLY): Undefine.
2277         * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
2278         readonly_data, one_only_data_section, forget_section): New prototypes.
2279         * pa.c (pa_init_machine_status, som_text_section_asm_op): New
2280         functions.
2281         (pa_select_section): Add one-only (COMDAT) support.
2282         * pa.h (struct machine_function): Define.
2283         * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
2284         (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
2285         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
2286         ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
2287         ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
2288         (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
2289         (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
2290         (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
2291         ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
2292         for EXTRA_SECTION_FUNCTIONS.
2293         * doc/install.texi: Update binutils requirements.
2294
2295 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
2296
2297         * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
2298         VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
2299         VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
2300         size_t.
2301         (struct VEC): Use unsigned for num and alloc.
2302         * vec.c (struct vec_prefix): Likewise.
2303         (vec_o_reserve): Adjust.
2304
2305         * dbxout.c (dbxout_type): Fix printf format.
2306
2307         * tree.h (binfo_member): Remove.
2308         * tree.c (binfo_member): Remove.
2309
2310 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
2311
2312         * tree.h: Include vec.h
2313         (DEF_VEC_P(tree)): New type.
2314         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
2315         (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
2316         (BINFO_LANG_SLOT): Remove.
2317         (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
2318         (struct tree_binfo): Turn base_binfos into a trailing
2319         VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
2320         (binfo_lang_slots): Remove.
2321         * tree.c (binfo_lang_slots): Remove.
2322         (make_tree_binfo_stat): Take a base binfo count, not a
2323         lang slot count.  Adjust.
2324         * Makefile.in (TREE_H): Add vec.h
2325         * alias.c (record_component_aliases): Adjust BINFO access.
2326         * dbxout.c (dbxout_type): Likewise.
2327         * dwarf2out.c (gen_member_die): Likewise.
2328         * sdbout.c (sdbout_one_type): Likewise.
2329         * tree-dump.c (deque_and_dump): Likewise.
2330         * config/i386/i386.c (classify_argument,
2331         contains_128bit_aligned_vector_p): Likewise.
2332         * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
2333         * doc/c-tree.texi (Classes): Update BINFO documentation.
2334
2335 2004-07-20  Steven Bosscher  <stevenb@suse.de>
2336
2337         * c-common.h (check_case_value): Remove prototype.
2338         (c_add_case_label): Adjust prototype.
2339         * c-common.c (check_case_value): Make static.
2340         (check_case_bounds): New function.
2341         (c_add_case_label): Use it.  Take new argument orig_type.
2342         * c-typeck.c (struct c_switch): New orig_type field.
2343         (c_start_case): Set it.
2344         (do_case): Pass it to c_add_case_label.
2345         * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
2346         cases from here.  Add the labels in reverse order.
2347         * stmt.c (struct case_node): Adjust comment.  Remove balance field.
2348         (add_case_node): Return nothing, don't check for duplicate cases.
2349         Insert new case nodes in a list, not in an AVL tree.
2350         (expand_end_case_type): Don't turn a case tree into a case list.
2351         (case_tree2list): Remove.
2352         * tree.h (add_case_node): Adjust prototype.
2353
2354 2004-07-19  Paolo Bonzini  <bonzini@gnu.org>
2355
2356         * genattr.c (struct range, struct function_unit,
2357         write_units, extend_range, init_range): Remove them.
2358         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
2359         Output "#define INSN_SCHEDULING" here.
2360         * genattrtab.c (struct range, struct function_unit_op,
2361         struct function_unit, struct dimension, enum operator,
2362         operate_exp, expand_units, simplify_knowing,
2363         encode_units_mask, simplify_by_exploding,
2364         find_and_mark_used_attributes, unmark_used_attributes,
2365         add_values_to_cover, increment_current_value,
2366         test_for_current_value, simplify_with_current_value,
2367         simplify_with_current_value_aux, gen_unit,
2368         write_unit_name, write_function_unit_info,
2369         write_complex_function, write_toplevel_expr,
2370         find_single_value, extend_range): Remove.
2371         (write_attr_get): Do not handle common_av->value
2372         being an FFS.
2373         (struct attr_desc): Remove func_units_p and blockage_p.
2374         (write_attr_valueq): Do not handle them.
2375         (find_attr): Do not clear them.
2376         (make_internal_attr): Do not initialize them.
2377         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
2378         * sched-vis.c (init_target_units, insn_print_units,
2379         init_block_visualization, print_block_visualization,
2380         visualize_scheduled_insns, visualize_no_unit,
2381         visualize_stall_cycles, visualize_alloc,
2382         visualize_free, target_units, get_visual_tbl_length,
2383         MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
2384         visual_tbl_line_length, visual_tbl, n_vis_no_unit,
2385         MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
2386         * haifa-sched.c (blockage_range, clear_units,
2387         schedule_unit, actual_hazard, potential_hazard,
2388         insn_unit, unit_last_insn, unit_tick,
2389         actual_hazard_this_instance, potential_hazard,
2390         schedule_unit, max_insn_queue_index_value): Remove.
2391         (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
2392         max_insn_queue_index.
2393         * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
2394         * doc/md.texi (Processor pipeline description): Remove
2395         references to old pipeline descriptions.
2396         (Automaton pipeline description): Merge with the above.
2397         (Old pipeline description, Comparison of the two descriptions):
2398         Remove.
2399
2400         * bt-load.c (migrate_btr_def): Remove references to
2401         use_pipeline_interface.
2402         * haifa-sched.c (insn_cost, schedule_insn,
2403         schedule_block, advance_one_cycle, sched_init,
2404         queue_to_ready, sched_finish): Likewise.
2405         * modulo-sched.c (sms_schedule, advance_one_cycle,
2406         ps_has_conflicts): Likewise.
2407         * sched-rgn.c (init_ready): Likewise.
2408         (debug_dependencies): Likewise, and remove an "if (1)".
2409         * target.h (use_dfa_pipeline_interface): Remove.
2410         * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2411         * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2412         * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2413         * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2414         * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2415         * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2416         * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2417         * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2418         * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2419         * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2420         * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2421         * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2422         * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2423         * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2424         * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2425         * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2426         * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2427         * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2428         * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
2429
2430 2004-07-19  Roger Sayle  <roger@eyesopen.com>
2431
2432         * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
2433
2434 2004-07-19  Jeff Law  <law@redhat.com>
2435
2436         * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
2437         (get_eq_expr_value): Use it.  Simplify slightly.
2438
2439 2004-07-19  Maciej W. Rozycki  <macro@linux-mips.org>
2440
2441         * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
2442         (umulsidi3_32bit_r4000): Likewise.
2443
2444 2004-07-19  Nathan Sidwell  <nathan@codesourcery.com>
2445
2446         * vec.h: Propagate location information properly.
2447         (VEC_T_iterate): Add result pointer parameter.
2448         (VEC_T_space): New.
2449         (VEC_T_reserve): Use it.
2450
2451 2004-07-19  Daniel Jacobowitz  <dan@debian.org>
2452
2453         * Makefile.in (c-format.o): Depend on c-format.h.
2454         * c-format.h: New file.
2455         (struct format_char_info): Add CHAIN member.
2456         * c-format.c: Move some types and constants to c-format.h.
2457         (format_type_error): Set to -1.
2458         (struct function_format_info): Use an int for format_type.
2459         (decode_format_type): Return an int.  Return format_type_error
2460         on error.
2461         (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
2462         (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
2463         (scan_char_table, time_char_table, monetary_char_table): Initialize
2464         CHAIN to NULL.
2465         (n_format_types): New variable.
2466         (check_format_info_main): Handle CHAIN in format_char_info.
2467         (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
2468         TARGET_N_FORMAT_TYPES.
2469         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
2470         (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
2471         * config/sol2-c.c: New file.
2472         * config/t-sol2: New file.
2473         * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
2474         * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
2475         TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
2476
2477         * doc/extend.texi (Target Format Checks): New section.
2478         (Function Attributes): Mention it.
2479         * doc/invoke.texi: Mention target format checks.
2480         * doc/sourcebuild.texi: Mention target format checks.
2481         * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
2482         TARGET_FORMAT_TYPES.
2483
2484 2004-07-19  Andreas Krebbel  <krebbel1@de.ibm.com>
2485
2486         * config/s390/s390-protos.h (s390_return_address_offset): Prototype
2487         added.
2488         * config/s390/s390.c (regclass_map initializer): Register 35 added to
2489         ADDR_REGS.
2490         (load_multiple_operation, store_multiple_operation): Removed
2491         pointless sanity check.
2492         (s390_decompose_address): Added check for return_address_pointer_rtx.
2493         (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
2494         (s390_return_address_offset): New function.
2495         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
2496         (FRAME_REGNO_P): Added check for register 35.
2497         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
2498         REG_ALLOC_ORDER): Appended entry for register 35.
2499         (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
2500         (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
2501         (RETURN_ADDRESS_POINTER_REGNUM): New macro.
2502         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
2503         is eliminable using stack pointer or hard frame pointer.
2504         (REGISTER_NAMES): Added name for register 35.
2505         * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
2506         pointless sanity check.
2507
2508 2004-07-19  Roger Sayle  <roger@eyesopen.com>
2509
2510         * fold-const.c (tree_expr_nonzero_p): Add function prototype.
2511         (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
2512         fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
2513         (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
2514         of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
2515         (fold_relational_const): Tidy up handling of floating point
2516         comparisons by calling real_compare.  Remove tree_expr_nonzero_p
2517         transformation; fold_relational_const assumes constant operands.
2518
2519 2004-07-19  Gabriel Dos Reis  <gdr@integrable-solution.net>
2520
2521         * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
2522         directory.
2523
2524 2004-07-19  Joseph S. Myers  <jsm@polyomino.org.uk>
2525
2526         * c-tree.h (struct c_expr): Define.
2527         (C_SET_EXP_ORIGINAL_CODE): Remove.
2528         (parser_build_binary_op, build_compound_expr): Update prototypes.
2529         * c-parse.in (%union): Add exprtype.
2530         (FUNC_NAME): Mark as ttype.
2531         (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
2532         exprtype.
2533         (expr): Update.  Define directly in terms of expr_no_commas
2534         instead of using nonnull_exprlist.
2535         (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
2536         offsetof_member_designator, typespec_nonreserved_nonattr, init,
2537         initval, designator, component_declarator,
2538         component_notype_declarator, enumerator, array_declarator,
2539         condition, exexpr, switch_statement, stmt_nocomp, stmt,
2540         nonnull_asm_operands, ivar_declarator, receiver): Update.  Don't
2541         set C_EXP_ORIGINAL_CODE.  Use TREE_NO_WARNING for assignments
2542         where appropriate.
2543         * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
2544         * c-common.c (c_common_truthvalue_conversion): Don't check
2545         C_EXP_ORIGINAL_CODE.
2546         * c-typeck.c (parser_build_binary_op): Use c_expr structures.
2547         Don't use C_EXP_ORIGINAL_CODE.
2548         (default_conversion, default_function_array_conversion): Don't use
2549         C_EXP_ORIGINAL_CODE.  Preserve TREE_NO_WARNING.
2550         (internal_build_compound_expr): Merge into build_compound_expr.
2551         (build_compound_expr): Take two operands instead of a TREE_LIST.
2552         * objc/objc-act.c (get_super_receiver): Update calls to
2553         build_compound_expr.
2554
2555 2004-07-12  Paolo Bonzini  <bonzini@gnu.org>
2556
2557         * config/sh/sh.c (sh_use_dfa_interface): Remove.
2558         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
2559         hook_int_void_1.
2560         * config/sh/sh.md: Extract pipeline descriptions
2561         into separate files.
2562         * config/sh/sh1.md: New file, extracted from sh.md.
2563         * config/sh/sh4.md: New file, extracted from sh.md.
2564         * config/sh/shmedia.md: New file, extracted from sh.md
2565         and rewritten using new-style pipeline description.
2566
2567 2004-07-18  Zack Weinberg  <zack@codesourcery.com>
2568
2569         * config/pa/pa.md: Delete the two remaining define_peephole
2570         patterns.
2571
2572 2004-07-18  Steven Bosscher  <stevenb@suse.de>
2573             Joseph S. Myers  <jsm@polyomino.org.uk>
2574
2575         * c-common.c (c_common_truthvalue_conversion): Don't warn if
2576         TREE_NO_WARNING is set.
2577
2578 2004-07-18  Roger Sayle  <roger@eyesopen.com>
2579
2580         * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
2581         simplify_builtin_strncmp): Delete.
2582         (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
2583         Change argument to accept an arglist instead of an "exp".  Assume
2584         that the return type is always integer_type_node.  Copy missing
2585         transformations from their now obsolete simplify_builtin_*
2586         equivalents.
2587         (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
2588         fold_builtin_strcmp and fold_builtin_strncmp.
2589         (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
2590         and fold_builtin_strncmp instead of simplify_builtin_memcmp,
2591         simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
2592
2593 2004-07-18  Daniel Jacobowitz  <dan@debian.org>
2594
2595         * Makefile.in (tree-alias-common.o): Update dependencies.
2596
2597 2004-07-17  Sebastian Pop  <pop@cri.ensmp.fr>
2598
2599         * cfgloop.c (flow_loop_nested_p): Fix comment.
2600
2601 2004-07-17  Jason Merrill  <jason@redhat.com>
2602
2603         PR c++/16115
2604         * stor-layout.c (relayout_decl): New fn.
2605         * tree.h: Declare it.
2606         (DECL_BY_REFERENCE): New macro.
2607
2608 2004-07-17  Eric Botcazou  <ebotcazou@act-europe.fr>
2609
2610         * libgcc2.c (__enable_execute_stack): New symbol.
2611         * libgcc-std.ver (GCC_3.4.2): New version.  Inherit from GCC_3.4
2612         and declare __enable_execute_stack.
2613         * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
2614         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
2615         * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
2616         ENABLE_EXECUTE_STACK.
2617         * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
2618         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
2619         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
2620         ENABLE_EXECUTE_STACK.
2621         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
2622         * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
2623         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
2624         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
2625         ENABLE_EXECUTE_STACK.
2626         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
2627         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
2628         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
2629         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
2630         * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
2631         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
2632         (sparc64_initialize_trampoline): Likewise.
2633         * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
2634
2635 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
2636
2637         * langhooks.h (builtin_function): New langhook.
2638         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
2639         (LANG_HOOKS_INITIALIZER): Update.
2640         * tree.h (builtin_function): Remove.
2641         * doc/tm.texi: Update.
2642         * c-tree.h (builtin_function): Declare.
2643         * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
2644         config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
2645         config/ia64/ia64.c, config/iq2000/iq2000.c,
2646         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
2647         config/stormy16/stormy16.c: All callers of builtin_function
2648         changed.
2649
2650 2004-07-17  Andrew Pinski  <pinskia@physics.uc.edu>
2651
2652         PR target/16556
2653         * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2654         Remove white space after the backslash.
2655
2656 2004-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
2657
2658         PR rtl-optimization/16294
2659         * resource.c (return_insn_p): New predicate.
2660         (mark_target_live_regs): Use it.  Special-case return insns.
2661         (init_resource_info): Use it.  Don't scan the epilogue past
2662         a return.
2663
2664 2004-07-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2665
2666         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
2667         destroy dominance information.
2668         * passes.c (rest_of_handle_loop2):  Free dominance information.
2669         * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
2670         jump threading.
2671         (thread_jumps): Update dominance information and remove unreachable
2672         blocks.
2673         * tree-ssa-phiopt.c (replace_phi_with_stmt):  Update dominance
2674         information and remove the unreachable block.
2675
2676 2004-07-17  Graham Stott  <graham.stott@btinternet.com>
2677
2678         * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
2679
2680 2004-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
2681
2682         * doc/sourcebuild.texi: Remove libf2c entry.
2683
2684 2004-07-17  Paolo Bonzini  <bonzini@gnu.org>
2685
2686         * config/i386/i386.md (movv16qi_internal): Fix typo.
2687
2688 2004-07-17  Steven Bosscher  <stevenb@suse.de>
2689
2690         * final.c (final_scan_insn): Fix broken commit from previous
2691         patch.
2692
2693 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
2694
2695         * c-typeck.c (parser_build_binary_op): Condition warnings for
2696         X<=Y<=Z on -Wparentheses instead of -Wextra.
2697         * doc/invoke.texi: Update.  Document that most of -Wparentheses is
2698         supported for C only.
2699
2700 2004-07-17  Steven Bosscher  <stevenb@suse.de>
2701
2702         * cfgcleanup.c (try_simplify_condjump): Don't remove line
2703         notes to avoid unreachable code warnings.
2704         * toplev.c (backend_init): Don't emit line notes for
2705         unreachable code warnings.
2706
2707         * combine.c (distribute_notes): Don't distribute a
2708         REG_VTABLE_REF note.
2709         * final.c (final_scan_insn): Don't handle it.
2710         * rtl.c (reg_note_name): Remove it.
2711         * rtl.h (enum reg_node): Dito.
2712
2713         * emit-rtl.c (force_line_numbers, restore_line_number_status):
2714         Remove.
2715         * rtl.h (force_line_numbers, restore_line_number_status):
2716         Remove prototypes.
2717
2718         * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
2719         * tree-eh.c (using_eh_for_cleanups_p): ...here.  Make static.
2720         (using_eh_for_cleanups): Also moved here.
2721
2722         * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
2723         <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY.  Update calls
2724         to expand_start_case and add_case_node.
2725         * stmt.c (struct nesting): Cleanup unused fields condition_code,
2726         last_unconditional_cleanup, nominal_type, printname, and
2727         line_number_status.
2728         (struct fixup_goto): Remove.
2729         (struct stmt_status): Remove x_goto_fixup_chain field.
2730         (goto_fixup_chain): Remove.
2731         (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
2732         pushcase, pushcase_range): Remove.
2733         (expand_start_bindings_and_block): Don't set unused fields in
2734         the nesting stack.
2735         (expand_start_case, add_case_node): Cleanup unused formal arguments.
2736         (expand_end_case_type): Don't simplify the case-list.  Use emit_jump
2737         instead of emit_jump_if_reachable.
2738         (emit_case_nodes): Likewise.
2739         * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
2740         static.
2741         (update_eh_label): Work around left-over exception handing regions.
2742         * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
2743         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
2744         (pass_cleanup_cfg_post_optimizing): New pass.
2745         (init_tree_optimization_passes): Run the new pass after all
2746         optimizations.
2747         * tree.h (pushcase, pushcase_range): Remove prototypes.
2748         (expand_start_case, add_case_node): Update prototypes.
2749
2750 2004-07-16  Krister Walfridsson  <cato@df.lth.se>
2751
2752         * tree-inline.c (estimate_num_insns_1): Correct increase of count.
2753
2754 2004-07-16  Richard Henderson  <rth@redhat.com>
2755
2756         * builtins.c (std_expand_builtin_va_arg): Remove.
2757         (expand_builtin_va_arg): Remove.
2758         * expr.h: Don't declare them.
2759         * gimplify.c (mark_decls_volatile_r): Remove.
2760         (copy_if_shared_r): Don't call it.
2761         * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
2762         * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
2763         * gimple-low.c (lower_stmt): Likewise.
2764         * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
2765         * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
2766         * tree-ssa-operands.c (get_expr_operands): Likewise.
2767         * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
2768         EXPAND_BUILTIN_VA_ARG.
2769         * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
2770         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
2771         config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
2772         config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
2773
2774 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
2775
2776         * tree-ssa-pre.c (insert_aux): Break out if we hit
2777         a critical edge.
2778
2779 2004-07-16  Richard Henderson  <rth@redhat.com>
2780
2781         * basic-block.h (remove_fake_exit_edges): Declare.
2782         * cfganal.c (remove_fake_predecessors): Rename from
2783         remove_fake_successors; iterate over predecessors.
2784         (remove_fake_exit_edges): New.
2785         * cfgcleanup.c (try_optimize_cfg): Use it.
2786         * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
2787         * predict.c (estimate_probability): Likewise.
2788         (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
2789         * tree-cfg.c (make_edges): Likewise.
2790         * tree-ssa-pre.c (fini_pre): Likewise.
2791         * profile.c (instrument_edges): Don't remove_fake_edges.
2792         (branch_prob): Do it earlier here.
2793
2794 2004-07-16  Richard Henderson  <rth@redhat.com>
2795
2796         * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
2797         switchification wrt CONSTRUCTOR.  Document the reason.
2798
2799 2004-07-16  Frank Ch. Eigler  <fche@redhat.com>
2800
2801         * tree-mudflap.c (mf_file_function_line_tree): Correct typo
2802         that prevented descriptive __mf_check source location strings.
2803
2804 2004-07-16  Richard Henderson  <rth@redhat.com>
2805
2806         * tree-def (WITH_SIZE_EXPR): New.
2807         * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
2808         * expr.c (expand_expr_real_1): Likewise.
2809         * gimplify.c (maybe_with_size_expr): New.
2810         (gimplify_arg, gimplify_modify_expr): Use it.
2811         (gimplify_modify_expr_to_memcpy): Take size parameter.
2812         (gimplify_modify_expr_to_memset): Likewise.
2813         (gimplify_expr): Handle WITH_SIZE_EXPR.
2814         * tree-alias-common.c (find_func_aliases): Likewise.
2815         * tree-eh.c (tree_could_trap_p): Likewise.
2816         (tree_could_throw_p): Likewise.
2817         * tree-gimple.c (is_gimple_lvalue): Likewise.
2818         (get_call_expr_in): Likewise.
2819         * tree-inline.c (estimate_num_insns_1): Likewise.
2820         (expand_calls_inline): Likewise.
2821         * tree-nested.c (convert_call_expr): Likewise.
2822         * tree-pretty-print.c (dump_generic_node): Likewise.
2823         * tree-sra.c (sra_walk_expr): Likewise.
2824         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
2825         * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
2826         * tree-ssa-operands.c (get_expr_operands): Likewise.
2827         * tree-tailcall.c (find_tail_calls): Likewise.
2828
2829         * calls.c (expand_call): Reset old_stack_allocated after
2830         calling emit_stack_restore.
2831
2832 2004-07-16  Richard Henderson  <rth@redhat.com>
2833
2834         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
2835         lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
2836         * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
2837         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
2838         copy_res_decl_for_inlining.
2839
2840         * tree-inline.c (declare_return_variable): New modify_dest argument.
2841         Use it as the return value, when possible or manditory.  Handle
2842         TREE_ADDRESSABLE types.
2843         (expand_call_inline): Extract MODIFY_EXPR lhs for call.  Simplify
2844         replacement of CALL_EXPR.
2845
2846 2004-07-16  Richard Henderson  <rth@redhat.com>
2847
2848         * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
2849         * gimple-low.c (expand_var_p): Don't check it.
2850         * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
2851         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
2852         * tree-ssa-operands.c (add_stmt_operand): Likewise.
2853         * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
2854         (find_referenced_vars): Don't call them.
2855         * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
2856
2857 2004-07-16  Richard Henderson  <rth@redhat.com>
2858
2859         * function.c (pass_by_reference): True for all variable sized types.
2860
2861 2004-07-16  Sebastian Pop  <pop@cri.ensmp.fr>
2862
2863         * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
2864         * tree-pretty-print.c: Include tree-chrec.h.
2865         (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
2866         and POLYNOMIAL_CHREC nodes.
2867
2868 2004-07-16  Steve Ellcey  <sje@cup.hp.com>
2869
2870         * builtins.c (expand_builtin_stpcpy): Do not create temporary
2871         reg with VOIDmode.
2872
2873 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
2874
2875         * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
2876
2877 2004-07-16  Andreas Krebbel  <krebbel1@de.ibm.com>
2878
2879         * config/s390/s390.md: Changed every occurence of BASE_REGISTER
2880         to BASE_REGNUM.
2881         * config/s390/s390.c: Likewise.
2882         * config/s390/s390.h: Likewise.
2883
2884 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2885
2886         * config/mips/mips.md (addsi3, adddi3): Remove special handling
2887         of $sp adds.  Remove REGNO checks from mips16 patterns.
2888
2889 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2890
2891         * config/mips/mips.md: Delete outdated comment.
2892
2893 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2894
2895         * config/mips/mips.c (get_float_compare_codes): Delete.
2896         (mips_emit_compare): New function, mostly extracted from
2897         get_float_compare_codes and gen_conditional_branch.
2898         (gen_conditional_branch, gen_conditional_move): Use it.
2899
2900 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
2901
2902         * genautomata.c (add_vect): Speedup by using integers as
2903         bit-vectors for walking through the comb_vect and finding
2904         a match.
2905
2906 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2907
2908         * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
2909         operand is an uns_arith_operand; use subtraction otherwise.
2910         * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
2911         not just arith_operands.
2912
2913 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2914
2915         * config/mips/mips-protos.h (gen_int_relational): Delete.
2916         (mips_emit_scc): Declare.
2917         * config/mips/mips.c (internal_test): Delete.
2918         (sle_operand, sleu_operand): New functions.
2919         (map_test_to_internal_test, gen_int_relational): Delete.
2920         (mips_emit_binary, mips_relational_operand_ok_p)
2921         (mips_emit_int_relational, mips_zero_if_equal)
2922         (mips_emit_scc): New functions.
2923         (gen_conditional_branch): Rework to use mips_emit_int_relational.
2924         * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
2925         sleu_operand.
2926         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
2927         (sltu, sleu): Use mips_emit_scc.
2928         (*sge_[sd]i, *sgeu_[sd]i): New patterns.
2929         (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
2930         (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
2931
2932 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2933
2934         * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
2935
2936 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2937
2938         * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
2939         (*sne_[sd]i): Likewise sne_[sd]i_zero.
2940         (*sgt_[sd]i): ...and sgt_[sd]i.
2941         (*slt_[sd]i): ...and slt_[sd]i.
2942         (*sgtu_[sd]i): ...and sgtu_[sd]i.
2943         (*sltu_[sd]i): ...and sltu_[sd]i.
2944         (*sleu_[sd]i): ...and sleu_[sd]i_const.
2945         Name previously unnamed mips16 patterns.  Formatting fixes.
2946
2947 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2948
2949         * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
2950         (branch_type): Delete.
2951         (gen_conditional_branch, gen_conditional_move)
2952         (mips_gen_conditional_trap): Update after name change.  Get the
2953         comparison mode from cmp_operands[0].
2954         * config/mips/mips.h (cmp_type, branch_type): Delete.
2955         (cmp_operands): Renamed from branch_cmp.
2956         * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
2957         name change.  Don't set branch_type.
2958         (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
2959         mode class of cmp_operands[0] rather than branch_type.  Update after
2960         name change.
2961
2962 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2963
2964         * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
2965         of 0...255 to 0 when inside a SET.
2966
2967 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
2968
2969         * config/mips/mips.md: Remove mips16 define_peepholes.
2970
2971 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
2972
2973         * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
2974         (fini_pre): Remove fake edges.
2975
2976 2004-07-15  Richard Henderson  <rth@redhat.com>
2977
2978         * tree-ssa-operands.c (get_expr_operands): Use a switch.  Split out...
2979         (get_indirect_ref_operands, get_call_expr_operands): ... these.
2980
2981 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
2982
2983         * vec.h (VEC_address): New function.
2984
2985 2004-07-14  Jason Merrill  <jason@redhat.com>
2986
2987         PR middle-end/15885
2988         * gimplify.c (gimplify_arg): New fn, split out from...
2989         (gimplify_call_expr): Here.  Special-case BUILT_IN_VA_START.
2990
2991 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
2992
2993         * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
2994         generate code which is generated by pushqi1 now
2995         * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
2996
2997 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
2998
2999         * combine.c (simplify_set): match the mode of the constant 0 with
3000         the tested operand to match the compare behaviour and the
3001         simplify_relational_operation() expectation.
3002
3003 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
3004
3005         * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
3006         ("bordered"): Same.
3007
3008 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
3009
3010         * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
3011         unconditionally.
3012         * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
3013
3014 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
3015
3016         * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
3017         calls in mips16 code.
3018
3019 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
3020
3021         * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
3022         the destination of the li as well as for the neg.
3023
3024 2004-07-15  Frank Ch. Eigler  <fche@redhat.com>
3025
3026         g++/15861
3027         * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
3028         * cgraph.h: Update declaration.
3029         * c-decl.c (build_cdtor): Update call with default priority.
3030         * coverage.c (create_coverage): Ditto.
3031         * tree-mudflap.c (mf_init_fndecl): New tree.
3032         (mudflap_init): Set it.
3033         (mudflap_register_call): Arrange to call __mf_init before the first
3034         __mf_register call.
3035         (mudflap_finish_file): Mark the mudflap static initializer as extra
3036         high priority, to beat all C++ static constructors.
3037
3038 2004-07-15  Jeff Law  <law@redhat.com>
3039
3040         * loop.c (check_insn_for_givs): Restore check for code labels that was
3041         accidentally deleted by a recent checkin.
3042
3043 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
3044
3045         * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
3046         (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
3047
3048 2004-07-14  Richard Henderson  <rth@redhat.com>
3049
3050         * print-tree.c (print_node): Fix casts last change.
3051
3052 2004-07-15  Paul Brook  <paul@codesourcery.com>
3053
3054         * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
3055         to TARGET_UNWIND_INFO.
3056         * except.c (output_function_exception_table): Ditto.
3057         * except.h: Ditto.
3058         * opts.c (decode_options): Ditto.
3059         * passes.c (rest_of_handle_final): Ditto.
3060         * final.c (final_start_function): Ditto.
3061         (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
3062         target hook.
3063         * targhooks.h (default_unwind_emit): Declare.
3064         * targhooks.c (default_unwind_emit): New function.
3065         * target-def.h: Define and use TARGET_UNWIND_EMIT.
3066         * target.h (struct gcc_target): Add unwind_emit.
3067         * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
3068         * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
3069         Remove IA64_UNWIND_EMIT.
3070         * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
3071
3072 2004-07-14  Richard Henderson  <rth@redhat.com>
3073
3074         * print-tree.c (print_node): Handle SSA_NAME.
3075
3076 2004-07-14  James E Wilson  <wilson@specifixinc.com>
3077
3078         PR target/16325
3079         * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
3080         and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
3081
3082 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
3083
3084         * expr.c (expand_assignment): Reenable bitfield += optimizations.
3085         Use alias set 0 for memory, do proper mode calculations and adjust
3086         address for memories.
3087
3088 2004-07-14  Per Bothner  <per@bothner.com>
3089
3090         * input.h:  If USE_MAPPED_LOCATION, define separate expanded_location
3091         structure with extra column field.
3092         * tree.c (expand_location):  Also fill in column field.
3093         * gengtype-lex.l:  Ignore expanded_location typedef, sinze gengtype
3094         gets confused by the two conditionally-compiled definitions.
3095
3096 2004-07-14  Eric Christopher  <echristo@redhat.com>
3097
3098         * calls.c (expand_call): Fix typo in comment.
3099
3100 2004-07-14  Steve Ellcey  <sje@cup.hp.com>
3101
3102         * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
3103         comparision of TFmode.
3104
3105 2004-07-14  Richard Henderson  <rth@redhat.com>
3106
3107         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
3108         (alpha_gimplify_va_arg): ... handling here.  Use pass_by_reference.
3109         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
3110         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
3111         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
3112         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
3113         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
3114         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
3115         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
3116
3117 2004-07-14  Mike Stump  <mrs@apple.com>
3118
3119         * config/darwin.h (WINT_TYPE): Define to be int to match
3120         system header files.
3121
3122 2004-07-14  Bob Wilson  <bob.wilson@acm.org>
3123
3124         * config/xtensa/xtensa.c (function_arg_advance): Check for args
3125         that must be passed in the stack.
3126         (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
3127         arguments if the size is not a constant.
3128
3129 2004-07-14  Per Bothner  <per@bothner.com>
3130
3131         * c-typeck.c (emit_side_effect_warnings):  Use EXPR_HAS_LOCATION
3132         instead of EXPR_LOCUS in a boolean context, which is always true
3133         if --enable-mapped-location.
3134         * stmt.c (warn_if_unused_value):  Likewise.  Also use EXPR_LOCATION.
3135
3136 2004-07-14  Richard Henderson  <rth@redhat.com>
3137
3138         * dominance.c (struct dom_info): Add fake_exit_edge.
3139         (init_dom_info): Allocate it.
3140         (free_dom_info): Free it.
3141         (calc_dfs_tree): Set it.  Handle noreturn and infinite loops
3142         in two passes.
3143         (calc_idoms): Honor fake_exit_edge.
3144
3145 2004-07-13  Jason Merrill  <jason@redhat.com>
3146
3147         * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
3148         (rhs_test_for): New fn.
3149         (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
3150         * tree-gimple.h: Declare them.
3151         * gimplify.c (gimplify_modify_expr): Use the new fns.
3152
3153 2004-07-14  Richard Henderson  <rth@redhat.com>
3154
3155         * config/arm/arm-protos.h (arm_va_arg): Remove.
3156         * config/arm/arm.c (arm_va_arg): Remove.
3157         (arm_init_expanders): Fix alignment of arg_pointer_rtx.
3158         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
3159
3160 2004-07-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3161
3162         * pa.c (fix_range): New function to mark a range(s) of registers as
3163         fixed registers.
3164         (override_options): Call fix_range if the -mfixed-range option string
3165         is not empty.
3166         * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
3167         * doc/invoke.texi (-mfixed-range): Document new option.
3168
3169 2004-07-14  David Edelsohn  <edelsohn@gnu.org>
3170
3171         * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
3172         for TARGET_64BIT.
3173         (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
3174
3175 2004-07-14  Roger Sayle  <roger@eyesopen.com>
3176
3177         * expmed.c (expand_sdiv_pow2): New function to expand signed division
3178         by a positive power of two, split out from expand_divmod.  Provide
3179         an alternate implementation when shifts are expensive.  Lower the
3180         threshold for using a branchless implementation to BRANCH_COST >= 2.
3181         (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
3182
3183 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
3184
3185         * tree-dfa.c (make_rename_temp): *Really* work just
3186         like create_tmp_var if called while outside SSA form.
3187
3188 2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
3189
3190         * config/s390/s390.md ("udivsi3"): Ensure trap is generated
3191         for division by zero.
3192         ("umodsi3"): Likewise.
3193
3194 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
3195
3196         * config/mips/mips.c (mips_output_move): When generating mips16 code,
3197         force loads of negative constants to be split.
3198         * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
3199         Generalize SImode li/neg splitter to cope with other modes.
3200
3201 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
3202
3203         * expmed.c: Remove more references to QUEUED in the comments.
3204         * expr.c: Likewise.
3205
3206 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
3207
3208         Revert:
3209         2004-07-13  Richard Henderson  <rth@redhat.com>
3210         * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
3211         correctly.
3212
3213 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
3214
3215         * tree-dfa.c (make_rename_temp): Work just like
3216         create_tmp_var if called while outside SSA form.
3217
3218 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
3219
3220         * expr.c (enqueue_insn, finish_expr_for_function,
3221         protect_from_queue, queued_subexp_p, mark_queue,
3222         emit_insns_enqueued_after_mark, emit_queue,
3223         expand_increment): Remove.
3224         (store_constructor): Expand increment as an assignment.
3225         (expand_expr_real_1 <case PREINCREMENT_EXPR,
3226         case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
3227         case POSTDECREMENT_EXPR>): Abort.
3228         * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
3229         QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
3230         protect_from_queue, emit_queue, queued_subexp_p): Remove.
3231         * function.h (pending_chain, x_pending_chain): Remove.
3232         * rtl.def (QUEUED): Remove.
3233
3234         * emit-rtl.c (copy_insn_1, copy_most_rtx,
3235         set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
3236         * genattrtab.c (attr_copy_rtx, clear_struct_flag,
3237         encode_units_mask): Likewise.
3238         * local-alloc.c (equiv_init_varies_p): Likewise.
3239         * rtl.c (copy_rtx): Likewise.
3240         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
3241         * simplify-rtx.c (simplify_gen_subreg): Likewise.
3242         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
3243
3244         * builtins.c (expand_builtin, expand_builtin_apply,
3245         expand_builtin_mathfn, expand_builtin_mathfn_2,
3246         expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
3247         Remove calls to emit_queue and protect_from_queue.
3248         * calls.c (expand_call, precompute_arguments,
3249         precompute_register_parameters, rtx_for_function_call,
3250         store_one_arg): Likewise.
3251         * dojump.c (do_compare_and_jump, do_jump): Likewise.
3252         * explow.c (memory_address): Likewise.
3253         * expmed.c (clear_by_pieces_1, clear_storage,
3254         clear_storage_via_libcall, emit_group_load,
3255         emit_group_store, emit_store_flag,
3256         expand_expr_real_1, store_by_pieces,
3257         store_constructor, store_expr, try_casesi,
3258         try_tablejump): Likewise.
3259         * function.c (expand_pending_sizes): Likewise.
3260         * optabs.c (emit_cmp_and_jump_insns,
3261         emit_conditional_add, emit_conditional_move,
3262         expand_fix, expand_float, prepare_cmp_insn): Likewise.
3263         * stmt.c (emit_case_bit_tests,
3264         expand_asm_expr, expand_computed_goto,
3265         expand_decl_init, expand_end_case_type,
3266         expand_end_stmt_expr, expand_expr_stmt_value,
3267         expand_return, expand_start_case,
3268         optimize_tail_recursion): Likewise.
3269         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
3270         * config/s390/s390.c (s390_expand_cmpmem): Likewise.
3271
3272 2004-07-14  Ben Elliston  <bje@au.ibm.com>
3273
3274         * vec.h: Comment fix.
3275
3276 2004-07-13  Richard Henderson  <rth@redhat.com>
3277
3278         * target.h (struct gcc_target): Add calls.pass_by_reference.
3279         * target-def.h (TARGET_PASS_BY_REFERENCE): New.
3280         * function.c (pass_by_reference): Use the hook.
3281         * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
3282         * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
3283         (hook_pass_by_reference_must_pass_in_stack): New.
3284         * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
3285         (alpha_pass_by_reference): New.
3286         (TARGET_PASS_BY_REFERENCE): New.
3287         * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3288         * config/arc/arc.c (arc_pass_by_reference): New.
3289         (TARGET_PASS_BY_REFERENCE): New.
3290         * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3291         (FUNCTION_ARG_CALLEE_COPIES): True.
3292         * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
3293         * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
3294         (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
3295         * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3296         * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3297         * config/cris/cris.c (cris_pass_by_reference): New.
3298         (TARGET_PASS_BY_REFERENCE): New.
3299         * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
3300         (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
3301         (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3302         * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
3303         * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3304         * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
3305         * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
3306         (frv_function_arg_pass_by_reference): Remove.
3307         * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3308         * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
3309         * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
3310         (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
3311         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3312         * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
3313         * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
3314         (ia64_pass_by_reference): Rename from
3315         ia64_function_arg_pass_by_reference.
3316         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3317         * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3318         * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
3319         * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
3320         (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
3321         * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3322         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
3323         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
3324         * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
3325         (m32r_pass_by_reference): Adjust prototype.  Make static.
3326         Handle mode sizes correctly.
3327         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3328         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
3329         (m68hc11_function_arg_pass_by_reference): Remove.
3330         * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3331         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
3332         * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
3333         * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3334         * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
3335         * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
3336         (mips_va_arg): Use pass_by_reference.
3337         (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
3338         Handle mode sizes correctly.
3339         * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3340         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
3341         * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
3342         * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
3343         (mmix_pass_by_reference): Rename from
3344         mmix_function_arg_pass_by_reference.
3345         * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3346         (FUNCTION_ARG_CALLEE_COPIES): True.
3347         * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
3348         (mn10300_pass_by_reference): New.
3349         * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3350         (FUNCTION_ARG_CALLEE_COPIES): True.
3351         * config/pa/pa.c (pa_pass_by_reference): New.
3352         (TARGET_PASS_BY_REFERENCE): New.
3353         * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3354         (FUNCTION_ARG_CALLEE_COPIES): True.
3355         * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
3356         * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
3357         (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
3358         * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3359         * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
3360         * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
3361         (s390_pass_by_reference): Rename from
3362         s390_function_arg_pass_by_reference.
3363         (s390_function_arg_advance): Don't query pass-by-ref.
3364         (s390_function_arg): Likewise.
3365         (s390_gimplify_va_arg): Use pass_by_reference.
3366         (s390_call_saved_register_used): Likewise.
3367         * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3368         * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
3369         (shcompact_byref, sh_pass_by_reference): New.
3370         * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3371         (SHCOMPACT_BYREF): Remove.
3372         * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
3373         * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
3374         (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
3375         (sparc_gimplify_va_arg): Use pass_by_reference.
3376         * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3377         * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3378         * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
3379         (v850_pass_by_reference): New.
3380         * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
3381         (FUNCTION_ARG_CALLEE_COPIES): True.
3382         * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
3383         FUNCTION_ARG_PASS_BY_REFERENCE docs.
3384
3385 2004-07-14  Richard Henderson  <rth@redhat.com>
3386             Richard Sandiford  <rsandifo@redhat.com>
3387
3388         * config/mips/mips-protos.h (mips_va_arg): Delete.
3389         * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
3390         * config/mips/mips.c: Include tree-gimple.h.
3391         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
3392         (mips_arg_info): Remove special handling of must_pass_in_stck args.
3393