OSDN Git Service

* doc/extend.texi: Deprecate casts as lvalues.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
2
3         * doc/extend.texi: Deprecate casts as lvalues.
4
5 2003-10-20  Jan Hubicka  <jh@suse.cz>
6
7         * toplev.c (rest_of_compilation): Fix webizer pass ordering.
8
9         * cgraphunit.c (decide_is_function_needed):  Fix test dealing
10         with functions implicitly made inline.
11
12         * cgraphunit.c (cgraph_decide_inlining_incrementally):  New function.
13         (cgraph_finalize_function): Use it.
14         (cgraph_mark_inline): Allow incrmental decisions
15         * invoke.texi (max-inline-slope, min-inline-insns): Kill.
16         * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
17         * tree-inline.c (limits_allow_inlining): Kill.
18         (expand_call_inline): Always use unit-at-a-time path.
19
20 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
21
22         * fixinc/inclhack.def (hpux11_snprintf): New edit.
23         * fixinc/fixincl.x: Regenerate.
24         * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
25
26 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
27
28         * Makefile.in (install-info): Simplify.
29         ($(DESTDIR)$(infodir)/%.info): New rule.
30         * configure.in (target_list): Remove install-info.
31         * doc/.cvsignore (gcc.info*): Remove.
32         (gccint.info*): Likewise.
33         (gccinstall.info*): Likewise.
34         (cpp.info*): Likewise.
35         (cppinternals.info*): Likewise.
36         (*.info*): Add it.
37         * doc/sourcebuild.texi: Update description of install-info.
38         * objc/Make-lang.in (objc.install-info): Remove.
39
40 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
41
42         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
43         Use it in _MIPS_SIM definition.
44         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
45
46 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
47
48         * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
49         virtual register, but only if file == asm_out_file.
50         * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
51         for ARG_POINTER_REGNUM.
52
53 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
54
55         * c-common.c (registered_builtin_types): New static.
56         (c_common_type_for_mode): Consult registered_builtin_types.
57         (c_register_builtin_type): Add type to registered_builtin_types.
58         * optabs.c (init_floating_libfuncs): Initialize libfuncs for
59         all MODE_FLOAT modes, not just the ones corresponding to
60         float_type_node, double_type_node, and long_double_type_node.
61
62 2003-10-20  Richard Henderson  <rth@redhat.com>
63
64         * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
65         * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
66
67 2003-10-20  Dorit Naishlos  <dorit@il.ibm.com>
68
69         * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
70         support new flag -minsert-sched-nops.
71         (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
72         * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
73         support new flag -minsert-sched-nops.
74         (is_cracked_insn, is_microcoded_insn): New functions.
75         (rs6000_sched_finish): New function.
76         (rs6000_issue_rate): Return 5 for power4.
77         (get_next_active_insn, insn_terminates_group_p): New
78         functions.
79         (is_costly_group, force_new_group): New functions.
80         (redefine_groups, pad_groups): New functions.
81         (rs6000_variable_issue): Use new functions.
82         * doc/invoke.texi (-minsert-sched-nops): Document new
83         option.
84
85 2003-10-20  David S. Miller  <davem@redhat.com>
86
87         * config/sparc/sparc.md (type attribute): Add new insn types
88         fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
89         (patterns emitting VIS insns): Use them.
90         * config/sparc/ultra1_2.md: Add VIS scheduling rules.
91         * config/sparc/ultra3.md: Likewise.
92
93 2003-10-20  Falk Hueffner  <falk@debian.org>
94
95         PR target/12654
96         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
97         comparison against constant by adjusting the argument except for
98         EQ and NE.
99
100 2003-10-19  Mark Mitchell  <mark@codesourcery.com>
101
102         * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
103         arm1136jfs, and armv6j.
104         * config/arm/arm.c (FL_ARCH6J): New macro.
105         (FL_VFPV2): Likewise.
106         (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
107         and arm1136jfs.
108         (all_architectures): Add entry for armv6j.
109         (arm_override_options): Add entries for arm926ejs, arm1026ejs,
110         arm1136js, and arm1136jfs.
111         * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
112         (TARGET_CPU_arm1026ej_s): Likewise.
113         (TARGET_CPU_arm1136j_s): Likewise.
114         (TARGET_CPU_arm1136jf_s): Likewise.
115         * doc/invoke.texi: Document new ARM cores and architecture
116         variants.
117
118 2003-10-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
119
120         * Makefile.in (toplev.o): Add value-prof.h dependency.
121         (value-prof.o): Add REGS_H dependency.
122         * common.opt (fprofile-values, fvpt): New.
123         * flags.h (flag_value_profile_transformations): Declare.
124         * opts.c (common_handle_option): Handle -fprofile_values and
125         -fvpt.
126         * profile.c (branch_prob): Don't remove death notes here.
127         * timevar.def (TV_VPT): New.
128         * value-prof.c: Include regs.h.
129         (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
130         gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
131         mod_subtract_transform, value_profile_transformations): New.
132         (insn_values_to_profile): Call insn_divmod_values_to_profile.
133         (find_values_to_profile): Add dumps.
134         * value-prof.h (value_profile_transformations): Declare.
135         * toplev.c: Include value-prof.h.
136         (rest_of_handle_value_profile_transformations): New.
137         (enum dump_file_index): Add DFI_vpt.
138         (dump_file): Add vpt dump.
139         (flag_value_profile_transformations): New.
140         (lang_independent_options): Add flag_profile_values and
141         flag_value_profile_transformations.
142         (rest_of_compilation): Call
143         rest_of_handle_value_profile_transformations.
144         (process_options): Let -fvpt imply -fprofile-values.
145         * doc/invoke.texi (-fvpt): Document.
146
147 2003-10-19  Jan Hubicka  <jh@suse.cz>
148
149         * i386.c (print_reg): Do not abort on certain registers.
150
151         PR optimization/12612
152         * reg-stack.c (subst_stack_regs_pat):  Use st(1) for clobbers.
153         * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
154         match_scratch; avoid bogus paralles.
155
156         PR target/12674
157         * i386.c (ix86_function_regparm): Disable implicit register passing
158         conventions when profiling.
159
160 2003-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
161             Richard Henderson  <rth@redhat.com>
162
163         PR optimization/8178
164         * config/i386/i386.md (*movsi_zero): Delete.
165         (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
166
167 2003-10-19  Richard Henderson  <rth@redhat.com>
168
169         * config/alpha/alpha.c (fix_operator): New.
170         (divmod_operator): Tidy.
171         (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
172         * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
173         (PREDICATE_CODES): Update.
174         * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
175         (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
176         (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
177         (fix_truncsfdi_ieee): Likewise.
178         (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
179         (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
180         * config/alpha/alpha-protos.h: Update.
181
182 2003-10-19  Richard Sandiford  <rsandifo@redhat.com>
183
184         * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
185         * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
186         * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
187         constant operands.
188
189 2003-10-18  Kazu Hirata  <kazu@cs.umass.edu>
190
191         * doc/extend.texi: Fix typos.
192         * doc/invoke.texi: Likewise.
193
194 2003-10-18  Nicolas Pitre <nico@cam.org>
195
196         * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
197         XScale optimizations not arm_arch_xscale.
198         * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
199
200 2003-10-18  Ulrich Weigand  <uweigand@de.ibm.com>
201
202         * config/s390/s390-protos.h (shift_count_operand): Add prototype.
203         * config/s390/s390.c (shift_count_operand): New function.
204         (s390_extra_constraint): Use it to implement 'Y' constraint.
205         (print_shift_count_operand): New function.
206         (print_operand): Use it to implement '%Y'.
207         * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
208         (PREDICATE_CODES): Add shift_count_operand.
209         * config/s390/s390.md ("rotldi3"): Merge alternatives,
210         using "shift_count_operand" predicate and "Y" constraint,
211         and "%Y" to output the combined shift count.
212         ("rotlsi3"): Likewise.
213         ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
214         ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
215         "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
216         ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
217         ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
218         ("lshrsi3"): Likewise.
219
220 2003-10-18  Gunther Nikl  <gni@gecko.de>
221
222         * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
223         argument to asm_fprintf statement.
224
225 2003-10-18  Fariborz Jahanian  <fjahanian@apple.com>
226
227         * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
228         (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
229         a "long long" argument.
230
231 2003-10-18  Alexandre Oliva  <aoliva@redhat.com>
232
233         * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
234         as well.
235
236 2003-10-18  Richard Sandiford  <rsandifo@redhat.com>
237
238         * rtl.h (rtl_size): Declare.
239         (rtunion): Remove rtwint.
240         (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
241         (RTX_HDR_SIZE, RTX_SIZE): New macros.
242         (RTL_CHECK1): Adjust for new rtx_def layout.
243         (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
244         (XWINT, XCWINT): Likewise.  Access the rtx structure directly.
245         (X0WINT): Remove.
246         (X0ANY): New macro.
247         * rtl.def: Adjust comments for new rtx_def layout.
248         * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
249         number of slots.
250         * rtl.c (rtx_size): New array.
251         (rtx_alloc): Adjust call to ggc_alloc_rtx.  Use RTX_HDR_SIZE.
252         (copy_rtx): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
253         (shallow_copy_rtx): Adjust call to ggc_alloc_rtx.  Use RTX_SIZE.
254         * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
255         * emit-rtl.c (copy_most_rtx): Likewise.
256         (copy_rtx_if_shared): Use RTX_SIZE.
257         (copy_insn_1): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
258         * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call.  Use RTX_HDR_SIZE.
259         * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
260         (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
261         an array.  Adjust output for new rtx_def layout.
262         * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
263         * reload1.c (eliminate_regs): Use RTX_SIZE.
264         * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
265         * gdbinit.in (pi): Likewise.
266
267 2003-10-18  Jan Hubicka  <jh@suse.cz>
268
269         * integrate.c (copy_decl_for_inlining): Revert previous patch.
270
271 2003-10-18  Jan Hubicka  <jh@suse.cz>
272
273         * integrate.c (copy_decl_for_inlining): Fix copying of copies.
274
275 2003-10-18  Roger Sayle  <roger@eyesopen.com>
276
277         * libgcc.texi: Group multi-word types, such as "long double" and
278         "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
279         Document __unord?f2 as returning a non-zero value, not just one.
280
281 2003-10-18  Hans-Peter Nilsson  <hp@bitrange.com>
282
283         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
284         ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
285
286 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
287
288         * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
289         match_operand.
290
291 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
292
293         * config/sparc/sparc.c (function_arg_record_value_1): New fourth
294         parameter packed_p.  Search for a DECL_PACKED field only if
295         packed_p is false.  Pass packed_p recursively.
296         (function_arg_record_value_2): Likewise.
297         (function_arg_record_value): Update calls to
298         function_arg_record_value_1 and function_arg_record_value_2.
299
300 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
301
302         * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
303         was successfully forced to memory before using the result.
304
305 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
306
307         PR optimization/8178
308         * config/i386/i386.md (*movsi_zero): New insn to set
309         a register to zero on TARGET_USE_MOV0 targets.
310
311 2003-10-18  Kelley Cook  <kcook@gcc.gnu.org>
312
313         * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
314         (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
315
316 2003-10-17  David Edelsohn  <edelsohn@gnu.org>
317
318         * doc/invoke.texi (gcse-las): Fix typo.
319
320 2003-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
321
322         * doc/install.texi: Remove first part of the sentence for
323         zsh not working.  Change gcc to GCC.
324
325         PR bootstrap/12546
326         * doc/install.texi: Document that zsh does not work when
327         configuring gcc.
328
329 2003-10-17  Nathanael Nerode  <neroden@gcc.gnu.org>
330
331         * config/ptx4.h: Switch to DWARF 2; update comments.
332
333 2003-10-17  Segher Boessenkool  <boessen@de.ibm.com>
334             Hartmut Penner  <hpenner@de.ibm.com>
335
336         PR 10404, partial 11591, partial 11601
337         * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
338         "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
339         "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
340         "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
341         "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
342         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
343         (altivec_expand_stv_builtin): Adjust for the memory_operand.
344         (altivec_expand_builtin): Call altivec_expand_lv_builtin.
345         (altivec_init_builtins): Use `long int' for memory offsets.
346
347 2003-10-17  Jan Hubicka  <jh@suse.cz>
348
349         * opts.c  (common_handle_option): Handle OPT_fweb
350         * invoke.texi (-fweb): Add missing parts of documentation.
351
352 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
353
354         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
355         before redefinition.
356
357 2003-10-17  Mostafa Hagog  <mustafa@il.ibm.com>
358
359         * common.opt: Add description of the new -fgcse-las flag.
360         * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
361         * gcse.c (hash_scan_set): Handle the case of store expression and
362         insert the memory expression to the hash table, this way we make it
363         possible to discover redundant loads after stores and remove them.
364         (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
365         to pre_insert_copies, it is not the correct place to call it after
366         adding stores to be in the available expression hash table.
367         (pre_insert_copies): Added the call to update_ld_motion_stores when
368         one or more copies were inserted.
369         * opts.c (common_handle_option): Handle the -fgcse-las flag.
370         * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
371
372         * doc/invoke.tex: Document new -fgcse-las flag.
373
374 2003-10-18  Alan Modra  <amodra@bigpond.net.au>
375
376         * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
377         for posterity, then remove it.
378
379 2003-10-17  Richard Earnshaw <rearnsha@arm.com>
380             Nathan Sidwell  <nathan@codesourcery.com>
381
382         * config/arm/arm.c (use_return_insn): Not a single instruction, if
383         there's a frame pointer.
384         (arm_output_epilogue): Protect stack pointer from being corrupted
385         on interrupt.
386
387 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
388
389         * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
390
391 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
392
393         * combine.c (simplify_set): Do not clear out undobuf.other_insn
394         already set elsewhere.
395
396 2003-10-17  Kelley Cook  <kcook@gcc.gnu.org>
397
398         * config/i386/i386.c (ix86_expand_prologue):  Use
399         gen_allocate_stack_worker.
400
401 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
402
403         * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
404         without gas.
405         (mips-sgi-irix6*): Likewise.
406
407         * config/mips/iris6gas.h: New file.
408         * gcc/config.gcc (mips-sgi-irix6*): Use it.
409
410         * config/mips/mips.h (TARGET_IRIX): Provide default.
411         (TARGET_IRIX5): Likewise.
412         (TARGET_SGI_O32_AS): Likewise.
413         * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
414         (TARGET_IRIX5): Likewise.
415         * config/mips/iris6.h (TARGET_IRIX6): Remove.
416         (TARGET_IRIX5): Redefine as 0.
417
418         * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
419         linker workaround with TARGET_IRIX and mips_abi instead of
420         ASM_OUTPUT_UNDEF_FUNCTION.
421         (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
422         testing TARGET_IRIX and mips_abi explicitly.
423         * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
424         * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
425
426         * config/mips/mips.c (irix_output_external_libcall): Renamed from
427         mips_output_external_libcall.
428         Use new TARGET_IRIX in guard.
429         * config/mips/mips-protos.h (irix_output_external_libcall): Match
430         this.
431         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
432
433         * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
434         Define as 0.
435
436         * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
437         depending on mips_abi.
438         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
439         * config/mips/mips.c (mips_output_function_prologue): Test
440         FUNCTION_NAME_ALREADY_DECLARED at runtime.
441         (mips_output_function_epilogue): Likewise.
442         (build_mips16_function_stub): Likewise.
443         (build_mips16_call_stub): Likewise.
444         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
445         default.
446
447         * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
448         IRIX 6 O32 assembler.
449         (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
450         (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
451         _MIPS_SIM for O32 ABI.
452         (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
453         (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
454         (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
455         Integrate O32 version.
456         (SUBTARGET_ASM_SPEC): Handle -mabi=32.
457         (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
458         O32 ABI.
459         (BSS_SECTION_ASM_OP_32): Define.
460         (BSS_SECTION_ASM_OP_64): Likewise.
461         (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
462         using them.
463         (TARGET_ASM_NAMED_SECTION): Reflect renaming.
464         Move up to allow override for O32 ABI without GNU as.
465         (EH_FRAME_SECTION_NAME): Define explicitly.
466         (MUST_USE_SJLJ_EXCEPTIONS): Define.
467         [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
468         DTORS_SECTION_ASM_OP): Dummy definitions.
469         (TARGET_ASM_NAMED_SECTION): Undef statically.
470         (EH_FRAME_SECTION_NAME): Likewise.
471         (ASM_OUTPUT_FILENAME): Integrate mips.h version.
472         (LINK_SPEC): Only use default options -call_shared -no_unresolved
473         without -r.
474         Don't pass -init, -fini with -mabi=32.
475         (COLLECT_PARSE_FLAG): Define.
476
477         * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
478         TARGET_IRIX.
479         Renamed to use irix_ prefix.
480         (iris6_asm_named_section): Likewise.
481         (iris_section_align_entry_eq): Likewise.
482         (iris_section_align_entry_hash): Likewise.
483         (iris6_file_start): Likewise.
484         (iris6_section_align_1): Likewise.
485         (iris6_file_end): Likewise.
486         (iris6_section_type_flags): Likewise.
487         (iris_section_align_htab): Likewise.
488         (iris_orig_asm_out_file): Likewise.
489         [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
490         (TARGET_ASM_FILE_END): Likewise.
491         (TARGET_SECTION_TYPE_FLAGS): Likewise.
492
493         * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
494         (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
495         override_options instead.
496         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
497         (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
498         * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
499         flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
500         assemblers.
501         Likewise for constructor/destructor handling.
502         (override_options): Handle IRIX O32 assembler quirks.
503         [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
504         without gas.
505         (mips_file_start): Use new TARGET_IRIX.
506         (mips_declare_object_name): No special processing for IRIX O32
507         assembler.
508         (mips_finish_declare_object): Likewise.
509         (irix_asm_output_align): Renamed from iris6_asm_output_align.
510         Don't record alignment for O32 ABI.
511         (irix_file_start): Renamed from iris6_file_start.
512         Return early for O32 ABI.
513         (irix_file_end): Renamed from iris6_file_end.
514         Don't emit .section directives for O32 ABI.
515         * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
516         * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
517
518         * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
519         (MULTILIB_OSDIRNAMES): Likewise.
520
521 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
522
523         * collect2.c (COLLECT_PARSE_FLAG): Provide default.
524         (main): Use it.
525         * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
526
527 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
528
529         * arm-modes.def (CC_Nmode): New condition code mode.
530         * arm.c (thumb_condition_code): Delete.
531         (arm_select_cc_mode): Handle single-bit test for Thumb.
532         (arm_print_operand, cases 'd' and 'D'): Don't special case the
533         condition code logic for Thumb.
534         (get_arm_condition_code): Handle CC_Nmode.
535         (thumb_cbrch_target_operand): New function.
536         * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
537         * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
538         * arm.md: Add Thumb split patterns for zero_extract and
539         sign_extract.
540         (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
541         (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
542         (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
543         (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
544         (cbranchne_decr1): Re-work to use CC_Nmode.
545
546         * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
547         by the return instruction.  Add a use of the link register if it
548         wasn't stored.
549
550 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
551
552         * flow.c (init_propagate_block_info): Don't abort if a conditional
553         jump is not a comparison of a register.  Instead, just don't record
554         conditional life information.
555
556 2003-10-16  Jan Hubicka  <jh@suse.cz>
557
558         PR optimization/12630
559         * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
560         for operands 7 and 8.
561
562 2003-10-16  Kelley Cook  <kcook@gcc.gnu.org>
563
564         * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
565
566 2003-10-16  Danny Smith  <dannysmith@users.sourceforge.net>
567
568         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
569
570         * config/i386/winnt.c (gen_stdcall_suffix): Make static
571         (gen_fastcall_suffix): Likewise.
572         (i386_pe_dllexport_p): Likewise.
573         (i386_pe_dllimport_p): Likewise.
574         (i386_pe_mark_dllexport): Likewise.
575         (i386_pe_mark_dllimport): Likewise.
576         (i386_pe_asm_named_section): Fix formatting.
577
578 2003-10-16  Zack Weinberg  <zack@codesourcery.com>
579
580         * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
581         * system.h: Declare snprintf if necessary.
582         * configure, config.in: Regenerate.
583
584 2003-10-15  David Edelsohn  <edelsohn@gnu.org>
585
586         * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
587         arguments if TARGET_ALTIVEC_ABI.
588
589 2003-10-15  Roger Sayle  <roger@eyesopen.com>
590
591         * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
592         fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
593         fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
594         New functions.
595         (expand_builtin_memcpy): Use integer_zerop instead of testing
596         host_integerp and tree_low_cst directly.  Move misapplied hunk
597         for optimization wher SRC and DEST point to the same location.
598         (expand_builtin_mempcpy): From here.
599         (expand_builtin_memmove): Use integer_zerop instead of testing
600         host_integerp and tree_low_cst_directly.
601         (expand_builtin_memset): Likewise.
602         (expand_builtin_memcmp): Likewise (and for integer_onep).
603         (expand_builtin_strncmp): Likewise.
604         (fold_builtin): Call the appropriate fold_builtin_foo functions
605         to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
606         strcmp and strncmp.
607
608 2003-10-15  Geoffrey Keating  <geoffk@apple.com>
609
610         * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
611         prototype.  Clean up some whitespace.
612         * config/darwin.c: Use gen_rtx_FOO (...) rather than
613         gen_rtx (FOO, ...).
614         (machopic_non_lazy_ptr_name): Make static.
615         (name_needs_quotes): Allow '.' and '$' unquoted.
616         (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
617         case.
618
619 2003-10-15  Gábor Lóki  <alga@rgai.hu>
620
621         * fold-const.c (tree_swap_operands_p): Disable some features
622         when optimizing for size.
623
624 2003-10-15  David Daney  <ddaney@avtrex.com>
625
626         * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
627         * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
628         from leaf functions.
629         (DWARF_FRAME_RETURN_COLUMN): Ditto.
630         (SIGNAL_UNWIND_RETURN_COLUMN): New, used
631         by MD_FALLBACK_FRAME_STATE_FOR.
632         * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
633
634 2003-10-15  Zack Weinberg  <zack@codesourcery.com>
635
636         * genmodes.c: Include hashtab.h.
637         (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
638         (adj_bytesize, adj_alignment, adj_format, new_adjust)
639         (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
640         (print_maybe_const_decl, emit_mode_adjustments): New.
641         (known_modes): Rename to modes.
642         (find_mode): Kill class argument; look up in hash table.
643         (new_mode): Insert into hash table also.
644         (new_adjust): New.
645         (reset_float_format, make_partial_integer_mode)
646         (make_vector_mode): Tweak error reporting.
647         (reset_float_format): Correct type of fourth argument.
648         (emit_insn_modes_h): Add #defines to help make mode_size,
649         mode_base_align, and real_format_for_mode conditionally const.
650         (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
651         (emit_real_format_for_mode): Likewise, but temporarily disabled.
652         (emit_insn_modes_c): Call emit_mode_adjustments.
653         (main): Initialize modes_by_name.
654         * Makefile.in: Update dependencies.
655         * machmode.def: Document EXPR arguments and new ADJUST_* statements.
656         * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
657         declarations of mode_size and mode_base_align.  Declare
658         init_adjust_machine_modes.
659         * toplev.c (backend_init): Call init_adjust_machine_modes.
660
661 2003-10-15  Olivier Hainque  <hainque@act-europe.fr>
662
663         * genmodes.c (calc_wider_mode): Allocate enough room for all the
664         entries we'll possibly assign in the sort buffer.
665
666 2003-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
667
668         * config.gcc (s390x-ibm-tpf*): New target.
669         * doc/install.texi: Document it.
670         * config/s390/t-tpf: New file.
671         * config/s390/tpf.h: New file.
672
673 2003-10-15  Hans-Peter Nilsson  <hp@axis.com>
674
675         PR target/12598
676         * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
677         (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
678         Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
679         ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
680         (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
681         (define_split "*mov_sidesi_mem"+28, +29, +30): Use
682         replace_equiv_address, not gen_rtx_MEM.
683         * config/cris/cris.c (cris_mem_op): New match_operator function.
684         (cris_notice_update_cc): Use replace_equiv_address, not
685         gen_rtx_MEM.
686         * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
687
688 2003-10-15  Bernardo Innocenti <bernie@develer.com>
689
690         * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
691         MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
692         definitions after the other flags.
693
694 2003-10-14  Ziemowit Laski  <zlaski@apple.com>
695
696         * c-parse.in (methoddef, methodproto): Call objc_add_method()
697         instead of add_method().
698         * objc/objc-act.c (objc_check_decl): Do not check for
699         constant_string_type.
700         (add_method): Rename to objc_add_method().
701         (really_start_method): Call objc_add_method() instead of
702         add_method().
703         * objc/objc-act.h (add_method): Rename to objc_add_method().
704
705 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
706
707         * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
708         (s390_slb_comparison): Likewise.
709         * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
710         New functions.
711         * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
712         and s390_slb_comparison.
713         * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
714         zSeries machines.
715         ("*adddi3_31z", "*subdi3_31z"): New insns.
716         ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
717         "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
718         New insns.
719
720 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
721
722         * configure.in: Clean up some feedback echoes.
723         * configure: Regenerate.
724
725         * aclocal.m4: Properly quote names of macros being defined.
726
727         * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
728
729 2003-10-14  Steve Ellcey  <sje@cup.hp.com>
730
731         * config/ia64/ia64.c (ia64_expand_call): Force function address
732         to DImode.
733         * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
734
735 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
736
737         * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
738         "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
739         ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
740         "*divsf3_ibm"): Likewise.
741
742 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
743
744         * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
745         target_alias with target_noncanonical.
746
747 2003-10-14  Geoffrey Keating  <geoffk@apple.com>
748
749         * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
750         and add case for machines where outgoing register parameters
751         get stack space.
752
753         * config/darwin.c (machopic_indirect_data_reference): Use a scratch
754         register when generating indirect address.
755
756 2003-10-14  Richard Earnshaw  <rearnsha@arm.com>
757
758         * arm.c (arm_addimm_operand): MODE arguemnt is unused.
759         * arm.md (cbranchne_decr1): Fix bootstrap warning.
760
761 2003-10-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
762
763         * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
764         * fixinc/fixincl.x: Regenerate.
765         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
766         testcase.
767         Fixes PR bootstrap/9330.
768
769 2003-10-13  Eric Christopher  <echristo@redhat.com>
770
771         * config/frv/frv.c (frv_adjust_field_align): Redo check for
772         too wide bitfields.
773         (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
774         * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
775         (SBSS_SECTION_ASM_OP): Remove.
776         (EXTRA_SECTIONS): Remove in_sbss.
777         (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
778         (SBSS_SECTION_FUNCTION, sbss_section): Remove.
779         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
780         named_section.
781
782 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
783
784         * Makefile.in, configure.in, config.host, mkheaders.in: Replace
785         uses of ${target_alias} for directory names (and other places which
786         won't like the empty string) with ${target_noncanonical}.  Introduce
787         call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
788         available.
789         * configure: Regenerate.
790
791 2003-10-13  Ian Lance Taylor  <ian@wasabisystems.com>
792
793         * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
794         * config/arm/arm.md: For splits which rely on conditional moves,
795         remove ! TARGET_IWMMXT condition.
796
797 2003-10-13  David S. Miller  <davem@redhat.com>
798
799         * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
800         (find_cond_trap): Always increment if we emit a conditional
801         trap insn.
802
803 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
804
805         * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
806         with min-insn-modes.o.
807         (STAGESTUFF): Add min-insn-modes.c.
808         (genobjs): Add genmodes.o.
809         (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
810         (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
811         (min-insn-modes.c, min-insn-modes.o): New rules.
812         (s-modes): Also generate min-insn-modes.c.
813         ($(BUILD_PREFIX_1)insn-modes.o): Kill.
814         * genmodes.c (struct mode_data): Add format field.
815         (blank_mode, validate_mode, complete_mode): Update to match.
816         (make_scalar_mode): Separate into make_int_mode and make_float_mode.
817         (_SCALAR_MODE): Kill.
818         (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
819         (emit_insn_modes_c_header): Adjust.
820         (emit_min_insn_modes_c_header, emit_real_format_for_mode)
821         (emit_min_insn_modes_c): New functions.
822         (emit_insn_modes_c): Call emit_real_format_for_mode.
823         (main): Add -m option to generate min-insn-modes.c.
824         * machmode.h: Update documentation.  Add format argument to
825         all uses of FLOAT_MODE.
826         * real.c: Don't define real_format_for_mode here.
827
828         * dwarfout.c: Move default definition of PRINT_REG...
829         * defaults.h: ...here.
830         * print-rtl.c: Include tm_p.h.
831         (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
832         Kill.
833         (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG.  But surround
834         this entire block with #ifndef GENERATOR_FILE.
835         * regclass.c: Unconditionally define reg_names.
836         * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
837         Don't define DEBUG_REGISTER_NAMES.
838         * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
839         redefinition of REGISTER_NAMES.
840         * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
841
842         * combine.c: Change all preprocessor conditionals on
843         EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
844         for clarity.
845         * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
846         * configure.in: Don't define EXTRA_CC_MODES.
847         * configure, config.in: Regenerate.
848         * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
849
850         * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
851         May assume that GET_MODE_CLASS is accurate for extra CC modes
852         at all times.
853
854         * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
855         number of arguments to aggregate_value_p.
856
857         * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
858         * machmode.def: Explain ARCH-modes.def.  Document
859         RESET_FLOAT_FORMAT.  Improve commentary on various mode
860         clusters.  Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
861         XF, or TF modes here.  Remove backward-compatibility
862         definition of CC.
863
864         * config/alpha/alpha-modes.def: New file; define TF mode.
865         * config/arc/arm-modes.def: Define XF mode.
866         * config/c4x/c4x-modes.def: Define QF and HF modes.  Unset
867         float format for SF and DF modes.
868         * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
869         * config/i386/i386-modes.def: Define XF and TF modes.
870         * config/i960/i960-modes.def: Define TF mode.
871         * config/ia64/ia64-modes.def: Define TF and OI modes.
872         * config/m68k/m68k-modes.def: New file; define XF mode.
873         * config/mips/mips-modes.def: New file; define TF mode, reset
874         formats for SF and DF modes.
875         * config/pa/pa-modes.def: Define TF mode.
876         * config/rs6000/rs6000.c: Define TF and PSI modes.
877         * config/s390/s390-modes.def: Define OI mode.
878         * config/sh/sh-modes.def: New file; define PSI mode.
879         * config/sparc/sparc-modes.def: Define TF mode.
880         * config/vax/vax-modes.def: New file; reset formats for SF and
881         DF modes.
882
883         * config/c4x/c4x.c (c4x_override_options): No need to mess
884         with real_format_for_mode or set REAL_MODE_FORMATs.
885         (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
886         variable.
887         * config/i386/i386.c (override_options): No need to set
888         REAL_MODE_FORMATs here.
889         * config/i960/i960.c (i960_initialize): Likewise.
890         * config/m68k/m68k.c (m68k_override_options): Likewise.
891         * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
892         for TFmode only if not the default.
893         * config/mips/mips.c (override_options): Likewise.
894         * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
895         DFmode only if not the default.
896
897         * config/i370/i370.h (RET_REG): Don't consider TFmode.
898         * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
899         * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
900         of modes that don't appear anywhere in the machine description.
901
902         * config/arc/arc-modes.def, config/arm/arm-modes.def
903         * config/c4x/c4x-modes.def, config/frv/frv-modes.def
904         * config/i386/i386-modes.def, config/i960/i960-modes.def
905         * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
906         * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
907         * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
908         * config/sparc/sparc-modes.def: Convert to new style for
909         declaring extra CC modes.
910
911 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
912
913         * cpplex.c (_cpp_clean_line): In the common case of a line
914         with no trigraphs and no \-newline, avoid writing to memory.
915         (_cpp_skip_block_comment): Use a local 'cur' pointer instead
916         of the buffer member.  Make c an uchar to avoid unnecessary
917         sign extensions.
918
919 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
920
921         * configure.in: Remove unnecessary test.
922         * configure: Regenerate.
923
924         * configure.in: Fix grammatical error.  Move UWIN host error to...
925         * config.host: Here.
926         * configure: Regenerate.
927
928 2003-10-13  Andreas Krebbel  <krebbel1@de.ibm.com>
929
930         * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
931         "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
932         of flag_unsafe_math_optimizations.
933         * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
934         "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
935         fused-madd and no-fused-madd.
936         * doc/invoke.texi: Documented the new options fused-madd and
937         no-fused-madd for S/390.
938
939 2003-10-14  Alan Modra  <amodra@bigpond.net.au>
940
941         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
942         MASK_ALIGN_NATURAL if rs6000_alignment_string not given.  Don't
943         assign DEFAULT_ABI.
944         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
945         * config/rs6000/rs6000.c: Formatting.
946         (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
947         when rs6000_alignment_string given.
948
949 2003-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
950
951         PR target/12538
952         * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
953         (sparc_flat_must_save_register_p): New function to decide whether
954         a register must be saved/restored in the function prologue/epilogue.
955         (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
956
957 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
958
959         * config/avr/avr.c, config/avr/avr-protos.h: Convert to
960         ISO C90 function declarations and definitions.
961         * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
962
963 2003-10-12  Nathanael Nerode  <neroden@gcc.gnu.org>
964
965         * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
966         config files which do the same thing.
967         * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
968         config/freebsd6.h: Remove now unnecessary files.
969
970 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
971
972         * c-common.c (c_common_truthvalue_conversion): Warn if the
973         address of a non-weak function is used as a truth value.
974
975 2003-10-12  Kazu Hirata  <kazu@cs.umass.edu>
976
977         * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
978         a literal.
979         * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
980         instead of a literal.
981
982 2003-10-12  Hans-Peter Nilsson  <hp@bitrange.com>
983
984         * doc/extend.texi (Function Attributes): Mention the exceptional
985         path for noreturn-marked functions.
986
987 2003-10-12  Jan Hubicka  <jh@suse.cz>
988
989         * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
990         warning.
991
992 2003-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
993
994         * config/i386/i386.c (x86_this_parameter): Fix typo.
995
996 2003-10-11  Jan Hubicka  <jh@suse.cz>
997
998         * Makefile.in (web.o): New.
999         * web.c: New file.
1000         * rtl.h (web_main): Declare.
1001         * timervar.def (TV_WEB): New.
1002         * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
1003         (rest_of_hanle_web): New.
1004         (flag_web): New static variable.
1005         (lang_independent_options): Add "web".
1006         (rest_of_compilation): Call rest_of_handle_web.
1007         * invoke.texi (-fweb): Document.
1008         * common.opt (fweb): New.
1009         * flags.h (flag_web): New.
1010         * opts.c (decode_options): Set flag_web at -O3.
1011
1012         * passes.texi (web construction):  Document.
1013         * invoke.texi (-O3): Document that -fweb is enabled.
1014
1015         * regrename.c (regrename_optimize): Deal better with situation when
1016         replacement failed.
1017
1018         * sched-ebb.c: Include params.h and profile.h
1019         (schedule_ebbs):  Use tracer parameters to discover superblocks
1020         * Makefile.in (sched-ebb.o):  Add dependencies.
1021
1022 2003-10-11  Roger Sayle  <roger@eyesopen.com>
1023
1024         * fold-const.c (negate_mathfn_p): New function to determine whether
1025         a built-in mathematical function is sign preserving, f(-x) == -f(x).
1026         Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
1027         (tree_swap_operands_p): Change API to take an additional argument
1028         indicating that the swapped operands evaluate in reverse order.
1029         Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
1030         operand side-effects or we don't care about flag_evaluation_order.
1031         (reorder_operands_p): New function to check whether its safe to
1032         evaluate the given operands in reverse order.
1033         (negate_expr_p):  We can always negate integer constants unless
1034         we honor -ftrapv and the signed type would overflow.  Only allow
1035         -(A-B) into B-A if reorder_operands_p says that its OK.  Allow
1036         negation of COMPLEX_CST if both real and imaginary parts can be
1037         negated.  Allow negation through floating point extensions and
1038         sign-preserving built-in functions.
1039         (negate_expr):  Move the code to negate integers from "fold" to
1040         here.  Always negate integer constants unless we honor -ftrapv
1041         and the signed type would overflow.  Always negate real constants
1042         unless we honor -ftrapping-math.  Only convert -(A-B) into B-A
1043         if allowed by reorder_operands_p.  Add support for COMPLEX_CST.
1044         Optimize negation through floating point extensions and
1045         sign-preserving built-in functions (as defined by negate_mathfn_p).
1046         (fold): Adjust calls to tree_swap_operands_p.
1047         (fold <NEGATE_EXPR>): Move the remaining negation optimizations
1048         to negate_expr_p/negate_expr.
1049         (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
1050         allowed to convert (-A) - B into (-B) - A.
1051
1052 2003-10-11  Roger Sayle  <roger@eyesopen.com>
1053
1054         * builtins.c (expand_builtin_strcmp): Defend against the possibility
1055         that gen_cmpstrsi may fail: Stabilize the argument list against
1056         re-evaluation and expand the library call directly using this saved
1057         argument list if a cmpstrsi sequence can't be generated.
1058         (expand_builtin_strncmp): Likewise.
1059
1060         * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
1061
1062 2003-10-11  Roger Sayle  <roger@eyesopen.com>
1063
1064         PR optimization/12260
1065         * simplify-rtx.c (simplify_unary_operation): Simplify all unary
1066         operations through CONST nodes.  Optimize (neg (plus X C)) as
1067         (minus -C X) for constant values C.
1068         (simplify_binary_operation): Optimize (minus (neg X) C) as
1069         (minus -C X) for constant values C.
1070         (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
1071         instead create (minus -C X).
1072
1073 2003-10-11  Roger Sayle  <roger@eyesopen.com>
1074
1075         * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
1076         safe_from_p for us, once it chooses an evaluation order.
1077         (expand_expr <MULT_EXPR>): Likewise.
1078         (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise.  If expand_operands
1079         places the second operand in "target", swap the operands.
1080         (do_store_flag): Let expand_operands call safe_from_p for us.
1081
1082 2003-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
1083
1084         PR optimization/12544
1085         * function.c (put_var_into_stack): Don't generate ADDRESSOFs
1086         for DECL_NONLOCAL decls.
1087
1088 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
1089
1090         * expr.c: Follow spelling conventions.
1091         * final.c: Likewise.
1092         * optabs.c: Likewise.
1093         * sched-deps.c: Likewise.
1094         * sdbout.c: Likewise.
1095
1096 Sat Oct 11 12:24:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
1097
1098         * varasm.c (notice_global_symbol):  Fix handling of variables; avoid
1099         re-computing of variable.
1100
1101 2003-10-11  Richard Henderson  <rth@redhat.com>
1102
1103         * config/alpha/alpha.c (alpha_return_in_memory): Rename from
1104         return_in_memory, make static, change signature to match target hook.
1105         (alpha_setup_incoming_varargs): Make static, change signature to
1106         match target hook, add code for vms and unicos.
1107         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
1108         TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
1109         TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
1110         TARGET_STRICT_ARGUMENT_NAMING,
1111         TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
1112         * config/alpha/alpha-protos.h: Update.
1113         * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
1114         PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
1115         SETUP_INCOMING_VARARGS): Remove.
1116         * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
1117         * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
1118
1119 2003-10-11  Ian Lance Taylor  <ian@wasabisystems.com>
1120
1121         * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
1122
1123 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
1124
1125         * config/m68k/lb1sf68.asm: Follow spelling conventions.
1126         * config/m68k/m68k.c: Likewise.
1127         * config/m68k/m68k.h: Likewise.
1128         * config/m68k/m68k.md: Likewise.
1129
1130 2003-10-11  Roger Sayle  <roger@eyesopen.com>
1131
1132         * builtins.c (expand_builtin_memcpy): Optimize case when the two
1133         pointer arguments are the equal, non-volatile and side-effect free.
1134         (expand_builtin_mempcpy): Likewise.
1135         (expand_builtin_memmove): Likewise.
1136         (expand_builtin_strcpy): Likewise.
1137         (expand_builtin_memcmp): Likewise.
1138         (expand_builtin_strcmp): Likewise.
1139         (expand_builtin_strncmp): Likewise.
1140
1141 2003-10-11  Roger Sayle  <roger@eyesopen.com>
1142
1143         * combine.c (apply_distributive_law): Enable "distributive" floating
1144         point optimizations with -funsafe-math-optimizations.
1145
1146 2003-10-11  Andrew Pinski <pinskia@physics.uc.edu>
1147
1148         * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
1149
1150 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
1151
1152         * config/m68k/m68k-protos.h: Remove the prototype for
1153         finalize_pic.
1154
1155 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
1156
1157         * config/m68k/m68k.c: Fix comment typos.
1158
1159 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
1160
1161         * config/m68k/m68k-protos.h (use_return_insn): Change return type from
1162         int to bool.
1163         * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
1164         (current_frame): New global var.
1165         (m68k_compute_frame_layout): Cache computations in current_frame.
1166         (m68k_initial_elimination_offset): Use values from current_frame
1167         instead of recomputing them.
1168         (use_return_insn): Likewise.
1169         (m68k_output_function_prologue): Likewise.
1170         (m68k_output_function_epilogue): Likewise.
1171         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
1172         inside the block for __pic__.
1173
1174 2003-10-11  Peter Barada <peter@baradas.org>
1175             Bernardo Innocenti  <bernie@develer.com>
1176
1177         * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
1178         (m68k_save_reg): Add boolean parameter `interrupt_handler'.
1179         (m68k_interrupt_function_p): New function.
1180         (m68k_handle_fndecl_attribute): Ditto.
1181         (m68k_compute_frame_layout): Ditto.
1182         (m68k_attribute_table): Define back-end specific attributes.
1183         (m68k_output_function_epilogue): Emit RTE instruction for interrupt
1184         functions.
1185
1186 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
1187
1188         * config/m68k/t-uclinux: New target Makefile fragment.
1189         * config/m68k/uclinux.h: New target macro file.
1190         * config.gcc (m68k-*-uclinux): New target definition.
1191
1192 2003-10-10  Roger Sayle  <roger@eyesopen.com>
1193
1194         * builtins.c (builtin_mathfn_code): Generalize to check whether
1195         the call is to any built-in function by comparing the call's
1196         argument list against the builtin decl's function type.
1197
1198 2003-10-10  Roger Sayle  <roger@eyesopen.com>
1199
1200         * cse.c (constant_pool_entries_regcost): New global variable to
1201         hold the register cost component of constant_pool_entries_cost.
1202         (fold_rtx): Calculate constant_pool_entries_regcost at the same
1203         time as constant_pool_entries_cost.
1204         (cse_insn): Set both src_folded_cost and src_folded_regcost from
1205         constant_pool_entries_cost and constant_pool_entries_regcost.
1206         (cse_main): Initialize constant_pool_entries_regcost to zero.
1207
1208         * optabs.c (expand_unop): Attach a REG_EQUAL note describing
1209         the semantics of the sequence of bit operations used to negate
1210         a floating-point value.
1211         (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
1212         the semantics of the bit operations used to abs a floating point
1213         value.
1214
1215 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
1216             Paul Dale  <pauli@snapgear.com>
1217
1218         * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
1219         support.
1220         * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
1221         -fpic, -fPIC, -msep-data and -mid-shared-library.
1222         * config/m68k/m68k.c (m68k_library_id_string): New global variable.
1223         (override_options): Add -msep-data and -mshared-library-id support.
1224         (m68k_output_function_prologue): Generate code to load A5 for
1225         TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
1226         (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
1227         (m68k_output_pic_call): New function.
1228         * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
1229         (TARGET_ID_SHARED_LIBRARY): Ditto.
1230         (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
1231         * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
1232         (call_value): Likewise.
1233
1234 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
1235
1236         * gengenrtl.c (find_formats, genheader): Make i an unsigned
1237         int, remove cast of NUM_RTX_CODE.
1238         * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
1239         entire file.  Remove the #ifs on GET_MODE_MASK etc and
1240         GET_MODE_WIDER_MODE etc.
1241
1242 2003-10-10  Eric Christopher  <echristo@redhat.com>
1243
1244         * lcm.c (optimize_mode_switching): Change NORMAL_MODE
1245         to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
1246         that set mode.
1247         * config/sh/sh.h (MODE_ENTRY): New macro.
1248         (MODE_EXIT): Ditto.
1249         (MODE_AFTER): Ditto.
1250         * config/sh/sh.md: Change for MODE_AFTER. Add
1251         fp_set attribute.
1252         * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
1253
1254 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
1255
1256         * genmodes.c, mode-classes.def: New files.
1257         * machmode.def: Rewritten to genmodes.c interface.
1258         * Makefile.in (extra_modes_file): New substitution variable.
1259         (MACHMODE_H): No longer includes machmode.def or
1260         @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
1261         (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
1262         (OBJS-common): Add insn-modes.o.
1263         (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
1264         genmodes$(build_exeext).
1265         (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
1266         genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
1267         (s-genrtl): Don't depend on $(RTL_BASE_H).
1268         (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
1269         or $(RTL_BASE_H); just rtl.def.
1270         * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
1271         real.h.  Give fake definition of CONST_DOUBLE_FORMAT and
1272         substitute definition of NUM_RTX_CODE.  Add casts to avoid
1273         warnings.
1274         * machmode.h: Include insn-modes.h, not machmode.def.  Include
1275         mode-classes.def to define enum mode_class.  Tweak definitions
1276         of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
1277         GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
1278         (inner_mode_array): Renamed mode_inner.
1279         (mode_base_align): New.
1280         * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
1281         mode_unit_size, mode_wider_mode, mode_mask_array,
1282         inner_mode_array, class_narrowest_mode): Delete definitions.
1283         * stor-layout.c (get_mode_alignment): Use mode_base_align.
1284         * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
1285         and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
1286
1287         * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
1288         No need to define BITS_PER_UNIT.
1289
1290 2003-10-10  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1291
1292         * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
1293         (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
1294         (ia64_initialize_trampoline): If not using GAS, declare trampoline
1295         as global.
1296         * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
1297         (ASM_OUTPUT_DEBUG_LABEL): Likewise.
1298
1299         * stor-layout.c (compute_record_mode): Don't force BLKmode if
1300         field is zero-length BLKmode.
1301         * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
1302         zero-size references.
1303
1304         * combine.c (distribute_links): Properly test for REG being set.
1305
1306         * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
1307         gen_lowpart and company except for REG.
1308
1309 2003-10-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1310
1311         * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
1312
1313 2003-10-10  Nathanael Nerode  <neroden@gcc.gnu.org>
1314
1315         * config.gcc (mips*-*-netbsd*): Remove content-free line.
1316
1317 2003-10-10  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
1318
1319         * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
1320         gcov_position_t and gcov_type.
1321
1322 2003-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
1323
1324         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
1325         * configure: Regenerate.
1326
1327 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
1328
1329         * config/h8300/h8300.md (define_asm_attributes): Specify
1330         the length of an asm insn more precisely.
1331
1332 2003-10-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1333
1334         * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
1335
1336 2003-10-09  Bob Wilson  <bob.wilson@acm.org>
1337
1338         * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
1339         FP register number to 48 and MAC16 accumulator to 0x210.
1340
1341 2003-10-09  Nathanael Nerode  <neroden@gcc.gnu.org>
1342
1343         * config.gcc: Remove redundant thread_file setting clauses for
1344         various *-*-linux* targets.
1345
1346 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
1347
1348         * config/h8300/h8300.md (define_asm_attributes): New.
1349
1350 2003-10-09  Roger Sayle  <roger@eyesopen.com>
1351
1352         * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
1353         to the comparison, as emit_libcall_block calls copy_rtx on equiv.
1354
1355 2003-10-09  Dorit Naishlos  <dorit@il.ibm.com>
1356
1357         * haifa-sched.c (ok_for_early_schedule): New function.
1358         (early_queue_to_ready): New function.
1359         (schedule_block): Allow early removal of insns from Q.
1360         (schedule_insn): Update INSN_TICK in case of premature
1361         issue.
1362         * common.opt (sched_stalled_insns): New flag.
1363         (sched_stalled_insns_dep): New flag.
1364         * flags.h: Same above flags.
1365         * opts.c: Same as above.
1366         * toplev.c: Same as above.
1367         * target.h (targetm.sched.is_costly_dependence): New
1368         hook.
1369         * target-def.h: Same as above.
1370         * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
1371         Support new flag -msched-costly-dep.
1372         (DEFAULT_SCHED_COSTLY_DEP): Define.
1373         * config/rs6000/rs6000.c:
1374         (rs6000_is_costly_dependence): New function.
1375         (is_load_insn, is_store_insn): New functions.
1376         (is_load_insn1, is_store_insn1, is_mem_ref): New
1377         functions.
1378         * doc/invoke.texi (-fsched-stalled-insns-dep)
1379         (-fsched-stalled-insns, -msched-costly-dep): Document
1380         options.
1381         * doc/tm.texi (is_costly_dependence): Define new
1382         scheduler target hook.
1383
1384 2003-10-09  Jason Merrill  <jason@redhat.com>
1385
1386         PR c++/6392
1387         * c-common.c (c_build_qualified_type): Look through arrays first.
1388         (c_apply_type_quals_to_decl): Look through arrays.
1389
1390         * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
1391         types with constructors.
1392
1393         * coverage.c (build_ctr_info_value): Use build_decl to make a
1394         VAR_DECL.
1395         (create_coverage): Likewise.
1396
1397         * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
1398         here.
1399         (expand_asm_operands): Not here.
1400         (parse_input_constraint): No longer static.
1401         * tree.h: Declare it.
1402
1403 2003-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
1404
1405         * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
1406         libgcc_s.so.
1407         (SHLIB_INSTALL): Likewise.
1408
1409 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
1410
1411         * doc/install.texi: Remove reference to removed 'pthreads' thread
1412         option.
1413
1414 2003-10-08  Aldy Hernandez  <aldyh@redhat.com>
1415
1416         * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
1417         operand 2.
1418
1419 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
1420
1421         * config.gcc: Don't accept --enable-threads=pthreads.  Clean
1422         up related case statements.
1423         * configure.in: Don't accept --enable-threads=pthreads,
1424         decosf1, mach, or os2 (none of which work anyway).  Alphabetize
1425         supported thread files in case clause.
1426         * configure: Regenerate.
1427
1428 2003-10-08  Geoffrey Keating  <geoffk@apple.com>
1429
1430         * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
1431         definition to above SPARC_STACK_BOUNDARY_HACK.
1432
1433 2003-10-08  Jason Merrill  <jason@redhat.com>
1434
1435         * c-pretty-print.c (pp_c_postfix_expression)
1436         <COMPOUND_LITERAL_EXPR>: Fix thinko.
1437
1438 2003-10-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1439
1440         * mklibgcc.in: Don't hide undefined or typeless symbols.
1441
1442 2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1443
1444         PR optimization/12142
1445         * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
1446         uses of the register in the SET_SRC.  Remove unnecessary argument.
1447         * pa.c (legitimize_pic_address): Before reload, use a scratch register
1448         for the intermediate result in loading the address of a SYMBOL_REF.
1449         Set the MEM_NOTRAP_P flag for the MEM.  Add a REG_EQUAL to the insn
1450         which loads the SYMBOL_REF address.
1451
1452 2003-10-08  Timo Kokkonen  <tjko@iki.fi>
1453             Eric Botcazou  <ebotcazou@libertysurf.fr>
1454
1455         PR bootstrap/12490
1456         * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
1457         to define the size of the extern_C_braces array.  Set it to 200.
1458         (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
1459
1460 2003-10-08  Carlo Wood  <carlo@alinoe.com>
1461
1462         * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
1463         a space after the -o option.  flex 2.5.31 understands both, with
1464         and without the space. Removed that space.
1465
1466 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
1467
1468         * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
1469         (compute_frame_size): Initialize it.  Remove the .cprestore slot
1470         from args_size.
1471         (mips_output_function_prologue): Simplify accordingly.
1472         (mips_debugger_offset): Change the mips16 frame pointer offset from
1473         current_function_outgoing_args to cfun->machine->frame.args_size.
1474         (mips_initial_elimination_offset): Likewise.
1475         (mips_expand_prologue): Likewise.
1476         (mips_expand_epilogue): Likewise.
1477
1478 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
1479
1480         * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
1481         (EXTRA_MEMORY_CONSTRAINT): Define.
1482         (CAN_ELIMINATE): Remove lwu workaround.
1483         * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
1484         Use a 'W' constraint for the source operand.
1485
1486 2003-10-08  Kazu Hirata  <kazu@cs.umass.edu>
1487
1488         * genopinit.c (main): Output code to declare undefined
1489         variables.
1490
1491 2003-10-07  Kelley Cook  <kcook@gcc.gnu.org>
1492
1493         * gengtype-lex.l: Remove -Wtraditional cruft.
1494         * Makefile.in (gengtype-lex.c): Likewise.
1495
1496 2003-10-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1497
1498         * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
1499
1500 2003-10-07  Jason Merrill  <jason@redhat.com>
1501
1502         PR c++/12519
1503         * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
1504         it isn't a decl.
1505
1506 2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
1507
1508         * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
1509         not overridden.
1510         Fixes PR bootstrap/12173.
1511
1512 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
1513
1514         * errors.c: Don't include coretypes.h or tm.h.
1515         (trim_filename): Use IS_DIR_SEPARATOR.
1516         * Makefile.in: Update dependencies of errors.o and
1517         $(BUILD_PREFIX_1)errors.o.
1518
1519 2003-10-07  Geoffrey Keating  <geoffk@apple.com>
1520
1521         * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
1522         account when aligning arguments.
1523         * calls.c (STACK_POINTER_OFFSET): Move default from here ...
1524         * defaults.h (STACK_POINTER_OFFSET): ... to here.
1525         * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
1526         it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
1527         (SPARC_STACK_BOUNDARY_HACK): Define.
1528         * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
1529         arrange for vector parameters to varargs functions to be passed
1530         in both memory and GPRs when appropriate.
1531         (rs6000_va_arg): Vector arguments passed in memory are 16-byte
1532         aligned.
1533
1534         * hooks.c (hook_bool_tree_true): New.
1535         (hook_rtx_tree_int_null): New.
1536         (hook_rtx_rtx_null): Use NULL, not 0.
1537         * hooks.h: Add 'extern' to everything.
1538         (hook_bool_tree_true): New.
1539         (hook_rtx_tree_int_null): New.
1540         * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
1541         * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
1542         * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
1543         prototype.
1544         * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
1545         (setup_incoming_varargs): Prototype.
1546         (TARGET_PROMOTE_FUNCTION_ARGS): Define.
1547         (TARGET_PROMOTE_FUNCTION_RETURN): Define.
1548         (TARGET_STRUCT_VALUE_RTX): Define.
1549         (TARGET_RETURN_IN_MEMORY): Define.
1550         (TARGET_SETUP_INCOMING_VARARGS): Define.
1551         (TARGET_STRICT_ARGUMENT_NAMING): Define.
1552         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
1553         (init_cumulative_args): Use rs6000_return_in_memory.
1554         (setup_incoming_varargs): Make 'static'.
1555         * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
1556         (PROMOTE_FUNCTION_RETURN): Delete.
1557         (STRUCT_VALUE): Delete.
1558         (RETURN_IN_MEMORY): Delete.
1559         (SETUP_INCOMING_VARARGS): Delete.
1560
1561 2003-10-07  Gerald Pfeifer  <gerald@pfeifer.com>
1562
1563         * doc/invoke.texi (Warning Options): Simplify and clarify the
1564         descriptions of -Wnonnull and -Winit-self.
1565
1566 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
1567
1568         * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
1569         indicees for floating-point conversersion libcalls.
1570
1571 2003-10-07  Nathanael Nerode  <neroden@gcc.gnu.org>
1572
1573         * Makefile.in: Add more comments separating large conceptually
1574         separate sections.
1575
1576         * configure.in: Clean up thread file logic.
1577         * configure: Regenerate.
1578
1579 2003-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
1580
1581         * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
1582         (switch_to_section): Handle in_readonly_data.
1583         * config/i386/winnt.c (i386_pe_asm_named_section): Handle
1584         readonly data.
1585
1586 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
1587
1588         * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
1589         it.
1590         (cbranchne_decr1): New Thumb pattern.
1591         * arm.c (arm_addimm_operand): New insn predicate.
1592         * arm-protos.h: Add a prototype for it.
1593         * arm.h (PREDICATE_CODES): Add it.
1594
1595 2003-10-07  Dorit Naishlos <dorit@il.ibm.com>
1596
1597         * sched-int.h (sched_info): New field
1598         sched_max_insns_priority.
1599         * sched-rgn.c (init_ready_list): Add invocations to
1600         targetm.sched.adjust_priority.
1601         (sched_max_insns_priority): Init new field.
1602         * sched-ebb.c (sched_max_insns_priority): Init new field.
1603         * haifa-sched.c (set_priorities): Set
1604         sched_info->sched_max_insns_priority.
1605         * config/rs6000/rs6000.h:
1606         (rs6000_sched_restricted_insns_priority_str): Support new
1607         flag -mprioritize-restricted-insns.
1608         (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
1609         * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
1610         function.
1611         (rs6000_adjust_priority): Change priority of restricted
1612         insns, using above new function and new flag.
1613         * doc/invoke.texi (-mprioritize-restricted-insns): Document
1614         new option.
1615
1616 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
1617
1618         * expr.c (cmpstr_optab, cmpmem_optab): New.
1619         * genopinit.c: Initialize them.
1620         * optabs.h: Declare them.
1621         * optabs.c (init_optabs): Clear them.
1622         (prepare_cmp_insn):  Use cmpstr_optab and cmpmem_optab to find
1623         block memory compare insns, not conditional chains.  Restructure
1624         the fallback generation of a call to memcmp/bcmp for better
1625         readability.
1626
1627 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
1628
1629         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
1630         (mips_save_restore_fn): New typedef.
1631         (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
1632         (mips_set_frame_expr, mips_frame_set): Move above prologue code.
1633         (save_restore_insns): Remove, replacing with...
1634         (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
1635         (mips_save_reg, mips_restore_reg): New function.
1636         (mips_expand_prologue, mips_expand_epilogue): Rework.
1637         * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
1638         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
1639         (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
1640
1641 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
1642
1643         * config/mips/mips.c (mips_expand_prologue): Remove unused
1644         traversal of function arguments.
1645
1646 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
1647
1648         * doc/invoke.texi: Remove documentation of -mentry.
1649         * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
1650         (override_options, mips_save_reg_p): Remove handling.
1651         (compute_frame_size, mips_output_function_prologue): Likewise.
1652         (mips_expand_prologue, mips_expand_epilogue): Likewise.
1653         * config/mips/mips.h (mips_entry_string): Remove declaration.
1654         (TARGET_OPTIONS): Remove -mentry.
1655         * config/mips/mips16.S: Remove mention of -mentry.
1656
1657 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
1658
1659         * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
1660         (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
1661         (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
1662         (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
1663         (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
1664         (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
1665         (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
1666         (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
1667         (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
1668         (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
1669         (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
1670         (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
1671         (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
1672         (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
1673         (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
1674         (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
1675         (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
1676         (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
1677         (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
1678         (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
1679         (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
1680         (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
1681         (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
1682         (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
1683         (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
1684         (fixunstfti_libfunc): Delete.
1685         * optabs.h (struct optab_handlers): Break out of struct optab.
1686         (struct convert_optab, convert_optab, enum convert_optab_index,
1687         convert_optab_table, sext_optab, zext_optab, trunc_optab,
1688         sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
1689         sfloat_optab, ufloat_optab): New.
1690         (set_conv_libfunc): Prototype.
1691         (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
1692         (trunc_optab): Renamed btrunc_optab.
1693         * builtins.c (expand_builtin_mathfn): Update to match.
1694         * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
1695         (convert_optab_table, new_convert_optab, init_convert_optab)
1696         (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
1697         (set_conv_libfunc): New.
1698         (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
1699         (expand_float, expand_fix): Use new conversion optabs,
1700         not old insn code tables or long chains of ifs.
1701         (init_optabs): No need to clear old insn code tables.
1702         Initialize the new optabs, not the old libfunc array entries.
1703         Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
1704         * genopinit.c: Initialize conversion optabs, not the
1705         former insn code tables.  Remove unnecessary casts.
1706         Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
1707         * expr.c (convert_move): Remove redundant check that
1708         to_real==from_real.  Use the conversion optabs instead
1709         of long chains of tests of modes.  Move partial-integer-mode
1710         interconversion above all integer conversion.  Do not recurse
1711         on a value forced into a register in the original mode.
1712
1713         * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
1714         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
1715         * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
1716         in new conversion optabs; do not reference the old libfunc
1717         array entries.  No need to include libfuncs.h.
1718
1719 2003-10-06  Roger Sayle  <roger@eyesopen.com>
1720
1721         * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
1722         point comparison sequence with a REG_EQUAL note that describes
1723         the comparison's semantics.
1724
1725 2003-10-06  Roger Sayle  <roger@eyesopen.com>
1726
1727         * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
1728         of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
1729
1730 2003-10-06  Roger Sayle  <roger@eyesopen.com>
1731             Zack Weinberg  <zack@codesourcery.com>
1732
1733         * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
1734         instruction by using LCT_CONST and then calling emit_libcall_block
1735         ourselves.
1736
1737 2003-10-06  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
1738
1739         PR optimization/11974
1740         * optabs.c (expand_unop): Promote libcall outmode according to
1741         hard_libcall_value.
1742
1743 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
1744
1745         * real.h (REAL_MODE_FORMAT): New macro.
1746         * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
1747         * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
1748         * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
1749         * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
1750         * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
1751         directly to real_format_for_mode array, wherever possible.
1752
1753 2003-10-06  Devang Patel  <dpatel@apple.com>
1754
1755         * dwarf2out.c (is_main_source): Remove variable.
1756         (dwarf2out_start_source_file): Do not check is_main_source.
1757         Do not reset is_main_source.
1758         (dwarf2out_init): Do not initialize is_main_source.
1759
1760 2003-10-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1761
1762         * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
1763         (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
1764         introduced some multi-line prototypes.
1765         * fixinc/fixincl.x: Regenerate.
1766
1767 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
1768
1769         * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
1770         * config/mips/mips.c (stack_operand): New predicate.
1771         * config/mips/mips.md: Use it for the destination of mips16 insns
1772         that store $31.
1773
1774 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
1775
1776         * config/mips/mips.md (*lowsi): Renamed from lowsi.
1777         (*lowdi): Likewise lowdi.
1778         (*lowsi_mips16, *lowdi_mips16): New patterns.
1779         * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
1780         mips16 CONSTANT_RELOC handling.
1781         (mips_delegitimize_address): Adjust for new sdata representation.
1782
1783 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
1784
1785         * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
1786         skip any remaining register arguments.
1787
1788 2003-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
1789
1790         * reload.c (find_reloads_subreg_address): Use correct offset for
1791         paradoxical MEM subregs on big-endian targets.
1792
1793 2003-10-06  Andrew Haley  <aph@redhat.com>
1794
1795         * tree.c (get_callee_fndecl): Call
1796         lang_hooks.lang_get_callee_fndecl.
1797         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
1798         (lhd_get_callee_fndecl): New.
1799
1800 2003-10-06  Andrew Pinski  <apinski@apple.com>
1801
1802         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
1803         error in calculating the length of the string.
1804         (machopic_stub_name): Likewise.
1805
1806 2003-10-06  Roger Sayle  <roger@eyesopen.com>
1807
1808         * optabs.c (prepare_float_lib_cmp):  Attach a REG_EQUAL note
1809         describing the return value of the comparison libcall to the
1810         REG_RETVAL instruction of the emitted sequence.
1811
1812 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1813
1814         PR optimization/12215
1815         * cse.c (cse_set_around_loop): Emit the move at the beginning
1816         of the next basic block for trapping sets.
1817
1818 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1819
1820         PR optimization/11637
1821         * combine.c (adjust_for_new_dest): New function to adjust the
1822         notes and LOG_LINKS when the dest of an insn has changed.
1823         (try_combine): Use it when deleting the first insn of a two-insn
1824         parallel or splitting a two-load parallel.
1825
1826 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
1827
1828         * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
1829         if TARGET_EXPLICIT_RELOCS.
1830
1831 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
1832
1833         PR bootstrap/12512
1834         * Makefile.in (info): Use double-colon rules.
1835         (dvi): Likewise.
1836         (generated-manpages): Likewise.
1837         * configure.in: Do not create lang.info, lang.dvi, or
1838         lang.generated-manpages hooks.
1839         * configure: Regenerated.
1840         * objc/Make-lang.in (objc.info): Remove.
1841         (objc.dvi): Remove.
1842         (objc.generated-manpages): Remove.
1843         * doc/sourcebuild.texi: Update description of info, dvi, and
1844         generated-manpages hooks.
1845
1846 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
1847
1848         * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
1849
1850 2003-10-05  Andrew Pinski  <apinski@apple.com>
1851
1852         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
1853         errors in memcpy destinations.
1854         (machopic_stub_name): Likewise.
1855
1856 2003-10-05  Andrew Pinski <apinski@apple.com>
1857
1858         * config/darwin.c (machopic_non_lazy_ptr_name):
1859         Change strcat to memcpy and add length together.
1860         (machopic_stub_name): Likewise.
1861
1862 2003-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
1863
1864         * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
1865         signal trampoline codes.
1866
1867 2003-10-05  Chris Demetriou  <cgd@broadcom.com>
1868
1869         * config/mips/mips.md (*divsf3): Move description of
1870         SB-1 F2 erratum from here to...
1871         (divsf3): Here.  Disable if TARGET_FIX_SB1 is set and
1872         flag_unsafe_math_optimizations is not.
1873
1874 2003-10-05  Aldy Hernandez  <aldyh@redhat.com>
1875
1876         * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
1877         TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
1878
1879 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1880
1881         * c-pretty-print.c: Fix comment typos.
1882         * c-pretty-print.h: Likewise.
1883         * calls.c: Likewise.
1884         * cfgloopmanip.c: Likewise.
1885         * cgraphunit.c: Likewise.
1886         * cppfiles.c: Likewise.
1887         * final.c: Likewise.
1888         * function.c: Likewise.
1889         * gcov-io.h: Likewise.
1890         * gcse.c: Likewise.
1891         * genoutput.c: Likewise.
1892         * loop.c: Likewise.
1893         * postreload.c: Likewise.
1894         * reg-stack.c: Likewise.
1895         * regmove.c: Likewise.
1896         * sched-int.h: Likewise.
1897         * sched-rgn.c: Likewise.
1898         * simplify-rtx.c: Likewise.
1899         * tree-inline.c: Likewise.
1900         * config/m68hc11/m68hc11.h: Likewise.
1901         * config/mmix/mmix.c: Likewise.
1902         * config/mn10300/mn10300.md: Likewise.
1903         * config/sh/sh.h: Likewise.
1904
1905 2003-10-05  Richard Henderson  <rth@redhat.com>
1906
1907         * tree-inline.c (remap_type): New.
1908         (remap_decl): Use it.  Remap DECL_SIZE*.
1909         (copy_body_r): Use it.
1910         (walk_tree): Walk TREE_TYPE too.
1911         (copy_tree_r): Don't walk subtrees of types.
1912         * tree.c (variably_modified_type_p): Restructure.  Consider integer
1913         types with non-const bounds variably modified.
1914
1915 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1916
1917         * doc/invoke.texi: Fix typos.
1918
1919 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1920
1921         * fold-const.c: Follow spelling conventions.
1922         * function.c: Likewise.
1923         * config/c4x/c4x.h: Likewise.
1924         * config/c4x/c4x.md: Likewise.
1925         * config/frv/frv.md: Likewise.
1926         * config/rs6000/aix.h: Likewise.
1927         * config/rs6000/linux64.h: Likewise.
1928         * config/xtensa/xtensa.c: Likewise.
1929
1930 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1931
1932         * c-pretty-print.c: Fix comment formatting.
1933         * cfglayout.c: Likewise.
1934         * cfgloopanal.c: Likewise.
1935         * cppcharset.c: Likewise.
1936         * dbxout.c: Likewise.
1937         * ggc-page.c: Likewise.
1938         * ggc.h: Likewise.
1939         * target.h: Likewise.
1940
1941 2003-10-04  Kelley Cook  <kelleycook@wideopenwest.com>
1942
1943         * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
1944
1945 2003-10-04  Nathanael Nerode  <neroden@gcc.gnu.org>
1946
1947         * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
1948         Convert to ISO C90 function declarations and definitions.
1949
1950 2003-10-04  Zack Weinberg  <zack@codesourcery.com>
1951
1952         * libfuncs.h
1953         (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
1954         (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
1955         (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
1956         (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
1957         (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
1958         (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
1959         (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
1960         (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
1961         (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
1962         (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
1963         (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
1964         (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
1965         (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
1966         (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
1967         (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
1968         (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
1969         Delete.
1970         * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
1971         (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
1972         (le_optab, unord_optab): New.
1973
1974         * optabs.c (prepare_float_lib_cmp): Rewrite.  Get the libfuncs
1975         from the code_to_optab table, not a giant switch; use
1976         swap_condition; do widening only if a comparison function that
1977         we can call exists in a wider mode, not if a cmp_optab insn or
1978         libfunc exists in a wider mode; call protect_from_queue
1979         exactly once on each operand.
1980         (init_optabs): Initialize the new optabs, not the deleted libfuncs.
1981
1982         * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
1983         * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
1984         Set floating point comparison libfuncs using set_optab_libfunc
1985         on the appropriate optab.
1986
1987         * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
1988         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
1989         selector conditionals.
1990
1991 2003-10-04  Stephane Carrez  <stcarrez@nerim.fr>
1992
1993         * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
1994         identical to m68hc12 as far as libraries are concerned.
1995
1996 2003-10-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1997
1998         PR c/12446
1999         * c-typeck.c (convert_for_assignment): Issue an error for
2000         array to pointer assignment after default conversion.
2001         (digest_init): Likewise.
2002
2003 2003-10-04  Fariborz Jahanian  <fjahanian@apple.com>
2004
2005         * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
2006
2007 2003-10-03  Gerald Pfeifer  <gerald@pfeifer.com>
2008
2009         * doc/extend.texi (Function Attributes): Fix title of GNU C
2010         Preprocessor manual.
2011         (C++ Extensions): Fix reference to "Predefined Macros" in the
2012         GNU C Preprocessor manual.
2013
2014 2003-10-04  Richard Earnshaw  <reanrsha@arm.com>
2015
2016         * doc/extend.texi: Document how GCC estimates and relies on the size
2017         of an asm.
2018
2019 2003-10-04  Richard Sandiford  <rsandifo@redhat.com>
2020
2021         * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
2022         arguments downward for big-endian o64.
2023
2024 2003-10-03  Robert Bowdidge <bowdidge@apple.com>
2025
2026         * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
2027         PCH generation, avoiding too-frequent flushes when writing to NFS
2028         file system.
2029
2030 2003-10-03  Ziemowit Laski  <zlaski@apple.com>
2031
2032         * objc/objc-act.c (lookup_category): Mark as 'inline'.
2033
2034 2003-10-03  Alexander Malmberg  <alexander@malmberg.org>
2035             Ziemowit Laski  <zlaski@apple.com>
2036
2037         * objc/objc-act.c (add_method_to_hash_list, lookup_category):
2038         New functions.
2039         (lookup_method_in_hash_lists): New parameter indicating whether
2040         we are messaging 'Class' or 'id'.
2041         (check_duplicates): Likewise; do not assume all methods will
2042         be either class or instance methods.
2043         (generate_category, finish_class): Use lookup_category().
2044         (add_method): Use add_method_to_hash_list(); insert instance
2045         methods of root classes into the global class method hash table.
2046         (add_category): Use lookup_category(); avoid constructing
2047         duplicate categories.
2048         (really_start_method): Add method to corresponding @interface,
2049         if not already there (and if the @interface exists).
2050         (finish_message_expr, finish_objc): Adjust calls to
2051         check_duplicates().
2052
2053 2003-10-03  Roger Sayle  <roger@eyesopen.com>
2054
2055         PR optimization/9325, PR java/6391
2056         * fold-const.c (fold_convert): For floating point to integer
2057         conversions, return the maximum/minimum representable integer
2058         value if the real constant overflows the destination type.
2059         * tree.c (real_value_from_int_cst): Allow the type to be NULL,
2060         meaning don't truncate the result to a floating point mode.
2061         Simplify the logic by calling real_from_integer directly.
2062         * simplify-rtx.c (simplify_unary_operation):  Implement the
2063         same semantics for folding floating point to integer conversions
2064         in RTL.
2065
2066 2003-10-03  Chris Demetriou  <cgd@broadcom.com>
2067
2068         * config/mips/mips.c (mips_emit_prefetch): Restructure
2069         to avoid use of arrays, handle indexed prefetch.
2070         * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
2071         (ISA_HAS_PREFETCHX): New deffine.
2072         * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
2073         update comments.
2074         (prefetch_indexed_di, prefetch_indexed_si): New insns.
2075
2076 2003-10-03  Jeff Sturm  <jsturm@one-point.com>
2077             Roger Sayle  <roger@eyesopen.com>
2078
2079         PR optimization/12289
2080         * calls.c (emit_call_1): Pretend to have popped the arguments
2081         to noreturn and longjmp functions instead of ignoring them.
2082         (expand_call): Don't adjust stack_pointer_dela while
2083         inhibit_defer_pop is set.
2084
2085 2003-10-03  Andreas Schwab  <schwab@suse.de>
2086
2087         PR bootstrap/12276
2088         * configure.in: Check for libunwind on the host only if building
2089         a native compiler.
2090         * configure: Regenerated.
2091
2092 2003-10-03  Paolo Carlini  <pcarlini@unitus.it>
2093
2094         * unwind-pe.h (read_encoded_value_with_base): Constify u and
2095         its inizialization cast.
2096
2097 2003-10-03  Richard Sandiford  <rsandifo@redhat.com>
2098
2099         PR target/12485
2100         * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
2101
2102 2003-10-02  Mark Mitchell  <mark@codesourcery.com>
2103
2104         PR optimization/12180
2105         * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
2106         functions containing calls to __builtin_next_arg.
2107
2108 2003-10-02  Chris Demetriou  <cgd@broadcom.com>
2109
2110         * config/mips/mips.c (mips_emit_prefetch): Use operand 3
2111         in instructions being output.
2112         * config/mips/mips.md (prefetch_si_address): Change third
2113         operand's constraint letter to 'I'.
2114         (prefetch_di_address): Likewise.
2115         (prefetch_si, prefetch_di): Set third operand to const0_rtx.
2116
2117 2003-10-02  Zack Weinberg  <zack@codesourcery.com>
2118
2119         * system.h: Poison macros obsoleted by earlier patch.
2120         * config/cris/cris.c: C90-ify a function definition.
2121
2122 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
2123
2124         PR/12292
2125         * combine.c (make_field_assignment): Check whether rtx's code
2126         is CONST_INT before using INTVAL.
2127
2128 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
2129
2130         * cgraph.c (cgraph_node): Use INSERT instead of 1 in
2131         htab_find_slot_with_hash.
2132         (cgraph_node_for_identifier): Use NO_INSERT.
2133         (cgraph_remove_node): Use NO_INSERT.
2134         (cgraph_varpool_node): Use INSERT.
2135         (cgraph_varpool_node_for_identifier): Use NO_INSERT.
2136
2137 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
2138
2139         Waldek Hebisch <hebisch@math.uni.wroc.pl>
2140         PR/12072
2141         * varasm.c (compare_constant): Fix thinko.
2142
2143 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
2144
2145         * config/frv/frv.c (frv_issue_rate): New function.
2146         (frv_pack_insns): Use it.
2147         (TARGET_SCHED_ISSUE_RATE): Define.
2148
2149 2003-10-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
2150
2151         * config/mcore/mcore.c: Convert to ISO C90 function declarations
2152         and definitions.
2153         * config/mcore/mcore.h: Likewise.
2154         * config/mcore/mcore-protos.h: Likewise.
2155
2156 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
2157
2158         * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
2159         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
2160
2161 2003-10-01  Per Bothner  <pbothner@apple.com>
2162
2163         * c-lex.c (src_line):   Remove unneeded static variable.
2164         (cb_line_change):  Set input_line directly, instead of src_line.
2165         (get_non_padding_token):  We no longer need to compensate for the
2166         "horrible things" the C++ front-end does with the current line number,
2167
2168         * cpplib.c (_cpp_pop_buffer):  Do generate a _cpp_do_file_change
2169         callback even when popping the main file.
2170         * c-lex.c (fe_file_change):  Handle a NULL new_map.
2171         * fix-header.c (cb_file_change):  Likewise.
2172         * c-ppoutput.c (pp_file_change):  Likewise.
2173
2174         * cppinit.c (cpp_read_main_file):  Split into two functions:
2175         Distribute _cpp_stack_file call over the two functions.
2176         (cpp_find_main_file):  New function.
2177         Don't call _cpp_do_file_change even if working_directory flag set.
2178         (cpp_push_main_file):  New function.
2179         * cppfiles.c (_cpp_find_failed):  New helper function.
2180         (find_file):  Made non-static and renamed to _cpp_find_file.
2181         (_cpp_stack_file):  No longer needed.  But note the following.
2182         (stack_file):  Made non-static and renamed to _cpp_stack_file.
2183         * fix-header.c (cpp_read_main_file):  Replace cpp_read_main_file
2184         call with calls to cpp_find_main_file and cpp_push_main_file.
2185         (search_path_head):  If there is no current buffer, use main_file.
2186         * cpphash.h:  Update function declarations.
2187         * cpplib.h:  Update function declarations.
2188
2189         * c-opts.c (c_common_post_options):  Don't call cpp_find_main_file yet.
2190         (c_common_parse_file):  No longer need to call cpp_read_main_file
2191         when file_index > 0 (as in multi-file or server compiation).
2192         (finish_options):  Change to <built-in> is an LC_ENTER, not LC_RENAME
2193         as this now happens before cpp_push_main_file.
2194         (push_command_line_include):  When done with options, pass LC_LEAVE
2195         instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
2196         (fe_file_change):  Handle NULL new_map, and simplify.
2197         * cpplex.c (_cpp_get_fresh_line):  Revert my no-longer-needed
2198         08-28 change, since we're never called with a NULL buffer.
2199         (_cpp_lex_direct):  Likewise.
2200         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
2201         Return false if buffer is NULL at end.
2202
2203         * cpplex.c (_cpp_get_fresh_line):  Return value now just depends on
2204         whether pfile->buffer is NULL after pop, ignoring return_at_eof.
2205         * cpphash.h (struct cpp_buffer):  Remove unused return_at_eof field.
2206         * cpplib.c (cpp_push_buffer):  Since we no longer set return_at_eof,
2207         remove the unused return_at_eof parameter.
2208         * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
2209         Update callers of cpp_push_buffer.
2210
2211 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
2212
2213         * target.h (init_libfuncs): New hook.
2214         * target-def.h: Default TARGET_INIT_BUILTINS and
2215         TARGET_INIT_LIBFUNCS to hook_void_void.  Add
2216         TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
2217         * builtins.c (default_init_builtins): Delete.
2218         * expr.h (default_init_builtins): Delete prototype.
2219         * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
2220         Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
2221         Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
2222         DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
2223         MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
2224         and UMODDI3_LIBCALL,
2225
2226         * Makefile.in (optabs.o): Depends on target.h.
2227         * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
2228         * optabs.c: Include target.h.
2229         (prepare_float_lib_cmp): No need for #ifdef around use of
2230         FLOAT_LIB_COMPARE_RETURNS_BOOL.
2231         (set_optab_libfunc): New function.
2232         (init_optabs): Delete use of all *_LIBCALL defines.
2233         Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
2234         * optabs.h: Prototype set_optab_libfunc.
2235
2236         * config.gcc: Remove all references to pa/long_double.h,
2237         ia64/hpux_longdouble.h, and gofast.h.
2238         (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
2239         to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
2240
2241         * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
2242         * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
2243         * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
2244         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
2245         * config/sparc/sparc.c, config/vax/vax.c:
2246         Provide a definition for TARGET_INIT_LIBFUNCS.  Where
2247         necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
2248
2249         * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
2250         * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
2251         * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
2252         * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
2253         * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
2254         * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
2255         * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
2256         * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
2257         INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
2258
2259         * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
2260         Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
2261         * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
2262         HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
2263         * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
2264
2265         * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
2266         * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
2267         SUN_INTEGER_MULTIPLY_64 to 0.
2268         * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
2269         SUN_INTEGER_MULTIPLY_64 to 1.
2270         * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
2271         SUN_INTEGER_MULTIPLY_64 to 0.
2272         * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
2273         Define US_SOFTWARE_GOFAST.
2274         * config/vax/vax.h: Default TARGET_ELF to 0.
2275         * config/vax/elf.h: Redefine TARGET_ELF to 1.
2276
2277         * config/gofast.h: Don't define any macros here.  Provide one
2278         static function, gofast_maybe_init_libfuncs, which does what
2279         INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
2280         is already defined.  Do not clear negation libfuncs.  Do
2281         not mess with HFmode, XFmode, or TFmode libfuncs.
2282
2283         * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
2284
2285 2003-10-01  Kelley Cook  <kelleycook@wideopenwest.com>
2286
2287         PR C/12466
2288         * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
2289
2290 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2291
2292         * config/mips/xm-iris5.h: Remove, unnecessary.
2293         * config.build (mips-sgi-irix5*): Remove.
2294         (mips-sgi-irix6*o32): Likewise.
2295         * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
2296         (mips-sgi-irix5cross64): Likewise.
2297         (mips-sgi-irix5*): Likewise.
2298         * config.host (mips-sgi-irix5*): Remove.
2299         (mips-sgi-irix6*o32): Likewise.
2300
2301 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
2302
2303         * dbxout.c (dbxout_fptype_value): Delete.
2304         (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
2305
2306 2003-10-01  Alexandre Oliva  <aoliva@redhat.com>
2307
2308         * output.h (compute_reloc_for_constant): Declare.
2309         * varasm.c (compute_reloc_for_constant): Extract from...
2310         (output_addressed_constants): ... here.  Adjust all callers.
2311
2312 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2313
2314         * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
2315         * configure: Rebuilt.
2316
2317 2003-10-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2318
2319         * fold-const.c (make_range): When handling unsigned, don't reverse
2320         range if high bound is zero.
2321
2322 2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
2323
2324         * config/frv/frv.h (PREDICATE_CODES): Added
2325         condexec_si_media_operator, condexec_sf_add_operator and
2326         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
2327         and condexec_sf_unary_operator.
2328
2329 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2330
2331         * aclocal.m4: Add ultrix* to /dev/zero blacklist.
2332         * configure: Rebuilt.
2333
2334 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2335
2336         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
2337         Allow override.
2338         * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
2339
2340 2003-09-23  David S. Miller  <davem@redhat.com>
2341
2342         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
2343         before redefining.
2344         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
2345
2346 2003-10-01  Steven Bosscher  <steven@gcc.gnu.org>
2347
2348         * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
2349         C90 function declarations and definitions.
2350
2351 2003-10-01  Nathanael Nerode  <neroden@gcc.gnu.org>
2352
2353         * config.gcc (cris-*-linux*): Revert mistaken commit.
2354
2355 2003-10-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
2356
2357         PR optimization/11753
2358         * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
2359         the length in the non-V9 case.
2360
2361 2003-09-30  Richard Henderson  <rth@redhat.com>
2362
2363         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
2364         DWARF_ALT_FRAME_RETURN_COLUMN.
2365         * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
2366         (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
2367         (uw_frame_state_for): Return end-of-stack for null return address.
2368         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
2369
2370         * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
2371         (alpha_expand_prologue): Store a zero for it.
2372         (alpha_expand_epilogue): Don't reload it.
2373         * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
2374         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
2375         for the sigframe return address.
2376
2377 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
2378
2379         * sdbout.c: Convert to ISO C90 prototypes.
2380         * objc/objc-act.c: Likewise.
2381
2382 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
2383
2384         * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
2385         * config/i386/winnt.c: Likewise.
2386         * config/i386/cygming.h: Likewise.
2387
2388 2003-09-30  Kazu Hirata  <kazu@cs.umass.edu>
2389
2390         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
2391         (A ^ B) - B for any B.
2392
2393 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
2394
2395         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
2396         powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
2397
2398 2003-09-30  Richard Earnshaw  <rearnsha@arm.com>
2399
2400         * arm/ieee754-sf.S: Tidy formatting.
2401
2402 2003-09-30  Nicolas Pitre  <nico@cam.org>
2403
2404         * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
2405         and ARM_MOD_BODY.
2406         (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
2407         (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
2408         added better divisor alignment in the other case.
2409         (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
2410         (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
2411         macros above, add fast exits for divisor >= dividend, etc.
2412
2413 2003-09-30  Nicolas Pitre  <nico@cam.org>
2414
2415         * arm/ieee754-df.S: Split compilation of fixunsdfsi from
2416         L_fixdfsi target.
2417         * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
2418
2419 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
2420
2421         * config.gcc: Default use_fixproto to 'no'.
2422
2423 2003-09-30  Richard Sandiford  <rsandifo@redhat.com>
2424
2425         PR optimization/12345
2426         * config/mips/mips-protos.h (mips_restore_gp): Remove.
2427         (mips_gp_save_slot): Declare.
2428         * config/mips/mips.c (mips_restore_gp): Remove in favor of...
2429         (mips_gp_save_slot): ...this new function.
2430         * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
2431         and mips_output_move to generate the output template.
2432         (call_internal): Force splitting if TARGET_SPLIT_CALLS.  Don't emit
2433         a gp load after a noreturn call.  Load the gp using a move rather
2434         than an exception_receiver pattern.
2435         (call_value_internal, call_value_multiple_internal): Likewise.
2436         (call_split, call_value_split, call_value_multiple_split): Clobber $28.
2437
2438 2003-09-30  Carlo Wood  <carlo@alinoe.com>
2439
2440         PR debug/12319
2441         * cfglayout.c (insn_scope):  Use prologue_locator and
2442         epilogue_locator; return the outer function scope for
2443         pro- and epilogue insns.
2444
2445 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
2446
2447         * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
2448         REAL_TYPEs based on the bitsize of the type's mode, not the
2449         mode directly.
2450
2451 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2452
2453         * dwarf2out.c (default_eh_frame_section): Split into ...
2454         (named_section_eh_frame_section, collect2_eh_frame_section): ... new
2455         functions.
2456         * output.h (named_section_eh_frame_section): Declare.
2457         (collect2_eh_frame_section): Likewise.
2458
2459 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
2460
2461         * real.c (real_sqrt): Use get_canonical_qnan directly.
2462
2463         * dwarf2out.c (add_const_value_attribute): Use real_to_target.
2464
2465         * varasm.c (assemble_real): Use real_to_target directly,
2466         calculate the number of significant elements of the result
2467         array and write them out in a loop, instead of using a giant
2468         switch statement to pick the correct REAL_VALUE_TO_TARGET_*
2469         macro.
2470
2471 2003-09-29  Jan Hubicka  <jh@suse.cz>
2472
2473         PR c++/12175
2474         * varasm.c (notice_global_symbol): Discard external symbols.
2475
2476         PR optimization/12286
2477         * gcov-io.c (gcov_read_words): Fix memmove call.
2478         * profile.c (compute_branch_probabilities): Add extra sanity checks.
2479
2480 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2481
2482         * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
2483         Solaris 7-9.
2484
2485         * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
2486         wildcards which explicitly match micro versions.
2487         * fixinc/fixincl.x: Regenerate.
2488
2489 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
2490
2491         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
2492         (A ^ B) - B, where B is any power of 2 minus 1.
2493
2494 2003-09-29  Jan Hubicka  <jh@suse.cz>
2495
2496         * libgcov.c (gcov_exit): Fix two pastos.
2497
2498 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
2499
2500         * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
2501         define_split immediately below to form define_insn_and_split.
2502
2503 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
2504
2505         * config/h8300/h8300.md (*tstsi_variable_bit): New.
2506         (*tstsi_variable_bit_qi): Likewise.
2507
2508 2003-09-28  Phil Edwards  <phil@codesourcery.com>
2509
2510         * doc/cppopts.texi:  Use 'dashMP' instead of '-MP' as a cross-
2511         reference name.
2512
2513 2003-09-28  Richard Henderson  <rth@redhat.com>
2514
2515         * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
2516         file and line separately.
2517
2518 2003-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
2519
2520         * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
2521         "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
2522         "*subdi3_borrow_cconly"): New insns.
2523         ("*addsi3_sub", "*subsi3_sub"): Remove.
2524         ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
2525         ("*subsi3_cc"): Fix op_type attribute.
2526
2527 2003-09-28  Richard Henderson  <rth@redhat.com>
2528
2529         * stmt.c (expand_asm_operands): Take a location_t, instead of
2530         individual file and line.
2531         * c-typeck.c (c_expand_asm_operands): Likewise.
2532         * tree.h (expand_asm_operands): Update decl.
2533         * c-common.h (c_expand_asm_operands): Likewise.
2534         * c-semantics (genrtl_asm_stmt): Update call.
2535
2536 2003-09-28  Philip Blundell  <philb@gnu.org>
2537
2538         * config/arm/arm.c (legitimize_pic_address): Check
2539         SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
2540         (arm_assemble_integer): Likewise.
2541
2542 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
2543
2544         * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
2545         config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
2546         config/c4x/c4x.h:
2547         Convert to ISO C90 function declarations and definitions.
2548
2549 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
2550
2551         *  config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
2552         Convert to ISO C90 function declarations and definitions.
2553
2554 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
2555
2556         * config/mips/mips.c (mips_constant_info): Add reloc field.
2557         (mips_classify_constant): Initialize it.  Always set SYMBOL to the
2558         underlying symbol, not to an unspec.
2559         (mips_delegitimize_address, print_operand): Clean up accordingly.
2560
2561 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
2562
2563         * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
2564         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
2565         * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
2566         (mips_classify_constant): Use it.
2567         (mips_splittable_symbol_p): Add an offset argument.
2568         (mips_classify_address): Adjust call accordingly.
2569         (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
2570         than a relocation unspec.  Update call to mips_splittable_symbol_p.
2571         Generalize the code that copes with symbols + invalid offsets.
2572         (print_operand): Allow '%R' to be applied to small data addresses.
2573         (mips_reloc_string): Remove RELOC_GPREL16.
2574         (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg.  Return $gp
2575         for TARGET_EXPLICIT_RELOCS.  Return null if we can't use gp-relative
2576         relocation operators.
2577         * config/mips/mips.md (RELOC_GPREL16): Remove.  Shuffle other reloc
2578         constants accordingly.
2579
2580 2003-09-27  Roger Sayle  <roger@eyesopen.com>
2581
2582         * toplev.c (flag_evaluation_order): New global variable.
2583         * flags.h (flag_evaluation_order): Prototype here.
2584         * expr.c (expand_operands): If we need to preserve observable
2585         evaluation order, protect exp1 from clobbering exp0's result.
2586
2587 2003-09-28  Andreas Jaeger  <aj@suse.de>
2588
2589         * c-decl.c (finish_function): Convert definition to ISO C90.
2590         * ifcvt.c (mark_loop_exit_edges): Likewise.
2591         * ra-rewrite.c (emit_colors): Likewise.
2592
2593 2003-09-27  Nathanael Nerode  <neroden@gcc.gnu.org>
2594
2595         * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
2596         * config.gcc (arm*-*-uclinux*): Disable fixproto.
2597         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
2598         powerpc-*-eabialtivec*): Disable fixproto.
2599
2600 2003-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
2601
2602         PR optimization/12340
2603         * loop.h (struct induction): Document the new semantics
2604         of the 'same' field for bivs.
2605         * unroll.c (biv_total_increment): Don't count the same
2606         biv increment several times.
2607         (loop_iterations) [GENERAL_INDUCT]: Likewise.
2608
2609 2003-09-27  Graham Stott  <graham.stott@btinternet.com>
2610
2611         * unroll.c (loop_interations)[GT]: Add missing break.
2612
2613 2003-09-27  Kelley Cook  <kcook@gcc.gnu.org>
2614
2615         * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
2616         config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
2617         config/dbxelf.h, config/elfos.h, config/fp-bit.h,
2618         config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
2619         config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
2620         config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
2621         config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
2622         config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
2623         config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
2624         config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
2625         config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
2626         config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
2627         config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
2628         config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
2629         config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
2630         config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
2631         config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
2632         config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
2633         config/alpha/xm-vms.h, config/arc/arc-modes.def,
2634         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
2635         config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
2636         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
2637         config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
2638         config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
2639         config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
2640         config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
2641         config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
2642         config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
2643         config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
2644         config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
2645         config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
2646         config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
2647         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
2648         config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
2649         config/i960/i960-c.c, config/i960/i960-coff.h,
2650         config/i960/i960-modes.def, config/i960/i960-protos.h,
2651         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
2652         config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
2653         config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2654         config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
2655         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
2656         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
2657         config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
2658         config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
2659         config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
2660         config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
2661         config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
2662         config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
2663         config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
2664         config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
2665         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
2666         config/mcore/mcore-protos.h, config/mcore/mcore.c,
2667         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
2668         config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
2669         config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
2670         config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
2671         config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
2672         config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
2673         config/mips/vr.h, config/mn10300/linux.h,
2674         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
2675         config/mn10300/mn10300.h, config/mn10300/mn10300.md,
2676         config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
2677         config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
2678         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
2679         config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
2680         config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
2681         config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
2682         config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
2683         config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
2684         config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
2685         config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
2686         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
2687         config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
2688         config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
2689         config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
2690         fixinc/fixinc.svr4: GNU CC -> GCC.
2691
2692 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
2693
2694         * objc/objc-act.c (tm_p.h): Tweak order.
2695         * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
2696
2697 2003-09-26  Nathanael Nerode  <neroden@gcc.gnu.org>
2698
2699         * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
2700         Include t-slibgcc-elf-ver and t-linux in tmake_file.
2701         * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
2702         Disable fixproto.
2703         * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
2704         Disable fixproto.
2705         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
2706         sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
2707
2708         * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
2709
2710 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
2711
2712         * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
2713         * objc/objc-act.c (tm_p.h): Include.
2714
2715 2003-09-26  Per Bothner  <pbothner@apple.com>
2716
2717         * dbxout.c (dbxout_typedefs):  Output typedefs in forward order.
2718         No longer any need to reverse by recursion.
2719
2720 2003-09-26  Roger Sayle  <roger@eyesopen.com>
2721             Richard Henderson  <rth@redhat.com>
2722
2723         PR optimization/11741
2724         * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
2725         appropriate set to match that in hash_scan_insn.  Fall back to
2726         the original copy method, if we can't validate changing insn.
2727         (pre_delete): Only delete instructions that have a single_set,
2728         instead of aborting when we encounter an PARALLEL insn with more
2729         then one SET.
2730
2731 2003-09-26  Andreas Krebbel  <krebbel1@de.ibm.com>
2732
2733         * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
2734         ("builtin_longjmp"): Insn deleted.
2735         ("save_stack_nonlocal"): Save literal pool base pointer behind
2736         backchain and stack pointer.
2737         ("restore_stack_nonlocal"): Restore literal pool base pointer.
2738         * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
2739         the stack save area for the nonlocal goto case.
2740
2741 2003-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2742
2743         PR bootstrap/12358
2744         * pa.c (output_bvb): Fix typo.
2745
2746 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
2747
2748         * expmed.c (store_bit_field): Don't search for an integer mode
2749         unless we need the result.
2750
2751 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
2752
2753         * expr.c (emit_move_insn_1): If there is no move pattern for the
2754         original mode, try using a pattern for the corresponding integer mode.
2755
2756 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
2757
2758         PR middle-end/9200
2759         * combine.c (if_then_else_cond): Tighten mode check.
2760
2761 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
2762
2763         * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
2764         'struct _cpp_strbuf'.
2765
2766         * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2767         config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
2768         config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
2769         config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
2770         config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
2771         config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
2772         config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
2773         config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
2774         config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
2775         "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
2776         * config/i386/i386-aout.h, config/i386/i386-coff.h,
2777         config/i386/i386-interix.h, config/i386/i386-interix3.h,
2778         config/i386/i386-modes.def, config/i386/i386-protos.h,
2779         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
2780         config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
2781         config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
2782         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
2783         config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
2784         "GNU compiler" -> GCC.
2785         * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
2786         config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
2787         config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
2788         config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
2789         config/i386/freebsd-aout.h, config/i386/freebsd.h,
2790         config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
2791
2792 2003-09-25  Kelley Cook  <kelleycook@wideopenwest.com>
2793
2794         * cgraph.c (dump_cgraph):  Don't output newline before dump.  Add in
2795         "local" to the callgraph dump.  Output "after inlining" earlier.
2796         * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
2797         callgraph dumps.  Correct misspellings.
2798         (cgraph_decide_inlining):  Output number of insns before inlining.
2799         Output the calling function into which a function is inlined.
2800         (cgraph_decide_small_functions): Format dump file like always_inline.
2801
2802 2003-09-25  Loren James Rittle  <ljrittle@acm.org>
2803
2804         * config/i386/i386.h (ix86_return_in_memory): Add prototype.
2805
2806 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
2807
2808         * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
2809         FPR slots in the save area.
2810         (s390_emit_epilogue): Likewise.
2811
2812 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
2813
2814         * cgraph.h (cgraph_remove_edge): Declare.
2815         * cgraph.c (cgraph_remove_edge): Make extern.
2816         * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
2817         instead of cgraph_remove_call.
2818
2819 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
2820
2821         * objc/objc-act.c (gen_declaration_1): Fix printf format.
2822
2823 2003-09-25  Richard Earnshaw  <rearnsha@arm.com>
2824
2825         * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
2826         arm7tdmi core.
2827
2828 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
2829
2830         * config/darwin-protos.h (objc_image_info_section):
2831         New prototype.
2832
2833 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
2834
2835         * Makefile.in (stub-objc.o): Depend on $(GGC_H).
2836
2837 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
2838
2839         * config.gcc: Get rid of more gratuitious 'x'es.  Actually allow
2840         tsc701 as a --with-cpu, --with-tune setting for sparc.
2841
2842 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
2843
2844         * c-parse.in (objc_try_stmt): Do not specify a %type.
2845
2846 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
2847
2848         * config.gcc: New 'widely ported system' clause for rtems.
2849         Set thread file there, not in individual clauses.
2850
2851 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
2852
2853         PR target/6222
2854         * config/mips/mips.c (mips_va_arg): Handle arguments that must be
2855         passed on the stack.
2856
2857 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
2858
2859         * config.gcc (widely ported systems section): Mostly alphabetize
2860         by system.  Comment the case where we can't.
2861         * config.gcc (widely ported systems section): Reindent and clean up.
2862
2863         * config.gcc: Remove some unnecessary uses of 'x' in case statements.
2864         Actually allow ep9312 as an arm --with-arch setting.
2865
2866         * config.gcc (*-hpux11): Disable fixproto.
2867
2868 2003-09-24  Phil Edwards  <phil@codesourcery.com>
2869
2870         PR pch/12112
2871         * gcc/cppfiles.c (pch_open_file): Return based on combined
2872         result of all files.
2873         (validate_pch): Return validate flag for current file.
2874
2875 2003-09-24  Roger Sayle  <roger@eyesopen.com>
2876
2877         PR bootstrap/12358
2878         * fold-const.c (tree_swap_operands_p): Only reorder operands when
2879         one of the operands is constant.
2880
2881 2003-09-24  Ziemowit Laski  <zlaski@apple.com>
2882
2883         MERGE OF objc-improvements-branch into MAINLINE:
2884         * Makefile.in (C_OBJS): Add in stub-objc.o.
2885         (c-parse.y): Change sed demarcations to begin with '@@'.
2886         (stub-objc.o): New rule.
2887         * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
2888         flag_replace_objc_classes): New flags.
2889         * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
2890         RID_AT_SYNCHRONIZED): New keywords.
2891         (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
2892         flag_replace_objc_classes): New flags.
2893         (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
2894         objc_comptypes, objc_message_selector, lookup_objc_ivar,
2895         get_current_scope, objc_mark_locals_volatile): New prototypes,
2896         some moved from c-tree.h.
2897         * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
2898         (finish_decl): Adjust where objc_check_decl() gets called.
2899         * c-lang.c (lookup_interface, is_class_name, objc_is_id,  objc_check_decl,
2900         objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
2901         * c-opts.c (c_common_handle_option): Add handling for  flag_nil_receivers,
2902         flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
2903         * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
2904         '@@end_ifc', respectively.
2905         (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
2906         (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
2907         objc_finally_block): New rules.
2908         (component_decl_list2): Clean up semantic action for @defs construct.
2909         (component_decl, c99_block_start): Remove call to add_objc_decls().
2910         (poplevel): Add call to objc_clear_super_receiver().
2911         (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
2912         constructs.
2913         (classdef, methodprotolist): Clean up/simplify.
2914         (methodprotolist2): Eliminate.
2915         (methodproto): Call add_method() instead of add_class_method() and
2916         add_instance_method().
2917         (receiver): Add TYPENAME production.
2918         (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
2919         (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
2920         AT_SYNCHRONIZED.
2921         * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
2922         objc_comptypes, objc_message_selector)
2923         * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
2924         struct and pointer types.
2925         (build_c_cast): Do not discard ObjC protocol qualifiers.
2926         (convert_for_assignment): Cache result of comp_target_types() instead
2927         of calling it more than once.
2928         * c.opt (fnext-runtime): Update description string.
2929         (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
2930         New ObjC/ObjC++-specific flags.
2931         * function.h (GCC_FUNCTION_H): Header guard.
2932         * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
2933         * stub-objc.c: New file, to be used to satisfy references to ObjC
2934         functions by the C and C++ front-ends.
2935         * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
2936         * config/darwin.h (FUNCTION): Add in_objc_image_info.
2937         (SECTION_FUNCTION): Add objc_image_info_section.
2938         * doc/invoke.texi: Link to GCC web site for Objective-C information.
2939         (-fconstant-string-class): Update documentation.
2940         (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
2941         -fzero-link): New documentation.
2942         * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
2943         with '@@'.
2944         * objc/lang-specs.h (@objective-c-header): Fix -E spec.
2945         * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
2946         throughout; provide casts for return values from memory allocation
2947         functions (xmalloc, alloca, ggc_alloc, etc.).
2948         (OBJC_VOID_AT_END): New macro.
2949         (rtl.h): Do not #include any more.
2950         (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
2951         (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
2952         TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
2953         TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
2954         TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
2955         (struct val_stack, catch_count_stack, exc_binding_stack,  val_stack_push,
2956         val_stack_pop): New.
2957         (objc_check_decl): Fix precondition for error message, along with
2958         the message itself.
2959         (lookup_and_install_protocols): Remove nonexistent protocols from
2960         protocol list instead of returning error_mark_node.
2961         (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
2962         (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
2963         (synth_module_prologue): General clean-up; construct NeXT-specific
2964         runtime API prototypes if needed.
2965         (build_string_class_template): Remove.
2966         (check_string_class_template, string_layout_checked): New.
2967         (build_objc_string_object): Generalize to work with
2968         -fconstant-string-class.
2969         (build_objc_symtab_template): Fix layout for the NeXT runtime.
2970         (build_metadata_decl): New.
2971         (forward_declare_categories): Call build_metadata_decl() instead of
2972         create_builtin_decl() et al.
2973         (build_module_descriptor): Use OBJC_VOID_AT_END instead of
2974         void_list_node_1.
2975         (build_selector_reference_decl, build_class_reference_decl,
2976         build_objc_string_decl): Do not set TREE_READONLY.
2977         (get_proto_encoding): Do not call hack_method_prototype().
2978         (get_class_reference): Add failure mode for invalid class names;
2979         support -fzero-link; defer if in an ObjC++ template declaration.
2980         (objc_declare_alias, objc_declare_class): Fix up duplicate name
2981         lookup; check for global scope if in ObjC++.
2982         (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
2983         RECORD_TYPE, IDENTIFIER_NODE, etc.)
2984         (objc_is_id): Removed.
2985         (objc_is_object_ptr): New function.
2986         (get_class_ivars_from_name): New function, used for @defs construct.
2987         (get_class_ivars): Add option to return raw ivars; create a
2988         ClASS_OWN_IVARS list for each class as needed.
2989         (objc_enter_block, objc_exit_block, objc_declare_variable,
2990         objc_build_throw_stmt, val_stack_push, val_stack_pop,
2991         objc_build_try_enter_fragment, objc_build_extract_expr,
2992         objc_build_try_exit_fragment, objc_build_extract_fragment,
2993         objc_build_try_prologue, objc_build_try_epilogue,
2994         objc_build_catch_stmt, objc_build_catch_epilogue,
2995         objc_build_finally_prologue, objc_build_finally_epilogue,
2996         objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
2997         objc_build_synchronized_epilogue, build_objc_exception_stuff):
2998         New functions.
2999         (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
3000         the future).
3001         (build_private_template): Fix up calls to get_class_ivars().
3002         (offset_is_register, forwarding_offset): Remove.
3003         (objc_method_parm_type, objc_encoded_type_size): New functions.
3004         (encode_method_prototype): Simplify to no longer depend on
3005         back-end information.
3006         (build_tmp_function_decl_xxx, build_tmp_function_decl,
3007         hack_method_prototype): Removed.
3008         (generate_protocol_references): Remove calls to
3009         build_tmp_function_decl().
3010         (generate_protocols): Adjust calls to encode_method_prototype().
3011         (build_class_template): Generate sel_id' and 'gc_object_type' fields
3012         for the NeXT runtime.
3013         (synth_forward_declarations): Call build_metadata_decl().
3014         (check_ivars): Check that the number of ivars matches also.
3015         (build_super_template): Modify super_type directly; disable debugging
3016         output while generating decl.
3017         (build_ivar_list_initializer): Skip list elements that are not
3018         FIELD_DECLs.
3019         (ivar_list_length): New function.
3020         (generate_ivar_lists): Call ivar_list_length() instead of list_length()
3021         and encode_method_prototype() instead of encode_method_def().
3022         (build_shared_structure_initializer): Generate 'sel_id' field for
3023         the NeXT runtime.
3024         (generate_category): Do not set TREE_USED.
3025         (build_keyword_selector): Ditto; transform into a function argument
3026         chain.
3027         (get_arg_type_list): If there are no user-specified arguments, use
3028         '...'; use OBJC_VOID_AT_END.
3029         (check_duplicates): Add a parameter indicating whether methods or
3030         selectors are being checked.
3031         (receiver_is_class_object): Add parameters indicating whether
3032         receiver is 'self' or 'super'; robustify.
3033         (build_message_expr): Defer call to finish_message_expr() if
3034         inside an ObjC++ template.
3035         (lookup_method_in_hash_lists): New function.
3036         (finish_message_expr): Complete rewrite/fix.
3037         (build_objc_method_call): Ditto; factor out commonalities between
3038         the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
3039         messenger variants on the NeXT.
3040         (lookup_instance_method_static, lookup_class_method_static):
3041         Fold into a single lookup_method_static() function with an
3042         additional parameter.
3043         (add_class_method, add_instance_method): Fold into a single
3044         add_method() function with an additional parameter.
3045         (add_category): Make duplicate categories a hard error in ObjC++.
3046         (add_instance_variable): Properly handle unnamed ivars, arrays of
3047         zero or no size and bitfields.  In ObjC++, check for nontrivial
3048         C++ class instances.
3049         (is_public): Allow C functions to access non-@public ivars, with
3050         a warning.
3051         (start_class): Move common initializations to
3052         synth_module_prologue(); check for global scope if in ObjC++.
3053         (continue_class): Fix calls to finish_struct().
3054         (objc_declare_protocols, start_protocol): Check for global scope
3055         if in ObjC++.
3056         (encode_pointer): Encode 'BOOL *' specially on the NeXT.
3057         (encode_aggregate_within): Rewrite to properly distinguish
3058         struct tags from typedefs in both ObjC and ObjC++.
3059         (encode_bitfield, encode_complete_bitfield): Remove.
3060         (encode_next_bitfield, encode_gnu_bitfield): New functions.
3061         (encode_field_decl): Call encode_next_bitfield() or
3062         encode_gnu_bitfield() as needed.
3063         (synth_self_and_ucmd_args): New function.
3064         (start_method_def): Use it.
3065         (objc_types_are_equivalent): New function.
3066         (comp_proto_with_proto): Use it instead of comptypes(), since
3067         we need symmetry.
3068         (really_start_method): Use lookup_method_static() instead of
3069         lookup_class_method_static() and lookup_instance_method_static();
3070         Emit 'extern "C"' if in ObjC++ mode.
3071         (add_objc_decls): Removed.
3072         (UOBJC_SUPER_scope): New variable.
3073         (get_super_receiver): Move construction of 'super' from
3074         add_objc_decls(); remove dependency on struct objc_class.
3075         (encode_method_def): Removed; encode_method_prototype() is
3076         used instead.
3077         (objc_clear_super_receiver): New function.
3078         (objc_expand_function_end): Do not do anything for ordinary
3079         C functions.
3080         (finish_method_def): Mark ObjC methods as un-inlinable.
3081         (gen_declaration_1): Emit widths of bitfields.
3082         (finish_objc): Call generate_objc_image_info() if needed;
3083         use check_duplicates() when checking for selector duplicates.
3084         (generate_objc_image_info): New function.
3085         * objc/objc-act.h (add_instance_method, add_class_method,
3086         get_class_ivars): Remove prototypes.
3087         (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
3088         objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
3089         objc_build_catch_stmt, objc_build_catch_epilogue,
3090         objc_build_finally_prologue, objc_build_finally_epilogue,
3091         add_method, get_class_ivars_from_name): New prototypes.
3092         (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
3093         (TYPE_PROTOCOL_LIST): Robustify to distinguish from
3094         TRANSLATION_UNIT_DECLs.
3095         (OBJC_TYPE_NAME): New.
3096         (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
3097         got included.
3098         (IS_SUPER): Robustify.
3099         (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
3100         umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
3101         objc_exception_try_enter_decl, objc_exception_try_exit_decl,
3102         objc_exception_match_decl, objc_exception_throw_decl,
3103         objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
3104         objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
3105         objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
3106         objc_catch_type): New ObjC/ObjC++ roots.
3107         * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
3108         ObjC/ObjC++ tree node codes.
3109
3110 2003-09-24  Alexandre Oliva  <aoliva@redhat.com>
3111
3112         * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
3113         code path that calls a handler.
3114
3115 2003-09-24  Nathanael Nerode  <neroden@gcc.gnu.org>
3116
3117         * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
3118         Disable fixproto.
3119
3120         * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
3121         the section giving $with_cpu defaults by target.
3122
3123         * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
3124         arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
3125         rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
3126         rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
3127         rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
3128         i[34567]86-pc-msdosdjgpp*): Disable fixproto.
3129
3130 2003-09-24  David Edelsohn  <edelsohn@gnu.org>
3131
3132         * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
3133         together.  Protect load string instruction with TARGET_STRING.
3134         (movti_string): Collapse case 1 and 2 together.
3135
3136 2003-09-24  Nathan Sidwell  <nathan@codesourcery.com>
3137
3138         * c-common.c (c_common_type_for_mode): Check for VOIDmode.
3139
3140 2003-09-24  Richard Earnshaw  <rearnsha@arm.com>
3141
3142         * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
3143         do...while(0)
3144
3145 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
3146
3147         * config.gcc: Move use_fixproto=no from generic vxworks clause to
3148         specific one.
3149
3150         * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
3151         (accidentally missed in last pass).
3152
3153 2003-09-23  Andrew Pinski  <apinski@apple.com>
3154
3155         PR bootstrap/12383
3156         * configure: Regenerate.
3157
3158 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
3159
3160         * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
3161         missed in last pass).
3162
3163 2003-09-23  Alexandre Oliva  <aoliva@redhat.com>
3164
3165         * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
3166         constant.
3167
3168 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
3169
3170         * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
3171
3172         * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
3173         powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
3174         powerpcle-*-eabi*): Disable fixproto.
3175
3176         * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
3177         specific FreeBSD clauses.
3178         * config.gcc: Move use_fixproto=no from generic NetBSD clause to
3179         specific NetBSD clauses.
3180         * config.gcc: Move use_fixproto=no from generic OpenBSD clause
3181         to specific OpenBSD clauses.
3182
3183 2003-09-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3184
3185         * pa.c (hppa_expand_prologue): Do pic register save in frame marker
3186         without adding a frame note.
3187         * pa.md (allocate_stack): Save pic register in new frame marker when
3188         generating pic code.
3189
3190 2003-09-23  Kelley Cook  <kelleycook@wideopenwest.com>
3191
3192         * cgraphunit.c (cgraph_expand_all_functions): Renamed from
3193         cgraph_expand_functions.
3194
3195 2003-09-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3196
3197         * Makefile.in (gnucompare*): Merge into ...
3198         (slowcompare*): ... here.
3199         (fastcompare*): New targets.
3200         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
3201         other "fast" cmp programs.
3202         * configure: Regenerate.
3203
3204 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3205
3206         * targhooks.c: Include output.h.
3207         * Makefile.in (targhooks.o): Add output.h to dependency list.
3208
3209 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3210
3211         * config.host: Removed superfluous newline.
3212
3213 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
3214
3215         * config.gcc: Use ${target}, not $machine.
3216         * configure.in: Don't set $machine.
3217         * configure: Regenerate.
3218
3219 2003-09-23  Geoffrey Keating  <geoffk@apple.com>
3220
3221         * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
3222
3223         * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
3224         pass zero-size arrays by reference.
3225         (rs6000_va_arg): Likewise.
3226
3227 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
3228
3229         * config.gcc: Set use_fixproto=no in each specific *-gnu*
3230         configuration, rather than the generic one.
3231
3232 2003-09-23  Richard Henderson  <rth@redhat.com>
3233
3234         * tree-inline.c (remap_save_expr): Map new save_expr to identity
3235         rather than to error_mark_node.
3236
3237 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3238
3239         * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
3240         Update description.
3241         * configure: Regenerate.
3242         * config.in: Likewise.
3243         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
3244         HAVE_GAS_SHF_MERGE value.
3245         * varasm.c (mergeable_string_section): Likewise.
3246         (mergeable_constant_section): Likewise.
3247
3248 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3249
3250         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
3251         value.
3252
3253 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3254
3255         * target.h (struct gcc_target): New member external_libcall.
3256         * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
3257         (TARGET_ASM_OUT): Use it.
3258         * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
3259         * targhooks.c: Convert to ISO C 90.
3260         (default_external_libcall): New function.
3261         * targhooks.h (default_external_libcall): Declare.
3262         * varasm.c (assemble_external_libcall): Use
3263         targetm.asm_out.external_libcall instead of
3264         ASM_OUTPUT_EXTERNAL_LIBCALL.
3265         * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
3266         (mips_output_external_libcall): Declare.
3267         * config/mips/mips.c (mips_output_external_libcall): Change
3268         definition guard.
3269         Change to match TARGET_ASM_EXTERNAL_LIBCALL.
3270         Only operate for O32 ABI.
3271         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
3272         instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
3273         * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
3274         superceded by TARGET_ASM_EXTERNAL_LIBCALL.
3275
3276 2003-09-22  Nathnael Nerode  <neroden@gcc.gnu.org>
3277
3278         * config.gcc: Do per-target disabling of fixproto here in clauses,
3279         not in t- fragments.
3280         * configure.in: Adjust to set STMP_FIXPROTO correctly.
3281         * configure: Regenerate.
3282         * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
3283         config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
3284         t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
3285         xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
3286         * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
3287         t-interix, t-linux-aout:  Delete files consisting only of
3288         setting of STMP_FIXPROTO.
3289
3290         * config.host: Allow unknown hosts (not targets).  Allow
3291         ns32k-*-netbsdelf* as a host (not a target).  Remove redundant
3292         empty clauses.  Remove useless obsolete-configuration clause.
3293         Prune unsupported configuration list.  Collapse identical
3294         clauses for closely related systems.  Rewrite comment for
3295         unsupported hosts list.  Reorganize a little.
3296
3297 2003-09-22  Richard Henderson  <rth@redhat.com>
3298
3299         * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
3300         not precision.
3301
3302 2003-09-22  David Edelsohn  <edelsohn@gnu.org>
3303             Hartmut Penner  <hpenner@de.ibm.com>
3304             Segher Boessenkool  <boessen@de.ibm.com>
3305
3306         * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
3307         (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
3308         (rs6000_split_altivec_in_gprs): Rename to ...
3309         (rs6000_split_multireg_move): Add support for update addressing.
3310         * config/rs6000/rs6000-protos.h: Same.
3311         * config/rs6000/altivec.md: Same.
3312         * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
3313         multiple GPRs.
3314         (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
3315         (movti_power): Use new splitter for multiple GPRs.
3316         (movti_string): Same.
3317         (movti_ppc64): Same.
3318
3319 2003-09-22  Bob Wilson  <bob.wilson@acm.org>
3320
3321         * config/xtensa/xtensa-protos.h: Convert to ISO C90.
3322         * config/xtensa/xtensa.c: Convert to ISO C90.  Minor formatting fixes.
3323
3324 2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
3325
3326         * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
3327         (andsi3): Set attr cc to set_zn when using shifts or adds.
3328
3329 2003-09-22  Bernardo Innocenti <bernie@develer.com>
3330
3331         * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
3332
3333 2003-09-22  Bernardo Innocenti  <bernie@develer.com>
3334
3335         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
3336         Resurrect -mrtd option.
3337
3338 2003-09-21  Andrew Pinski  <pinskia@physics.uc.edu>
3339
3340         PR target/12281
3341         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
3342         mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
3343
3344 2003-09-22  Olivier Hainque  <hainque@act-europe.fr>
3345
3346         PR target/9786
3347         * reg-stack.c (convert_regs_1): Purge possible dead eh edges
3348         after potential deletion of trapping insn. Avoids later ICE
3349         from call to fixup_abnormal_edges.
3350         (convert_regs_2): Stack the current block successors before
3351         processing this block, that is, before the potential deletion of
3352         dead edges by convert_regs_1, because these edges have been used
3353         to initialize the predecessors count.
3354
3355 2003-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
3356
3357         * real.c: Fix several nits in the head comment.
3358
3359 2003-09-21  Richard Henderson  <rth@redhat.com>
3360
3361         * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
3362         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
3363         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
3364         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
3365         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
3366
3367 2003-09-21  Richard Henderson  <rth@redhat.com>
3368
3369         * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
3370         (TREE_FILENAME, TREE_LINENO): Likewise.
3371         (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
3372         (TREE_LOCUS_SET_P): New.
3373         * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
3374         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
3375         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
3376         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
3377         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
3378
3379 2003-09-21  Nathanael Nerode  <neroden@gcc.gnu.org>
3380
3381         * config/vax/vax-protos.h: Convert to ISO C90.
3382         * config/vax/vax.c: Convert to ISO C90.
3383
3384 2003-09-21  Graham Stott  <grahams@btinternet.com>
3385
3386        PR target/12353
3387        * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
3388
3389 2003-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
3390
3391         PR target/12301
3392         * reorg.c (stop_search_p): Return 1 for insns that can
3393         throw internally.
3394
3395 2003-09-20  Richard Henderson  <rth@redhat.com>
3396
3397         * c-format.c (gcc_diag_char_table): Add %J.
3398         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
3399         (check_format_types): Fix wanted_type name lookup.
3400         (init_dynamic_diag_info): Setup %J.
3401         * diagnostic.c (text_specifies_location): Implement %J.
3402         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
3403         dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
3404         tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
3405         config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
3406         config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
3407
3408         * tree-inline.c: Include intl.h
3409         (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.