arm.c (use_return_insn): Not a single instruction, if there's a frame pointer.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2003-10-17  Richard Earnshaw <rearnsha@arm.com>
2             Nathan Sidwell  <nathan@codesourcery.com>
3
4         * config/arm/arm.c (use_return_insn): Not a single instruction, if
5         there's a frame pointer.
6         (arm_output_epilogue): Protect stack pointer from being corrupted
7         on interrupt.
8
9 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
10
11         * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
12
13 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
14
15         * combine.c (simplify_set): Do not clear out undobuf.other_insn
16         already set elsewhere.
17
18 2003-10-17  Kelley Cook  <kcook@gcc.gnu.org>
19
20         * config/i386/i386.c (ix86_expand_prologue):  Use
21         gen_allocate_stack_worker.
22
23 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
24
25         * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
26         without gas.
27         (mips-sgi-irix6*): Likewise.
28
29         * config/mips/iris6gas.h: New file.
30         * gcc/config.gcc (mips-sgi-irix6*): Use it.
31
32         * config/mips/mips.h (TARGET_IRIX): Provide default.
33         (TARGET_IRIX5): Likewise.
34         (TARGET_SGI_O32_AS): Likewise.
35         * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
36         (TARGET_IRIX5): Likewise.
37         * config/mips/iris6.h (TARGET_IRIX6): Remove.
38         (TARGET_IRIX5): Redefine as 0.
39
40         * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
41         linker workaround with TARGET_IRIX and mips_abi instead of
42         ASM_OUTPUT_UNDEF_FUNCTION.
43         (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
44         testing TARGET_IRIX and mips_abi explicitly.
45         * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
46         * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
47
48         * config/mips/mips.c (irix_output_external_libcall): Renamed from
49         mips_output_external_libcall.
50         Use new TARGET_IRIX in guard.
51         * config/mips/mips-protos.h (irix_output_external_libcall): Match
52         this.
53         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
54
55         * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
56         Define as 0.
57
58         * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
59         depending on mips_abi. 
60         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
61         * config/mips/mips.c (mips_output_function_prologue): Test
62         FUNCTION_NAME_ALREADY_DECLARED at runtime.
63         (mips_output_function_epilogue): Likewise.
64         (build_mips16_function_stub): Likewise.
65         (build_mips16_call_stub): Likewise.
66         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
67         default.
68         
69         * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
70         IRIX 6 O32 assembler.
71         (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
72         (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
73         _MIPS_SIM for O32 ABI.
74         (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
75         (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
76         (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
77         Integrate O32 version.
78         (SUBTARGET_ASM_SPEC): Handle -mabi=32.
79         (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
80         O32 ABI.
81         (BSS_SECTION_ASM_OP_32): Define.
82         (BSS_SECTION_ASM_OP_64): Likewise.
83         (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
84         using them.
85         (TARGET_ASM_NAMED_SECTION): Reflect renaming.
86         Move up to allow override for O32 ABI without GNU as.
87         (EH_FRAME_SECTION_NAME): Define explicitly.
88         (MUST_USE_SJLJ_EXCEPTIONS): Define.
89         [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
90         DTORS_SECTION_ASM_OP): Dummy definitions.
91         (TARGET_ASM_NAMED_SECTION): Undef statically. 
92         (EH_FRAME_SECTION_NAME): Likewise.
93         (ASM_OUTPUT_FILENAME): Integrate mips.h version.
94         (LINK_SPEC): Only use default options -call_shared -no_unresolved
95         without -r.
96         Don't pass -init, -fini with -mabi=32.
97         (COLLECT_PARSE_FLAG): Define.
98
99         * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
100         TARGET_IRIX.
101         Renamed to use irix_ prefix.
102         (iris6_asm_named_section): Likewise.
103         (iris_section_align_entry_eq): Likewise.
104         (iris_section_align_entry_hash): Likewise.
105         (iris6_file_start): Likewise.
106         (iris6_section_align_1): Likewise.
107         (iris6_file_end): Likewise.
108         (iris6_section_type_flags): Likewise.
109         (iris_section_align_htab): Likewise.
110         (iris_orig_asm_out_file): Likewise.
111         [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
112         (TARGET_ASM_FILE_END): Likewise.
113         (TARGET_SECTION_TYPE_FLAGS): Likewise.
114
115         * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
116         (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
117         override_options instead.
118         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
119         (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
120         * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
121         flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
122         assemblers.
123         Likewise for constructor/destructor handling.
124         (override_options): Handle IRIX O32 assembler quirks.
125         [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
126         without gas.
127         (mips_file_start): Use new TARGET_IRIX.
128         (mips_declare_object_name): No special processing for IRIX O32
129         assembler.
130         (mips_finish_declare_object): Likewise.
131         (irix_asm_output_align): Renamed from iris6_asm_output_align.
132         Don't record alignment for O32 ABI.
133         (irix_file_start): Renamed from iris6_file_start.
134         Return early for O32 ABI.
135         (irix_file_end): Renamed from iris6_file_end.
136         Don't emit .section directives for O32 ABI.
137         * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
138         * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
139
140         * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
141         (MULTILIB_OSDIRNAMES): Likewise.
142
143 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
144
145         * collect2.c (COLLECT_PARSE_FLAG): Provide default.
146         (main): Use it.
147         * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
148
149 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
150
151         * arm-modes.def (CC_Nmode): New condition code mode.
152         * arm.c (thumb_condition_code): Delete.
153         (arm_select_cc_mode): Handle single-bit test for Thumb.
154         (arm_print_operand, cases 'd' and 'D'): Don't special case the 
155         condition code logic for Thumb.
156         (get_arm_condition_code): Handle CC_Nmode.
157         (thumb_cbrch_target_operand): New function.
158         * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
159         * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
160         * arm.md: Add Thumb split patterns for zero_extract and
161         sign_extract.
162         (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
163         (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
164         (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
165         (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
166         (cbranchne_decr1): Re-work to use CC_Nmode.
167
168         * arm.c (thumb_expand_epilogue): Add clobbers of registers restored 
169         by the return instruction.  Add a use of the link register if it
170         wasn't stored.
171
172 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
173
174         * flow.c (init_propagate_block_info): Don't abort if a conditional
175         jump is not a comparison of a register.  Instead, just don't record
176         conditional life information.
177
178 2003-10-16  Jan Hubicka  <jh@suse.cz>
179
180         PR optimization/12630
181         * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
182         for operands 7 and 8.
183
184 2003-10-16  Kelley Cook  <kcook@gcc.gnu.org>
185
186         * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
187
188 2003-10-16  Danny Smith  <dannysmith@users.sourceforge.net>
189
190         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
191
192         * config/i386/winnt.c (gen_stdcall_suffix): Make static
193         (gen_fastcall_suffix): Likewise.
194         (i386_pe_dllexport_p): Likewise.
195         (i386_pe_dllimport_p): Likewise.
196         (i386_pe_mark_dllexport): Likewise.
197         (i386_pe_mark_dllimport): Likewise.
198         (i386_pe_asm_named_section): Fix formatting.
199
200 2003-10-16  Zack Weinberg  <zack@codesourcery.com>
201
202         * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
203         * system.h: Declare snprintf if necessary.
204         * configure, config.in: Regenerate.
205
206 2003-10-15  David Edelsohn  <edelsohn@gnu.org>
207
208         * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
209         arguments if TARGET_ALTIVEC_ABI.
210
211 2003-10-15  Roger Sayle  <roger@eyesopen.com>
212
213         * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
214         fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
215         fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
216         New functions.
217         (expand_builtin_memcpy): Use integer_zerop instead of testing
218         host_integerp and tree_low_cst directly.  Move misapplied hunk
219         for optimization wher SRC and DEST point to the same location.
220         (expand_builtin_mempcpy): From here.
221         (expand_builtin_memmove): Use integer_zerop instead of testing
222         host_integerp and tree_low_cst_directly.
223         (expand_builtin_memset): Likewise.
224         (expand_builtin_memcmp): Likewise (and for integer_onep).
225         (expand_builtin_strncmp): Likewise.
226         (fold_builtin): Call the appropriate fold_builtin_foo functions
227         to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
228         strcmp and strncmp.
229
230 2003-10-15  Geoffrey Keating  <geoffk@apple.com>
231
232         * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
233         prototype.  Clean up some whitespace.
234         * config/darwin.c: Use gen_rtx_FOO (...) rather than
235         gen_rtx (FOO, ...).
236         (machopic_non_lazy_ptr_name): Make static.
237         (name_needs_quotes): Allow '.' and '$' unquoted.
238         (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
239         case.
240
241 2003-10-15  Gábor Lóki  <alga@rgai.hu>
242
243         * fold-const.c (tree_swap_operands_p): Disable some features
244         when optimizing for size.
245
246 2003-10-15  David Daney  <ddaney@avtrex.com>
247
248         * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
249         * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
250         from leaf functions.
251         (DWARF_FRAME_RETURN_COLUMN): Ditto.
252         (SIGNAL_UNWIND_RETURN_COLUMN): New, used
253         by MD_FALLBACK_FRAME_STATE_FOR.
254         * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
255
256 2003-10-15  Zack Weinberg  <zack@codesourcery.com>
257
258         * genmodes.c: Include hashtab.h.
259         (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
260         (adj_bytesize, adj_alignment, adj_format, new_adjust)
261         (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
262         (print_maybe_const_decl, emit_mode_adjustments): New.
263         (known_modes): Rename to modes.
264         (find_mode): Kill class argument; look up in hash table.
265         (new_mode): Insert into hash table also.
266         (new_adjust): New.
267         (reset_float_format, make_partial_integer_mode)
268         (make_vector_mode): Tweak error reporting.
269         (reset_float_format): Correct type of fourth argument.
270         (emit_insn_modes_h): Add #defines to help make mode_size,
271         mode_base_align, and real_format_for_mode conditionally const.
272         (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
273         (emit_real_format_for_mode): Likewise, but temporarily disabled.
274         (emit_insn_modes_c): Call emit_mode_adjustments.
275         (main): Initialize modes_by_name.
276         * Makefile.in: Update dependencies.
277         * machmode.def: Document EXPR arguments and new ADJUST_* statements.
278         * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
279         declarations of mode_size and mode_base_align.  Declare
280         init_adjust_machine_modes.
281         * toplev.c (backend_init): Call init_adjust_machine_modes.
282
283 2003-10-15  Olivier Hainque  <hainque@act-europe.fr>
284
285         * genmodes.c (calc_wider_mode): Allocate enough room for all the
286         entries we'll possibly assign in the sort buffer.
287
288 2003-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
289
290         * config.gcc (s390x-ibm-tpf*): New target.
291         * doc/install.texi: Document it.
292         * config/s390/t-tpf: New file.
293         * config/s390/tpf.h: New file.
294
295 2003-10-15  Hans-Peter Nilsson  <hp@axis.com>
296
297         PR target/12598
298         * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
299         (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
300         Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
301         ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
302         (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
303         (define_split "*mov_sidesi_mem"+28, +29, +30): Use
304         replace_equiv_address, not gen_rtx_MEM.
305         * config/cris/cris.c (cris_mem_op): New match_operator function.
306         (cris_notice_update_cc): Use replace_equiv_address, not
307         gen_rtx_MEM.
308         * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
309
310 2003-10-15  Bernardo Innocenti <bernie@develer.com>
311
312         * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
313         MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
314         definitions after the other flags.
315
316 2003-10-14  Ziemowit Laski  <zlaski@apple.com>
317
318         * c-parse.in (methoddef, methodproto): Call objc_add_method()
319         instead of add_method().
320         * objc/objc-act.c (objc_check_decl): Do not check for
321         constant_string_type.
322         (add_method): Rename to objc_add_method().
323         (really_start_method): Call objc_add_method() instead of
324         add_method().
325         * objc/objc-act.h (add_method): Rename to objc_add_method().
326
327 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
328
329         * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
330         (s390_slb_comparison): Likewise.
331         * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
332         New functions.
333         * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
334         and s390_slb_comparison.
335         * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
336         zSeries machines.
337         ("*adddi3_31z", "*subdi3_31z"): New insns.
338         ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
339         "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
340         New insns.
341
342 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
343
344         * configure.in: Clean up some feedback echoes.
345         * configure: Regenerate.
346
347         * aclocal.m4: Properly quote names of macros being defined.
348
349         * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
350
351 2003-10-14  Steve Ellcey  <sje@cup.hp.com>
352
353         * config/ia64/ia64.c (ia64_expand_call): Force function address
354         to DImode.
355         * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
356
357 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
358
359         * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
360         "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
361         ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
362         "*divsf3_ibm"): Likewise.
363
364 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
365
366         * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
367         target_alias with target_noncanonical.
368
369 2003-10-14  Geoffrey Keating  <geoffk@apple.com>
370
371         * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
372         and add case for machines where outgoing register parameters
373         get stack space.
374
375         * config/darwin.c (machopic_indirect_data_reference): Use a scratch
376         register when generating indirect address.
377
378 2003-10-14  Richard Earnshaw  <rearnsha@arm.com>
379
380         * arm.c (arm_addimm_operand): MODE arguemnt is unused.
381         * arm.md (cbranchne_decr1): Fix bootstrap warning.
382
383 2003-10-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
384
385         * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
386         * fixinc/fixincl.x: Regenerate.
387         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
388         testcase.
389         Fixes PR bootstrap/9330.
390
391 2003-10-13  Eric Christopher  <echristo@redhat.com>
392
393         * config/frv/frv.c (frv_adjust_field_align): Redo check for
394         too wide bitfields.
395         (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
396         * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
397         (SBSS_SECTION_ASM_OP): Remove.
398         (EXTRA_SECTIONS): Remove in_sbss.
399         (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
400         (SBSS_SECTION_FUNCTION, sbss_section): Remove.
401         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
402         named_section.
403
404 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
405
406         * Makefile.in, configure.in, config.host, mkheaders.in: Replace
407         uses of ${target_alias} for directory names (and other places which
408         won't like the empty string) with ${target_noncanonical}.  Introduce
409         call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
410         available.
411         * configure: Regenerate.
412
413 2003-10-13  Ian Lance Taylor  <ian@wasabisystems.com>
414
415         * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
416         * config/arm/arm.md: For splits which rely on conditional moves,
417         remove ! TARGET_IWMMXT condition.
418
419 2003-10-13  David S. Miller  <davem@redhat.com>
420
421         * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
422         (find_cond_trap): Always increment if we emit a conditional
423         trap insn.
424
425 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
426
427         * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
428         with min-insn-modes.o.
429         (STAGESTUFF): Add min-insn-modes.c.
430         (genobjs): Add genmodes.o.
431         (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
432         (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
433         (min-insn-modes.c, min-insn-modes.o): New rules.
434         (s-modes): Also generate min-insn-modes.c.
435         ($(BUILD_PREFIX_1)insn-modes.o): Kill.
436         * genmodes.c (struct mode_data): Add format field.
437         (blank_mode, validate_mode, complete_mode): Update to match.
438         (make_scalar_mode): Separate into make_int_mode and make_float_mode.
439         (_SCALAR_MODE): Kill.
440         (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
441         (emit_insn_modes_c_header): Adjust.
442         (emit_min_insn_modes_c_header, emit_real_format_for_mode)
443         (emit_min_insn_modes_c): New functions.
444         (emit_insn_modes_c): Call emit_real_format_for_mode.
445         (main): Add -m option to generate min-insn-modes.c.
446         * machmode.h: Update documentation.  Add format argument to
447         all uses of FLOAT_MODE.
448         * real.c: Don't define real_format_for_mode here.
449
450         * dwarfout.c: Move default definition of PRINT_REG...
451         * defaults.h: ...here.
452         * print-rtl.c: Include tm_p.h.
453         (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
454         Kill.
455         (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG.  But surround
456         this entire block with #ifndef GENERATOR_FILE.
457         * regclass.c: Unconditionally define reg_names.
458         * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
459         Don't define DEBUG_REGISTER_NAMES.
460         * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
461         redefinition of REGISTER_NAMES.
462         * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
463
464         * combine.c: Change all preprocessor conditionals on
465         EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
466         for clarity.
467         * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
468         * configure.in: Don't define EXTRA_CC_MODES.
469         * configure, config.in: Regenerate.
470         * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
471
472         * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
473         May assume that GET_MODE_CLASS is accurate for extra CC modes
474         at all times.
475
476         * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
477         number of arguments to aggregate_value_p.
478
479         * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
480         * machmode.def: Explain ARCH-modes.def.  Document
481         RESET_FLOAT_FORMAT.  Improve commentary on various mode
482         clusters.  Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
483         XF, or TF modes here.  Remove backward-compatibility
484         definition of CC.
485
486         * config/alpha/alpha-modes.def: New file; define TF mode.
487         * config/arc/arm-modes.def: Define XF mode.
488         * config/c4x/c4x-modes.def: Define QF and HF modes.  Unset
489         float format for SF and DF modes.
490         * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
491         * config/i386/i386-modes.def: Define XF and TF modes.
492         * config/i960/i960-modes.def: Define TF mode.
493         * config/ia64/ia64-modes.def: Define TF and OI modes.
494         * config/m68k/m68k-modes.def: New file; define XF mode.
495         * config/mips/mips-modes.def: New file; define TF mode, reset
496         formats for SF and DF modes.
497         * config/pa/pa-modes.def: Define TF mode.
498         * config/rs6000/rs6000.c: Define TF and PSI modes.
499         * config/s390/s390-modes.def: Define OI mode.
500         * config/sh/sh-modes.def: New file; define PSI mode.
501         * config/sparc/sparc-modes.def: Define TF mode.
502         * config/vax/vax-modes.def: New file; reset formats for SF and
503         DF modes.
504
505         * config/c4x/c4x.c (c4x_override_options): No need to mess
506         with real_format_for_mode or set REAL_MODE_FORMATs.
507         (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
508         variable.
509         * config/i386/i386.c (override_options): No need to set
510         REAL_MODE_FORMATs here.
511         * config/i960/i960.c (i960_initialize): Likewise.
512         * config/m68k/m68k.c (m68k_override_options): Likewise.
513         * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
514         for TFmode only if not the default.
515         * config/mips/mips.c (override_options): Likewise.
516         * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
517         DFmode only if not the default.
518
519         * config/i370/i370.h (RET_REG): Don't consider TFmode.
520         * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
521         * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
522         of modes that don't appear anywhere in the machine description.
523
524         * config/arc/arc-modes.def, config/arm/arm-modes.def
525         * config/c4x/c4x-modes.def, config/frv/frv-modes.def
526         * config/i386/i386-modes.def, config/i960/i960-modes.def
527         * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
528         * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
529         * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
530         * config/sparc/sparc-modes.def: Convert to new style for
531         declaring extra CC modes.
532
533 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
534
535         * cpplex.c (_cpp_clean_line): In the common case of a line
536         with no trigraphs and no \-newline, avoid writing to memory.
537         (_cpp_skip_block_comment): Use a local 'cur' pointer instead
538         of the buffer member.  Make c an uchar to avoid unnecessary
539         sign extensions.
540
541 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
542
543         * configure.in: Remove unnecessary test.
544         * configure: Regenerate.
545
546         * configure.in: Fix grammatical error.  Move UWIN host error to...
547         * config.host: Here.
548         * configure: Regenerate.
549
550 2003-10-13  Andreas Krebbel  <krebbel1@de.ibm.com>
551
552         * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
553         "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
554         of flag_unsafe_math_optimizations.
555         * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
556         "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
557         fused-madd and no-fused-madd.
558         * doc/invoke.texi: Documented the new options fused-madd and
559         no-fused-madd for S/390.
560
561 2003-10-14  Alan Modra  <amodra@bigpond.net.au>
562
563         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
564         MASK_ALIGN_NATURAL if rs6000_alignment_string not given.  Don't
565         assign DEFAULT_ABI.
566         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
567         * config/rs6000/rs6000.c: Formatting.
568         (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
569         when rs6000_alignment_string given.
570
571 2003-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
572
573         PR target/12538
574         * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
575         (sparc_flat_must_save_register_p): New function to decide whether
576         a register must be saved/restored in the function prologue/epilogue.
577         (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
578
579 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
580
581         * config/avr/avr.c, config/avr/avr-protos.h: Convert to
582         ISO C90 function declarations and definitions.
583         * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
584
585 2003-10-12  Nathanael Nerode  <neroden@gcc.gnu.org>
586
587         * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
588         config files which do the same thing.
589         * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
590         config/freebsd6.h: Remove now unnecessary files.
591
592 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
593
594         * c-common.c (c_common_truthvalue_conversion): Warn if the
595         address of a non-weak function is used as a truth value.
596
597 2003-10-12  Kazu Hirata  <kazu@cs.umass.edu>
598
599         * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
600         a literal.
601         * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
602         instead of a literal.
603
604 2003-10-12  Hans-Peter Nilsson  <hp@bitrange.com>
605
606         * doc/extend.texi (Function Attributes): Mention the exceptional
607         path for noreturn-marked functions.
608
609 2003-10-12  Jan Hubicka  <jh@suse.cz>
610
611         * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
612         warning.
613
614 2003-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
615
616         * config/i386/i386.c (x86_this_parameter): Fix typo.
617
618 2003-10-11  Jan Hubicka  <jh@suse.cz>
619
620         * Makefile.in (web.o): New.
621         * web.c: New file.
622         * rtl.h (web_main): Declare.
623         * timervar.def (TV_WEB): New.
624         * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
625         (rest_of_hanle_web): New.
626         (flag_web): New static variable.
627         (lang_independent_options): Add "web".
628         (rest_of_compilation): Call rest_of_handle_web.
629         * invoke.texi (-fweb): Document.
630         * common.opt (fweb): New.
631         * flags.h (flag_web): New.
632         * opts.c (decode_options): Set flag_web at -O3.
633
634         * passes.texi (web construction):  Document.
635         * invoke.texi (-O3): Document that -fweb is enabled.
636
637         * regrename.c (regrename_optimize): Deal better with situation when
638         replacement failed.
639
640         * sched-ebb.c: Include params.h and profile.h
641         (schedule_ebbs):  Use tracer parameters to discover superblocks
642         * Makefile.in (sched-ebb.o):  Add dependencies.
643
644 2003-10-11  Roger Sayle  <roger@eyesopen.com>
645
646         * fold-const.c (negate_mathfn_p): New function to determine whether
647         a built-in mathematical function is sign preserving, f(-x) == -f(x).
648         Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
649         (tree_swap_operands_p): Change API to take an additional argument
650         indicating that the swapped operands evaluate in reverse order.
651         Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
652         operand side-effects or we don't care about flag_evaluation_order.
653         (reorder_operands_p): New function to check whether its safe to
654         evaluate the given operands in reverse order.
655         (negate_expr_p):  We can always negate integer constants unless
656         we honor -ftrapv and the signed type would overflow.  Only allow
657         -(A-B) into B-A if reorder_operands_p says that its OK.  Allow
658         negation of COMPLEX_CST if both real and imaginary parts can be
659         negated.  Allow negation through floating point extensions and
660         sign-preserving built-in functions.
661         (negate_expr):  Move the code to negate integers from "fold" to
662         here.  Always negate integer constants unless we honor -ftrapv
663         and the signed type would overflow.  Always negate real constants
664         unless we honor -ftrapping-math.  Only convert -(A-B) into B-A
665         if allowed by reorder_operands_p.  Add support for COMPLEX_CST.
666         Optimize negation through floating point extensions and
667         sign-preserving built-in functions (as defined by negate_mathfn_p).
668         (fold): Adjust calls to tree_swap_operands_p.
669         (fold <NEGATE_EXPR>): Move the remaining negation optimizations
670         to negate_expr_p/negate_expr.
671         (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
672         allowed to convert (-A) - B into (-B) - A.
673
674 2003-10-11  Roger Sayle  <roger@eyesopen.com>
675
676         * builtins.c (expand_builtin_strcmp): Defend against the possibility
677         that gen_cmpstrsi may fail: Stabilize the argument list against
678         re-evaluation and expand the library call directly using this saved
679         argument list if a cmpstrsi sequence can't be generated.
680         (expand_builtin_strncmp): Likewise.
681
682         * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
683
684 2003-10-11  Roger Sayle  <roger@eyesopen.com>
685
686         PR optimization/12260
687         * simplify-rtx.c (simplify_unary_operation): Simplify all unary
688         operations through CONST nodes.  Optimize (neg (plus X C)) as
689         (minus -C X) for constant values C.
690         (simplify_binary_operation): Optimize (minus (neg X) C) as
691         (minus -C X) for constant values C.
692         (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
693         instead create (minus -C X).
694
695 2003-10-11  Roger Sayle  <roger@eyesopen.com>
696
697         * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
698         safe_from_p for us, once it chooses an evaluation order.
699         (expand_expr <MULT_EXPR>): Likewise.
700         (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise.  If expand_operands
701         places the second operand in "target", swap the operands.
702         (do_store_flag): Let expand_operands call safe_from_p for us.
703
704 2003-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
705
706         PR optimization/12544
707         * function.c (put_var_into_stack): Don't generate ADDRESSOFs
708         for DECL_NONLOCAL decls.
709
710 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
711
712         * expr.c: Follow spelling conventions.
713         * final.c: Likewise.
714         * optabs.c: Likewise.
715         * sched-deps.c: Likewise.
716         * sdbout.c: Likewise.
717
718 Sat Oct 11 12:24:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
719
720         * varasm.c (notice_global_symbol):  Fix handling of variables; avoid
721         re-computing of variable.
722
723 2003-10-11  Richard Henderson  <rth@redhat.com>
724
725         * config/alpha/alpha.c (alpha_return_in_memory): Rename from
726         return_in_memory, make static, change signature to match target hook.
727         (alpha_setup_incoming_varargs): Make static, change signature to
728         match target hook, add code for vms and unicos.
729         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
730         TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
731         TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
732         TARGET_STRICT_ARGUMENT_NAMING,
733         TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
734         * config/alpha/alpha-protos.h: Update.
735         * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
736         PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
737         SETUP_INCOMING_VARARGS): Remove.
738         * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
739         * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
740
741 2003-10-11  Ian Lance Taylor  <ian@wasabisystems.com>
742
743         * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
744
745 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
746
747         * config/m68k/lb1sf68.asm: Follow spelling conventions.
748         * config/m68k/m68k.c: Likewise.
749         * config/m68k/m68k.h: Likewise.
750         * config/m68k/m68k.md: Likewise.
751
752 2003-10-11  Roger Sayle  <roger@eyesopen.com>
753
754         * builtins.c (expand_builtin_memcpy): Optimize case when the two
755         pointer arguments are the equal, non-volatile and side-effect free.
756         (expand_builtin_mempcpy): Likewise.
757         (expand_builtin_memmove): Likewise.
758         (expand_builtin_strcpy): Likewise.
759         (expand_builtin_memcmp): Likewise.
760         (expand_builtin_strcmp): Likewise.
761         (expand_builtin_strncmp): Likewise.
762
763 2003-10-11  Roger Sayle  <roger@eyesopen.com>
764
765         * combine.c (apply_distributive_law): Enable "distributive" floating
766         point optimizations with -funsafe-math-optimizations.
767
768 2003-10-11  Andrew Pinski <pinskia@physics.uc.edu>
769
770         * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
771
772 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
773
774         * config/m68k/m68k-protos.h: Remove the prototype for
775         finalize_pic.
776
777 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
778
779         * config/m68k/m68k.c: Fix comment typos.
780
781 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
782
783         * config/m68k/m68k-protos.h (use_return_insn): Change return type from
784         int to bool.
785         * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
786         (current_frame): New global var.
787         (m68k_compute_frame_layout): Cache computations in current_frame.
788         (m68k_initial_elimination_offset): Use values from current_frame
789         instead of recomputing them.
790         (use_return_insn): Likewise.
791         (m68k_output_function_prologue): Likewise.
792         (m68k_output_function_epilogue): Likewise.
793         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
794         inside the block for __pic__.
795
796 2003-10-11  Peter Barada <peter@baradas.org>
797             Bernardo Innocenti  <bernie@develer.com>
798
799         * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
800         (m68k_save_reg): Add boolean parameter `interrupt_handler'.
801         (m68k_interrupt_function_p): New function.
802         (m68k_handle_fndecl_attribute): Ditto.
803         (m68k_compute_frame_layout): Ditto.
804         (m68k_attribute_table): Define back-end specific attributes.
805         (m68k_output_function_epilogue): Emit RTE instruction for interrupt
806         functions.
807
808 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
809
810         * config/m68k/t-uclinux: New target Makefile fragment.
811         * config/m68k/uclinux.h: New target macro file.
812         * config.gcc (m68k-*-uclinux): New target definition.
813
814 2003-10-10  Roger Sayle  <roger@eyesopen.com>
815
816         * builtins.c (builtin_mathfn_code): Generalize to check whether
817         the call is to any built-in function by comparing the call's
818         argument list against the builtin decl's function type.
819
820 2003-10-10  Roger Sayle  <roger@eyesopen.com>
821
822         * cse.c (constant_pool_entries_regcost): New global variable to
823         hold the register cost component of constant_pool_entries_cost.
824         (fold_rtx): Calculate constant_pool_entries_regcost at the same
825         time as constant_pool_entries_cost.
826         (cse_insn): Set both src_folded_cost and src_folded_regcost from
827         constant_pool_entries_cost and constant_pool_entries_regcost.
828         (cse_main): Initialize constant_pool_entries_regcost to zero.
829
830         * optabs.c (expand_unop): Attach a REG_EQUAL note describing
831         the semantics of the sequence of bit operations used to negate
832         a floating-point value.
833         (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
834         the semantics of the bit operations used to abs a floating point
835         value.
836
837 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
838             Paul Dale  <pauli@snapgear.com>
839
840         * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
841         support.
842         * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
843         -fpic, -fPIC, -msep-data and -mid-shared-library.
844         * config/m68k/m68k.c (m68k_library_id_string): New global variable.
845         (override_options): Add -msep-data and -mshared-library-id support.
846         (m68k_output_function_prologue): Generate code to load A5 for
847         TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
848         (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
849         (m68k_output_pic_call): New function.
850         * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
851         (TARGET_ID_SHARED_LIBRARY): Ditto.
852         (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
853         * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
854         (call_value): Likewise.
855
856 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
857
858         * gengenrtl.c (find_formats, genheader): Make i an unsigned
859         int, remove cast of NUM_RTX_CODE.
860         * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
861         entire file.  Remove the #ifs on GET_MODE_MASK etc and
862         GET_MODE_WIDER_MODE etc.
863
864 2003-10-10  Eric Christopher  <echristo@redhat.com>
865
866         * lcm.c (optimize_mode_switching): Change NORMAL_MODE
867         to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
868         that set mode.
869         * config/sh/sh.h (MODE_ENTRY): New macro.
870         (MODE_EXIT): Ditto.
871         (MODE_AFTER): Ditto.
872         * config/sh/sh.md: Change for MODE_AFTER. Add
873         fp_set attribute.
874         * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
875
876 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
877
878         * genmodes.c, mode-classes.def: New files.
879         * machmode.def: Rewritten to genmodes.c interface.
880         * Makefile.in (extra_modes_file): New substitution variable.
881         (MACHMODE_H): No longer includes machmode.def or
882         @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
883         (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
884         (OBJS-common): Add insn-modes.o.
885         (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
886         genmodes$(build_exeext).
887         (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
888         genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
889         (s-genrtl): Don't depend on $(RTL_BASE_H).
890         (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
891         or $(RTL_BASE_H); just rtl.def.
892         * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
893         real.h.  Give fake definition of CONST_DOUBLE_FORMAT and
894         substitute definition of NUM_RTX_CODE.  Add casts to avoid
895         warnings.
896         * machmode.h: Include insn-modes.h, not machmode.def.  Include
897         mode-classes.def to define enum mode_class.  Tweak definitions
898         of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
899         GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
900         (inner_mode_array): Renamed mode_inner.
901         (mode_base_align): New.
902         * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
903         mode_unit_size, mode_wider_mode, mode_mask_array,
904         inner_mode_array, class_narrowest_mode): Delete definitions.
905         * stor-layout.c (get_mode_alignment): Use mode_base_align.
906         * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
907         and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
908
909         * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
910         No need to define BITS_PER_UNIT.
911
912 2003-10-10  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
913
914         * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
915         (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
916         (ia64_initialize_trampoline): If not using GAS, declare trampoline
917         as global.
918         * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
919         (ASM_OUTPUT_DEBUG_LABEL): Likewise.
920
921         * stor-layout.c (compute_record_mode): Don't force BLKmode if
922         field is zero-length BLKmode.
923         * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
924         zero-size references.
925
926         * combine.c (distribute_links): Properly test for REG being set.
927
928         * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
929         gen_lowpart and company except for REG.
930
931 2003-10-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
932
933         * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
934
935 2003-10-10  Nathanael Nerode  <neroden@gcc.gnu.org>
936
937         * config.gcc (mips*-*-netbsd*): Remove content-free line.
938
939 2003-10-10  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
940
941         * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
942         gcov_position_t and gcov_type.
943
944 2003-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
945
946         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
947         * configure: Regenerate.
948
949 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
950
951         * config/h8300/h8300.md (define_asm_attributes): Specify
952         the length of an asm insn more precisely.
953
954 2003-10-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
955
956         * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
957
958 2003-10-09  Bob Wilson  <bob.wilson@acm.org>
959
960         * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
961         FP register number to 48 and MAC16 accumulator to 0x210.
962
963 2003-10-09  Nathanael Nerode  <neroden@gcc.gnu.org>
964
965         * config.gcc: Remove redundant thread_file setting clauses for
966         various *-*-linux* targets.
967
968 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
969
970         * config/h8300/h8300.md (define_asm_attributes): New.
971
972 2003-10-09  Roger Sayle  <roger@eyesopen.com>
973
974         * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
975         to the comparison, as emit_libcall_block calls copy_rtx on equiv.
976
977 2003-10-09  Dorit Naishlos  <dorit@il.ibm.com>
978
979         * haifa-sched.c (ok_for_early_schedule): New function.
980         (early_queue_to_ready): New function.
981         (schedule_block): Allow early removal of insns from Q.
982         (schedule_insn): Update INSN_TICK in case of premature
983         issue.
984         * common.opt (sched_stalled_insns): New flag.
985         (sched_stalled_insns_dep): New flag.
986         * flags.h: Same above flags.
987         * opts.c: Same as above.
988         * toplev.c: Same as above.
989         * target.h (targetm.sched.is_costly_dependence): New
990         hook.
991         * target-def.h: Same as above.
992         * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
993         Support new flag -msched-costly-dep.
994         (DEFAULT_SCHED_COSTLY_DEP): Define.
995         * config/rs6000/rs6000.c:
996         (rs6000_is_costly_dependence): New function.
997         (is_load_insn, is_store_insn): New functions.
998         (is_load_insn1, is_store_insn1, is_mem_ref): New
999         functions.
1000         * doc/invoke.texi (-fsched-stalled-insns-dep)
1001         (-fsched-stalled-insns, -msched-costly-dep): Document
1002         options.
1003         * doc/tm.texi (is_costly_dependence): Define new
1004         scheduler target hook.
1005
1006 2003-10-09  Jason Merrill  <jason@redhat.com>
1007
1008         PR c++/6392
1009         * c-common.c (c_build_qualified_type): Look through arrays first.
1010         (c_apply_type_quals_to_decl): Look through arrays.
1011
1012         * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
1013         types with constructors.
1014
1015         * coverage.c (build_ctr_info_value): Use build_decl to make a
1016         VAR_DECL.
1017         (create_coverage): Likewise.
1018
1019         * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
1020         here.
1021         (expand_asm_operands): Not here.
1022         (parse_input_constraint): No longer static.
1023         * tree.h: Declare it.
1024
1025 2003-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
1026
1027         * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
1028         libgcc_s.so.
1029         (SHLIB_INSTALL): Likewise.
1030
1031 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
1032
1033         * doc/install.texi: Remove reference to removed 'pthreads' thread
1034         option.
1035
1036 2003-10-08  Aldy Hernandez  <aldyh@redhat.com>
1037
1038         * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
1039         operand 2.
1040
1041 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
1042
1043         * config.gcc: Don't accept --enable-threads=pthreads.  Clean
1044         up related case statements.
1045         * configure.in: Don't accept --enable-threads=pthreads,
1046         decosf1, mach, or os2 (none of which work anyway).  Alphabetize
1047         supported thread files in case clause.
1048         * configure: Regenerate.
1049
1050 2003-10-08  Geoffrey Keating  <geoffk@apple.com>
1051
1052         * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
1053         definition to above SPARC_STACK_BOUNDARY_HACK.
1054
1055 2003-10-08  Jason Merrill  <jason@redhat.com>
1056
1057         * c-pretty-print.c (pp_c_postfix_expression)
1058         <COMPOUND_LITERAL_EXPR>: Fix thinko.
1059
1060 2003-10-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1061
1062         * mklibgcc.in: Don't hide undefined or typeless symbols.
1063
1064 2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1065
1066         PR optimization/12142
1067         * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
1068         uses of the register in the SET_SRC.  Remove unnecessary argument.
1069         * pa.c (legitimize_pic_address): Before reload, use a scratch register
1070         for the intermediate result in loading the address of a SYMBOL_REF.
1071         Set the MEM_NOTRAP_P flag for the MEM.  Add a REG_EQUAL to the insn
1072         which loads the SYMBOL_REF address.
1073
1074 2003-10-08  Timo Kokkonen  <tjko@iki.fi>
1075             Eric Botcazou  <ebotcazou@libertysurf.fr>
1076
1077         PR bootstrap/12490
1078         * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
1079         to define the size of the extern_C_braces array.  Set it to 200.
1080         (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
1081
1082 2003-10-08  Carlo Wood  <carlo@alinoe.com>
1083
1084         * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
1085         a space after the -o option.  flex 2.5.31 understands both, with
1086         and without the space. Removed that space.
1087
1088 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
1089
1090         * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
1091         (compute_frame_size): Initialize it.  Remove the .cprestore slot
1092         from args_size.
1093         (mips_output_function_prologue): Simplify accordingly.
1094         (mips_debugger_offset): Change the mips16 frame pointer offset from
1095         current_function_outgoing_args to cfun->machine->frame.args_size.
1096         (mips_initial_elimination_offset): Likewise.
1097         (mips_expand_prologue): Likewise.
1098         (mips_expand_epilogue): Likewise.
1099
1100 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
1101
1102         * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
1103         (EXTRA_MEMORY_CONSTRAINT): Define.
1104         (CAN_ELIMINATE): Remove lwu workaround.
1105         * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
1106         Use a 'W' constraint for the source operand.
1107
1108 2003-10-08  Kazu Hirata  <kazu@cs.umass.edu>
1109
1110         * genopinit.c (main): Output code to declare undefined
1111         variables.
1112
1113 2003-10-07  Kelley Cook  <kcook@gcc.gnu.org>
1114
1115         * gengtype-lex.l: Remove -Wtraditional cruft.
1116         * Makefile.in (gengtype-lex.c): Likewise.
1117
1118 2003-10-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1119
1120         * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
1121
1122 2003-10-07  Jason Merrill  <jason@redhat.com>
1123
1124         PR c++/12519
1125         * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
1126         it isn't a decl.
1127
1128 2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
1129
1130         * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
1131         not overridden.
1132         Fixes PR bootstrap/12173.
1133
1134 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
1135
1136         * errors.c: Don't include coretypes.h or tm.h.
1137         (trim_filename): Use IS_DIR_SEPARATOR.
1138         * Makefile.in: Update dependencies of errors.o and
1139         $(BUILD_PREFIX_1)errors.o.
1140
1141 2003-10-07  Geoffrey Keating  <geoffk@apple.com>
1142
1143         * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
1144         account when aligning arguments.
1145         * calls.c (STACK_POINTER_OFFSET): Move default from here ...
1146         * defaults.h (STACK_POINTER_OFFSET): ... to here.
1147         * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
1148         it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
1149         (SPARC_STACK_BOUNDARY_HACK): Define.
1150         * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
1151         arrange for vector parameters to varargs functions to be passed
1152         in both memory and GPRs when appropriate.
1153         (rs6000_va_arg): Vector arguments passed in memory are 16-byte
1154         aligned.
1155
1156         * hooks.c (hook_bool_tree_true): New.
1157         (hook_rtx_tree_int_null): New.
1158         (hook_rtx_rtx_null): Use NULL, not 0.
1159         * hooks.h: Add 'extern' to everything.
1160         (hook_bool_tree_true): New.
1161         (hook_rtx_tree_int_null): New.
1162         * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
1163         * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
1164         * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
1165         prototype.
1166         * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
1167         (setup_incoming_varargs): Prototype.
1168         (TARGET_PROMOTE_FUNCTION_ARGS): Define.
1169         (TARGET_PROMOTE_FUNCTION_RETURN): Define.
1170         (TARGET_STRUCT_VALUE_RTX): Define.
1171         (TARGET_RETURN_IN_MEMORY): Define.
1172         (TARGET_SETUP_INCOMING_VARARGS): Define.
1173         (TARGET_STRICT_ARGUMENT_NAMING): Define.
1174         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
1175         (init_cumulative_args): Use rs6000_return_in_memory.
1176         (setup_incoming_varargs): Make 'static'.
1177         * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
1178         (PROMOTE_FUNCTION_RETURN): Delete.
1179         (STRUCT_VALUE): Delete.
1180         (RETURN_IN_MEMORY): Delete.
1181         (SETUP_INCOMING_VARARGS): Delete.
1182
1183 2003-10-07  Gerald Pfeifer  <gerald@pfeifer.com>
1184
1185         * doc/invoke.texi (Warning Options): Simplify and clarify the
1186         descriptions of -Wnonnull and -Winit-self.
1187
1188 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
1189
1190         * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
1191         indicees for floating-point conversersion libcalls.
1192
1193 2003-10-07  Nathanael Nerode  <neroden@gcc.gnu.org>
1194
1195         * Makefile.in: Add more comments separating large conceptually
1196         separate sections.
1197
1198         * configure.in: Clean up thread file logic.
1199         * configure: Regenerate.
1200
1201 2003-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
1202
1203         * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
1204         (switch_to_section): Handle in_readonly_data.
1205         * config/i386/winnt.c (i386_pe_asm_named_section): Handle
1206         readonly data.
1207
1208 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
1209
1210         * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
1211         it.
1212         (cbranchne_decr1): New Thumb pattern.
1213         * arm.c (arm_addimm_operand): New insn predicate.
1214         * arm-protos.h: Add a prototype for it.
1215         * arm.h (PREDICATE_CODES): Add it.
1216
1217 2003-10-07  Dorit Naishlos <dorit@il.ibm.com>
1218
1219         * sched-int.h (sched_info): New field
1220         sched_max_insns_priority.
1221         * sched-rgn.c (init_ready_list): Add invocations to
1222         targetm.sched.adjust_priority.
1223         (sched_max_insns_priority): Init new field.
1224         * sched-ebb.c (sched_max_insns_priority): Init new field.
1225         * haifa-sched.c (set_priorities): Set
1226         sched_info->sched_max_insns_priority.
1227         * config/rs6000/rs6000.h:
1228         (rs6000_sched_restricted_insns_priority_str): Support new
1229         flag -mprioritize-restricted-insns.
1230         (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
1231         * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
1232         function.
1233         (rs6000_adjust_priority): Change priority of restricted
1234         insns, using above new function and new flag.
1235         * doc/invoke.texi (-mprioritize-restricted-insns): Document
1236         new option.
1237
1238 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
1239
1240         * expr.c (cmpstr_optab, cmpmem_optab): New.
1241         * genopinit.c: Initialize them.
1242         * optabs.h: Declare them.
1243         * optabs.c (init_optabs): Clear them.
1244         (prepare_cmp_insn):  Use cmpstr_optab and cmpmem_optab to find
1245         block memory compare insns, not conditional chains.  Restructure
1246         the fallback generation of a call to memcmp/bcmp for better
1247         readability.
1248
1249 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
1250
1251         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
1252         (mips_save_restore_fn): New typedef.
1253         (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
1254         (mips_set_frame_expr, mips_frame_set): Move above prologue code.
1255         (save_restore_insns): Remove, replacing with...
1256         (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
1257         (mips_save_reg, mips_restore_reg): New function.
1258         (mips_expand_prologue, mips_expand_epilogue): Rework.
1259         * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
1260         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
1261         (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
1262
1263 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
1264
1265         * config/mips/mips.c (mips_expand_prologue): Remove unused
1266         traversal of function arguments.
1267
1268 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
1269
1270         * doc/invoke.texi: Remove documentation of -mentry.
1271         * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
1272         (override_options, mips_save_reg_p): Remove handling.
1273         (compute_frame_size, mips_output_function_prologue): Likewise.
1274         (mips_expand_prologue, mips_expand_epilogue): Likewise.
1275         * config/mips/mips.h (mips_entry_string): Remove declaration.
1276         (TARGET_OPTIONS): Remove -mentry.
1277         * config/mips/mips16.S: Remove mention of -mentry.
1278
1279 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
1280
1281         * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
1282         (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
1283         (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
1284         (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
1285         (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
1286         (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
1287         (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
1288         (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
1289         (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
1290         (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
1291         (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
1292         (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
1293         (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
1294         (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
1295         (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
1296         (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
1297         (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
1298         (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
1299         (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
1300         (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
1301         (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
1302         (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
1303         (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
1304         (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
1305         (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
1306         (fixunstfti_libfunc): Delete.
1307         * optabs.h (struct optab_handlers): Break out of struct optab.
1308         (struct convert_optab, convert_optab, enum convert_optab_index,
1309         convert_optab_table, sext_optab, zext_optab, trunc_optab,
1310         sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
1311         sfloat_optab, ufloat_optab): New.
1312         (set_conv_libfunc): Prototype.
1313         (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
1314         (trunc_optab): Renamed btrunc_optab.
1315         * builtins.c (expand_builtin_mathfn): Update to match.
1316         * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
1317         (convert_optab_table, new_convert_optab, init_convert_optab)
1318         (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
1319         (set_conv_libfunc): New.
1320         (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
1321         (expand_float, expand_fix): Use new conversion optabs,
1322         not old insn code tables or long chains of ifs.
1323         (init_optabs): No need to clear old insn code tables.
1324         Initialize the new optabs, not the old libfunc array entries.
1325         Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
1326         * genopinit.c: Initialize conversion optabs, not the
1327         former insn code tables.  Remove unnecessary casts.
1328         Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
1329         * expr.c (convert_move): Remove redundant check that
1330         to_real==from_real.  Use the conversion optabs instead
1331         of long chains of tests of modes.  Move partial-integer-mode
1332         interconversion above all integer conversion.  Do not recurse
1333         on a value forced into a register in the original mode.
1334
1335         * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
1336         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
1337         * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
1338         in new conversion optabs; do not reference the old libfunc
1339         array entries.  No need to include libfuncs.h.
1340
1341 2003-10-06  Roger Sayle  <roger@eyesopen.com>
1342
1343         * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
1344         point comparison sequence with a REG_EQUAL note that describes
1345         the comparison's semantics.
1346
1347 2003-10-06  Roger Sayle  <roger@eyesopen.com>
1348
1349         * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
1350         of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
1351
1352 2003-10-06  Roger Sayle  <roger@eyesopen.com>
1353             Zack Weinberg  <zack@codesourcery.com>
1354
1355         * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
1356         instruction by using LCT_CONST and then calling emit_libcall_block
1357         ourselves.
1358
1359 2003-10-06  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
1360
1361         PR optimization/11974
1362         * optabs.c (expand_unop): Promote libcall outmode according to
1363         hard_libcall_value.
1364
1365 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
1366
1367         * real.h (REAL_MODE_FORMAT): New macro.
1368         * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
1369         * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
1370         * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
1371         * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
1372         * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
1373         directly to real_format_for_mode array, wherever possible.
1374
1375 2003-10-06  Devang Patel  <dpatel@apple.com>
1376
1377         * dwarf2out.c (is_main_source): Remove variable.
1378         (dwarf2out_start_source_file): Do not check is_main_source.
1379         Do not reset is_main_source.
1380         (dwarf2out_init): Do not initialize is_main_source.
1381
1382 2003-10-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1383
1384         * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
1385         (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
1386         introduced some multi-line prototypes.
1387         * fixinc/fixincl.x: Regenerate.
1388
1389 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
1390
1391         * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
1392         * config/mips/mips.c (stack_operand): New predicate.
1393         * config/mips/mips.md: Use it for the destination of mips16 insns
1394         that store $31.
1395
1396 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
1397
1398         * config/mips/mips.md (*lowsi): Renamed from lowsi.
1399         (*lowdi): Likewise lowdi.
1400         (*lowsi_mips16, *lowdi_mips16): New patterns.
1401         * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
1402         mips16 CONSTANT_RELOC handling.
1403         (mips_delegitimize_address): Adjust for new sdata representation.
1404
1405 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
1406
1407         * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
1408         skip any remaining register arguments.
1409
1410 2003-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
1411
1412         * reload.c (find_reloads_subreg_address): Use correct offset for
1413         paradoxical MEM subregs on big-endian targets.
1414
1415 2003-10-06  Andrew Haley  <aph@redhat.com>
1416
1417         * tree.c (get_callee_fndecl): Call
1418         lang_hooks.lang_get_callee_fndecl.
1419         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
1420         (lhd_get_callee_fndecl): New.
1421
1422 2003-10-06  Andrew Pinski  <apinski@apple.com>
1423
1424         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
1425         error in calculating the length of the string.
1426         (machopic_stub_name): Likewise.
1427
1428 2003-10-06  Roger Sayle  <roger@eyesopen.com>
1429
1430         * optabs.c (prepare_float_lib_cmp):  Attach a REG_EQUAL note
1431         describing the return value of the comparison libcall to the
1432         REG_RETVAL instruction of the emitted sequence.
1433
1434 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1435
1436         PR optimization/12215
1437         * cse.c (cse_set_around_loop): Emit the move at the beginning
1438         of the next basic block for trapping sets.
1439
1440 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1441
1442         PR optimization/11637
1443         * combine.c (adjust_for_new_dest): New function to adjust the
1444         notes and LOG_LINKS when the dest of an insn has changed.
1445         (try_combine): Use it when deleting the first insn of a two-insn
1446         parallel or splitting a two-load parallel.
1447
1448 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
1449
1450         * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
1451         if TARGET_EXPLICIT_RELOCS.
1452
1453 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
1454
1455         PR bootstrap/12512
1456         * Makefile.in (info): Use double-colon rules.
1457         (dvi): Likewise.
1458         (generated-manpages): Likewise.
1459         * configure.in: Do not create lang.info, lang.dvi, or
1460         lang.generated-manpages hooks.
1461         * configure: Regenerated.
1462         * objc/Make-lang.in (objc.info): Remove.
1463         (objc.dvi): Remove.
1464         (objc.generated-manpages): Remove.
1465         * doc/sourcebuild.texi: Update description of info, dvi, and
1466         generated-manpages hooks.
1467
1468 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
1469
1470         * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
1471
1472 2003-10-05  Andrew Pinski  <apinski@apple.com>
1473
1474         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
1475         errors in memcpy destinations.
1476         (machopic_stub_name): Likewise.
1477
1478 2003-10-05  Andrew Pinski <apinski@apple.com>
1479
1480         * config/darwin.c (machopic_non_lazy_ptr_name):
1481         Change strcat to memcpy and add length together.
1482         (machopic_stub_name): Likewise.
1483
1484 2003-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
1485
1486         * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
1487         signal trampoline codes.
1488
1489 2003-10-05  Chris Demetriou  <cgd@broadcom.com>
1490
1491         * config/mips/mips.md (*divsf3): Move description of
1492         SB-1 F2 erratum from here to...
1493         (divsf3): Here.  Disable if TARGET_FIX_SB1 is set and
1494         flag_unsafe_math_optimizations is not.
1495
1496 2003-10-05  Aldy Hernandez  <aldyh@redhat.com>
1497
1498         * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
1499         TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
1500
1501 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1502
1503         * c-pretty-print.c: Fix comment typos.
1504         * c-pretty-print.h: Likewise.
1505         * calls.c: Likewise.
1506         * cfgloopmanip.c: Likewise.
1507         * cgraphunit.c: Likewise.
1508         * cppfiles.c: Likewise.
1509         * final.c: Likewise.
1510         * function.c: Likewise.
1511         * gcov-io.h: Likewise.
1512         * gcse.c: Likewise.
1513         * genoutput.c: Likewise.
1514         * loop.c: Likewise.
1515         * postreload.c: Likewise.
1516         * reg-stack.c: Likewise.
1517         * regmove.c: Likewise.
1518         * sched-int.h: Likewise.
1519         * sched-rgn.c: Likewise.
1520         * simplify-rtx.c: Likewise.
1521         * tree-inline.c: Likewise.
1522         * config/m68hc11/m68hc11.h: Likewise.
1523         * config/mmix/mmix.c: Likewise.
1524         * config/mn10300/mn10300.md: Likewise.
1525         * config/sh/sh.h: Likewise.
1526
1527 2003-10-05  Richard Henderson  <rth@redhat.com>
1528
1529         * tree-inline.c (remap_type): New.
1530         (remap_decl): Use it.  Remap DECL_SIZE*.
1531         (copy_body_r): Use it.
1532         (walk_tree): Walk TREE_TYPE too.
1533         (copy_tree_r): Don't walk subtrees of types.
1534         * tree.c (variably_modified_type_p): Restructure.  Consider integer
1535         types with non-const bounds variably modified.
1536
1537 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1538
1539         * doc/invoke.texi: Fix typos.
1540
1541 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1542
1543         * fold-const.c: Follow spelling conventions.
1544         * function.c: Likewise.
1545         * config/c4x/c4x.h: Likewise.
1546         * config/c4x/c4x.md: Likewise.
1547         * config/frv/frv.md: Likewise.
1548         * config/rs6000/aix.h: Likewise.
1549         * config/rs6000/linux64.h: Likewise.
1550         * config/xtensa/xtensa.c: Likewise.
1551
1552 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1553
1554         * c-pretty-print.c: Fix comment formatting.
1555         * cfglayout.c: Likewise.
1556         * cfgloopanal.c: Likewise.
1557         * cppcharset.c: Likewise.
1558         * dbxout.c: Likewise.
1559         * ggc-page.c: Likewise.
1560         * ggc.h: Likewise.
1561         * target.h: Likewise.
1562
1563 2003-10-04  Kelley Cook  <kelleycook@wideopenwest.com>
1564
1565         * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
1566
1567 2003-10-04  Nathanael Nerode  <neroden@gcc.gnu.org>
1568
1569         * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
1570         Convert to ISO C90 function declarations and definitions.
1571
1572 2003-10-04  Zack Weinberg  <zack@codesourcery.com>
1573
1574         * libfuncs.h
1575         (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
1576         (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
1577         (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
1578         (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
1579         (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
1580         (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
1581         (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
1582         (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
1583         (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
1584         (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
1585         (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
1586         (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
1587         (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
1588         (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
1589         (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
1590         (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
1591         Delete.
1592         * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
1593         (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
1594         (le_optab, unord_optab): New.
1595
1596         * optabs.c (prepare_float_lib_cmp): Rewrite.  Get the libfuncs
1597         from the code_to_optab table, not a giant switch; use
1598         swap_condition; do widening only if a comparison function that
1599         we can call exists in a wider mode, not if a cmp_optab insn or
1600         libfunc exists in a wider mode; call protect_from_queue
1601         exactly once on each operand.
1602         (init_optabs): Initialize the new optabs, not the deleted libfuncs.
1603
1604         * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
1605         * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
1606         Set floating point comparison libfuncs using set_optab_libfunc
1607         on the appropriate optab.
1608
1609         * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
1610         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
1611         selector conditionals.
1612
1613 2003-10-04  Stephane Carrez  <stcarrez@nerim.fr>
1614
1615         * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
1616         identical to m68hc12 as far as libraries are concerned.
1617
1618 2003-10-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1619
1620         PR c/12446
1621         * c-typeck.c (convert_for_assignment): Issue an error for
1622         array to pointer assignment after default conversion.
1623         (digest_init): Likewise.
1624
1625 2003-10-04  Fariborz Jahanian  <fjahanian@apple.com>
1626
1627         * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
1628
1629 2003-10-03  Gerald Pfeifer  <gerald@pfeifer.com>
1630
1631         * doc/extend.texi (Function Attributes): Fix title of GNU C
1632         Preprocessor manual.
1633         (C++ Extensions): Fix reference to "Predefined Macros" in the
1634         GNU C Preprocessor manual.
1635
1636 2003-10-04  Richard Earnshaw  <reanrsha@arm.com>
1637
1638         * doc/extend.texi: Document how GCC estimates and relies on the size
1639         of an asm.
1640
1641 2003-10-04  Richard Sandiford  <rsandifo@redhat.com>
1642
1643         * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
1644         arguments downward for big-endian o64.
1645
1646 2003-10-03  Robert Bowdidge <bowdidge@apple.com>
1647
1648         * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
1649         PCH generation, avoiding too-frequent flushes when writing to NFS
1650         file system.
1651
1652 2003-10-03  Ziemowit Laski  <zlaski@apple.com>
1653
1654         * objc/objc-act.c (lookup_category): Mark as 'inline'.
1655
1656 2003-10-03  Alexander Malmberg  <alexander@malmberg.org>
1657             Ziemowit Laski  <zlaski@apple.com>
1658
1659         * objc/objc-act.c (add_method_to_hash_list, lookup_category):
1660         New functions.
1661         (lookup_method_in_hash_lists): New parameter indicating whether
1662         we are messaging 'Class' or 'id'.
1663         (check_duplicates): Likewise; do not assume all methods will
1664         be either class or instance methods.
1665         (generate_category, finish_class): Use lookup_category().
1666         (add_method): Use add_method_to_hash_list(); insert instance
1667         methods of root classes into the global class method hash table.
1668         (add_category): Use lookup_category(); avoid constructing
1669         duplicate categories.
1670         (really_start_method): Add method to corresponding @interface,
1671         if not already there (and if the @interface exists).
1672         (finish_message_expr, finish_objc): Adjust calls to
1673         check_duplicates().
1674
1675 2003-10-03  Roger Sayle  <roger@eyesopen.com>
1676
1677         PR optimization/9325, PR java/6391
1678         * fold-const.c (fold_convert): For floating point to integer
1679         conversions, return the maximum/minimum representable integer
1680         value if the real constant overflows the destination type.
1681         * tree.c (real_value_from_int_cst): Allow the type to be NULL,
1682         meaning don't truncate the result to a floating point mode.
1683         Simplify the logic by calling real_from_integer directly.
1684         * simplify-rtx.c (simplify_unary_operation):  Implement the
1685         same semantics for folding floating point to integer conversions
1686         in RTL.
1687
1688 2003-10-03  Chris Demetriou  <cgd@broadcom.com>
1689
1690         * config/mips/mips.c (mips_emit_prefetch): Restructure
1691         to avoid use of arrays, handle indexed prefetch.
1692         * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
1693         (ISA_HAS_PREFETCHX): New deffine.
1694         * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
1695         update comments.
1696         (prefetch_indexed_di, prefetch_indexed_si): New insns.
1697
1698 2003-10-03  Jeff Sturm  <jsturm@one-point.com>
1699             Roger Sayle  <roger@eyesopen.com>
1700
1701         PR optimization/12289
1702         * calls.c (emit_call_1): Pretend to have popped the arguments
1703         to noreturn and longjmp functions instead of ignoring them.
1704         (expand_call): Don't adjust stack_pointer_dela while
1705         inhibit_defer_pop is set.
1706
1707 2003-10-03  Andreas Schwab  <schwab@suse.de>
1708
1709         PR bootstrap/12276
1710         * configure.in: Check for libunwind on the host only if building
1711         a native compiler.
1712         * configure: Regenerated.
1713
1714 2003-10-03  Paolo Carlini  <pcarlini@unitus.it>
1715
1716         * unwind-pe.h (read_encoded_value_with_base): Constify u and
1717         its inizialization cast.
1718
1719 2003-10-03  Richard Sandiford  <rsandifo@redhat.com>
1720
1721         PR target/12485
1722         * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
1723
1724 2003-10-02  Mark Mitchell  <mark@codesourcery.com>
1725
1726         PR optimization/12180
1727         * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
1728         functions containing calls to __builtin_next_arg.
1729
1730 2003-10-02  Chris Demetriou  <cgd@broadcom.com>
1731
1732         * config/mips/mips.c (mips_emit_prefetch): Use operand 3
1733         in instructions being output.
1734         * config/mips/mips.md (prefetch_si_address): Change third
1735         operand's constraint letter to 'I'.
1736         (prefetch_di_address): Likewise.
1737         (prefetch_si, prefetch_di): Set third operand to const0_rtx.
1738
1739 2003-10-02  Zack Weinberg  <zack@codesourcery.com>
1740
1741         * system.h: Poison macros obsoleted by earlier patch.
1742         * config/cris/cris.c: C90-ify a function definition.
1743
1744 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
1745
1746         PR/12292
1747         * combine.c (make_field_assignment): Check whether rtx's code
1748         is CONST_INT before using INTVAL.
1749
1750 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
1751
1752         * cgraph.c (cgraph_node): Use INSERT instead of 1 in
1753         htab_find_slot_with_hash.
1754         (cgraph_node_for_identifier): Use NO_INSERT.
1755         (cgraph_remove_node): Use NO_INSERT.
1756         (cgraph_varpool_node): Use INSERT.
1757         (cgraph_varpool_node_for_identifier): Use NO_INSERT.
1758
1759 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
1760
1761         Waldek Hebisch <hebisch@math.uni.wroc.pl>
1762         PR/12072
1763         * varasm.c (compare_constant): Fix thinko.
1764
1765 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
1766
1767         * config/frv/frv.c (frv_issue_rate): New function.
1768         (frv_pack_insns): Use it.
1769         (TARGET_SCHED_ISSUE_RATE): Define.
1770
1771 2003-10-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
1772
1773         * config/mcore/mcore.c: Convert to ISO C90 function declarations
1774         and definitions.
1775         * config/mcore/mcore.h: Likewise.
1776         * config/mcore/mcore-protos.h: Likewise.
1777
1778 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
1779
1780         * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
1781         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
1782
1783 2003-10-01  Per Bothner  <pbothner@apple.com>
1784
1785         * c-lex.c (src_line):   Remove unneeded static variable.
1786         (cb_line_change):  Set input_line directly, instead of src_line.
1787         (get_non_padding_token):  We no longer need to compensate for the
1788         "horrible things" the C++ front-end does with the current line number,
1789
1790         * cpplib.c (_cpp_pop_buffer):  Do generate a _cpp_do_file_change
1791         callback even when popping the main file.
1792         * c-lex.c (fe_file_change):  Handle a NULL new_map.
1793         * fix-header.c (cb_file_change):  Likewise.
1794         * c-ppoutput.c (pp_file_change):  Likewise.
1795
1796         * cppinit.c (cpp_read_main_file):  Split into two functions:
1797         Distribute _cpp_stack_file call over the two functions.
1798         (cpp_find_main_file):  New function.
1799         Don't call _cpp_do_file_change even if working_directory flag set.
1800         (cpp_push_main_file):  New function.
1801         * cppfiles.c (_cpp_find_failed):  New helper function.
1802         (find_file):  Made non-static and renamed to _cpp_find_file.
1803         (_cpp_stack_file):  No longer needed.  But note the following.
1804         (stack_file):  Made non-static and renamed to _cpp_stack_file.
1805         * fix-header.c (cpp_read_main_file):  Replace cpp_read_main_file
1806         call with calls to cpp_find_main_file and cpp_push_main_file.
1807         (search_path_head):  If there is no current buffer, use main_file.
1808         * cpphash.h:  Update function declarations.
1809         * cpplib.h:  Update function declarations.
1810
1811         * c-opts.c (c_common_post_options):  Don't call cpp_find_main_file yet.
1812         (c_common_parse_file):  No longer need to call cpp_read_main_file
1813         when file_index > 0 (as in multi-file or server compiation).
1814         (finish_options):  Change to <built-in> is an LC_ENTER, not LC_RENAME
1815         as this now happens before cpp_push_main_file.
1816         (push_command_line_include):  When done with options, pass LC_LEAVE
1817         instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
1818         (fe_file_change):  Handle NULL new_map, and simplify.
1819         * cpplex.c (_cpp_get_fresh_line):  Revert my no-longer-needed
1820         08-28 change, since we're never called with a NULL buffer.
1821         (_cpp_lex_direct):  Likewise.
1822         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
1823         Return false if buffer is NULL at end.
1824
1825         * cpplex.c (_cpp_get_fresh_line):  Return value now just depends on
1826         whether pfile->buffer is NULL after pop, ignoring return_at_eof.
1827         * cpphash.h (struct cpp_buffer):  Remove unused return_at_eof field.
1828         * cpplib.c (cpp_push_buffer):  Since we no longer set return_at_eof,
1829         remove the unused return_at_eof parameter.
1830         * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
1831         Update callers of cpp_push_buffer.
1832
1833 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
1834
1835         * target.h (init_libfuncs): New hook.
1836         * target-def.h: Default TARGET_INIT_BUILTINS and
1837         TARGET_INIT_LIBFUNCS to hook_void_void.  Add
1838         TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
1839         * builtins.c (default_init_builtins): Delete.
1840         * expr.h (default_init_builtins): Delete prototype.
1841         * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
1842         Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
1843         Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
1844         DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
1845         MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
1846         and UMODDI3_LIBCALL,
1847
1848         * Makefile.in (optabs.o): Depends on target.h.
1849         * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
1850         * optabs.c: Include target.h.
1851         (prepare_float_lib_cmp): No need for #ifdef around use of
1852         FLOAT_LIB_COMPARE_RETURNS_BOOL.
1853         (set_optab_libfunc): New function.
1854         (init_optabs): Delete use of all *_LIBCALL defines.
1855         Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
1856         * optabs.h: Prototype set_optab_libfunc.
1857
1858         * config.gcc: Remove all references to pa/long_double.h,
1859         ia64/hpux_longdouble.h, and gofast.h.
1860         (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
1861         to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
1862
1863         * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
1864         * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
1865         * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
1866         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
1867         * config/sparc/sparc.c, config/vax/vax.c:
1868         Provide a definition for TARGET_INIT_LIBFUNCS.  Where
1869         necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
1870
1871         * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
1872         * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
1873         * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
1874         * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
1875         * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
1876         * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
1877         * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
1878         * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
1879         INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
1880
1881         * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
1882         Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
1883         * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
1884         HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
1885         * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
1886
1887         * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
1888         * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
1889         SUN_INTEGER_MULTIPLY_64 to 0.
1890         * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
1891         SUN_INTEGER_MULTIPLY_64 to 1.
1892         * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
1893         SUN_INTEGER_MULTIPLY_64 to 0.
1894         * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
1895         Define US_SOFTWARE_GOFAST.
1896         * config/vax/vax.h: Default TARGET_ELF to 0.
1897         * config/vax/elf.h: Redefine TARGET_ELF to 1.
1898
1899         * config/gofast.h: Don't define any macros here.  Provide one
1900         static function, gofast_maybe_init_libfuncs, which does what
1901         INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
1902         is already defined.  Do not clear negation libfuncs.  Do
1903         not mess with HFmode, XFmode, or TFmode libfuncs.
1904
1905         * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
1906
1907 2003-10-01  Kelley Cook  <kelleycook@wideopenwest.com>
1908
1909         PR C/12466
1910         * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
1911
1912 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1913
1914         * config/mips/xm-iris5.h: Remove, unnecessary.
1915         * config.build (mips-sgi-irix5*): Remove.
1916         (mips-sgi-irix6*o32): Likewise.
1917         * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
1918         (mips-sgi-irix5cross64): Likewise.
1919         (mips-sgi-irix5*): Likewise.
1920         * config.host (mips-sgi-irix5*): Remove.
1921         (mips-sgi-irix6*o32): Likewise.
1922
1923 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
1924
1925         * dbxout.c (dbxout_fptype_value): Delete.
1926         (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
1927
1928 2003-10-01  Alexandre Oliva  <aoliva@redhat.com>
1929
1930         * output.h (compute_reloc_for_constant): Declare.
1931         * varasm.c (compute_reloc_for_constant): Extract from...
1932         (output_addressed_constants): ... here.  Adjust all callers.
1933
1934 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1935
1936         * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
1937         * configure: Rebuilt.
1938
1939 2003-10-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1940
1941         * fold-const.c (make_range): When handling unsigned, don't reverse
1942         range if high bound is zero.
1943
1944 2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
1945
1946         * config/frv/frv.h (PREDICATE_CODES): Added
1947         condexec_si_media_operator, condexec_sf_add_operator and
1948         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
1949         and condexec_sf_unary_operator.
1950
1951 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1952
1953         * aclocal.m4: Add ultrix* to /dev/zero blacklist.
1954         * configure: Rebuilt.
1955
1956 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1957
1958         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
1959         Allow override.
1960         * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
1961
1962 2003-09-23  David S. Miller  <davem@redhat.com>
1963
1964         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
1965         before redefining.
1966         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
1967
1968 2003-10-01  Steven Bosscher  <steven@gcc.gnu.org>
1969
1970         * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
1971         C90 function declarations and definitions.
1972
1973 2003-10-01  Nathanael Nerode  <neroden@gcc.gnu.org>
1974
1975         * config.gcc (cris-*-linux*): Revert mistaken commit.
1976
1977 2003-10-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
1978
1979         PR optimization/11753
1980         * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
1981         the length in the non-V9 case.
1982
1983 2003-09-30  Richard Henderson  <rth@redhat.com>
1984
1985         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
1986         DWARF_ALT_FRAME_RETURN_COLUMN.
1987         * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
1988         (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
1989         (uw_frame_state_for): Return end-of-stack for null return address.
1990         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
1991
1992         * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
1993         (alpha_expand_prologue): Store a zero for it.
1994         (alpha_expand_epilogue): Don't reload it.
1995         * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
1996         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
1997         for the sigframe return address.
1998
1999 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
2000
2001         * sdbout.c: Convert to ISO C90 prototypes.
2002         * objc/objc-act.c: Likewise.
2003
2004 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
2005
2006         * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
2007         * config/i386/winnt.c: Likewise.
2008         * config/i386/cygming.h: Likewise.
2009
2010 2003-09-30  Kazu Hirata  <kazu@cs.umass.edu>
2011
2012         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
2013         (A ^ B) - B for any B.
2014
2015 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
2016
2017         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
2018         powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
2019
2020 2003-09-30  Richard Earnshaw  <rearnsha@arm.com>
2021
2022         * arm/ieee754-sf.S: Tidy formatting.
2023
2024 2003-09-30  Nicolas Pitre  <nico@cam.org>
2025
2026         * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
2027         and ARM_MOD_BODY.
2028         (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
2029         (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
2030         added better divisor alignment in the other case.
2031         (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
2032         (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
2033         macros above, add fast exits for divisor >= dividend, etc.
2034
2035 2003-09-30  Nicolas Pitre  <nico@cam.org>
2036
2037         * arm/ieee754-df.S: Split compilation of fixunsdfsi from
2038         L_fixdfsi target.
2039         * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
2040
2041 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
2042
2043         * config.gcc: Default use_fixproto to 'no'.
2044
2045 2003-09-30  Richard Sandiford  <rsandifo@redhat.com>
2046
2047         PR optimization/12345
2048         * config/mips/mips-protos.h (mips_restore_gp): Remove.
2049         (mips_gp_save_slot): Declare.
2050         * config/mips/mips.c (mips_restore_gp): Remove in favor of...
2051         (mips_gp_save_slot): ...this new function.
2052         * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
2053         and mips_output_move to generate the output template.
2054         (call_internal): Force splitting if TARGET_SPLIT_CALLS.  Don't emit
2055         a gp load after a noreturn call.  Load the gp using a move rather
2056         than an exception_receiver pattern.
2057         (call_value_internal, call_value_multiple_internal): Likewise.
2058         (call_split, call_value_split, call_value_multiple_split): Clobber $28.
2059
2060 2003-09-30  Carlo Wood  <carlo@alinoe.com>
2061
2062         PR debug/12319
2063         * cfglayout.c (insn_scope):  Use prologue_locator and
2064         epilogue_locator; return the outer function scope for
2065         pro- and epilogue insns.
2066
2067 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
2068
2069         * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
2070         REAL_TYPEs based on the bitsize of the type's mode, not the
2071         mode directly.
2072
2073 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2074
2075         * dwarf2out.c (default_eh_frame_section): Split into ...
2076         (named_section_eh_frame_section, collect2_eh_frame_section): ... new
2077         functions.
2078         * output.h (named_section_eh_frame_section): Declare.
2079         (collect2_eh_frame_section): Likewise.
2080
2081 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
2082
2083         * real.c (real_sqrt): Use get_canonical_qnan directly.
2084
2085         * dwarf2out.c (add_const_value_attribute): Use real_to_target.
2086
2087         * varasm.c (assemble_real): Use real_to_target directly,
2088         calculate the number of significant elements of the result
2089         array and write them out in a loop, instead of using a giant
2090         switch statement to pick the correct REAL_VALUE_TO_TARGET_*
2091         macro.
2092
2093 2003-09-29  Jan Hubicka  <jh@suse.cz>
2094
2095         PR c++/12175
2096         * varasm.c (notice_global_symbol): Discard external symbols.
2097
2098         PR optimization/12286
2099         * gcov-io.c (gcov_read_words): Fix memmove call.
2100         * profile.c (compute_branch_probabilities): Add extra sanity checks.
2101
2102 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2103
2104         * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
2105         Solaris 7-9.
2106
2107         * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
2108         wildcards which explicitly match micro versions.
2109         * fixinc/fixincl.x: Regenerate.
2110
2111 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
2112
2113         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
2114         (A ^ B) - B, where B is any power of 2 minus 1.
2115
2116 2003-09-29  Jan Hubicka  <jh@suse.cz>
2117
2118         * libgcov.c (gcov_exit): Fix two pastos.
2119
2120 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
2121
2122         * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
2123         define_split immediately below to form define_insn_and_split.
2124
2125 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
2126
2127         * config/h8300/h8300.md (*tstsi_variable_bit): New.
2128         (*tstsi_variable_bit_qi): Likewise.
2129
2130 2003-09-28  Phil Edwards  <phil@codesourcery.com>
2131
2132         * doc/cppopts.texi:  Use 'dashMP' instead of '-MP' as a cross-
2133         reference name.
2134
2135 2003-09-28  Richard Henderson  <rth@redhat.com>
2136
2137         * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
2138         file and line separately.
2139
2140 2003-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
2141
2142         * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
2143         "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
2144         "*subdi3_borrow_cconly"): New insns.
2145         ("*addsi3_sub", "*subsi3_sub"): Remove.
2146         ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
2147         ("*subsi3_cc"): Fix op_type attribute.
2148
2149 2003-09-28  Richard Henderson  <rth@redhat.com>
2150
2151         * stmt.c (expand_asm_operands): Take a location_t, instead of
2152         individual file and line.
2153         * c-typeck.c (c_expand_asm_operands): Likewise.
2154         * tree.h (expand_asm_operands): Update decl.
2155         * c-common.h (c_expand_asm_operands): Likewise.
2156         * c-semantics (genrtl_asm_stmt): Update call.
2157
2158 2003-09-28  Philip Blundell  <philb@gnu.org>
2159
2160         * config/arm/arm.c (legitimize_pic_address): Check
2161         SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
2162         (arm_assemble_integer): Likewise.
2163
2164 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
2165
2166         * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
2167         config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
2168         config/c4x/c4x.h:
2169         Convert to ISO C90 function declarations and definitions.
2170
2171 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
2172
2173         *  config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
2174         Convert to ISO C90 function declarations and definitions.
2175
2176 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
2177
2178         * config/mips/mips.c (mips_constant_info): Add reloc field.
2179         (mips_classify_constant): Initialize it.  Always set SYMBOL to the
2180         underlying symbol, not to an unspec.
2181         (mips_delegitimize_address, print_operand): Clean up accordingly.
2182
2183 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
2184
2185         * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
2186         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
2187         * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
2188         (mips_classify_constant): Use it.
2189         (mips_splittable_symbol_p): Add an offset argument.
2190         (mips_classify_address): Adjust call accordingly.
2191         (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
2192         than a relocation unspec.  Update call to mips_splittable_symbol_p.
2193         Generalize the code that copes with symbols + invalid offsets.
2194         (print_operand): Allow '%R' to be applied to small data addresses.
2195         (mips_reloc_string): Remove RELOC_GPREL16.
2196         (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg.  Return $gp
2197         for TARGET_EXPLICIT_RELOCS.  Return null if we can't use gp-relative
2198         relocation operators.
2199         * config/mips/mips.md (RELOC_GPREL16): Remove.  Shuffle other reloc
2200         constants accordingly.
2201
2202 2003-09-27  Roger Sayle  <roger@eyesopen.com>
2203
2204         * toplev.c (flag_evaluation_order): New global variable.
2205         * flags.h (flag_evaluation_order): Prototype here.
2206         * expr.c (expand_operands): If we need to preserve observable
2207         evaluation order, protect exp1 from clobbering exp0's result.
2208
2209 2003-09-28  Andreas Jaeger  <aj@suse.de>
2210
2211         * c-decl.c (finish_function): Convert definition to ISO C90.
2212         * ifcvt.c (mark_loop_exit_edges): Likewise.
2213         * ra-rewrite.c (emit_colors): Likewise.
2214
2215 2003-09-27  Nathanael Nerode  <neroden@gcc.gnu.org>
2216
2217         * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
2218         * config.gcc (arm*-*-uclinux*): Disable fixproto.
2219         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
2220         powerpc-*-eabialtivec*): Disable fixproto.
2221
2222 2003-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
2223
2224         PR optimization/12340
2225         * loop.h (struct induction): Document the new semantics
2226         of the 'same' field for bivs.
2227         * unroll.c (biv_total_increment): Don't count the same
2228         biv increment several times.
2229         (loop_iterations) [GENERAL_INDUCT]: Likewise.
2230
2231 2003-09-27  Graham Stott  <graham.stott@btinternet.com>
2232
2233         * unroll.c (loop_interations)[GT]: Add missing break.
2234
2235 2003-09-27  Kelley Cook  <kcook@gcc.gnu.org>
2236
2237         * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
2238         config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
2239         config/dbxelf.h, config/elfos.h, config/fp-bit.h,
2240         config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
2241         config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
2242         config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
2243         config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
2244         config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
2245         config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
2246         config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
2247         config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
2248         config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
2249         config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
2250         config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
2251         config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
2252         config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
2253         config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
2254         config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
2255         config/alpha/xm-vms.h, config/arc/arc-modes.def,
2256         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
2257         config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
2258         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
2259         config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
2260         config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
2261         config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
2262         config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
2263         config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
2264         config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
2265         config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
2266         config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
2267         config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
2268         config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
2269         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
2270         config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
2271         config/i960/i960-c.c, config/i960/i960-coff.h,
2272         config/i960/i960-modes.def, config/i960/i960-protos.h,
2273         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
2274         config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
2275         config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2276         config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
2277         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
2278         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
2279         config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
2280         config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
2281         config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
2282         config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
2283         config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
2284         config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
2285         config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
2286         config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
2287         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
2288         config/mcore/mcore-protos.h, config/mcore/mcore.c,
2289         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
2290         config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
2291         config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
2292         config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
2293         config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
2294         config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
2295         config/mips/vr.h, config/mn10300/linux.h,
2296         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
2297         config/mn10300/mn10300.h, config/mn10300/mn10300.md,
2298         config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
2299         config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
2300         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
2301         config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
2302         config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
2303         config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
2304         config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
2305         config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
2306         config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
2307         config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
2308         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
2309         config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
2310         config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
2311         config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
2312         fixinc/fixinc.svr4: GNU CC -> GCC.
2313
2314 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
2315
2316         * objc/objc-act.c (tm_p.h): Tweak order.
2317         * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
2318
2319 2003-09-26  Nathanael Nerode  <neroden@gcc.gnu.org>
2320
2321         * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
2322         Include t-slibgcc-elf-ver and t-linux in tmake_file.
2323         * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
2324         Disable fixproto.
2325         * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
2326         Disable fixproto.
2327         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
2328         sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
2329
2330         * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
2331
2332 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
2333
2334         * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
2335         * objc/objc-act.c (tm_p.h): Include.
2336
2337 2003-09-26  Per Bothner  <pbothner@apple.com>
2338
2339         * dbxout.c (dbxout_typedefs):  Output typedefs in forward order.
2340         No longer any need to reverse by recursion.
2341
2342 2003-09-26  Roger Sayle  <roger@eyesopen.com>
2343             Richard Henderson  <rth@redhat.com>
2344
2345         PR optimization/11741
2346         * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
2347         appropriate set to match that in hash_scan_insn.  Fall back to
2348         the original copy method, if we can't validate changing insn.
2349         (pre_delete): Only delete instructions that have a single_set,
2350         instead of aborting when we encounter an PARALLEL insn with more
2351         then one SET.
2352
2353 2003-09-26  Andreas Krebbel  <krebbel1@de.ibm.com>
2354
2355         * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
2356         ("builtin_longjmp"): Insn deleted.
2357         ("save_stack_nonlocal"): Save literal pool base pointer behind
2358         backchain and stack pointer.
2359         ("restore_stack_nonlocal"): Restore literal pool base pointer.
2360         * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
2361         the stack save area for the nonlocal goto case.
2362
2363 2003-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2364
2365         PR bootstrap/12358
2366         * pa.c (output_bvb): Fix typo.
2367
2368 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
2369
2370         * expmed.c (store_bit_field): Don't search for an integer mode
2371         unless we need the result.
2372
2373 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
2374
2375         * expr.c (emit_move_insn_1): If there is no move pattern for the
2376         original mode, try using a pattern for the corresponding integer mode.
2377
2378 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
2379
2380         PR middle-end/9200
2381         * combine.c (if_then_else_cond): Tighten mode check.
2382
2383 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
2384
2385         * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
2386         'struct _cpp_strbuf'.
2387
2388         * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2389         config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
2390         config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
2391         config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
2392         config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
2393         config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
2394         config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
2395         config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
2396         config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
2397         "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
2398         * config/i386/i386-aout.h, config/i386/i386-coff.h,
2399         config/i386/i386-interix.h, config/i386/i386-interix3.h,
2400         config/i386/i386-modes.def, config/i386/i386-protos.h,
2401         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
2402         config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
2403         config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
2404         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
2405         config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
2406         "GNU compiler" -> GCC.
2407         * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
2408         config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
2409         config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
2410         config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
2411         config/i386/freebsd-aout.h, config/i386/freebsd.h,
2412         config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
2413
2414 2003-09-25  Kelley Cook  <kelleycook@wideopenwest.com>
2415
2416         * cgraph.c (dump_cgraph):  Don't output newline before dump.  Add in
2417         "local" to the callgraph dump.  Output "after inlining" earlier.
2418         * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
2419         callgraph dumps.  Correct misspellings.
2420         (cgraph_decide_inlining):  Output number of insns before inlining.
2421         Output the calling function into which a function is inlined.
2422         (cgraph_decide_small_functions): Format dump file like always_inline.
2423
2424 2003-09-25  Loren James Rittle  <ljrittle@acm.org>
2425
2426         * config/i386/i386.h (ix86_return_in_memory): Add prototype.
2427
2428 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
2429
2430         * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
2431         FPR slots in the save area.
2432         (s390_emit_epilogue): Likewise.
2433
2434 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
2435
2436         * cgraph.h (cgraph_remove_edge): Declare.
2437         * cgraph.c (cgraph_remove_edge): Make extern.
2438         * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
2439         instead of cgraph_remove_call.
2440
2441 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
2442
2443         * objc/objc-act.c (gen_declaration_1): Fix printf format.
2444
2445 2003-09-25  Richard Earnshaw  <rearnsha@arm.com>
2446
2447         * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
2448         arm7tdmi core.
2449
2450 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
2451
2452         * config/darwin-protos.h (objc_image_info_section):
2453         New prototype.
2454
2455 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
2456
2457         * Makefile.in (stub-objc.o): Depend on $(GGC_H).
2458
2459 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
2460
2461         * config.gcc: Get rid of more gratuitious 'x'es.  Actually allow
2462         tsc701 as a --with-cpu, --with-tune setting for sparc.
2463
2464 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
2465
2466         * c-parse.in (objc_try_stmt): Do not specify a %type.
2467
2468 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
2469
2470         * config.gcc: New 'widely ported system' clause for rtems.
2471         Set thread file there, not in individual clauses.
2472
2473 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
2474
2475         PR target/6222
2476         * config/mips/mips.c (mips_va_arg): Handle arguments that must be
2477         passed on the stack.
2478
2479 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
2480
2481         * config.gcc (widely ported systems section): Mostly alphabetize
2482         by system.  Comment the case where we can't.
2483         * config.gcc (widely ported systems section): Reindent and clean up.
2484
2485         * config.gcc: Remove some unnecessary uses of 'x' in case statements.
2486         Actually allow ep9312 as an arm --with-arch setting.
2487
2488         * config.gcc (*-hpux11): Disable fixproto.
2489
2490 2003-09-24  Phil Edwards  <phil@codesourcery.com>
2491
2492         PR pch/12112
2493         * gcc/cppfiles.c (pch_open_file): Return based on combined
2494         result of all files.
2495         (validate_pch): Return validate flag for current file.
2496
2497 2003-09-24  Roger Sayle  <roger@eyesopen.com>
2498
2499         PR bootstrap/12358
2500         * fold-const.c (tree_swap_operands_p): Only reorder operands when
2501         one of the operands is constant.
2502
2503 2003-09-24  Ziemowit Laski  <zlaski@apple.com>
2504
2505         MERGE OF objc-improvements-branch into MAINLINE:
2506         * Makefile.in (C_OBJS): Add in stub-objc.o.
2507         (c-parse.y): Change sed demarcations to begin with '@@'.
2508         (stub-objc.o): New rule.
2509         * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
2510         flag_replace_objc_classes): New flags.
2511         * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
2512         RID_AT_SYNCHRONIZED): New keywords.
2513         (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
2514         flag_replace_objc_classes): New flags.
2515         (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
2516         objc_comptypes, objc_message_selector, lookup_objc_ivar,
2517         get_current_scope, objc_mark_locals_volatile): New prototypes,
2518         some moved from c-tree.h.
2519         * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
2520         (finish_decl): Adjust where objc_check_decl() gets called.
2521         * c-lang.c (lookup_interface, is_class_name, objc_is_id,  objc_check_decl,
2522         objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
2523         * c-opts.c (c_common_handle_option): Add handling for  flag_nil_receivers,
2524         flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
2525         * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
2526         '@@end_ifc', respectively.
2527         (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
2528         (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
2529         objc_finally_block): New rules.
2530         (component_decl_list2): Clean up semantic action for @defs construct.
2531         (component_decl, c99_block_start): Remove call to add_objc_decls().
2532         (poplevel): Add call to objc_clear_super_receiver().
2533         (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
2534         constructs.
2535         (classdef, methodprotolist): Clean up/simplify.
2536         (methodprotolist2): Eliminate.
2537         (methodproto): Call add_method() instead of add_class_method() and
2538         add_instance_method().
2539         (receiver): Add TYPENAME production.
2540         (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
2541         (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
2542         AT_SYNCHRONIZED.
2543         * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
2544         objc_comptypes, objc_message_selector)
2545         * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
2546         struct and pointer types.
2547         (build_c_cast): Do not discard ObjC protocol qualifiers.
2548         (convert_for_assignment): Cache result of comp_target_types() instead
2549         of calling it more than once.
2550         * c.opt (fnext-runtime): Update description string.
2551         (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
2552         New ObjC/ObjC++-specific flags.
2553         * function.h (GCC_FUNCTION_H): Header guard.
2554         * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
2555         * stub-objc.c: New file, to be used to satisfy references to ObjC
2556         functions by the C and C++ front-ends.
2557         * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
2558         * config/darwin.h (FUNCTION): Add in_objc_image_info.
2559         (SECTION_FUNCTION): Add objc_image_info_section.
2560         * doc/invoke.texi: Link to GCC web site for Objective-C information.
2561         (-fconstant-string-class): Update documentation.
2562         (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
2563         -fzero-link): New documentation.
2564         * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
2565         with '@@'.
2566         * objc/lang-specs.h (@objective-c-header): Fix -E spec.
2567         * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
2568         throughout; provide casts for return values from memory allocation
2569         functions (xmalloc, alloca, ggc_alloc, etc.).
2570         (OBJC_VOID_AT_END): New macro.
2571         (rtl.h): Do not #include any more.
2572         (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
2573         (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
2574         TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
2575         TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
2576         TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
2577         (struct val_stack, catch_count_stack, exc_binding_stack,  val_stack_push,
2578         val_stack_pop): New.
2579         (objc_check_decl): Fix precondition for error message, along with
2580         the message itself.
2581         (lookup_and_install_protocols): Remove nonexistent protocols from
2582         protocol list instead of returning error_mark_node.
2583         (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
2584         (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
2585         (synth_module_prologue): General clean-up; construct NeXT-specific
2586         runtime API prototypes if needed.
2587         (build_string_class_template): Remove.
2588         (check_string_class_template, string_layout_checked): New.
2589         (build_objc_string_object): Generalize to work with
2590         -fconstant-string-class.
2591         (build_objc_symtab_template): Fix layout for the NeXT runtime.
2592         (build_metadata_decl): New.
2593         (forward_declare_categories): Call build_metadata_decl() instead of
2594         create_builtin_decl() et al.
2595         (build_module_descriptor): Use OBJC_VOID_AT_END instead of
2596         void_list_node_1.
2597         (build_selector_reference_decl, build_class_reference_decl,
2598         build_objc_string_decl): Do not set TREE_READONLY.
2599         (get_proto_encoding): Do not call hack_method_prototype().
2600         (get_class_reference): Add failure mode for invalid class names;
2601         support -fzero-link; defer if in an ObjC++ template declaration.
2602         (objc_declare_alias, objc_declare_class): Fix up duplicate name
2603         lookup; check for global scope if in ObjC++.
2604         (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
2605         RECORD_TYPE, IDENTIFIER_NODE, etc.)
2606         (objc_is_id): Removed.
2607         (objc_is_object_ptr): New function.
2608         (get_class_ivars_from_name): New function, used for @defs construct.
2609         (get_class_ivars): Add option to return raw ivars; create a
2610         ClASS_OWN_IVARS list for each class as needed.
2611         (objc_enter_block, objc_exit_block, objc_declare_variable,
2612         objc_build_throw_stmt, val_stack_push, val_stack_pop,
2613         objc_build_try_enter_fragment, objc_build_extract_expr,
2614         objc_build_try_exit_fragment, objc_build_extract_fragment,
2615         objc_build_try_prologue, objc_build_try_epilogue,
2616         objc_build_catch_stmt, objc_build_catch_epilogue,
2617         objc_build_finally_prologue, objc_build_finally_epilogue,
2618         objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
2619         objc_build_synchronized_epilogue, build_objc_exception_stuff):
2620         New functions.
2621         (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
2622         the future).
2623         (build_private_template): Fix up calls to get_class_ivars().
2624         (offset_is_register, forwarding_offset): Remove.
2625         (objc_method_parm_type, objc_encoded_type_size): New functions.
2626         (encode_method_prototype): Simplify to no longer depend on
2627         back-end information.
2628         (build_tmp_function_decl_xxx, build_tmp_function_decl,
2629         hack_method_prototype): Removed.
2630         (generate_protocol_references): Remove calls to
2631         build_tmp_function_decl().
2632         (generate_protocols): Adjust calls to encode_method_prototype().
2633         (build_class_template): Generate sel_id' and 'gc_object_type' fields
2634         for the NeXT runtime.
2635         (synth_forward_declarations): Call build_metadata_decl().
2636         (check_ivars): Check that the number of ivars matches also.
2637         (build_super_template): Modify super_type directly; disable debugging
2638         output while generating decl.
2639         (build_ivar_list_initializer): Skip list elements that are not
2640         FIELD_DECLs.
2641         (ivar_list_length): New function.
2642         (generate_ivar_lists): Call ivar_list_length() instead of list_length()
2643         and encode_method_prototype() instead of encode_method_def().
2644         (build_shared_structure_initializer): Generate 'sel_id' field for
2645         the NeXT runtime.
2646         (generate_category): Do not set TREE_USED.
2647         (build_keyword_selector): Ditto; transform into a function argument
2648         chain.
2649         (get_arg_type_list): If there are no user-specified arguments, use
2650         '...'; use OBJC_VOID_AT_END.
2651         (check_duplicates): Add a parameter indicating whether methods or
2652         selectors are being checked.
2653         (receiver_is_class_object): Add parameters indicating whether
2654         receiver is 'self' or 'super'; robustify.
2655         (build_message_expr): Defer call to finish_message_expr() if
2656         inside an ObjC++ template.
2657         (lookup_method_in_hash_lists): New function.
2658         (finish_message_expr): Complete rewrite/fix.
2659         (build_objc_method_call): Ditto; factor out commonalities between
2660         the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
2661         messenger variants on the NeXT.
2662         (lookup_instance_method_static, lookup_class_method_static):
2663         Fold into a single lookup_method_static() function with an
2664         additional parameter.
2665         (add_class_method, add_instance_method): Fold into a single
2666         add_method() function with an additional parameter.
2667         (add_category): Make duplicate categories a hard error in ObjC++.
2668         (add_instance_variable): Properly handle unnamed ivars, arrays of
2669         zero or no size and bitfields.  In ObjC++, check for nontrivial
2670         C++ class instances.
2671         (is_public): Allow C functions to access non-@public ivars, with
2672         a warning.
2673         (start_class): Move common initializations to
2674         synth_module_prologue(); check for global scope if in ObjC++.
2675         (continue_class): Fix calls to finish_struct().
2676         (objc_declare_protocols, start_protocol): Check for global scope
2677         if in ObjC++.
2678         (encode_pointer): Encode 'BOOL *' specially on the NeXT.
2679         (encode_aggregate_within): Rewrite to properly distinguish
2680         struct tags from typedefs in both ObjC and ObjC++.
2681         (encode_bitfield, encode_complete_bitfield): Remove.
2682         (encode_next_bitfield, encode_gnu_bitfield): New functions.
2683         (encode_field_decl): Call encode_next_bitfield() or
2684         encode_gnu_bitfield() as needed.
2685         (synth_self_and_ucmd_args): New function.
2686         (start_method_def): Use it.
2687         (objc_types_are_equivalent): New function.
2688         (comp_proto_with_proto): Use it instead of comptypes(), since
2689         we need symmetry.
2690         (really_start_method): Use lookup_method_static() instead of
2691         lookup_class_method_static() and lookup_instance_method_static();
2692         Emit 'extern "C"' if in ObjC++ mode.
2693         (add_objc_decls): Removed.
2694         (UOBJC_SUPER_scope): New variable.
2695         (get_super_receiver): Move construction of 'super' from
2696         add_objc_decls(); remove dependency on struct objc_class.
2697         (encode_method_def): Removed; encode_method_prototype() is
2698         used instead.
2699         (objc_clear_super_receiver): New function.
2700         (objc_expand_function_end): Do not do anything for ordinary
2701         C functions.
2702         (finish_method_def): Mark ObjC methods as un-inlinable.
2703         (gen_declaration_1): Emit widths of bitfields.
2704         (finish_objc): Call generate_objc_image_info() if needed;
2705         use check_duplicates() when checking for selector duplicates.
2706         (generate_objc_image_info): New function.
2707         * objc/objc-act.h (add_instance_method, add_class_method,
2708         get_class_ivars): Remove prototypes.
2709         (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
2710         objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
2711         objc_build_catch_stmt, objc_build_catch_epilogue,
2712         objc_build_finally_prologue, objc_build_finally_epilogue,
2713         add_method, get_class_ivars_from_name): New prototypes.
2714         (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
2715         (TYPE_PROTOCOL_LIST): Robustify to distinguish from
2716         TRANSLATION_UNIT_DECLs.
2717         (OBJC_TYPE_NAME): New.
2718         (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
2719         got included.
2720         (IS_SUPER): Robustify.
2721         (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
2722         umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
2723         objc_exception_try_enter_decl, objc_exception_try_exit_decl,
2724         objc_exception_match_decl, objc_exception_throw_decl,
2725         objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
2726         objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
2727         objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
2728         objc_catch_type): New ObjC/ObjC++ roots.
2729         * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
2730         ObjC/ObjC++ tree node codes.
2731
2732 2003-09-24  Alexandre Oliva  <aoliva@redhat.com>
2733
2734         * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
2735         code path that calls a handler.
2736
2737 2003-09-24  Nathanael Nerode  <neroden@gcc.gnu.org>
2738
2739         * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
2740         Disable fixproto.
2741
2742         * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
2743         the section giving $with_cpu defaults by target.
2744
2745         * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
2746         arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
2747         rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
2748         rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
2749         rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
2750         i[34567]86-pc-msdosdjgpp*): Disable fixproto.
2751
2752 2003-09-24  David Edelsohn  <edelsohn@gnu.org>
2753
2754         * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
2755         together.  Protect load string instruction with TARGET_STRING.
2756         (movti_string): Collapse case 1 and 2 together.
2757
2758 2003-09-24  Nathan Sidwell  <nathan@codesourcery.com>
2759
2760         * c-common.c (c_common_type_for_mode): Check for VOIDmode.
2761
2762 2003-09-24  Richard Earnshaw  <rearnsha@arm.com>
2763
2764         * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
2765         do...while(0)
2766
2767 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
2768
2769         * config.gcc: Move use_fixproto=no from generic vxworks clause to
2770         specific one.
2771
2772         * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
2773         (accidentally missed in last pass).
2774
2775 2003-09-23  Andrew Pinski  <apinski@apple.com>
2776
2777         PR bootstrap/12383
2778         * configure: Regenerate.
2779
2780 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
2781
2782         * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
2783         missed in last pass).
2784
2785 2003-09-23  Alexandre Oliva  <aoliva@redhat.com>
2786
2787         * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
2788         constant.
2789
2790 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
2791
2792         * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
2793
2794         * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
2795         powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
2796         powerpcle-*-eabi*): Disable fixproto.
2797
2798         * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
2799         specific FreeBSD clauses.
2800         * config.gcc: Move use_fixproto=no from generic NetBSD clause to
2801         specific NetBSD clauses.
2802         * config.gcc: Move use_fixproto=no from generic OpenBSD clause
2803         to specific OpenBSD clauses.
2804
2805 2003-09-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2806
2807         * pa.c (hppa_expand_prologue): Do pic register save in frame marker
2808         without adding a frame note.
2809         * pa.md (allocate_stack): Save pic register in new frame marker when
2810         generating pic code.
2811
2812 2003-09-23  Kelley Cook  <kelleycook@wideopenwest.com>
2813
2814         * cgraphunit.c (cgraph_expand_all_functions): Renamed from
2815         cgraph_expand_functions.
2816
2817 2003-09-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2818
2819         * Makefile.in (gnucompare*): Merge into ...
2820         (slowcompare*): ... here.
2821         (fastcompare*): New targets.
2822         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
2823         other "fast" cmp programs.
2824         * configure: Regenerate.
2825
2826 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2827
2828         * targhooks.c: Include output.h.
2829         * Makefile.in (targhooks.o): Add output.h to dependency list.
2830
2831 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2832
2833         * config.host: Removed superfluous newline.
2834
2835 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
2836
2837         * config.gcc: Use ${target}, not $machine.
2838         * configure.in: Don't set $machine.
2839         * configure: Regenerate.
2840
2841 2003-09-23  Geoffrey Keating  <geoffk@apple.com>
2842
2843         * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
2844
2845         * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
2846         pass zero-size arrays by reference.
2847         (rs6000_va_arg): Likewise.
2848
2849 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
2850
2851         * config.gcc: Set use_fixproto=no in each specific *-gnu*
2852         configuration, rather than the generic one.
2853
2854 2003-09-23  Richard Henderson  <rth@redhat.com>
2855
2856         * tree-inline.c (remap_save_expr): Map new save_expr to identity
2857         rather than to error_mark_node.
2858
2859 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2860
2861         * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
2862         Update description.
2863         * configure: Regenerate.
2864         * config.in: Likewise.
2865         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
2866         HAVE_GAS_SHF_MERGE value.
2867         * varasm.c (mergeable_string_section): Likewise.
2868         (mergeable_constant_section): Likewise.
2869
2870 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2871
2872         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
2873         value.
2874
2875 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2876
2877         * target.h (struct gcc_target): New member external_libcall.
2878         * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
2879         (TARGET_ASM_OUT): Use it.
2880         * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
2881         * targhooks.c: Convert to ISO C 90.
2882         (default_external_libcall): New function.
2883         * targhooks.h (default_external_libcall): Declare.
2884         * varasm.c (assemble_external_libcall): Use
2885         targetm.asm_out.external_libcall instead of
2886         ASM_OUTPUT_EXTERNAL_LIBCALL.
2887         * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
2888         (mips_output_external_libcall): Declare.
2889         * config/mips/mips.c (mips_output_external_libcall): Change
2890         definition guard.
2891         Change to match TARGET_ASM_EXTERNAL_LIBCALL.
2892         Only operate for O32 ABI.
2893         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
2894         instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
2895         * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
2896         superceded by TARGET_ASM_EXTERNAL_LIBCALL.
2897
2898 2003-09-22  Nathnael Nerode  <neroden@gcc.gnu.org>
2899
2900         * config.gcc: Do per-target disabling of fixproto here in clauses,
2901         not in t- fragments.
2902         * configure.in: Adjust to set STMP_FIXPROTO correctly.
2903         * configure: Regenerate.
2904         * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
2905         config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
2906         t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
2907         xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
2908         * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
2909         t-interix, t-linux-aout:  Delete files consisting only of
2910         setting of STMP_FIXPROTO.
2911
2912         * config.host: Allow unknown hosts (not targets).  Allow
2913         ns32k-*-netbsdelf* as a host (not a target).  Remove redundant
2914         empty clauses.  Remove useless obsolete-configuration clause.
2915         Prune unsupported configuration list.  Collapse identical
2916         clauses for closely related systems.  Rewrite comment for
2917         unsupported hosts list.  Reorganize a little.
2918
2919 2003-09-22  Richard Henderson  <rth@redhat.com>
2920
2921         * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
2922         not precision.
2923
2924 2003-09-22  David Edelsohn  <edelsohn@gnu.org>
2925             Hartmut Penner  <hpenner@de.ibm.com>
2926             Segher Boessenkool  <boessen@de.ibm.com>
2927
2928         * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
2929         (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
2930         (rs6000_split_altivec_in_gprs): Rename to ...
2931         (rs6000_split_multireg_move): Add support for update addressing.
2932         * config/rs6000/rs6000-protos.h: Same.
2933         * config/rs6000/altivec.md: Same.
2934         * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
2935         multiple GPRs.
2936         (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
2937         (movti_power): Use new splitter for multiple GPRs.
2938         (movti_string): Same.
2939         (movti_ppc64): Same.
2940
2941 2003-09-22  Bob Wilson  <bob.wilson@acm.org>
2942
2943         * config/xtensa/xtensa-protos.h: Convert to ISO C90.
2944         * config/xtensa/xtensa.c: Convert to ISO C90.  Minor formatting fixes.
2945
2946 2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
2947
2948         * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
2949         (andsi3): Set attr cc to set_zn when using shifts or adds.
2950
2951 2003-09-22  Bernardo Innocenti <bernie@develer.com>
2952
2953         * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
2954
2955 2003-09-22  Bernardo Innocenti  <bernie@develer.com>
2956
2957         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
2958         Resurrect -mrtd option.
2959
2960 2003-09-21  Andrew Pinski  <pinskia@physics.uc.edu>
2961
2962         PR target/12281
2963         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
2964         mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
2965
2966 2003-09-22  Olivier Hainque  <hainque@act-europe.fr>
2967
2968         PR target/9786
2969         * reg-stack.c (convert_regs_1): Purge possible dead eh edges
2970         after potential deletion of trapping insn. Avoids later ICE
2971         from call to fixup_abnormal_edges.
2972         (convert_regs_2): Stack the current block successors before
2973         processing this block, that is, before the potential deletion of
2974         dead edges by convert_regs_1, because these edges have been used
2975         to initialize the predecessors count.
2976
2977 2003-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
2978
2979         * real.c: Fix several nits in the head comment.
2980
2981 2003-09-21  Richard Henderson  <rth@redhat.com>
2982
2983         * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
2984         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
2985         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
2986         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
2987         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
2988
2989 2003-09-21  Richard Henderson  <rth@redhat.com>
2990
2991         * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
2992         (TREE_FILENAME, TREE_LINENO): Likewise.
2993         (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
2994         (TREE_LOCUS_SET_P): New.
2995         * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
2996         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
2997         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
2998         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
2999         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
3000
3001 2003-09-21  Nathanael Nerode  <neroden@gcc.gnu.org>
3002
3003         * config/vax/vax-protos.h: Convert to ISO C90.
3004         * config/vax/vax.c: Convert to ISO C90.
3005
3006 2003-09-21  Graham Stott  <grahams@btinternet.com>
3007
3008        PR target/12353
3009        * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
3010
3011 2003-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
3012
3013         PR target/12301
3014         * reorg.c (stop_search_p): Return 1 for insns that can
3015         throw internally.
3016
3017 2003-09-20  Richard Henderson  <rth@redhat.com>
3018
3019         * c-format.c (gcc_diag_char_table): Add %J.
3020         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
3021         (check_format_types): Fix wanted_type name lookup.
3022         (init_dynamic_diag_info): Setup %J.
3023         * diagnostic.c (text_specifies_location): Implement %J.
3024         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
3025         dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
3026         tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
3027         config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
3028         config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
3029
3030         * tree-inline.c: Include intl.h
3031         (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
3032         * Makefile.in (tree-inline.o): Update.
3033
3034 2003-09-20  Roger Sayle  <roger@eyesopen.com>
3035
3036         * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
3037         transformation of a>=0 into (unsigned)a<0x80000000.
3038
3039 2003-09-20  Andrew Pinski <apinski@apple.com>
3040
3041         * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
3042
3043 2003-09-20  Nathanael Nerode  <neroden@gcc.gnu.org>
3044
3045         * Makefile.in: Don't set (unused) DLLTOOL.
3046
3047         * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
3048         Remove obsolete references to ENQUIRE.
3049
3050 2003-09-19  Nathanael Nerode  <neroden@gcc.gnu.org>
3051
3052         * configure.in: Remove --with-elf, which doesn't work.
3053         * configure: Regenerate.
3054         * config.gcc: Remove references to $elf, which does nothing.
3055
3056         * config/i386/xm-vsta.h: Remove xm-file believed useless.
3057         * config.build (i386-vsta): Remove reference to it.
3058         * config.host (i386-vsta): Remove reference to it.
3059
3060 2003-09-19  Phil Edwards  <phil@codesourcery.com>
3061
3062         * doc/install.texi:  Document the multiple testsuite options.
3063
3064 2003-09-19  Gerald Pfeifer  <gerald@pfeifer.com>
3065
3066         * doc/install.texi (Specific): Add the specific versions of GCC
3067         where support for FreeBSD 1, HP-UX version 9 and older, and AIX
3068         version 3 and older was discontinued.
3069
3070 2003-09-19      Joel Sherrill <joel@oarcorp.com>
3071
3072         * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
3073         68881.
3074
3075 2003-09-19  Bernardo Innocenti  <bernie@develer.com>
3076
3077         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
3078         for -m68030, -m68020-60 and -m68020-40.
3079         * config/m68k/m68k.h (TARGET_68030): New target flag.
3080         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
3081         TARGET_REGPARM): Remove.
3082         * config/m68k/m68k.h: Regroup and renumber target flags.
3083         * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
3084         * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
3085         * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
3086         * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
3087         * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
3088
3089 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3090
3091         * config/m68k/t-rtems (m68k-*-rtems*): New.
3092         * config.gcc: Use config/m68k/t-rtems.
3093
3094 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3095
3096         * config/mips/t-rtems: New.
3097         * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
3098
3099 2003-09-19  Kelley Cook  <kelleycook@wideopenwest.com>
3100
3101         * cgraph.c: Fix typo in debugging output.
3102
3103 2003-09-19  T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
3104             Eric Botcazou <ebotcazou@libertysurf.fr>
3105
3106         PR target/12166
3107         * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
3108
3109 2003-09-18  Mike Stump  <mrs@apple.com>
3110
3111         * c-ppoutput.c (print):  Use fileline typedef for field 'line'.
3112         (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
3113         cb_ident, cb_def_pragma):  Use fileline typedef.
3114         * cpphash.h (struct cpp_reader):  Likewise for field out.first_line.
3115
3116 2003-09-18  Danny Smith  <dannysmith@users.sourceforge.net>
3117
3118         * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
3119         total parm size if a parm has incomplete type.
3120         (gen_fastcall_suffix): Likewise.
3121
3122 2003-09-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3123
3124         * except.c (output_function_exception_table): Adjust last change
3125         to handle TYPE of INTEGER_CST.
3126
3127 2003-09-18  Mark Mitchell  <mark@codesourcery.com>
3128
3129         PR target/11184
3130         * builtins.c (expand_builtin_apply): Use convert_memory_address
3131         before returning the value.
3132
3133         * alias.c (find_base_value): Simplify use of
3134         convert_memory_address.
3135         (find_base_term): Likewise.
3136         * builtins.c (expand_builtin_stejmp_setup): Likewise.
3137         (expand_builtin_longjmp): Likewise.
3138         (expand_builtin_prefetch): Likewise.
3139         (get_memory_rtx): Likewise.
3140         (expand_builtin_return): Likewise.
3141         (expand_builtin_memcpy): Likewise.
3142         (expand_builtin_strncpy): Likewise.
3143         (expand_builtin_memset): Likewise.
3144         (expand_builtin_va_arg): Likewise.
3145         (expand_builtin_va_copy): Likewise.
3146         (expand_builtin_alloca): Likewise.
3147         * calls.c (expand_call): Likewise.
3148         * except.c (expand_builtin_extract_return_addr): Likewise.
3149         (expand_builtin_eh_return): Likewise.
3150         * explow.c (convert_memory_address): Define even when
3151         POINTER_EXTEND_UNSIGNED is not defined.  Do nothing if the address
3152         is already in the right mode.
3153         * explow.c (memory_address): Simplify use of convert_memory_address.
3154         (probe_stack_range): Likewise.
3155         * expmed.c (make_tree): Likewise.
3156         * expr.c (emit_block_move_in_libcall): Likewise.
3157         (expand_assignment): Likewise.
3158         (expand_expr): Likewise.
3159         * function.c (assign_parms): Likewise.
3160         (expand_function_end): Likewise.
3161         * integrate.c (copy_rtx_and_substitute): Likewise.
3162         * stmt.c (expand_computed_goto): Likewise.
3163
3164 2003-09-18  Roger Sayle  <roger@eyesopen.com>
3165
3166         * simplify-rtx.c (simplify_unary_operation): Only transform
3167         (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
3168         is -1.  RTL "not" is a bit-wise not, "~", not a logical not "!".
3169
3170 2003-09-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3171
3172         PR target/11674
3173         * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
3174
3175 2003-09-18  Roger Sayle  <roger@eyesopen.com>
3176
3177         * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
3178         PARITY_EXPR): Delete unused tree codes.
3179         * c-common.c (c_common_truthvalue_conversion): Delete references
3180         to FFS_EXPR and POPCOUNT_EXPR.
3181         * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
3182         (pp_c_expression): Likewise.
3183         * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
3184         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
3185         * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
3186         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.  Add support for calls to
3187         BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
3188         and long long variants.
3189
3190 2003-09-18  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3191
3192         * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
3193         * c-pretty-print.c: Fix formatting.
3194         (pp_c_integer_constant): Append type annotation to literals.  Tidy.
3195         (pp_c_type_specifier): Tidy.
3196         (pp_c_compound_literal): New function.
3197         (pp_c_initializer): Simplify..
3198         (pp_c_initializer_list): Likewise.
3199         (pp_c_brace_enclosed_initializer_list): New function.
3200         (pp_c_postfix_expression): Simplify.
3201
3202 2003-09-17  Alexandre Oliva  <aoliva@redhat.com>
3203
3204         * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
3205         one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
3206
3207 2003-09-17  Richard Henderson  <rth@redhat.com>
3208
3209         * tree-optimize.c (tree_rest_of_compilation): Save and restore
3210         input_location.
3211
3212 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
3213
3214         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
3215
3216 2003-09-17  Richard Henderson  <rth@redhat.com>
3217
3218         * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
3219
3220 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3221
3222         * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
3223         * configure: Regenerate.
3224
3225 2003-09-17  Mark Mitchell  <mark@codesourcery.com>
3226
3227         PR debug/12066
3228         * dbxout.c (dbxout_init): Use a langhook to find builtin types.
3229         * langhooks-def.h (lhd_return_null_tree_v): New function.
3230         (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
3231         (LANG_HOOKS_DECLS): Add it to the intializer.
3232         * langhooks.c (lhd_return_null_tree_v): New function.
3233         * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
3234
3235 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
3236
3237         * configure.in: Quote gcc_config_arguments for configargs.h.
3238         * configure: Regenerated.
3239         * gccbug.in: Don't shell-expand gcc_config_arguments.
3240
3241 2003-09-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3242
3243         PR c++/11357
3244         * c-pretty-print.c (pp_c_floating_constant): Append
3245         type-annotation to floating constants.
3246
3247 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3248
3249         * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
3250         Define _ABIO32.
3251         Use it for _MIPS_SIM.
3252         * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
3253
3254         * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
3255         Moved ...
3256         * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
3257         updating comment.
3258         Fixes PR target/10190.
3259
3260 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
3261
3262         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
3263         to shared libraries.
3264
3265 2003-09-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
3266
3267         PR optimization/11646
3268         * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
3269         EDGE_ABNORMAL flag for EH edges.
3270         * toplev.c (rest_of_handle_cse): Delete unreachable blocks
3271         if dead edges were purged.
3272
3273 2003-09-16  Bernardo Innocenti  <bernie@develer.com>
3274
3275         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
3276         * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
3277         * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
3278         * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
3279
3280 2003-09-16  Ian Lance Taylor  <ian@wasabisystems.com>
3281
3282         * cfgcleanup.c (label_is_jump_target_p): Correct use of table
3283         returned by tablejump_p.
3284
3285 2003-09-16  Joel Brobecker  <brobecker@gnat.com>
3286
3287         * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
3288
3289 2003-09-16  Roger Sayle  <roger@eyesopen.com>
3290
3291         PR bootstrap/12269
3292         * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
3293         argument to be VOIDmode, taking the mode of the comparison from
3294         the operands.  Only call simplify_relational_operation if we
3295         know the mode of the comparison.  Honor FLOAT_STORE_FLAG_VALUE
3296         if comparison has a floating point result.  Ensure that the
3297         result is always of the specified mode.
3298         (simplify_replace_rtx): Simplify call to simplify_gen_relational.
3299         (simplify_unary_operation): Ensure the correct mode and cmp_mode
3300         are always passed to simplify_gen_relational.  Simplify NOT of
3301         comparison operator in any mode, not just BImode.
3302         (simplify_ternary_operation): Correct tests on the return value
3303         of simplify_relational_operation to use const_true_rtx, not
3304         const1_rtx.  Abort if it ever returns a non-constant result.
3305
3306         * cfgloopanal.c (count_strange_loop_iterations): Use the function
3307         simplify_relational_operation, not simplify_gen_relational, if
3308         we're only interested in constant comparisons and will ignore
3309         non-constant results.
3310
3311 2003-09-16  Roger Sayle  <roger@eyesopen.com>
3312
3313         * fold-const.c (tree_swap_operands_p): New function to determine
3314         the prefered ordering of operands.
3315         (fold): Numerous clean-ups.  Use tree_swap_operands_p when swapping
3316         operands to commutative, comparison or ternary operators.  Replace
3317         uses of TREE_SET_CODE with recursive call to fold.  Remove duplicate
3318         transformation of A ? B : C into !A ? C : B.
3319
3320 2003-09-16  Jakub Jelinek  <jakub@redhat.com>
3321
3322         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3323         * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3324         * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3325         * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3326         * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3327         * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3328         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3329         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3330
3331 2003-09-16  Jason Merrill  <jason@redhat.com>
3332             Jakub Jelinek  <jakub@redhat.com>
3333
3334         * c-common.c (handle_warn_unused_result_attribute): New function.
3335         (c_common_attribute_table): Add warn_unused_result.
3336         (c_expand_expr): Issue warning when result of inlined function
3337         with warn_unused_result attribute is ignored.
3338         * calls.c (expand_call): Issue warning when result of function
3339         with warn_unused_result attribute is ignored.
3340         * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
3341         * expr.c (expr_wfl_stack): Define.
3342         (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
3343         pass const0_rtx as target.  Chain locations into expr_wfl_stack.
3344         * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
3345         bit if inlined function has warn_unused_result attribute.
3346         * input.h (expr_wfl_stack): Declare.
3347         * doc/extend.texi: Document warn_unused_result attribute.
3348
3349 2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
3350
3351         * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
3352
3353 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
3354
3355         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
3356         ATTRIBUTE_UNUSED.
3357         (call_insn_operand): For PIC, don't allow a direct call to a
3358         function in a different section than the current one.
3359
3360 2003-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3361
3362         * doc/invoke.texi (Warning Options): Add missing hyphen before
3363         "Wimport".  Change "-Wno-endif-labels" to "-Wendif-labels".
3364         Move "-Wold-style-definition" to the C-only section.
3365         Fix the ordering of the warning options.
3366
3367 2003-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3368             Jeff Law  <law@redhat.com>
3369
3370         * gcse.c (remove_reachable_equiv_notes): New.
3371         replace_store_insn): Call it.  Update antic list.
3372         (store_killed_in_insn): Take REG_EQUAL notes into account.
3373         (build_store_vectors, delete_store): Add parameter to
3374         replace_store_insn call.
3375
3376 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
3377
3378         * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
3379         SYMBOL_REF_LOCAL_P.
3380
3381 2003-09-15  Kazu Hirata  <kazu@cs.umass.edu>
3382
3383         * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
3384         (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
3385         * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
3386         Likewise.
3387         * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
3388         Likewise.
3389         * config/rs6000/rs6000.c (function_arg_padding): Likewise.
3390         * config/sparc/sparc.c (function_arg_padding): Likewise.
3391
3392 2003-09-15  Vladimir Makarov  <vmakarov@redhat.com>
3393
3394         * haifa-sched.c (schedule_block): Use ready_remove_first instead
3395         of choose_ready for non-dfa insn scheduling.
3396
3397 2003-09-15  Andreas Jaeger  <aj@suse.de>
3398             Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3399
3400         * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
3401         * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
3402         * c-parse.in: Warn about old-style parameter definition.
3403         * c-common.c: Define warn_old_style_defintion.
3404         * c-common.h: Declare it.
3405         * c.opt: Add Wold-style-defintion.
3406
3407 2003-09-15  Andreas Jaeger  <aj@suse.de>
3408
3409         * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
3410         * config/rs6000/rs6000.c: Likewise.
3411
3412 2003-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3413
3414         PR optimization/10914
3415         * expr.h (get_condition, canonicalize_condition): Declaration changed.
3416         * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
3417         and canonicalize_condition calls.
3418         * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
3419         delete_null_pointer_checks): Ditto.
3420         * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
3421         * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
3422         * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
3423         (canonicalize_condition, get_condition): Allow to return comparisons
3424         of cc mode registers.
3425         * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
3426         cc mode registers comparison in condition.
3427
3428 2003-09-12  Mark Mitchell  <mark@codesourcery.com>
3429
3430         * coverage.c (create_coverage): Do not call pushlevel/poplevel.
3431         * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
3432         function.
3433         * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
3434
3435 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
3436
3437         * combine.c (simplify_comparison): Convert
3438         (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
3439         (eq (and (lshiftrt X Y) 1) 0).
3440
3441 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
3442
3443         * alias.c: Follow spelling conventions.
3444         * cpphash.h: Likewise.
3445         * fold-const.c: Likewise.
3446
3447 2003-09-14  Alexandre Oliva  <aoliva@redhat.com>
3448
3449         * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
3450         * c-lex.c (cb_line_change): Skip line changing whenever
3451         c-ppoutput.c would.
3452
3453 2003-09-14  Steven Bosscher  <steven@gcc.gnu.org>
3454
3455         * ra.c: Convert to ISO C90 prototypes.
3456         * ra-build.c: Likewise.
3457         * ra-colorize.c: Likewise.
3458         * ra-debug.c: Likewise.
3459         * ra-rewrite.c: Likewise.
3460
3461 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
3462
3463         * Makefile.in (%.dvi): Remove excess $(docdir).
3464
3465 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
3466
3467         * function.c (STACK_BYTES): Move definition to head of file.
3468         (assign_parms): Don't pass current_function_pretend_args_size
3469         directly to SETUP_INCOMING_VARARGS.  For partial register arguments,
3470         round current_function_pretend_args_size up to STACK_BYTES.  Skip any
3471         excess before laying out the argument.
3472
3473 2003-09-14  Andreas Jaeger  <aj@suse.de>
3474
3475         * objc/objc-act.c: Convert to ISO C90 prototypes.
3476         * objc/objc-act.h: Likewise.
3477
3478 2003-09-14  Olaf Hering  <olh@suse.de>
3479
3480         * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
3481
3482 2003-09-13  Andrew Pinski <pinskia@physics.uc.edu>
3483
3484         PR target/12021
3485         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
3486         as they already are done in config/m68k/m68k.h.
3487         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
3488
3489         * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
3490         (machopic_output_stub): Only generate pic base symbols when using pic
3491         and generate them in the form L00000000$spb.
3492
3493 2003-09-13  Richard Henderson  <rth@redhat.com>
3494
3495         * cgraphunit.c (cgraph_assemble_pending_functions): Export.
3496         (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
3497         * cgraph.h: Update.
3498
3499 2003-09-12  Dale Johannesen  <dalej@apple.com>
3500
3501         * config/rs6000/rs6000.c: Fix typos in previous.
3502
3503 2003-09-12  Ziemowit Laski  <zlaski@apple.com>
3504
3505         * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
3506         when allocating pp->buffer.
3507
3508 2003-09-12  Geoffrey Keating  <geoffk@apple.com>
3509
3510         * config/darwin.c (machopic_select_rtx_section): Use
3511         const_data_section for things that might require relocation.
3512
3513 2003-09-12  H.J. Lu  <hongjiu.lu@intel.com>
3514
3515         PR bootstrap/12264
3516         * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
3517
3518 2003-09-12  Bob Wilson  <bob.wilson@acm.org>
3519
3520         * config/xtensa/elf.h (ASM_SPEC): Remove no-density option.  Reformat.
3521         * config/xtensa/linux.h (ASM_SPEC): Likewise.
3522         * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
3523         -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
3524         -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
3525         -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
3526         -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
3527         -m[no-]hard-float-rsqrt options.  Delete corresponding MASK_* macros
3528         and redefine corresponding TARGET_* macros with constants from the
3529         xtensa-config.h header.
3530         * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
3531         for the options listed above.
3532
3533 2003-09-12  Dale Johannesen  <dalej@apple.com>
3534
3535         * config/rs6000/rs6000-protos.h:  Use C90 prototypes.
3536         * config/rs6000/rs6000-c.c:  Ditto.
3537         * config/rs6000/rs6000.c:  Ditto.
3538         * config/rs6000/ sysv4.h:  Ditto.
3539
3540 2003-09-12  Chris Lattner <sabre@nondot.org>
3541
3542         * loop.c: Move comments describing BIV's and GIV's to top of file
3543
3544 2003-09-12  Roger Sayle  <roger@eyesopen.com>
3545
3546         PR optimization/8967
3547         * alias.c (write_dependence_p): Modify to take an additional constp
3548         argument that controls whether the UNCHANGING_RTX_P flags are used.
3549         (anti_dependence, output_dependence): Adjust write_dependence_p
3550         callers to pass this additional argument, to return the same result.
3551         (unchanging_anti_dependence): New variant of anti_dependence that
3552         ignores the UNCHANGING_RTX_P property on memory references.
3553         * rtl.h (unchaning_anti_dependence): Prototype here.
3554         * flow.c (init_propagate_block): Place fake constant mem writes on
3555         the mem_set_list so that dead writes to const variables are deleted.
3556         (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
3557         (mark_used_regs): Likewise.
3558
3559 2003-09-12  Richard Sandiford  <rsandifo@redhat.com>
3560
3561         * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
3562         (mcore_secondary_reload_class): Declare.
3563         (mcore_output_inline_const_forced): Remove.
3564         * config/mcore/mcore.md (movsi): Remove the code that forced
3565         non-inlineable constants into a register if the target was r15
3566         or the stack pointer.  Remove constant restrictions from the main
3567         define_insn.  Remove r <- I, r <- M and r <- N alternatives in favor
3568         of an r <- P alternative.  Remove fallback define_insn for reload.
3569         (movhi, movqi): Use gen_lowpart rather than gen_SUBREG.  Remove reload
3570         define_insn.  Use mcore_output_move in the remaining define_insn.
3571         Adjust condition and constraints in the way as for movsi.
3572         (movdi): Always split unacceptable constants into two.  Use
3573         simplify_gen_subreg instead of operand_subword{,_force}.
3574         * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
3575         (mcore_output_move): Support HImode and QImode moves as well.
3576         (mcore_m15_operand_p): New function.
3577         (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
3578         (mcore_secondary_reload_class): New function.
3579         * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
3580         terms of mcore_secondary_reload_class.
3581
3582 2003-09-11  Mike Stump  <mrs@apple.com>
3583
3584         * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
3585
3586 2003-09-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3587
3588         * builtins.c (fold_builtin_logarithm): if N can't be truncated to
3589         MODE exactly, then only convert logN(N) -> 1.0 if
3590         flag_unsafe_math_optimizations is set.
3591
3592         * builtins.c (builtin_dconsts_init, dconstpi, dconste,
3593         init_builtin_dconsts): Delete.
3594         * emit-rtl.c (dconstpi, dconste): Define.
3595         (init_emit_once): Initialize dconstpi & dconste.
3596         * real.h (dconstpi, dconste): Declare.
3597
3598 2003-09-11  Alexandre Oliva  <aoliva@redhat.com>
3599
3600         PR fortran/11522
3601         * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
3602         for ultimate origin even if block is abstract.
3603
3604 2003-09-11  Roger Sayle  <roger@eyesopen.com>
3605
3606         * combine.c (combine_simplify_rtx): Move several NOT and NEG
3607         optimizations from here...
3608         * simplify-rtx.c (simplify_unary_operation): to here.  Recursively
3609         simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
3610
3611 2003-09-11  Richard Henderson  <rth@redhat.com>
3612
3613         * cgraphunit.c (cgraph_finalize_function): Add nested arg.
3614         Tweek tests for function already generated.
3615         (cgraph_expand_function): Don't double announce in !unit-at-a-time.
3616         * cgraph.h (cgraph_finalize_function): Update for extra arg.
3617         * c-decl.c (finish_function): Likewise.
3618
3619 2003-09-10  Joe Buck  <jbuck@welsh-buck.org>
3620
3621         * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
3622
3623 2003-09-10  Jerry Quinn  <jlquinn@optonline.net>
3624
3625         * real.c: Update URL to VAX floating point docs.
3626         (decode_vax_d): Extract 8 exponent bits instead of 7.
3627
3628 2003-09-10  Ian Lance Taylor  <ian@wasabisystems.com>
3629
3630         * combine.c (force_to_mode): Set fuller_mask based only on mask,
3631         not op_mode.
3632
3633 2003-09-11  Jan Hubicka  <jh@suse.cz>
3634
3635         * c-objc-common.c (c_cannot_inline_tree_fn): Warn
3636         on why function is not inlinable; do not check
3637         the body.
3638         (inline_forbidden_p): Move to...
3639         * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
3640         deal with alloca, longjmp.
3641         (inline_forbidden_p): New static function.
3642         (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
3643         find_builtin_longjmp_call): Kill.
3644
3645 2003-09-10  Richard Henderson  <rth@redhat.com>
3646
3647         * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
3648         * cgraphunit.c: Update to match.
3649         (record_call_1): Rearrange.  Call lang hook for language nodes.
3650         (cgraph_analyze_function): Don't call lower_function.
3651         * langhooks.h (struct lang_hooks_for_callgraph): Replace
3652         lower_function with analyze_expr.
3653         * langhooks-def.h: Update to match.
3654         * langhooks.c (lhd_callgraph_analyze_expr): New.
3655
3656 2003-09-10  Martin Husemann  <martin@duskware.de>
3657
3658         PR target/11965
3659         * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
3660         constants greater than 63.
3661         * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
3662         against constants greater than 31.
3663         (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
3664         constants greater than 63.
3665
3666 2003-09-09  Richard Henderson  <rth@redhat.com>
3667
3668         * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
3669         * cgraph.h (cgraph_finalize_function): Update.
3670         * c-decl.c (finish_function): Update.
3671
3672 2003-09-09  Devang Patel  <dpatel@apple.com>
3673
3674         * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
3675         * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
3676
3677 2003-09-09  Eric Christopher  <echristo@redhat.com>
3678
3679         * configure.in: Change usage of 'head' to 'sed 1q'.
3680         * configure: Regenerate.
3681
3682 2003-09-09  Richard Henderson  <rth@redhat.com>
3683
3684         * except.c: Include cgraph.h.
3685         (output_function_exception_table): Invoke
3686         cgraph_varpool_mark_needed_node.
3687         * Makefile.in (except.o): Update.
3688
3689 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
3690
3691         * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
3692         and use it throughout.
3693
3694 2003-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3695
3696         * builtins.c (real_dconstp, fold_builtin_logarithm,
3697         fold_builtin_exponent): New, split out from fold_builtin.  Also
3698         generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
3699         * emit-rtl.c (dconst3, dconst10, dconstthird): New.
3700         (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
3701         of hardcoded array size.
3702         * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
3703         (tree_expr_nonnegative_p): Likewise.
3704         * real.h (dconst3, dconst10, dconstthird): New.
3705
3706 2003-09-09  Jan Hubicka  <jh@suse.cz>
3707
3708         * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
3709         inline functions.
3710         (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
3711         DECL_SAVED_TREE.
3712
3713 2003-09-09  Roger Sayle  <roger@eyesopen.com>
3714
3715         * builtins.c (fold_builtin_cabs): Protect the complex argument
3716         against multiple evaluation when optimizing cabs* into sqrt*.
3717
3718 2003-09-09  Jan Hubicka  <jh@suse.cz>
3719
3720         * varasm.c (notice_global_symbol):  Properly deal with weak symbols.
3721
3722 2003-09-08  Kelley Cook <kelleycook@wideopenwest.com>
3723
3724         * Makefile.in: Revert yesterday's change.
3725
3726 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
3727             Peter Barada <peter@baradas.org>
3728
3729         * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
3730         * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
3731         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
3732         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
3733         * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
3734         * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
3735         * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
3736         (m68k_compute_frame_layout): New function.
3737         (m68k_initial_elimination_offset): New function.
3738         (m68k_output_function_prologue): ColdFire-specific movem handling.
3739         (m68k_output_function_epilogue): Likewise.
3740         * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
3741         (ARG_POINTER_REGNUM): Add new definition.
3742         (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
3743         (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
3744         (CAN_ELIMINATE): Likewise.
3745         (INITIAL_ELIMINATION_OFFSET): Likewise.
3746
3747 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
3748
3749         * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
3750         by removing redundant variable cfa_store_offset.
3751
3752 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
3753
3754         * langhooks-def.h (lhd_register_builtin_type): New function.
3755         (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
3756         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3757         * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
3758         * langhooks.c (lhd_register_builtin_type): New function.
3759         * c-common.h (c_register_builtin_type): Declare.
3760         * c-common.c (c_register_builtin_type): New function.
3761         * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
3762         c_register_builtin_type.
3763         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
3764         __float80, and __float128 macros.
3765         * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
3766         __float80, and __float128 types.
3767
3768 2003-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3769
3770         * builtin-types.def
3771         (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
3772         BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
3773         BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
3774         * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
3775         BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
3776         BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
3777         BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
3778         BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
3779         BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
3780         BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
3781         BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
3782         BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
3783         BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
3784         BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
3785         BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
3786         BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
3787         BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
3788         New.
3789         * doc/extend.texi: Document new builtins.
3790
3791 2003-09-09  Jan Hubicka  <jh@suse.cz>
3792
3793         * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
3794         finalization.
3795         * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
3796         functions, check for COMDAT.
3797         (cgraph_assemble_pending_functions): Break out from...
3798         (cgraph_finalize_function): ... here; allow redefinig of extern inline
3799         functions.
3800         (record_call_1): Record function references only in non-unit-at-a-time
3801         mode.
3802         (cgraph_analyze_function): Reset current_function_decl.
3803         (cgraph_finalize_compilation_unit):  Assemble pending functions.
3804
3805 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
3806
3807         * mklibgcc.in (libcc.a): Depend on stmp-dirs.
3808         (libgov.a): Likewise.
3809         (libgcc_eh.a): Likewise.
3810
3811 2003-09-08  Roger Sayle  <roger@eyesopen.com>
3812
3813         * fold-const.c (operand_equal_p): Clarify documentation.
3814
3815 2003-09-08  Richard Henderson  <rth@redhat.com>
3816
3817         * c-decl.c (c_expand_body_1): Push and pop function context here.
3818         * tree-optimize.c (tree_rest_of_compilation): ... not here.  Take
3819         nested argument instead of computing nesting ourselves.
3820
3821 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
3822
3823         * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
3824         regstack if optimizing but not scheduling after reload.
3825
3826 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
3827
3828         * config/sparc/sparc.c (struct machine_function): New type.
3829         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
3830         (sparc_override_options): Initialize init_machine_status.
3831         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
3832         tie_symbolic_operand, tle_symbolic_operand): New functions.
3833         (symbolic_operand): Disallow tls_symbolic_operand.
3834         (symbolic_memory_operand): Likewise.
3835         (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
3836         constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
3837         New functions.
3838         (sparc_tls_symbol): New variable.
3839         (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
3840         legitimize_address): New functions.
3841         (print_operand): Handle %&.
3842         (sparc_init_machine_status, get_some_local_dynamic_name,
3843         get_some_local_dynamic_name_1): New functions.
3844         (sparc_output_dwarf_dtprel): New function.
3845         * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
3846         constant_address_p.
3847         (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
3848         (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
3849         (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
3850         (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
3851         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
3852         (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
3853         (ASM_OUTPUT_DWARF_DTPREL): Define.
3854         (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
3855         tie_symbolic_operand, tle_symbolic_operand.
3856         * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
3857         UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
3858         (tls_call_delay): New attribute.
3859         (in_call_delay): Use it.
3860         (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
3861         (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
3862         tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
3863         tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
3864         tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
3865         tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
3866         (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
3867         tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
3868         tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
3869         tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
3870         tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
3871         tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
3872         tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
3873         tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
3874         insns.
3875         * config/sparc/sparc-protos.h (legitimate_constant_p,
3876         constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
3877         legitimize_tls_address, legitimize_address, tls_symbolic_operand,
3878         tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
3879         * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
3880         * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
3881         * configure.in (sparc*-*-*): Add TLS check.
3882         * configure: Rebuilt.
3883
3884 2003-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
3885
3886         PR target/11689
3887         * config/i386/i386.c (memory_address_length): Fix computation when
3888         the base is esp or ebp.
3889
3890 2003-09-07  Mark Mitchell  <mark@codesourcery.com>
3891
3892         PR c++/11852
3893         * varasm.c (initializer_constant_valid_p): Correct logic for
3894         CONSTRUCTORs.
3895
3896 2003-09-07  Roger Sayle  <roger@eyesopen.com>
3897
3898         * expr.c (expand_operands): New function to expand an operand pair.
3899         (expand_expr): Call expand_operands whenever we need to expand both
3900         operands of a binary operator.
3901         (do_store_flag): Likewise for operands of comparison operations.
3902
3903 2003-09-07  Roger Sayle  <roger@eyesopen.com>
3904
3905         * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
3906         (-A)*B if we care about sign-dependent rounding.
3907
3908 2003-09-07  Gabriel Dos Reis  <gcc@integrable-solutions.net>
3909
3910         * c-pretty-print.h (pp_c_left_brace): Declare.
3911         (pp_c_right_brace): Likewise.
3912         * c-pretty-print.c (pp_c_left_brace): Now a function
3913         (pp_c_right_brace): Likewise.
3914
3915 2003-09-07  Jan Hubicka  <jh@suse.cz>
3916
3917         * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
3918
3919 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3920
3921         * diagnostic.c (warn_deprecated_use): Move to toplev.c
3922
3923 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3924
3925         * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
3926         * Makefile.in (langhooks.o): Depend on diagnostic.h
3927
3928 2003-09-06  James E Wilson  <wilson@tuliptree.org>
3929
3930         * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
3931         simplify.
3932
3933 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
3934
3935         * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
3936         and use it throughout.
3937
3938 2003-09-07  Jan Hubicka  <jh@suse.cz>
3939
3940         * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
3941
3942         * toplev.c  (rest_of_decl_compilation):  Do not finalize external
3943         virables.
3944
3945         * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
3946         functions.
3947         (cgraph_varpool_finalize_decl): Notice global symbol when needed.
3948
3949 2003-09-06  Jan Hubicka  <jh@suse.cz>
3950
3951         PR target/12070
3952         * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
3953
3954         PR opt/12082
3955         * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
3956
3957 2003-09-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3958
3959         * diagnostic.c (announce_function): Move to toplev.c.
3960
3961 2003-09-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3962
3963         * gcse.c (expr_equiv_p): Don't consider anything to be equal to
3964         volatile mem.
3965
3966 2003-09-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3967
3968         * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
3969         when gc checking is enabled.
3970
3971 2003-09-06  Steven Bosscher  <steven@gcc.gnu.org>
3972
3973         PR c/9862
3974         * c-decl.c (c_expand_body_1): Move return warning from here...
3975         (finish_function): ...to here.
3976
3977 2003-09-05  Geoffrey Keating  <geoffk@apple.com>
3978
3979         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
3980         a subset of the input class.
3981
3982 2003-09-05  Kazu Hirata  <kazu@cs.umass.edu>
3983
3984         * config/i860/i860.c: Follow spelling conventions.
3985         * config/i860/i860.h: Likewise.
3986         * config/sh/sh.h: Likewise.
3987
3988 2003-09-05  Nitin Yewale  <NitinY@KPITCummins.com>
3989
3990         * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
3991         * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
3992         * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
3993
3994 2003-09-05  Roger Sayle  <roger@eyesopen.com>
3995             Richard Henderson  <rth@redhat.com>
3996
3997         PR optimization/1823
3998         * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
3999         multiplication to implement division by constant integer.
4000
4001 2003-09-05  Jan Hubicka  <jh@suse.cz>
4002
4003         * opts.c (decode_options): Enable unit-at-a-time at -O2.
4004         * params.def (max-inline-insns-single): Set to 500
4005         (max-inline-insns-auto): Set to 150
4006         * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
4007
4008 2003-09-04  Richard Henderson  <rth@redhat.com>
4009
4010         * cgraph.c (cgraph_mark_reachable_node): Split out from ...
4011         (cgraph_mark_needed_node): Remove needed argument.
4012         * cgraph.h: Update to match.
4013         * cgraphunit.c (decide_is_function_needed): Split out from ...
4014         (cgraph_finalize_function): Reorg.  Avoid deferred_inline_function
4015         if we generated the function.
4016         (record_call_1): Update for cgraph_mark_reachable_node.
4017         * varasm.c (mark_referenced): Likewise.
4018         * objc/objc-act.c (mark_referenced_methods): Likewise.
4019
4020 2003-09-04  DJ Delorie  <dj@redhat.com>
4021
4022         * targhooks.c: Add comment explaining the migration process.
4023
4024 2003-09-04  Eric Christopher  <echristo@redhat.com>
4025
4026         * config/frv/t-frv: Fix path for frv-abi.h.
4027         * config/frv/frv-asm.h: Fix string concatenation.
4028
4029 2003-09-04  DJ Delorie  <dj@redhat.com>
4030
4031         * builtins.c (apply_args_size): Guard against a NULL cfun.
4032         (expand_builtin_apply_args_1): Likewise.
4033         (expand_builtin_apply): Likewise.
4034         Fixes PR bootstrap/12172.
4035
4036 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4037
4038         * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
4039         assembler supports Sun syntax for cmov.
4040         * configure: Regenerate.
4041         * config.in: Likewise.
4042         * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
4043         HAVE_AS_IX86_CMOV_SUN_SYNTAX.
4044         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
4045         Fixes PR target/12101.
4046
4047 2003-09-04  Matt Austern  <austern@apple.com>
4048
4049         * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
4050         with verbosity 0, instead of DECL_NAME, for human-readable string.
4051
4052 2003-09-04  Eric Christopher  <echristo@redhat.com>
4053
4054         * targhooks.c (default_return_in_memory): Allow
4055         unconverted ports.
4056
4057 2003-09-04  Eric Christopher  <echristo@redhat.com>
4058
4059         * targhooks.c (default_return_in_memory): Fix typo
4060         in last checkin.
4061
4062 2003-09-04  Eric Christopher  <echristo@redhat.com>
4063
4064         * targhooks.c (default_return_in_memory): Fix default
4065         definition.
4066
4067 2003-09-04  Bernardo Innocenti  <bernie@develer.com>
4068
4069         * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
4070         deleted function.
4071         * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
4072         enable coff-only code in m68k.c.
4073
4074 2003-09-04  Nick Clifton  <nickc@redhat.com>
4075
4076         * config.gcc: Add v850e1 target.  Allow --with-cpu to accept
4077         v850e1.
4078         * config/v850/v850.h: Accept v850e1 as a default CPU.
4079         Accept -mv850e1 as a command line option.
4080         * doc/invoke.texi: Document new -mv850e1 command line switch.
4081         * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
4082         -mv850e.
4083
4084 2003-09-04  Nick Clifton  <nickc@redhat.com>
4085
4086         * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
4087         * config/v850/t-v850: Only produce one extra multilib - for
4088         the v850e.
4089         * config/v850/t-v850e: New file: Only produce one extra
4090         multilib - for the v850.
4091
4092 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
4093
4094         * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
4095         * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
4096         * unwind.h (_Unwind_GetBSP): New prototype.
4097         * libgcc-std.ver: Add empty GCC_3.3.2 version.
4098         * mkmap-symver.awk: For symbol versions with no exported symbols,
4099         don't put anything into version script, just change all symbol
4100         versions which inherit from it to inherit from its ancestor.
4101
4102 2003-09-04  Eric Christopher  <echristo@redhat.com>
4103
4104         * config/mips/mips.c (mips_expand_prologue): Convert to
4105         calls.struct_value_rtx hook.
4106         (reg_or_const_float_1_operand): New.
4107         * config/mips/mips.h: Update Comments.
4108         (mips_arg): Add reg_or_const_float_1_operand.
4109         * config/mips/mips.md (divdf3); Convert to expander.
4110         (divsf3): Ditto.
4111         (*divdf3): New pattern.
4112         (*divsf3): Ditto.
4113
4114 2003-09-04  Jan Hubicka  <jh@suse.cz>
4115
4116         * toplev.c (wrapup_global_declarations): Fix final pass in
4117         unit-at-atime mode.
4118
4119 2003-09-04  Mark Mitchell  <mark@codesourcery.com>
4120
4121         * doc/extend.texi: Document removal of cast-as-lvalue extension in
4122         C++.
4123
4124 2003-09-04  Nicolas Roche  <roche@act-europe.fr>
4125
4126         * gcc.c (process_command): Fix typo.
4127
4128 2003-09-03  David O'Brien  <obrien@FreeBSD.org>
4129
4130         optimization/11980
4131         * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
4132         (PTRDIFF_TYPE): Likewise.
4133         (WCHAR_TYPE_SIZE): Likewise.
4134
4135 2003-09-03  DJ Delorie  <dj@redhat.com>
4136
4137         * targhooks.c: New file.
4138         * targhooks.h: New file.
4139         * Makefile.in: Add targhooks.o support.
4140         (function.o): Depend on$(TARGET_H).
4141         (stmt.o): Likewise.
4142         (combine.o): Depend on $(TREE_H) and $(TARGET_H).
4143         * builtins.c (apply_args_size, expand_builtin_apply_args_1,
4144         expand_builtin_apply): Convert to calls.struct_value_rtx hook.
4145         (expand_builtin_saveregs): Convert to
4146         calls.expand_builtin_saveregs hook.
4147         * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
4148         here, instead of ...
4149         (get_parm_info) ... here.
4150         (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
4151         hook.
4152         (finish_function): Handle calls.promote_prototypes hook here too.
4153         * c-typeck.c (convert_arguments): Convert to
4154         calls.promote_prototypes hook.
4155         (c_convert_parm_for_inlining): Likewise.
4156         * calls.c (initialize_argument_information): Convert to
4157         calls.promote_function_args hook.
4158         (expand_call): Convert to calls.struct_value_rtx,
4159         calls.strict_argument_naming,
4160         calls.pretend_outgoing_varargs_named, and
4161         calls.promote_function_return hooks.  Pass fndecl to
4162         aggregate_value_p.  Initialize CUMULATIVE_ARGS before calling
4163         hooks, so they can use that.
4164         (emit_library_call_value_1): Likewise.
4165         * combine.c (setup_incoming_promotions): Convert to
4166         calls.promote_function_args hook.
4167         * emit-rtl.c: Convert to calls.struct_value_rtx hook.
4168         * expr.c (expand_assignment): Pass call to aggregate_value_p.
4169         (expand_expr): Likewise.
4170         * expr.h: Remove support for SETUP_INCOMING_VARARGS,
4171         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
4172         RETURN_IN_MEMORY macro defaults.
4173         * final.c (profile_function): Convert to calls.struct_value_rtx
4174         hook.
4175         * function.c (aggregate_value_p): Accept function type tree as
4176         second parameter; try to deduce fntype from it.  Convert to
4177         calls.return_in_memory hook.
4178         (assign_parms): Convert to calls.setup_incoming_varargs,
4179         calls.strict_argument_naming, calls.promote_function_args,
4180         calls.pretend_outgoing_varargs_named hooks.  Pass fndecl to
4181         aggregate_value_p.
4182         (expand_function_start): Likewise.  Convert to
4183         calls.struct_value_rtx hook.
4184         (expand_function_end): Convert to calls.promote_function_return hook.
4185         (allocate_struct_function): Pass fndecl to aggregate_value_p.
4186         * hard-reg-set.h: Update comments to new hook names.
4187         * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
4188         * reg-stack.c (stack_result): Likewise.
4189         * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
4190         * stmt.c (expand_value_return): Convert to
4191         calls.promote_function_return hook.
4192         * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
4193         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
4194         TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
4195         TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
4196         TARGET_STRICT_ARGUMENT_NAMING,
4197         TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
4198         * target.h: Likewise.
4199         * tree.h (aggregate_value_p): Also takes a tree to deduce function
4200         attributes from (for target hooks).
4201         * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
4202         PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
4203         STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
4204         EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
4205         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
4206         to hooks.
4207
4208         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
4209         to aggregate_value_p.
4210         * config/arm/arm.c (arm_init_cumulative_args,
4211         arm_output_mi_thunk): Likewise.
4212         * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
4213         Likewise.
4214         * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
4215         mips_can_use_return_insn): Likewise.
4216         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
4217         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
4218         * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
4219         aggregate_value_p.
4220         * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
4221         function to aggregate_value_p.
4222         * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
4223         aggregate_value_p.
4224
4225         * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
4226         (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
4227         sh_function_arg_advance, sh_pass_in_reg_p): New.  * config/sh/sh.c
4228         (sh_handle_renesas_attribute, sh_promote_prototypes,
4229         sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
4230         sh_setup_incoming_varargs, sh_strict_argument_naming,
4231         sh_pretend_outgoing_varargs_named): New decls.
4232         (targetm): Add new hooks.
4233         (calc_live_regs): Save MACL and MACH if the function has the
4234         renesas attribute.
4235         (sh_expand_prologue): Support renesas attribute.
4236         (sh_builtin_saveregs): Make static.
4237         (sh_build_va_list): Support renesas attribute.
4238         (sh_va_start): Likewise.
4239         (sh_va_arg): Likewise.
4240         (sh_promote_prototypes): New.
4241         (sh_function_arg): New, moved from sh.h.  Support renesas
4242         attribute.
4243         (sh_function_arg_advance): Likewise.
4244         (sh_return_in_memory): Likewise.
4245         (sh_strict_argument_naming): Likewise.
4246         (sh_pretend_outgoing_varargs_named): Likewise.
4247         (sh_struct_value_rtx): New.
4248         (sh_attribute): Add renesas attribute.
4249         (sh_handle_renesas_attribute): New.
4250         (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
4251         (sh_ms_bitfield_layout_p): Support renesas attribute also.
4252         (sh_output_mi_thunk): Pass function to aggregate_value_p.  *
4253         config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
4254         -mhitachi.
4255         (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
4256         target hooks.
4257         (sh_args): Add renesas_abi flag.
4258         (INIT_CUMULATIVE_ARGS): Set it.  Pass fndecl to aggregate_value_p.
4259         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
4260         (PASS_IN_REG_P): Support renesas attribute.  Pass DF and TF on the
4261         stack for the renesas abi.
4262         (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
4263         SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
4264         PROMOTE_PROTOTYPES): Moved to sh.c.  * config/sh/sh.md (call): Set
4265         call cookie to indicate renesas calls.
4266
4267 2003-09-03  Mostafa Hagog  <mustafa@il.ibm.com>
4268
4269         * gcse.c (replace_one_set): New function.
4270         (pre_insert_copy_insn): Change the order of copying
4271         to make copy propagation discover additional PRE opportunities.
4272
4273 2003-09-03  Roger Sayle  <roger@eyesopen.com>
4274
4275         PR optimization/11700.
4276         * simplify-rtx.c (simplify_subreg): Check that the subreg offset
4277         of a hard register is representable before trying to simplify it
4278         using subreg_hard_regno.
4279
4280 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4281
4282         * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
4283         * configure: Regenerate.
4284
4285 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4286
4287         * intl.h (N_): Remove parentheses.
4288
4289 2003-09-03  Bernardo Innocenti  <bernie@develer.com>
4290
4291         * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
4292         * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
4293         definition and code blocks compiled when not defined.
4294         * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
4295         * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
4296         * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
4297         * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
4298
4299 2003-09-03  Jeff Sturm  <jsturm@one-point.com>
4300
4301         * cgraphunit.c (visited_nodes): New static variable.
4302         (record_call_1): Use walk_tree with visited_nodes.
4303         (cgraph_create_edges): Use walk_tree with visited_nodes.
4304         Setup/teardown visited_nodes hashtable.
4305
4306 2003-09-03  Roger Sayle  <roger@eyesopen.com>
4307
4308         * toplev.c (flag_rounding_math): New global variable.
4309         (f_options): Add to the list of language independent options.
4310         * flags.h (flag_rounding_math): Prototype here.
4311         (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
4312         * common.opt (frounding-math): New common command line option.
4313         * opts.c (common_handle_option): Handle OPT_frounding_math.
4314         (set_fast_math_flags): -ffast-math clears flag_rounding_math.
4315
4316         * doc/invoke.texi: Document this new command line option.
4317
4318 2003-09-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4319
4320         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
4321
4322 2003-09-03  Jan Hubicka  <jh@suse.cz>
4323
4324         * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
4325         * c-decl.c (finish_function):  Kill arguments, always use cgraph path.
4326         * c-objc-common.c: Kill include of gt-c-objc-common.h
4327         (expand_deferred_fns, deffer_fn): Kill function.
4328         (deferred_fns): Kill variable.
4329         (finish_cdtor): Update finish_function call.
4330         (c_objc_common_finish_file): Always call cgraph code.
4331         * c-parse.c: Regenerate.
4332         * c-parse.y: Regenerate.
4333         * c-tree.h (finish_function): Update prototype.
4334         * objc-acct.c (build_module_descriptor, finish_method_def):
4335         Update call of finish_function.
4336         * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
4337         forward prototype.
4338         (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
4339         function and assemble it if needed.
4340         (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
4341         mode.
4342         (cgraph_optimize): Likewise.
4343         (cgraph_expand_function): In non-unit-at-a-time mode keep function body
4344         even when it has no inline callees.
4345         * c-parse.in: Update calls to finish_function.
4346
4347 2003-09-03  Nick Clifton  <nickc@redhat.com>
4348
4349         * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
4350         Use #error to generate the message if TARGET_DEFAULT is not
4351         recognised.
4352
4353 2003-09-03  Richard Sandiford  <rsandifo@redhat.com>
4354
4355         * config/mips/mips.h (MASK_UNUSED1): Remove.
4356         (MASK_XGOT, TARGET_XGOT): Define.
4357         (TARGET_SWITCHES): Add an entry for -mxgot.
4358         (ASM_SPEC): Map -mxgot to -xgot.
4359         * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
4360         whether we're using a big-GOT sequences.
4361         (mips_legitimize_const_move, mips_expand_call): Likewise.
4362         (override_options): Revert 2003-01-09 change.
4363         * doc/invoke.texi: Document -mxgot.
4364
4365 2003-09-02  Jason Merrill  <jason@redhat.com>
4366
4367         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
4368         * config/sparc/sol2.h: Not here.
4369
4370 2003-09-02  Roger Sayle  <roger@eyesopen.com>
4371
4372         * expr.c (expand_expr): The code following both_summands performs
4373         the same task as simplify_gen_binary.  Replace all gotos to
4374         both_summands with a call to simplify_gen_binary and delete the
4375         now unused label.
4376
4377 2003-09-02  Jason Merrill  <jason@redhat.com>
4378
4379         PR c++/7327
4380         * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
4381
4382 2003-09-02  Jeff Sturm  <jsturm@one-point.com>
4383
4384         * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
4385         (cgraph_optimize_function): Set current_function_decl to the
4386         fndecl we're integrating from.
4387
4388 2003-09-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4389
4390         * builtins.def: Break out _Complex math functions into their
4391         own category.
4392
4393 2003-09-02  Andreas Jaeger  <aj@suse.de>
4394
4395         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
4396
4397 2003-09-02  Josef Zlomek  <zlomekj@suse.cz>
4398
4399         * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
4400         finding the note again.
4401
4402 2003-09-02  Nathanael Nerode  <neroden@gcc.gnu.org>
4403
4404         * config.gcc: Remove host-specific rewrites of target_alias.
4405
4406 2003-09-01  Mark Mitchell  <mark@codesourcery.com>
4407
4408         * Makefile.in (genprogs): Fix typo.
4409
4410         * Makefile.in (gencheck.o): Remove build commands.
4411         (dummy-conditions.o): Likewise.
4412         (read-rtl.o): Likewise.
4413         (gensupport.o): Likewise.
4414         (genconfig$(build_exeext)): Remove rule.
4415         (genconfig.o): Remove build commands.
4416         (genflags$(build_exeext)): Remove rule.
4417         (genflags.o): Remove build commands.
4418         (gencodes$(build_exeext)): Remove rule.
4419         (gencodes.o): Remove build commands.
4420         (genconstants.o): Remove build commands.
4421         (genemit$(build_exeext)): Remove rule.
4422         (genemit.o): Remove build commands.
4423         (genrecog$(build_exeext)): Remove rule.
4424         (genrecog.o): Remove build commands.
4425         (genextract$(build_exeext)): Remove rule.
4426         (genextract.o): Remove build commands.
4427         (genpeep$(build_exeext)): Remove rule.
4428         (genpeep.o): Remove build commands.
4429         (genattr$(build_exeext)): Remove rule.
4430         (genattr.o): Remove build commands.
4431         (genprognames): New variable.
4432         (genprogs): Likewise.
4433         (genobjs): Likewise.
4434         (genprogs): New rule.
4435         (genobjs): Likewise.
4436         (genattrtab.o): Remove build commands.
4437         (genautomata.o): Likewise.
4438         (genoutput$(build_exeext)): Remove rule.
4439         (genoutput.o): Remove build commands.
4440         (gengenrtl.o): Likewise.
4441         (genpreds.o): Likewise.
4442         (gengtype.o): Likewise.
4443         (genconditions.o): Likewise.
4444         (gen-protos.o): Likewise.
4445         (scan.o): Likewise.
4446         (fix-header.o): Likewise.
4447         (scan-decls.o): Likewise.
4448         (check-g++): Combine with other check targets.
4449         (check-gcc): Likewise.
4450         (check-g77): Likewise.
4451         (check-objc): Likewise.
4452
4453 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
4454
4455         * config.gcc: Remove host-specific stuff which is unused here
4456         since the introduction of config.host.
4457
4458         * doc/fragments.texi: Mention config.host.
4459         * doc/sourcebuild.texi: Mention config.host.  Give brief descriptions
4460         of config.build, config.host, and config.gcc.
4461
4462 2003-09-01  Zack Weinberg  <zack@codesourcery.com>
4463
4464         * c-decl.c (pushdecl): Don't put variables on
4465         C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
4466         incomplete.
4467
4468 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
4469
4470         * config.host: New file.
4471         * config.gcc: Remove some host-specific stuff and some
4472         logic needed only for repeated invocation.
4473         * configure.in: Use config.host.
4474         * configure: Regenerate.
4475
4476 2003-09-01  Josef Zlomek  <zlomekj@suse.cz>
4477
4478         * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
4479         * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
4480         * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
4481         (fold): Kill BIT_ANDTC_EXPR and label bit_and.
4482         * tree.def (BIT_ANDTC_EXPR): Kill.
4483
4484 2003-08-31  Nathanael Nerode  <neroden@gcc.gnu.org>
4485
4486         * configure.in: Remove uses of "for x in .. ${foo}" idiom.
4487         * configure: Regenerate.
4488
4489         * config.gcc:  Remove references to install_headers_dir, now unused
4490         since introduction of config.build.
4491         * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
4492
4493         * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
4494         config.build.
4495
4496         * config.build: New file.
4497         * config.gcc: Remove some build-specific stuff.
4498         * configure.in: Use config.build.
4499         * configure: Regnerate.
4500
4501 2003-08-31  Steven Bosscher  <steven@gcc.gnu.org>
4502             Roger Sayle  <roger@eyesopen.com>
4503
4504         PR middle-end/11823
4505         * stmt.c (expand_end_case_type): Only use jump tables for dense
4506         switch statements when optimizing for size.
4507
4508 2003-08-31  Olivier Hainque  <hainque@act-europe.fr>
4509
4510         * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
4511         the != 0 case, which ensures pending stack adjustments are flushed.
4512
4513 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
4514
4515         * configure.frag: Delete file.
4516         * configure.in: Rename the substitution variables
4517         dep_host_xmake_file and dep_tmake_file to xmake_file and
4518         tmake_file respectively.  Do not expand $srcdir in the
4519         value of these; leave that for Make.  Introduce a new
4520         substitution varaible, all_lang_makefrags, which lists
4521         subdirectory Make-lang.in files; exclude these from
4522         all_lang_makefiles, which is now only for subdirectory
4523         outputs.  Do not invoke configure.frag.  Do not set nor
4524         AC_SUBST_FILE target_overrides, host_overrides, or
4525         language_fragments. Create build subdirectories in
4526         config.status extra commands.
4527         * configure: Regenerate.
4528         * Makefile.in: Update substitutions to match changes to
4529         configure.  Use include directives instead of @-insertions
4530         to read in host, target, and language fragments.
4531         (Makefile rule): Do not invoke configure.frag.  Do not copy
4532         config.status to config.run before executing it.  Set
4533         CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
4534         regenerated.
4535         (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
4536
4537 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
4538
4539         * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
4540         * c-typeck.c (same_translation_unit_p): New function.
4541         (comptypes): Use it instead of flags parameter to identify
4542         structure types from different translation units.
4543         * c-decl.c (duplicate_decls): Always call comptypes with
4544         COMPTYPE_STRICT flags argument.
4545         (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
4546         to file_scope_decl.
4547
4548 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
4549
4550         * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
4551         * c-decl.c (struct c_scope): Remove "incomplete" field.
4552         (pushdecl): Attach variables with incomplete types to
4553         the TYPE_MAIN_VARIANT of the incomplete type in question.
4554         (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
4555         to complete, not at current_scope->incomplete.  All such
4556         variables do need completion.
4557
4558 2003-08-30  Richard Earnshaw  <rearnsha@arm.com>
4559         Nicolas Pitre <nico@cam.org>
4560
4561         * arm/lib1funcs.asm (RETCOND): Delete.
4562         (RETLDM): New assembler macro.  Use it for returning with ldm/ldr.
4563         (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
4564         (__ARM_ARCH__): Move here from ieee754-?f.S.
4565         (RET, RETc): Clean up definitions.
4566         (DIV_FUNC_END): Renamed from FUNC_END.  All uses changed.
4567         (FUNC_END): New macro that marks the end of any function.
4568         (ARM_FUNC_START): New macro that allows an assembler routine to be
4569         implemented in ARM code even if a Thumb-only build.
4570         Unconditionally include ieee754-?f.S.
4571         * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
4572         Mark ends of functions.
4573         Split into separate conditionally-compiled units.
4574         Use RETLDM to return from routines.
4575         * arm/ieee754-sf.S: Similarly.
4576         * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
4577         Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
4578         _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
4579         _fixsfsi and _fixunssfsi.
4580
4581         * arm/ieee754-df.S (__muldf3): Fix bug when result of a
4582         multiplication underflows to zero.
4583         (__adddf3): Fix bug when using VFP ordering on little-endian
4584         processors.
4585         (__fixdfsi): Use rrx to extract the carry into a register instead of
4586         MRS instruction.  Optimize later use of result.
4587         * arm/ieee754-sf.S (__fixsfsi): Likewise.
4588         (__fixunssfsi): Use a better sequence for handling negative-or-zero.
4589
4590 2003-08-29  Richard Henderson  <rth@redhat.com>
4591
4592         * tree-optimize.c: New file.
4593         * Makefile.in (OBJS-archive): Add tree-optimize.o.
4594         (tree-optimize.o): New.
4595         * c-decl.c (store_parm_decls): Use allocate_struct_function.
4596         (finish_function): Don't free_after_parsing or free_after_compilation.
4597         (set_save_expr_context): Move to tree-optimize.c.
4598         (c_expand_body_1): Use tree_rest_of_compilation.
4599         * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
4600         * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
4601         * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
4602         iterate until closure.
4603         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
4604         LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
4605         (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
4606         * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
4607         * toplev.h (tree_rest_of_compilation): Declare it.
4608
4609 2003-08-29  Richard Henderson  <rth@redhat.com>
4610
4611         * function.h (struct function): Add rtl_inline_init, saved_for_inline.
4612         * integrate.c (save_for_inline): Set saved_for_inline.
4613         * c-semantics.c (genrtl_scope_stmt): Check it.
4614         * toplev.c (wrapup_global_declarations): Check it.
4615         (rest_of_handle_inlining): Set and check rtl_inline_init.
4616         (rest_of_compilation): Remove out of date comment.
4617
4618 2003-08-29  Richard Henderson  <rth@redhat.com>
4619
4620         * function.c (allocate_struct_function): New, split out of ...
4621         (prepare_function_start, init_function_start): ... here.
4622         * expr.c (init_expr): Use ggc_alloc_cleared.
4623         * stmt.c (init_stmt_for_function): Likewise.
4624         * tree.h (allocate_struct_function): Declare.
4625
4626 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
4627
4628         * config.gcc: Don't use negated character class in shell case
4629         clause.
4630
4631 2003-08-29  Richard Henderson  <rth@redhat.com>
4632
4633         * function.h (struct function): Move function_frequency and
4634         max_jumptable_ents before start of bit field members.
4635
4636 2003-08-29  Richard Henderson  <rth@redhat.com>
4637
4638         * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
4639         (fold_builtin_constant_p) ... not here.
4640
4641 2003-08-29  Richard Henderson  <rth@redhat.com>
4642
4643         * c-tree.h (C_DECL_FILE_SCOPE): Move ...
4644         * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
4645         * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
4646
4647 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4648
4649         * builtins.def: Fix typos.
4650         (ATTR_MATHFN_FPROUNDING_STORE): New macro.
4651         (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
4652         BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
4653         BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
4654         BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
4655
4656         * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
4657         Use ATTR_MATHFN_FPROUNDING_ERRNO.
4658
4659 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
4660
4661         * config.gcc (i386-*-vsta): Fix obvious bogosity.
4662
4663         * fixinc/inclhack.def:  Remove special cases for unsupported
4664         PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
4665         * fixinc/fixincl.x: Regenerate.
4666
4667 2003-08-29  Mark Mitchell  <mark@codesourcery.com>
4668
4669         * Makefile.in (cpp.info): Just state dependencies.
4670         (gcc.info): Likewise.
4671         (gccint.info): Likewise.
4672         (gccinstall.info): Likewise.
4673         (cppinternals.info): Likewise.
4674         (cpp.dvi): Likewise.
4675         (gcc.dvi): Likewise.
4676         (gccint.dvi): Likewise.
4677         (gccinstall.dvi): Likewise.
4678         (cppinternals.dvi): Likewise.
4679         (gcov.1): Likewise.
4680         (cpp.1): Likewise.
4681         (gcc.1): Likewise.
4682         (gfdl.7): Likewise.
4683         (gpl.7): Likewise.
4684         (fsf-funding.7): Likewise.
4685         ($(objdir)/%.info): New pattern rule.
4686         (%.dvi): Likewise.
4687
4688 2003-08-29  Kelley Cook  <kelleycook@wideopenwest.com>
4689
4690         * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
4691         (restage2): Likewise.
4692         (restage3): Likewise.
4693         (restage4): Likewise.
4694         (restageprofile): Likewise.
4695         (restagefeedback): Likewise.
4696         (bubblestrap): Likewise.
4697
4698 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
4699
4700         * config.gcc: Narrow unsupported target match to avoid clobbering
4701         i?86-sequent-sysv4*.
4702
4703 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4704
4705         * builtins.c (mathfn_built_in): Handle new math builtins.
4706
4707 2003-08-28  Per Bothner  <per@bothner.com>
4708
4709         Fix (hopefully temporary) for breakage caused by my 08-21 patch.
4710         * cpplex.c (_cpp_get_fresh_line):  Check for null buffer.
4711         (_cpp_lex_buffer):  Likewise.
4712         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
4713
4714 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
4715
4716         * config/s390/s390.md ("*mulsi3_sign"): New insn.
4717         ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
4718         ("mulsidi3"): ... this new insn.
4719         ("umulsidi3"): New insn.
4720         ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
4721         mixed-mode matching constraints.
4722         ("udivmodsi4", "udivmoddisi3"): New insns.
4723         ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
4724
4725 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4726
4727         * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
4728         BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
4729         BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
4730         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
4731         BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
4732         BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
4733         BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
4734         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
4735         BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
4736         BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
4737         BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
4738         * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
4739         BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
4740         BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
4741         BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
4742         * tree.c: Assign new type_nodes.
4743         * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
4744         TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
4745         (float_ptr_type_node, double_ptr_type_node,
4746         long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
4747
4748         * doc/extend.texi: Document new builtins.
4749
4750 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4751
4752         * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
4753         BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
4754
4755         * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
4756         BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
4757         BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
4758         BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
4759         BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
4760         BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
4761         BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
4762         BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
4763         BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
4764         BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
4765
4766         * doc/extend.texi: Document new builtins.
4767
4768 2003-08-28  Nathanael Nerode  <neroden@gcc.gnu.org>
4769
4770         * fixinc/mkfixinc.sh: Remove special case code for unsupported
4771         variants of i?86, powerpcle, and thumb.
4772         * fixinc/mkfixinc.sh: Remove special case code for unsupported
4773         arm and hppa variants.
4774
4775 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4776
4777         * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
4778         BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
4779         BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
4780         BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
4781         BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
4782         BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
4783         BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
4784         BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
4785         BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
4786         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
4787
4788         * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
4789         BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
4790         BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
4791         BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
4792         BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
4793         BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
4794         BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
4795         BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
4796         BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
4797         BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
4798         BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
4799         BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
4800         BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
4801         BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
4802         BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
4803         BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
4804         BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
4805         BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
4806         BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
4807         BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
4808         BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
4809         BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
4810         BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
4811         BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
4812         BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
4813         BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
4814         BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
4815         BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
4816         BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
4817         BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
4818         BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
4819
4820         * doc/extend.texi: Document new builtins.
4821
4822 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
4823
4824         * config/s390/s390.c (legitmate_constant_p): Use LARL on
4825         zSeries machines even in 31-bit addressing mode.
4826         (legitimate_reload_constant_p): Likewise.
4827         (legitimize_pic_address): Likewise.
4828         (legitimize_tls_address): Likewise.
4829         (s390_split_branches): Likewise.
4830         (s390_dump_pool): Likewise.
4831         (s390_mainpool_finish): Likewise.
4832         (s390_chunkify_start): Likewise.
4833         (s390_select_rtx_section): Likewise.
4834         * config/s390/s390.md ("doloop_si"): Likewise.
4835         ("pool_start_31", "pool_end_31"): Likewise.
4836         ("pool_start_64", "pool_end_64"): Likewise.
4837         ("main_base_31_small", "main_base_31_large"): Likewise.
4838         ("main_base_64"): Likewise.
4839         ("reload_base_31", "reload_base_64"): Likewise.
4840         ("*movsi_larl"): New insn.
4841         ("cjump", "icjump"): Use long branches on zSeries machines.
4842         ("jump"): Likewise.
4843         ("call"): Use BRASL on zSeries machines.
4844         ("call_value", "call_value_tls"): Likewise.
4845         ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
4846         and replace by ...
4847         ("*bras", "*brasl", "*basr") ... these new insns.
4848         ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
4849         "bas_31_r"): Remove and replace by ...
4850         ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
4851         ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
4852         "bas_64_tls", "bas_31_tls"): Remove and replace by ...
4853         ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
4854         ("*return_si", "*return_di"): Remove and replace by ...
4855         ("*return"): ... this new insn.
4856         ("rotlsi3"): Allow on zSeries machines.
4857
4858         * config/s390/s390.c (legitimize_reload_constant_p): Use
4859         LL/LH type instructions in z/Architecture mode.
4860         * config/s390/s390.md ("*movsi_lli"): Likewise.
4861         ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
4862         ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
4863         ("*extendqisi2"): Use LB in z/Architecture mode.
4864         ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
4865         z/Architecture mode.
4866         ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
4867         Likewise.
4868
4869         * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
4870         and 31-bit mode.
4871         ("ptr_extend"): Allow only in 64-bit mode.
4872
4873 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
4874
4875         * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
4876         (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
4877         definitions.
4878         (main): Only use standard_startfile_prefix if native.
4879         * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
4880
4881 2003-08-27  Per Bothner  <pbothner@apple.com>
4882
4883         * cpperror.c (print_location):  Don't check for !pfile->buffer.  That
4884         test fails following my 08-21 change, and it seems unnecessary anyway.
4885         (cpp_error):  Likewise.
4886
4887 2003-08-27  Jason Merrill  <jason@redhat.com>
4888
4889         * real.c (do_multiply): Initialize with memset.
4890
4891 2003-08-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4892
4893         * gcov.c (typedef struct arc_info): New field cs_count.
4894         (accumulate_line_counts): Find cycles correctly.
4895
4896 2003-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
4897
4898         * config/s390/s390.c (struct machine_function): Remove member
4899         literal_pool_label.
4900         (s390_optimize_prolog): Replace TEMP_REG argument with
4901         TEMP_USED and BASE_USED.  Do not check get_pool_size ().
4902         (general_s_operand): Accept all immediates before reload if
4903         ALLOW_IMMEDIATE.  If not ALLOW_IMMEDIATE, reject literal pool
4904         references.
4905         (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
4906         (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
4907         (s390_alloc_pool): New function.
4908         (s390_new_pool): Call it.
4909         (s390_dump_pool): Add REMOTE_LABEL argument.
4910         (s390_chunkify_start): Add BASE_REG argument.  Do not check
4911         get_pool_size ().
4912         (s390_chunkify_finish): Add BASE_REG argument.  Adapt
4913         s390_dump_pool call.
4914         (s390_pool_count, s390_nr_constants): Remove.
4915         (s390_output_constant_pool): Remove.
4916         (s390_mainpool_start): New function.
4917         (s390_mainpool_finish): New function.
4918         (s390_mainpool_cancel): New function.
4919         (s390_reorg): Implement main literal pool handling.
4920         (s390_emit_prologue): Emit main_pool placeholder instead of
4921         literal_pool_31 / literal_pool_64 insns.
4922         * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
4923         (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
4924         * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
4925         ("main_base_31_small", "main_base_31_large"): New insns.
4926         ("main_base_64",  "main_pool"): New insns.
4927         ("literal_pool_31", "literal_pool_64"): Remove.
4928
4929 2003-08-27  Nathanael Nerode  <neroden@gcc.gnu.org>
4930
4931         * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
4932         fixinc.ptx.
4933         * fixinc/inclhack.def (undefine_null):  Don't generate \r characters.
4934         Prettify a little.
4935         * fixinc/fixincl.x: Regenerate.
4936
4937 2003-08-27  Richard Earnshaw  <rearnsha@arm.com>
4938
4939         * lib1funcs.asm (L_ieee754_sp): New.  Include ieee754-sf.S.
4940         (L_ieee754_dp): New.  Include ieee754-df.S.
4941         * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
4942         and compilation in apcs-26 mode.
4943         * arm/ieee754-df.S: Likewise.
4944         * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
4945         (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
4946
4947 2003-08-27  Nicolas Pitre  <nico@cam.org>
4948
4949         * arm/ieee754-sf.S: New.
4950         * arm/ieee754-df.S: New.
4951
4952 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
4953
4954         * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
4955         and restore it if returning NULL.
4956
4957 2003-08-27  Richard Sandiford  <rsandifo@redhat.com>
4958
4959         * calls.c (initialize_argument_information): If an argument has no
4960         stack space associated with it, and BLOCK_REG_PADDING is defined,
4961         use it to decide at which end the argument should be padded.
4962         * function.c (assign_parms): Allocate BLKmode stack slots.
4963         * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
4964         (mips_pad_reg_upward): Declare.
4965         * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
4966         (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
4967         (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
4968         (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
4969         * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
4970         (mips_expand_call): Remove code for generating structure shifts.
4971         (mips_arg_info): Don't set struct_p.  Don't set fpr_p for non-float
4972         types unless using the EABI.
4973         (function_arg_advance): Don't generate shift instructions.
4974         (function_arg): Don't return them.  Don't short-circuit the
4975         check for double structure chunks for DFmode arguments.
4976         (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
4977         (mips_expand_prologue): Remove code to emit structure shifts.
4978         * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
4979         structure passing (inet_ntoa, inet_lnaof, inet_netof).  Update
4980         comments to say that only structure returns are a problem.
4981
4982 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
4983
4984         * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
4985         Fix to match produced versions.
4986         * fixinc/inclhack.def (longlong_t): New disabled test, ported
4987         from fixinc.svr4.
4988         * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
4989         from fixinc.ptx.
4990         * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
4991         ported from fixinc.ptx.
4992
4993 2003-08-26  Per Bothner  <pbothner@apple.com>
4994
4995         * cpplib.h (struct cpp_token):  Change type of field line to fileline.
4996         (cpp_error_with_line):  Use fileline for appropriate parameter.
4997         * cpphash.h (struct cpp_macro):  Change type of field line to fileline.
4998         (struct cpp_reader):  Likewise for fields line and directive_line.
4999         (_cpp_begin_message):  Use fileline for appropriate parameter.
5000         * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
5001         cpp_error):  Use fileline for appropriate parameters and variables.
5002         (print_location):  New local lin, since it is not a fileline.
5003
5004 2003-08-26  Roger Sayle  <roger@eyesopen.com>
5005
5006         PR middle-end/12002
5007         * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
5008         (FLOAT_TYPE_P): Define in terms of these two new macros.
5009         * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
5010         for complex floating point types.
5011
5012 2003-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
5013
5014         * config/s390/s390.c (emit_prologue): Don't check literal pool size.
5015         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
5016         s390_output_pool_entry.
5017
5018 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
5019
5020         * fixinc/inclhack.def (svr4_preproc_lint_on,
5021         svr4_preproc_lint_off, svr4_preproc_machine): New disabled
5022         fixes, ported from fixinc.svr4.
5023
5024 2003-08-26  Mark Mitchell  <mark@codesourcery.com>
5025
5026         * doc/install.texi (Prerequisites): Mention GNU make requirement.
5027
5028         * Makefile.in (AR_FOR_TARGET): Export it.
5029         (AR_CREATE_FOR_TARGET): Likewise.
5030         (AR_FLAGS_FOR_TARGET): Likewise.
5031         (AR_EXTRACT_FOR_TARGET): Likewise.
5032         (AWK): Likewise.
5033         (BUILD_PREFIX): Likewise.
5034         (BUILD_PREFIX_1): Likewise.
5035         (DESTDIR): Likewise.
5036         (GCC_FOR_TARGET): Likewise.
5037         (INCLUDES): Likewise.
5038         (INSTALL_DATA): Likewise.
5039         (LIB1ASMSRC): Likewise.
5040         (LIBGCC2_CFLAGS): Likewise.
5041         (MACHMODE_H): Likewise.
5042         (NM_FOR_TARGET): Likewise.
5043         (RANLIB_FOR_TARGET): Likewise.
5044         (libsubdir): Likewise.
5045         (slibdir): Likewise.
5046         (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
5047         exporting.
5048         (libgcc.a): Don't pass them here.
5049         (stmp-multilib): Or here.
5050         (install-libgcc): Or here.
5051         (install-multilib): Or here.
5052         (POSTSTAGE1_FLAGS_TO_PASS): Or here.
5053         (stage1_build): Or here.
5054
5055 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
5056
5057         * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
5058         "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
5059
5060 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
5061
5062         * config/s390/s390.md ("*fmadddf", "*fmsubdf",
5063         "*fmaddsf", "*fmsubsf"): New insns.
5064
5065 2003-08-26  Roger Sayle  <roger@eyesopen.com>
5066
5067         * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
5068         (C1*C2)/X when unsafe math optimizations are allowed.
5069         (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
5070         math optimizations.  Minor code clean-ups.  Recursively call
5071         fold when constructing sub-expressions.
5072
5073 2003-08-26  Roger Sayle  <roger@eyesopen.com>
5074
5075         * builtins.c (fold_builtin_bitop): New function to perform constant
5076         folding of ffs, clz, ctz, popcount and parity builtin functions
5077         and their long and long long variants (such as ffsl and ffsll).
5078         (fold_builtin): fold_builtin_bitop when appropriate.
5079         * simplify-rtx.c (simplify_unary_operation): Honor both
5080         CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
5081         evaluating clz and ctz at compile-time, for operands wider
5082         than HOST_WIDE_INT.
5083
5084 2003-08-26  Nathan Sidwell  <nathan@codesourcery.com>
5085
5086         * builtins.c (build_function_call_expr): Don't set
5087         TREE_SIDE_EFFECTS here.
5088         * expr.c (emit_block_move_via_libcall): Likewise.
5089         (clear_storage_via_libcall): Likewise.
5090         * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
5091         CALL_EXPRs.
5092
5093         * gcse.c (is_too_expensive): New function.
5094         (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
5095
5096 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
5097
5098         * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
5099         commented-out logic to use DCE threads (if present), add
5100         support for POSIX threads.
5101         * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
5102         #defines for -pthread.  Add -lpthread to LIB_SPEC when
5103         -pthread.  In both cases take -mt as a synonym for -pthread
5104         for acc compatibility.
5105         Define GTHREAD_USE_WEAK to 0.
5106         * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
5107         Remove old logic for DCE threads from LIB_SPEC.
5108         * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
5109
5110 2003-08-25  Roger Sayle  <roger@eyesopen.com>
5111
5112         * builtins.c (expand_builtin_mathfn):  Rearrange so that we only
5113         return 0 for invalid argument types.  Instead drop through to a
5114         call of expand_call at the bottom of function.  If op is SQRT,
5115         try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
5116
5117 2003-08-25  Richard Henderson  <rth@redhat.com>
5118
5119         * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
5120         result when op0 is SImode.
5121
5122 2003-08-25  Nathanael Nerode  <neroden@twcny.rr.com>
5123
5124         * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
5125         from fixinc.svr4.
5126         * fixinc/fixincl.x: Regenerate.
5127         * fixinc/tests/base/sys/signal.h: Regenerate.
5128
5129 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
5130
5131         * combine.c (simplify_comparison): Re-enable widening of comparisons
5132         with non-paradoxical subregs of non-REG expressions.
5133
5134 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
5135
5136         * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
5137
5138 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
5139
5140         * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
5141
5142 2003-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5143
5144         * pretty-print.h (pp_maybe_newline_and_indent): New macro.
5145         * c-pretty-print.h (c_pretty_printer): Now typedef to the
5146         structure.  Be consistent with pretty-print.h abd cxx-pretty-print.h
5147         (struct c_pretty_print_info): Document.  Add new fields.
5148         (pp_type_specifier_seq): Rename from pp_c_type_specifier.
5149         (pp_direct_abstract_declarator): New macro.
5150         (pp_ptr_operator): Likewise.
5151         (pp_simple_type_specifier): Likewise.
5152         (pp_expression): Likewise.
5153         (pp_parameter_list): Rename from pp_parameter_declaration.
5154         * c-pretty-print.c (pp_c_whitespace): Now a function.
5155         (pp_c_left_paren): Likewise.
5156         (pp_c_right_paren): Likewise.
5157         (pp_c_dot): Likewise.
5158         (pp_c_ampersand): Likewise.
5159         (pp_c_arrow): Likewise.
5160         (pp_c_semicolon): Likewise.
5161         (pp_c_type_cast): New function.
5162         (pp_c_space_for_pointer_operator): Likewise.
5163         (pp_c_call_argument_list): Likewise.
5164         (pp_c_cv_qualifier): Adjust prototype.
5165         (pp_c_type_qualifier_list): Likewise.
5166         (pp_c_pointer): Likewise.  Handle REFERENCE_TYPE here.
5167         (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
5168         Adjust to follow standard grammar.
5169         (pp_c_specifier_qualifier_list): Adjusr prototype.  Handle
5170         REFERENCE_TYPE.  Tidy.
5171         (pp_c_parameter_type_list): Adjust prototype.  Tidy.
5172         (pp_c_parameter_declaration): Remove.
5173         (pp_c_abstract_declarator): Adjust prototype.
5174         (pp_c_direct_abstract_declarator): Likewise.
5175         (pp_c_type_id): Likewise.
5176         (pp_c_storage_class_specifier): Likewise.
5177         (pp_c_function_specifier): Likewise.
5178         (pp_c_declaration_specifiers): Likewise.
5179         (pp_c_direct_declarator): Likewise.
5180         (pp_c_declarator): Likewise.
5181         (pp_c_declarator): Likewise.
5182         (pp_c_declaration): Likewise.
5183         (pp_c_attributes): Likewise.  Tidy.
5184         (pp_c_function_definition): Adjust prototype.
5185         (pp_c_char): Likewise.
5186         (pp_c_string_literal): Likewise.
5187         (pp_c_integer_constant): Likewise.
5188         (pp_c_character_constant): Likewise.
5189         (pp_c_bool_constant): Likewise.
5190         (pp_c_enumeration_constant): Likewise.
5191         (pp_c_floating_constant): Likewise.
5192         (pp_c_constant): Likewise.
5193         (pp_c_identifier): Likewise.
5194         (pp_c_primary_expression): Likewise.  Remove TARGET_EXPR case.  Tidy.
5195         (pp_c_initializer): Adjust prototype.
5196         (pp_c_init_declarator): Likewise.
5197         (pp_c_initializer_list): Likewise.
5198         (pp_c_id_expression): Likewise.
5199         (pp_c_postfix_expression): Likewise.
5200         (pp_c_expression_list): Likewise.
5201         (pp_c_unary_expression): Likewise.
5202         (pp_c_cast_expression): Likewise.
5203         (pp_c_multiplicative_expression): Likewise.
5204         (pp_c_additive_expression): Likewise.
5205         (pp_c_shift_expression): Likewise.
5206         (pp_c_relational_expression): Likewise.
5207         (pp_c_equality_expression): Likewise.
5208         (pp_c_and_expression): Likewise.
5209         (pp_c_exclusive_or_expression): Likewise.
5210         (pp_c_inclusive_or_expression): Likewise.
5211         (pp_c_logical_and_expression): Likewise.
5212         (pp_c_logical_or_expression): Likewise.
5213         (pp_c_conditional_expression): Likewise.
5214         (pp_c_assignment_expression): Likewise.
5215         (pp_c_expression): Likewise.  Tidy.
5216         (pp_c_statement): Likewise.  Document.
5217         (pp_c_pretty_printer_init): Adjust prototype. Tidy.
5218
5219         * c-lang.c (c_initialize_diagnostics): Update.
5220         * c-common.h (strip_pointer_operator): Declare.
5221         * c-common.c (strip_pointer_operator): Define.
5222
5223 2003-08-25  Mark Mitchell  <mark@codesourcery.com>
5224
5225         PR c++/8795
5226         * tree.h (build_method_type_directly): Declare.
5227         * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
5228         (vector_size_helper): Likewise.
5229         * tree.c (build_method_type_directly): New function.
5230         (build_method_type): Use it.
5231
5232 2003-08-24  Richard Henderson  <rth@redhat.com>
5233
5234         * config/i386.i386.c (ix86_return_in_memory): Reformat.  Return true
5235         for 16-byte vector modes if sse not enabled; warn for abi change.
5236         (ix86_value_regno): Only return xmm0 for 16-byte vector types.
5237
5238 2003-08-24  Kazu Hirata  <kazu@cs.umass.edu>
5239
5240         * rtlanal.c (may_trap_p): Simplify an integer comparison.
5241
5242 2003-08-24  Nathanael Nerode  <neroden@gcc.gnu.org>
5243
5244         * fixinc/inclhack.def (AAB_svr4_replace_byteorder):  Enhance
5245         comment.  Enable for DYNIX/ptx systems (when they switch to
5246         regular fixincludes).
5247         * fixinc/fixincl.x: Regenerate.
5248
5249 2003-08-23  Jason Eckhardt  <jle@rice.edu>
5250
5251         * config/i860/t-i860: New.
5252         * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
5253
5254 2003-08-23  Jakub Jelinek  <jakub@redhat.com>
5255
5256         * c-decl.c (pushdecl): Only put decls which finish_struct will do
5257         something about onto incomplete chain.
5258         (finish_struct): If not removing type from incomplete
5259         list, update prev.
5260
5261 2003-08-20  Jan Hubicka  <jh@suse.cz>
5262
5263         PR target/11369
5264         * i386.c (ix86_expand_carry_flag_compare): Validate operand.
5265
5266         PR target/11031
5267         * i386.c (const_0_to_3_operand, const_0_to_7_operand,
5268         const_0_to_15_operand, const_0_to_255_operand): New predicates.
5269         * i386.h (PREDICATE_CODES): Add these.
5270         * i386.c (pinsrw and pextrw patterns): Use them.
5271
5272         PR target/10984
5273         * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
5274
5275         PR target/8869
5276         * expr.c (convert_modes): Deal properly with integer to vector
5277         constant conversion.
5278
5279         PR target/8871
5280         * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
5281
5282 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
5283
5284         * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
5285         * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
5286         ("*movhi"): ... this.
5287         ("movqi", "*movqi"): Likewise.
5288         ("movqi_64"): Remove.
5289         ("*zero_extendhisi2_31"): Change predicate to s_operand.
5290
5291 2003-08-23  Dale Johannesen  <dalej@apple.com>
5292         * calls.c (emit_library_call_value_1): Fix obvious errors in
5293         arguments to emit_group_store.
5294
5295 2003-08-23  Jason Eckhardt  <jle@rice.edu>
5296
5297         * calls.c (emit_library_call_value_1): Remove code related
5298         to LIBGCC_NEEDS_DOUBLE.
5299         * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
5300         * doc/tm.texi: Likewise.
5301         * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
5302
5303 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
5304
5305         * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
5306
5307 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
5308
5309         * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
5310         as well.  Put memory references in the varargs alias set.
5311         (mips_expand_prologue): Remove varargs handling from here.
5312
5313 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
5314
5315         * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
5316         s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
5317         s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
5318         for function pointer calls.
5319         * config/s390/s390.md ("*negdi2_31"): Likewise.
5320
5321 2003-08-23  Roger Sayle  <roger@eyesopen.com>
5322
5323         * combine.c (apply_distributive_law): Correct comment.
5324
5325 2003-08-23  Jason Eckhardt  <jle@rice.edu>
5326
5327         * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
5328
5329 2003-08-22  Jason Eckhardt  <jle@rice.edu>
5330
5331         * config/i860/i860.c (i860_build_va_list): Create the va_decl
5332         declaration.  Document the va_list structure.
5333         (i860_va_start): Initialize the va_list structure.
5334         (i860_va_arg): Rewrite completely.
5335         * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
5336         * config/i860/varargs.asm: Do not allocate or initialize
5337         a va_list.  Return the address of the register save area.
5338
5339 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
5340
5341         * config/iq2000/iq2000.c: Fix comment typos.
5342         * config/iq2000/iq2000.md: Likewise.
5343
5344 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
5345
5346         * config/iq2000/iq2000.c: Follow spelling conventions.
5347         * config/iq2000/iq2000.h: Likewise.
5348         * config/mn10300/mn10300.c: Likewise.
5349
5350 2003-08-22  Jason Eckhardt  <jle@rice.edu>
5351
5352         * config/i860/i860.c (output_move_double): Don't set latehalf
5353         to zero for CONST_INT (since it could be, e.g., -1).
5354
5355         * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
5356         (MODSI3_LIBCALL): ...with this one.
5357         (UREMSI3_LIBCALL): Replace this macro...
5358         (UMODSI3_LIBCALL): ...with this one.
5359
5360 2003-08-22  Jason Eckhardt  <jle@rice.edu>
5361
5362         * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
5363         (output_delayed_branch): Remove prototype.
5364         (single_insn_src_p): Remove prototype.
5365         * config/i860/i860.c (single_insn_src_p): Remove function.
5366         (output_delayed_branch): Remove function.
5367         (output_delay_insn): Remove function.
5368         (va_start): Remove unconditional test and dead code, re-format.
5369         Fix coding style and spelling problems in various comments.
5370         * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
5371         (blockage pattern): ...and use it here.
5372         (all define_peephole patterns related to delayed branches): Remove.
5373         Fix coding style and spelling problems in various comments.
5374
5375 2003-08-22  Jason Eckhardt  <jle@rice.edu>
5376
5377         * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
5378         Remove all uses of the PARAMS macro.  Remove superflous prototypes.
5379         Convert all function definitions from traditional to ISO C90 syntax.
5380         * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
5381         with 'GCC'.  Remove all uses of the PARAMS macro.
5382         * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
5383         * config/i860/i860.md: Likewise.
5384         * config/i860/sysv4.h: Likewise.
5385         * config/i860/varargs.asm: Likewise.
5386
5387 2003-08-22  Jason Eckhardt  <jle@rice.edu>
5388
5389         * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
5390         argument.
5391         (tdesc_section): Add prototype.
5392         Update copyright dates.
5393         * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
5394         (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
5395         (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
5396         (targetm): Likewise.
5397         (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
5398         for '%d' where necessary.
5399         (i860_va_start): Remove 'stdarg_p' argument.  Make conditional checks
5400         on 'stdarg_p' unconditional.  Divide current_function_args_info.ints
5401         by UNITS_PER_WORD when referencing (likewise for .floats).
5402         (I860_SVR4_VARARGS): Rename...
5403         (I860_SVR4_VA_LIST): ...to this.
5404         Call build() with 't' rather than 'field'.
5405         (i860_rtx_costs): New function.
5406         (TARGET_RTX_COSTS): Define.
5407         (i860_internal_label): New function.
5408         (TARGET_ASM_INTERNAL_LABEL): Define.
5409         (i860_file_start): New function.
5410         Update copyright dates.
5411         * config/i860/i860.h (CPP_PREDEFINES): Remove.
5412         (TARGET_CPU_CPP_BUILTINS): Define.
5413         (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
5414         (CONST_COSTS): Remove (and move code to i860_rtx_costs).
5415         (ASM_FILE_START): Remove.
5416         (ASM_FILE_START_1): Remove.
5417         (ASM_GLOBALIZE_LABEL): Remove.
5418         (ASM_OUTPUT_INTERNAL_LABEL): Remove.
5419         (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
5420         with targetm.asm_out.internal_label.
5421         Update copyright dates.
5422         * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
5423         (CPP_PREDEFINES): Remove.
5424         (TARGET_OS_CPP_BUILTINS): Define.
5425         (GLOBAL_ASM_OP): Define.
5426         (ASM_FILE_START): Remove.
5427         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
5428         (TARGET_ASM_FILE_START): Define.
5429         Update copyright dates.
5430
5431 2003-08-22  Jason Eckhardt  <jle@rice.edu>
5432
5433         * gcc/config.gcc (i860-*-sysv4*): Add target.
5434         * config/i860/i860-protos.h: New.
5435         * config/i860/i860.c: New.
5436         * config/i860/i860.h: New.
5437         * config/i860/i860.md: New.
5438         * config/i860/sysv4.h: New.
5439         * config/i860/varargs.asm: New.
5440         * config/i860/x-sysv4: New.
5441
5442 2003-08-22  Jason Eckhardt  <jle@rice.edu>
5443
5444         * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
5445         Remove all uses of PARAMS macro.
5446         Convert all function definitions to ISO C90 syntax.
5447         * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
5448         * config/pa/fptr.c: Likewise.
5449         * config/pa/lib2funcs.asm: Likewise.
5450         * config/pa/long_double.h: Likewise.
5451         * config/pa/milli64.S: Likewise.
5452         * config/pa/pa-64.h: Likewise.
5453         * config/pa/pa-hpux.h: Likewise.
5454         * config/pa/pa-hpux10.h: Likewise.
5455         * config/pa/pa-hpux11.h: Likewise.
5456         * config/pa/pa-linux.h: Likewise.
5457         * config/pa/pa-modes.def: Likewise.
5458         * config/pa/pa-osf.h: Likewise.
5459         * config/pa/pa-pro-end.h: Likewise.
5460         * config/pa/pa.md: Likewise.
5461         * config/pa/pa32-linux.h: Likewise.
5462         * config/pa/pa64-linux.h: Likewise.
5463         * config/pa/pa64-hpux.h: Likewise.
5464         * config/pa/pa64-regs.h: Likewise.
5465         * config/pa/quadlib.c: Likewise.
5466         * config/pa/rtems.h: Likewise.
5467         * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
5468         all uses of the PARAMS macro.
5469         * config/pa/pa.h: Likewise.
5470         * config/pa/som.h: Likewise.
5471
5472         * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
5473         Remove all uses of PARAMS macro.
5474         Convert all function definitions to ISO C90 syntax.
5475         * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
5476         Remove all uses of PARAMS macro.
5477         * config/iq2000.h: Remove all uses of PARAMS macro.
5478         * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
5479
5480 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
5481
5482         * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
5483         * config/s390/s390.c (gen_consttable): Remove.
5484         (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
5485         (s390_output_pool_entry): New function.
5486         * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
5487         UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
5488         UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
5489         (UNSPECV_POOL_ENTRY): ... this new constant.
5490         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
5491         "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
5492         ("*pool_entry"): ... and replace by this new insn.
5493         ("literal_pool_31"): Do not emit anchor label if pool empty.
5494
5495         * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
5496         (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
5497         (s390_fixup_clobbered_return_reg): Remove.
5498         (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
5499         (s390_return_addr_rtx): Always retrieve return address from save area
5500         slot.  Use save_return_addr_p to force slot to be filled.
5501         (s390_emit_prologue): Remove has_hard_reg_initial_val test.
5502
5503 2003-08-22  Chris Demetriou  <cgd@broadcom.com>
5504
5505         * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
5506         (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
5507         * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
5508         around SB-1 errata if TARGET_FIX_SB1 is set.
5509         (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
5510         * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
5511
5512 2003-08-22  Roger Sayle  <roger@eyesopen.com>
5513
5514         * hashtable.c (ht_expand): Avoid calculating rehash for the common
5515         case that the first probe hits an empty hash table slot.
5516
5517 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
5518
5519         * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
5520
5521 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
5522
5523         * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
5524         (ptr_extend_plus_imm): ... this.
5525         * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
5526         optimization in C++.
5527         (ia64_output_mi_thunk): Support ILP32 mode.
5528
5529 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
5530
5531         * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
5532         function.
5533         * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
5534
5535 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
5536
5537         * config/i386/i386.c (const_int_1_operand): Simplify an
5538         integer comparison.
5539
5540 2003-08-22  Alan Modra  <amodra@bigpond.net.au>
5541
5542         * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
5543         * config/rs6000/ppc64-fp.c: Likewise.
5544
5545 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
5546
5547         * cfgcleanup.c: Fix comment typos.
5548         * emit-rtl.c: Likewise.
5549         * optabs.c: Likewise.
5550         * ra-build.c: Likewise.
5551         * rtlanal.c: Likewise.
5552         * tree.h: Likewise.
5553
5554 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
5555
5556         * c-decl.c: Fix comment formatting.
5557         * cfgrtl.c: Likewise.
5558         * combine.c: Likewise.
5559         * convert.c: Likewise.
5560         * dominance.c: Likewise.
5561         * dwarf2out.c: Likewise.
5562         * dwarfout.c: Likewise.
5563         * expmed.c: Likewise.
5564         * fold-const.c: Likewise.
5565         * gcov.c: Likewise.
5566         * genattrtab.c: Likewise.
5567         * ggc-common.c: Likewise.
5568         * mips-tfile.c: Likewise.
5569         * regmove.c: Likewise.
5570
5571 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
5572
5573         * builtin-attrs.def: Fix comment formatting.
5574         * c-pretty-print.c: Likewise.
5575         * diagnostic.h: Likewise.
5576         * langhooks.h: Likewise.
5577         * recog.c: Likewise.
5578         * simplify-rtx.c: Likewise.
5579         * tree.def: Likewise.
5580
5581 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
5582
5583         * config/m68k/m68k-protos.h: Convert to ISO C90.
5584         * config/m68k/m68k.c: Likewise.
5585
5586 2003-08-21  Bernardo Innocenti  <bernie@develer.com>
5587             Paul Dale  <pauli@snapgear.com>
5588             Peter Barada <peter@baradas.org>
5589
5590         * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
5591         ColdFire cores.
5592
5593 2003-08-21  Zack Weinberg  <zack@codesourcery.com>
5594
5595         * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
5596         * config.gcc (*-*-openbsd): Don't set tm_file.
5597         (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
5598         arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
5599         h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
5600         i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
5601         i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
5602         m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
5603         m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
5604         m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
5605         mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
5606         sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
5607         xscale-*-coff): Use explicit and complete lists of target headers
5608         to include.  Move definitions to tm_defines where appropriate.
5609         (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
5610         not-yet-contributed configuration.
5611
5612         * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
5613         * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
5614         * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
5615         * config/i386/nto.h, config/iq2000/iq2000.h,
5616         * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
5617         * config/m68k/linux.h, config/m68k/m68k-aout.h
5618         * config/m68k/m68k-none.h, config/m68k/m68kv4.h
5619         * config/m68k/netbsd.h, config/m68k/openbsd.h
5620         * config/m68k/sgs.h, config/mcore/mcore-pe.h,
5621         * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
5622         * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
5623         Remove includes of other target config headers, and
5624         definitions of macros moved to tm_defines lists.  Add #undefs
5625         where now necessary to prevent redefinition warnings.
5626
5627         * config/h8300/coff.h: New file split out of...
5628         * config/h8300/elf.h: ...here.
5629         * config/m68k/hp320base.h: New file split out of...
5630         * config/m68k/hp320.h: ...here.
5631         * config/rs6000/lynxbase.h: New file split out of...
5632         * config/rs6000/lynx.h: ...here.
5633
5634         * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
5635         * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
5636
5637         * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
5638         * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
5639         * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
5640         Remove unnecessary #ifndef.
5641         * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
5642         [under IN_LIBGCC2] with config/.
5643
5644 2003-08-21  Per Bothner  <pbothner@apple.com>
5645
5646         * cppfiles.c (stack_file):  Correctly pass return_at_eof parameter
5647         to cpp_push_buffer.
5648         * cpplex.c (_cpp_get_fresh_line):  Don't buffer->prev - handled
5649         by return_at_eof check.  Always call _cpp_pop_buffer at end.
5650
5651 2003-08-21  Kazu Hirata  <kazu@cs.umass.edu>
5652
5653         PR target/11805
5654         * config/h8300/h8300.md (two anonymous patterns): Remove.
5655
5656 2003-08-21  Richard Sandiford  <rsandifo@redhat.com>
5657
5658         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
5659         * config/mips/mips.c (function_arg_pass_by_reference): Never return
5660         true for n32 & n64.
5661
5662 2003-08-21  Josef Zlomek  <zlomekj@suse.cz>
5663
5664         * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
5665         and similarly in (A | C) == D where C & ~D != 0.
5666
5667 2003-08-20  Geoffrey Keating  <geoffk@apple.com>
5668
5669         PR 8180
5670         * configure.in: When testing with_libs and with_headers, treat
5671         'no' as unset.  Based on a patch by Dan Kegel <dank@kegel.com>.
5672         * configure: Regenerate.
5673
5674 2003-08-20  Peter Barada <peter@baradas.org>
5675
5676         * longlong.h (umul_ppmm): Add ColdFire support.
5677
5678 2003-08-20  Peter Barada <peter@baradas.org>
5679             Bernardo Innocenti  <bernie@develer.com>
5680
5681         * config/m68k/m68k-none.h: Introduce new ColdFire archs.
5682         * config/m68k/m68k.h: Likewise.
5683         * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
5684         * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
5685         * config/m68k/linux.h: Likewise.
5686         * config/m68k/m68k.c: Likewise.
5687         * config/m68k/m68k.md: Likewise.
5688         * config/m68k/m68kelf.h: Likewise.
5689         * config/m68k/netbsd-elf.h: Likewise.
5690         * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
5691
5692 2003-08-20  Bernardo Innocenti  <bernie@develer.com>
5693
5694         * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
5695         * config/m68k/m68k.md: Likewise.
5696
5697 2003-08-20  Mark Mitchell  <mark@codesourcery.com>
5698
5699         PR java/11996
5700         Revert this change:
5701         2003-08-19  Mark Mitchell  <mark@codesourcery.com>
5702         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
5703         types with precisions other than those given by native machine
5704         modes.
5705
5706 2003-08-20  Gunther Nikl  <gni@gecko.de>
5707
5708         * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
5709         selected by FSGLMUL_USE_S and FSGLDIV_USE_S
5710         * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
5711         * config/m68k/m68k.md (anonymous define_insn): Likewise
5712         * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
5713         * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
5714         code selected by NO_ASM_FMOVECR
5715
5716 2003-08-20  Gunther Nikl  <gni@gecko.de>
5717
5718         * config/m68k/m68k.c (output_move_const_into_data_reg,
5719         output_move_himode): unify MOTOROLA/MIT handling of moveq
5720         * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
5721         Likewise
5722
5723 2003-08-20  Gunther Nikl  <gni@gecko.de>
5724
5725         * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
5726         label name
5727         * config/m68k/m68k.c (m68k_output_function_epilogue): replace
5728         HOST_WIDE_INT_PRINT_DEC with %wd
5729
5730 2003-08-20  Loren James Rittle  <ljrittle@acm.org>
5731
5732         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
5733         redefine warning.
5734
5735 2003-08-20  Roger Sayle  <roger@eyesopen.com>
5736
5737         PR middle-end/11984
5738         * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
5739         operands before calling tree_int_cst_lt when performing associative
5740         transformations.
5741
5742 2003-08-20  Jason Merrill  <jason@redhat.com>
5743
5744         * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
5745         (EXPR_CHECK): Don't check for 'r' or 's' if we're
5746         checking IS_EXPR_CODE_CLASS.
5747         * calls.c (calls_function_1): Likewise.
5748         * fold-const.c (fold): Likewise.
5749         * tree.c (iterative_hash_expr): Likewise.
5750         * tree-inline.c (walk_tree, copy_tree_r): Likewise.
5751
5752 2003-08-20  Gunther Nikl  <gni@gecko.de>
5753
5754         * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
5755         depending on MOTOROLA_BSR
5756         * config/m68k/m68k.md (anonymous define_insn): Likewise
5757
5758 2003-08-20  Jason Merrill  <jason@redhat.com>
5759
5760         * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
5761         (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
5762         fold_trunc_transparent_mathfn, fold_builtin): Likewise.
5763         * dojump.c (do_jump): Likewise.
5764         * fold-const.c (operand_equal_p, fold): Likewise.
5765         (tree_expr_nonnegative_p): Likewise.
5766
5767         * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
5768         TYPE_USER_ALIGN for FIELD_DECLs.
5769
5770         * attribs.c (decl_attributes): Rebuild the function pointer type after
5771         changing the target type.
5772         * tree.c (get_qualified_type): Also check that the attributes match.
5773
5774 2003-08-19  Matt Kraai  <kraai@alumni.cmu.edu>
5775
5776         * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
5777         * objc/config-lang.in (stagestuff): ... to here.
5778
5779 2003-08-19  Mark Mitchell  <mark@codesourcery.com>
5780
5781         PR c++/11946
5782         * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
5783         NOP_EXPR) when necessary.
5784         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
5785         types with precisions other than those given by native machine
5786         modes.
5787
5788 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
5789
5790         * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
5791         because some macro is defined.
5792
5793         * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
5794         options.
5795         * config/i386/darwin.h (ASM_SPEC): New.
5796         (SUBTARGET_EXTRA_SPECS): New.
5797         * config/rs6000/darwin.h (ASM_SPEC): New.
5798         (SUBTARGET_EXTRA_SPECS): New.
5799         * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
5800         a cross-compiler between two different processors on Darwin.
5801         * configure: Regenerate.
5802
5803 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
5804
5805         * builtins.c: Fix comment typos.
5806         * c-common.c: Likewise.
5807         * c-decl.c: Likewise.
5808         * c-pretty-print.c: Likewise.
5809         * cfgbuild.c: Likewise.
5810         * cfglayout.c: Likewise.
5811         * cfgloopanal.c: Likewise.
5812         * cgraphunit.c: Likewise.
5813         * cppfiles.c: Likewise.
5814         * dwarfout.c: Likewise.
5815         * expr.c: Likewise.
5816         * fold-const.c: Likewise.
5817         * gcse.c: Likewise.
5818         * ggc-page.c: Likewise.
5819         * haifa-sched.c: Likewise.
5820         * pretty-print.c: Likewise.
5821         * tree.c: Likewise.
5822         * tree.h: Likewise.
5823         * value-prof.c: Likewise.
5824
5825 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
5826
5827         * c-decl.c: Follow spelling conventions.
5828         * cppfiles.c: Likewise.
5829
5830 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
5831
5832         * c-common.c: Fix comment formatting.
5833         * c-common.h: Likewise.
5834         * c-decl.c: Likewise.
5835         * cppinit.c: Likewise.
5836         * cpplib.h: Likewise.
5837         * emit-rtl.c: Likewise.
5838         * input.h: Likewise.
5839         * line-map.h: Likewise.
5840         * opts.c: Likewise.
5841         * opts.h: Likewise.
5842         * simplify-rtx.c: Likewise.
5843
5844 2003-08-19  Daniel Jacobowitz  <drow@mvista.com>
5845
5846         * unwind-c.c: Add libgcc-style exception.
5847         * unwind-dw2.c: Likewise.
5848         * unwind-pe.h: Likewise.
5849         * unwind-sjlj.c: Likewise.
5850         * unwind.inc: Likewise.
5851
5852 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
5853
5854         PR c/5582 PR c++/10538
5855         * langhooks-def.h (lhd_decl_uninit): Declare.
5856         (LANG_HOOKS_DECL_UNINIT): New macro.
5857         (LANG_HOOKS_INITIALIZER): Adjust.
5858         * langhooks.h (struct lang_hooks): Add new field
5859         decl_uninit.
5860         * langhooks.c (lhd_decl_uninit): Define.
5861         * c-common.c (c_decl_uninit_1): New function.
5862         (c_decl_uninit): New function.
5863         (warn_init_self): Define.
5864         * c-common.h (c_decl_uninit): Declare.
5865         (warn_init_self): Declare.
5866         * c.opt: Introduce -Winit-self.
5867         * c-opts.c (c_common_handle_options): Set warn_init_self.
5868         * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
5869         * objc/objc-lang.c  (LANG_HOOKS_DECL_UNINIT): Define.
5870         * function.c (uninitialized_vars_warning): Call the language hook.
5871         * doc/invoke.texi: Document -Winit-self.
5872
5873 2003-08-19  Chris Demetriou  <cgd@broadcom.com>
5874
5875         * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
5876         to use better predicates and constraints.  Define new
5877         instruction to handle "trap_if" with DI-mode arguments.
5878         (conditional_trap): FAIL if trap code is not 0.
5879
5880 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
5881
5882         * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
5883         strstr with $pb to a strcompare with "<pic base>"
5884         (ix86_output_addr_diff_elt): Output the real pic base.
5885
5886 2003-08-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5887
5888         * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
5889         (LANG_HOOKS_INITIALIZER): Correct.
5890         * c-lang.c: Likewise.
5891
5892 2003-08-19  Jan Hubicka  <jh@suse.cz>
5893
5894         * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
5895         (cgraph_varpool_mark_needed_node): Likewise.
5896         * cgraph.h (notice_global_symbol): Declare
5897         * varasm.c (notice_global_symbol): Break out from ...
5898         (assemble_start_function): ... here; update for variables.
5899         (assemble_variable): Use notice_global_symbol.
5900
5901 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
5902
5903         * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
5904         expect SFmode and DFmode arguments to be passed in FPRs,
5905         regardless of the underlying type.
5906
5907 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
5908
5909         PR target/11924
5910         * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
5911         (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
5912
5913 2003-08-18  Matt Kraai  <kraai@alumni.cmu.edu>
5914
5915         PR c/11207
5916         * c-typeck.c (set_init_index): Check for negative index.
5917
5918 2003-08-18  Bob Wilson  <bob.wilson@acm.org>
5919
5920         * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
5921         call0 ABI.
5922         * config/xtensa/crtn.asm (_init, _fini): Likewise.
5923         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
5924         __umodsi3, __modsi3): Likewise.
5925         * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
5926         $(INCLUDES).
5927
5928 2003-08-18  Aldy Hernandez  <aldyh@redhat.com>
5929
5930         * config/rs6000/spe.md ("*nabssf2_gpr"): New.
5931
5932 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
5933
5934         * config/mips/mips.md: Quote C code in braces.  Remove use of
5935         fake const0_rtx operands.  Remove double backslashes.  Use \;.
5936         Remove workarounds for bogus warnings.
5937
5938 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
5939
5940         * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
5941         (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
5942         rather than TARGET_MIPS4300.
5943         (mulsf3_internal, mulsf3_r4300): Likewise.
5944
5945 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
5946
5947         * config/mips/mips.md: Renumber unspecs.  Clean up comments.
5948
5949 2003-08-17  Roger Sayle  <roger@eyesopen.com>
5950
5951         * simplify-rtx.c (associative_constant_p): New function to test
5952         whether an RTX expression is an immediate constant.
5953         (simplify_associative_operation): New function to perform some
5954         reassociation optimizations of associative binary expressions.
5955         (simplify_binary_operation): Use simplify_associative_operation
5956         to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
5957         Floating point expressions are only reassociated when unsafe
5958         math optimizations are permitted.
5959
5960 2003-08-17  Andreas Jaeger  <aj@suse.de>
5961
5962         * config/alpha/alpha.md: Remove usage of PARAMS.
5963
5964         * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
5965         * config/i386/i386-interix.h: Likewise.
5966         * config/i386/winnt.c: Likewise.
5967         * config/i386/cygming.h: Likewise.
5968         * config/i386/cygwin2.c: Likewise.
5969         * config/darwin.c: Likewise.
5970         * config/darwin-c.c: Likewise.
5971         * config/darwin-protos.h: Likewise.
5972         * config/darwin.h: Likewise.
5973         * config/s390/s390-protos.h: Likewise.
5974         * config/s390/s390.c: Likewise.
5975         * config/ia64/ia64.c: Likewse
5976         * config/ia64/ia64-protos.h: Likewise.
5977         * config/ia64/ia64-c.c: Likewise.
5978
5979 2003-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5980
5981         * config/sparc/sparc.c: Convert to ISO C.
5982
5983         * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
5984         * config/sparc/sparc.c: Likewise.
5985
5986 2003-08-16  Nathan Sidwell  <nathan@codesourcery.com>
5987
5988         PR c++/11512
5989         * stmt.c (expand_expr_stmt_value): Don't warn about any void
5990         typed expression.
5991
5992 2003-08-16  Jan Hubicka  <jh@suse.cz>
5993
5994         * i386.c (ix86_fntype_regparm): Rename from ...
5995         (ix86_function_regparm): ... this one; add fastcall and local
5996         functions.
5997         (ix86_function_ok_for_sibcall): Update.
5998         (ix86_return_pops_args): Likewise.
5999         (init_cumulative_args): Likewise.
6000         (x86_can_output_mi_thunk): Likewise.
6001         (function_arg): Fix formating.
6002         (x86_this_parameter): Fix fastcall.
6003         (x86_output_mi_thunk): Likewise.
6004
6005         * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
6006         body as reachable; mark nested functions as needed too.
6007         (dump_cgraph): Do not output global.calls.
6008         * cgraph.h (cgraph_global_info): Kill.
6009         * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
6010         (record_call_1): Speedup.
6011         (cgraph_analyze_function): Break out from ...; compute inlining
6012         parameters.
6013         (cgraph_finalize_compilation_unit): ... here.
6014         (cgraph_mark_inline): Kill computation of calls.
6015         (cgraph_decide_inlining): Do not compute most of initial values.
6016
6017 2003-08-14  Roger Sayle  <roger@eyesopen.com>
6018
6019         * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
6020         to negate if either operand is easy to negate, if we don't care
6021         about sign-dependent rounding.
6022         (negate_expr): Make the logic to negate a REAL_CST explicit.
6023         Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
6024         that's easy to negate, if we don't honor sign-dependent rounding.
6025         (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
6026         negate, and the symmetric A * -B as -A * B if A is easy to negate.
6027         (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
6028         -C/D if B and C are cheap to negate.  Add an explicit rule to
6029         optimize X/-1.0 as -X when we don't care about signaling NaNs.
6030
6031 2003-08-14  Zack Weinberg  <zack@codesourcery.com>
6032
6033         * Makefile.in (tm_file): Rename tm_include_list.
6034         (tm_p_file): Rename tm_p_include_list.
6035         (build_xm_file): Rename build_xm_include_list.
6036         (host_xm_file): Rename host_xm_include_list.
6037         (xm_file): Rename xm_include_list.
6038         (xm_file_list): Add to be substituted.
6039         (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
6040         Update to match.
6041         (bt-load.o): Add missing dependency on $(TM_H).
6042         * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
6043         For each of tm_file, tm_p_file, xm_file, host_xm_file, and
6044         build_xm_file, generate both *_file_list and *_include_list
6045         values from it.  (xm_file_list was formerly not being generated.)
6046         In *_include_list, prefix the names of all headers found in
6047         $(srcdir)/config with config/.  In each loop, consider only
6048         the special case files that can actually appear in that list.
6049         AC_SUBST all *_file_list and all *_include_list variables; do
6050         not AC_SUBST the plain *_file variables.
6051         * configure: Regenerate.
6052
6053 2003-08-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6054
6055         * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
6056
6057 2003-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6058
6059         * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
6060         direct calls.
6061         (attr_length_call): Include it here.  Improve length estimate for
6062         local calls.
6063         (output_call): Use targetm.binds_local_p.
6064
6065 2003-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6066
6067         * builtins.c (CASE_MATHFN): New helper macro.
6068         (mathfn_built_in): Simplify and sort.
6069
6070         * protoize.c (substr): Delete, callers changed to `strstr'.
6071
6072 2003-08-13  Zack Weinberg  <zack@codesourcery.com>
6073
6074         * config.gcc (iq2000*-*-elf*): Don't set xm_file.
6075         * config/iq2000/xm-iq2000.h: Delete file.
6076
6077 2003-08-13  Geoffrey Keating  <geoffk@apple.com>
6078
6079         * gengtype.c (walk_type): Process a subobject before processing
6080         the pointer that points to the subobject.
6081
6082 2003-08-13  Per Bothner  <pbothner@apple.com>
6083
6084         * regclass.c (init_reg_modes):  Make non-static.
6085         Rename to init_reg_modes_once per new naming convention.
6086         (init_regs):  Don't call init_reg_modes here.
6087         * emit-rtl.c (init_emit_once):  Call init_reg_modes_once here instead.
6088         * rtl.h (init_reg_modes_once):  New declaration.
6089         * toplev.c (backend_init):  Call init_regs after init_emit_once.
6090
6091 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
6092
6093         * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
6094         special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
6095
6096 2003-08-13  J"orn Rennecke <joern.rennecke@superh.com>
6097
6098         * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
6099         * sh.md (load_ra): Change insn predicate to TARGET_SH1.
6100
6101 2003-08-13  Dale Johannesen  <dalej@apple.com>
6102
6103         * config/rs6000/rs6000.md (ctrsi, ctrdi):  Reenable
6104         handling of decrement-and-branch farther than 32 bits.
6105
6106 2003-08-12  Kelley Cook  <kelleycook@wideopenwest.com>
6107
6108         * configure.in (make_compare_target): Move test to ...
6109         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
6110         * configure: Regenerate.
6111
6112 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
6113
6114         * config/mips/iris6.h: Convert to C90 prototypes.
6115         * config/mips/irix6-libc-compat.c: Likewise.
6116         * config/mips/mips-protos.h: Likewise.
6117         * config/mips/mips.c: Likewise.
6118
6119 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
6120
6121         fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel.  Enable
6122         for selected machines.  Comment heavily.
6123         fixinc/fixincl.x: Rebuild.
6124         fixinc/tests/base/fs/rfs/rf_cache.h: New file.
6125
6126 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
6127
6128         * config/mips/mips.h: Tweak various comments.
6129         * config/mips/mips.c: Likewise.
6130
6131 2003-08-11  James E Wilson  <wilson@tuliptree.org>
6132
6133         PR optimization/11319
6134         PR target/10021
6135         * alias.c (find_base_value, case REG): Return 0 not src if no base
6136         found.
6137
6138 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6139
6140         * gcse.c (gmalloc): Fix last change.
6141
6142 2003-08-11  Roger Sayle  <roger@eyesopen.com>
6143
6144         * simplify-rtx.c (simplify_binary_operation): Replace calls to
6145         gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
6146         and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
6147         gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
6148
6149 2003-08-11  Roger Sayle  <roger@eyesopen.com>
6150
6151         * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
6152         * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
6153         typecode for an ABS_EXPR.
6154
6155         * doc/c-tree.texi: Document ABS_EXPR.
6156
6157 2003-08-11  Roger Sayle  <roger@eyesopen.com>
6158
6159         * fold-const.c (fold): Optimize any associative floating point
6160         operator with -funsafe-math-optimizations, not just MULT_EXPR.
6161
6162 2003-08-11  Kaz Kojima  <kkojima@gcc.gnu.org>
6163
6164         * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
6165         information in SHmedia case too.
6166         (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
6167         Likewise.
6168         (__set_fpscr): Use an access via GOT for PIC case.
6169
6170 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
6171
6172         * configure.in (intermodule): Make switch test more portable.
6173         * configure: Regenerate.
6174
6175 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
6176
6177         * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
6178         (restrap): Likewise.
6179
6180 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6181
6182         * gcse.c (gmalloc): Argument is a size_t.  Add ATTRIBUTE_MALLOC.
6183         (grealloc): Size argument is a size_t.
6184         (gcalloc): New function.  Use throughout in lieu of
6185         gmalloc/memset.
6186
6187         * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
6188         xmalloc/memset.
6189         * config/ia64/ia64.c (ia64_reorg): Likewise.
6190         * conflict.c (conflict_graph_new): Likewise.
6191         * fixinc/fixincl.c (run_compiles): Likewise.
6192         * genattrtab.c (optimize_attrs): Likewise.
6193         * genrecog.c (new_decision): Likewise.
6194         * haifa-sched.c (schedule_block): Likewise.
6195         * hashtable.c (ht_create): Likewise.
6196
6197 2003-08-11  Bob Wilson  <bob.wilson@acm.org>
6198
6199         * config/xtensa/lib2funcs.S: Fix whitespace.
6200         * config/xtensa/xtensa.md (all insns and expanders): Use brace block
6201         syntax where appropriate.  Remove unnecessary backslash escapes.
6202         Reformat comments and fix some code formatting.
6203         (extendqisi2): Rearrange conditional.
6204         (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
6205         *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
6206         of fatal_insn.
6207
6208 2003-08-11  Richard Sandiford  <rsandifo@redhat.com>
6209
6210         * config/mips/mips.c: Various formatting fixes.
6211         (override_options): Resync -mtune handling with gas.
6212         (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
6213         * config/mips/mips.h: More formatting fixes.
6214         (mips_abi): Move declaration.
6215         * config/mips/mips.md (exception_receiver): Add mode to
6216         unspec_volatile.
6217
6218 2003-08-11  Aldy Hernandez  <aldyh@redhat.com>
6219
6220         * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
6221         evsplatfi here.
6222         (bdesc_1arg): Remove evsplati and evsplatfi.
6223
6224 2003-08-11  J"orn Rennecke <joern.rennecke@superh.com>
6225
6226         * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
6227         into account.
6228
6229 2003-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6230
6231         * builtins.c (expand_builtin_strcat): Optimize constant strings.
6232
6233 2003-08-10  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6234
6235         * pretty-print.c (pp_base_indent): Rename from pp_indent.
6236         * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
6237         (struct c_pretty_print_info): Add more fields.
6238         (pp_c_left_paren): Move to c-pretty-print.c.
6239         (pp_c_right_paren): Likewise.
6240         (pp_c_left_brace): Likewise.
6241         (pp_c_right_brace): Likewise.
6242         (pp_c_left_bracket): Likewise.
6243         (pp_c_right_bracket): Likewise.
6244         (pp_c_declarator): Declare.
6245         (pp_c_direct_declarator): Likewise.
6246         (pp_c_specifier_qualifier_list): Likewise.
6247         (pp_c_type_id): Likewise.
6248         * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
6249         (pp_c_type_qualifier_list): New.
6250         (pp_c_pointer): Likewise.
6251         (pp_c_parameter_type_list): Likewise.
6252         (pp_c_function_definition): Likewise.
6253         (pp_c_id_expression): Likewise.
6254         (pp_c_simple_type_specifier): Tidy.
6255         (pp_c_unary_expression): Likewise.
6256         (pp_c_expression): Likewise.
6257         (pp_c_pretty_printer_init): Likewise.
6258         (pp_c_specifier_qualifier_list): Rework..
6259         (pp_c_abstract_declarator): Likewise.
6260         (pp_c_postfix_expression): Likewise.
6261         (pp_c_primary_expression): Likewise.
6262         (pp_c_cast_expression): Likewise.
6263         (pp_c_direct_abstract_declarator): Likewise.
6264         (pp_c_storage_class_specifier): Likewise.
6265         (pp_c_function_specifier): Likewise.
6266         (pp_c_declaration_specifiers): Likewise.
6267         (pp_c_direct_declarator): Likewise.
6268         (pp_c_declarator): Likewise.
6269         (pp_c_declaration): Likewise.
6270         (pp_c_statement): Likewise.
6271         (pp_c_integer_constant): Rename from pp_c_integer_literal.
6272         (pp_c_character_constant): Rename from pp_c_character_literal.
6273         (pp_c_bool_constant): Rename from pp_c_bool_literal.
6274         (pp_c_enumeration_constant): Rename from pp_c_enumerator.
6275         (pp_c_floating_constant): Rename from pp_c_real_literal.
6276         (pp_c_constant): Rename from pp_c_literal.
6277         * c-lang.c: Include diagnostic.h and c-pretty-print.h
6278         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
6279         (c_initialize_diagnostics): New.
6280         * Makefile.in (c-lang.o): Update dependency.
6281
6282 2003-08-10  Nathan Sidwell  <nathan@codesourcery.com>
6283
6284         * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
6285
6286 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
6287
6288         * config/mips/mips.c (mips_no_mips16_string): Remove.
6289         (override_options): Don't handle -mips16 as part of -mipsN.
6290         * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
6291         (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
6292         (TARGET_OPTIONS): Remove -mno-mips16.
6293
6294 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
6295
6296         * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
6297         (coprocessor2_operand): Likewise.
6298         * config/mips/mips.c (STAB_CODE_TYPE): Remove.
6299         (lookup_name): Remove declaration.
6300         (abort_with_insn): Remove.  Replace all uses with fatal_insn.
6301         (mips16, mips_abicalls): Remove.
6302         (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
6303         (arith32_operand, large_int, true_reg_or_0_operand): Remove.
6304         (coprocessor_operand, coprocessor2_operand): Remove.
6305         (override_options): Don't set mips16 or mips_abicalls.
6306         (print_operand): Don't expect SIGN_EXTEND operands.
6307         (mips_secondary_reload_class): Likewise.
6308         (mips_output_conditional_branch): Remove disabled long-branch code.
6309         * config/mips/mips.h (call_used_regs): Remove declaration.
6310         (may_call_alloca): Likewise.
6311         (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
6312         (mips_abicalls, mips16): Remove declarations.
6313         (ASM_FINAL_SPEC, LIB_SPEC): Remove.
6314         (CC1_SPEC): Remove outdated comment.
6315         (MIPS_VERSION, MACHINE_TYPE): Remove.
6316         (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6317         (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
6318         (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
6319         (PUSH_ROUNDING): Likewise.
6320         (ASSEMBLER_SCRATCH_REGNUM): Remove.
6321         * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
6322         and mips16 with TARGET_MIPS16.
6323
6324 2003-08-09  Per Bothner  <pbothner@apple.com>
6325
6326         * cppinit.c (cpp_read_main_file):  Split out source-independent
6327         initialization to separate function ...
6328         (cpp_post_options):  New function.
6329         * cppfiles.c (cpp_stack_file):  Rename public name to ...
6330         (_cpp_stack_file):  New internal function name.
6331         * cpplib.h:  Update accordingly.
6332         * cppinit.c:  (cpp_create_reader):  Initialize cpp_readers line here.
6333         (cpp_read_main_file):  Don't initialize line here.
6334         * c-opts.c (c_common_post_options):  Call cpp_post_options.
6335         (c_common_parse_file):  Call cpp_read_main_file, not cpp_stack_file.
6336         * fix-header.c (read_scan_file):  Call cpp_post_options.
6337
6338 2003-08-09  Per Bothner  <per@bothner.com>
6339
6340         * c-decl.c (SCOPE_LIST_APPEND):  Remove bogus line continuation.
6341
6342 2003-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6343
6344         * pa.c (pa_asm_output_mi_thunk): Fix typo.
6345
6346 2003-08-09  Neil Booth  <neil@daikokuya.co.uk>
6347
6348         PR preprocessor/11839
6349         * cppfiles.c (open_file): Handle ENOTDIR.
6350
6351 2003-08-09  Richard Sandiford  <rsandifo@redhat.com>
6352
6353         PR target/11699
6354         * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
6355
6356 2003-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6357
6358         * pa.md (extzv, extv, insv): Fix operand limit checks.  Fail if
6359         source/destination is not a register operand.
6360
6361 2003-08-08  Richard Henderson  <rth@redhat.com>
6362
6363         PR target/11535
6364         * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
6365         RETURN_ADDRESS_POINTER_REGNUM.
6366         (ia64_expand_prologue): Don't frob it.
6367         (ia64_output_function_epilogue): Likewise.
6368         (ia64_return_addr_rtx): New.
6369         (ia64_split_return_addr_rtx): New.
6370         * config/ia64/ia64-protos.h: Update.
6371         * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
6372         (RETURN_ADDRESS_POINTER_REGNUM): Remove.
6373         (GENERAL_REGNO_P): Don't check it.
6374         (AR_*_REGNUM): Renumber.
6375         (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
6376         (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
6377         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
6378         (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
6379         (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
6380         * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
6381         (movdi_ret_addr): New.
6382
6383 2003-08-08  Geoffrey Keating  <geoffk@apple.com>
6384
6385         * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
6386
6387 2003-08-08  Roger Sayle  <roger@eyesopen.com>
6388
6389         * tree.h (get_identifier) Define a macro form of get_identifier
6390         that calls get_identifier_with_length when the string is constant.
6391         (get_identifier_with_length): Change type of second argument to
6392         size_t in prototype.
6393         * stringpool.c (get_identifier): Undefine the macro before giving
6394         the function definition.
6395         (get_identifier_with_length): Change  type of second argument to
6396         size_t in function definition.
6397         * hashtable.c (calc_hash): Change type of second argument to size_t.
6398         (ht_lookup): Change type of third argument to size_t.  Reorganize
6399         to speed-up the cases where the hash table slot is empty, or the
6400         first probe matches (i.e. there isn't a collision).
6401         * hashtable.h (ht_lookup): Adjust function prototype.
6402
6403 2003-08-08  Bernardo Innocenti  <bernie@develer.com>
6404
6405         PR target/9697
6406         PR target/11777
6407         * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
6408
6409 2003-08-08  Neil Booth  <neil@daikokuya.co.uk>
6410
6411         * common.opt: Add debug switches.
6412         * flags.h (use_gnu_debug_info_extensions): Boolify.
6413         * opts.c (write_symbols, debug_info_level,
6414         use_gnu_debug_info_extensions): Move from toplev.c.
6415         (set_debug_level): New.
6416         (common_handle_options): Handle debug switches.
6417         (print_help): Display target options directly.
6418         * toplev.c (debug_hooks): Don't initialize.
6419         (write_symbols, debug_info_level,
6420         use_gnu_debug_info_extensions): Move to opts.c.
6421         (debug_args, display_help, decode_g_option): Remove.
6422         (process_options): Set no debug if level zero here,
6423         and no-debug-hooks.  Error here if impossible debug format selected.
6424         * toplev.h (display_help, decode_g_option): Remove.
6425
6426 2003-08-08  Richard Sandiford  <rsandifo@redhat.com>
6427
6428         * tree.c (get_file_function_name_long): Fix size of alloca() area.
6429
6430 2003-08-08  Kelley Cook  <kelleycook@wideopenwest.com>
6431
6432         * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
6433         and gcc_cv_prog_cmp_skip.
6434         * configure: Regenerate.
6435
6436 2003-08-08  Stan Cox  <scox@redhat.com>
6437
6438         * config/iq2000: New port.
6439         * config.gcc (iq2000-*-elf): Added.
6440         * doc/install.texi (Specific):  Add iq2000 description.
6441
6442 2003-08-08  Andreas Schwab  <schwab@suse.de>
6443
6444         * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
6445         and insert missing empty argument.
6446         * configure: Regenerate.
6447
6448 2003-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6449
6450         * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
6451         (attr_length_millicode_call): Likewise.
6452         (attr_length_call): Likewise.  Revise some maximum insn lengths.
6453         (attr_length_indirect_call): Likewise.
6454         (output_call): Fix thinko that added extra nop.
6455         * pa.h (IN_NAMED_SECTION_P): Define.
6456
6457         PR c++/11712
6458         * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
6459         __STDC_EXT__ when using C++ dialect.
6460
6461 2003-08-07  J"orn Rennecke <joern.rennecke@superh.com>
6462
6463         * sh.c (calc_live_regs): If the return address pointer is live,
6464         force pr live.
6465         (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
6466         for saves / restores.
6467         (sh_expand_epilogue): If sh_media_register_for_return returns a
6468         register number, flag the instructions that restores PR_MEDIA_REG
6469         as possibly dead.
6470         Remove dead update of offset.
6471         (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
6472         we can use the result of get_hard_reg_initial_val.
6473         * sh.md (UNSPEC_RA): New constant.
6474         (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
6475         (load_ra).  Handle UNSPEC_RA.
6476         (sibcall_media): Use PR_MEDIA_REG.
6477
6478         * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
6479         * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
6480         needs saving on SHmedia.
6481
6482 2003-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
6483
6484         * config/s390/s390.md: Replace all occurrences of \\t with \t.
6485
6486 2003-08-07  Richard Sandiford  <rsandifo@redhat.com>
6487
6488         * local-alloc.c (combine_regs): Fix comment typo.
6489
6490 2003-08-06  Zack Weinberg  <zack@codesourcery.com>
6491
6492         * c-decl.c (builtin_decls): Replace with first_builtin_decl
6493         and last_builtin_decl.
6494         (c_init_decl_processing): Initialize both.
6495         (c_reset_state): Iterate from first_builtin_decl to
6496         last_builtin_decl inclusive to reintroduce builtins.
6497
6498 2003-08-06  David Mosberger  <davidm@hpl.hp.com>
6499
6500         * doc/extend.texi (Function Attributes): Document the IA-64 version
6501         of the "model" attribute.
6502
6503         * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
6504         (SYMBOL_REF_SMALL_ADDR_P): Ditto.
6505         (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
6506
6507         * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
6508         (ia64_encode_section_info): Likewise.
6509         (ia64_attribute_table): Add "model" attribute.
6510         (TARGET_ENCODE_SECTION_INFO): Define.
6511         (small_addr_symbolic_operand): New function.
6512         (got_symbolic_operand): Return 0 for a symbolref to an object
6513         in the small address area.
6514         (enum ia64_addr_area): New type.
6515         (small_ident1): New variable.
6516         (small_ident2): Likewise.
6517         (init_idents): New function.
6518         (ia64_get_addr_area): Likewise.
6519         (ia64_encode_addr_area): Likewise.
6520         (ia64_encode_section_info): Likewise.
6521         (ia64_expand_load_address): For symbolic references to objects in
6522         the small-address-area, load the address via gen_rtx_SET() (which,
6523         eventually, will expand into "addl").
6524
6525 2003-08-06  Per Bothner  <pbothner@apple.com>
6526
6527         * line-map.h (fileline):  New typedef.
6528         (struct line_map, linemap_add, linemap_lookup):  Use it.
6529         * input.h (struct location_s):  Comment notes that long-term we want
6530         to replace it by fileline.
6531
6532 2003-08-06  J"orn Rennecke <joern.rennecke@superh.com>
6533
6534         Fix SHcompact exception handling:
6535         * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
6536         by the prologue, return a MEM with return_address_pointer_rtx
6537         as address.
6538         * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
6539         (RETURN_ADDR_OFFSET): Don't define.
6540         (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
6541         registers that are visible in compact mode.  Show that SHmedia
6542         registers still exist in compact mode, even if there are not
6543         readily accessible.
6544         (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
6545         if GLOBAL.  Use DW_EH_PE_textrel (nominally) for CODE,
6546         and DW_EH_PE_pcrel for pic data.
6547         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
6548         set SYMBOL_FLAG_FUNCTION in symbol, and actually use
6549         DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
6550         (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
6551         * sh.md (movsi_media-1): New splitter.
6552
6553 2003-08-06  Graeme Peterson <gp@qnx.com>
6554
6555         * config/i386/nto.h: New.
6556         * config/i386/t-nto: New.
6557         * config.gcc (i[34567]86-*-nto-qnx*): New.
6558
6559 2003-08-06  Phil Edwards  <pme@gcc.gnu.org>
6560
6561         * doc/install.texi (*-*-solaris2*):  Refine configure instructions.
6562
6563 2003-08-06  Alan Modra  <amodra@bigpond.net.au>
6564
6565         * calls.c (load_register_parameters): Arrange for call_fusage to
6566         report the whole register as used when shifting to the msb.
6567
6568 2003-08-05  Roger Sayle  <roger@eyesopen.com>
6569
6570         * builtins.c (expand_builtin): When not optimizing, call the library
6571         function for all builtins that have library functions (except alloca).
6572
6573 2003-08-05  Alexandre Oliva  <aoliva@redhat.com>
6574
6575         * c.opt: Introduce -fworking-directory.
6576         * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
6577         * c-common.h (flag_working_directory): Declare.
6578         * c-common.c (flag_working_directory): Define.
6579         * c-opts.c (c_common_handle_options): Set it.
6580         (sanitize_cpp_opts): Set...
6581         * cpplib.h (struct cpp_options): ... working_directory option.
6582         (struct cpp_callbacks): Add dir_change.
6583         * cppinit.c (read_original_filename): Call...
6584         (read_original_directory): New.  Look for # 1 "directory//"
6585         and process it.
6586         (cpp_read_main_file): Call dir_change callback if working_directory
6587         option is set.
6588         * gcc.c (cpp_unique_options): Pass -g*.
6589         * c-lex.c (cb_dir_change): New.
6590         (init_c_lex): Set dir_change callback.
6591         * toplev.c (src_pwd): New static variable.
6592         (set_src_pwd, get_src_pwd): New functions.
6593         * toplev.h (get_src_pwd, set_src_pwd): Declare.
6594         * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
6595         * dwarf2out.c (gen_compile_unit_die): Likewise.
6596         * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
6597
6598 2003-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6599
6600         * pretty-print.h (pp_set_line_maximum_length): Make macro.
6601         (pp_set_prefix): Likewise.
6602         (pp_destroy_prefix): Likewise.
6603         (pp_remaining_character_count_for_line): Likewise.
6604         (pp_clear_output_area): Likewise.
6605         (pp_formatted_text): Likewise.
6606         (pp_last_position_in_text): Likewise.
6607         (pp_emit_prefix): Likewise.
6608         (pp_append_text): Likewise.
6609         (pp_flush): Likewise.
6610         (pp_format_text): Likewise.
6611         (pp_format_verbatim): Likewise.
6612         (pp_tree_identifier): Tidy.
6613         * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
6614         (pp_base_format_verbatim): Rename from pp_format_verbatim.
6615         (pp_base_flush): Rename from pp_flush.
6616         (pp_base_set_line_maximum_length): Rename from
6617         pp_set_line_maximum_length.
6618         (pp_base_clear_output_area): Rename from pp_clear_output_area.
6619         (pp_base_set_prefix): Rename from pp_set_prefix.
6620         (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
6621         (pp_base_emit_prefix): Rename from pp_emit_prefix.
6622         (pp_base_append_text): Rename from pp_append_text.
6623         (pp_base_formatted_text): Rename from pp_formatted_text.
6624         (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
6625         (pp_base_remaining_character_count_for_line): Rename from
6626         pp_remaining_character_count_for_line.
6627         * diagnostic.h (diagnostic_format_decoder): Tidy.
6628         (diagnostic_flush_buffer): Likewise.
6629         * c-pretty-print.h: (pp_c_string_literal): Declare.
6630         (pp_c_real_literal): Likewise.
6631         (pp_c_integer_literal): Likewise.
6632         * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
6633         pp_identifier.
6634         (pp_c_character_literal): Tidy.
6635         (pp_c_string_literal): Make public.
6636         (pp_c_bool_literal): Likewise.
6637         (pp_c_integer_literal): Likewise.
6638         (pp_c_real_literal): Likewise.
6639
6640         * Makefile.in (C_PRETTY_PRINT_H): New variable.
6641         (c-pretty-print.o): Update dependence.
6642
6643 2003-08-05  Chris Demetriou  <cgd@broadcom.com>
6644
6645         * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
6646         ".set nomacro" state.
6647         (fix_truncsfsi2_macro): Likewise.
6648
6649 2003-08-05  Steven Bosscher  <steven@gcc.gnu.org>
6650
6651         * tree.h (DID_INLINE_FUNC): Remove macro.
6652         (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
6653         add tree check for FUNCTION_DECL.
6654         (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
6655         (struct tree_decl): Rename inlined_function_flag to
6656         declared_inline_flag.
6657         * c-common.h (c_lang_decl): Remove.
6658         (DECL_ESTIMATED_INSNS): Remove.
6659         * c-tree.h (struct lang_decl): Don't include c_lang_decl.
6660         (DECL_DECLARED_INLINE_P): Remove.
6661         * c-decl.c (grokdeclarator): Update comment.  With -finline-functions,
6662         do not reset DECL_DECLARED_INLINE_P.  Don't use DID_INLINE_FUNC.
6663         (finish_function): Make uninlinable a bool.  Fixup call to
6664         tree_inlinable_function_p() and fix some code style issues.
6665         * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
6666         * cgraph.c (dump_cgraph): Likewise.
6667         * cgraphunit.c (cgraph_decide_inlining): Likewise
6668         (cgraph_finalize_compilation_unit): Likewise.
6669         Also update call to tree_inlinable_function_p().
6670         (cgraph_default_inline_p): Don't use DID_INLINE_FUNC.  Instead
6671         look at DECL_DECLARED_INLINE and reverse logic.
6672         * print-tree.c (print_node): Likewise.
6673         * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
6674         * tree-inline.h (tree_inlinable_function_p): Make a bool.  Update
6675         prototype.
6676         * tree-inline.c (inlinable_function_p): Split up in this function to
6677         check for basic inlining inhibiting conditions, and new
6678         limits_allow_inlining() function.  Warn if inlining is impossible
6679         because the inline candidate calls alloca or uses sjlj exceptions.
6680         (limits_allow_inlining): this new function to check if the inlining
6681         limits are satisfied.  Throttle from currfn_max_inline_insns, not from
6682         MAX_INLINE_INSNS_SINGLE.  The latter only makes sense if
6683         MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
6684         Update prototypes.
6685         (tree_inlinable_function_p): Make a bool.  Update call to
6686         inlinable_function_p
6687         (expand_call_inline): Use limits_allow_inlining() when not in
6688         unit-at-a-time mode to decide on inlining.  Don't use DID_INLINE_FUNC,
6689         instead see if the function was declared `inline'.
6690
6691 2003-08-05  Josef Zlomek  <zlomekj@suse.cz>
6692
6693         * gcse.c (try_replace_reg): Fix updating of note.
6694
6695 2003-08-04  Roger Sayle  <roger@eyesopen.com>
6696
6697         PR middle-end/11771
6698         * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
6699         logic in negate_expr, i.e. we don't invert (A-B) for floating
6700         point types unless flag_unsafe_math_optimizations.
6701
6702 2003-08-04  Roger Sayle  <roger@eyesopen.com>
6703
6704         * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
6705         Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
6706         for floating point expressions with -ffast-math.
6707         (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
6708         * expmed.c (expand_mult): Wrap long line.  Expand x*2.0 as x+x.
6709
6710 2003-08-04  Roger Sayle  <roger@eyesopen.com>
6711
6712         * c-common.c (flag_noniso_default_format_attributes): Delete.
6713         (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
6714         (c_attrs_initialized): Delete.
6715         (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
6716         always call c_init_attributes.
6717         (c_init_attributes): Don't define/undefine DEF_FN_ATTR.  Don't
6718         set c_attrs_initialized when done.
6719         (c_common_insert_default_attributes): Delete.
6720         * c-common.h (flag_noniso_default_format_attributes): Delete.
6721         (c_coomon_insert_default_attributes): Delete prototype.
6722         * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
6723         flag_noniso_default_format_attributes.
6724
6725         * c-decl.c (c_insert_default_attributes): Delete.
6726         * c-tree.h (c_insert_default_attributes): Delete prototype.
6727
6728         * attribs.c (decl_attributes): Don't call insert_default_attributes
6729         langhook.  Update function description comment.
6730         * langhooks.h (lang_hooks): Remove insert_default_attributes field.
6731         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
6732         * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
6733         * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
6734
6735         * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
6736         define.
6737
6738 2003-08-04  Richard Sandiford  <rsandif@redhat.com>
6739
6740         * config/mips/mips.c (override_options): Disable -G on targets that
6741         have no .section support.
6742         (mips_select_section): Use default_select_section for such targets.
6743
6744 2003-08-04  Nathanael Nerode  <neroden@gcc.gnu.org>
6745
6746         * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
6747         * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
6748         * fixinc/fixincl.x: Rebuild.
6749         * fixinc/tests/base/regexp.h: New test.
6750
6751 2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
6752
6753         * c-ppoutput.c (cb_line_change): Don't skip line changing while
6754         parsing macro arguments in the top-level context.
6755
6756 2003-08-04  Neil Booth  <neil@daikokuya.co.uk>
6757
6758         * config.in: Remove HAVE_LSTAT.
6759         * configure, configure.in: Don't test for lstat.
6760
6761 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6762
6763         * opts.c (decode_options): Do language-specific initialization for
6764         the global diagnostic context.
6765         * langhooks-def.h (lhd_initialize_diagnostics): Declare.
6766         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
6767         (LANG_HOOKS_INITIALIZER): Adjust.
6768         * langhooks.h (struct lang_hooks): Add new field
6769         initialize_diagnostics.
6770         * langhooks.c (lhd_initialize_diagnostics): Define.
6771
6772 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6773
6774         * pretty-print.h:   Adjust macro definitions.
6775         * pretty-print.c (pp_newline): Rename to pp_base_newline.
6776         (pp_character): Rename to pp_base_character.
6777         (pp_string): Rename to pp_base_string.
6778         * c-pretty-print.c (pp_buffer): Move to pretty-print.h
6779         (pp_newline):  Likewise.  Adjust.
6780         (pp_c_char): Adjust.
6781
6782 2003-08-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6783
6784         * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
6785         BUILT_IN_LLABS): Move to miscellaneous section.
6786
6787 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
6788
6789         PR preprocessor/11534
6790         * cppexp.c (parse_defined): Warn only if -pedantic.
6791
6792 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
6793
6794         * cppfiles.c (stack_file): Use file path.
6795
6796 2003-08-02  Roger Sayle  <roger@eyesopen.com>
6797
6798         * builtin-types.def (BT_SSIZE): New primitive type.
6799         (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
6800         BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
6801         BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
6802         BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
6803         * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
6804         BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
6805         BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
6806         * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
6807         few functions that define default attributes using it.
6808         * c-common.c (c_common_insert_default_attributes): Do nothing.
6809
6810         * doc/extend.texi: Document these "new" builtins.
6811
6812 2003-08-02  Kaz Kojima  <kkojima@gcc.gnu.org>
6813
6814         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
6815         (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
6816         when -mieee-fp set and -shared not set.
6817         (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
6818
6819 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
6820
6821         * cppfiles.c (struct _cpp_file): Rename once_only_next to
6822         next_file.  Remove import and pragma_once, add once_only.
6823         (find_file): Add new file structures to the all_files list.
6824         (should_stack_file): Mark #import-ed files once-only, and
6825         don't stack them if the file has already been stacked.
6826         (_cp_mark_file_once_only): Simplify.
6827         * cpphash.h (struct cpp_reader): Rename once_only_files
6828         to all_files.  Rename saw_pragma_once to seen_once_only.
6829         (_cpp_mark_file_once_only): Update prototype.
6830         * cpplib.c (do_pragma_once): Update.
6831
6832 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
6833
6834         * cppfiles.c (ENOTDIR): Remove.
6835         (open_file_in_dir): Rename find_file_in_dir.  Handle errors
6836         other than ENOENT here.
6837         (once_only_file_p): Rename should_stack_file.
6838         (find_file, open_file_failed, read_file_guts): Report errors
6839         with full path name.
6840         (read_file): Move pch handling to should_stack_file.
6841         (should_stack_file): Handle PCH and once-only issues, and
6842         reading the file.
6843         (stack_file): Don't do file reads.
6844
6845 2003-08-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6846
6847         * libgcov.c (gcov_exit): Cleanup and fix.
6848         * profile.c (compute_value_histograms): Don't try to read profiles
6849         that are not present.
6850
6851 2003-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6852
6853         * builtins.def: Categorize.
6854
6855         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
6856         Mind fp rounding.
6857         (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
6858
6859 2003-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
6860
6861         * config.gcc: Enable posix threads by default on darwin.
6862
6863 2003-08-01  Jakub Jelinek  <jakub@redhat.com>
6864
6865         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
6866         even if nehedges1 is 0.
6867
6868 2003-08-01  Nathanael Nerode  <neroden@gcc.gnu.org>
6869
6870         * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
6871         fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
6872         fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
6873         and defintions.
6874
6875         * fixinc/inclhack.def (broken_cabs): Make matching more generous.
6876         * fixinc/fixincl.x: Regenerate.
6877         * fixinc/tests/base/math.h: Regenerate to match test_text change.
6878
6879 2003-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6880
6881         * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
6882
6883 2003-08-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6884
6885         * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
6886         for accesses to exc_ptr.
6887
6888 2003-08-01  Geoffrey Keating  <geoffk@apple.com>
6889
6890         * doc/sourcebuild.texi (Front End Directory): Don't make references
6891         to libsubdir, it's not part of the interface to frontends.
6892         * doc/install.texi (Configuration): Help users read faster by saying
6893         that GCC's configure options are the standard autoconf ones.
6894         Mention --libdir.  Update the default rules for finding the
6895         assembler.  Don't use libsubdir since we haven't said what it means.
6896         (Specific): In the Solaris 7 notes, update the place to put the
6897         assembler.
6898         * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
6899         * doc/cpp.texi (Search Path): Actually, the search path
6900         depends on libdir, which can relocate with cpp.
6901         * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
6902         now a private interface between the Makefile and the driver.
6903
6904 2003-08-01  Richard Henderson  <rth@redhat.com>
6905
6906         * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
6907
6908         * varasm.c (lookup_constant_def): New function.
6909         * rtl.h (lookup_constant_def): Declare it.
6910         * dwarf2out.c (loc_descriptor_from_tree): Use it.
6911         Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
6912
6913 2003-08-01  Zack Weinberg  <zack@codesourcery.com>
6914
6915         * c-decl.c (gettags, pushdecl_function_level): Delete.
6916         (last_function_parm_vars): Rename last_function_parm_others.
6917         (current_function_parm_vars): Rename current_function_parm_others.
6918         (struct c_scope): Rewrite comment explaining this data structure.
6919         Add names_last, blocks_last, parms_last fields.  Rename
6920         incomplete_list to incomplete.
6921         (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
6922         (poplevel): Ignore second argument.  No need to nreverse
6923         anything.  Restructure such that each list is processed
6924         exactly once.  Use 'const location_t *locus' syntactic sugar
6925         variable where useful.  Issue unused variable warnings
6926         ourselves, do not rely on function.c.
6927         (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
6928         (pushdecl_top_level): Likewise.  Don't call duplicate_decls.
6929         (implicitly_declare): decl cannot be error_mark_node.
6930         (undeclared_variable): Manipulate scope structure directly.
6931         (c_make_fname_decl): Likewise.
6932         (getdecls, c_init_decl_processing): Fix comment.
6933         (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT.  No need
6934         for 'last' variable.
6935         (grokparms): No need to nreverse parms list.
6936         (store_parm_decls_newstyle): Set up the parms_last and
6937         names_last fields of the new scope too.
6938         (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
6939         on parms to begin with; check this under ENABLE_CHECKING.  Set
6940         up parms_last.
6941         (check_for_loop_decls): Refer directly to current_scope->tags.
6942         Use consistent quote style in diagnostics.
6943         (c_write_global_declarations): The names list is not backward.
6944
6945         * c-common.h: Don't prototype gettags.
6946         * c-parse.in: Call poplevel with second argument 0 always.
6947
6948 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6949
6950         * builtins.def: Resort builtins.
6951
6952 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6953
6954         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
6955         DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
6956         Prepend "__builtin_" onto NAME with string concatenation.  Remove
6957         explicit "__builtin_" from each macro call.
6958
6959         Reformat entire file.
6960
6961 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6962
6963         * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
6964         ATTR_MATHFN_FPROUNDING_ERRNO): New macros.  Use throughout.
6965
6966 2003-08-01  Andreas Krebbel  <krebbel1@de.ibm.com>
6967
6968         * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
6969         CCL1, or CCL2 modes with floating point operations.
6970
6971         * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
6972         "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
6973         "*subdf3_cconly"): New insns.
6974         ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
6975
6976 2003-08-01  Neil Booth  <neil@daikokuya.co.uk>
6977
6978         * Makefile.in: Refine dependencies.
6979         * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
6980         * c.opt: Update help for -Wimport.
6981         * cppfiles.c: Include hashtab.h.  Update comments.
6982         (stack_file): Read the file before updating dependencies.
6983         (once_only_file_p): Be smarter about marking once-only files.
6984         (_cpp_mark_file_once_only): Correct the check for existence on
6985         the list.
6986         (open_file_failed): Use name not path, which is NULL.
6987         * cpphash.h: Don't include hashtab.h.
6988         (struct _cpp_file): Remove.
6989         (struct cpp_reader): Update.
6990         * cppinit.c (cpp_create_reader): Don't initialize warn_import.
6991         * cpplib.h (struct cpp_options): Remove warn_import.
6992         (cpp_simplify_path): Remove.
6993
6994 2003-08-01  Nathan Sidwell  <nathan@codesourcery.com>
6995
6996         PR c++/11295
6997         * doc/extend.texi (Statement Expressions): Document C++ semantics.
6998
6999 2003-07-31  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
7000
7001         * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
7002
7003 2003-07-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7004
7005         * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
7006         throughout.
7007         * builtins.def: Likewise.
7008
7009 2003-07-31  Jason Merrill  <jason@redhat.com>
7010
7011         * Makefile.in (bubblestrap): Don't require a previous full
7012         bootstrap.
7013
7014         * expr.c (mostly_zeros_p): No longer static.
7015         * tree.h: Declare it.
7016         * stmt.c (resolve_asm_operand_names): Don't copy the pattern
7017         unless we need to do substitutions.
7018
7019 2003-07-31  Roger Sayle  <roger@eyesopen.com>
7020
7021         * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
7022         pow(x,c)*x as pow(x,c+1) for constant values c.  Optimize x*x
7023         as pow(x,2.0) when the latter will be expanded back into x*x.
7024         (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
7025         * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
7026         pow can never set errno when used with an integer exponent.
7027         Always use expand_powi when exponent is -1, 0, 1 or 2.
7028         (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
7029         as 1.0/(x*x).  This avoids unbounded recursion as we now prefer
7030         the pow forms of these expressions.
7031
7032 2003-07-31  Geoffrey Keating  <geoffk@apple.com>
7033
7034         * Makefile.in (libexecdir): New.
7035         (libsubdir): Use gcc instead of gcc-lib.
7036         (libexecsubdir): New.
7037         (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
7038         (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
7039         gcc-lib.
7040         (installdirs): Make libexecsubdir.
7041         (install-common): Put executables in libexecsubdir.
7042         (itoolsdir): Use libexecsubdir.
7043         (itoolsdatadir): New.
7044         (install-mkheaders): Separate data files and executables.
7045         (install-collect2): Put executables in libexecsubdir.
7046         (uninstall): Remove libexecsubdir.
7047         * mkheaders.in: Update for new arrangement of files.
7048         (libexecdir): New.
7049         (libexecsubdir): New.
7050         (itoolsdir): Use libexecsubdir.
7051         (itoolsdatadir): New.
7052         * gcc.c (gcc_libexec_prefix): New.
7053         (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
7054         (standard_exec_prefix_1): Use libexec.
7055         (standard_exec_prefix_2): New.
7056         (standard_libexec_prefix): New.
7057         (process_command): Update for new arrangement of files.  Compute
7058         gcc_libexec_prefix.  Update for change from gcc-lib to gcc.
7059
7060 2003-07-31  Nathanael Nerode  <neroden@gcc.gnu.org>
7061
7062         * inclhack.def (stdio_va_list): Avoid bogus replacement which
7063         triggers on Interix.
7064         * fixincl.x: Regenerate.
7065
7066 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
7067
7068         * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
7069         SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
7070
7071 2003-07-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7072
7073         * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
7074
7075 2003-07-31  Per Bothner  <pbothner@apple.com>
7076
7077         * opts.c (in_fnames, num_in_fnames):  Moved here from c-opts.
7078         (add_input_filename):  New function.
7079         (handle_options):  Call add_input_filename directly instead of
7080         with a lang hook.
7081         * opts.h (in_fnames, num_in_fnames):  Moved here.
7082         (add_input_filename):  Declare.
7083         * c-decl.c:  Need to #include opts.h.
7084         * Makefile.in (c-decl.o):  Also depends on opts.h.
7085         * c-opts.c (in_fnames, num_in_fnames):  Moved to opts.c.
7086         (c_common_handle_filename):  Replaced by add_input_filename.
7087         * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
7088         Remove.
7089         * langhooks.h (struct lang_hooks):  Remove handle_filename hook.
7090         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
7091         (LANG_HOOKS_INITIALIZER):  Remove use of LANG_HOOKS_HANDLE_FILENAME.
7092         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
7093
7094 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7095
7096         * combine.c (try_combine): Set JUMP_LABEL for newly created
7097         unconditional jump.
7098
7099 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7100
7101         * fold-const.c (fold): Fold some comparisons of bit operations.
7102
7103 2003-07-31  Jan Hubicka  <jh@suse.cz>
7104
7105         * cgraph.c (create_edge): Fix typo.
7106         * i386.c (pic_symbolic_operand): Reorder tests.
7107
7108 2003-07-31  Nathan Sidwell  <nathan@codesourcery.com>
7109
7110         * doc/gcov.texi (Invoking Gcov): Describe output name mangling
7111         more fully.
7112         (Gcov Data Files): Update.
7113
7114 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7115
7116         * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
7117         default.
7118
7119         * gthr-posix.c: New file.
7120         * gthr-posix.h: Define _REENTRANT if missing.
7121         Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
7122
7123         * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
7124         by gthr-posix.o.
7125         * config/alpha/t-osf-pthread: New file.
7126
7127         * fixinc/inclhack.def (alpha_pthread): New fix.
7128         * fixinc/fixincl.x: Regenerate.
7129         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
7130
7131         * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
7132         warning.
7133         Fixes PR bootstrap/9330.
7134
7135 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7136
7137         * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
7138         without GNU ld.
7139         Update comment.
7140         * configure: Regenerate.
7141
7142 2003-07-31  Vladimir Makarov  <vmakarov@redhat.com>
7143
7144         * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
7145         setter.
7146
7147 2003-07-30  Roger Sayle  <roger@eyesopen.com>
7148
7149         * builtins.def: Alphabetize.
7150
7151 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
7152
7153         * doc/c-tree.texi: Normalize spellings of "lowercase" and
7154         "uppercase".
7155         * doc/cpp.texi: Likewise.
7156         * doc/md.texi: Likewise.
7157         * doc/rtl.texi: Likewise.
7158         * doc/tm.texi: Likewise.
7159
7160 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
7161
7162         * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
7163         (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
7164         of cc1obj.
7165
7166 2003-07-30  Chris Demetriou  <cgd@broadcom.com>
7167
7168         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
7169         macros before defining them.
7170
7171 2003-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
7172
7173         * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
7174         UNSPECV_BLOCKAGE): New constants.
7175         ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
7176         "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
7177         splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
7178         "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
7179
7180         (all insns and expanders): Write output control string as brace block
7181         where appropriate.  Remove \-escapes for doublequote characters.
7182
7183 2003-07-31  Jan Hubicka  <jh@suse.cz>
7184
7185         * gcse.c (insert_store): Fix typo in previous patch.
7186
7187 2003-07-30  Neil Booth  <neil@daikokuya.co.uk>
7188
7189         * cppfiles.c (stack_file, open_file_failed): Use path for deps.
7190
7191 2003-07-30  Andi Kleen  <ak@muc.de>
7192
7193         * loop.c (check_dbra_loop): Allow LTU in the loop condition.
7194
7195 2003-07-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7196
7197         * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
7198         * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
7199         GCOV_N_VALUE_COUNTERS): New.
7200         * profile.c (compute_value_histograms): New static function.
7201         (branch_prob): Read back the value histograms.
7202         * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
7203         * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
7204         * value-prof.c: Add comment on reading the profile.
7205         * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
7206         * doc/invoke.texi (-fprofile-values): Document behavior with
7207         -fbranch-probabilities.
7208
7209 2003-07-30  David Edelsohn  <edelsohn@gnu.org>
7210
7211         * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
7212
7213 2003-07-30  Ulrich Weigand  <uweigand@de.ibm.com>
7214
7215         * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
7216         symbolically.
7217
7218 2003-07-30  Jan Hubicka  <jh@suse.cz>
7219
7220         * gcse.c (insert_store): Ignore fake edges.
7221
7222         * c-common.c (flag_vtable_gc): Kill.
7223         * c-common.g (flag_vtable_gc): Kill.
7224         * c-opts (c_common_handle_option): Kill.
7225         * c.opt (fvtable-gc): Kill.
7226         * final.c (final_scan_insn): Do not call assemble_vtable_entry.
7227         * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
7228         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
7229
7230         * invoke.texi (-ftable-gc): Kill documentation.
7231
7232         * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
7233         just because function body is missing.
7234
7235         * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
7236
7237 2003-07-30  Ranjit Mathew  <rmathew@hotmail.com>
7238
7239         * unwind-sjlj.c: Fix typo in file description.
7240
7241 2003-07-30  Alan Modra  <amodra@bigpond.net.au>
7242
7243         * calls.c (load_register_parameters): When shifting reg sized values
7244         to the msb, move the value to a reg first.
7245
7246 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
7247
7248         * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
7249         * line-map.h (linemap_add): Update comments.
7250         * line-map.c (linemap_add): Update comments, interpret zero-length
7251         filename as "<stdin>".
7252
7253 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
7254
7255         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
7256
7257 2003-07-29  Zack Weinberg  <zack@codesourcery.com>
7258
7259         * c-decl.c (last_function_parm_vars, current_function_parm_vars):
7260         New static variables.
7261         (struct c_scope): Add parms and warned_forward_parm_decls
7262         fields; remove parm_order.
7263         (storedecls, storetags): Delete.
7264         (poplevel): Also clear bindings on the parms chain.
7265         (pushdecl): Handle forward declarations of parameters, and
7266         chain PARM_DECLs on the parms list, not the names list.
7267         (lookup_name_current_level): Check for PARM_DECLs on the parms
7268         list too.
7269         (push_parm_decl): Don't update parm_order.
7270         (clear_parm_order): Rename mark_forward_parm_decls.  Issue the
7271         warning, only once per parameter list, and set TREE_ASM_WRITTEN
7272         on the decls here.  Then move the forward decls to the names list.
7273         (grokparms): Set last_function_parm_vars.
7274         (get_parm_info): Don't use gettags or getdecls.  No need to
7275         extract non-parms from the parms list, or reorganize the parms
7276         list.  Feed nonparms back in the TREE_TYPE of the list node
7277         returned.  Issue only one error per parameter list for "void"
7278         appearing more than once in said parameter list.  Collapse
7279         parmlist_tags_warning into this function to avoid double scan
7280         of tags list.
7281         (start_function): Set current_function_parm_vars.
7282         (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
7283         directly.  Get non-parms from current_function_parm_vars; no
7284         need to extract them from the parms chain.  Properly bind tags
7285         in the new scope.
7286         (store_parm_decls_oldstyle): No need to extract non-parameters
7287         from the parms chain, nor to store them back afterward.  Move
7288         declaration to top of function, restructure code reordering
7289         DECL_ARGUMENTS.
7290         (store_parm_decls): No need to save and restore warn_shadow.
7291         * c-parse.in: Don't call parmlist_tags_warning nor
7292         clear_parm_order.  Call mark_forward_parm_decls when forward
7293         parm decls are encountered.
7294         * c-tree.h: Prototype mark_forward_parm_decls; not
7295         clear_parm_order or parmlist_tags_warning.
7296
7297 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
7298
7299         * c-common.c (allow_pch): Remove.
7300         * c-common.h (allow_pch): Remove.
7301         (c_common_no_more_pch): Declare.
7302         * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
7303         * c-pch.c: Include hosthooks.h.
7304         (c_common_valid_pch): Don't check allow_pch.
7305         (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
7306         (c_common_no_more_pch): New.
7307         * ggc-common.c: Include hosthooks.h.
7308         (gt_pch_save): Call gt_pch_get_address.
7309         (gt_pch_restore): Call gt_pch_use_address.
7310         * hooks.c (hook_voidp_size_t_null): New.
7311         (hook_bool_voidp_size_t_false): New.
7312         * hooks.h (hook_voidp_size_t_null): New.
7313         (hook_bool_voidp_size_t_false): New.
7314         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
7315         (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
7316         (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
7317         HOST_HOOKS_GT_PCH_USE_ADDRESS.
7318         * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
7319         gt_pch_use_address.
7320         * doc/hostconfig.texi (Host Common): Document
7321         HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
7322         * Makefile.in (c-pch.o): Depend on hosthooks.h.
7323         (ggc-common.o): Likewise.
7324
7325         * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
7326         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
7327         (pch_address_space): New.
7328         (darwin_rs6000_gt_pch_get_address): New.
7329         (darwin_rs6000_gt_pch_use_address): New.
7330
7331 2003-07-29  Neil Booth  <neil@daikokuya.co.uk>
7332
7333         PR preprocessor/11569
7334         PR preprocessor/11649
7335         * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
7336         * cppfiles.c: Completely rewritten.
7337         * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
7338         struct cpp_path is now struct cpp_dir.
7339         (remove_duplicates): Don't simplify path names.
7340         * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
7341         cpp_stack_file.
7342         * cpphash.h: Include hashtab.h.
7343         (_cpp_file): Declare.
7344         (struct cpp_buffer): struct include_file is now struct _cpp_file,
7345         and struct cpp_path is now struct cpp_dir.  Rename members.
7346         (struct cpp_reader): Similarly.  New members once_only_files,
7347         file_hash, file_hash_entries, quote_ignores_source_dir,
7348         no_search_path, saw_pragma_once.  Remove all_include_files and
7349         max_include_len.  Make some members bool.
7350         (_cpp_mark_only_only): Renamed from _cpp_never_reread.
7351         (_cpp_stack_file): Renamed from _cpp_read_file.
7352         (_cpp_stack_include): Renamed from _cpp_execute_include.
7353         (_cpp_init_files): Renamed from _cpp_init_includes.
7354         (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
7355         * cppinit.c (cpp_create_reader): Initialize no_search_path.  Update.
7356         (cpp_read_next_file): Rename and move to cppfiles.c.
7357         (cpp_read_main_file): Update.
7358         * cpplib.c (run_directive): Update for renamed members.
7359         (do_include_common, _cpp_pop_buffer): Update.
7360         (do_import): Undeprecate #import.
7361         (do_pragma_once): Undeprecate.  Use _cpp_mark_file_once_only.
7362         * cpplib.h: Remove file_name_map_list.
7363         (cpp_options): Remove map_list.
7364         (cpp_dir): Rename from cpp_path.  New datatype for name_map.
7365         (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
7366
7367 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
7368
7369         * Makefile.in:  Make stamp-objdir safe for parallel builds.
7370
7371 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
7372
7373         * Makefile.in (stmp-docobjdir):  New target; ensure $docobjdir exists.
7374         (info):  Depend on stmp-docobjdir.
7375
7376 2003-07-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7377
7378         * configure: Regenerate.
7379
7380 2003-07-29  Jan Hubicka  <jh@suse.cz>
7381
7382         PR C++/11131
7383         * tree-inline.c (expand_call_inline): Always call inlinable_function_p
7384         in !unit-at-a-time mode.
7385
7386 2003-07-28  Geoffrey Keating  <geoffk@apple.com>
7387
7388         * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
7389         main function.
7390
7391 2003-07-28  Mark Mitchell  <mark@codesourcery.com>
7392
7393         PR c++/11667
7394         * c-common.c (shorten_compare): Take into account differences
7395         between C and C++ representation for enumeration types.
7396         * tree.h (set_min_and_max_values_for_integral_type): Declare.
7397         * stor-layout.c (set_min_and_max_values_for_integral_type): New
7398         function, broken out from ...
7399         (fixup_signed_type): ... here and ...
7400         (fixup_unsigned_type): ... here.
7401
7402 2003-07-28  Zack Weinberg  <zack@codesourcery.com>
7403
7404         * c-decl.c: Update commentary, adjust blank lines throughout.
7405         (struct c_scope): Fix indentation.  Reorder members so
7406         outer-context pointers come first, booleans last.
7407         (duplicate_decls, define_label): Use a 'locus' variable for
7408         diagnostic locations in a few more places.
7409         (warn_if_shadowing): Un-split a conditional that fits on one line.
7410         (c_init_decl_processing): No need to clear current_scope and
7411         current_function_scope.
7412         (start_decl): Merge if/else if statements with same action.
7413         (push_parm_decl): Rename old_immediate_size_expand to use
7414         save_foo convention; save/restore around entire function.
7415         (grokdeclarator): Remove unnecessary braces.
7416
7417 2003-07-28  Hans-Peter Nilsson  <hp@bitrange.com>
7418             Michael Culbertson  <Michael.J.Culbertson@wheaton.edu>
7419
7420         * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
7421         when warn_declaration_after_statement.  Call pedwarn_c90, not
7422         pedwarn.  Correct message: it's "ISO C90", not "ISO C89".
7423         * c-common.c (warn_declaration_after_statement): Define.
7424         * c-common.h (warn_declaration_after_statement): Declare.
7425         * c.opt (Wdeclaration-after-statement): New.
7426         * c-errors.c (pedwarn_c90): New function.
7427         * c-opts.c (c_common_handle_option) <case
7428         OPT_Wdeclaration_after_statement>: New.
7429         * c-tree.h (pedwarn_c90): Declare.
7430         * doc/invoke.texi (Option Summary): Document
7431         -Wdeclaration-after-statement.
7432         (Warning Options): Ditto.
7433
7434 2003-07-28  Jan Hubicka  <jh@suse.cz>
7435
7436         * i386.md (memory attribute) Avoid accessing uninitialized memory
7437         for ishift1 type instructions.
7438
7439 2003-07-28  Jakub Jelinek  <jakub@redhat.com>
7440
7441         * configure.in (--enable-checking): Add fold category.
7442         (ENABLE_FOLD_CHECKING): Define if requested.
7443         * configure: Rebuilt.
7444         * config.in: Rebuilt.
7445         * doc/install.texi: Document it.
7446         * fold-const.c: Include md5.h.
7447         [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
7448         [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
7449         print_fold_checksum): New functions.
7450
7451         * fold-const.c (fold): Never modify argument passed to fold, instead
7452         change a copy and return it.
7453         * convert.c (convert_to_integer): Likewise.
7454
7455 2003-07-27  Nathanael Nerode  <neroden@gcc.gnu.org>
7456
7457         * fixinc/fixinc.svr4: Remove dead code.  Remove now-unnecessary
7458         cleanup of junk after #else and #endif directives.  Collapse repeated
7459         clauses into for statment.
7460
7461         * fixinc/fixincl.sh: GNU C -> GCC.  Add usage comment.
7462
7463 2003-07-27  Zack Weinberg  <zack@codesourcery.com>
7464
7465         * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
7466         (keep_next_if_subblocks): Rename next_is_function_body.
7467         (pushlevel): Adjust commentary.  Always set ->keep on the
7468         outermost level of a function.  Don't set ->keep_if_subblocks.
7469         (poplevel): Adjust commentary.  Don't look at ->keep_if_subblocks.
7470         (store_parm_decls): Adjust to match.
7471         (finish_function): Adjust to match.
7472         Call poplevel with all three arguments zero.
7473
7474         * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
7475         New functions split out of store_parm_decls.
7476         Avoid unnecessary work. Use local variables consistently.
7477         (store_parm_decls): Likewise.
7478
7479         (finish_function): No need to set functionbody flag on call to
7480         poplevel.
7481         (struct language_function): Remove scope field.
7482         (c_push_function_context, c_pop_function_context): No need to
7483         save and restore current_scope.
7484
7485 2003-07-27  Nathan Sidwell  <nathan@codesourcery.com>
7486
7487         * doc/extend.texi (Deprecated Features): Implicit typename is
7488         gone. Default args on types is going.
7489
7490 2003-07-26  J"orn Rennecke <joern.rennecke@superh.com>
7491
7492         * Makefile.in (ifcvt.o): Depend on target.h
7493         * ifcvt.c (target.h): Include.
7494         (if_convert): Don't call mark_loop_exit_edges if we can't
7495         modify jumps.
7496
7497 2003-07-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7498
7499         * doc/install.texi (Testing): Adjust required versions of DejaGnu.
7500
7501 2003-07-26  Richard Henderson  <rth@redhat.com>
7502
7503         PR inline-asm/11676
7504         * cse.c (count_reg_usage): Handle asm_operands properly.
7505
7506 2003-07-26  Roger Sayle  <roger@eyesopen.com>
7507
7508         * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
7509         (DEF_EXT_FALLBACK_BUILTIN): Delete.
7510         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
7511         the regular DEF_EXT_LIB_BUILTIN macro.
7512         (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
7513         the regular DEF_LIB_BUILTIN macro.
7514         (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
7515         BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
7516         BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
7517         DEF_EXT_LIB_BUILTIN macro.
7518
7519         * c-decl.c (duplicate_decls): Remove code to handle builtin
7520         functions prototyped without an argument list.
7521
7522 2003-07-26  Danny Smith  <dannysmith@users.sourceforge.net>
7523
7524         * config/i386/winnt.c: Revert 2003-07-08 change.
7525         (i386_pe_section_type_flags): Remove error_with_decl here too.
7526
7527 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7528
7529         * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
7530         * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
7531         * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
7532         (v850_handle_data_area_attribute): Likewise.
7533
7534 2003-07-26  Geoffrey Keating  <geoffk@apple.com>
7535
7536         * varasm.c (output_constant_def_contents): Use
7537         ASM_DECLARE_CONSTANT_NAME if defined.
7538         * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
7539         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
7540         objects get at least one byte to prevent assembler problems.
7541         (ASM_DECLARE_CONSTANT_NAME): New.
7542
7543         * Makefile.in (libbackend.o): Remove options_.h.
7544         (mostlyclean): Likewise.
7545
7546         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
7547         insert a label at the end of an function under Mach-O.
7548
7549         * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
7550
7551 2003-07-25  Aldy Hernandez  <aldyh@redhat.com>
7552
7553         * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
7554         equality.
7555         (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
7556
7557         * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
7558
7559 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7560
7561         * doc/passes.texi (Passes): Mention pretty-printing and
7562         diagnostic files.
7563
7564 2003-07-25  Nathan Sidwell  <nathan@codesourcery.com>
7565
7566         * doc/extend.texi (Function Attributes): GNU C++ does now allow
7567         unused parameter decls.
7568         (Attribute Syntax): GNU C++ does not allow label attributes to be
7569         after the ':'.
7570
7571 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7572
7573         * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
7574         (objc_declare_class): Likewise.
7575         (error_with_ivar): Likewise.
7576         (start_class): Likewise.
7577         (warn_with_method): Likewise.
7578
7579 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7580
7581         Remove pedwarn_with_decl, warning_with_decl and error_with_decl
7582         from GCC.
7583         * calls.c (try_to_integrate): Don't use xxx_with_decl.
7584         (expand_call): Likewise.
7585         * dwarfout.c (output_reg_number): Likewise.
7586         * expr.c (expand_expr): Likewise.
7587         * function.c (assign_temp): Likewise.
7588         (uninitialized_vars_warning): Likewise.
7589         (setjmp_args_warning): Likewise.
7590         (expand_function_end): Likewise.
7591         * stmt.c (fixup_gotos): Likewise.
7592         (warn_about_unused_variables): Likewise.
7593         (expand_end_bindings): Likewise.
7594         * stor-layout.c (layout_decl): Likewise.
7595         (place_field): Likewise.
7596         * toplev.c (check_global_declarations): Likewise.
7597         (rest_of_handle_inlining): Likewise.
7598         (default_tree_printer): New function.
7599         (general_init): Initialize diagnostic machinery before routing
7600         signals to the ICE machinery.  Set default tree printer.
7601         * toplev.h (pedwarn_with_decl): Remove declaration.
7602         (warning_with_decl): Likewise.
7603         (error_with_decl): Likewise.
7604         (pedwarn): Remove attribute for the time being.
7605         * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
7606         * varasm.c (named_section): Likewise.
7607         (make_decl_rtl): Likewise.
7608         (assemble_variable): Likewise.
7609         (merge_weak): Likewise.
7610         (declare_weak): Likewise.
7611
7612         * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
7613         * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
7614         (format_with_decl): Remove.
7615         (diagnostic_for_decl): Likewise.
7616         (pedwarn_with_decl): Likewise.
7617         (warning_with_decl): Likewise.
7618         (error_with_decl): Likewise.
7619         (diagnostic_initialize): Adjust.
7620         (diagnostic_count_diagnostic): Likewise.
7621         (announce_function): Likewise.
7622         (lhd_print_error_function): Likewise.
7623         (diagnostic_report_current_module): Likewise.
7624         (default_diagnostic_starter): Likewise.
7625         (diagnostic_report_diagnostic): Likewise.
7626         (default_diagnostic_finalizer): Likewise.
7627         (verbatim): Likewise.
7628         (error): Likewise.
7629         (warning): Likewise.
7630         * opts.c (common_handle_option): Likewise.
7631         * pretty-print.c: New file.
7632         * c-pretty-print.h (pp_base): Override.
7633         * c-pretty-print.c: Adjust use of macros throughout.
7634         (pp_buffer): New macro.
7635         (pp_newline): Likewise.
7636         * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
7637         * Makefile.in (DIAGNOSTIC_H): New variable.
7638         (c-errors.o): Use it.
7639         (c-objc-common.o): Likewise.
7640         (c-common.o): Likewise.
7641         (c-opts.o): Likewise.
7642         (c-format.o): Likewise.
7643         (diagnostic.o): Likewise.
7644         (opts.o): Likewise.
7645         (toplev.o): Likewise.
7646         (rtl-error.o): Likewise.
7647         (dwarf2out.o): Likewise.
7648         (jump.o): Likewise.
7649         (pretty-print.o): New rule.
7650
7651 2003-07-24  Roger Sayle  <roger@eyesopen.com>
7652
7653         * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
7654         front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
7655         (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
7656         from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
7657         (DEF_FRONT_END_LIB_BUILTIN): Delete.
7658         (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
7659         (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
7660
7661         * builtins.c (build_string_literal): New function to construct
7662         a char* pointer to a string literal.
7663         (expand_builtin_fputs): Change 2nd argument from "int ignore" to
7664         "rtx target" to be consistent with other expand_builtin_* functions.
7665         Change 3rd argument from "int unlocked" to "bool unlocked".
7666         (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
7667         c-common.c to avoid front-end dependencies.  Optimize printf("")
7668         as a no-op when the result isn't required.  Handle embedded NULs
7669         in format string.
7670         (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
7671         from c-common.c to avoid front-end dependencies.  Likewise, optimize
7672         fprintf(fp,"") as a no-op when the result isn't required, evaluating
7673         fp for side-effects.  Handle embedded NULs in format string.
7674         (expand_builtin_sprintf): Fix typo.
7675         (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
7676         optimizing.  Adjust calls of expand_builtin_fputs to match the API
7677         change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
7678         expand_builtin_printf.  Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
7679         and BUILT_IN_FPRINTF using expand_builtin_fprintf.
7680
7681         * c-common.c (is_valid_printf_arglist): Delete.
7682         (c_expand_builtin): Delete.
7683         (c_expand_builtin_printf): Moved to builtins.c. Delete.
7684         (c_expand_builtin_fprintf): Moved to builtins.c.  Delete.
7685         (c_expand_expr): No longer treat CALL_EXPRs specially.
7686         (CALLED_AS_BUILT_IN): Delete.
7687
7688 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7689
7690         PR optimization/11631
7691         * gcse.c (store_motion): Connect infinite loops to exit.
7692
7693 2003-07-24  Jason Merrill  <jason@redhat.com>
7694
7695         * tree.h (boolean_type_node): Move from C/C++/Java frontends.
7696         (boolean_true_node, boolean_false_node): Likewise.
7697         (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
7698         * tree.c (build_common_tree_nodes): Init boolean_type_node.
7699         (build_common_tree_nodes_2): Init boolean_{true,false}_node.
7700         * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
7701         * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
7702         (truthvalue_true_node): Renamed from boolean_true_node.
7703         (truthvalue_false_node): Renamed from boolean_false_node.
7704         * c-decl.c: Just set truthvalue_* to integer_*.
7705         * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
7706
7707 2003-07-24  Roger Sayle  <roger@eyesopen.com>
7708
7709         * c-decl.c (match_builtin_function_types): New subroutine of
7710         duplicate_decls to test whether a redeclaration of a builtin
7711         function is suitably close, i.e. the return type and all of
7712         the argument types have the same modes as the builtin expects.
7713         (duplicate_decls): Fuzzy type matching for builtin functions
7714         moved to match_builtin_function_types.
7715
7716 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7717
7718         * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
7719         flag correctly.
7720
7721 2003-07-24  Zack Weinberg  <zack@codesourcery.com>
7722
7723         * c-decl.c: Search-and-replace change 'binding level' to
7724         'scope' in commentary.
7725         (struct binding_level): Now struct c_scope.
7726         (current_binding_level): Now current_scope.
7727         (free_binding_level): Now scope_freelist.
7728         (current_function_level): Now current_function_scope.
7729         (global_binding_level): Now global_scope.
7730         (make_binding_level): Now make_scope.
7731         (pop_binding_level): Now pop_scope.
7732
7733 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7734
7735         * configure.in (libgcc_visibility): Add missing whitespace.
7736
7737 2003-07-24  Richard Henderson  <rth@redhat.com>
7738
7739         * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
7740         __gcc_personality_v0.
7741
7742 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7743
7744         * Makefile.in: Replace pwd by ${PWD_COMMAND}.
7745
7746 2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
7747
7748         * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
7749         documentation missed from my 2003-07-09 patch.
7750
7751 2003-07-24  Nathanael Nerode  <neroden@gcc.gnu.org>
7752
7753         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
7754         it's not provided.
7755         * configure: Rebuild.
7756
7757 2003-07-24  Steven Bosscher  <steven@gcc.gnu.org>
7758
7759         PR c/10602
7760         * c-typeck.c (type_lists_compatible_p): Do not compare
7761         arguments if one of them is an error_mark_node
7762
7763 2003-07-24  Alan Modra  <amodra@bigpond.net.au>
7764
7765         * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
7766         if current_function_calls_eh_return.
7767
7768 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
7769
7770         * doc/c-tree.texi (OFFSET_TYPE): Update description.
7771
7772 2003-07-23  Bob Wilson  <bob.wilson@acm.org>
7773
7774         * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
7775         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
7776         __umodsi3, __modsi3): Increase frame size to 32.
7777
7778 2003-07-23  Geoffrey Keating  <geoffk@apple.com>
7779
7780         * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
7781         prototype.
7782
7783 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
7784
7785         * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
7786
7787         PR optimization/10679
7788         * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
7789
7790 2003-07-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7791
7792         PR target/11607 and PR target/11516
7793         * pa.md (extzv, extv, insv): Revert latter half of last patch.
7794
7795 2003-07-22  Mark Mitchell  <mark@codesourcery.com>
7796
7797         * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
7798         * varasam.c (output_constant): Likewise.
7799
7800 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
7801
7802         * alias.c: Fix comment formatting.
7803         * c-common.c: Likewise.
7804         * c-decl.c: Likewise.
7805         * c-opts.c: Likewise.
7806         * combine.c: Likewise.
7807         * cpplib.c: Likewise.
7808         * diagnostic.c: Likewise.
7809         * dojump.c: Likewise.
7810         * final.c: Likewise.
7811         * fold-const.c: Likewise.
7812         * gcc.c: Likewise.
7813         * gcse.c: Likewise.
7814         * ggc-page.c: Likewise.
7815         * jump.c: Likewise.
7816         * loop.c: Likewise.
7817         * mips-tfile.c: Likewise.
7818         * recog.c: Likewise.
7819         * regclass.c: Likewise.
7820         * regmove.c: Likewise.
7821         * tree.c: Likewise.
7822         * tree.h: Likewise.
7823
7824 2003-07-22  Per Bothner  <pbothner@apple.com>
7825
7826         * line-map.c (add_line_map):  Handle invalid LEAVE request.
7827         Fixes PR preprocessor/11361.
7828
7829 2003-07-22  Per Bothner  <pbothner@apple.com>
7830
7831         * diagnostic.c.(diagnostic_report_current_module):  Update to match
7832         2003-06-05 changes to push_srcloc and pop_srcloc.
7833
7834 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
7835
7836         * doc/trouble.texi: Better document two-stage name lookup.
7837
7838 2003-07-22  Eric Christopher <echristo@redhat.com>
7839
7840         * config/s390.c (s390_valid_pointer_mode): New.
7841         (TARGET_VALID_POINTER_MODE): Use.
7842         (s390_emit_prologue): Add tpf profiling hooks.
7843         (s390_emit_epilogue): Ditto.
7844         * config/s390.h (MASK_TPF): New.
7845         (TARGET_TPF): Use.
7846         (POINTERS_EXTEND_UNSIGNED): Define.
7847         * config/s390.md (ptr_extend): New pattern.
7848
7849 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
7850
7851         * hashtable.c (approx_sqrt): Make static.
7852         * hashtable.h: Don't prototype approx_sqrt.
7853         * line-map.c (init_line_maps): Rename linemap_init.
7854         (free_line_maps): Rename linemap_free.
7855         (add_line_map): Rename linemap_add.
7856         (lookup_line): Rename linemap_lookup.
7857         (print_containing_files): Rename linemap_print_containing_files.
7858         * linemap.h: Update to match.
7859
7860         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
7861         linemap routines to use new names.
7862
7863 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
7864
7865         * c-common.c (handle_packed_attribute): Don't pack a struct via a
7866         typedef. Propagate packedness from a main variant.
7867
7868 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
7869
7870         * Makefile.in (install-common): Add dependency on installdirs.
7871
7872 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
7873
7874         * c-common.c (c_common_type_for_mode): Return integer types for
7875         pointer modes.
7876
7877 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
7878
7879         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
7880         (finish_decl): Call maybe_apply_pragma_weak here.
7881         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
7882         TREE_PUBLIC and TREE_STATIC are decided.
7883         (start_function): Move call to maybe_apply_pragma_weak.  Check that
7884         DECL_ASSEMBLER_NAME isn't set too early.
7885
7886         * cpplex.c (_cpp_process_line_notes): Mention option name in
7887         trigraphs warning.
7888
7889 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
7890
7891         * combine.c (if_then_else_cond): Simplify the comparison of
7892         rtx against -1, 0, and 1.
7893         * loop.c (check_dbra_loop): Likewise.
7894         * optabs.c (emit_conditional_move): Likewise.
7895         (emit_conditional_add): Likewise.
7896         * config/i386/i386.md (*movsi_or): Likewise.
7897         (*movdi_or_rex6): Likewise.
7898
7899 2003-07-22  Jan Hubicka  <jh@suse.cz>
7900
7901         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
7902
7903 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
7904
7905         * cppfiles.c (open_file_pch): Don't put unused entries in the
7906         splay tree.  Remove dead code.
7907
7908 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
7909
7910         * c-common.h (num_in_fnames): Declare.
7911         (c_static_assembler_name): Move from here...
7912         * c-tree.h (c_static_assembler_name): ... to here.
7913         * c-opts.c: Don't include langhooks-def.h.
7914         (c_static_assembler_name): Move to c-decl.c.
7915         (num_in_fnames): Make externally visible.
7916         * c-decl.c: Include langhooks-def.h.
7917         (c_static_assembler_name): Move from c-opts.c.
7918         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
7919         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
7920
7921         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
7922         when it's not needed.
7923
7924 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
7925
7926         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
7927         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
7928         (rs6000_emit_prologue): Save FPRs inline if set.
7929
7930 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
7931
7932         * config/ia64/ia64.md (prefetch): Support predicate.
7933
7934 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
7935
7936         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
7937         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
7938         table.
7939
7940 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
7941
7942         PR optimization/11536
7943         * unroll.c (loop_iterations): Do not replace a register holding
7944         the final value by its equivalent before the loop if it is not
7945         invariant.
7946
7947 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
7948
7949         * doc/extend.texi: Fixes to spelling, grammar, and diction.
7950
7951 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
7952
7953         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
7954         (V850 Options): Spelling fixes.
7955
7956 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
7957
7958         * doc/invoke.texi: Fixes to style, grammar and diction.
7959
7960 2003-07-20  Roger Sayle  <roger@eyesopen.com>
7961
7962         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
7963         * system.h (SMALL_STACK): Poison obsolete target macro.
7964         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
7965
7966 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
7967
7968         * configure.in:  Cache the results of testing for cmp's capabilities.
7969         * configure:  Regenerate.
7970
7971 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
7972
7973         PR debug/11279
7974         * dwarf2out.c (gen_enumeration_type_die): Remember that
7975         enumerators can be unsigned.
7976
7977 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
7978
7979         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
7980         (push_label_level, pop_label_level): Kill.
7981         (struct binding_level): Rename level_chain to outer.
7982         Add outer_function field.  Change parm_flag, function_body,
7983         keep, keep_if_subblocks to 1-bit bitfields of type bool.
7984         (current_function_level): New variable.
7985         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
7986         (keep_next_level, declare_parm_level, warn_if_shadowing):
7987         Update to match.
7988         (struct language_function): Kill named_labels, shadowed_labels fields.
7989         (c_init_decl_processing, start_function, c_push__function_context)
7990         (c_pop_function_context): No need to muck with named_labels nor
7991         shadowed_labels.
7992
7993         (make_binding_level): No need to clear the structure here.
7994         (pop_binding_level): Always operate on current_binding_level.
7995         Update current_function_level if necessary.
7996         (pushlevel): Don't clear named_labels.  Update current_function_level
7997         if necessary.  Use "true" and "false" where appropriate.
7998         (poplevel): Diagnose labels defined but not used, or vice
7999         versa, and clear out label-meanings leaving scope, while
8000         walking down the decls list, for all binding levels.
8001         Handle LABEL_DECLs appearing in the shadowed list.
8002         pop_binding_level takes no arguments.
8003         (pushdecl_function_level): Use current_function_level.
8004
8005         (make_label, bind_label): New static functions.
8006         (declare_label): New exported function.
8007         (lookup_label, define_label): Rewritten for new data structure.
8008         (shadow_label): Kill.
8009
8010         * c-tree.h: Prototype declare_label; don't prototype
8011         push_label_level, pop_label_level, nor shadow_label.
8012         * c-parse.in: Remove all calls to push_label_level and
8013         pop_label_level.  Use declare_label for __label__ decls.
8014
8015         * doc/extend.texi: Clarify that __label__ can be used to
8016         declare labels with local scope in any nested block, not
8017         just statement expressions.  Cross-reference nested functions
8018         section from local labels section.
8019
8020 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8021
8022         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
8023
8024 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
8025
8026         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
8027
8028 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8029
8030         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
8031         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
8032
8033 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
8034
8035         * config/s390/s390.c (legitimize_pic_address): Access local symbols
8036         relative to the GOT instead of relative to the literal pool base.
8037         (s390_output_symbolic_const): Handle new GOT-relative accesses.
8038         * config/s390/s390.md ("call"): Access local functions and PLT stubs
8039         relative to the GOT instead of relative to the literal pool base.
8040         ("call_value"): Likewise.
8041         ("call_value_tls"): Likewise.
8042
8043         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
8044         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
8045         (s390_chunkify_finish): Likewise.
8046         (s390_chunkify_cancel): Likewise.
8047         (s390_reorg): Adapt caller.
8048         (find_base_register_in_addr,
8049         find_base_register_ref, replace_base_register_ref): Delete.
8050         (find_ltrel_base, replace_ltrel_base): New functions.
8051         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
8052         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
8053         base vs. index register usage.
8054         (struct constant_pool): Remove 'anchor'.
8055         (s390_add_anchor): Delete.
8056         (s390_dump_pool): Remove anchor handling.
8057         * config/s390/s390.md ("reload_anchor"): Remove.
8058
8059         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
8060         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
8061         (s390_emit_prologue): Use it.
8062         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
8063         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
8064         hard-code register 14.
8065         * config/s390/s390-protos.h (s390_load_got): Declare.
8066
8067         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
8068         Support TImode constants.
8069         * config/s390/s390.md ("consttable_ti"): New.
8070         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
8071
8072         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
8073         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
8074         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
8075         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
8076         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
8077         New symbolic constants.
8078         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
8079         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
8080         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
8081         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
8082         symbolic UNSPEC values.
8083         * config/s390/s390.c (larl_operand, s390_short_displacement,
8084         bras_sym_operand, s390_cannot_force_const_mem,
8085         s390_delegitimize_address, s390_decompose_address,
8086         legitimize_pic_address, s390_output_symbolic_const,
8087         s390_function_profiler): Use symbolic UNSPEC values.
8088
8089 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8090
8091         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
8092         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
8093         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
8094         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
8095         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
8096         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
8097         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
8098         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
8099         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
8100         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
8101         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
8102         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
8103         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
8104         postreload.c prefix.c print-tree.c protoize.c ra-build.c
8105         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
8106         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
8107         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
8108         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
8109         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
8110         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
8111         casts.
8112
8113 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8114
8115         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
8116         * toplev.h (warning): Remove attribute.
8117
8118 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8119
8120         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
8121         (pop_label_level): Likewise.
8122         (duplicate_decls): Likewise.
8123         (implicitly_declare): Likewise.
8124         (shadow_label): Likewise.
8125         (start_decl): Likewise.
8126         (finish_decl): Likewise.
8127         (grokdeclarator): Likewise.
8128         (get_parm_info): Likewise.
8129         (detect_field_duplicates): Likewise.
8130         (finish_struct): Likewise.
8131         (start_function): Likewise.
8132         (store_parm_decls): Likewise.
8133         (finish_function): Likewise.
8134         (c_expand_body_1): Likewise.
8135         (check_for_loop_decls): Likewise.
8136         (merge_translation_unit_decls): Likewise.
8137
8138 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
8139
8140         * common.opt:  Document --param.
8141         * opts.c (columns, undocumented_msg): New.
8142         (print_help): Get number of columns from environment.  Print
8143         --param help.  Tweak newline handling.
8144         (print_param_help): New.
8145         (print_filtered_help): Better handling of duplicates.  Complain
8146         about undocumented switches.
8147         (print_switch): New.
8148         (wrap_help): Improve wrapping, use COLUMNS.
8149         * opts.sh: Ignore comments in records.
8150         * params.def: Fix typos and remove trailing periods.
8151         * toplev.c (display_help): Don't dump --param help.
8152         * doc/sourcebuild.texi: Update.
8153
8154 2003-07-18  Richard Henderson  <rth@redhat.com>
8155
8156         PR target/11556
8157         * optabs.c (prepare_operand): Fail gracefully instead of abort
8158         if the predicate doesn't satisfy.
8159         (gen_cond_trap): Allow prepare_operand to fail.
8160
8161 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8162
8163         * c-common.c: Don't undefine GCC_DIAG_STYLE.
8164         (fname_decl): Don't use xxx_with_decl.
8165         (c_add_case_label): Likewise.
8166         (handle_section_attribute): Likewise.
8167         (handle_alias_attribute): Likewise.
8168         (handle_no_instrument_function_attribute): Likewise.
8169         (handle_no_limit_stack_attribute): Likewise.
8170         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
8171         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
8172
8173 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8174
8175         * Makefile.in (ifcvt.o): Add cfgloop.h.
8176         * basic-block.h (EDGE_LOOP_EXIT): New flag.
8177         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
8178         * ifcvt.c: Include cfgloop.h.
8179         (mark_loop_exit_edges): New static function.
8180         (if_convert): Call it.
8181         (find_if_header): Ignore branches out of loops.
8182
8183 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
8184
8185         * combine.c (simplify_comparison): Don't share rtx when converting
8186         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
8187
8188 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
8189
8190         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
8191         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
8192         (MUST_PASS_IN_STACK): Define.
8193         (BLOCK_REG_PADDING): Define.
8194
8195 2003-07-18  Richard Henderson  <rth@redhat.com>
8196
8197         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
8198         to skip the addr_vec.
8199
8200 2003-07-18  Alexandre Oliva  <aoliva@redhat.com>
8201
8202         * combine.c (combinable_i3pat): Don't forbid occurrences of
8203         i2dest or i1dest in inner_dest if inner_dest is a mem.
8204
8205 2003-07-18  Jan Hubicka  <jh@suse.cz>
8206
8207         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
8208
8209 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
8210
8211         PR target/11087
8212         * loop.c (basic_induction_var): Check if convert_modes emitted any
8213         instructions. Remove them and return 0 if so.
8214
8215 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
8216
8217         PR optimization/11083
8218         * toplev.c (rest_of_handle_addresof): Rename into
8219         rest_of_handle_addressof.  Delete unreachable blocks
8220         if dead edges were purged after the addressof pass.
8221
8222 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
8223
8224         * Makefile.in, configure, configure.in: Remove handling of
8225         lang-options.h and options_.h.
8226         * toplev.c (struct lang_opt, documented_lang_options): Remove.
8227         (display_help): Don't use documented_lang_options.
8228
8229 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
8230
8231         * c-decl.c (pushdecl_function_level): Make static, return nothing.
8232         (kept_level_p): Fold into poplevel.
8233         (undeclared_variable): Moved here from c-typeck.c.  Export.
8234         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
8235         (undeclared_variable): Prototype here.  Don't prototype
8236         kept_level_p nor pushdecl_function_level.
8237         * c-parse.in: Change first argument to poplevel from
8238         "kept_level_p()" to "KEEP_MAYBE".
8239         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
8240
8241 2003-07-17  Roger Sayle  <roger@eyesopen.com>
8242
8243         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
8244         commutative operands instead of modifying the RTL in-place.
8245
8246 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
8247
8248         PR optimization/11557
8249         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
8250         unless we know which function is being called.
8251
8252 2003-07-17  Roger Sayle  <roger@eyesopen.com>
8253
8254         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
8255         whether to reorder the operands of a commutative binary operator.
8256
8257 2003-07-17  Roger Sayle  <roger@eyesopen.com>
8258
8259         * fold-const.c (const_binop): Avoid performing the FP operation at
8260         compile-time, if either operand is NaN and we honor signaling NaNs,
8261         or if we're dividing by zero and either flag_trapping_math is set
8262         or the desired mode doesn't support infinities.
8263         (fold_initializer): New function to fold an expression ignoring any
8264         potential run-time exceptions or traps.
8265         * tree.h (fold_initializer): Prototype here.
8266         * c-typeck.c (build_binary_op): Move to the end of the file so
8267         that intializer_stack is in scope.  If constructing an initializer,
8268         i.e. when initializer_stack is not NULL, use fold_initializer to
8269         fold expressions.
8270         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
8271         performing FP operations at compile-time, if they would raise an
8272         exception at run-time.
8273
8274 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
8275
8276         PR 11498
8277         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
8278         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
8279         (GTFILES): Add langhooks.c.
8280         (gt-langhooks.h): New.
8281         * c-common.h (c_static_assembler_name): Prototype.
8282         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
8283         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
8284         * c-opts.c: Include langhooks-def.h.
8285         (c_static_assembler_name): New.
8286         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
8287         (var_labelno): New.
8288         (lhd_set_decl_assembler_name): Give static objects with context
8289         unique names.
8290         * varasm.c (var_labelno): Delete.
8291         (make_decl_rtl): Don't change the assembler name once it's set.
8292
8293         * c-opts.c (this_input_filename): New.
8294         (finish_options): Take new parameter, name of file being compiled.
8295         Update callers.  Set this_input_filename.
8296         (push_command_line_include): Use this_input_filename not
8297         main_input_filename.
8298
8299 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
8300
8301         * Makefile.in: Depend .pot generation on options.c.
8302         * po/exgettext: Add an extra_files variable containing additional
8303         files to scan.
8304
8305 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
8306
8307         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
8308         c_write_global_declarations.
8309
8310         * c-decl.c: Fix typos in several comments.  Remove all
8311         #if 0 blocks; reindent as needed.  Remove unused argument
8312         to declare_parm_level; all callers changed.
8313         * c-parse.in: Update calls to declare_parm_level.  Avoid
8314         issuing a double warning in some circumstances.
8315         * c-typeck.c: Update calls to declare_parm_level.
8316         * c-tree.h: Update prototype of declare_parm_level.
8317
8318         * c-pragma.c (apply_pragma_weak): Don't complain about a
8319         redundant #pragma weak.
8320
8321         * objc/objc-act.c (forward_declare_categories,
8322         build_selector_reference_decl, build_class_reference_decl,
8323         build_objc_string_decl, synth_forward_declarations,
8324         build_protocol_reference): Set TREE_PUBLIC on synthetic
8325         forward decl to 0, consistent with eventual definition.
8326         Correct comments to match.
8327
8328         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
8329         in regexp that don't form a range expression.
8330         * fixinc/fixincl.def: Regenerate.
8331
8332 2003-07-17  Richard Henderson  <rth@redhat.com>
8333
8334         PR target/10907
8335         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
8336         even with !TARGET_CONST_GP.
8337         (ia64_function_ok_for_sibcall): Reject non-local functions.
8338
8339 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
8340
8341         * c-common.c (c_estimate_num_insns_1): Don't handle
8342         METHOD_CALL_EXPR.
8343         * expr.c (safe_from_p): Likewise.
8344         * gengtype.c (adjust_field_tree_exp): Likewise.
8345         * stmt.c (warn_if_unused_value): Likewise
8346         * tree.c (first_rtl_op): Likewise.
8347         * tree.def: Don't define METHOD_CALL_EXPR.
8348         * java/lang.c (java_estimate_num_insns_1): Don't handle
8349         METHOD_CALL_EXPR.
8350
8351 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
8352
8353         PR other/11466
8354         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
8355         and its restrictions for the SPARC64 port.
8356         Move the entry of "-mimpure-text" before that of "-mv8".
8357
8358 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
8359             Phil Edwards <phil@jaj.com>
8360
8361         * doc/install.texi (*-*-solaris2*): Document the step-by-step
8362         procedure to bootstrap and install.
8363         Document the preference for the legacy Sun tools in /usr/bin
8364         over the POSIX tools in /usr/xpg4/bin for the build process.
8365
8366 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
8367
8368         * c.opt: Document Uncodumented; use it.  Document ObjC options.
8369         * opts.c (print_filtered_help): Skip undocumented switches.
8370         * opts.h (CL_UNDOCUMENTED): New.
8371         * opts.sh: Handle Undocumented.
8372         * toplev.c (documented_lang_options): Prevent its becoming empty.
8373 objc:
8374         * lang-options.h: Remove.
8375
8376 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
8377
8378         * loop.c (check_ext_dependent_givs): Pass const struct loop *
8379         instead of struct loop_info * as argument.  Accept BIVs with
8380         increment +/- 1 provided there is a friendly exit test against
8381         a loop-invariant value.
8382         (strength_reduce): Adapt call to check_ext_dependent_givs.
8383
8384 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
8385             Con Bradley <con.bradley@superh.com>
8386
8387         * sh-protos.h (sh_get_pr_initial_val): Declare.
8388         * sh.c (regno_reg_class): Make its elements type enum reg_class.
8389         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
8390         and live_regs_mask arguments.  Changed all callers.
8391         (save_schedule_s): New structure.
8392         (save_schedule): New typedef.
8393         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
8394         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
8395         In interrupts handlers, also save registers that are usually
8396         partially saved, and make sure there is at least one general purpose
8397         register saved if a target register needs saving.
8398         Add casts in comparisons to avoid warnings.
8399         (sh_media_register_for_return): return -1 for interrupt handlers.
8400         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
8401         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
8402         registers used are available.
8403         Set RTX_FRAME_RELATED_P where appropriate.
8404         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
8405         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
8406         (initial_elimination_offset): Likewise.
8407         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
8408         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
8409         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
8410         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
8411         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
8412         and for target registers.
8413         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
8414         (regno_reg_class): Make its elements type enum reg_class.
8415         (CONSTRAINT_LEN): Don't use isdigit.
8416         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
8417         (FUNCTION_ARG): Add parentheses to avoid warnings.
8418         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
8419         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
8420         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
8421         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
8422         * sh.md (xordi3+1): Remove unused variable regno.
8423         (return_media): Check that tr0 is available before using it.
8424
8425 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
8426
8427         * c.opt: Document more options.
8428
8429 2003-07-16  Roger Sayle  <roger@eyesopen.com>
8430
8431         * combine.c (subst): Also handle (subreg (const_double ...)) case
8432         if created by a substitution, by using the original inner mode.
8433
8434 2003-07-16  Roger Sayle  <roger@eyesopen.com>
8435
8436         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
8437         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
8438         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
8439
8440 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
8441
8442         * doc/install.texi (--without-headers): New.
8443
8444         Partial Fix PR/10129
8445         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
8446         (machopic_output_function_base_name): New; print the true pic label.
8447         (machopic_classify_ident): Pic Base is always a defined data.
8448         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
8449         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
8450
8451         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
8452         if they are not floating point registers.
8453
8454         PR c/10962
8455         * ggc.h: Add header guards.
8456         * c-decl.c (finish_struct): Sort fields if
8457         number greater than 15 and there are no
8458         anonymous structs/unions.
8459         * c-common.h: Include ggc.h.
8460         (sorted_fields_type): New struct.
8461         (field_decl_cmp): New prototype.
8462         (resort_sorted_fields): New prototype.
8463         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
8464         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
8465         as s, removing other fields.
8466         * c-typeck.c (lookup_field): Use s in lang_type.
8467         These were mostly moved from cp/class.c:
8468         * c-common.c (field_decl_cmp): New static function.
8469         (field_decl_cmp): New function.
8470         (resort_sorted_fields): New function.
8471
8472 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
8473
8474         * config/darwin.c (machopic_select_section): Use decl_readonly_section
8475         to do most of the work.
8476
8477 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
8478
8479         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
8480         * config/mmix/mmix.c: Convert functions to ISO C90.
8481         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
8482         formatting.
8483         (mmix_get_hard_reg_initial_val): Tweak section head comment.
8484
8485 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
8486
8487         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
8488
8489 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
8490
8491         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
8492         (uw_update_context_1): Use it.
8493         * config/rs6000/rs6000.c (insn_after_throw): Remove.
8494         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
8495         in parent frame if _Unwind_* called directly instead of through
8496         .plt.
8497         (rs6000_emit_eh_toc_restore): Remove.
8498         (rs6000_emit_prologue): Update stack pointer before doing any saving
8499         if current_function_calls_eh_return.  Generate unwind info for $r2.
8500         (rs6000_emit_epilogue): Restore stack pointer after doing all
8501         restoring if current_function_calls_eh_return.  Restore $r2.
8502         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
8503         * config/rs6000/rs6000.md (eh_return): Remove call to
8504         rs6000_emit_eh_toc_restore.
8505         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
8506         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
8507
8508 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
8509
8510         * expr.c (emit_block_move): Don't move anything if size is const 0.
8511         (clear_storage): Test against const0_rtx instead of comparing INTVAL
8512         against 0.
8513
8514 2003-07-15  David S. Miller  <davem@redhat.com>
8515
8516         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
8517         emit nop if the last real insn is CALL_INSN.
8518
8519 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
8520
8521         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
8522         as "nul".
8523         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
8524
8525 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
8526
8527         * config/i386/winnt.c (associated_type): Artificial methods are not
8528         affected by the import/export status of their class unless they are
8529         COMDAT.
8530         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
8531
8532         * config/i386/winnt.c: Fix GCC copyright comment.
8533
8534 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
8535
8536         PR c++/11531
8537         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
8538         not recursing on hard error.
8539         (diagnostic_for_decl): Likewise.
8540         * diagnostic.def: Rearrange.
8541
8542 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
8543
8544         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
8545         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
8546
8547 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
8548             Richard Henderson  <rth@redhat.com>
8549
8550         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
8551         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
8552         (_Unwind_SetGR): Likewise.
8553         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
8554         (Unwind_SpTmp): New typedef.
8555         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
8556         (uw_update_context): Use _Unwind_GetPtr.
8557         (init_dwarf_reg_size_table): Move above uw_init_context_1.
8558         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
8559         Use _Unwind_SetSpColumn.
8560         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
8561         Use _Unwind_GetPtr.
8562
8563 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
8564
8565         * c.opt: Document more options.
8566         * toplev.c (documented_lang_options): Remove all local help strings.
8567
8568 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
8569
8570         PR debug/11473
8571         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
8572         base classes.
8573
8574 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
8575
8576         PR target/10795
8577         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
8578         swap comparison operands if doing so would generate an
8579         unrecognizable insn.
8580
8581 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
8582
8583         PR optimization/11320
8584         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8585         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8586         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8587         current_sched_info->compute_jump_reg_dependencies. Record which
8588         registers are used and which registers are set by the jump.
8589         Clear deps->reg_conditional_sets after a barrier.
8590         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8591         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8592         (init_deps): Initialize reg_conditional_sets.
8593         (free_deps): Clear reg_conditional_sets.
8594         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8595         Mark registers live on entry of the fallthrough block and conditionally
8596         set as set by the jump. Mark registers live on entry of non-fallthrough
8597         blocks as used by the jump.
8598         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8599         Mark new parameters as unused.
8600
8601 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
8602
8603         * doc/invoke.texi: Resync MIPS -march documentation.
8604
8605 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
8606
8607         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
8608         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
8609         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
8610         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
8611         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
8612         (mips_issue_rate): Handle PROCESSOR_R9000.
8613         (mips_use_dfa_pipeline_interface): Likewise.
8614         * config/mips/9000.md: New file.
8615         * config/mips/mips.md: Include it.
8616         (define_attr cpu): Add r9000.
8617         (mulsi3_mult3): Use "mul" for rm9000 code.
8618
8619 2003-07-15  Stan Cox  <scox@redhat.com>
8620
8621         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
8622         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
8623         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
8624         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
8625         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
8626         (mips_issue_rate): Handle PROCESSOR_R7000.
8627         (mips_use_dfa_pipeline_interface): Likewise.
8628         * config/mips/7000.md: New file.
8629         * config/mips/mips.md: Include it.
8630         (define_attr cpu): Add r7000.
8631         (mulsi3_mult3): Use "mul" for rm7000 code.
8632
8633 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
8634
8635         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
8636         the conditional move patterns.
8637         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
8638         Check for condmove type.
8639         (ir_vr54_arith): Add move type.
8640         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
8641         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
8642
8643 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
8644
8645         * c-opts.c (print_help): Remove.
8646         (c_common_handle_option): Don't handle --help.
8647         * c.opt: Document some options.
8648         (--help): Remove.
8649         * opts.c (print_filtered_help): New.
8650         (print_help): Use it.
8651
8652 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
8653
8654         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
8655         * tree.c: (build_common_tree_nodes_2): Likewise.
8656         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
8657         (V4DF_type_node): New.
8658
8659         * c-opts.c (push_command_line_include): Don't free deferred_opts,
8660         we'll need it.
8661         (finish_options): Reset init_cursor.
8662
8663 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
8664
8665         * expr.c (expand_assignment): Remove an unused argument
8666         SUGGEST_REG.
8667         * expr.h: Update the prototype.
8668         * function.c: Update the callers.
8669         * stmt.c: Likewise.
8670
8671 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
8672
8673         PR debug/11098
8674         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
8675         as DECL_ABSTRACT.
8676
8677 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
8678
8679         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
8680         with __cplusplus, not "we must use the C++ compiler's type"
8681         * fixinc/inclhack.def (void_null): Note that Interix needs this.
8682         * fixinc/fixincl.x: Regenerate.
8683
8684 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
8685
8686         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
8687         and unseen_objects from the global data before calling
8688         __deregister_frame_info_bases.
8689         (examine_objects): Insert objects into the seen_objects list,
8690         not unseen_objects.
8691         (_Unwind_Find_FDE): Always unlock the global object lists, even if
8692         we couldn't allocate a data structure to put in it.
8693
8694         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
8695         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
8696         (SET_TYPE_PROTOCOL_LIST): New.
8697         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
8698         (get_object_reference): Likewise.
8699
8700 2003-07-14  Jan Hubicka  <jh@suse.cz>
8701
8702         * cfglayout.c (locator_file): Break out from ....
8703         (insn_file): ... here.
8704         (locator_line): Break out from ....
8705         (insn_line): ... here.
8706         * rtl.h (locator_file, locator_line): Declare.
8707         (final_start_function): Set proper line/file info.
8708
8709 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8710
8711         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
8712         handled by pp_c_cast_expression.
8713
8714 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
8715
8716         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
8717         allocate 32768 bytes of stack.  Use addition rather than subtraction
8718         when a single insn is enough.
8719         * config/mips/mips.md: Remove insns and splitters for subtracting
8720         constants.
8721         (subsi3): Only accept register operands.
8722         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
8723         (subdi3_internal_3, subsi3_internal_2): Likewise.
8724         (casesi): Use expand_binop to subtract the lower bound.
8725
8726 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
8727
8728         * config/mips/mips.c (mips_in_small_data_p): Don't handle
8729         TARGET_MIPS16 specially.
8730
8731 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
8732
8733         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
8734         mips_output_aligned_bss.
8735         * config/mips/linux.h: Likewise.
8736         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
8737         * config/mips/mips.c (mips_output_aligned_bss): New function.
8738
8739         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
8740         * config/mips/elf64.h: Likewise.
8741
8742         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
8743         mips_declare_object_name.
8744         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
8745         * config/mips/elf64.h: As for elf.h.
8746         * config/mips/iris6.h: Likewise.
8747         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
8748         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
8749         do...while (0) block.
8750         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
8751         (mips_finish_declare_object): Declare.
8752         * config/mips/mips.c (mips_declare_object_name): New function.
8753         (mips_finish_declare_object): New function.
8754
8755         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
8756         * config/mips/linux.h: Likewise.
8757
8758         * config/mips/mips.c (inside_function): Delete.
8759         (file_in_function_warning, ignore_line_number): Delete.
8760         (mips_output_filename): Don't warn about changing filenames within
8761         a function.
8762         (mips_output_lineno): Update accordingly.
8763         (mips_output_function_prologue): Don't reset the deleted variables.
8764         * config/mips/mips.h (inside_function): Delete.
8765         (file_in_function_warning, ignore_line_number): Delete.
8766
8767         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
8768         * config/mips/elf64.h: Likewise.
8769         * config/mips/openbsd.h: Likewise.
8770         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
8771         * config/mips/linux.h: Likewise.
8772         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
8773         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
8774
8775         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
8776         to the list of include files when using gas.
8777         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
8778         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
8779         * config/mips/elf64.h: Likewise.
8780         * config/mips/iris5.h: Likewise.
8781         * config/mips/linux.h: Likewise.
8782         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
8783         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
8784         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
8785         * config/mips/sdb.h: ...this new file.
8786
8787 2003-07-14  Douglas Rupp  <rupp@gnat.com>
8788
8789         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
8790         argument to getcwd; use fixed buffer instead.
8791
8792 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
8793
8794         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
8795         * fixinc/fixinc.wrap: Delete.
8796
8797 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
8798
8799         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
8800         don't have 2.
8801
8802 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
8803
8804         * ggc-page.c (struct globals): Add new fields to keep track of the
8805         total allocated memory and overhead.
8806         (ggc_print_statistics): Print them.
8807         (ggc_alloc): Keep track of the total allocated memory and the
8808         overhead.
8809
8810         * tree.c (dump_tree_statistics): Increase spacing.
8811         (enum tree_node_kind): Move to ...
8812         * tree.h (enum tree_node_kind): ... here.
8813         (tree_node_counts, tree_node_sizes): Declare.
8814
8815 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
8816
8817         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
8818
8819 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8820
8821         PR optimization/11440
8822         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
8823         SIGN_EXTRACT SETs.
8824
8825 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
8826
8827         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
8828         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
8829         (emit_group_load, emit_group_store): Adjust declarations.
8830         Remove most occurrences of #ifdef TREE_CODE.
8831         * expr.c (emit_group_load): Add "type" param, and use
8832         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
8833         aligned accesses if !SLOW_UNALIGNED_ACCESS.
8834         (emit_group_store): Likewise.
8835         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
8836         emit_group_load and emit_group_store calls.
8837         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
8838         BLOCK_REG_PADDING to determine whether we need endian_correction.
8839         (load_register_parameters): Localize vars.  Handle shifting of
8840         small values to the correct end of regs.  Adjust emit_group_load
8841         call.
8842         (expand_call, emit_library_call_value_1): Adjust emit_group_load
8843         and emit_group_store calls.
8844         * function.c (assign_parms): Set mem alignment for stack slots.
8845         Adjust emit_group_store call.  Store values at the "wrong" end
8846         of regs to the stack.  Use BLOCK_REG_PADDING.
8847         (locate_and_pad_parm): Save where_pad.
8848         (expand_function_end): Adjust emit_group_load call.
8849         * stmt.c (expand_value_return): Adjust emit_group_load call.
8850         * Makefile.in (calls.o): Depend on $(OPTABS_H).
8851         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
8852         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
8853         (MUST_PASS_IN_STACK): Define.
8854         (BLOCK_REG_PADDING): Define.
8855         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
8856         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
8857         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
8858         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
8859         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
8860
8861 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
8862
8863         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
8864
8865 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8866
8867         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
8868         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
8869
8870 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
8871
8872         PR other/11123
8873         * toplev.c: Don't cut off option names.
8874
8875 2003-07-13  Andreas Jaeger  <aj@suse.de>
8876
8877         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
8878         to integer of different size.
8879
8880 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
8881
8882         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
8883         to (eq (and X 1) 0).
8884
8885 2003-07-13  Andreas Jaeger  <aj@suse.de>
8886
8887         * config.gcc: Add pmmintrin.h for x86_64-*-*.
8888
8889 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
8890
8891         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
8892         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
8893         list.  Move these all together down by cpplib.
8894
8895         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
8896         definition of CPPCHAR_SIGNED_T.
8897
8898         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
8899         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
8900         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
8901
8902         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
8903         * cppinit.c (cpp_create_reader): Likewise.
8904
8905         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
8906         * cpptrad.c: Likewise.  All callers changed.
8907         * cpplib.c: All callers changed.
8908         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
8909         * hashtable.h: Define GTY(x) to nothing here too.
8910
8911 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8912
8913         * stor-layout.c (compute_record_mode): Remove very obsolete test
8914         that forces BLKmode for records with fields crossing word boundary.
8915
8916 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
8917
8918         * Makefile.in: Remove orphan reference to acconfig.h.
8919
8920 2003-07-13  Andreas Jaeger  <aj@suse.de>
8921
8922         * cgraphunit.c: Convert prototypes to ISO C90.
8923
8924 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
8925
8926         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
8927         (for OpenBSD).
8928         * fixinc/fixincl.x: Rebuild.
8929
8930 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
8931
8932         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
8933         i?86-*-*.  Use correct name of cache variable.
8934         * configure: Regenerate.
8935
8936 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
8937
8938         * config/alpha/alpha.c: Fix comment typos.
8939         * config/alpha/alpha.md: Likewise.
8940         * config/arm/arm.c: Likewise.
8941         * config/arm/arm.md: Likewise.
8942         * config/arm/lib1funcs.asm: Likewise.
8943         * config/avr/avr.md: Likewise.
8944         * config/arm/README-interworking: Fix typos.
8945
8946 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
8947
8948         * c-format.c: Fix comment formatting.
8949         * c-typeck.c: Likewise.
8950         * coverage.c: Likewise.
8951         * cppcharset.c: Likewise.
8952         * cpplib.c: Likewise.
8953         * dbxout.c: Likewise.
8954         * gcov-io.h: Likewise.
8955         * toplev.c: Likewise.
8956
8957 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
8958
8959         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
8960         fix.
8961
8962 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
8963
8964         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
8965         uses three-argument AC_DEFINE so no acconfig.h entries are
8966         needed.
8967         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
8968         which contains the GAS version number as a scaled integer.
8969         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
8970         ability to check for ELF assembler.
8971         (gcc_GAS_CHECK_FEATURE): New macro.
8972         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
8973         assembler feature checks using gcc_GAS_CHECK_FEATURE.
8974         Use three-argument AC_DEFINE everywhere.
8975         * acconfig.h: Deleted.
8976         * config.in, configure: Regenerate.
8977
8978 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
8979
8980         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
8981         (on OpenBSD).
8982         * fixinc/fixincl.x: Regenerate.
8983
8984         * fixinc/inclhack.def (gnu_types): Improve comment.
8985
8986 2003-07-12  Andreas Jaeger  <aj@suse.de>
8987
8988         * fp-test.c (main): Use ISO C90 prototype.
8989
8990         * version.c: Remove unneded include of ansidecl.h.
8991
8992         * cgraph.h: Convert prototypes to ISO C90.
8993         * cgraph.c: Likewise.
8994         * fix-header.c: Likewise.
8995         * ra.h: Likewise.
8996         * protoize.c: Likewise.
8997
8998 2003-07-12  Jan Hubicka  <jh@suse.cz>
8999
9000         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
9001         warning.
9002
9003 2003-07-12  Jan Hubicka  <jh@suse.cz>
9004                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9005
9006         * cgraph.c (cgraph_max_uid): New global variable.
9007         (cgraph_node): Set uid field.
9008         (create_edge): Keep inline flags consistent.
9009         (dump_cgraph): Dump more info.
9010         * cgraph.h (struct cgraph_local_info): Remove inline_many and
9011         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
9012         (struct cgraph_global_info): Add insns, calls, cloned_times,
9013         will_be_output.
9014         (struct cgraph_node): Add uid.
9015         (struct cgraph_edge): Add inline_call.
9016         (cgraph_max_uid, cgraph_inline_p): Declare.
9017         * cgraph.c: Include params.h and fibheap.h
9018         (cgraph_mark_functions_to_inline_once): Kill.
9019         (INSNS_PER_CALL): New constant.
9020         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
9021         static variables.
9022         (cgraph_finalize_function): Do not analyze inlining.
9023         (cgraph_finalize_compilation_unit): Set inlining attributes.
9024         (cgraph_mark_functions_to_output): More consistency checks.
9025         (cgraph_optimize_function): Set current_function_decl to NULL.
9026         (cgraph_expand_function): Use new inline flags.
9027         (cgraph_postorder): Expand from cgraph_expand_functions.
9028         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
9029         (cgraph_inlined_into, cgraph_inlined_callees,
9030         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
9031         cgraph_mark_inline, cgraph_check_inline_limits,
9032         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
9033         cgraph_decide_inlining, cgraph_inline_p): New functions.
9034         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
9035         PARAM_INLINE_UNIT_GROWTH): New parameters.
9036         * tree-inline.c (struct inline_data): New field current_decl.
9037         (expand_call_inline): Avoid forward declarations; use
9038         inlinable_function_p.
9039         (optimize_inline_calls): Set id.current_decl.
9040
9041 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
9042
9043         * configure.in: Remove wrongly added definition of
9044         local_prefix.
9045         * configure: Regenerate.
9046
9047 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
9048
9049         * rtl.def (NOTE): Do not use padding.
9050
9051 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
9052
9053         * doc/install.tex: Update required binutils for i?86-*-linux*
9054
9055 2003-07-11  Richard Henderson  <rth@redhat.com>
9056
9057         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
9058
9059 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
9060
9061         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
9062         TRANSLATION_UNIT_DECL as top_level.
9063
9064 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
9065
9066         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
9067         then fall back to cmpstrM.
9068         * builtins.c (expand_builtin_memcmp): Likewise.
9069         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
9070         (s390_expand_cmpmem): ... this.
9071         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
9072         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
9073         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
9074         to s390_expand_cmpmem.
9075         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
9076         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
9077         to cmpmem*.
9078         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
9079         cmpstr* patterns.
9080         * doc/md.texi (cmpstrM): Describe as String compare insn, not
9081         Block compare insn.
9082         (cmpmemM): Add.
9083
9084 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
9085
9086         * config/i386/freebsd.h (SET_ASM_OP): Remove.
9087         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
9088         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
9089          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
9090
9091 2003-07-11  Richard Henderson  <rth@redhat.com>
9092
9093         * function.c (assign_parms): Don't recombine complex args if
9094         fnargs is unchanged from orig_fnargs.
9095         (split_complex_args): Return args without complex before copying.
9096         Re-layout the modified parameters.
9097
9098 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
9099
9100         * regclass.c (choose_hard_reg_mode): Add third argument.
9101         Changed all callers.
9102         * rtl.h (choose_hard_reg_mode): Update declaration.
9103         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
9104         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
9105
9106 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
9107
9108         * c-decl.c (finish_decl): Handle 'used' here...
9109         * cgraphunit.c (cgraph_finalize_function): ... and here ...
9110         * c-common.c: (handle_used_attribute): ... not here.
9111
9112         * configure.in (onstep): Support --enable-intermodule.
9113         * Makefile.in (OBJS-common): New.
9114         (OBJS-md): New.
9115         (OBJS-archive): New.
9116         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
9117         (OBJS-onestep): New.
9118         (libbackend.a): Support @onestep@.
9119         (libbackend.o): New.
9120         * configure: Regenerate.
9121
9122         * c-common.h (c_reset_state): New prototype.
9123         (c_parse_file): New prototype.
9124         (finish_file): Move prototype from c-tree.h.
9125         * c-decl.c: Include <hashtab.h>.
9126         (builtin_decls): New.
9127         (current_file_decl): New.
9128         (duplicate_decls): Add extra parameter. Change all callers.  Don't
9129         output duplicate common symbols.
9130         (link_hash_hash): New.
9131         (link_hash_eq): New.
9132         (poplevel): Handle popping of the top level.
9133         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
9134         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
9135         (pushdecl_top_level): Likewise.
9136         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
9137         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
9138         (finish_decl): Handle TRANSLATION_UNIT_DECL.
9139         (merge_translation_unit_decls): New.
9140         (c_write_global_declarations): New.
9141         (c_reset_state): New.
9142         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
9143         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
9144         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
9145         TRANSLATION_UNIT_DECL.
9146         (c_objc_common_finish_file): Call merge_translation_unit_decls.
9147         * c-opts.c (in_fnames): Rename from in_fname.
9148         (c_common_decode_option): Handle multiple input filenames.
9149         (c_common_post_options): Likewise.
9150         (c_common_parse_file): Likewise; also, call c_parse_file rather than
9151         yyparse.
9152         * c-parse.in: Move cleanup code to c_parse_file.
9153         (free_parser_stacks): Move contents to c_parse_file.
9154         (c_parse_file): New.
9155         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
9156         for integer types.
9157         (C_DECL_FILE_SCOPE): New.
9158         (finish_file): Move prototype to c-common.h.
9159         (merge_translation_unit_decls): New prototype.
9160         (comptypes): Add extra parameter to prototype.
9161         (c_write_global_declarations): New prototype.
9162         * c-typeck.c (tagged_types_tu_compatible_p): New.
9163         (function_types_compatible_p): Add extra parameter, change all callers.
9164         (type_lists_compatible_p): Likewise.
9165         (comptypes): Likewise.
9166         (struct tagged_tu_seen): New.
9167         (tagged_tu_seen_base): New.
9168         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
9169         (c_mark_addressable): Remove #if 0 code.
9170         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
9171         comment explaining why it shouldn't have to.
9172         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
9173         options.
9174         * cppinit.c (cpp_read_next_file): New.
9175         (cpp_read_main_file): Use it.
9176         * cpplib.c (undefine_macros): New.
9177         (cpp_undef_all): New.
9178         * cpplib.h (cpp_read_next_file): Prototype.
9179         (cpp_undef_all): Prototype.
9180         * langhooks-def.h (write_global_declarations): Remove prototype.
9181         * toplev.h (write_global_declarations): Add prototype.
9182         * tree.c (decl_type_context): Use switch statement, handle
9183         TRANSLATION_UNIT_DECL.
9184         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
9185         (TRANSLATION_UNIT_DECL): New kind of tree.
9186         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
9187         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
9188         * doc/invoke.texi: Make attempt to document new functionality.
9189
9190         2003-05-19  Per Bothner <bothner@apple.com>
9191
9192         * gcc.c (combine_inputs): New.
9193         (process_command): Set combine_inputs.
9194         (do_spec_1): Handle combine_inputs.
9195         (main): Likewise.
9196
9197 2003-07-10  James E Wilson  <wilson@tuliptree.org>
9198
9199         PR optimization/9745
9200         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
9201         loop_insn_emit_before.
9202         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
9203
9204 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
9205
9206         * cppcharset.c: Fix comment.
9207         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
9208         (EILSEQ): #define to EINVAL if not already defined.
9209         (convert_using_iconv): #if out when !HAVE_ICONV.
9210         (init_iconv_desc): Handle !HAVE_ICONV here...
9211         (cpp_init_iconv): ...not here.
9212
9213 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
9214
9215         * common.opt: More --help messages.
9216         * opts.c (print_help): Use puts().
9217         * toplev.c (f_options): Remove help text.
9218         (display_help): Don't dump f_options.
9219
9220 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
9221
9222         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
9223         Move i?86-*-interix* to the don't-fix list.
9224         * fixinc/fixinc.interix: Delete with extreme prejudice.
9225
9226 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
9227
9228         PR bootstrap/10758
9229         * doc/install.texi: Document requirements for ia64-*-hpux* target.
9230
9231 2003-07-10  Roger Sayle  <roger@eyesopen.com>
9232
9233         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
9234
9235 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
9236
9237         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
9238         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
9239         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
9240         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
9241         convert_no_conversion, convert_using_iconv): New functions.
9242         (APPLY_CONVERSION): New macro.
9243         (struct conversion, conversion_tab): New data structure.
9244         (init_iconv_desc): Check conversion_tab for a custom conversion
9245         primitive before trying to use iconv.
9246         (convert_cset): Deleted.
9247         (cpp_init_iconv): Use UTF- terminology, not UCS-.
9248         (_cpp_destroy_iconv): Update to match.
9249         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
9250         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
9251         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
9252         (_cpp_interpret_string_notranslate): New function, moved here
9253         from cpplib.c.
9254
9255         * cpphash.h (convert_f, struct cset_converter): New types.
9256         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
9257         are now struct cset_converter, not bare iconv_t.
9258         Update prototypes.
9259         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
9260         all callers changed.
9261
9262 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
9263
9264         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
9265         to opts.sh command line.
9266         * opts.sh: Write to temporary files with a move-if-change at the end.
9267
9268 2003-07-10  Denis Chertykov  <denisc@overta.ru>
9269             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9270
9271         * combine.c (gen_binary): Handle the CLOBBER rtx and
9272         don't build a binary operation with it.
9273
9274 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9275
9276         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
9277         store_killed_after, store_killed_before): Keep track of the correct
9278         dependency function to use.
9279
9280 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
9281         * toplev.c (do_compile): Don't try to open dump files before
9282         lang_dependent_init initializes dump_base_name.
9283
9284 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9285
9286         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
9287         Use ARRAY_SIZE.
9288         * config/frv/frv.c (frv_expand_builtin): Likewise.
9289         * config/sh/sh.c (sh_media_init_builtins): Likewise.
9290
9291 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
9292
9293         PR c++/10032
9294         * doc/invoke.texi (C++ Dialect Options): Change documentation of
9295         -fpermissive.
9296
9297 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
9298
9299         * tm.texi (RETURN_ADDR_OFFSET): Document.
9300
9301 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
9302
9303         * gcov-io.h: Update documentation.
9304         (GCOV_UNSIGNED2STRING): New.
9305         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
9306         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
9307         GCOV_TAG_SUMMARY_LENGTH): Adjust.
9308         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
9309         GCOV_TAG_COUNTER_NUM): New.
9310         (GCOV_BLOCK_SIZE): Number of words.
9311         (gcov_var): Adjust buffer type.
9312         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
9313         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
9314         count, not byte count.
9315         (gcov_open): Adjust overread init.
9316         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
9317         gcov_write_string, gcov_write_tag, gcov_write_length,
9318         gcov_write_tag_length): Adjust.
9319         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
9320         (gcov_sync, gcov_seek): Adjust.
9321         * gcov-dump.c (print_usage): Show gcc version only.
9322         (dump_file): Use GCOV_UNSIGNED2STRING.
9323         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
9324         * gcov.c (print_version): Show gcc version only.
9325         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
9326         GCOV_TAG_*_NUM macros.
9327         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
9328         GCOV_TAG_COUNTER_LENGTH.
9329         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
9330         Use GCOV_TAG_COUNTER_NUM.
9331         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
9332         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
9333
9334 2003-07-10  Andreas Schwab  <schwab@suse.de>
9335
9336         * gcov-dump.c (dump_file): Fix missing address operator.
9337
9338 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
9339
9340         PR c/11449
9341         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
9342         of HOST_WIDE_INT.
9343         (fold_single_bit_test): If sign_bit_p() fails, assume that the
9344         bit being tested is not a sign bit.
9345
9346 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
9347
9348         * config/h8300/h8300.md (a peephole2): New.
9349
9350 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
9351
9352         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
9353         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
9354         from ld-linux.so.2 to ld.so.1.
9355         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
9356         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
9357         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
9358         nor -Wl,-rpath-link.
9359         (LIB_SPEC): Add -rpath-link if !static.
9360         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
9361         * config/mn10300/mn10300.c (mn10300_protect_label): New
9362         variable.
9363         * config/mn10300/linux.h (PRINT_OPERAND,
9364         PRINT_OPERAND_ADDRESS): Set it during their execution.
9365         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
9366         mn10300_protect_label is set.
9367         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
9368         -Wl,-rpath-link.
9369         (LIB_SPEC, STARTFILE_SPEC): Define.
9370         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
9371         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
9372         FLOAT_BIT_ORDER_MISMATCH.
9373         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
9374         * config.gcc (am33_2.0-*-linux*): Added.
9375         * config/mn10300/linux.h: New.
9376         * config/mn10300/t-linux: New.
9377
9378 2003-07-10  Andreas Jaeger  <aj@suse.de>
9379
9380         * fold-const.c: Properly wrap prototypes.
9381
9382 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
9383
9384         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
9385         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
9386         Moved from...
9387         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
9388         * config/mn10300/mn10300.h: GTY-declare it.
9389         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
9390         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
9391         prototype.  Use incoming RTL argument.
9392         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
9393         * config/mn10300/mn10300.md (int_label): Move C statements...
9394         (GOTaddr2picreg): ... here.
9395         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
9396         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
9397         * config/mn10300/mn10300.c (mn10300_encode_section_info):
9398         ... here.  New function.
9399         (TARGET_ENCODE_SECTION_INFO): Define to it.
9400         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
9401         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
9402         pattern name.
9403         (mn10300_loadPC): Define as insn splittable after reload.
9404         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
9405         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
9406         be defined in .rodata even in PIC, now that the assembler
9407         supports that.
9408         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
9409         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
9410         symbol take an underscore prefix.
9411         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
9412         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
9413         legitimize_pic_address): Declare.
9414         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
9415         the PIC register as fixed.
9416         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
9417         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
9418         PIC.
9419         (LEGITIMATE_PIC_OPERAND_P): Define.
9420         (PIC_OFFSET_TABLE_REGNUM): Define.
9421         (GOT_SYMBOL_NAME): Define.
9422         (SYMBOLIC_CONST_P): Define.
9423         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
9424         symbols.
9425         (MN10300_GLOBAL_P): Test it.
9426         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
9427         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
9428         * config/mn10300/mn10300.c (print_operand): Handle unspec.
9429         (expand_prologue): Set PIC register.
9430         (call_address_operand): Don't match SYMBOL_REFs in PIC.
9431         (legitimize_address): Call legitimize_pic_address.
9432         (legitimize_pic_address): New fn.
9433         (legitimate_pic_operand_p): New fn.
9434         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
9435         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
9436         UNSPEC_PLT): New constants.
9437         (pop_pic_reg): New insn.
9438         (movsi): Adjust non-PIC addresses.
9439         (builtin_setjmp_receiver): Restore the PIC register.
9440         (casesi): New insn.
9441         (call): Adjust non-PIC addresses.
9442         (int_label, GOTaddr2picreg): New expands.
9443         (am33_loadPC): New insn.
9444         (mn10300_loadPC): New expand.
9445         (call_next_insn): New insn.
9446         (add_GOT_to_pic_reg): New expand.
9447         (symGOT2reg, symGOT2reg_i): New expands.
9448         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
9449         (sym2PIC, sym2PLT): New expands.
9450
9451 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
9452
9453         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
9454         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
9455         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
9456         to flag_unsafe_math_optimizations.
9457         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
9458         * config/mn10300/mn10300.c (expand_prologue): Mark
9459         FP-register-saving insns as frame-related.
9460         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
9461         * config/mn10300/mn10300.c
9462         (mn10300_get_live_callee_saved_regs): Don't search past
9463         LAST_EXTENDED_REGNUM.
9464         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
9465         * config/mn10300/mn10300.md: Remove excessive line breaks from
9466         `@' output patterns that were accounted as additional
9467         alternatives.
9468         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
9469         Re-introduce changes accidentally removed in Richard Sandiford's
9470         2000-12-05's patch.
9471         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
9472         Re-instate am33-2 lost in merge from net GCC.
9473         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
9474         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
9475         floating-point registers.
9476         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
9477         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
9478         pessimizations that had gone in on 2000-05-08.
9479         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
9480         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
9481         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
9482         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
9483         operand 0.
9484         * (movhi): Likewise.
9485         * (movsi): Likewise.
9486         * (movsf): Likewise.
9487         * (movdi): Likewise.
9488         * (movdf): Likewise.
9489         2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
9490         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
9491         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
9492         (expand_prologue, expand_epilogue): Save and restore FP regs.
9493         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
9494         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
9495         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
9496         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
9497         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
9498         Do not clobber cc0.
9499         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
9500         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
9501         Discourage the two-argument, longer opcodes.
9502         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
9503         ones.
9504         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
9505         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
9506         * config/mn10300/mn10300.md (cmpsf): New pattern.
9507         (branch): Test mdep.fpCC and output fbCC.
9508         * config/mn10300/mn10300.c (print_operand): Output conditions.
9509         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
9510         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
9511         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
9512         mulsf3, divsf3): Use the `F' constraint for FP values.
9513         * config/mn10300/mn10300.c (const_1f_operand): New function.
9514         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
9515         * config/mn10300/mn10300.md (sqrtsf2): New expand.
9516         (rsqrtsf2): New insn.
9517         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
9518         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
9519         previous check-in.
9520         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
9521         * config/mn10300/mn10300.md (abssf2, negdf2): On
9522         TARGET_AM33_2, expand to...
9523         (abssf2_am33_2, negdf2_am33_2): New insns.
9524         (addsf3, subsf3, mulsf3, divsf3): Likewise.
9525         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
9526         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
9527         movdi, movdf): Added FP regs.
9528         * invoke.texi (-mam33-2, -mno-am33-2): Document.
9529         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
9530         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
9531         New macros.
9532         (REGNO_AM33_2_FP_P): Renamed to...
9533         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
9534         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
9535         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
9536         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
9537         regs from GENERAL_REGS.
9538         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
9539         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
9540         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
9541         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
9542         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
9543         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
9544         as FP_REGS.
9545         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
9546         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
9547         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
9548         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
9549         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
9550         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
9551         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
9552         AM33/2.0 floating-point registers.
9553         (CONDITIONAL_REGISTER_USAGE): Adjust.
9554         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
9555         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
9556         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
9557         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
9558         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
9559         (MULTILIB_DIRNAMES): Likewise.
9560         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
9561         `__AM33_2__' when `-mam33-2' is given.
9562         (TARGET_AM33_2): Define.
9563         (TARGET_SWITCHES): Adjust.
9564         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
9565         when appropriate.
9566
9567 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
9568
9569         * doc/install.texi: Add missing @.
9570
9571 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
9572
9573         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
9574
9575 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
9576
9577         PR/11144
9578         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
9579
9580 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
9581
9582         PR bootstrap/11043
9583         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
9584         "x-crtfini.o" with "crtinit.o", "crtfini.o".
9585
9586         * fixinc/inclhack.def (limits_ifndefs): Add select test.
9587         * fixinc/fixincl.x: Rebuild.
9588
9589         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
9590         * fixinc/fixincl.x: Rebuild.
9591
9592 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
9593
9594         * doc/install.texi (Configuration): Document the valgrind option
9595         to --enable-checking.
9596
9597 2003-07-09  Jan Hubicka  <jh@suse.cz>
9598
9599         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
9600
9601 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9602
9603         * c-lex.c (cb_ident): Cast cstr.text to const char *.
9604
9605 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
9606
9607         * gcov-io.h: Update documentation.
9608         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
9609         GCOV_NOTE_MAGIC.
9610         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
9611         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
9612         (struct gcov_var): Change buffer's type. Add endian flag.
9613         (gcov_open): Remove mode in libgcov.
9614         (gcov_magic): Prototype.
9615         * gcov-io.c (from_file): New.
9616         (gcov_open): Clear endian flag.
9617         (gcov_magic): New.
9618         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
9619         pointers.
9620         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
9621         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
9622         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
9623         * gcov-iov.c (main): Correct cast.
9624         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
9625         conversion.
9626         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
9627         (coverage_init): Use GCOV_NOTE_SUFFIX.
9628         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
9629         Rename to gcov_version, and return flag.
9630         (gcov_exit): Use gcov_version.
9631         (__gcov_init): Use gcov_version.
9632         * Makefile.in (coverageexts): Update.
9633         * gcov.c (print_version): Remove endianness conversion.
9634         (create_file_names): Use GCOV_NOTE_SUFFIX.
9635         (read_graph_file): Use gcov_magic.
9636         (read_count_file): Likewise.
9637         * gcov-dump.c (dump_file): Remove endianness conversion, use
9638         gcov_magic.
9639
9640 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
9641
9642         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
9643         coverage is on.
9644         * configure: Regenerated.
9645         * Makefile.in (ALL_CFLAGS): Correct its comment.
9646
9647 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
9648
9649         * fold-const.c (make_range): Do not access operand 1 for a
9650         zero-operand operator.
9651
9652 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
9653
9654         * toplev.c (warn_dummy, W_options): Die.
9655         (display_help): Don't print W_options.
9656         * common.opt: Add W_options help from toplev.c.
9657
9658 2003-07-09  Andreas Jaeger  <aj@suse.de>
9659
9660         * opts.c (wrap_help): Only pass int arguments as arguments to
9661         printf's '*' modifier.  Change argument of function.
9662
9663 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
9664
9665         * doc/invoke.texi: Fix misspelling of "@item".
9666
9667 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
9668
9669         * config/i386/i386.md: Remove an old comment about
9670         NOTICE_UPDATE_CC.
9671
9672 2003-07-09  Jan Hubicka  <jh@suse.cz>
9673
9674         * cgraph.c (cgraph_node_name): New function.
9675         (dump_cgraph): Use it.
9676         * cgraph.h (cgraph_dump_file): Declare.
9677         (cgraph_node_name): Declare.
9678         * cgraphunit.c: Include timevar.h
9679         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
9680         (cgraph_optimize_function): Use TV_INTEGRATION.
9681         (cgraph_mark_local_functions): reorganize dumps.
9682         (cgraph_mark_functions_to_inline_once): Likewise.
9683         (cgraph_optimize): Likewise; use timevar.
9684         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
9685         * toplev.c (dump_file_index): Add DFI_cgraph.
9686         (dump_file_info): Likewise.
9687         (cgraph_dump_file): New global variable.
9688         (do_compile): Open and close cgraph dump.
9689         * invoke.texi (-d): Document new flag; renumber.
9690
9691 2003-07-08  Roger Sayle  <roger@eyesopen.com>
9692
9693         PR c/11370
9694         * calls.c (emit_call_1): Don't bother popping the arguments off of
9695         the stack after a noreturn function call;  The adjustment is dead.
9696         (expand_call): Likewise.
9697
9698 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
9699
9700         * expr.c (MOVE_MAX_PIECES): Move from here...
9701         * defaults.h (MOVE_MAX_PIECES): ... to here.
9702
9703 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
9704
9705         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
9706
9707 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9708
9709         * genattr.c (internal_dfa_insn_code): Don't prototype.
9710         * genattrtab.c (attr_desc): Add `static_p' field.
9711         (expand_units): Make blockage range and ready cost functions
9712         static.
9713         (write_attr_get): Don't add extern prototypes in C file.  Mark
9714         static functions as appropriate.
9715         (find_attr, make_internal_attr): Initialize static_p.
9716         * genattrtab.h (ATTR_STATIC): New macro.
9717         * genautomata.c (output_internal_reset_func): Mark output function
9718         as inline.
9719         (make_internal_dfa_insn_code_attr): Mark output function as static.
9720
9721 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9722
9723         * genattrtab.h: Add new macros for attr `special' flags.
9724         * genattrtab.c (attr_desc): Reorder/resize fields better.
9725         Use attr `special' macros in all calls to make_internal_attr.
9726         * genautomata.c: Likewise.
9727
9728 2003-07-09  Jan Hubicka  <jh@suse.cz>
9729
9730         * c-common.c (c_estimate_num_insns_1): New static function.
9731         (c_estimate_num_insns): New global function.
9732         * c-common.h (DECL_NUM_STMTS): Rename to...
9733         (DECL_ESTIMATED_INSNS): ... this.
9734         (c_estimate_num_insns): Declare.
9735         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
9736         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
9737         * c-semantics.c (add_stmt): Do not account statements.
9738         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
9739         New.
9740         * langhooks.h (lang_hooks_for_tree_inlining): Add
9741         estimate_num_insns
9742         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
9743         to 100.
9744         (max-inline-insns): set to 300.
9745         (min-inline-insns): set to 10.
9746         * tree-inline.c (struct inline_data): Rename inlined_stmts to
9747         inlined-insns.
9748         (INSNS_PER_STMT): Kill.
9749         (inlinable_function_p): Compute and store body size.
9750         (expand_call_inline): Likewise.
9751         (optimize_inline_calls): Likewise.
9752
9753 2003-07-08  James E Wilson  <wilson@tuliptree.org>
9754
9755         PR target/10021
9756         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
9757         loop over new variable t2 instead of t.
9758
9759 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
9760
9761         PR bootstrap/11455
9762         * config/i386/winnt.c: Replace use of error(), warning() with
9763         error_with_decl(), warning_with_decl(),  throughout.
9764
9765 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
9766
9767         * opts.c (wrap_help): Use unsigned int, not size_t.
9768
9769 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
9770
9771         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
9772         as .file/.loc directives are incompatible with linker relaxation.
9773
9774 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
9775
9776         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
9777         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
9778         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
9779         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
9780         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
9781         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
9782         Escape { and } characters which are not part of range expressions.
9783         * fixinc/fixincl.x: Regenerate.
9784         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
9785
9786 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
9787
9788         PR c/1687
9789         * tree-inline.c (find_alloca_call): Use
9790         walk_tree_without_duplicates, instead of walk_tree.
9791         (find_builtin_longjmp_call): Likewise.
9792         * c-objc-common.c (c_cannot_inline_fn): Likewise.
9793         * c-semantics.c (find_reachable_label): Likewise.
9794
9795 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
9796
9797         PR c/11420
9798         * config/i386/i386.c (ix86_check_movabs): New function.
9799         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
9800         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
9801         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
9802
9803 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
9804
9805         * Makefile.in (install-po): Cope with empty CATALOGS.
9806
9807 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
9808
9809         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
9810         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
9811         (SECTION_FUNCTION_TEMPLATE): Delete.
9812         * config/mips/elf.h: As for elf64.h.
9813         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
9814         * config/mips/linux.h: As for elf.h
9815         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
9816         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
9817         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
9818         of in_sdata from current_section_name and current_section_flags.
9819         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
9820         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
9821         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
9822         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
9823         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
9824         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
9825         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
9826         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
9827         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
9828         (override_options): Remove setting of MASK_GPOPT.
9829         (mips_output_external): Use mips_in_small_data_p to check whether a
9830         symbol needs an .extern directive.  Don't emit such directives for
9831         TARGET_EXPLICIT_RELOCS.
9832         (mips_declare_object): Update accordingly.
9833         (mips_select_rtx_section): Call named_section rather than
9834         SMALL_DATA_SECTION.
9835         (mips_select_section): Use default_elf_section_section for everything
9836         except .text string constants.
9837         (mips_in_small_data_p): New function.
9838         (mips_encode_section_info): Remove small data handling.
9839         (mips_unique_section): Delete.
9840         (iris6_section_type_flags): New function.
9841         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
9842
9843 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9844
9845         PR Target/11453
9846         * pa.md: Disparage all mtsar constraints.
9847         (extzv, extv, insv): Don't fail on length of {32|64}.
9848
9849 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
9850
9851         * system.h: Poison MAP_CHARACTER.
9852         * config/i370/i370-protos.h (mvs_map_char): Delete.
9853         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
9854         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
9855         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
9856
9857 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
9858
9859         * toplev.c (randomize): Correct call to time().
9860
9861 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
9862
9863         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
9864         REG_EQUIV notes as well.
9865
9866 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
9867
9868         * doc/md.texi: Fix the description of addmodecc.
9869
9870 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
9871
9872         * Makefile.in (top_builddir): Set to "..", not ".".
9873         (INTLLIBS, INTLDEPS): Delete.
9874         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
9875         (LIBDEPS): Add $(LIBICONV_DEP).
9876         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
9877         (INCLUDES): Replace -I../intl with @INCINTL@.
9878         ($(top_builddir)/intl/libintl.a): Delete rule.
9879         (stage2-start, stage3-start, stage4-start, stageprofile-start,
9880         stagefeedback-start): Use $$ for variable to be evaluated by
9881         shell, not make.
9882         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
9883         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
9884         * aclocal.m4: sinclude ../config/progtest.m4.  Add
9885         contents of lcmessage.m4 from gettext distro.
9886         * configure.in: Check for wchar.h and setlocale.  Set
9887         LIBICONV_DEP to the empty string and substitute it.
9888         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
9889         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
9890         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
9891         in $LIBINTL, to avoid linking it twice.
9892         * configure, config.in: Regenerate.
9893
9894 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
9895
9896         * fixinc/mkfixinc.sh: Remove winnt support.
9897         * fixinc/fixinc.winnt: Delete with extreme prejudice.
9898
9899 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
9900
9901         * Makefile.in: Update.
9902         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
9903         * c.opt: Update documentation.
9904         * common.opt: Add some help text.
9905         * opts.c: Include intl.h.
9906         (wrap_help, print_help): New.
9907         (find_opt, handle_option, common_handle_option): opt_text now
9908         contains the '-'.  Use print_help to output help.
9909         * opts.h (struct cl_option): New member "help".
9910         * opts.sh: Update to handle help text output and to prepend
9911         options with '-'.
9912         * toplev.c (display_help): Remove some help text.
9913
9914 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
9915             Fariborz Jahanian  <fjahanian@apple.com>
9916
9917         * configure.in: Test for PowerPC mfcr field support in assembler.
9918         * config.in, configure: Regenderated.
9919
9920         * config/rs6000/power4.md: Add mfcrf reservation.
9921         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
9922         * config/rs6000/rs6000.c (mfcr_operation): Define.
9923         (print_operand): Add 'Q' case for mfcrf.
9924         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
9925         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
9926         (movcc_internal1): Emit optional field operand for mfcr and set
9927         "type" attribute appropriately.
9928         (mfcr SCC): Likewise.
9929         (movesi_from_cr_one): New.
9930
9931 2003-07-07  Roger Sayle  <roger@eyesopen.com>
9932
9933         * config/i386/i386.md: Correct check-in of incorrect version.
9934
9935 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9936
9937         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
9938         adjacent stdio calls.
9939         * c-decl.c (c_print_identifier): Likewise.
9940         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
9941         * print-rtl.c (print_rtx): Likewise.
9942         * print-tree.c (print_node_brief, print_node): Likewise.
9943         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
9944
9945         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
9946         * config.in, configure: Regenerated.
9947
9948 2003-07-07  Roger Sayle  <roger@eyesopen.com>
9949
9950         PR target/10979
9951         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
9952         Changed to define_expand patterns that copy operand[1] to prevent
9953         it from being clobbered before emitting an atan2?f3_1 insn.
9954         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
9955         patterns that actually specify the behaviour of x87's FPATAN.
9956
9957 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
9958
9959         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
9960         clearing of SYMBOL_FLAG_LOCAL bit.
9961         If vcall_offset fits into signed 16-bit immediate, use
9962         one instruction for both addition and load.
9963
9964 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
9965
9966         * opts.c (common_handle_option): Correct handling of the
9967         -falign- switches that do and don't take an argument.
9968
9969 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
9970
9971         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
9972         today.
9973         (pushhi1_h8300hs): Likewise.
9974
9975 2003-07-07  Andreas Jaeger  <aj@suse.de>
9976
9977         * genextract.c: Convert remaining prototypes to ISO C90.
9978
9979         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
9980         * fold-const.c (fold_single_bit_test): Likewise.
9981         * diagnostic.c (default_diagnostic_finalizer): Likewise.
9982         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
9983
9984         * gengtype.c (write_array): Generate ISO C90 prototypes.
9985
9986         * genflags.c (gen_proto): Generate ISO C90 prototypes.
9987
9988 2003-07-07  Roger Sayle  <roger@eyesopen.com>
9989
9990         PR optimization/11059
9991         * expr.c (can_store_by_pieces): Return true if length is zero.
9992         (store_by_pieces): If length is zero and endp is two, abort,
9993         othwerise, if length is zero and endp is not two, return "to".
9994         (clear_by_pieces): Do nothing if length is zero.
9995         (clear_storage): Do nothing if length is zero.
9996         (store_constructor): Simplify code when size is zero, or the
9997         target has already been cleared.  This avoids emitting a
9998         blockage instruction when initializing empty structures.
9999
10000 2003-07-07  Andreas Jaeger  <aj@suse.de>
10001
10002         * mips-tfile.c: Convert prototypes to ISO C90.
10003         * mips-tdump.c: Convert prototypes to ISO C90.
10004
10005 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
10006
10007         * rtl.h (emit_line_note): Take a location_t.
10008         (emit_line_note_force): Remove.
10009         (set_file_and_line_for_statement): Take a location_t.
10010         * tree.g (emit_line_note): Take a location_t.
10011         * emit-rtl.c (emit_line_note): Take a location_t.
10012         (emit_line_note_force): Remove.
10013         * function.c (init_function_start): Adjust emit_line_note call.
10014         (expand_function_end): Use force_next_line_note, not
10015         emit_line_note_force.
10016         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
10017         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
10018         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
10019         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
10020         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
10021         genrtl_continue_stmt, genrtl_switch_stmt,
10022         genrtl_asm_stmt): Likewise.
10023         * expr.c (expand_expr): Likewise.
10024         * integrate.c (expand_inline_function): Likewise.
10025         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
10026         (expand_decl_init): Adjust emit_line_note call.
10027
10028 2003-07-07  Dale Johannesen  <dalej@apple.com>
10029
10030         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
10031
10032 2003-07-07  Andreas Jaeger  <aj@suse.de>
10033
10034         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
10035         * config/i386/i386.c: Likewise.
10036
10037 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
10038
10039         * config/h8300/h8300.md: Use gen_int_mode instead of
10040         GEN_INT (trunc_int_for_mode (...)).
10041
10042 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
10043
10044         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
10045         2 bytes and then subtract 2 from the stack pointer.
10046         (pushhi1_h8300hs): Likewise.
10047
10048 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
10049
10050         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
10051         -frandom-seed.
10052         * configure: Regenerated.
10053         * Makefile.in: Remove extraneous comment.
10054         * toplev.c (randomize): Protect against potential multiple calls.
10055         * doc/invoke.texi (-frandom-seed): Document use for in coverage
10056         files.
10057
10058 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10059             Eric Botcazou  <ebotcazou@libertysurf.fr>
10060
10061         PR optimization/11198
10062         * alias.c (objects_must_conflict_p): Return 1 if the types have
10063         the same alias set, not if the alias sets only conflict.
10064
10065 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
10066
10067         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
10068         (convert_cset): Change inbuf to type ICONV_CONST char.
10069         * Makefile.in (LIBS): Add LIBICONV.
10070
10071         * doc/invoke.texi (-falign-functions): Document that
10072         when n is zero then a machine-dependent default is used.
10073         (-falign-labels): Document that when n is zero then a
10074         machine-dependent default is used and that -falign-labels =1
10075         is equivalent to -fno-align-labels.
10076         (-falign-loops): Likewise.
10077         (-falign-jumps): Likewise.
10078
10079 2003-07-06  Art Haas  <ahaas@airmail.net>
10080
10081         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
10082         initializer syntax.
10083
10084 2003-07-06  James E Wilson  <wilson@tuliptree.org>
10085
10086         PR optimization/9812
10087         * rtl.h (mem_for_const_double): Delete prototype.
10088         * varasm.c (mem_for_const_double): Delete function.
10089         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
10090         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
10091         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
10092         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
10093         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
10094         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
10095         comment about confused support for XFmode constants.
10096
10097 2003-07-07  Jan Hubicka  <jh@suse.cz>
10098
10099         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
10100
10101 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
10102
10103         * config/h8300/h8300.c: Fix comment typos.
10104         * config/h8300/h8300.md: Likewise.
10105         * config/i386/athlon.md: Likewise.
10106         * config/i386/i386.c: Likewise.
10107         * config/i386/pentium.md: Likewise.
10108         * config/ia64/ia64.c: Likewise.
10109         * config/ia64/itanium1.md: Likewise.
10110         * config/ia64/itanium2.md: Likewise.
10111         * config/m32r/m32r.md: Likewise.
10112         * config/m68hc11/m68hc11.c: Likewise.
10113         * config/mcore/mcore.c: Likewise.
10114         * config/mips/sr71k.md: Likewise.
10115         * config/mips/t-iris5-as: Likewise.
10116         * config/mmix/mmix.h: Likewise.
10117         * config/ns32k/ns32k.h: Likewise.
10118         * config/ns32k/NOTES: Fix a typo.
10119
10120 2003-07-06  Andreas Jaeger  <aj@suse.de>
10121
10122         * stmt.c: Convert remaining prototypes to ISO C90.
10123         * cfglayout.c: Likewise.
10124         * dbxout.c: Likewise.
10125         * gcc.c: Likewise.
10126         * genemit.c: Likewise.
10127
10128         * basic-block.h: Convert prototypes to ISO C90.
10129         * c-parse.in: Likewise.
10130         * c-pragma.h: Likewise.
10131         * c-typeck.c: Likewise.
10132         * cfghooks.h: Likewise.
10133         * cfgloopanal.c: Likewise.
10134         * dbxout.h: Likewise.
10135         * debug.h: Likewise.
10136         * dwarf2asm.h: Likewise.
10137         * gcov.c: Likewise.
10138         * gengtype-lex.l: Likewise.
10139         * sched-int.h: Likewise.
10140         * timevar.c: Likewise.
10141
10142 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
10143
10144         * c-common.h (c_comon_handle_filename,
10145         c_common_missing_arguement): New.
10146         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
10147         LANG_HOOKS_MISSING_ARGUMENT): New.
10148         * c-opts.c (missing_arg): Rename c_common_missing_argument,
10149         update to be an appropriate langhook.
10150         (c_common_handle_option): Don't handle filenames.
10151         (c_common_handle_filename): New.
10152         * hooks.c (hook_void_constcharptr,
10153         hook_bool_constcharptr_size_t_false): New.
10154         * hooks.h (hook_void_constcharptr,
10155         hook_bool_constcharptr_size_t_false): New.
10156         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
10157         LANG_HOOKS_MISSING_ARGUMENT): New.
10158         (LANG_HOOKS_INITIALIZER): Update.
10159         * langhooks.h (struct lang_hooks): Add handle_filename and
10160         missing_argument.
10161         * opts.c (handle_option): Don't handle filenames here, but ...
10162         (handle_options): ... here.
10163         (common_handle_option): Don't handle missing arguments here.
10164         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
10165         LANG_HOOKS_MISSING_ARGUMENT): New.
10166
10167 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
10168
10169         * Makfile.in: Remove traces of mbchar.
10170         * c-parse.in (MULTIBYTE_CHARS): Remove.
10171         * config.in (MULTIBYTE_CHARS): Remove.
10172         * configure: Remove --enable-mbchar.
10173         * configure.in: Remove --enable-mbchar.
10174         * mbchar.c, mbchar.h: Remove.
10175         * system.h: Poison MULTIBYTE_CHARS.
10176         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
10177         * config/linux.h (MULTIBYTE_CHARS): Remove.
10178         * config/svr4.h (MULTIBYTE_CHARS): Remove.
10179         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
10180
10181 2003-07-06  Andreas Jaeger  <aj@suse.de>
10182
10183         * varray.c (varray_check_failed): Fix typo.
10184
10185         * unroll.c: Convert prototypes to ISO C90.
10186         * varasm.c: Likewise.
10187         * varray.c: Likewise.
10188         * varray.h: Likewise.
10189         * vmsdbgout.c: Likewise.
10190         * xcoffout.c: Likewise.
10191         * xcoffout.h: Likewise.
10192
10193 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
10194
10195         * gcov-io.h: Add a local time stamp.
10196         (struct gcov_info): Add stamp field.
10197         (gcov_truncate): New.
10198         * coverage.c (read_counts_file): Skip the stamp.
10199         (coverage_begin_output): Write the stamp.
10200         (build_gcov_info): Declare and init the stamp.
10201         (coverage_finish): Only unlink data file, if stamp is zero.
10202         * gcov-dump.c (dump_file): Dump the stamp.
10203         * gcov.c (bbg_stamp): New.
10204         (release_structures): Clear bbg_stamp.
10205         (read_graph_file): Read stamp.
10206         (read_count_file): Check stamp.
10207         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
10208
10209 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
10210
10211         * tree.h (default_flag_random_seed): Remove.
10212         * toplev.h (local_tick): Declare.
10213         * tree.c (flag_random_seed, default_flag_random_seed): Move to
10214         toplev.c.
10215         (append_random_chars): Don't call default_flag_random_seed.
10216         * toplev.c (flag_random_seed): Define here. Set local_tick.
10217         (local_tick): Define.
10218         (randomize): New, moved from tree.c.
10219         (print_switch_values): Adjust.
10220         (toplev_main): Call randomize.
10221
10222 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
10223
10224         * tree.h (crc32_string): Declare.
10225         * tree.c (append_random_chars): Remove.
10226         (crc32_string): New.
10227         (get_file_function_name_long): Use crc32_string here.
10228
10229 2003-07-06  Andreas Jaeger  <aj@suse.de>
10230
10231         * gcc.c: Convert prototypes to ISO C90.
10232         * gcc.h: Likewise.
10233         * gcov-dump.c: Likewise.
10234         * gcov-iov.c: Likewise.
10235         * gcse.c: Likewise.
10236         * genattrtab.h: Likewise.
10237         * ggc.h: Likewise.
10238         * global.c: Likewise.
10239         * graph.c: Likewise.
10240         * graph.h: Likewise.
10241         * hosthooks.h: Likewise.
10242         * hooks.h: Likewise.
10243         * hooks.c: Likewise.
10244         * hashtable.h: Likewise.
10245         * hashtable.c: Likewise.
10246         * haifa-sched.c: Likewise.
10247         * integrate.h: Likewise.
10248         * integrate.c: Likewise.
10249         * input.h: Likewise.
10250         * ifcvt.c: Likewise.
10251         * jump.c: Likewise.
10252         * langhooks-def.h: Likewise.  Add extern to prototypes.
10253         * langhooks.c: Likewise.
10254         * langhooks.h: Likewise.
10255         * lcm.c: Likewise.
10256         * local-alloc.c: Likewise.
10257         * loop-init.c: Likewise.
10258         * loop-unroll.c: Likewise.
10259         * loop-unswitch.c: Likewise.
10260         * loop.c: Likewise.
10261         * loop.h: Likewise. Add extern to prototypes.
10262         * machmode.h: Likewise.
10263         * main.c: Likewise.
10264         * mbchar.c: Likewise.
10265         * mbchar.h: Likewise.
10266         * mkdeps.c: Likewise.
10267         * mkdeps.h: Likewise.
10268         * optabs.c: Likewise.
10269         * optabs.h: Likewise.
10270         * output.h: Likewise.
10271         * gccspec.c: Likwise.
10272         * postreload.c: Likewise.
10273         * prefix.c: Likewise.
10274         * prefix.h: Likewise.
10275         * print-rtl.c: Likewise.
10276         * print-tree.c: Likewise.
10277         * profile.c: Likewise.
10278         * read-rtl.c: Likewise.
10279         * real.c: Likewise.
10280         * real.h: Likewise.
10281         * recog.c: Likewise.
10282         * recog.h: Likewise.
10283         * reg-stack.c: Likewise.
10284         * regclass.c: Likewise.
10285         * regmove.c: Likewise.
10286         * regrename.c: Likewise.
10287         * regs.h: Likewise.
10288         * reload.c: Likewise.
10289         * reload.h: Likewise.
10290         * reload1.c: Likewise.
10291         * reorg.c: Likewise.
10292         * resource.c: Likewise.
10293         * resource.h: Likewise.
10294         * rtl-error.c: Likewise.
10295         * rtl.c: Likewise.
10296         * rtl.h: Likewise.
10297         * rtlanal.c: Likewise.
10298         * sbitmap.c: Likewise.
10299         * sbitmap.h: Likewise.
10300         * scan-decls.c: Likewise.
10301         * scan.c: Likewise.
10302         * sched-deps.c: Likewise.
10303         * sched-ebb.c: Likewise.
10304         * sched-int.h: Likewise.
10305         * sched-rgn.c: Likewise.
10306         * sched-vis.c: Likewise.
10307         * sibcall.c: Likewise.
10308         * simplify-rtx.c: Likewise.
10309         * sreal.c: Likewise.
10310         * sreal.h: Likewise.
10311         * ssa-ccp.c: Likewise.
10312         * ssa-dce.c: Likewise.
10313         * ssa.c: Likewise.
10314         * ssa.h: Likewise.
10315         * stack.h: Likewise.
10316         * stmt.c: Likewise.
10317         * stor-layout.c: Likewise.
10318         * stringpool.c: Likewise.
10319         * target.h: Likewise.
10320         * timevar.c: Likewise.
10321         * timevar.h: Likewise.
10322         * tlink.c: Likewise.
10323         * tracer.c: Likewise.
10324         * tree-inline.c: Likewise.
10325         * tree-inline.h: Likewise.
10326         * tree.c: Likewise.
10327         * tree.h: Likewise.
10328
10329 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
10330
10331         * combine.c (nonzero_bits1): Fix a warning.
10332
10333 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
10334
10335         * config/h8300/h8300.c (compute_mov_length): Correct the
10336         length of loading CONST0_RTX (SFmode).
10337
10338 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
10339
10340         * toplev.c (output_clean_symbol_name): Remove.
10341         * toplev.h (output_clean_symbol_name): Remove.
10342         * config/alpha/alpha.c (unicosmk_output_module_name): Use
10343         lbasename & clean_symbol_name.
10344
10345 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
10346
10347         * ggc.h: Follow spelling conventions.
10348         * config/i386/i386.c: Likewise.
10349         * config/i386/winnt.c: Likewise.
10350         * config/rs6000/rs6000.c: Likewise.
10351
10352 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
10353
10354         * bt-load.c: Fix comment typos.
10355         * c-incpath.c: Likewise.
10356         * cfg.c: Likewise.
10357         * cfgcleanup.c: Likewise.
10358         * cfgloop.h: Likewise.
10359         * cfgloopmanip.c: Likewise.
10360         * cfgrtl.c: Likewise.
10361         * diagnostic.h: Likewise.
10362         * dwarfout.c: Likewise.
10363         * emit-rtl.c: Likewise.
10364         * et-forest.c: Likewise.
10365         * et-forest.h: Likewise.
10366         * expr.c: Likewise.
10367         * gcse.c: Likewise.
10368         * genattr.c: Likewise.
10369         * jump.c: Likewise.
10370         * langhooks.h: Likewise.
10371         * local-alloc.c: Likewise.
10372         * loop-unroll.c: Likewise.
10373         * loop-unswitch.c: Likewise.
10374         * ra-build.c: Likewise.
10375         * regclass.c: Likewise.
10376         * regmove.c: Likewise.
10377         * rtl.def: Likewise.
10378         * rtlanal.c: Likewise.
10379         * sched-ebb.c: Likewise.
10380         * sched-rgn.c: Likewise.
10381         * simplify-rtx.c: Likewise.
10382         * ssa.c: Likewise.
10383         * tracer.c: Likewise.
10384         * tree.c: Likewise.
10385
10386 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
10387
10388         * cppcharset.c: Use the correct return type for the fallback iconv
10389         macro.
10390
10391 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10392
10393         Blame to Jan Hubicka  <jh@suse.cz>
10394         * cfglayout.c (record_effective_endpoints): Split insns before
10395         first basic block correctly.
10396
10397 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10398
10399         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
10400         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
10401         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
10402
10403 2003-07-05  Andreas Jaeger  <aj@suse.de>
10404
10405         * genattrtab.c (write_attr_get): Revert part of last patch to
10406         always write out a prototype.
10407
10408         * genemit.c (gen_split): Readd lost unused attributes in last
10409         patch.
10410
10411 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10412
10413         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
10414         different from header.
10415
10416 2003-07-05  Andreas Schwab  <schwab@suse.de>
10417
10418         * config/m68k/m68k.c: Remove code protected by CRDS.
10419         * config/m68k/m68k.md: Likewise.
10420
10421 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
10422
10423         PR driver/11417
10424         * c-opts.c (permit_fortran_options): New.
10425         (c_common_init_options): Accept fortran front end options if
10426         it looks like we might be preprocessing Fortran.
10427         (c_common_handle_option): Don't reject switch if permit_fotran_options.
10428
10429 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10430
10431         * genattr.c (internal_dfa_insn_code): Output prototype.
10432         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
10433         * genautomata.c: Likewise.
10434         * genconditions.c: Likewise.
10435         * genemit.c: Likewise.
10436         * genextract.c: Likewise.
10437         * gengenrtl.c: Likewise.
10438         * gengtype.c: Likewise.
10439         * genopinit.c: Likewise.
10440         * genoutput.c: Likewise.
10441         * genpeep.c: Likewise.
10442         * genrecog.c: Likewise.
10443
10444 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
10445
10446         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
10447         (struct cpp_options): Add narrow_charset, wide_charset,
10448         bytes_big_endian fields.  Remove EBCDIC field.
10449         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
10450
10451         * cpphash.h: Include <iconv.h> if we have it, otherwise
10452         provide a dummy definition of iconv_t.
10453         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
10454         (_cpp_valid_ucn): Update prototype.
10455         (_cpp_destroy_iconv): New prototype.
10456
10457         * doc/cpp.texi: Document character set handling.
10458         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
10459         * doc/extend.texi: Delete entire section on multiline strings.
10460         Rewrite section on __FUNCTION__ etc now that these are
10461         variables in C.
10462
10463         * cppucnid.tab, cppucnid.pl: New files.
10464         * cppucnid.h: New generated file.
10465         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
10466         (iconv_open, iconv, iconv_close): Provide dummy definitions
10467         if !HAVE_ICONV.
10468         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
10469         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
10470         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
10471         cpp_interpret_string, narrow_str_to_charconst,
10472         wide_str_to_charconst): New.
10473         (ucn_valid_in_identifier): Use a binary search through the
10474         ucnranges table defined in cppucnid.h, not a long chain of if
10475         statements.
10476         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
10477         character names are only valid in C++ and C99" to a warning.
10478         Issue the "meaning of \[uU] is different in traditional C"
10479         warning here.  Take care not to let iconv see an invalid UCS
10480         value if we get a malformed UCN.  Issue an error if we don't
10481         have iconv.
10482         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
10483         cpp_interpret_string to do the heavy lifting.
10484
10485         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
10486         narrow_charset, wide_charset fields of options structure.
10487         (cpp_destroy): Call _cpp_destroy_iconv.
10488         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
10489         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
10490         (cpp_interpret_charconst): Moved to cppcharset.c.
10491         * cpplib.c (dequote_string): Delete.
10492         (interpret_string_notranslate): New.
10493         (do_line, do_linemarker): Use interpret_string_notranslate.
10494
10495         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
10496
10497         * c-common.c (fname_string, combine_strings): Delete.
10498         * c-common.h (fname_string, combine_strings): Delete prototypes.
10499         * c-lex.c (ignore_escape_flag): Delete.
10500         (cb_ident): Use cpp_interpret_string, not lex_string.
10501         (get_nonpadding_token): New function.
10502         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
10503         Adjust calls to lex_string.  Don't write *value twice.
10504         (lex_string): Now handles string constant concatenation.
10505         Most of the work handed off to cpp_interpret_string.
10506         Call fix_string_type here.
10507         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
10508         FUNC_NAME, throughout.
10509         (OBJC_STRING): New token type.
10510         (primary:STRING): No need to call fix_string_type here.
10511         (primary:objc_string): Make that OBJC_STRING.
10512         (objc_string nonterminal): Delete.
10513         (yylexname): Delete code to handle fake string constants.
10514         (yylexstring): Delete entirely.
10515         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
10516         to handle CPP_ATSIGN.
10517
10518         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
10519         * c-opts.c (missing_arg, c_common_handle_option): Handle
10520         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
10521         (c_common_init): Set cpp_opts->bytes_big_endian, not
10522         cpp_opts->EBCDIC.  Call cpp_init_iconv.
10523         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
10524         (TARGET_EBCDIC): Delete default definition.
10525
10526         * objc/objc-act.c (build_objc_string_object): No need to
10527         handle string constant concatenation.
10528
10529 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
10530
10531         * doc/install.texi: Fix typos.
10532         * doc/invoke.texi: Likewise.
10533         * doc/tm.texi: Likewise.
10534
10535 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
10536
10537         * config/pa/fptr.c: Fix comment typos.
10538         * config/pa/pa-64.h: Likewise.
10539         * config/pa/pa.c: Likewise.
10540         * config/pa/pa.h: Likewise.
10541         * config/rs6000/603.md: Likewise.
10542         * config/rs6000/7xx.md: Likewise.
10543         * config/rs6000/darwin.h: Likewise.
10544         * config/rs6000/freebsd.h: Likewise.
10545         * config/rs6000/rs6000.c: Likewise.
10546         * config/rs6000/rs6000.md: Likewise.
10547         * config/rs6000/spe.h: Likewise.
10548
10549 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
10550
10551         * config/s390/2064.md: Change GNU CC to GCC.
10552         * config/s390/2084.md: Likewise.
10553         * config/s390/fixdfdi.h: Likewise.
10554         * config/s390/linux.h: Likewise.
10555         * config/s390/s390-modes.def: Likewise.
10556         * config/s390/s390-protos.h: Likewise.
10557         * config/s390/s390.c: Likewise.
10558         * config/s390/s390.h: Likewise.
10559         * config/s390/s390.md: Likewise.
10560         * config/s390/s390x.h: Likewise.
10561
10562 2003-07-04  Jeff Law  <law@redhat.com>
10563
10564         PR c/11428
10565         * expr.c (do_store_flag): Pass in the correct result type
10566         when calling fold_single_bit_test.
10567         * fold-const.c (fold_single_bit_test): Use result_type for the
10568         result when folding a sign bit test.
10569
10570 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
10571
10572         * opts.c (common_handle_options): Negate sense of -falign- switches.
10573
10574 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
10575
10576         * Makefile.in: Replace PWD with PWD_COMMAND.
10577
10578 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10579
10580         * cfgloopanal.c (count_strange_loop_iterations): New static function.
10581         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
10582         Handle strange loops.
10583
10584 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
10585
10586         * install.texi: Even the g77 manpage is derived from
10587         the full g77 manual.
10588
10589 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
10590
10591         * ABOUT-NLS: Delete.
10592         * intl: Delete entire directory.
10593         * aclocal.m4: Include ../config/gettext.m4.  Delete
10594         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
10595         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
10596         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
10597         Remove intl/Makefile from all_outputs.
10598         * configure, config.in: Regenerate.
10599         * Makefile.in: Expunge all references to intl subdirectory.
10600         Add -I../intl to INCLUDES.
10601         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
10602
10603 2003-07-04  Roger Sayle  <roger@eyesopen.com>
10604
10605         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
10606         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
10607
10608 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
10609
10610         PR c++/5287, PR c++/7910, PR c++/11021
10611         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
10612         dllimport attribute if function is defined at declaration, but
10613         report error instead. Likewise for dllimport'd variable
10614         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
10615         declared within functions, Report error if dllimport or dllexport
10616         symbol is not global.
10617         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
10618         if defined after declaration or if inlined. Don't allow definition
10619         of static data members of C++ classes. Don't dllimport virtual
10620         methods.
10621         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
10622         (i386_pe_mark_dllimport): Remove unnecessary checks.
10623         (i386_pe_encode_section_info): Warn if the dllimport attribute
10624         and symbol prefix have been instantiated and then overridden.
10625
10626         * doc/extend.texi: Document dllimport and dllexport attributes.
10627
10628         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
10629
10630 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
10631
10632         * config/kaos.h (CPP_PREDEFINES): Delete.
10633         (TARGET_OS_CPP_BUILTINS): New.
10634
10635 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10636
10637         * c-aux-info.c: Include toplev.h after c-tree.h.
10638         * c-common.c: Likewise.
10639         (GCC_DIAG_STYLE): Undef.
10640         * c-semantics.c (GCC_DIAG_STYLE): Define.
10641         * c-tree.h (GCC_DIAG_STYLE): Likewise.
10642         * diagnostic.h (inform): Move prototype to toplev.h.
10643         * jump.c: Include diagnostic.h before toplev.h.
10644         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
10645         (warning, error, fatal_error, pedwarn, sorry, inform,
10646         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
10647
10648 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10649
10650         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
10651         at all if edge is not specified.
10652         (can_copy_bbs_p, copy_bbs): New.
10653         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
10654         * cfgloop.c (get_loop_body): Comment more precisely.
10655         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
10656         (scale_bbs_frequencies): Fix comment typo.
10657         (can_duplicate_loop_p): Use can_copy_bbs_p.
10658         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
10659
10660 2003-07-03  Devang Patel <dpatel@apple.com>
10661
10662         * c-opts.c (c_common_parse_file): Remove extra
10663         debug_hooks->start_source_file call.
10664
10665 2003-07-03  Roger Sayle  <roger@eyesopen.com>
10666
10667         * real.c (real_trunc, real_floor, real_ceil): New functions
10668         to implement trunc, floor and ceil respectively.
10669         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
10670         * builtins.c (integer_valued_real_p): New function to test if
10671         a floating point expression has an integer valued result.
10672         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
10673         foo(x) where foo is an integer rounding function.  Similarly,
10674         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
10675         (double)(int)x when both foo and bar are integer rounding
10676         functions and we don't need to honor errno.
10677         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
10678         New functions to fold trunc, floor and ceil.
10679         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
10680         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
10681         to fold BUILT_IN_CEIL*.
10682         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
10683         the remaining integer rounding functions.
10684
10685 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
10686
10687         * config/sparc/sparc.c (function_arg_partial_nregs): Use
10688         SPARC_INT_ARG_MAX to determine where to split unnamed
10689         complex FP arguments.
10690
10691 2003-07-03  Jan Hubicka  <jh@suse.cz>
10692
10693         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
10694         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
10695         (merge_blocks_move_predecessor_nojumps,
10696          merge_blocks_move_successor_nojumps): Use merge_blocks.
10697         (try_optimize_cfg): Use merge_blocks_move.
10698         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
10699         (merge_blocks_nomove): Rename to rtl_merge_blocks.
10700         (cfg_layout_create_basic_block): New.
10701         (rtl_can_merge_blocks): New.
10702         (cfg_layout_split_block): Do not alloc aux by hand.
10703         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
10704         merge_blocks.
10705         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
10706         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
10707         * cfgloopmanip.c (loop_split_edge_with): Likewise.
10708         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
10709
10710         * basic-block.h (basic_block_def): Add field 'rbi'.
10711         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
10712         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
10713         * cfg.c (entry_exit_blocks): Add new field.
10714         * cfglayout.c: Include alloc-pool.h;
10715         (cfg_layout_pool): New.
10716         (record_effective_endpoints, fixup_reorder_chain,
10717         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
10718         of rbi.
10719         (cfg_layout_initialize_rbi): New function.
10720         (cfg_layout_initialize): Use it.
10721         (cfg_layout_finalize): Clear rbi fields.
10722         * cfglayout.h (RBI): Kill.
10723         (cfg_layout_initialize_rbi): Declare.
10724         * cfgloopmanip.c (copy_bbs): Use rbi.
10725         (record_exit_edges): Likewise.
10726         (duplicate_loop_to_header_edge): Likewise.
10727         * cfgrtl.c (cfg_layout_create_basic_block): Use
10728         cfg_layout_initialize_rbi.
10729         (cfg_layout_split_block): Use rbi.
10730         (cfg_layout_delete_block): Likewise.
10731         * loop-init.c (loop_optimizer_finalize): Likewise.
10732         * loop-unswitch.c (unswitch_loop): Likewise.
10733         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
10734
10735         * cfgrtl.c: Update comments.
10736         (try_redirect_by_replacing_jump): New argument.
10737         (redirect_branch_edge): Break out from ...
10738         (rtl_redirect_edge_and_branch): ... this one.
10739         (update_cfg_after_block_merging): Break out from ...
10740         (rtl_merge_blocks): ... this one.
10741         (cfg_layout_split_edge): New.
10742         (cfg_layout_merge_blocks): New.
10743         (cfg_layout_can_merge_blocks_p): New.
10744         (cfg_layout_redirect_edge_and_branch): Reorganize.
10745         (cfg_layout_rtl_cfg_hooks): Fill in.
10746         (cfg_layout_delete_block): Kill barriers.
10747         * cfganal.c (can_fallthru): Deal with exit blocks
10748         * cfglayout.c (cfg_layout_function_header): New function
10749         (record_effective_endpoints): Record function header.
10750         (fixup_reorder_chain): Fixup dead jumptables; place header
10751
10752         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
10753         * bb-reorder.c (cfg_layout_initialize): Update call.
10754         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
10755         edges in cfglayout mode.
10756         * cfglayout.c (cleanup_unconditional_jumps): Kill.
10757         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
10758         * cfglayout.h (cfg_layout_initialize): Update prototype.
10759         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
10760         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
10761         * flow.c (propagate_block): Do not crash when basic block ends
10762         by first insn in the chain.
10763         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
10764         do loop discovery.
10765         * tracer.c (tracer): Update call of cfg_layout_initialize.
10766
10767 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10768
10769         * Makefile.in: Use dependency variables in lieu of explicit
10770         files throughout.
10771
10772 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
10773
10774         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
10775         * tree.h: ...to here.
10776
10777 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
10778
10779         * config/s390/2064.md: Fix comment typos.
10780         * config/s390/2084.md: Likewise.
10781         * config/s390/s390.c: Likewise.
10782         * config/s390/s390.md: Likewise.
10783         * config/sh/sh.c: Likewise.
10784         * config/sh/sh.h: Likewise.
10785         * config/sh/sh.md: Likewise.
10786         * config/sparc/sparc.c: Likewise.
10787         * config/sparc/sparc.h: Likewise.
10788         * config/sparc/sparc.md: Likewise.
10789         * config/stormy16/stormy16.c: Likewise.
10790         * config/stormy16/stormy16.h: Likewise.
10791         * config/stormy16/stormy-abi: Fix a typo.
10792
10793 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
10794
10795         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
10796
10797 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10798
10799         * config/mips/mips.h (save_argv): Delete.
10800
10801 2003-07-03  Roger Sayle  <roger@eyesopen.com>
10802
10803         PR target/10700
10804         * fold-const.c (extract_muldiv_1): There's nothing that can be done
10805         if the expression is a SAVE_EXPR.
10806
10807 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
10808
10809         * config/m32r/m32r.c: Fix comment typos.
10810         * config/m68hc11/m68hc11.c: Likewise.
10811         * config/m68hc11/m68hc11.h: Likewise.
10812         * config/m68k/m68k.c: Likewise.
10813         * config/mcore/mcore.c: Likewise.
10814         * config/mcore/mcore.h: Likewise.
10815         * config/mcore/mcore.md: Likewise.
10816         * config/mips/mips.c: Likewise.
10817         * config/mips/mips.h: Likewise.
10818         * config/mips/mips.md: Likewise.
10819         * config/mips/netbsd.h: Likewise.
10820         * config/mn10300/mn10300.c: Likewise.
10821
10822 2003-07-03  Andreas Schwab  <schwab@suse.de>
10823
10824         * dbxout.c (pending_bincls): Move decl down inside
10825         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
10826
10827 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
10828
10829         * rtl.h (NOTE_DATA): Refer to whole union.
10830         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
10831
10832 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
10833
10834         PR optimization/11381
10835         * simplify-rtx.c (simplify_relational_operation): Check that
10836         two equal operands have no side-effects before simplifying
10837         the comparison.
10838
10839 2003-07-02  Jeff Law  <law@redhat.com>
10840
10841         * expr.c (do_store_flag): Remove special case folding for
10842         single bit tests.  Instead call back into the commonized folder
10843         routine.
10844         * fold-const.c (fold_single_bit_test): New function, mostly
10845         extracted from do_store_flag, with an additional case extracted
10846         from fold.
10847         (fold): Call fold_single_bit_test appropriately.
10848         * tree.h (fold_single_bit_test): Prototype.
10849
10850 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
10851
10852         * system.h: Include filenames.h.
10853         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
10854         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
10855         define based on HAVE_DOS_BASED_FILE_SYSTEM.
10856         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
10857         * config/i386/xm-mingw32.h: Don't define
10858         HAVE_DOS_BASED_FILE_SYSTEM,
10859         DIR_SEPARATOR, or DIR_SEPARATOR_2.
10860         * doc/hostconfig.texi: Update to match.
10861
10862         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
10863         config/i386/cygwin.h:
10864         Use IS_ABSOLUTE_PATH throughout.
10865         * gcc.c (DIR_UP): Delete, unused.
10866         * protoize.c (IS_SAME_PATH): Define in terms of
10867         FILENAME_CMP.
10868         (is_abspath): Delete.
10869
10870 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
10871
10872         * config/i386/emmintrin.h: Fix comment typos.
10873         * config/i386/i386.c: Likewise.
10874         * config/i386/i386.h: Likewise.
10875         * config/i386/sco5.h: Likewise.
10876         * config/ia64/ia64.c: Likewise.
10877         * config/ia64/itanium2.md: Likewise.
10878
10879 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
10880
10881         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
10882         DBX_USE_BINCL.
10883         (emit_bincl_stab): Same.
10884         (emit_pending_bincls): Same.
10885
10886 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
10887
10888         * config/h8300/h8300.c (compute_mov_length): Fix the length of
10889         loading CONST0_RTX (SFmode).
10890         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
10891         'G' to CONST0_RTX (SFmode).
10892         * config/h8300/h8300.md (movsf_h8300): Change the first
10893         constraint to 'G'.
10894         (movsf_h8300h): Likewise.
10895
10896 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
10897
10898         * c-common.h (c_common_init_options): New prototype.
10899         * c-opts.c (deferred_size): Remove.
10900         (defer_opt): Array is now pre-allocated.
10901         (c_common_init_options): Pre-allocate deferred_opts.  Make
10902         lang_flags unsigned.
10903         (push_command_line_options): Free deferred_opts.
10904         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
10905         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
10906         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
10907         * langhooks.h (struct lang_hooks): New prototype for init_options.
10908         * main.c (main): Cast argv.
10909         * opts.c (handle_option, handle_options): Update prototypes.
10910         (decode_options): save_argc, save_argv are not global.  Constify.
10911         * opts.h (decode_options): New prototype.
10912         * toplev.c (general_init): New protoype.
10913         (save_argv): Make static.
10914         (save_argc): Remove.
10915         (print_switch_values, general_init): Constify.
10916         (toplev_main): Save argv.
10917         * toplev.h (toplev_main): Update prototype.
10918         (save_argc, save_argv): Remove.
10919
10920 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
10921
10922         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
10923         (emit_bincl_stab): Same.
10924         (emit_pending_bincls): Same.
10925
10926 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
10927
10928         PR c++/11072
10929         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
10930
10931 2003-07-02  Andreas Schwab  <schwab@suse.de>
10932
10933         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
10934
10935 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
10936
10937         PR optimization/11210
10938         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
10939         about the behaviour with regard to bitfields.
10940         * fold-const (decode_field_reference): Record outermost type in
10941         case the expression is a NOP. Strip all NOPs. Set the signedness
10942         to that of the outermost type (if any) when the bitsize is equal
10943         to the size of the type.
10944
10945 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
10946
10947         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
10948         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
10949         (adddi3_internal_3, addsi3_internal_2): Likewise.
10950
10951 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
10952
10953         * config/mips/mips.c (machine_function): Add new fields:
10954         ignore_hazard_length_p and all_noreorder_p.
10955         (mips_flag_delayed_branch): New variable.
10956         (override_options): Treat '/' as an operand punctuation character.
10957         Set up mips_flag_delayed_branch.
10958         (print_operand): Handle '/'.
10959         (mips_output_function_prologue): Put the whole function in
10960         .set noreorder and .set nomacro if all_noreorder_p is true.
10961         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
10962         (mips16_optimize_gp): Remove "first insn" parameter.
10963         (mips16_lay_out_constants): New function, split out from mips_reorg.
10964         (mips_avoid_hazard, mips_avoid_hazards): New functions.
10965         (mips_reorg): For mips16 code, call mips16_lay_out_constant
10966         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
10967         do delayed-branch scheduling followed by hazard detection.
10968         (mips_adjust_insn_length): Only account for hazards if
10969         !ignore_hazard_length_p.
10970         (mips_output_load_label): Add a nop to the o32 sequence if
10971         the target suffers from load delays.
10972         (mips_output_conditional_branch): Add %/ to the end of branches.
10973         (mips_output_division): Fill the branch delay slot with %#.
10974         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
10975         instructions.  End all other %* branches with %/.
10976         (ffssi2, ffsdi2): Fix lengths.
10977         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
10978         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
10979         (fix_truncsfsi2_macro): Likewise.
10980         (mov_lwl): Set hazard to "none".
10981         (ashldi3_internal): Fill the branch delay slot with %#.
10982         (ashrdi3_internal, lshrdi3_internal): Likewise.
10983         (exception_receiver): Explicitly set $28.
10984         (hazard_nop): New pattern.
10985
10986 2003-07-02  Jan Hubicka  <jh@suse.cz>
10987
10988         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
10989         before calling tree_inlinable_function_p.
10990
10991 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10992
10993         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
10994         <internal/stdio_core.h> too.
10995         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
10996         <internal/wchar_core.h> too.
10997         Substitute va_list uses in inline definition.
10998         * fixinc/fixincl.x: Regenerate.
10999
11000 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11001
11002         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
11003         Undef before redefinition.
11004         (LABEL_AFTER_LOC): Likewise.
11005         (DEFAULT_SIGNED_CHAR): Likewise.
11006         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
11007         Fix IRIX spelling.
11008
11009         * config/mips/iris3.h: Remove, unused.
11010         * config/mips/iris4.h: Likewise.
11011
11012         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
11013
11014         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
11015         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
11016         target_cpu_default.
11017
11018         * config/mips/iris5.h: Move explicit includes ...
11019         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
11020
11021         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
11022         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
11023         tm_defines.
11024
11025         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
11026         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
11027         target_cpu_default.
11028
11029         * config/mips/iris6.h: Fix IRIX spelling.
11030         (MULTILIB_DEFAULTS): Undef before redefinition.
11031
11032         * config/mips/iris6.h: Move explicit includes ...
11033         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
11034
11035 2003-07-02  Jan Hubicka  <jh@suse.cz>
11036
11037         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
11038         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
11039         Use next_needed field instead of aux to maintain the queue.
11040         * cgraph.h (cgraph_node): Add next_needed.
11041         (cgraph_varpool_node): Add next_needed; remove aux.
11042         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
11043
11044 2003-07-02  Jan Hubicka  <jh@suse.cz>
11045
11046         * cgraphunit.c (cgraph_finalize_function): Set finalized.
11047         (cgraph_finalize_function): Do not examine inlinablility.
11048         (cgraph_finalize_compilation_unit): Do it here.
11049         * cgraph.h (cgraph_local_info): Add finalized field.
11050
11051 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11052
11053         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
11054         (gt_pch_restore): Likewise.
11055
11056 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
11057
11058         * config/alpha/alpha.c: Fix comment typos.
11059         * config/alpha/elf.h: Likewise.
11060         * config/arm/arm.c: Likewise.
11061         * config/arm/arm.h: Likewise.
11062         * config/arm/arm.md: Likewise.
11063         * config/arm/t-arm-coff: Likewise.
11064         * config/arm/t-strongarm-pe: Likewise.
11065         * config/arm/xscale-elf.h: Likewise.
11066         * config/avr/avr.h: Likewise.
11067
11068 2003-07-01  Jeff Law  <law@redhat.com>
11069
11070         * stmt.c (any_pending_cleanups): Remove another redundant test.
11071
11072 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
11073             J"orn Rennecke <joern.rennecke@superh.com>
11074
11075         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
11076         for MEM case.
11077
11078 2003-07-01  Devang Patel  <dpatel@apple.com>
11079
11080         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
11081         (binclstatus): New.
11082         (struct dbx_file): New members - bincl_status, pending_bincl_name and
11083         prev.
11084         (pending_bincls): New.
11085         (dbxout_init): Initialize new dbx_file members.
11086         (dbxout_start_source_file): Same.
11087         (emit_bincl_stab): New function.
11088         (emit_pending_bincls): Same.
11089         (emit_pending_bincls_if_required): Same.
11090         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
11091         processed.
11092         (dbxout_begin_block): Emit pending BINCL stabs.
11093         (dbxout_end_block): Same.
11094         (dbxout_function_decl): Same.
11095         (dbxout_continue): Same.
11096         (dbxout_type): Same.
11097         (dbxout_class_name_qualifiers): Same.
11098         (dbxout_symbol): Same.
11099         (dbxout_symbol_location): Same.
11100         (dbxout_parms): Same.
11101
11102 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11103
11104         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
11105         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
11106
11107 2003-07-01  Andreas Jaeger  <aj@suse.de>
11108
11109         * fold-const.c: Convert prototypes to ISO C90.
11110         * function.c: Likewise.
11111         * function.h: Likewise.
11112
11113 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
11114
11115         * doc/contrib.texi: Fix typos.
11116         * doc/invoke.texi: Likewise.
11117         * doc/passes.texi: Likewise.
11118         * doc/sourcebuild.texi: Likewise.
11119         * doc/tm.texi: Likewise.
11120
11121 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
11122
11123         * basic-block.h: Fix comment typos.
11124         * bb-reorder.c: Likewise.
11125         * c-format.c: Likewise.
11126         * cfgcleanup.c: Likewise.
11127         * cfghooks.h: Likewise.
11128         * cfgloop.c: Likewise.
11129         * cfgloopmanip.c: Likewise.
11130         * cfgrtl.c: Likewise.
11131         * cgraph.h: Likewise.
11132         * cgraphunit.c: Likewise.
11133         * combine.c: Likewise.
11134         * convert.c: Likewise.
11135         * dbxout.c: Likewise.
11136         * df.c: Likewise.
11137         * df.h: Likewise.
11138         * diagnostic.c: Likewise.
11139         * dwarf2out.c: Likewise.
11140         * et-forest.h: Likewise.
11141         * flow.c: Likewise.
11142         * fold-const.c: Likewise.
11143         * function.h: Likewise.
11144         * gcov-io.h: Likewise.
11145         * gcov.c: Likewise.
11146         * gcse.c: Likewise.
11147         * genautomata.c: Likewise.
11148         * ggc-common.c: Likewise.
11149         * ggc-page.c: Likewise.
11150         * loop-unroll.c: Likewise.
11151         * loop-unswitch.c: Likewise.
11152         * loop.c: Likewise.
11153         * mips-tfile.c: Likewise.
11154         * optabs.c: Likewise.
11155         * ra-build.c: Likewise.
11156         * ra-colorize.c: Likewise.
11157         * ra-rewrite.c: Likewise.
11158         * ra.h: Likewise.
11159         * regmove.c: Likewise.
11160         * reload.c: Likewise.
11161         * rtlanal.c: Likewise.
11162         * sched-ebb.c: Likewise.
11163         * sched-int.h: Likewise.
11164         * sched-vis.c: Likewise.
11165         * sreal.c: Likewise.
11166         * ssa-ccp.c: Likewise.
11167         * ssa.c: Likewise.
11168         * toplev.c: Likewise.
11169         * tree-inline.c: Likewise.
11170         * value-prof.c: Likewise.
11171         * value-prof.h: Likewise.
11172
11173 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
11174
11175         * rtl.h (emit_line_note_after): Remove.
11176         (emit_note_copy_after, emit_note_copy): New.
11177         * emit-rtl.c (reorder_insns_with_line_notes): Replace
11178         emit_line_note_after with emit_note_copy_after.
11179         (emit_insn_after_with_line_notes): Likewise.
11180         (emit_line_note_after): Kill.
11181         (emit_note_copy_after): New.
11182         (emit_note_copy): New.
11183         * function.c (emit_return_into_block): Use emit_note_copy_after.
11184         (thread_prologue_and_epilogue_insns): Likewise.
11185         * integrate.c (expand_inline_function): Use emit_note_copy.
11186         (copy_insn_list): Likewise.
11187         * unroll.c (copy_loop_body): Likewise.
11188         * cfglayout.c (duplicate_insn_chain): Likewise.
11189
11190 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
11191
11192         * c-tree.h (define_label): Replace filename and lineno arguments
11193         with a location_t.
11194         * c-decl.c (poplevel): Adjust define_label call.
11195         (pop_label_level): Likewise.
11196         (define_label): Replace filename and lineno arguments with a
11197         location_t.
11198         (store_parm_decls): Use DECL_SOURCE_LOCATION.
11199         * c-parse.in (label): Adjust define_label call.
11200
11201 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
11202
11203         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
11204         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
11205         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
11206         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
11207         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
11208
11209 2003-07-01  Andreas Jaeger  <aj@suse.de>
11210
11211         * final.c: Convert prototypes to ISO C90.
11212         * flow.c: Likewise.
11213         * flags.h: Likewise.
11214         * gcov-io.c: Likewise.
11215         * gcov-io.h: Likewise.
11216
11217 See ChangeLog.9 for earlier changes.