1 2003-10-20 David S. Miller <davem@redhat.com>
3 * config/sparc/sparc.md (type attribute): Add new insn types
4 fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
5 (patterns emitting VIS insns): Use them.
6 * config/sparc/ultra1_2.md: Add VIS scheduling rules.
7 * config/sparc/ultra3.md: Likewise.
9 2003-10-20 Falk Hueffner <falk@debian.org>
12 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
13 comparison against constant by adjusting the argument except for
16 2003-10-19 Mark Mitchell <mark@codesourcery.com>
18 * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
19 arm1136jfs, and armv6j.
20 * config/arm/arm.c (FL_ARCH6J): New macro.
22 (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
24 (all_architectures): Add entry for armv6j.
25 (arm_override_options): Add entries for arm926ejs, arm1026ejs,
26 arm1136js, and arm1136jfs.
27 * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
28 (TARGET_CPU_arm1026ej_s): Likewise.
29 (TARGET_CPU_arm1136j_s): Likewise.
30 (TARGET_CPU_arm1136jf_s): Likewise.
31 * doc/invoke.texi: Document new ARM cores and architecture
34 2003-10-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
36 * Makefile.in (toplev.o): Add value-prof.h dependency.
37 (value-prof.o): Add REGS_H dependency.
38 * common.opt (fprofile-values, fvpt): New.
39 * flags.h (flag_value_profile_transformations): Declare.
40 * opts.c (common_handle_option): Handle -fprofile_values and
42 * profile.c (branch_prob): Don't remove death notes here.
43 * timevar.def (TV_VPT): New.
44 * value-prof.c: Include regs.h.
45 (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
46 gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
47 mod_subtract_transform, value_profile_transformations): New.
48 (insn_values_to_profile): Call insn_divmod_values_to_profile.
49 (find_values_to_profile): Add dumps.
50 * value-prof.h (value_profile_transformations): Declare.
51 * toplev.c: Include value-prof.h.
52 (rest_of_handle_value_profile_transformations): New.
53 (enum dump_file_index): Add DFI_vpt.
54 (dump_file): Add vpt dump.
55 (flag_value_profile_transformations): New.
56 (lang_independent_options): Add flag_profile_values and
57 flag_value_profile_transformations.
58 (rest_of_compilation): Call
59 rest_of_handle_value_profile_transformations.
60 (process_options): Let -fvpt imply -fprofile-values.
61 * doc/invoke.texi (-fvpt): Document.
63 2003-10-19 Jan Hubicka <jh@suse.cz>
65 * i386.c (print_reg): Do not abort on certain registers.
68 * reg-stack.c (subst_stack_regs_pat): Use st(1) for clobbers.
69 * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
70 match_scratch; avoid bogus paralles.
73 * i386.c (ix86_function_regparm): Disable implicit register passing
74 conventions when profiling.
76 2003-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
77 Richard Henderson <rth@redhat.com>
80 * config/i386/i386.md (*movsi_zero): Delete.
81 (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
83 2003-10-19 Richard Henderson <rth@redhat.com>
85 * config/alpha/alpha.c (fix_operator): New.
86 (divmod_operator): Tidy.
87 (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
88 * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
89 (PREDICATE_CODES): Update.
90 * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
91 (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
92 (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
93 (fix_truncsfdi_ieee): Likewise.
94 (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
95 (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
96 * config/alpha/alpha-protos.h: Update.
98 2003-10-19 Richard Sandiford <rsandifo@redhat.com>
100 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
101 * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
102 * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
105 2003-10-18 Kazu Hirata <kazu@cs.umass.edu>
107 * doc/extend.texi: Fix typos.
108 * doc/invoke.texi: Likewise.
110 2003-10-18 Nicolas Pitre <nico@cam.org>
112 * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
113 XScale optimizations not arm_arch_xscale.
114 * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
116 2003-10-18 Ulrich Weigand <uweigand@de.ibm.com>
118 * config/s390/s390-protos.h (shift_count_operand): Add prototype.
119 * config/s390/s390.c (shift_count_operand): New function.
120 (s390_extra_constraint): Use it to implement 'Y' constraint.
121 (print_shift_count_operand): New function.
122 (print_operand): Use it to implement '%Y'.
123 * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
124 (PREDICATE_CODES): Add shift_count_operand.
125 * config/s390/s390.md ("rotldi3"): Merge alternatives,
126 using "shift_count_operand" predicate and "Y" constraint,
127 and "%Y" to output the combined shift count.
128 ("rotlsi3"): Likewise.
129 ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
130 ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
131 "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
132 ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
133 ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
134 ("lshrsi3"): Likewise.
136 2003-10-18 Gunther Nikl <gni@gecko.de>
138 * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
139 argument to asm_fprintf statement.
141 2003-10-18 Fariborz Jahanian <fjahanian@apple.com>
143 * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
144 (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
145 a "long long" argument.
147 2003-10-18 Alexandre Oliva <aoliva@redhat.com>
149 * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
152 2003-10-18 Richard Sandiford <rsandifo@redhat.com>
154 * rtl.h (rtl_size): Declare.
155 (rtunion): Remove rtwint.
156 (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
157 (RTX_HDR_SIZE, RTX_SIZE): New macros.
158 (RTL_CHECK1): Adjust for new rtx_def layout.
159 (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
160 (XWINT, XCWINT): Likewise. Access the rtx structure directly.
163 * rtl.def: Adjust comments for new rtx_def layout.
164 * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
166 * rtl.c (rtx_size): New array.
167 (rtx_alloc): Adjust call to ggc_alloc_rtx. Use RTX_HDR_SIZE.
168 (copy_rtx): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
169 (shallow_copy_rtx): Adjust call to ggc_alloc_rtx. Use RTX_SIZE.
170 * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
171 * emit-rtl.c (copy_most_rtx): Likewise.
172 (copy_rtx_if_shared): Use RTX_SIZE.
173 (copy_insn_1): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
174 * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call. Use RTX_HDR_SIZE.
175 * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
176 (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
177 an array. Adjust output for new rtx_def layout.
178 * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
179 * reload1.c (eliminate_regs): Use RTX_SIZE.
180 * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
181 * gdbinit.in (pi): Likewise.
183 2003-10-18 Jan Hubicka <jh@suse.cz>
185 * integrate.c (copy_decl_for_inlining): Revert previous patch.
187 2003-10-18 Jan Hubicka <jh@suse.cz>
189 * integrate.c (copy_decl_for_inlining): Fix copying of copies.
191 2003-10-18 Roger Sayle <roger@eyesopen.com>
193 * libgcc.texi: Group multi-word types, such as "long double" and
194 "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
195 Document __unord?f2 as returning a non-zero value, not just one.
197 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
199 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
200 ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
202 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
204 * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
207 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
209 * config/sparc/sparc.c (function_arg_record_value_1): New fourth
210 parameter packed_p. Search for a DECL_PACKED field only if
211 packed_p is false. Pass packed_p recursively.
212 (function_arg_record_value_2): Likewise.
213 (function_arg_record_value): Update calls to
214 function_arg_record_value_1 and function_arg_record_value_2.
216 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
218 * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
219 was successfully forced to memory before using the result.
221 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
224 * config/i386/i386.md (*movsi_zero): New insn to set
225 a register to zero on TARGET_USE_MOV0 targets.
227 2003-10-18 Kelley Cook <kcook@gcc.gnu.org>
229 * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
230 (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
232 2003-10-17 David Edelsohn <edelsohn@gnu.org>
234 * doc/invoke.texi (gcse-las): Fix typo.
236 2003-10-17 Andrew Pinski <pinskia@physics.uc.edu>
238 * doc/install.texi: Remove first part of the sentence for
239 zsh not working. Change gcc to GCC.
242 * doc/install.texi: Document that zsh does not work when
245 2003-10-17 Nathanael Nerode <neroden@gcc.gnu.org>
247 * config/ptx4.h: Switch to DWARF 2; update comments.
249 2003-10-17 Segher Boessenkool <boessen@de.ibm.com>
250 Hartmut Penner <hpenner@de.ibm.com>
252 PR 10404, partial 11591, partial 11601
253 * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
254 "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
255 "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
256 "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
257 "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
258 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
259 (altivec_expand_stv_builtin): Adjust for the memory_operand.
260 (altivec_expand_builtin): Call altivec_expand_lv_builtin.
261 (altivec_init_builtins): Use `long int' for memory offsets.
263 2003-10-17 Jan Hubicka <jh@suse.cz>
265 * opts.c (common_handle_option): Handle OPT_fweb
266 * invoke.texi (-fweb): Add missing parts of documentation.
268 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
270 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
273 2003-10-17 Mostafa Hagog <mustafa@il.ibm.com>
275 * common.opt: Add description of the new -fgcse-las flag.
276 * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
277 * gcse.c (hash_scan_set): Handle the case of store expression and
278 insert the memory expression to the hash table, this way we make it
279 possible to discover redundant loads after stores and remove them.
280 (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
281 to pre_insert_copies, it is not the correct place to call it after
282 adding stores to be in the available expression hash table.
283 (pre_insert_copies): Added the call to update_ld_motion_stores when
284 one or more copies were inserted.
285 * opts.c (common_handle_option): Handle the -fgcse-las flag.
286 * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
288 * doc/invoke.tex: Document new -fgcse-las flag.
290 2003-10-18 Alan Modra <amodra@bigpond.net.au>
292 * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
293 for posterity, then remove it.
295 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
296 Nathan Sidwell <nathan@codesourcery.com>
298 * config/arm/arm.c (use_return_insn): Not a single instruction, if
299 there's a frame pointer.
300 (arm_output_epilogue): Protect stack pointer from being corrupted
303 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
305 * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
307 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
309 * combine.c (simplify_set): Do not clear out undobuf.other_insn
310 already set elsewhere.
312 2003-10-17 Kelley Cook <kcook@gcc.gnu.org>
314 * config/i386/i386.c (ix86_expand_prologue): Use
315 gen_allocate_stack_worker.
317 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
319 * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
321 (mips-sgi-irix6*): Likewise.
323 * config/mips/iris6gas.h: New file.
324 * gcc/config.gcc (mips-sgi-irix6*): Use it.
326 * config/mips/mips.h (TARGET_IRIX): Provide default.
327 (TARGET_IRIX5): Likewise.
328 (TARGET_SGI_O32_AS): Likewise.
329 * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
330 (TARGET_IRIX5): Likewise.
331 * config/mips/iris6.h (TARGET_IRIX6): Remove.
332 (TARGET_IRIX5): Redefine as 0.
334 * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
335 linker workaround with TARGET_IRIX and mips_abi instead of
336 ASM_OUTPUT_UNDEF_FUNCTION.
337 (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
338 testing TARGET_IRIX and mips_abi explicitly.
339 * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
340 * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
342 * config/mips/mips.c (irix_output_external_libcall): Renamed from
343 mips_output_external_libcall.
344 Use new TARGET_IRIX in guard.
345 * config/mips/mips-protos.h (irix_output_external_libcall): Match
347 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
349 * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
352 * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
353 depending on mips_abi.
354 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
355 * config/mips/mips.c (mips_output_function_prologue): Test
356 FUNCTION_NAME_ALREADY_DECLARED at runtime.
357 (mips_output_function_epilogue): Likewise.
358 (build_mips16_function_stub): Likewise.
359 (build_mips16_call_stub): Likewise.
360 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
363 * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
364 IRIX 6 O32 assembler.
365 (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
366 (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
367 _MIPS_SIM for O32 ABI.
368 (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
369 (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
370 (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
371 Integrate O32 version.
372 (SUBTARGET_ASM_SPEC): Handle -mabi=32.
373 (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
375 (BSS_SECTION_ASM_OP_32): Define.
376 (BSS_SECTION_ASM_OP_64): Likewise.
377 (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
379 (TARGET_ASM_NAMED_SECTION): Reflect renaming.
380 Move up to allow override for O32 ABI without GNU as.
381 (EH_FRAME_SECTION_NAME): Define explicitly.
382 (MUST_USE_SJLJ_EXCEPTIONS): Define.
383 [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
384 DTORS_SECTION_ASM_OP): Dummy definitions.
385 (TARGET_ASM_NAMED_SECTION): Undef statically.
386 (EH_FRAME_SECTION_NAME): Likewise.
387 (ASM_OUTPUT_FILENAME): Integrate mips.h version.
388 (LINK_SPEC): Only use default options -call_shared -no_unresolved
390 Don't pass -init, -fini with -mabi=32.
391 (COLLECT_PARSE_FLAG): Define.
393 * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
395 Renamed to use irix_ prefix.
396 (iris6_asm_named_section): Likewise.
397 (iris_section_align_entry_eq): Likewise.
398 (iris_section_align_entry_hash): Likewise.
399 (iris6_file_start): Likewise.
400 (iris6_section_align_1): Likewise.
401 (iris6_file_end): Likewise.
402 (iris6_section_type_flags): Likewise.
403 (iris_section_align_htab): Likewise.
404 (iris_orig_asm_out_file): Likewise.
405 [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
406 (TARGET_ASM_FILE_END): Likewise.
407 (TARGET_SECTION_TYPE_FLAGS): Likewise.
409 * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
410 (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
411 override_options instead.
412 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
413 (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
414 * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
415 flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
417 Likewise for constructor/destructor handling.
418 (override_options): Handle IRIX O32 assembler quirks.
419 [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
421 (mips_file_start): Use new TARGET_IRIX.
422 (mips_declare_object_name): No special processing for IRIX O32
424 (mips_finish_declare_object): Likewise.
425 (irix_asm_output_align): Renamed from iris6_asm_output_align.
426 Don't record alignment for O32 ABI.
427 (irix_file_start): Renamed from iris6_file_start.
428 Return early for O32 ABI.
429 (irix_file_end): Renamed from iris6_file_end.
430 Don't emit .section directives for O32 ABI.
431 * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
432 * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
434 * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
435 (MULTILIB_OSDIRNAMES): Likewise.
437 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
439 * collect2.c (COLLECT_PARSE_FLAG): Provide default.
441 * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
443 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
445 * arm-modes.def (CC_Nmode): New condition code mode.
446 * arm.c (thumb_condition_code): Delete.
447 (arm_select_cc_mode): Handle single-bit test for Thumb.
448 (arm_print_operand, cases 'd' and 'D'): Don't special case the
449 condition code logic for Thumb.
450 (get_arm_condition_code): Handle CC_Nmode.
451 (thumb_cbrch_target_operand): New function.
452 * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
453 * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
454 * arm.md: Add Thumb split patterns for zero_extract and
456 (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
457 (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
458 (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
459 (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
460 (cbranchne_decr1): Re-work to use CC_Nmode.
462 * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
463 by the return instruction. Add a use of the link register if it
466 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
468 * flow.c (init_propagate_block_info): Don't abort if a conditional
469 jump is not a comparison of a register. Instead, just don't record
470 conditional life information.
472 2003-10-16 Jan Hubicka <jh@suse.cz>
474 PR optimization/12630
475 * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
476 for operands 7 and 8.
478 2003-10-16 Kelley Cook <kcook@gcc.gnu.org>
480 * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
482 2003-10-16 Danny Smith <dannysmith@users.sourceforge.net>
484 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
486 * config/i386/winnt.c (gen_stdcall_suffix): Make static
487 (gen_fastcall_suffix): Likewise.
488 (i386_pe_dllexport_p): Likewise.
489 (i386_pe_dllimport_p): Likewise.
490 (i386_pe_mark_dllexport): Likewise.
491 (i386_pe_mark_dllimport): Likewise.
492 (i386_pe_asm_named_section): Fix formatting.
494 2003-10-16 Zack Weinberg <zack@codesourcery.com>
496 * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
497 * system.h: Declare snprintf if necessary.
498 * configure, config.in: Regenerate.
500 2003-10-15 David Edelsohn <edelsohn@gnu.org>
502 * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
503 arguments if TARGET_ALTIVEC_ABI.
505 2003-10-15 Roger Sayle <roger@eyesopen.com>
507 * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
508 fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
509 fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
511 (expand_builtin_memcpy): Use integer_zerop instead of testing
512 host_integerp and tree_low_cst directly. Move misapplied hunk
513 for optimization wher SRC and DEST point to the same location.
514 (expand_builtin_mempcpy): From here.
515 (expand_builtin_memmove): Use integer_zerop instead of testing
516 host_integerp and tree_low_cst_directly.
517 (expand_builtin_memset): Likewise.
518 (expand_builtin_memcmp): Likewise (and for integer_onep).
519 (expand_builtin_strncmp): Likewise.
520 (fold_builtin): Call the appropriate fold_builtin_foo functions
521 to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
524 2003-10-15 Geoffrey Keating <geoffk@apple.com>
526 * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
527 prototype. Clean up some whitespace.
528 * config/darwin.c: Use gen_rtx_FOO (...) rather than
530 (machopic_non_lazy_ptr_name): Make static.
531 (name_needs_quotes): Allow '.' and '$' unquoted.
532 (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
535 2003-10-15 Gábor Lóki <alga@rgai.hu>
537 * fold-const.c (tree_swap_operands_p): Disable some features
538 when optimizing for size.
540 2003-10-15 David Daney <ddaney@avtrex.com>
542 * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
543 * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
545 (DWARF_FRAME_RETURN_COLUMN): Ditto.
546 (SIGNAL_UNWIND_RETURN_COLUMN): New, used
547 by MD_FALLBACK_FRAME_STATE_FOR.
548 * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
550 2003-10-15 Zack Weinberg <zack@codesourcery.com>
552 * genmodes.c: Include hashtab.h.
553 (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
554 (adj_bytesize, adj_alignment, adj_format, new_adjust)
555 (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
556 (print_maybe_const_decl, emit_mode_adjustments): New.
557 (known_modes): Rename to modes.
558 (find_mode): Kill class argument; look up in hash table.
559 (new_mode): Insert into hash table also.
561 (reset_float_format, make_partial_integer_mode)
562 (make_vector_mode): Tweak error reporting.
563 (reset_float_format): Correct type of fourth argument.
564 (emit_insn_modes_h): Add #defines to help make mode_size,
565 mode_base_align, and real_format_for_mode conditionally const.
566 (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
567 (emit_real_format_for_mode): Likewise, but temporarily disabled.
568 (emit_insn_modes_c): Call emit_mode_adjustments.
569 (main): Initialize modes_by_name.
570 * Makefile.in: Update dependencies.
571 * machmode.def: Document EXPR arguments and new ADJUST_* statements.
572 * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
573 declarations of mode_size and mode_base_align. Declare
574 init_adjust_machine_modes.
575 * toplev.c (backend_init): Call init_adjust_machine_modes.
577 2003-10-15 Olivier Hainque <hainque@act-europe.fr>
579 * genmodes.c (calc_wider_mode): Allocate enough room for all the
580 entries we'll possibly assign in the sort buffer.
582 2003-10-15 Ulrich Weigand <uweigand@de.ibm.com>
584 * config.gcc (s390x-ibm-tpf*): New target.
585 * doc/install.texi: Document it.
586 * config/s390/t-tpf: New file.
587 * config/s390/tpf.h: New file.
589 2003-10-15 Hans-Peter Nilsson <hp@axis.com>
592 * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
593 (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
594 Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
595 ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
596 (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
597 (define_split "*mov_sidesi_mem"+28, +29, +30): Use
598 replace_equiv_address, not gen_rtx_MEM.
599 * config/cris/cris.c (cris_mem_op): New match_operator function.
600 (cris_notice_update_cc): Use replace_equiv_address, not
602 * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
604 2003-10-15 Bernardo Innocenti <bernie@develer.com>
606 * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
607 MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
608 definitions after the other flags.
610 2003-10-14 Ziemowit Laski <zlaski@apple.com>
612 * c-parse.in (methoddef, methodproto): Call objc_add_method()
613 instead of add_method().
614 * objc/objc-act.c (objc_check_decl): Do not check for
615 constant_string_type.
616 (add_method): Rename to objc_add_method().
617 (really_start_method): Call objc_add_method() instead of
619 * objc/objc-act.h (add_method): Rename to objc_add_method().
621 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
623 * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
624 (s390_slb_comparison): Likewise.
625 * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
627 * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
628 and s390_slb_comparison.
629 * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
631 ("*adddi3_31z", "*subdi3_31z"): New insns.
632 ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
633 "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
636 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
638 * configure.in: Clean up some feedback echoes.
639 * configure: Regenerate.
641 * aclocal.m4: Properly quote names of macros being defined.
643 * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
645 2003-10-14 Steve Ellcey <sje@cup.hp.com>
647 * config/ia64/ia64.c (ia64_expand_call): Force function address
649 * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
651 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
653 * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
654 "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
655 ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
656 "*divsf3_ibm"): Likewise.
658 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
660 * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
661 target_alias with target_noncanonical.
663 2003-10-14 Geoffrey Keating <geoffk@apple.com>
665 * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
666 and add case for machines where outgoing register parameters
669 * config/darwin.c (machopic_indirect_data_reference): Use a scratch
670 register when generating indirect address.
672 2003-10-14 Richard Earnshaw <rearnsha@arm.com>
674 * arm.c (arm_addimm_operand): MODE arguemnt is unused.
675 * arm.md (cbranchne_decr1): Fix bootstrap warning.
677 2003-10-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
679 * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
680 * fixinc/fixincl.x: Regenerate.
681 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
683 Fixes PR bootstrap/9330.
685 2003-10-13 Eric Christopher <echristo@redhat.com>
687 * config/frv/frv.c (frv_adjust_field_align): Redo check for
689 (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
690 * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
691 (SBSS_SECTION_ASM_OP): Remove.
692 (EXTRA_SECTIONS): Remove in_sbss.
693 (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
694 (SBSS_SECTION_FUNCTION, sbss_section): Remove.
695 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
698 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
700 * Makefile.in, configure.in, config.host, mkheaders.in: Replace
701 uses of ${target_alias} for directory names (and other places which
702 won't like the empty string) with ${target_noncanonical}. Introduce
703 call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
705 * configure: Regenerate.
707 2003-10-13 Ian Lance Taylor <ian@wasabisystems.com>
709 * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
710 * config/arm/arm.md: For splits which rely on conditional moves,
711 remove ! TARGET_IWMMXT condition.
713 2003-10-13 David S. Miller <davem@redhat.com>
715 * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
716 (find_cond_trap): Always increment if we emit a conditional
719 2003-10-13 Zack Weinberg <zack@codesourcery.com>
721 * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
722 with min-insn-modes.o.
723 (STAGESTUFF): Add min-insn-modes.c.
724 (genobjs): Add genmodes.o.
725 (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
726 (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
727 (min-insn-modes.c, min-insn-modes.o): New rules.
728 (s-modes): Also generate min-insn-modes.c.
729 ($(BUILD_PREFIX_1)insn-modes.o): Kill.
730 * genmodes.c (struct mode_data): Add format field.
731 (blank_mode, validate_mode, complete_mode): Update to match.
732 (make_scalar_mode): Separate into make_int_mode and make_float_mode.
733 (_SCALAR_MODE): Kill.
734 (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
735 (emit_insn_modes_c_header): Adjust.
736 (emit_min_insn_modes_c_header, emit_real_format_for_mode)
737 (emit_min_insn_modes_c): New functions.
738 (emit_insn_modes_c): Call emit_real_format_for_mode.
739 (main): Add -m option to generate min-insn-modes.c.
740 * machmode.h: Update documentation. Add format argument to
741 all uses of FLOAT_MODE.
742 * real.c: Don't define real_format_for_mode here.
744 * dwarfout.c: Move default definition of PRINT_REG...
745 * defaults.h: ...here.
746 * print-rtl.c: Include tm_p.h.
747 (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
749 (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG. But surround
750 this entire block with #ifndef GENERATOR_FILE.
751 * regclass.c: Unconditionally define reg_names.
752 * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
753 Don't define DEBUG_REGISTER_NAMES.
754 * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
755 redefinition of REGISTER_NAMES.
756 * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
758 * combine.c: Change all preprocessor conditionals on
759 EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
761 * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
762 * configure.in: Don't define EXTRA_CC_MODES.
763 * configure, config.in: Regenerate.
764 * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
766 * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
767 May assume that GET_MODE_CLASS is accurate for extra CC modes
770 * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
771 number of arguments to aggregate_value_p.
773 * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
774 * machmode.def: Explain ARCH-modes.def. Document
775 RESET_FLOAT_FORMAT. Improve commentary on various mode
776 clusters. Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
777 XF, or TF modes here. Remove backward-compatibility
780 * config/alpha/alpha-modes.def: New file; define TF mode.
781 * config/arc/arm-modes.def: Define XF mode.
782 * config/c4x/c4x-modes.def: Define QF and HF modes. Unset
783 float format for SF and DF modes.
784 * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
785 * config/i386/i386-modes.def: Define XF and TF modes.
786 * config/i960/i960-modes.def: Define TF mode.
787 * config/ia64/ia64-modes.def: Define TF and OI modes.
788 * config/m68k/m68k-modes.def: New file; define XF mode.
789 * config/mips/mips-modes.def: New file; define TF mode, reset
790 formats for SF and DF modes.
791 * config/pa/pa-modes.def: Define TF mode.
792 * config/rs6000/rs6000.c: Define TF and PSI modes.
793 * config/s390/s390-modes.def: Define OI mode.
794 * config/sh/sh-modes.def: New file; define PSI mode.
795 * config/sparc/sparc-modes.def: Define TF mode.
796 * config/vax/vax-modes.def: New file; reset formats for SF and
799 * config/c4x/c4x.c (c4x_override_options): No need to mess
800 with real_format_for_mode or set REAL_MODE_FORMATs.
801 (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
803 * config/i386/i386.c (override_options): No need to set
804 REAL_MODE_FORMATs here.
805 * config/i960/i960.c (i960_initialize): Likewise.
806 * config/m68k/m68k.c (m68k_override_options): Likewise.
807 * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
808 for TFmode only if not the default.
809 * config/mips/mips.c (override_options): Likewise.
810 * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
811 DFmode only if not the default.
813 * config/i370/i370.h (RET_REG): Don't consider TFmode.
814 * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
815 * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
816 of modes that don't appear anywhere in the machine description.
818 * config/arc/arc-modes.def, config/arm/arm-modes.def
819 * config/c4x/c4x-modes.def, config/frv/frv-modes.def
820 * config/i386/i386-modes.def, config/i960/i960-modes.def
821 * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
822 * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
823 * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
824 * config/sparc/sparc-modes.def: Convert to new style for
825 declaring extra CC modes.
827 2003-10-13 Zack Weinberg <zack@codesourcery.com>
829 * cpplex.c (_cpp_clean_line): In the common case of a line
830 with no trigraphs and no \-newline, avoid writing to memory.
831 (_cpp_skip_block_comment): Use a local 'cur' pointer instead
832 of the buffer member. Make c an uchar to avoid unnecessary
835 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
837 * configure.in: Remove unnecessary test.
838 * configure: Regenerate.
840 * configure.in: Fix grammatical error. Move UWIN host error to...
842 * configure: Regenerate.
844 2003-10-13 Andreas Krebbel <krebbel1@de.ibm.com>
846 * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
847 "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
848 of flag_unsafe_math_optimizations.
849 * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
850 "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
851 fused-madd and no-fused-madd.
852 * doc/invoke.texi: Documented the new options fused-madd and
853 no-fused-madd for S/390.
855 2003-10-14 Alan Modra <amodra@bigpond.net.au>
857 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
858 MASK_ALIGN_NATURAL if rs6000_alignment_string not given. Don't
860 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
861 * config/rs6000/rs6000.c: Formatting.
862 (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
863 when rs6000_alignment_string given.
865 2003-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
868 * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
869 (sparc_flat_must_save_register_p): New function to decide whether
870 a register must be saved/restored in the function prologue/epilogue.
871 (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
873 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
875 * config/avr/avr.c, config/avr/avr-protos.h: Convert to
876 ISO C90 function declarations and definitions.
877 * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
879 2003-10-12 Nathanael Nerode <neroden@gcc.gnu.org>
881 * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
882 config files which do the same thing.
883 * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
884 config/freebsd6.h: Remove now unnecessary files.
886 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
888 * c-common.c (c_common_truthvalue_conversion): Warn if the
889 address of a non-weak function is used as a truth value.
891 2003-10-12 Kazu Hirata <kazu@cs.umass.edu>
893 * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
895 * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
896 instead of a literal.
898 2003-10-12 Hans-Peter Nilsson <hp@bitrange.com>
900 * doc/extend.texi (Function Attributes): Mention the exceptional
901 path for noreturn-marked functions.
903 2003-10-12 Jan Hubicka <jh@suse.cz>
905 * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
908 2003-10-12 Danny Smith <dannysmith@users.sourceforge.net>
910 * config/i386/i386.c (x86_this_parameter): Fix typo.
912 2003-10-11 Jan Hubicka <jh@suse.cz>
914 * Makefile.in (web.o): New.
916 * rtl.h (web_main): Declare.
917 * timervar.def (TV_WEB): New.
918 * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
919 (rest_of_hanle_web): New.
920 (flag_web): New static variable.
921 (lang_independent_options): Add "web".
922 (rest_of_compilation): Call rest_of_handle_web.
923 * invoke.texi (-fweb): Document.
924 * common.opt (fweb): New.
925 * flags.h (flag_web): New.
926 * opts.c (decode_options): Set flag_web at -O3.
928 * passes.texi (web construction): Document.
929 * invoke.texi (-O3): Document that -fweb is enabled.
931 * regrename.c (regrename_optimize): Deal better with situation when
934 * sched-ebb.c: Include params.h and profile.h
935 (schedule_ebbs): Use tracer parameters to discover superblocks
936 * Makefile.in (sched-ebb.o): Add dependencies.
938 2003-10-11 Roger Sayle <roger@eyesopen.com>
940 * fold-const.c (negate_mathfn_p): New function to determine whether
941 a built-in mathematical function is sign preserving, f(-x) == -f(x).
942 Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
943 (tree_swap_operands_p): Change API to take an additional argument
944 indicating that the swapped operands evaluate in reverse order.
945 Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
946 operand side-effects or we don't care about flag_evaluation_order.
947 (reorder_operands_p): New function to check whether its safe to
948 evaluate the given operands in reverse order.
949 (negate_expr_p): We can always negate integer constants unless
950 we honor -ftrapv and the signed type would overflow. Only allow
951 -(A-B) into B-A if reorder_operands_p says that its OK. Allow
952 negation of COMPLEX_CST if both real and imaginary parts can be
953 negated. Allow negation through floating point extensions and
954 sign-preserving built-in functions.
955 (negate_expr): Move the code to negate integers from "fold" to
956 here. Always negate integer constants unless we honor -ftrapv
957 and the signed type would overflow. Always negate real constants
958 unless we honor -ftrapping-math. Only convert -(A-B) into B-A
959 if allowed by reorder_operands_p. Add support for COMPLEX_CST.
960 Optimize negation through floating point extensions and
961 sign-preserving built-in functions (as defined by negate_mathfn_p).
962 (fold): Adjust calls to tree_swap_operands_p.
963 (fold <NEGATE_EXPR>): Move the remaining negation optimizations
964 to negate_expr_p/negate_expr.
965 (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
966 allowed to convert (-A) - B into (-B) - A.
968 2003-10-11 Roger Sayle <roger@eyesopen.com>
970 * builtins.c (expand_builtin_strcmp): Defend against the possibility
971 that gen_cmpstrsi may fail: Stabilize the argument list against
972 re-evaluation and expand the library call directly using this saved
973 argument list if a cmpstrsi sequence can't be generated.
974 (expand_builtin_strncmp): Likewise.
976 * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
978 2003-10-11 Roger Sayle <roger@eyesopen.com>
980 PR optimization/12260
981 * simplify-rtx.c (simplify_unary_operation): Simplify all unary
982 operations through CONST nodes. Optimize (neg (plus X C)) as
983 (minus -C X) for constant values C.
984 (simplify_binary_operation): Optimize (minus (neg X) C) as
985 (minus -C X) for constant values C.
986 (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
987 instead create (minus -C X).
989 2003-10-11 Roger Sayle <roger@eyesopen.com>
991 * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
992 safe_from_p for us, once it chooses an evaluation order.
993 (expand_expr <MULT_EXPR>): Likewise.
994 (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise. If expand_operands
995 places the second operand in "target", swap the operands.
996 (do_store_flag): Let expand_operands call safe_from_p for us.
998 2003-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
1000 PR optimization/12544
1001 * function.c (put_var_into_stack): Don't generate ADDRESSOFs
1002 for DECL_NONLOCAL decls.
1004 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
1006 * expr.c: Follow spelling conventions.
1007 * final.c: Likewise.
1008 * optabs.c: Likewise.
1009 * sched-deps.c: Likewise.
1010 * sdbout.c: Likewise.
1012 Sat Oct 11 12:24:23 CEST 2003 Jan Hubicka <jh@suse.cz>
1014 * varasm.c (notice_global_symbol): Fix handling of variables; avoid
1015 re-computing of variable.
1017 2003-10-11 Richard Henderson <rth@redhat.com>
1019 * config/alpha/alpha.c (alpha_return_in_memory): Rename from
1020 return_in_memory, make static, change signature to match target hook.
1021 (alpha_setup_incoming_varargs): Make static, change signature to
1022 match target hook, add code for vms and unicos.
1023 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
1024 TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
1025 TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
1026 TARGET_STRICT_ARGUMENT_NAMING,
1027 TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
1028 * config/alpha/alpha-protos.h: Update.
1029 * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
1030 PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
1031 SETUP_INCOMING_VARARGS): Remove.
1032 * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
1033 * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
1035 2003-10-11 Ian Lance Taylor <ian@wasabisystems.com>
1037 * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
1039 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
1041 * config/m68k/lb1sf68.asm: Follow spelling conventions.
1042 * config/m68k/m68k.c: Likewise.
1043 * config/m68k/m68k.h: Likewise.
1044 * config/m68k/m68k.md: Likewise.
1046 2003-10-11 Roger Sayle <roger@eyesopen.com>
1048 * builtins.c (expand_builtin_memcpy): Optimize case when the two
1049 pointer arguments are the equal, non-volatile and side-effect free.
1050 (expand_builtin_mempcpy): Likewise.
1051 (expand_builtin_memmove): Likewise.
1052 (expand_builtin_strcpy): Likewise.
1053 (expand_builtin_memcmp): Likewise.
1054 (expand_builtin_strcmp): Likewise.
1055 (expand_builtin_strncmp): Likewise.
1057 2003-10-11 Roger Sayle <roger@eyesopen.com>
1059 * combine.c (apply_distributive_law): Enable "distributive" floating
1060 point optimizations with -funsafe-math-optimizations.
1062 2003-10-11 Andrew Pinski <pinskia@physics.uc.edu>
1064 * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
1066 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
1068 * config/m68k/m68k-protos.h: Remove the prototype for
1071 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
1073 * config/m68k/m68k.c: Fix comment typos.
1075 2003-10-11 Bernardo Innocenti <bernie@develer.com>
1077 * config/m68k/m68k-protos.h (use_return_insn): Change return type from
1079 * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
1080 (current_frame): New global var.
1081 (m68k_compute_frame_layout): Cache computations in current_frame.
1082 (m68k_initial_elimination_offset): Use values from current_frame
1083 instead of recomputing them.
1084 (use_return_insn): Likewise.
1085 (m68k_output_function_prologue): Likewise.
1086 (m68k_output_function_epilogue): Likewise.
1087 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
1088 inside the block for __pic__.
1090 2003-10-11 Peter Barada <peter@baradas.org>
1091 Bernardo Innocenti <bernie@develer.com>
1093 * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
1094 (m68k_save_reg): Add boolean parameter `interrupt_handler'.
1095 (m68k_interrupt_function_p): New function.
1096 (m68k_handle_fndecl_attribute): Ditto.
1097 (m68k_compute_frame_layout): Ditto.
1098 (m68k_attribute_table): Define back-end specific attributes.
1099 (m68k_output_function_epilogue): Emit RTE instruction for interrupt
1102 2003-10-11 Bernardo Innocenti <bernie@develer.com>
1104 * config/m68k/t-uclinux: New target Makefile fragment.
1105 * config/m68k/uclinux.h: New target macro file.
1106 * config.gcc (m68k-*-uclinux): New target definition.
1108 2003-10-10 Roger Sayle <roger@eyesopen.com>
1110 * builtins.c (builtin_mathfn_code): Generalize to check whether
1111 the call is to any built-in function by comparing the call's
1112 argument list against the builtin decl's function type.
1114 2003-10-10 Roger Sayle <roger@eyesopen.com>
1116 * cse.c (constant_pool_entries_regcost): New global variable to
1117 hold the register cost component of constant_pool_entries_cost.
1118 (fold_rtx): Calculate constant_pool_entries_regcost at the same
1119 time as constant_pool_entries_cost.
1120 (cse_insn): Set both src_folded_cost and src_folded_regcost from
1121 constant_pool_entries_cost and constant_pool_entries_regcost.
1122 (cse_main): Initialize constant_pool_entries_regcost to zero.
1124 * optabs.c (expand_unop): Attach a REG_EQUAL note describing
1125 the semantics of the sequence of bit operations used to negate
1126 a floating-point value.
1127 (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
1128 the semantics of the bit operations used to abs a floating point
1131 2003-10-11 Bernardo Innocenti <bernie@develer.com>
1132 Paul Dale <pauli@snapgear.com>
1134 * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
1136 * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
1137 -fpic, -fPIC, -msep-data and -mid-shared-library.
1138 * config/m68k/m68k.c (m68k_library_id_string): New global variable.
1139 (override_options): Add -msep-data and -mshared-library-id support.
1140 (m68k_output_function_prologue): Generate code to load A5 for
1141 TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
1142 (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
1143 (m68k_output_pic_call): New function.
1144 * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
1145 (TARGET_ID_SHARED_LIBRARY): Ditto.
1146 (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
1147 * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
1148 (call_value): Likewise.
1150 2003-10-10 Zack Weinberg <zack@codesourcery.com>
1152 * gengenrtl.c (find_formats, genheader): Make i an unsigned
1153 int, remove cast of NUM_RTX_CODE.
1154 * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
1155 entire file. Remove the #ifs on GET_MODE_MASK etc and
1156 GET_MODE_WIDER_MODE etc.
1158 2003-10-10 Eric Christopher <echristo@redhat.com>
1160 * lcm.c (optimize_mode_switching): Change NORMAL_MODE
1161 to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
1163 * config/sh/sh.h (MODE_ENTRY): New macro.
1165 (MODE_AFTER): Ditto.
1166 * config/sh/sh.md: Change for MODE_AFTER. Add
1168 * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
1170 2003-10-10 Zack Weinberg <zack@codesourcery.com>
1172 * genmodes.c, mode-classes.def: New files.
1173 * machmode.def: Rewritten to genmodes.c interface.
1174 * Makefile.in (extra_modes_file): New substitution variable.
1175 (MACHMODE_H): No longer includes machmode.def or
1176 @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
1177 (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
1178 (OBJS-common): Add insn-modes.o.
1179 (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
1180 genmodes$(build_exeext).
1181 (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
1182 genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
1183 (s-genrtl): Don't depend on $(RTL_BASE_H).
1184 (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
1185 or $(RTL_BASE_H); just rtl.def.
1186 * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
1187 real.h. Give fake definition of CONST_DOUBLE_FORMAT and
1188 substitute definition of NUM_RTX_CODE. Add casts to avoid
1190 * machmode.h: Include insn-modes.h, not machmode.def. Include
1191 mode-classes.def to define enum mode_class. Tweak definitions
1192 of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
1193 GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
1194 (inner_mode_array): Renamed mode_inner.
1195 (mode_base_align): New.
1196 * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
1197 mode_unit_size, mode_wider_mode, mode_mask_array,
1198 inner_mode_array, class_narrowest_mode): Delete definitions.
1199 * stor-layout.c (get_mode_alignment): Use mode_base_align.
1200 * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
1201 and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
1203 * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
1204 No need to define BITS_PER_UNIT.
1206 2003-10-10 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1208 * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
1209 (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
1210 (ia64_initialize_trampoline): If not using GAS, declare trampoline
1212 * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
1213 (ASM_OUTPUT_DEBUG_LABEL): Likewise.
1215 * stor-layout.c (compute_record_mode): Don't force BLKmode if
1216 field is zero-length BLKmode.
1217 * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
1218 zero-size references.
1220 * combine.c (distribute_links): Properly test for REG being set.
1222 * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
1223 gen_lowpart and company except for REG.
1225 2003-10-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1227 * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
1229 2003-10-10 Nathanael Nerode <neroden@gcc.gnu.org>
1231 * config.gcc (mips*-*-netbsd*): Remove content-free line.
1233 2003-10-10 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
1235 * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
1236 gcov_position_t and gcov_type.
1238 2003-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
1240 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
1241 * configure: Regenerate.
1243 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
1245 * config/h8300/h8300.md (define_asm_attributes): Specify
1246 the length of an asm insn more precisely.
1248 2003-10-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1250 * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
1252 2003-10-09 Bob Wilson <bob.wilson@acm.org>
1254 * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
1255 FP register number to 48 and MAC16 accumulator to 0x210.
1257 2003-10-09 Nathanael Nerode <neroden@gcc.gnu.org>
1259 * config.gcc: Remove redundant thread_file setting clauses for
1260 various *-*-linux* targets.
1262 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
1264 * config/h8300/h8300.md (define_asm_attributes): New.
1266 2003-10-09 Roger Sayle <roger@eyesopen.com>
1268 * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
1269 to the comparison, as emit_libcall_block calls copy_rtx on equiv.
1271 2003-10-09 Dorit Naishlos <dorit@il.ibm.com>
1273 * haifa-sched.c (ok_for_early_schedule): New function.
1274 (early_queue_to_ready): New function.
1275 (schedule_block): Allow early removal of insns from Q.
1276 (schedule_insn): Update INSN_TICK in case of premature
1278 * common.opt (sched_stalled_insns): New flag.
1279 (sched_stalled_insns_dep): New flag.
1280 * flags.h: Same above flags.
1281 * opts.c: Same as above.
1282 * toplev.c: Same as above.
1283 * target.h (targetm.sched.is_costly_dependence): New
1285 * target-def.h: Same as above.
1286 * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
1287 Support new flag -msched-costly-dep.
1288 (DEFAULT_SCHED_COSTLY_DEP): Define.
1289 * config/rs6000/rs6000.c:
1290 (rs6000_is_costly_dependence): New function.
1291 (is_load_insn, is_store_insn): New functions.
1292 (is_load_insn1, is_store_insn1, is_mem_ref): New
1294 * doc/invoke.texi (-fsched-stalled-insns-dep)
1295 (-fsched-stalled-insns, -msched-costly-dep): Document
1297 * doc/tm.texi (is_costly_dependence): Define new
1298 scheduler target hook.
1300 2003-10-09 Jason Merrill <jason@redhat.com>
1303 * c-common.c (c_build_qualified_type): Look through arrays first.
1304 (c_apply_type_quals_to_decl): Look through arrays.
1306 * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
1307 types with constructors.
1309 * coverage.c (build_ctr_info_value): Use build_decl to make a
1311 (create_coverage): Likewise.
1313 * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
1315 (expand_asm_operands): Not here.
1316 (parse_input_constraint): No longer static.
1317 * tree.h: Declare it.
1319 2003-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
1321 * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
1323 (SHLIB_INSTALL): Likewise.
1325 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
1327 * doc/install.texi: Remove reference to removed 'pthreads' thread
1330 2003-10-08 Aldy Hernandez <aldyh@redhat.com>
1332 * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
1335 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
1337 * config.gcc: Don't accept --enable-threads=pthreads. Clean
1338 up related case statements.
1339 * configure.in: Don't accept --enable-threads=pthreads,
1340 decosf1, mach, or os2 (none of which work anyway). Alphabetize
1341 supported thread files in case clause.
1342 * configure: Regenerate.
1344 2003-10-08 Geoffrey Keating <geoffk@apple.com>
1346 * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
1347 definition to above SPARC_STACK_BOUNDARY_HACK.
1349 2003-10-08 Jason Merrill <jason@redhat.com>
1351 * c-pretty-print.c (pp_c_postfix_expression)
1352 <COMPOUND_LITERAL_EXPR>: Fix thinko.
1354 2003-10-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1356 * mklibgcc.in: Don't hide undefined or typeless symbols.
1358 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1360 PR optimization/12142
1361 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
1362 uses of the register in the SET_SRC. Remove unnecessary argument.
1363 * pa.c (legitimize_pic_address): Before reload, use a scratch register
1364 for the intermediate result in loading the address of a SYMBOL_REF.
1365 Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn
1366 which loads the SYMBOL_REF address.
1368 2003-10-08 Timo Kokkonen <tjko@iki.fi>
1369 Eric Botcazou <ebotcazou@libertysurf.fr>
1372 * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
1373 to define the size of the extern_C_braces array. Set it to 200.
1374 (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
1376 2003-10-08 Carlo Wood <carlo@alinoe.com>
1378 * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
1379 a space after the -o option. flex 2.5.31 understands both, with
1380 and without the space. Removed that space.
1382 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
1384 * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
1385 (compute_frame_size): Initialize it. Remove the .cprestore slot
1387 (mips_output_function_prologue): Simplify accordingly.
1388 (mips_debugger_offset): Change the mips16 frame pointer offset from
1389 current_function_outgoing_args to cfun->machine->frame.args_size.
1390 (mips_initial_elimination_offset): Likewise.
1391 (mips_expand_prologue): Likewise.
1392 (mips_expand_epilogue): Likewise.
1394 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
1396 * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
1397 (EXTRA_MEMORY_CONSTRAINT): Define.
1398 (CAN_ELIMINATE): Remove lwu workaround.
1399 * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
1400 Use a 'W' constraint for the source operand.
1402 2003-10-08 Kazu Hirata <kazu@cs.umass.edu>
1404 * genopinit.c (main): Output code to declare undefined
1407 2003-10-07 Kelley Cook <kcook@gcc.gnu.org>
1409 * gengtype-lex.l: Remove -Wtraditional cruft.
1410 * Makefile.in (gengtype-lex.c): Likewise.
1412 2003-10-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1414 * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
1416 2003-10-07 Jason Merrill <jason@redhat.com>
1419 * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
1422 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
1424 * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
1426 Fixes PR bootstrap/12173.
1428 2003-10-07 Zack Weinberg <zack@codesourcery.com>
1430 * errors.c: Don't include coretypes.h or tm.h.
1431 (trim_filename): Use IS_DIR_SEPARATOR.
1432 * Makefile.in: Update dependencies of errors.o and
1433 $(BUILD_PREFIX_1)errors.o.
1435 2003-10-07 Geoffrey Keating <geoffk@apple.com>
1437 * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
1438 account when aligning arguments.
1439 * calls.c (STACK_POINTER_OFFSET): Move default from here ...
1440 * defaults.h (STACK_POINTER_OFFSET): ... to here.
1441 * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
1442 it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
1443 (SPARC_STACK_BOUNDARY_HACK): Define.
1444 * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
1445 arrange for vector parameters to varargs functions to be passed
1446 in both memory and GPRs when appropriate.
1447 (rs6000_va_arg): Vector arguments passed in memory are 16-byte
1450 * hooks.c (hook_bool_tree_true): New.
1451 (hook_rtx_tree_int_null): New.
1452 (hook_rtx_rtx_null): Use NULL, not 0.
1453 * hooks.h: Add 'extern' to everything.
1454 (hook_bool_tree_true): New.
1455 (hook_rtx_tree_int_null): New.
1456 * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
1457 * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
1458 * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
1460 * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
1461 (setup_incoming_varargs): Prototype.
1462 (TARGET_PROMOTE_FUNCTION_ARGS): Define.
1463 (TARGET_PROMOTE_FUNCTION_RETURN): Define.
1464 (TARGET_STRUCT_VALUE_RTX): Define.
1465 (TARGET_RETURN_IN_MEMORY): Define.
1466 (TARGET_SETUP_INCOMING_VARARGS): Define.
1467 (TARGET_STRICT_ARGUMENT_NAMING): Define.
1468 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
1469 (init_cumulative_args): Use rs6000_return_in_memory.
1470 (setup_incoming_varargs): Make 'static'.
1471 * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
1472 (PROMOTE_FUNCTION_RETURN): Delete.
1473 (STRUCT_VALUE): Delete.
1474 (RETURN_IN_MEMORY): Delete.
1475 (SETUP_INCOMING_VARARGS): Delete.
1477 2003-10-07 Gerald Pfeifer <gerald@pfeifer.com>
1479 * doc/invoke.texi (Warning Options): Simplify and clarify the
1480 descriptions of -Wnonnull and -Winit-self.
1482 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
1484 * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
1485 indicees for floating-point conversersion libcalls.
1487 2003-10-07 Nathanael Nerode <neroden@gcc.gnu.org>
1489 * Makefile.in: Add more comments separating large conceptually
1492 * configure.in: Clean up thread file logic.
1493 * configure: Regenerate.
1495 2003-10-07 Danny Smith <dannysmith@users.sourceforge.net>
1497 * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
1498 (switch_to_section): Handle in_readonly_data.
1499 * config/i386/winnt.c (i386_pe_asm_named_section): Handle
1502 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
1504 * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
1506 (cbranchne_decr1): New Thumb pattern.
1507 * arm.c (arm_addimm_operand): New insn predicate.
1508 * arm-protos.h: Add a prototype for it.
1509 * arm.h (PREDICATE_CODES): Add it.
1511 2003-10-07 Dorit Naishlos <dorit@il.ibm.com>
1513 * sched-int.h (sched_info): New field
1514 sched_max_insns_priority.
1515 * sched-rgn.c (init_ready_list): Add invocations to
1516 targetm.sched.adjust_priority.
1517 (sched_max_insns_priority): Init new field.
1518 * sched-ebb.c (sched_max_insns_priority): Init new field.
1519 * haifa-sched.c (set_priorities): Set
1520 sched_info->sched_max_insns_priority.
1521 * config/rs6000/rs6000.h:
1522 (rs6000_sched_restricted_insns_priority_str): Support new
1523 flag -mprioritize-restricted-insns.
1524 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
1525 * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
1527 (rs6000_adjust_priority): Change priority of restricted
1528 insns, using above new function and new flag.
1529 * doc/invoke.texi (-mprioritize-restricted-insns): Document
1532 2003-10-07 Zack Weinberg <zack@codesourcery.com>
1534 * expr.c (cmpstr_optab, cmpmem_optab): New.
1535 * genopinit.c: Initialize them.
1536 * optabs.h: Declare them.
1537 * optabs.c (init_optabs): Clear them.
1538 (prepare_cmp_insn): Use cmpstr_optab and cmpmem_optab to find
1539 block memory compare insns, not conditional chains. Restructure
1540 the fallback generation of a call to memcmp/bcmp for better
1543 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
1545 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
1546 (mips_save_restore_fn): New typedef.
1547 (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
1548 (mips_set_frame_expr, mips_frame_set): Move above prologue code.
1549 (save_restore_insns): Remove, replacing with...
1550 (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
1551 (mips_save_reg, mips_restore_reg): New function.
1552 (mips_expand_prologue, mips_expand_epilogue): Rework.
1553 * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
1554 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
1555 (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
1557 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
1559 * config/mips/mips.c (mips_expand_prologue): Remove unused
1560 traversal of function arguments.
1562 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
1564 * doc/invoke.texi: Remove documentation of -mentry.
1565 * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
1566 (override_options, mips_save_reg_p): Remove handling.
1567 (compute_frame_size, mips_output_function_prologue): Likewise.
1568 (mips_expand_prologue, mips_expand_epilogue): Likewise.
1569 * config/mips/mips.h (mips_entry_string): Remove declaration.
1570 (TARGET_OPTIONS): Remove -mentry.
1571 * config/mips/mips16.S: Remove mention of -mentry.
1573 2003-10-06 Zack Weinberg <zack@codesourcery.com>
1575 * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
1576 (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
1577 (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
1578 (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
1579 (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
1580 (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
1581 (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
1582 (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
1583 (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
1584 (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
1585 (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
1586 (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
1587 (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
1588 (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
1589 (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
1590 (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
1591 (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
1592 (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
1593 (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
1594 (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
1595 (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
1596 (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
1597 (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
1598 (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
1599 (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
1600 (fixunstfti_libfunc): Delete.
1601 * optabs.h (struct optab_handlers): Break out of struct optab.
1602 (struct convert_optab, convert_optab, enum convert_optab_index,
1603 convert_optab_table, sext_optab, zext_optab, trunc_optab,
1604 sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
1605 sfloat_optab, ufloat_optab): New.
1606 (set_conv_libfunc): Prototype.
1607 (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
1608 (trunc_optab): Renamed btrunc_optab.
1609 * builtins.c (expand_builtin_mathfn): Update to match.
1610 * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
1611 (convert_optab_table, new_convert_optab, init_convert_optab)
1612 (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
1613 (set_conv_libfunc): New.
1614 (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
1615 (expand_float, expand_fix): Use new conversion optabs,
1616 not old insn code tables or long chains of ifs.
1617 (init_optabs): No need to clear old insn code tables.
1618 Initialize the new optabs, not the old libfunc array entries.
1619 Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
1620 * genopinit.c: Initialize conversion optabs, not the
1621 former insn code tables. Remove unnecessary casts.
1622 Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
1623 * expr.c (convert_move): Remove redundant check that
1624 to_real==from_real. Use the conversion optabs instead
1625 of long chains of tests of modes. Move partial-integer-mode
1626 interconversion above all integer conversion. Do not recurse
1627 on a value forced into a register in the original mode.
1629 * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
1630 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
1631 * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
1632 in new conversion optabs; do not reference the old libfunc
1633 array entries. No need to include libfuncs.h.
1635 2003-10-06 Roger Sayle <roger@eyesopen.com>
1637 * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
1638 point comparison sequence with a REG_EQUAL note that describes
1639 the comparison's semantics.
1641 2003-10-06 Roger Sayle <roger@eyesopen.com>
1643 * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
1644 of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
1646 2003-10-06 Roger Sayle <roger@eyesopen.com>
1647 Zack Weinberg <zack@codesourcery.com>
1649 * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
1650 instruction by using LCT_CONST and then calling emit_libcall_block
1653 2003-10-06 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
1655 PR optimization/11974
1656 * optabs.c (expand_unop): Promote libcall outmode according to
1659 2003-10-06 Zack Weinberg <zack@codesourcery.com>
1661 * real.h (REAL_MODE_FORMAT): New macro.
1662 * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
1663 * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
1664 * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
1665 * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
1666 * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
1667 directly to real_format_for_mode array, wherever possible.
1669 2003-10-06 Devang Patel <dpatel@apple.com>
1671 * dwarf2out.c (is_main_source): Remove variable.
1672 (dwarf2out_start_source_file): Do not check is_main_source.
1673 Do not reset is_main_source.
1674 (dwarf2out_init): Do not initialize is_main_source.
1676 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1678 * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
1679 (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
1680 introduced some multi-line prototypes.
1681 * fixinc/fixincl.x: Regenerate.
1683 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1685 * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
1686 * config/mips/mips.c (stack_operand): New predicate.
1687 * config/mips/mips.md: Use it for the destination of mips16 insns
1690 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1692 * config/mips/mips.md (*lowsi): Renamed from lowsi.
1693 (*lowdi): Likewise lowdi.
1694 (*lowsi_mips16, *lowdi_mips16): New patterns.
1695 * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
1696 mips16 CONSTANT_RELOC handling.
1697 (mips_delegitimize_address): Adjust for new sdata representation.
1699 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1701 * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
1702 skip any remaining register arguments.
1704 2003-10-06 Ulrich Weigand <uweigand@de.ibm.com>
1706 * reload.c (find_reloads_subreg_address): Use correct offset for
1707 paradoxical MEM subregs on big-endian targets.
1709 2003-10-06 Andrew Haley <aph@redhat.com>
1711 * tree.c (get_callee_fndecl): Call
1712 lang_hooks.lang_get_callee_fndecl.
1713 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
1714 (lhd_get_callee_fndecl): New.
1716 2003-10-06 Andrew Pinski <apinski@apple.com>
1718 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
1719 error in calculating the length of the string.
1720 (machopic_stub_name): Likewise.
1722 2003-10-06 Roger Sayle <roger@eyesopen.com>
1724 * optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note
1725 describing the return value of the comparison libcall to the
1726 REG_RETVAL instruction of the emitted sequence.
1728 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1730 PR optimization/12215
1731 * cse.c (cse_set_around_loop): Emit the move at the beginning
1732 of the next basic block for trapping sets.
1734 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1736 PR optimization/11637
1737 * combine.c (adjust_for_new_dest): New function to adjust the
1738 notes and LOG_LINKS when the dest of an insn has changed.
1739 (try_combine): Use it when deleting the first insn of a two-insn
1740 parallel or splitting a two-load parallel.
1742 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1744 * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
1745 if TARGET_EXPLICIT_RELOCS.
1747 2003-10-06 Mark Mitchell <mark@codesourcery.com>
1750 * Makefile.in (info): Use double-colon rules.
1752 (generated-manpages): Likewise.
1753 * configure.in: Do not create lang.info, lang.dvi, or
1754 lang.generated-manpages hooks.
1755 * configure: Regenerated.
1756 * objc/Make-lang.in (objc.info): Remove.
1758 (objc.generated-manpages): Remove.
1759 * doc/sourcebuild.texi: Update description of info, dvi, and
1760 generated-manpages hooks.
1762 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1764 * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
1766 2003-10-05 Andrew Pinski <apinski@apple.com>
1768 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
1769 errors in memcpy destinations.
1770 (machopic_stub_name): Likewise.
1772 2003-10-05 Andrew Pinski <apinski@apple.com>
1774 * config/darwin.c (machopic_non_lazy_ptr_name):
1775 Change strcat to memcpy and add length together.
1776 (machopic_stub_name): Likewise.
1778 2003-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
1780 * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
1781 signal trampoline codes.
1783 2003-10-05 Chris Demetriou <cgd@broadcom.com>
1785 * config/mips/mips.md (*divsf3): Move description of
1786 SB-1 F2 erratum from here to...
1787 (divsf3): Here. Disable if TARGET_FIX_SB1 is set and
1788 flag_unsafe_math_optimizations is not.
1790 2003-10-05 Aldy Hernandez <aldyh@redhat.com>
1792 * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
1793 TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
1795 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1797 * c-pretty-print.c: Fix comment typos.
1798 * c-pretty-print.h: Likewise.
1799 * calls.c: Likewise.
1800 * cfgloopmanip.c: Likewise.
1801 * cgraphunit.c: Likewise.
1802 * cppfiles.c: Likewise.
1803 * final.c: Likewise.
1804 * function.c: Likewise.
1805 * gcov-io.h: Likewise.
1807 * genoutput.c: Likewise.
1809 * postreload.c: Likewise.
1810 * reg-stack.c: Likewise.
1811 * regmove.c: Likewise.
1812 * sched-int.h: Likewise.
1813 * sched-rgn.c: Likewise.
1814 * simplify-rtx.c: Likewise.
1815 * tree-inline.c: Likewise.
1816 * config/m68hc11/m68hc11.h: Likewise.
1817 * config/mmix/mmix.c: Likewise.
1818 * config/mn10300/mn10300.md: Likewise.
1819 * config/sh/sh.h: Likewise.
1821 2003-10-05 Richard Henderson <rth@redhat.com>
1823 * tree-inline.c (remap_type): New.
1824 (remap_decl): Use it. Remap DECL_SIZE*.
1825 (copy_body_r): Use it.
1826 (walk_tree): Walk TREE_TYPE too.
1827 (copy_tree_r): Don't walk subtrees of types.
1828 * tree.c (variably_modified_type_p): Restructure. Consider integer
1829 types with non-const bounds variably modified.
1831 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1833 * doc/invoke.texi: Fix typos.
1835 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1837 * fold-const.c: Follow spelling conventions.
1838 * function.c: Likewise.
1839 * config/c4x/c4x.h: Likewise.
1840 * config/c4x/c4x.md: Likewise.
1841 * config/frv/frv.md: Likewise.
1842 * config/rs6000/aix.h: Likewise.
1843 * config/rs6000/linux64.h: Likewise.
1844 * config/xtensa/xtensa.c: Likewise.
1846 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1848 * c-pretty-print.c: Fix comment formatting.
1849 * cfglayout.c: Likewise.
1850 * cfgloopanal.c: Likewise.
1851 * cppcharset.c: Likewise.
1852 * dbxout.c: Likewise.
1853 * ggc-page.c: Likewise.
1855 * target.h: Likewise.
1857 2003-10-04 Kelley Cook <kelleycook@wideopenwest.com>
1859 * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
1861 2003-10-04 Nathanael Nerode <neroden@gcc.gnu.org>
1863 * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
1864 Convert to ISO C90 function declarations and definitions.
1866 2003-10-04 Zack Weinberg <zack@codesourcery.com>
1869 (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
1870 (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
1871 (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
1872 (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
1873 (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
1874 (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
1875 (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
1876 (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
1877 (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
1878 (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
1879 (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
1880 (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
1881 (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
1882 (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
1883 (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
1884 (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
1886 * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
1887 (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
1888 (le_optab, unord_optab): New.
1890 * optabs.c (prepare_float_lib_cmp): Rewrite. Get the libfuncs
1891 from the code_to_optab table, not a giant switch; use
1892 swap_condition; do widening only if a comparison function that
1893 we can call exists in a wider mode, not if a cmp_optab insn or
1894 libfunc exists in a wider mode; call protect_from_queue
1895 exactly once on each operand.
1896 (init_optabs): Initialize the new optabs, not the deleted libfuncs.
1898 * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
1899 * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
1900 Set floating point comparison libfuncs using set_optab_libfunc
1901 on the appropriate optab.
1903 * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
1904 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
1905 selector conditionals.
1907 2003-10-04 Stephane Carrez <stcarrez@nerim.fr>
1909 * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
1910 identical to m68hc12 as far as libraries are concerned.
1912 2003-10-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1915 * c-typeck.c (convert_for_assignment): Issue an error for
1916 array to pointer assignment after default conversion.
1917 (digest_init): Likewise.
1919 2003-10-04 Fariborz Jahanian <fjahanian@apple.com>
1921 * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
1923 2003-10-03 Gerald Pfeifer <gerald@pfeifer.com>
1925 * doc/extend.texi (Function Attributes): Fix title of GNU C
1926 Preprocessor manual.
1927 (C++ Extensions): Fix reference to "Predefined Macros" in the
1928 GNU C Preprocessor manual.
1930 2003-10-04 Richard Earnshaw <reanrsha@arm.com>
1932 * doc/extend.texi: Document how GCC estimates and relies on the size
1935 2003-10-04 Richard Sandiford <rsandifo@redhat.com>
1937 * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
1938 arguments downward for big-endian o64.
1940 2003-10-03 Robert Bowdidge <bowdidge@apple.com>
1942 * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
1943 PCH generation, avoiding too-frequent flushes when writing to NFS
1946 2003-10-03 Ziemowit Laski <zlaski@apple.com>
1948 * objc/objc-act.c (lookup_category): Mark as 'inline'.
1950 2003-10-03 Alexander Malmberg <alexander@malmberg.org>
1951 Ziemowit Laski <zlaski@apple.com>
1953 * objc/objc-act.c (add_method_to_hash_list, lookup_category):
1955 (lookup_method_in_hash_lists): New parameter indicating whether
1956 we are messaging 'Class' or 'id'.
1957 (check_duplicates): Likewise; do not assume all methods will
1958 be either class or instance methods.
1959 (generate_category, finish_class): Use lookup_category().
1960 (add_method): Use add_method_to_hash_list(); insert instance
1961 methods of root classes into the global class method hash table.
1962 (add_category): Use lookup_category(); avoid constructing
1963 duplicate categories.
1964 (really_start_method): Add method to corresponding @interface,
1965 if not already there (and if the @interface exists).
1966 (finish_message_expr, finish_objc): Adjust calls to
1969 2003-10-03 Roger Sayle <roger@eyesopen.com>
1971 PR optimization/9325, PR java/6391
1972 * fold-const.c (fold_convert): For floating point to integer
1973 conversions, return the maximum/minimum representable integer
1974 value if the real constant overflows the destination type.
1975 * tree.c (real_value_from_int_cst): Allow the type to be NULL,
1976 meaning don't truncate the result to a floating point mode.
1977 Simplify the logic by calling real_from_integer directly.
1978 * simplify-rtx.c (simplify_unary_operation): Implement the
1979 same semantics for folding floating point to integer conversions
1982 2003-10-03 Chris Demetriou <cgd@broadcom.com>
1984 * config/mips/mips.c (mips_emit_prefetch): Restructure
1985 to avoid use of arrays, handle indexed prefetch.
1986 * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
1987 (ISA_HAS_PREFETCHX): New deffine.
1988 * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
1990 (prefetch_indexed_di, prefetch_indexed_si): New insns.
1992 2003-10-03 Jeff Sturm <jsturm@one-point.com>
1993 Roger Sayle <roger@eyesopen.com>
1995 PR optimization/12289
1996 * calls.c (emit_call_1): Pretend to have popped the arguments
1997 to noreturn and longjmp functions instead of ignoring them.
1998 (expand_call): Don't adjust stack_pointer_dela while
1999 inhibit_defer_pop is set.
2001 2003-10-03 Andreas Schwab <schwab@suse.de>
2004 * configure.in: Check for libunwind on the host only if building
2006 * configure: Regenerated.
2008 2003-10-03 Paolo Carlini <pcarlini@unitus.it>
2010 * unwind-pe.h (read_encoded_value_with_base): Constify u and
2011 its inizialization cast.
2013 2003-10-03 Richard Sandiford <rsandifo@redhat.com>
2016 * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
2018 2003-10-02 Mark Mitchell <mark@codesourcery.com>
2020 PR optimization/12180
2021 * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
2022 functions containing calls to __builtin_next_arg.
2024 2003-10-02 Chris Demetriou <cgd@broadcom.com>
2026 * config/mips/mips.c (mips_emit_prefetch): Use operand 3
2027 in instructions being output.
2028 * config/mips/mips.md (prefetch_si_address): Change third
2029 operand's constraint letter to 'I'.
2030 (prefetch_di_address): Likewise.
2031 (prefetch_si, prefetch_di): Set third operand to const0_rtx.
2033 2003-10-02 Zack Weinberg <zack@codesourcery.com>
2035 * system.h: Poison macros obsoleted by earlier patch.
2036 * config/cris/cris.c: C90-ify a function definition.
2038 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
2041 * combine.c (make_field_assignment): Check whether rtx's code
2042 is CONST_INT before using INTVAL.
2044 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
2046 * cgraph.c (cgraph_node): Use INSERT instead of 1 in
2047 htab_find_slot_with_hash.
2048 (cgraph_node_for_identifier): Use NO_INSERT.
2049 (cgraph_remove_node): Use NO_INSERT.
2050 (cgraph_varpool_node): Use INSERT.
2051 (cgraph_varpool_node_for_identifier): Use NO_INSERT.
2053 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
2055 Waldek Hebisch <hebisch@math.uni.wroc.pl>
2057 * varasm.c (compare_constant): Fix thinko.
2059 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
2061 * config/frv/frv.c (frv_issue_rate): New function.
2062 (frv_pack_insns): Use it.
2063 (TARGET_SCHED_ISSUE_RATE): Define.
2065 2003-10-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
2067 * config/mcore/mcore.c: Convert to ISO C90 function declarations
2069 * config/mcore/mcore.h: Likewise.
2070 * config/mcore/mcore-protos.h: Likewise.
2072 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
2074 * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
2075 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
2077 2003-10-01 Per Bothner <pbothner@apple.com>
2079 * c-lex.c (src_line): Remove unneeded static variable.
2080 (cb_line_change): Set input_line directly, instead of src_line.
2081 (get_non_padding_token): We no longer need to compensate for the
2082 "horrible things" the C++ front-end does with the current line number,
2084 * cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change
2085 callback even when popping the main file.
2086 * c-lex.c (fe_file_change): Handle a NULL new_map.
2087 * fix-header.c (cb_file_change): Likewise.
2088 * c-ppoutput.c (pp_file_change): Likewise.
2090 * cppinit.c (cpp_read_main_file): Split into two functions:
2091 Distribute _cpp_stack_file call over the two functions.
2092 (cpp_find_main_file): New function.
2093 Don't call _cpp_do_file_change even if working_directory flag set.
2094 (cpp_push_main_file): New function.
2095 * cppfiles.c (_cpp_find_failed): New helper function.
2096 (find_file): Made non-static and renamed to _cpp_find_file.
2097 (_cpp_stack_file): No longer needed. But note the following.
2098 (stack_file): Made non-static and renamed to _cpp_stack_file.
2099 * fix-header.c (cpp_read_main_file): Replace cpp_read_main_file
2100 call with calls to cpp_find_main_file and cpp_push_main_file.
2101 (search_path_head): If there is no current buffer, use main_file.
2102 * cpphash.h: Update function declarations.
2103 * cpplib.h: Update function declarations.
2105 * c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
2106 (c_common_parse_file): No longer need to call cpp_read_main_file
2107 when file_index > 0 (as in multi-file or server compiation).
2108 (finish_options): Change to <built-in> is an LC_ENTER, not LC_RENAME
2109 as this now happens before cpp_push_main_file.
2110 (push_command_line_include): When done with options, pass LC_LEAVE
2111 instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
2112 (fe_file_change): Handle NULL new_map, and simplify.
2113 * cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed
2114 08-28 change, since we're never called with a NULL buffer.
2115 (_cpp_lex_direct): Likewise.
2116 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
2117 Return false if buffer is NULL at end.
2119 * cpplex.c (_cpp_get_fresh_line): Return value now just depends on
2120 whether pfile->buffer is NULL after pop, ignoring return_at_eof.
2121 * cpphash.h (struct cpp_buffer): Remove unused return_at_eof field.
2122 * cpplib.c (cpp_push_buffer): Since we no longer set return_at_eof,
2123 remove the unused return_at_eof parameter.
2124 * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
2125 Update callers of cpp_push_buffer.
2127 2003-10-01 Zack Weinberg <zack@codesourcery.com>
2129 * target.h (init_libfuncs): New hook.
2130 * target-def.h: Default TARGET_INIT_BUILTINS and
2131 TARGET_INIT_LIBFUNCS to hook_void_void. Add
2132 TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
2133 * builtins.c (default_init_builtins): Delete.
2134 * expr.h (default_init_builtins): Delete prototype.
2135 * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
2136 Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
2137 Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
2138 DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
2139 MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
2140 and UMODDI3_LIBCALL,
2142 * Makefile.in (optabs.o): Depends on target.h.
2143 * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
2144 * optabs.c: Include target.h.
2145 (prepare_float_lib_cmp): No need for #ifdef around use of
2146 FLOAT_LIB_COMPARE_RETURNS_BOOL.
2147 (set_optab_libfunc): New function.
2148 (init_optabs): Delete use of all *_LIBCALL defines.
2149 Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
2150 * optabs.h: Prototype set_optab_libfunc.
2152 * config.gcc: Remove all references to pa/long_double.h,
2153 ia64/hpux_longdouble.h, and gofast.h.
2154 (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
2155 to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
2157 * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
2158 * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
2159 * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
2160 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
2161 * config/sparc/sparc.c, config/vax/vax.c:
2162 Provide a definition for TARGET_INIT_LIBFUNCS. Where
2163 necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
2165 * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
2166 * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
2167 * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
2168 * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
2169 * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
2170 * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
2171 * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
2172 * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
2173 INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
2175 * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
2176 Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
2177 * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
2178 HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
2179 * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
2181 * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
2182 * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
2183 SUN_INTEGER_MULTIPLY_64 to 0.
2184 * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
2185 SUN_INTEGER_MULTIPLY_64 to 1.
2186 * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
2187 SUN_INTEGER_MULTIPLY_64 to 0.
2188 * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
2189 Define US_SOFTWARE_GOFAST.
2190 * config/vax/vax.h: Default TARGET_ELF to 0.
2191 * config/vax/elf.h: Redefine TARGET_ELF to 1.
2193 * config/gofast.h: Don't define any macros here. Provide one
2194 static function, gofast_maybe_init_libfuncs, which does what
2195 INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
2196 is already defined. Do not clear negation libfuncs. Do
2197 not mess with HFmode, XFmode, or TFmode libfuncs.
2199 * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
2201 2003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
2204 * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
2206 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2208 * config/mips/xm-iris5.h: Remove, unnecessary.
2209 * config.build (mips-sgi-irix5*): Remove.
2210 (mips-sgi-irix6*o32): Likewise.
2211 * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
2212 (mips-sgi-irix5cross64): Likewise.
2213 (mips-sgi-irix5*): Likewise.
2214 * config.host (mips-sgi-irix5*): Remove.
2215 (mips-sgi-irix6*o32): Likewise.
2217 2003-10-01 Zack Weinberg <zack@codesourcery.com>
2219 * dbxout.c (dbxout_fptype_value): Delete.
2220 (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
2222 2003-10-01 Alexandre Oliva <aoliva@redhat.com>
2224 * output.h (compute_reloc_for_constant): Declare.
2225 * varasm.c (compute_reloc_for_constant): Extract from...
2226 (output_addressed_constants): ... here. Adjust all callers.
2228 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2230 * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
2231 * configure: Rebuilt.
2233 2003-10-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2235 * fold-const.c (make_range): When handling unsigned, don't reverse
2236 range if high bound is zero.
2238 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2240 * config/frv/frv.h (PREDICATE_CODES): Added
2241 condexec_si_media_operator, condexec_sf_add_operator and
2242 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
2243 and condexec_sf_unary_operator.
2245 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2247 * aclocal.m4: Add ultrix* to /dev/zero blacklist.
2248 * configure: Rebuilt.
2250 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2252 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
2254 * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
2256 2003-09-23 David S. Miller <davem@redhat.com>
2258 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
2260 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
2262 2003-10-01 Steven Bosscher <steven@gcc.gnu.org>
2264 * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
2265 C90 function declarations and definitions.
2267 2003-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
2269 * config.gcc (cris-*-linux*): Revert mistaken commit.
2271 2003-10-01 Eric Botcazou <ebotcazou@libertysurf.fr>
2273 PR optimization/11753
2274 * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
2275 the length in the non-V9 case.
2277 2003-09-30 Richard Henderson <rth@redhat.com>
2279 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
2280 DWARF_ALT_FRAME_RETURN_COLUMN.
2281 * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
2282 (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
2283 (uw_frame_state_for): Return end-of-stack for null return address.
2284 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
2286 * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
2287 (alpha_expand_prologue): Store a zero for it.
2288 (alpha_expand_epilogue): Don't reload it.
2289 * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
2290 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
2291 for the sigframe return address.
2293 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
2295 * sdbout.c: Convert to ISO C90 prototypes.
2296 * objc/objc-act.c: Likewise.
2298 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
2300 * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
2301 * config/i386/winnt.c: Likewise.
2302 * config/i386/cygming.h: Likewise.
2304 2003-09-30 Kazu Hirata <kazu@cs.umass.edu>
2306 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
2307 (A ^ B) - B for any B.
2309 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
2311 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
2312 powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
2314 2003-09-30 Richard Earnshaw <rearnsha@arm.com>
2316 * arm/ieee754-sf.S: Tidy formatting.
2318 2003-09-30 Nicolas Pitre <nico@cam.org>
2320 * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
2322 (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
2323 (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
2324 added better divisor alignment in the other case.
2325 (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
2326 (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
2327 macros above, add fast exits for divisor >= dividend, etc.
2329 2003-09-30 Nicolas Pitre <nico@cam.org>
2331 * arm/ieee754-df.S: Split compilation of fixunsdfsi from
2333 * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
2335 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
2337 * config.gcc: Default use_fixproto to 'no'.
2339 2003-09-30 Richard Sandiford <rsandifo@redhat.com>
2341 PR optimization/12345
2342 * config/mips/mips-protos.h (mips_restore_gp): Remove.
2343 (mips_gp_save_slot): Declare.
2344 * config/mips/mips.c (mips_restore_gp): Remove in favor of...
2345 (mips_gp_save_slot): ...this new function.
2346 * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
2347 and mips_output_move to generate the output template.
2348 (call_internal): Force splitting if TARGET_SPLIT_CALLS. Don't emit
2349 a gp load after a noreturn call. Load the gp using a move rather
2350 than an exception_receiver pattern.
2351 (call_value_internal, call_value_multiple_internal): Likewise.
2352 (call_split, call_value_split, call_value_multiple_split): Clobber $28.
2354 2003-09-30 Carlo Wood <carlo@alinoe.com>
2357 * cfglayout.c (insn_scope): Use prologue_locator and
2358 epilogue_locator; return the outer function scope for
2359 pro- and epilogue insns.
2361 2003-09-29 Zack Weinberg <zack@codesourcery.com>
2363 * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
2364 REAL_TYPEs based on the bitsize of the type's mode, not the
2367 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2369 * dwarf2out.c (default_eh_frame_section): Split into ...
2370 (named_section_eh_frame_section, collect2_eh_frame_section): ... new
2372 * output.h (named_section_eh_frame_section): Declare.
2373 (collect2_eh_frame_section): Likewise.
2375 2003-09-29 Zack Weinberg <zack@codesourcery.com>
2377 * real.c (real_sqrt): Use get_canonical_qnan directly.
2379 * dwarf2out.c (add_const_value_attribute): Use real_to_target.
2381 * varasm.c (assemble_real): Use real_to_target directly,
2382 calculate the number of significant elements of the result
2383 array and write them out in a loop, instead of using a giant
2384 switch statement to pick the correct REAL_VALUE_TO_TARGET_*
2387 2003-09-29 Jan Hubicka <jh@suse.cz>
2390 * varasm.c (notice_global_symbol): Discard external symbols.
2392 PR optimization/12286
2393 * gcov-io.c (gcov_read_words): Fix memmove call.
2394 * profile.c (compute_branch_probabilities): Add extra sanity checks.
2396 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2398 * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
2401 * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
2402 wildcards which explicitly match micro versions.
2403 * fixinc/fixincl.x: Regenerate.
2405 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
2407 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
2408 (A ^ B) - B, where B is any power of 2 minus 1.
2410 2003-09-29 Jan Hubicka <jh@suse.cz>
2412 * libgcov.c (gcov_exit): Fix two pastos.
2414 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
2416 * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
2417 define_split immediately below to form define_insn_and_split.
2419 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
2421 * config/h8300/h8300.md (*tstsi_variable_bit): New.
2422 (*tstsi_variable_bit_qi): Likewise.
2424 2003-09-28 Phil Edwards <phil@codesourcery.com>
2426 * doc/cppopts.texi: Use 'dashMP' instead of '-MP' as a cross-
2429 2003-09-28 Richard Henderson <rth@redhat.com>
2431 * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
2432 file and line separately.
2434 2003-09-28 Ulrich Weigand <uweigand@de.ibm.com>
2436 * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
2437 "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
2438 "*subdi3_borrow_cconly"): New insns.
2439 ("*addsi3_sub", "*subsi3_sub"): Remove.
2440 ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
2441 ("*subsi3_cc"): Fix op_type attribute.
2443 2003-09-28 Richard Henderson <rth@redhat.com>
2445 * stmt.c (expand_asm_operands): Take a location_t, instead of
2446 individual file and line.
2447 * c-typeck.c (c_expand_asm_operands): Likewise.
2448 * tree.h (expand_asm_operands): Update decl.
2449 * c-common.h (c_expand_asm_operands): Likewise.
2450 * c-semantics (genrtl_asm_stmt): Update call.
2452 2003-09-28 Philip Blundell <philb@gnu.org>
2454 * config/arm/arm.c (legitimize_pic_address): Check
2455 SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
2456 (arm_assemble_integer): Likewise.
2458 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
2460 * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
2461 config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
2463 Convert to ISO C90 function declarations and definitions.
2465 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
2467 * config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
2468 Convert to ISO C90 function declarations and definitions.
2470 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
2472 * config/mips/mips.c (mips_constant_info): Add reloc field.
2473 (mips_classify_constant): Initialize it. Always set SYMBOL to the
2474 underlying symbol, not to an unspec.
2475 (mips_delegitimize_address, print_operand): Clean up accordingly.
2477 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
2479 * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
2480 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
2481 * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
2482 (mips_classify_constant): Use it.
2483 (mips_splittable_symbol_p): Add an offset argument.
2484 (mips_classify_address): Adjust call accordingly.
2485 (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
2486 than a relocation unspec. Update call to mips_splittable_symbol_p.
2487 Generalize the code that copes with symbols + invalid offsets.
2488 (print_operand): Allow '%R' to be applied to small data addresses.
2489 (mips_reloc_string): Remove RELOC_GPREL16.
2490 (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg. Return $gp
2491 for TARGET_EXPLICIT_RELOCS. Return null if we can't use gp-relative
2492 relocation operators.
2493 * config/mips/mips.md (RELOC_GPREL16): Remove. Shuffle other reloc
2494 constants accordingly.
2496 2003-09-27 Roger Sayle <roger@eyesopen.com>
2498 * toplev.c (flag_evaluation_order): New global variable.
2499 * flags.h (flag_evaluation_order): Prototype here.
2500 * expr.c (expand_operands): If we need to preserve observable
2501 evaluation order, protect exp1 from clobbering exp0's result.
2503 2003-09-28 Andreas Jaeger <aj@suse.de>
2505 * c-decl.c (finish_function): Convert definition to ISO C90.
2506 * ifcvt.c (mark_loop_exit_edges): Likewise.
2507 * ra-rewrite.c (emit_colors): Likewise.
2509 2003-09-27 Nathanael Nerode <neroden@gcc.gnu.org>
2511 * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
2512 * config.gcc (arm*-*-uclinux*): Disable fixproto.
2513 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
2514 powerpc-*-eabialtivec*): Disable fixproto.
2516 2003-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
2518 PR optimization/12340
2519 * loop.h (struct induction): Document the new semantics
2520 of the 'same' field for bivs.
2521 * unroll.c (biv_total_increment): Don't count the same
2522 biv increment several times.
2523 (loop_iterations) [GENERAL_INDUCT]: Likewise.
2525 2003-09-27 Graham Stott <graham.stott@btinternet.com>
2527 * unroll.c (loop_interations)[GT]: Add missing break.
2529 2003-09-27 Kelley Cook <kcook@gcc.gnu.org>
2531 * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
2532 config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
2533 config/dbxelf.h, config/elfos.h, config/fp-bit.h,
2534 config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
2535 config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
2536 config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
2537 config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
2538 config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
2539 config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
2540 config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
2541 config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
2542 config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
2543 config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
2544 config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
2545 config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
2546 config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
2547 config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
2548 config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
2549 config/alpha/xm-vms.h, config/arc/arc-modes.def,
2550 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
2551 config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
2552 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
2553 config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
2554 config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
2555 config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
2556 config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
2557 config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
2558 config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
2559 config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
2560 config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
2561 config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
2562 config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
2563 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
2564 config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
2565 config/i960/i960-c.c, config/i960/i960-coff.h,
2566 config/i960/i960-modes.def, config/i960/i960-protos.h,
2567 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
2568 config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
2569 config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2570 config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
2571 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
2572 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
2573 config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
2574 config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
2575 config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
2576 config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
2577 config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
2578 config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
2579 config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
2580 config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
2581 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
2582 config/mcore/mcore-protos.h, config/mcore/mcore.c,
2583 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
2584 config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
2585 config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
2586 config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
2587 config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
2588 config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
2589 config/mips/vr.h, config/mn10300/linux.h,
2590 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
2591 config/mn10300/mn10300.h, config/mn10300/mn10300.md,
2592 config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
2593 config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
2594 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
2595 config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
2596 config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
2597 config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
2598 config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
2599 config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
2600 config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
2601 config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
2602 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
2603 config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
2604 config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
2605 config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
2606 fixinc/fixinc.svr4: GNU CC -> GCC.
2608 2003-09-26 Loren James Rittle <ljrittle@acm.org>
2610 * objc/objc-act.c (tm_p.h): Tweak order.
2611 * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
2613 2003-09-26 Nathanael Nerode <neroden@gcc.gnu.org>
2615 * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
2616 Include t-slibgcc-elf-ver and t-linux in tmake_file.
2617 * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
2619 * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
2621 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
2622 sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
2624 * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
2626 2003-09-26 Loren James Rittle <ljrittle@acm.org>
2628 * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
2629 * objc/objc-act.c (tm_p.h): Include.
2631 2003-09-26 Per Bothner <pbothner@apple.com>
2633 * dbxout.c (dbxout_typedefs): Output typedefs in forward order.
2634 No longer any need to reverse by recursion.
2636 2003-09-26 Roger Sayle <roger@eyesopen.com>
2637 Richard Henderson <rth@redhat.com>
2639 PR optimization/11741
2640 * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
2641 appropriate set to match that in hash_scan_insn. Fall back to
2642 the original copy method, if we can't validate changing insn.
2643 (pre_delete): Only delete instructions that have a single_set,
2644 instead of aborting when we encounter an PARALLEL insn with more
2647 2003-09-26 Andreas Krebbel <krebbel1@de.ibm.com>
2649 * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
2650 ("builtin_longjmp"): Insn deleted.
2651 ("save_stack_nonlocal"): Save literal pool base pointer behind
2652 backchain and stack pointer.
2653 ("restore_stack_nonlocal"): Restore literal pool base pointer.
2654 * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
2655 the stack save area for the nonlocal goto case.
2657 2003-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2660 * pa.c (output_bvb): Fix typo.
2662 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
2664 * expmed.c (store_bit_field): Don't search for an integer mode
2665 unless we need the result.
2667 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
2669 * expr.c (emit_move_insn_1): If there is no move pattern for the
2670 original mode, try using a pattern for the corresponding integer mode.
2672 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
2675 * combine.c (if_then_else_cond): Tighten mode check.
2677 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2679 * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
2680 'struct _cpp_strbuf'.
2682 * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2683 config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
2684 config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
2685 config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
2686 config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
2687 config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
2688 config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
2689 config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
2690 config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
2691 "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
2692 * config/i386/i386-aout.h, config/i386/i386-coff.h,
2693 config/i386/i386-interix.h, config/i386/i386-interix3.h,
2694 config/i386/i386-modes.def, config/i386/i386-protos.h,
2695 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
2696 config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
2697 config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
2698 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
2699 config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
2700 "GNU compiler" -> GCC.
2701 * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
2702 config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
2703 config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
2704 config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
2705 config/i386/freebsd-aout.h, config/i386/freebsd.h,
2706 config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
2708 2003-09-25 Kelley Cook <kelleycook@wideopenwest.com>
2710 * cgraph.c (dump_cgraph): Don't output newline before dump. Add in
2711 "local" to the callgraph dump. Output "after inlining" earlier.
2712 * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
2713 callgraph dumps. Correct misspellings.
2714 (cgraph_decide_inlining): Output number of insns before inlining.
2715 Output the calling function into which a function is inlined.
2716 (cgraph_decide_small_functions): Format dump file like always_inline.
2718 2003-09-25 Loren James Rittle <ljrittle@acm.org>
2720 * config/i386/i386.h (ix86_return_in_memory): Add prototype.
2722 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
2724 * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
2725 FPR slots in the save area.
2726 (s390_emit_epilogue): Likewise.
2728 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
2730 * cgraph.h (cgraph_remove_edge): Declare.
2731 * cgraph.c (cgraph_remove_edge): Make extern.
2732 * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
2733 instead of cgraph_remove_call.
2735 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
2737 * objc/objc-act.c (gen_declaration_1): Fix printf format.
2739 2003-09-25 Richard Earnshaw <rearnsha@arm.com>
2741 * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
2744 2003-09-25 Ziemowit Laski <zlaski@apple.com>
2746 * config/darwin-protos.h (objc_image_info_section):
2749 2003-09-25 Ziemowit Laski <zlaski@apple.com>
2751 * Makefile.in (stub-objc.o): Depend on $(GGC_H).
2753 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2755 * config.gcc: Get rid of more gratuitious 'x'es. Actually allow
2756 tsc701 as a --with-cpu, --with-tune setting for sparc.
2758 2003-09-25 Ziemowit Laski <zlaski@apple.com>
2760 * c-parse.in (objc_try_stmt): Do not specify a %type.
2762 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2764 * config.gcc: New 'widely ported system' clause for rtems.
2765 Set thread file there, not in individual clauses.
2767 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
2770 * config/mips/mips.c (mips_va_arg): Handle arguments that must be
2771 passed on the stack.
2773 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2775 * config.gcc (widely ported systems section): Mostly alphabetize
2776 by system. Comment the case where we can't.
2777 * config.gcc (widely ported systems section): Reindent and clean up.
2779 * config.gcc: Remove some unnecessary uses of 'x' in case statements.
2780 Actually allow ep9312 as an arm --with-arch setting.
2782 * config.gcc (*-hpux11): Disable fixproto.
2784 2003-09-24 Phil Edwards <phil@codesourcery.com>
2787 * gcc/cppfiles.c (pch_open_file): Return based on combined
2788 result of all files.
2789 (validate_pch): Return validate flag for current file.
2791 2003-09-24 Roger Sayle <roger@eyesopen.com>
2794 * fold-const.c (tree_swap_operands_p): Only reorder operands when
2795 one of the operands is constant.
2797 2003-09-24 Ziemowit Laski <zlaski@apple.com>
2799 MERGE OF objc-improvements-branch into MAINLINE:
2800 * Makefile.in (C_OBJS): Add in stub-objc.o.
2801 (c-parse.y): Change sed demarcations to begin with '@@'.
2802 (stub-objc.o): New rule.
2803 * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
2804 flag_replace_objc_classes): New flags.
2805 * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
2806 RID_AT_SYNCHRONIZED): New keywords.
2807 (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
2808 flag_replace_objc_classes): New flags.
2809 (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
2810 objc_comptypes, objc_message_selector, lookup_objc_ivar,
2811 get_current_scope, objc_mark_locals_volatile): New prototypes,
2812 some moved from c-tree.h.
2813 * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
2814 (finish_decl): Adjust where objc_check_decl() gets called.
2815 * c-lang.c (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
2816 objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
2817 * c-opts.c (c_common_handle_option): Add handling for flag_nil_receivers,
2818 flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
2819 * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
2820 '@@end_ifc', respectively.
2821 (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
2822 (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
2823 objc_finally_block): New rules.
2824 (component_decl_list2): Clean up semantic action for @defs construct.
2825 (component_decl, c99_block_start): Remove call to add_objc_decls().
2826 (poplevel): Add call to objc_clear_super_receiver().
2827 (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
2829 (classdef, methodprotolist): Clean up/simplify.
2830 (methodprotolist2): Eliminate.
2831 (methodproto): Call add_method() instead of add_class_method() and
2832 add_instance_method().
2833 (receiver): Add TYPENAME production.
2834 (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
2835 (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
2837 * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
2838 objc_comptypes, objc_message_selector)
2839 * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
2840 struct and pointer types.
2841 (build_c_cast): Do not discard ObjC protocol qualifiers.
2842 (convert_for_assignment): Cache result of comp_target_types() instead
2843 of calling it more than once.
2844 * c.opt (fnext-runtime): Update description string.
2845 (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
2846 New ObjC/ObjC++-specific flags.
2847 * function.h (GCC_FUNCTION_H): Header guard.
2848 * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
2849 * stub-objc.c: New file, to be used to satisfy references to ObjC
2850 functions by the C and C++ front-ends.
2851 * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
2852 * config/darwin.h (FUNCTION): Add in_objc_image_info.
2853 (SECTION_FUNCTION): Add objc_image_info_section.
2854 * doc/invoke.texi: Link to GCC web site for Objective-C information.
2855 (-fconstant-string-class): Update documentation.
2856 (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
2857 -fzero-link): New documentation.
2858 * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
2860 * objc/lang-specs.h (@objective-c-header): Fix -E spec.
2861 * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
2862 throughout; provide casts for return values from memory allocation
2863 functions (xmalloc, alloca, ggc_alloc, etc.).
2864 (OBJC_VOID_AT_END): New macro.
2865 (rtl.h): Do not #include any more.
2866 (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
2867 (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
2868 TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
2869 TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
2870 TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
2871 (struct val_stack, catch_count_stack, exc_binding_stack, val_stack_push,
2872 val_stack_pop): New.
2873 (objc_check_decl): Fix precondition for error message, along with
2875 (lookup_and_install_protocols): Remove nonexistent protocols from
2876 protocol list instead of returning error_mark_node.
2877 (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
2878 (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
2879 (synth_module_prologue): General clean-up; construct NeXT-specific
2880 runtime API prototypes if needed.
2881 (build_string_class_template): Remove.
2882 (check_string_class_template, string_layout_checked): New.
2883 (build_objc_string_object): Generalize to work with
2884 -fconstant-string-class.
2885 (build_objc_symtab_template): Fix layout for the NeXT runtime.
2886 (build_metadata_decl): New.
2887 (forward_declare_categories): Call build_metadata_decl() instead of
2888 create_builtin_decl() et al.
2889 (build_module_descriptor): Use OBJC_VOID_AT_END instead of
2891 (build_selector_reference_decl, build_class_reference_decl,
2892 build_objc_string_decl): Do not set TREE_READONLY.
2893 (get_proto_encoding): Do not call hack_method_prototype().
2894 (get_class_reference): Add failure mode for invalid class names;
2895 support -fzero-link; defer if in an ObjC++ template declaration.
2896 (objc_declare_alias, objc_declare_class): Fix up duplicate name
2897 lookup; check for global scope if in ObjC++.
2898 (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
2899 RECORD_TYPE, IDENTIFIER_NODE, etc.)
2900 (objc_is_id): Removed.
2901 (objc_is_object_ptr): New function.
2902 (get_class_ivars_from_name): New function, used for @defs construct.
2903 (get_class_ivars): Add option to return raw ivars; create a
2904 ClASS_OWN_IVARS list for each class as needed.
2905 (objc_enter_block, objc_exit_block, objc_declare_variable,
2906 objc_build_throw_stmt, val_stack_push, val_stack_pop,
2907 objc_build_try_enter_fragment, objc_build_extract_expr,
2908 objc_build_try_exit_fragment, objc_build_extract_fragment,
2909 objc_build_try_prologue, objc_build_try_epilogue,
2910 objc_build_catch_stmt, objc_build_catch_epilogue,
2911 objc_build_finally_prologue, objc_build_finally_epilogue,
2912 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
2913 objc_build_synchronized_epilogue, build_objc_exception_stuff):
2915 (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
2917 (build_private_template): Fix up calls to get_class_ivars().
2918 (offset_is_register, forwarding_offset): Remove.
2919 (objc_method_parm_type, objc_encoded_type_size): New functions.
2920 (encode_method_prototype): Simplify to no longer depend on
2921 back-end information.
2922 (build_tmp_function_decl_xxx, build_tmp_function_decl,
2923 hack_method_prototype): Removed.
2924 (generate_protocol_references): Remove calls to
2925 build_tmp_function_decl().
2926 (generate_protocols): Adjust calls to encode_method_prototype().
2927 (build_class_template): Generate sel_id' and 'gc_object_type' fields
2928 for the NeXT runtime.
2929 (synth_forward_declarations): Call build_metadata_decl().
2930 (check_ivars): Check that the number of ivars matches also.
2931 (build_super_template): Modify super_type directly; disable debugging
2932 output while generating decl.
2933 (build_ivar_list_initializer): Skip list elements that are not
2935 (ivar_list_length): New function.
2936 (generate_ivar_lists): Call ivar_list_length() instead of list_length()
2937 and encode_method_prototype() instead of encode_method_def().
2938 (build_shared_structure_initializer): Generate 'sel_id' field for
2940 (generate_category): Do not set TREE_USED.
2941 (build_keyword_selector): Ditto; transform into a function argument
2943 (get_arg_type_list): If there are no user-specified arguments, use
2944 '...'; use OBJC_VOID_AT_END.
2945 (check_duplicates): Add a parameter indicating whether methods or
2946 selectors are being checked.
2947 (receiver_is_class_object): Add parameters indicating whether
2948 receiver is 'self' or 'super'; robustify.
2949 (build_message_expr): Defer call to finish_message_expr() if
2950 inside an ObjC++ template.
2951 (lookup_method_in_hash_lists): New function.
2952 (finish_message_expr): Complete rewrite/fix.
2953 (build_objc_method_call): Ditto; factor out commonalities between
2954 the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
2955 messenger variants on the NeXT.
2956 (lookup_instance_method_static, lookup_class_method_static):
2957 Fold into a single lookup_method_static() function with an
2958 additional parameter.
2959 (add_class_method, add_instance_method): Fold into a single
2960 add_method() function with an additional parameter.
2961 (add_category): Make duplicate categories a hard error in ObjC++.
2962 (add_instance_variable): Properly handle unnamed ivars, arrays of
2963 zero or no size and bitfields. In ObjC++, check for nontrivial
2964 C++ class instances.
2965 (is_public): Allow C functions to access non-@public ivars, with
2967 (start_class): Move common initializations to
2968 synth_module_prologue(); check for global scope if in ObjC++.
2969 (continue_class): Fix calls to finish_struct().
2970 (objc_declare_protocols, start_protocol): Check for global scope
2972 (encode_pointer): Encode 'BOOL *' specially on the NeXT.
2973 (encode_aggregate_within): Rewrite to properly distinguish
2974 struct tags from typedefs in both ObjC and ObjC++.
2975 (encode_bitfield, encode_complete_bitfield): Remove.
2976 (encode_next_bitfield, encode_gnu_bitfield): New functions.
2977 (encode_field_decl): Call encode_next_bitfield() or
2978 encode_gnu_bitfield() as needed.
2979 (synth_self_and_ucmd_args): New function.
2980 (start_method_def): Use it.
2981 (objc_types_are_equivalent): New function.
2982 (comp_proto_with_proto): Use it instead of comptypes(), since
2984 (really_start_method): Use lookup_method_static() instead of
2985 lookup_class_method_static() and lookup_instance_method_static();
2986 Emit 'extern "C"' if in ObjC++ mode.
2987 (add_objc_decls): Removed.
2988 (UOBJC_SUPER_scope): New variable.
2989 (get_super_receiver): Move construction of 'super' from
2990 add_objc_decls(); remove dependency on struct objc_class.
2991 (encode_method_def): Removed; encode_method_prototype() is
2993 (objc_clear_super_receiver): New function.
2994 (objc_expand_function_end): Do not do anything for ordinary
2996 (finish_method_def): Mark ObjC methods as un-inlinable.
2997 (gen_declaration_1): Emit widths of bitfields.
2998 (finish_objc): Call generate_objc_image_info() if needed;
2999 use check_duplicates() when checking for selector duplicates.
3000 (generate_objc_image_info): New function.
3001 * objc/objc-act.h (add_instance_method, add_class_method,
3002 get_class_ivars): Remove prototypes.
3003 (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
3004 objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
3005 objc_build_catch_stmt, objc_build_catch_epilogue,
3006 objc_build_finally_prologue, objc_build_finally_epilogue,
3007 add_method, get_class_ivars_from_name): New prototypes.
3008 (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
3009 (TYPE_PROTOCOL_LIST): Robustify to distinguish from
3010 TRANSLATION_UNIT_DECLs.
3011 (OBJC_TYPE_NAME): New.
3012 (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
3014 (IS_SUPER): Robustify.
3015 (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
3016 umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
3017 objc_exception_try_enter_decl, objc_exception_try_exit_decl,
3018 objc_exception_match_decl, objc_exception_throw_decl,
3019 objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
3020 objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
3021 objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
3022 objc_catch_type): New ObjC/ObjC++ roots.
3023 * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
3024 ObjC/ObjC++ tree node codes.
3026 2003-09-24 Alexandre Oliva <aoliva@redhat.com>
3028 * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
3029 code path that calls a handler.
3031 2003-09-24 Nathanael Nerode <neroden@gcc.gnu.org>
3033 * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
3036 * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
3037 the section giving $with_cpu defaults by target.
3039 * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
3040 arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
3041 rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
3042 rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
3043 rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
3044 i[34567]86-pc-msdosdjgpp*): Disable fixproto.
3046 2003-09-24 David Edelsohn <edelsohn@gnu.org>
3048 * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
3049 together. Protect load string instruction with TARGET_STRING.
3050 (movti_string): Collapse case 1 and 2 together.
3052 2003-09-24 Nathan Sidwell <nathan@codesourcery.com>
3054 * c-common.c (c_common_type_for_mode): Check for VOIDmode.
3056 2003-09-24 Richard Earnshaw <rearnsha@arm.com>
3058 * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
3061 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
3063 * config.gcc: Move use_fixproto=no from generic vxworks clause to
3066 * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
3067 (accidentally missed in last pass).
3069 2003-09-23 Andrew Pinski <apinski@apple.com>
3072 * configure: Regenerate.
3074 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
3076 * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
3077 missed in last pass).
3079 2003-09-23 Alexandre Oliva <aoliva@redhat.com>
3081 * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
3084 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
3086 * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
3088 * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
3089 powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
3090 powerpcle-*-eabi*): Disable fixproto.
3092 * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
3093 specific FreeBSD clauses.
3094 * config.gcc: Move use_fixproto=no from generic NetBSD clause to
3095 specific NetBSD clauses.
3096 * config.gcc: Move use_fixproto=no from generic OpenBSD clause
3097 to specific OpenBSD clauses.
3099 2003-09-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3101 * pa.c (hppa_expand_prologue): Do pic register save in frame marker
3102 without adding a frame note.
3103 * pa.md (allocate_stack): Save pic register in new frame marker when
3104 generating pic code.
3106 2003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
3108 * cgraphunit.c (cgraph_expand_all_functions): Renamed from
3109 cgraph_expand_functions.
3111 2003-09-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3113 * Makefile.in (gnucompare*): Merge into ...
3114 (slowcompare*): ... here.
3115 (fastcompare*): New targets.
3116 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
3117 other "fast" cmp programs.
3118 * configure: Regenerate.
3120 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3122 * targhooks.c: Include output.h.
3123 * Makefile.in (targhooks.o): Add output.h to dependency list.
3125 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3127 * config.host: Removed superfluous newline.
3129 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
3131 * config.gcc: Use ${target}, not $machine.
3132 * configure.in: Don't set $machine.
3133 * configure: Regenerate.
3135 2003-09-23 Geoffrey Keating <geoffk@apple.com>
3137 * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
3139 * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
3140 pass zero-size arrays by reference.
3141 (rs6000_va_arg): Likewise.
3143 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
3145 * config.gcc: Set use_fixproto=no in each specific *-gnu*
3146 configuration, rather than the generic one.
3148 2003-09-23 Richard Henderson <rth@redhat.com>
3150 * tree-inline.c (remap_save_expr): Map new save_expr to identity
3151 rather than to error_mark_node.
3153 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3155 * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
3157 * configure: Regenerate.
3158 * config.in: Likewise.
3159 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
3160 HAVE_GAS_SHF_MERGE value.
3161 * varasm.c (mergeable_string_section): Likewise.
3162 (mergeable_constant_section): Likewise.
3164 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3166 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
3169 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3171 * target.h (struct gcc_target): New member external_libcall.
3172 * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
3173 (TARGET_ASM_OUT): Use it.
3174 * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
3175 * targhooks.c: Convert to ISO C 90.
3176 (default_external_libcall): New function.
3177 * targhooks.h (default_external_libcall): Declare.
3178 * varasm.c (assemble_external_libcall): Use
3179 targetm.asm_out.external_libcall instead of
3180 ASM_OUTPUT_EXTERNAL_LIBCALL.
3181 * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
3182 (mips_output_external_libcall): Declare.
3183 * config/mips/mips.c (mips_output_external_libcall): Change
3185 Change to match TARGET_ASM_EXTERNAL_LIBCALL.
3186 Only operate for O32 ABI.
3187 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
3188 instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
3189 * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
3190 superceded by TARGET_ASM_EXTERNAL_LIBCALL.
3192 2003-09-22 Nathnael Nerode <neroden@gcc.gnu.org>
3194 * config.gcc: Do per-target disabling of fixproto here in clauses,
3195 not in t- fragments.
3196 * configure.in: Adjust to set STMP_FIXPROTO correctly.
3197 * configure: Regenerate.
3198 * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
3199 config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
3200 t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
3201 xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
3202 * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
3203 t-interix, t-linux-aout: Delete files consisting only of
3204 setting of STMP_FIXPROTO.
3206 * config.host: Allow unknown hosts (not targets). Allow
3207 ns32k-*-netbsdelf* as a host (not a target). Remove redundant
3208 empty clauses. Remove useless obsolete-configuration clause.
3209 Prune unsupported configuration list. Collapse identical
3210 clauses for closely related systems. Rewrite comment for
3211 unsupported hosts list. Reorganize a little.
3213 2003-09-22 Richard Henderson <rth@redhat.com>
3215 * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
3218 2003-09-22 David Edelsohn <edelsohn@gnu.org>
3219 Hartmut Penner <hpenner@de.ibm.com>
3220 Segher Boessenkool <boessen@de.ibm.com>
3222 * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
3223 (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
3224 (rs6000_split_altivec_in_gprs): Rename to ...
3225 (rs6000_split_multireg_move): Add support for update addressing.
3226 * config/rs6000/rs6000-protos.h: Same.
3227 * config/rs6000/altivec.md: Same.
3228 * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
3230 (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
3231 (movti_power): Use new splitter for multiple GPRs.
3232 (movti_string): Same.
3233 (movti_ppc64): Same.
3235 2003-09-22 Bob Wilson <bob.wilson@acm.org>
3237 * config/xtensa/xtensa-protos.h: Convert to ISO C90.
3238 * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes.
3240 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
3242 * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
3243 (andsi3): Set attr cc to set_zn when using shifts or adds.
3245 2003-09-22 Bernardo Innocenti <bernie@develer.com>
3247 * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
3249 2003-09-22 Bernardo Innocenti <bernie@develer.com>
3251 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
3252 Resurrect -mrtd option.
3254 2003-09-21 Andrew Pinski <pinskia@physics.uc.edu>
3257 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
3258 mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
3260 2003-09-22 Olivier Hainque <hainque@act-europe.fr>
3263 * reg-stack.c (convert_regs_1): Purge possible dead eh edges
3264 after potential deletion of trapping insn. Avoids later ICE
3265 from call to fixup_abnormal_edges.
3266 (convert_regs_2): Stack the current block successors before
3267 processing this block, that is, before the potential deletion of
3268 dead edges by convert_regs_1, because these edges have been used
3269 to initialize the predecessors count.
3271 2003-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
3273 * real.c: Fix several nits in the head comment.
3275 2003-09-21 Richard Henderson <rth@redhat.com>
3277 * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
3278 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
3279 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
3280 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
3281 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
3283 2003-09-21 Richard Henderson <rth@redhat.com>
3285 * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
3286 (TREE_FILENAME, TREE_LINENO): Likewise.
3287 (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
3288 (TREE_LOCUS_SET_P): New.
3289 * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
3290 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
3291 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
3292 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
3293 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
3295 2003-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
3297 * config/vax/vax-protos.h: Convert to ISO C90.
3298 * config/vax/vax.c: Convert to ISO C90.
3300 2003-09-21 Graham Stott <grahams@btinternet.com>
3303 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
3305 2003-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
3308 * reorg.c (stop_search_p): Return 1 for insns that can
3311 2003-09-20 Richard Henderson <rth@redhat.com>
3313 * c-format.c (gcc_diag_char_table): Add %J.
3314 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
3315 (check_format_types): Fix wanted_type name lookup.
3316 (init_dynamic_diag_info): Setup %J.
3317 * diagnostic.c (text_specifies_location): Implement %J.
3318 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
3319 dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
3320 tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
3321 config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
3322 config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
3324 * tree-inline.c: Include intl.h
3325 (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
3326 * Makefile.in (tree-inline.o): Update.
3328 2003-09-20 Roger Sayle <roger@eyesopen.com>
3330 * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
3331 transformation of a>=0 into (unsigned)a<0x80000000.
3333 2003-09-20 Andrew Pinski <apinski@apple.com>
3335 * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
3337 2003-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
3339 * Makefile.in: Don't set (unused) DLLTOOL.
3341 * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
3342 Remove obsolete references to ENQUIRE.
3344 2003-09-19 Nathanael Nerode <neroden@gcc.gnu.org>
3346 * configure.in: Remove --with-elf, which doesn't work.
3347 * configure: Regenerate.
3348 * config.gcc: Remove references to $elf, which does nothing.
3350 * config/i386/xm-vsta.h: Remove xm-file believed useless.
3351 * config.build (i386-vsta): Remove reference to it.
3352 * config.host (i386-vsta): Remove reference to it.
3354 2003-09-19 Phil Edwards <phil@codesourcery.com>
3356 * doc/install.texi: Document the multiple testsuite options.
3358 2003-09-19 Gerald Pfeifer <gerald@pfeifer.com>
3360 * doc/install.texi (Specific): Add the specific versions of GCC
3361 where support for FreeBSD 1, HP-UX version 9 and older, and AIX
3362 version 3 and older was discontinued.
3364 2003-09-19 Joel Sherrill <joel@oarcorp.com>
3366 * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
3369 2003-09-19 Bernardo Innocenti <bernie@develer.com>
3371 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
3372 for -m68030, -m68020-60 and -m68020-40.
3373 * config/m68k/m68k.h (TARGET_68030): New target flag.
3374 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
3375 TARGET_REGPARM): Remove.
3376 * config/m68k/m68k.h: Regroup and renumber target flags.
3377 * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
3378 * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
3379 * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
3380 * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
3381 * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
3383 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3385 * config/m68k/t-rtems (m68k-*-rtems*): New.
3386 * config.gcc: Use config/m68k/t-rtems.
3388 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3390 * config/mips/t-rtems: New.
3391 * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
3393 2003-09-19 Kelley Cook <kelleycook@wideopenwest.com>
3395 * cgraph.c: Fix typo in debugging output.
3397 2003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
3398 Eric Botcazou <ebotcazou@libertysurf.fr>
3401 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
3403 2003-09-18 Mike Stump <mrs@apple.com>
3405 * c-ppoutput.c (print): Use fileline typedef for field 'line'.
3406 (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
3407 cb_ident, cb_def_pragma): Use fileline typedef.
3408 * cpphash.h (struct cpp_reader): Likewise for field out.first_line.
3410 2003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3412 * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
3413 total parm size if a parm has incomplete type.
3414 (gen_fastcall_suffix): Likewise.
3416 2003-09-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3418 * except.c (output_function_exception_table): Adjust last change
3419 to handle TYPE of INTEGER_CST.
3421 2003-09-18 Mark Mitchell <mark@codesourcery.com>
3424 * builtins.c (expand_builtin_apply): Use convert_memory_address
3425 before returning the value.
3427 * alias.c (find_base_value): Simplify use of
3428 convert_memory_address.
3429 (find_base_term): Likewise.
3430 * builtins.c (expand_builtin_stejmp_setup): Likewise.
3431 (expand_builtin_longjmp): Likewise.
3432 (expand_builtin_prefetch): Likewise.
3433 (get_memory_rtx): Likewise.
3434 (expand_builtin_return): Likewise.
3435 (expand_builtin_memcpy): Likewise.
3436 (expand_builtin_strncpy): Likewise.
3437 (expand_builtin_memset): Likewise.
3438 (expand_builtin_va_arg): Likewise.
3439 (expand_builtin_va_copy): Likewise.
3440 (expand_builtin_alloca): Likewise.
3441 * calls.c (expand_call): Likewise.
3442 * except.c (expand_builtin_extract_return_addr): Likewise.
3443 (expand_builtin_eh_return): Likewise.
3444 * explow.c (convert_memory_address): Define even when
3445 POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address
3446 is already in the right mode.
3447 * explow.c (memory_address): Simplify use of convert_memory_address.
3448 (probe_stack_range): Likewise.
3449 * expmed.c (make_tree): Likewise.
3450 * expr.c (emit_block_move_in_libcall): Likewise.
3451 (expand_assignment): Likewise.
3452 (expand_expr): Likewise.
3453 * function.c (assign_parms): Likewise.
3454 (expand_function_end): Likewise.
3455 * integrate.c (copy_rtx_and_substitute): Likewise.
3456 * stmt.c (expand_computed_goto): Likewise.
3458 2003-09-18 Roger Sayle <roger@eyesopen.com>
3460 * simplify-rtx.c (simplify_unary_operation): Only transform
3461 (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
3462 is -1. RTL "not" is a bit-wise not, "~", not a logical not "!".
3464 2003-09-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3467 * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
3469 2003-09-18 Roger Sayle <roger@eyesopen.com>
3471 * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
3472 PARITY_EXPR): Delete unused tree codes.
3473 * c-common.c (c_common_truthvalue_conversion): Delete references
3474 to FFS_EXPR and POPCOUNT_EXPR.
3475 * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
3476 (pp_c_expression): Likewise.
3477 * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
3478 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
3479 * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
3480 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to
3481 BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
3482 and long long variants.
3484 2003-09-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
3486 * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
3487 * c-pretty-print.c: Fix formatting.
3488 (pp_c_integer_constant): Append type annotation to literals. Tidy.
3489 (pp_c_type_specifier): Tidy.
3490 (pp_c_compound_literal): New function.
3491 (pp_c_initializer): Simplify..
3492 (pp_c_initializer_list): Likewise.
3493 (pp_c_brace_enclosed_initializer_list): New function.
3494 (pp_c_postfix_expression): Simplify.
3496 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
3498 * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
3499 one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
3501 2003-09-17 Richard Henderson <rth@redhat.com>
3503 * tree-optimize.c (tree_rest_of_compilation): Save and restore
3506 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
3508 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
3510 2003-09-17 Richard Henderson <rth@redhat.com>
3512 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
3514 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3516 * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
3517 * configure: Regenerate.
3519 2003-09-17 Mark Mitchell <mark@codesourcery.com>
3522 * dbxout.c (dbxout_init): Use a langhook to find builtin types.
3523 * langhooks-def.h (lhd_return_null_tree_v): New function.
3524 (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
3525 (LANG_HOOKS_DECLS): Add it to the intializer.
3526 * langhooks.c (lhd_return_null_tree_v): New function.
3527 * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
3529 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
3531 * configure.in: Quote gcc_config_arguments for configargs.h.
3532 * configure: Regenerated.
3533 * gccbug.in: Don't shell-expand gcc_config_arguments.
3535 2003-09-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
3538 * c-pretty-print.c (pp_c_floating_constant): Append
3539 type-annotation to floating constants.
3541 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3543 * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
3545 Use it for _MIPS_SIM.
3546 * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
3548 * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
3550 * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
3552 Fixes PR target/10190.
3554 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
3556 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
3557 to shared libraries.
3559 2003-09-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3561 PR optimization/11646
3562 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
3563 EDGE_ABNORMAL flag for EH edges.
3564 * toplev.c (rest_of_handle_cse): Delete unreachable blocks
3565 if dead edges were purged.
3567 2003-09-16 Bernardo Innocenti <bernie@develer.com>
3569 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
3570 * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
3571 * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
3572 * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
3574 2003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
3576 * cfgcleanup.c (label_is_jump_target_p): Correct use of table
3577 returned by tablejump_p.
3579 2003-09-16 Joel Brobecker <brobecker@gnat.com>
3581 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
3583 2003-09-16 Roger Sayle <roger@eyesopen.com>
3586 * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
3587 argument to be VOIDmode, taking the mode of the comparison from
3588 the operands. Only call simplify_relational_operation if we
3589 know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
3590 if comparison has a floating point result. Ensure that the
3591 result is always of the specified mode.
3592 (simplify_replace_rtx): Simplify call to simplify_gen_relational.
3593 (simplify_unary_operation): Ensure the correct mode and cmp_mode
3594 are always passed to simplify_gen_relational. Simplify NOT of
3595 comparison operator in any mode, not just BImode.
3596 (simplify_ternary_operation): Correct tests on the return value
3597 of simplify_relational_operation to use const_true_rtx, not
3598 const1_rtx. Abort if it ever returns a non-constant result.
3600 * cfgloopanal.c (count_strange_loop_iterations): Use the function
3601 simplify_relational_operation, not simplify_gen_relational, if
3602 we're only interested in constant comparisons and will ignore
3603 non-constant results.
3605 2003-09-16 Roger Sayle <roger@eyesopen.com>
3607 * fold-const.c (tree_swap_operands_p): New function to determine
3608 the prefered ordering of operands.
3609 (fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
3610 operands to commutative, comparison or ternary operators. Replace
3611 uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
3612 transformation of A ? B : C into !A ? C : B.
3614 2003-09-16 Jakub Jelinek <jakub@redhat.com>
3616 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3617 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3618 * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3619 * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3620 * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3621 * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3622 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3623 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3625 2003-09-16 Jason Merrill <jason@redhat.com>
3626 Jakub Jelinek <jakub@redhat.com>
3628 * c-common.c (handle_warn_unused_result_attribute): New function.
3629 (c_common_attribute_table): Add warn_unused_result.
3630 (c_expand_expr): Issue warning when result of inlined function
3631 with warn_unused_result attribute is ignored.
3632 * calls.c (expand_call): Issue warning when result of function
3633 with warn_unused_result attribute is ignored.
3634 * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
3635 * expr.c (expr_wfl_stack): Define.
3636 (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
3637 pass const0_rtx as target. Chain locations into expr_wfl_stack.
3638 * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
3639 bit if inlined function has warn_unused_result attribute.
3640 * input.h (expr_wfl_stack): Declare.
3641 * doc/extend.texi: Document warn_unused_result attribute.
3643 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3645 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
3647 2003-09-15 Bob Wilson <bob.wilson@acm.org>
3649 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
3651 (call_insn_operand): For PIC, don't allow a direct call to a
3652 function in a different section than the current one.
3654 2003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3656 * doc/invoke.texi (Warning Options): Add missing hyphen before
3657 "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
3658 Move "-Wold-style-definition" to the C-only section.
3659 Fix the ordering of the warning options.
3661 2003-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3662 Jeff Law <law@redhat.com>
3664 * gcse.c (remove_reachable_equiv_notes): New.
3665 replace_store_insn): Call it. Update antic list.
3666 (store_killed_in_insn): Take REG_EQUAL notes into account.
3667 (build_store_vectors, delete_store): Add parameter to
3668 replace_store_insn call.
3670 2003-09-15 Bob Wilson <bob.wilson@acm.org>
3672 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
3675 2003-09-15 Kazu Hirata <kazu@cs.umass.edu>
3677 * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
3678 (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
3679 * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
3681 * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
3683 * config/rs6000/rs6000.c (function_arg_padding): Likewise.
3684 * config/sparc/sparc.c (function_arg_padding): Likewise.
3686 2003-09-15 Vladimir Makarov <vmakarov@redhat.com>
3688 * haifa-sched.c (schedule_block): Use ready_remove_first instead
3689 of choose_ready for non-dfa insn scheduling.
3691 2003-09-15 Andreas Jaeger <aj@suse.de>
3692 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3694 * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
3695 * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
3696 * c-parse.in: Warn about old-style parameter definition.
3697 * c-common.c: Define warn_old_style_defintion.
3698 * c-common.h: Declare it.
3699 * c.opt: Add Wold-style-defintion.
3701 2003-09-15 Andreas Jaeger <aj@suse.de>
3703 * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
3704 * config/rs6000/rs6000.c: Likewise.
3706 2003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3708 PR optimization/10914
3709 * expr.h (get_condition, canonicalize_condition): Declaration changed.
3710 * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
3711 and canonicalize_condition calls.
3712 * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
3713 delete_null_pointer_checks): Ditto.
3714 * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
3715 * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
3716 * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
3717 (canonicalize_condition, get_condition): Allow to return comparisons
3718 of cc mode registers.
3719 * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
3720 cc mode registers comparison in condition.
3722 2003-09-12 Mark Mitchell <mark@codesourcery.com>
3724 * coverage.c (create_coverage): Do not call pushlevel/poplevel.
3725 * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
3727 * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
3729 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
3731 * combine.c (simplify_comparison): Convert
3732 (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
3733 (eq (and (lshiftrt X Y) 1) 0).
3735 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
3737 * alias.c: Follow spelling conventions.
3738 * cpphash.h: Likewise.
3739 * fold-const.c: Likewise.
3741 2003-09-14 Alexandre Oliva <aoliva@redhat.com>
3743 * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
3744 * c-lex.c (cb_line_change): Skip line changing whenever
3747 2003-09-14 Steven Bosscher <steven@gcc.gnu.org>
3749 * ra.c: Convert to ISO C90 prototypes.
3750 * ra-build.c: Likewise.
3751 * ra-colorize.c: Likewise.
3752 * ra-debug.c: Likewise.
3753 * ra-rewrite.c: Likewise.
3755 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
3757 * Makefile.in (%.dvi): Remove excess $(docdir).
3759 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
3761 * function.c (STACK_BYTES): Move definition to head of file.
3762 (assign_parms): Don't pass current_function_pretend_args_size
3763 directly to SETUP_INCOMING_VARARGS. For partial register arguments,
3764 round current_function_pretend_args_size up to STACK_BYTES. Skip any
3765 excess before laying out the argument.
3767 2003-09-14 Andreas Jaeger <aj@suse.de>
3769 * objc/objc-act.c: Convert to ISO C90 prototypes.
3770 * objc/objc-act.h: Likewise.
3772 2003-09-14 Olaf Hering <olh@suse.de>
3774 * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
3776 2003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
3779 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
3780 as they already are done in config/m68k/m68k.h.
3781 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
3783 * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
3784 (machopic_output_stub): Only generate pic base symbols when using pic
3785 and generate them in the form L00000000$spb.
3787 2003-09-13 Richard Henderson <rth@redhat.com>
3789 * cgraphunit.c (cgraph_assemble_pending_functions): Export.
3790 (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
3793 2003-09-12 Dale Johannesen <dalej@apple.com>
3795 * config/rs6000/rs6000.c: Fix typos in previous.
3797 2003-09-12 Ziemowit Laski <zlaski@apple.com>
3799 * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
3800 when allocating pp->buffer.
3802 2003-09-12 Geoffrey Keating <geoffk@apple.com>
3804 * config/darwin.c (machopic_select_rtx_section): Use
3805 const_data_section for things that might require relocation.
3807 2003-09-12 H.J. Lu <hongjiu.lu@intel.com>
3810 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
3812 2003-09-12 Bob Wilson <bob.wilson@acm.org>
3814 * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
3815 * config/xtensa/linux.h (ASM_SPEC): Likewise.
3816 * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
3817 -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
3818 -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
3819 -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
3820 -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
3821 -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
3822 and redefine corresponding TARGET_* macros with constants from the
3823 xtensa-config.h header.
3824 * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
3825 for the options listed above.
3827 2003-09-12 Dale Johannesen <dalej@apple.com>
3829 * config/rs6000/rs6000-protos.h: Use C90 prototypes.
3830 * config/rs6000/rs6000-c.c: Ditto.
3831 * config/rs6000/rs6000.c: Ditto.
3832 * config/rs6000/ sysv4.h: Ditto.
3834 2003-09-12 Chris Lattner <sabre@nondot.org>
3836 * loop.c: Move comments describing BIV's and GIV's to top of file
3838 2003-09-12 Roger Sayle <roger@eyesopen.com>
3840 PR optimization/8967
3841 * alias.c (write_dependence_p): Modify to take an additional constp
3842 argument that controls whether the UNCHANGING_RTX_P flags are used.
3843 (anti_dependence, output_dependence): Adjust write_dependence_p
3844 callers to pass this additional argument, to return the same result.
3845 (unchanging_anti_dependence): New variant of anti_dependence that
3846 ignores the UNCHANGING_RTX_P property on memory references.
3847 * rtl.h (unchaning_anti_dependence): Prototype here.
3848 * flow.c (init_propagate_block): Place fake constant mem writes on
3849 the mem_set_list so that dead writes to const variables are deleted.
3850 (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
3851 (mark_used_regs): Likewise.
3853 2003-09-12 Richard Sandiford <rsandifo@redhat.com>
3855 * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
3856 (mcore_secondary_reload_class): Declare.
3857 (mcore_output_inline_const_forced): Remove.
3858 * config/mcore/mcore.md (movsi): Remove the code that forced
3859 non-inlineable constants into a register if the target was r15
3860 or the stack pointer. Remove constant restrictions from the main
3861 define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
3862 of an r <- P alternative. Remove fallback define_insn for reload.
3863 (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
3864 define_insn. Use mcore_output_move in the remaining define_insn.
3865 Adjust condition and constraints in the way as for movsi.
3866 (movdi): Always split unacceptable constants into two. Use
3867 simplify_gen_subreg instead of operand_subword{,_force}.
3868 * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
3869 (mcore_output_move): Support HImode and QImode moves as well.
3870 (mcore_m15_operand_p): New function.
3871 (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
3872 (mcore_secondary_reload_class): New function.
3873 * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
3874 terms of mcore_secondary_reload_class.
3876 2003-09-11 Mike Stump <mrs@apple.com>
3878 * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
3880 2003-09-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3882 * builtins.c (fold_builtin_logarithm): if N can't be truncated to
3883 MODE exactly, then only convert logN(N) -> 1.0 if
3884 flag_unsafe_math_optimizations is set.
3886 * builtins.c (builtin_dconsts_init, dconstpi, dconste,
3887 init_builtin_dconsts): Delete.
3888 * emit-rtl.c (dconstpi, dconste): Define.
3889 (init_emit_once): Initialize dconstpi & dconste.
3890 * real.h (dconstpi, dconste): Declare.
3892 2003-09-11 Alexandre Oliva <aoliva@redhat.com>
3895 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
3896 for ultimate origin even if block is abstract.
3898 2003-09-11 Roger Sayle <roger@eyesopen.com>
3900 * combine.c (combine_simplify_rtx): Move several NOT and NEG
3901 optimizations from here...
3902 * simplify-rtx.c (simplify_unary_operation): to here. Recursively
3903 simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
3905 2003-09-11 Richard Henderson <rth@redhat.com>
3907 * cgraphunit.c (cgraph_finalize_function): Add nested arg.
3908 Tweek tests for function already generated.
3909 (cgraph_expand_function): Don't double announce in !unit-at-a-time.
3910 * cgraph.h (cgraph_finalize_function): Update for extra arg.
3911 * c-decl.c (finish_function): Likewise.
3913 2003-09-10 Joe Buck <jbuck@welsh-buck.org>
3915 * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
3917 2003-09-10 Jerry Quinn <jlquinn@optonline.net>
3919 * real.c: Update URL to VAX floating point docs.
3920 (decode_vax_d): Extract 8 exponent bits instead of 7.
3922 2003-09-10 Ian Lance Taylor <ian@wasabisystems.com>
3924 * combine.c (force_to_mode): Set fuller_mask based only on mask,
3927 2003-09-11 Jan Hubicka <jh@suse.cz>
3929 * c-objc-common.c (c_cannot_inline_tree_fn): Warn
3930 on why function is not inlinable; do not check
3932 (inline_forbidden_p): Move to...
3933 * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
3934 deal with alloca, longjmp.
3935 (inline_forbidden_p): New static function.
3936 (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
3937 find_builtin_longjmp_call): Kill.
3939 2003-09-10 Richard Henderson <rth@redhat.com>
3941 * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
3942 * cgraphunit.c: Update to match.
3943 (record_call_1): Rearrange. Call lang hook for language nodes.
3944 (cgraph_analyze_function): Don't call lower_function.
3945 * langhooks.h (struct lang_hooks_for_callgraph): Replace
3946 lower_function with analyze_expr.
3947 * langhooks-def.h: Update to match.
3948 * langhooks.c (lhd_callgraph_analyze_expr): New.
3950 2003-09-10 Martin Husemann <martin@duskware.de>
3953 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
3954 constants greater than 63.
3955 * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
3956 against constants greater than 31.
3957 (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
3958 constants greater than 63.
3960 2003-09-09 Richard Henderson <rth@redhat.com>
3962 * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
3963 * cgraph.h (cgraph_finalize_function): Update.
3964 * c-decl.c (finish_function): Update.
3966 2003-09-09 Devang Patel <dpatel@apple.com>
3968 * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
3969 * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
3971 2003-09-09 Eric Christopher <echristo@redhat.com>
3973 * configure.in: Change usage of 'head' to 'sed 1q'.
3974 * configure: Regenerate.
3976 2003-09-09 Richard Henderson <rth@redhat.com>
3978 * except.c: Include cgraph.h.
3979 (output_function_exception_table): Invoke
3980 cgraph_varpool_mark_needed_node.
3981 * Makefile.in (except.o): Update.
3983 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
3985 * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
3986 and use it throughout.
3988 2003-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3990 * builtins.c (real_dconstp, fold_builtin_logarithm,
3991 fold_builtin_exponent): New, split out from fold_builtin. Also
3992 generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
3993 * emit-rtl.c (dconst3, dconst10, dconstthird): New.
3994 (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
3995 of hardcoded array size.
3996 * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
3997 (tree_expr_nonnegative_p): Likewise.
3998 * real.h (dconst3, dconst10, dconstthird): New.
4000 2003-09-09 Jan Hubicka <jh@suse.cz>
4002 * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
4004 (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
4007 2003-09-09 Roger Sayle <roger@eyesopen.com>
4009 * builtins.c (fold_builtin_cabs): Protect the complex argument
4010 against multiple evaluation when optimizing cabs* into sqrt*.
4012 2003-09-09 Jan Hubicka <jh@suse.cz>
4014 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
4016 2003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
4018 * Makefile.in: Revert yesterday's change.
4020 2003-09-08 Bernardo Innocenti <bernie@develer.com>
4021 Peter Barada <peter@baradas.org>
4023 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
4024 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
4025 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
4026 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
4027 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
4028 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
4029 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
4030 (m68k_compute_frame_layout): New function.
4031 (m68k_initial_elimination_offset): New function.
4032 (m68k_output_function_prologue): ColdFire-specific movem handling.
4033 (m68k_output_function_epilogue): Likewise.
4034 * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
4035 (ARG_POINTER_REGNUM): Add new definition.
4036 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
4037 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
4038 (CAN_ELIMINATE): Likewise.
4039 (INITIAL_ELIMINATION_OFFSET): Likewise.
4041 2003-09-08 Bernardo Innocenti <bernie@develer.com>
4043 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
4044 by removing redundant variable cfa_store_offset.
4046 2003-09-08 Mark Mitchell <mark@codesourcery.com>
4048 * langhooks-def.h (lhd_register_builtin_type): New function.
4049 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
4050 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
4051 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
4052 * langhooks.c (lhd_register_builtin_type): New function.
4053 * c-common.h (c_register_builtin_type): Declare.
4054 * c-common.c (c_register_builtin_type): New function.
4055 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
4056 c_register_builtin_type.
4057 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
4058 __float80, and __float128 macros.
4059 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
4060 __float80, and __float128 types.
4062 2003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4065 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
4066 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
4067 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
4068 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
4069 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
4070 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
4071 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
4072 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
4073 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
4074 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
4075 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
4076 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
4077 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
4078 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
4079 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
4080 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
4081 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
4083 * doc/extend.texi: Document new builtins.
4085 2003-09-09 Jan Hubicka <jh@suse.cz>
4087 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
4089 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
4090 functions, check for COMDAT.
4091 (cgraph_assemble_pending_functions): Break out from...
4092 (cgraph_finalize_function): ... here; allow redefinig of extern inline
4094 (record_call_1): Record function references only in non-unit-at-a-time
4096 (cgraph_analyze_function): Reset current_function_decl.
4097 (cgraph_finalize_compilation_unit): Assemble pending functions.
4099 2003-09-08 Mark Mitchell <mark@codesourcery.com>
4101 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
4102 (libgov.a): Likewise.
4103 (libgcc_eh.a): Likewise.
4105 2003-09-08 Roger Sayle <roger@eyesopen.com>
4107 * fold-const.c (operand_equal_p): Clarify documentation.
4109 2003-09-08 Richard Henderson <rth@redhat.com>
4111 * c-decl.c (c_expand_body_1): Push and pop function context here.
4112 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
4113 nested argument instead of computing nesting ourselves.
4115 2003-09-08 Jakub Jelinek <jakub@redhat.com>
4117 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
4118 regstack if optimizing but not scheduling after reload.
4120 2003-09-08 Jakub Jelinek <jakub@redhat.com>
4122 * config/sparc/sparc.c (struct machine_function): New type.
4123 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
4124 (sparc_override_options): Initialize init_machine_status.
4125 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
4126 tie_symbolic_operand, tle_symbolic_operand): New functions.
4127 (symbolic_operand): Disallow tls_symbolic_operand.
4128 (symbolic_memory_operand): Likewise.
4129 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
4130 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
4132 (sparc_tls_symbol): New variable.
4133 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
4134 legitimize_address): New functions.
4135 (print_operand): Handle %&.
4136 (sparc_init_machine_status, get_some_local_dynamic_name,
4137 get_some_local_dynamic_name_1): New functions.
4138 (sparc_output_dwarf_dtprel): New function.
4139 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
4141 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
4142 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
4143 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
4144 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
4145 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
4146 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
4147 (ASM_OUTPUT_DWARF_DTPREL): Define.
4148 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
4149 tie_symbolic_operand, tle_symbolic_operand.
4150 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
4151 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
4152 (tls_call_delay): New attribute.
4153 (in_call_delay): Use it.
4154 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
4155 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
4156 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
4157 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
4158 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
4159 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
4160 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
4161 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
4162 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
4163 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
4164 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
4165 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
4166 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
4167 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
4169 * config/sparc/sparc-protos.h (legitimate_constant_p,
4170 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
4171 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
4172 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
4173 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
4174 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
4175 * configure.in (sparc*-*-*): Add TLS check.
4176 * configure: Rebuilt.
4178 2003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4181 * config/i386/i386.c (memory_address_length): Fix computation when
4182 the base is esp or ebp.
4184 2003-09-07 Mark Mitchell <mark@codesourcery.com>
4187 * varasm.c (initializer_constant_valid_p): Correct logic for
4190 2003-09-07 Roger Sayle <roger@eyesopen.com>
4192 * expr.c (expand_operands): New function to expand an operand pair.
4193 (expand_expr): Call expand_operands whenever we need to expand both
4194 operands of a binary operator.
4195 (do_store_flag): Likewise for operands of comparison operations.
4197 2003-09-07 Roger Sayle <roger@eyesopen.com>
4199 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
4200 (-A)*B if we care about sign-dependent rounding.
4202 2003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
4204 * c-pretty-print.h (pp_c_left_brace): Declare.
4205 (pp_c_right_brace): Likewise.
4206 * c-pretty-print.c (pp_c_left_brace): Now a function
4207 (pp_c_right_brace): Likewise.
4209 2003-09-07 Jan Hubicka <jh@suse.cz>
4211 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
4213 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
4215 * diagnostic.c (warn_deprecated_use): Move to toplev.c
4217 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
4219 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
4220 * Makefile.in (langhooks.o): Depend on diagnostic.h
4222 2003-09-06 James E Wilson <wilson@tuliptree.org>
4224 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
4227 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
4229 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
4230 and use it throughout.
4232 2003-09-07 Jan Hubicka <jh@suse.cz>
4234 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
4236 * toplev.c (rest_of_decl_compilation): Do not finalize external
4239 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
4241 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
4243 2003-09-06 Jan Hubicka <jh@suse.cz>
4246 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
4249 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
4251 2003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
4253 * diagnostic.c (announce_function): Move to toplev.c.
4255 2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4257 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
4260 2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4262 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
4263 when gc checking is enabled.
4265 2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
4268 * c-decl.c (c_expand_body_1): Move return warning from here...
4269 (finish_function): ...to here.
4271 2003-09-05 Geoffrey Keating <geoffk@apple.com>
4273 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
4274 a subset of the input class.
4276 2003-09-05 Kazu Hirata <kazu@cs.umass.edu>
4278 * config/i860/i860.c: Follow spelling conventions.
4279 * config/i860/i860.h: Likewise.
4280 * config/sh/sh.h: Likewise.
4282 2003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
4284 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
4285 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
4286 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
4288 2003-09-05 Roger Sayle <roger@eyesopen.com>
4289 Richard Henderson <rth@redhat.com>
4291 PR optimization/1823
4292 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
4293 multiplication to implement division by constant integer.
4295 2003-09-05 Jan Hubicka <jh@suse.cz>
4297 * opts.c (decode_options): Enable unit-at-a-time at -O2.
4298 * params.def (max-inline-insns-single): Set to 500
4299 (max-inline-insns-auto): Set to 150
4300 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
4302 2003-09-04 Richard Henderson <rth@redhat.com>
4304 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
4305 (cgraph_mark_needed_node): Remove needed argument.
4306 * cgraph.h: Update to match.
4307 * cgraphunit.c (decide_is_function_needed): Split out from ...
4308 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
4309 if we generated the function.
4310 (record_call_1): Update for cgraph_mark_reachable_node.
4311 * varasm.c (mark_referenced): Likewise.
4312 * objc/objc-act.c (mark_referenced_methods): Likewise.
4314 2003-09-04 DJ Delorie <dj@redhat.com>
4316 * targhooks.c: Add comment explaining the migration process.
4318 2003-09-04 Eric Christopher <echristo@redhat.com>
4320 * config/frv/t-frv: Fix path for frv-abi.h.
4321 * config/frv/frv-asm.h: Fix string concatenation.
4323 2003-09-04 DJ Delorie <dj@redhat.com>
4325 * builtins.c (apply_args_size): Guard against a NULL cfun.
4326 (expand_builtin_apply_args_1): Likewise.
4327 (expand_builtin_apply): Likewise.
4328 Fixes PR bootstrap/12172.
4330 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4332 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
4333 assembler supports Sun syntax for cmov.
4334 * configure: Regenerate.
4335 * config.in: Likewise.
4336 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
4337 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
4338 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
4339 Fixes PR target/12101.
4341 2003-09-04 Matt Austern <austern@apple.com>
4343 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
4344 with verbosity 0, instead of DECL_NAME, for human-readable string.
4346 2003-09-04 Eric Christopher <echristo@redhat.com>
4348 * targhooks.c (default_return_in_memory): Allow
4351 2003-09-04 Eric Christopher <echristo@redhat.com>
4353 * targhooks.c (default_return_in_memory): Fix typo
4356 2003-09-04 Eric Christopher <echristo@redhat.com>
4358 * targhooks.c (default_return_in_memory): Fix default
4361 2003-09-04 Bernardo Innocenti <bernie@develer.com>
4363 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
4365 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
4366 enable coff-only code in m68k.c.
4368 2003-09-04 Nick Clifton <nickc@redhat.com>
4370 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
4372 * config/v850/v850.h: Accept v850e1 as a default CPU.
4373 Accept -mv850e1 as a command line option.
4374 * doc/invoke.texi: Document new -mv850e1 command line switch.
4375 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
4378 2003-09-04 Nick Clifton <nickc@redhat.com>
4380 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
4381 * config/v850/t-v850: Only produce one extra multilib - for
4383 * config/v850/t-v850e: New file: Only produce one extra
4384 multilib - for the v850.
4386 2003-09-04 Jakub Jelinek <jakub@redhat.com>
4388 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
4389 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
4390 * unwind.h (_Unwind_GetBSP): New prototype.
4391 * libgcc-std.ver: Add empty GCC_3.3.2 version.
4392 * mkmap-symver.awk: For symbol versions with no exported symbols,
4393 don't put anything into version script, just change all symbol
4394 versions which inherit from it to inherit from its ancestor.
4396 2003-09-04 Eric Christopher <echristo@redhat.com>
4398 * config/mips/mips.c (mips_expand_prologue): Convert to
4399 calls.struct_value_rtx hook.
4400 (reg_or_const_float_1_operand): New.
4401 * config/mips/mips.h: Update Comments.
4402 (mips_arg): Add reg_or_const_float_1_operand.
4403 * config/mips/mips.md (divdf3); Convert to expander.
4405 (*divdf3): New pattern.
4408 2003-09-04 Jan Hubicka <jh@suse.cz>
4410 * toplev.c (wrapup_global_declarations): Fix final pass in
4413 2003-09-04 Mark Mitchell <mark@codesourcery.com>
4415 * doc/extend.texi: Document removal of cast-as-lvalue extension in
4418 2003-09-04 Nicolas Roche <roche@act-europe.fr>
4420 * gcc.c (process_command): Fix typo.
4422 2003-09-03 David O'Brien <obrien@FreeBSD.org>
4425 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
4426 (PTRDIFF_TYPE): Likewise.
4427 (WCHAR_TYPE_SIZE): Likewise.
4429 2003-09-03 DJ Delorie <dj@redhat.com>
4431 * targhooks.c: New file.
4432 * targhooks.h: New file.
4433 * Makefile.in: Add targhooks.o support.
4434 (function.o): Depend on$(TARGET_H).
4436 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
4437 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
4438 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
4439 (expand_builtin_saveregs): Convert to
4440 calls.expand_builtin_saveregs hook.
4441 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
4442 here, instead of ...
4443 (get_parm_info) ... here.
4444 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
4446 (finish_function): Handle calls.promote_prototypes hook here too.
4447 * c-typeck.c (convert_arguments): Convert to
4448 calls.promote_prototypes hook.
4449 (c_convert_parm_for_inlining): Likewise.
4450 * calls.c (initialize_argument_information): Convert to
4451 calls.promote_function_args hook.
4452 (expand_call): Convert to calls.struct_value_rtx,
4453 calls.strict_argument_naming,
4454 calls.pretend_outgoing_varargs_named, and
4455 calls.promote_function_return hooks. Pass fndecl to
4456 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
4457 hooks, so they can use that.
4458 (emit_library_call_value_1): Likewise.
4459 * combine.c (setup_incoming_promotions): Convert to
4460 calls.promote_function_args hook.
4461 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
4462 * expr.c (expand_assignment): Pass call to aggregate_value_p.
4463 (expand_expr): Likewise.
4464 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
4465 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
4466 RETURN_IN_MEMORY macro defaults.
4467 * final.c (profile_function): Convert to calls.struct_value_rtx
4469 * function.c (aggregate_value_p): Accept function type tree as
4470 second parameter; try to deduce fntype from it. Convert to
4471 calls.return_in_memory hook.
4472 (assign_parms): Convert to calls.setup_incoming_varargs,
4473 calls.strict_argument_naming, calls.promote_function_args,
4474 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
4476 (expand_function_start): Likewise. Convert to
4477 calls.struct_value_rtx hook.
4478 (expand_function_end): Convert to calls.promote_function_return hook.
4479 (allocate_struct_function): Pass fndecl to aggregate_value_p.
4480 * hard-reg-set.h: Update comments to new hook names.
4481 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
4482 * reg-stack.c (stack_result): Likewise.
4483 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
4484 * stmt.c (expand_value_return): Convert to
4485 calls.promote_function_return hook.
4486 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
4487 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
4488 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
4489 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
4490 TARGET_STRICT_ARGUMENT_NAMING,
4491 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
4492 * target.h: Likewise.
4493 * tree.h (aggregate_value_p): Also takes a tree to deduce function
4494 attributes from (for target hooks).
4495 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
4496 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
4497 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
4498 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
4499 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
4502 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
4503 to aggregate_value_p.
4504 * config/arm/arm.c (arm_init_cumulative_args,
4505 arm_output_mi_thunk): Likewise.
4506 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
4508 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
4509 mips_can_use_return_insn): Likewise.
4510 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
4511 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
4512 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
4514 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
4515 function to aggregate_value_p.
4516 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
4519 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
4520 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
4521 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
4522 (sh_handle_renesas_attribute, sh_promote_prototypes,
4523 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
4524 sh_setup_incoming_varargs, sh_strict_argument_naming,
4525 sh_pretend_outgoing_varargs_named): New decls.
4526 (targetm): Add new hooks.
4527 (calc_live_regs): Save MACL and MACH if the function has the
4529 (sh_expand_prologue): Support renesas attribute.
4530 (sh_builtin_saveregs): Make static.
4531 (sh_build_va_list): Support renesas attribute.
4532 (sh_va_start): Likewise.
4533 (sh_va_arg): Likewise.
4534 (sh_promote_prototypes): New.
4535 (sh_function_arg): New, moved from sh.h. Support renesas
4537 (sh_function_arg_advance): Likewise.
4538 (sh_return_in_memory): Likewise.
4539 (sh_strict_argument_naming): Likewise.
4540 (sh_pretend_outgoing_varargs_named): Likewise.
4541 (sh_struct_value_rtx): New.
4542 (sh_attribute): Add renesas attribute.
4543 (sh_handle_renesas_attribute): New.
4544 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
4545 (sh_ms_bitfield_layout_p): Support renesas attribute also.
4546 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
4547 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
4549 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
4551 (sh_args): Add renesas_abi flag.
4552 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
4553 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
4554 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
4555 stack for the renesas abi.
4556 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
4557 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
4558 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
4559 call cookie to indicate renesas calls.
4561 2003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
4563 * gcse.c (replace_one_set): New function.
4564 (pre_insert_copy_insn): Change the order of copying
4565 to make copy propagation discover additional PRE opportunities.
4567 2003-09-03 Roger Sayle <roger@eyesopen.com>
4569 PR optimization/11700.
4570 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
4571 of a hard register is representable before trying to simplify it
4572 using subreg_hard_regno.
4574 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4576 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
4577 * configure: Regenerate.
4579 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4581 * intl.h (N_): Remove parentheses.
4583 2003-09-03 Bernardo Innocenti <bernie@develer.com>
4585 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
4586 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
4587 definition and code blocks compiled when not defined.
4588 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
4589 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
4590 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
4591 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
4593 2003-09-03 Jeff Sturm <jsturm@one-point.com>
4595 * cgraphunit.c (visited_nodes): New static variable.
4596 (record_call_1): Use walk_tree with visited_nodes.
4597 (cgraph_create_edges): Use walk_tree with visited_nodes.
4598 Setup/teardown visited_nodes hashtable.
4600 2003-09-03 Roger Sayle <roger@eyesopen.com>
4602 * toplev.c (flag_rounding_math): New global variable.
4603 (f_options): Add to the list of language independent options.
4604 * flags.h (flag_rounding_math): Prototype here.
4605 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
4606 * common.opt (frounding-math): New common command line option.
4607 * opts.c (common_handle_option): Handle OPT_frounding_math.
4608 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
4610 * doc/invoke.texi: Document this new command line option.
4612 2003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4614 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
4616 2003-09-03 Jan Hubicka <jh@suse.cz>
4618 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
4619 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
4620 * c-objc-common.c: Kill include of gt-c-objc-common.h
4621 (expand_deferred_fns, deffer_fn): Kill function.
4622 (deferred_fns): Kill variable.
4623 (finish_cdtor): Update finish_function call.
4624 (c_objc_common_finish_file): Always call cgraph code.
4625 * c-parse.c: Regenerate.
4626 * c-parse.y: Regenerate.
4627 * c-tree.h (finish_function): Update prototype.
4628 * objc-acct.c (build_module_descriptor, finish_method_def):
4629 Update call of finish_function.
4630 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
4632 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
4633 function and assemble it if needed.
4634 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
4636 (cgraph_optimize): Likewise.
4637 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
4638 even when it has no inline callees.
4639 * c-parse.in: Update calls to finish_function.
4641 2003-09-03 Nick Clifton <nickc@redhat.com>
4643 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
4644 Use #error to generate the message if TARGET_DEFAULT is not
4647 2003-09-03 Richard Sandiford <rsandifo@redhat.com>
4649 * config/mips/mips.h (MASK_UNUSED1): Remove.
4650 (MASK_XGOT, TARGET_XGOT): Define.
4651 (TARGET_SWITCHES): Add an entry for -mxgot.
4652 (ASM_SPEC): Map -mxgot to -xgot.
4653 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
4654 whether we're using a big-GOT sequences.
4655 (mips_legitimize_const_move, mips_expand_call): Likewise.
4656 (override_options): Revert 2003-01-09 change.
4657 * doc/invoke.texi: Document -mxgot.
4659 2003-09-02 Jason Merrill <jason@redhat.com>
4661 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
4662 * config/sparc/sol2.h: Not here.
4664 2003-09-02 Roger Sayle <roger@eyesopen.com>
4666 * expr.c (expand_expr): The code following both_summands performs
4667 the same task as simplify_gen_binary. Replace all gotos to
4668 both_summands with a call to simplify_gen_binary and delete the
4671 2003-09-02 Jason Merrill <jason@redhat.com>
4674 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
4676 2003-09-02 Jeff Sturm <jsturm@one-point.com>
4678 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
4679 (cgraph_optimize_function): Set current_function_decl to the
4680 fndecl we're integrating from.
4682 2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4684 * builtins.def: Break out _Complex math functions into their
4687 2003-09-02 Andreas Jaeger <aj@suse.de>
4689 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
4691 2003-09-02 Josef Zlomek <zlomekj@suse.cz>
4693 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
4694 finding the note again.
4696 2003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
4698 * config.gcc: Remove host-specific rewrites of target_alias.
4700 2003-09-01 Mark Mitchell <mark@codesourcery.com>
4702 * Makefile.in (genprogs): Fix typo.
4704 * Makefile.in (gencheck.o): Remove build commands.
4705 (dummy-conditions.o): Likewise.
4706 (read-rtl.o): Likewise.
4707 (gensupport.o): Likewise.
4708 (genconfig$(build_exeext)): Remove rule.
4709 (genconfig.o): Remove build commands.
4710 (genflags$(build_exeext)): Remove rule.
4711 (genflags.o): Remove build commands.
4712 (gencodes$(build_exeext)): Remove rule.
4713 (gencodes.o): Remove build commands.
4714 (genconstants.o): Remove build commands.
4715 (genemit$(build_exeext)): Remove rule.
4716 (genemit.o): Remove build commands.
4717 (genrecog$(build_exeext)): Remove rule.
4718 (genrecog.o): Remove build commands.
4719 (genextract$(build_exeext)): Remove rule.
4720 (genextract.o): Remove build commands.
4721 (genpeep$(build_exeext)): Remove rule.
4722 (genpeep.o): Remove build commands.
4723 (genattr$(build_exeext)): Remove rule.
4724 (genattr.o): Remove build commands.
4725 (genprognames): New variable.
4726 (genprogs): Likewise.
4727 (genobjs): Likewise.
4728 (genprogs): New rule.
4729 (genobjs): Likewise.
4730 (genattrtab.o): Remove build commands.
4731 (genautomata.o): Likewise.
4732 (genoutput$(build_exeext)): Remove rule.
4733 (genoutput.o): Remove build commands.
4734 (gengenrtl.o): Likewise.
4735 (genpreds.o): Likewise.
4736 (gengtype.o): Likewise.
4737 (genconditions.o): Likewise.
4738 (gen-protos.o): Likewise.
4740 (fix-header.o): Likewise.
4741 (scan-decls.o): Likewise.
4742 (check-g++): Combine with other check targets.
4743 (check-gcc): Likewise.
4744 (check-g77): Likewise.
4745 (check-objc): Likewise.
4747 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
4749 * config.gcc: Remove host-specific stuff which is unused here
4750 since the introduction of config.host.
4752 * doc/fragments.texi: Mention config.host.
4753 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
4754 of config.build, config.host, and config.gcc.
4756 2003-09-01 Zack Weinberg <zack@codesourcery.com>
4758 * c-decl.c (pushdecl): Don't put variables on
4759 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
4762 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
4764 * config.host: New file.
4765 * config.gcc: Remove some host-specific stuff and some
4766 logic needed only for repeated invocation.
4767 * configure.in: Use config.host.
4768 * configure: Regenerate.
4770 2003-09-01 Josef Zlomek <zlomekj@suse.cz>
4772 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
4773 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
4774 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
4775 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
4776 * tree.def (BIT_ANDTC_EXPR): Kill.
4778 2003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
4780 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
4781 * configure: Regenerate.
4783 * config.gcc: Remove references to install_headers_dir, now unused
4784 since introduction of config.build.
4785 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
4787 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
4790 * config.build: New file.
4791 * config.gcc: Remove some build-specific stuff.
4792 * configure.in: Use config.build.
4793 * configure: Regnerate.
4795 2003-08-31 Steven Bosscher <steven@gcc.gnu.org>
4796 Roger Sayle <roger@eyesopen.com>
4799 * stmt.c (expand_end_case_type): Only use jump tables for dense
4800 switch statements when optimizing for size.
4802 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
4804 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
4805 the != 0 case, which ensures pending stack adjustments are flushed.
4807 2003-08-30 Zack Weinberg <zack@codesourcery.com>
4809 * configure.frag: Delete file.
4810 * configure.in: Rename the substitution variables
4811 dep_host_xmake_file and dep_tmake_file to xmake_file and
4812 tmake_file respectively. Do not expand $srcdir in the
4813 value of these; leave that for Make. Introduce a new
4814 substitution varaible, all_lang_makefrags, which lists
4815 subdirectory Make-lang.in files; exclude these from
4816 all_lang_makefiles, which is now only for subdirectory
4817 outputs. Do not invoke configure.frag. Do not set nor
4818 AC_SUBST_FILE target_overrides, host_overrides, or
4819 language_fragments. Create build subdirectories in
4820 config.status extra commands.
4821 * configure: Regenerate.
4822 * Makefile.in: Update substitutions to match changes to
4823 configure. Use include directives instead of @-insertions
4824 to read in host, target, and language fragments.
4825 (Makefile rule): Do not invoke configure.frag. Do not copy
4826 config.status to config.run before executing it. Set
4827 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
4829 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
4831 2003-08-30 Zack Weinberg <zack@codesourcery.com>
4833 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
4834 * c-typeck.c (same_translation_unit_p): New function.
4835 (comptypes): Use it instead of flags parameter to identify
4836 structure types from different translation units.
4837 * c-decl.c (duplicate_decls): Always call comptypes with
4838 COMPTYPE_STRICT flags argument.
4839 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
4842 2003-08-30 Zack Weinberg <zack@codesourcery.com>
4844 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
4845 * c-decl.c (struct c_scope): Remove "incomplete" field.
4846 (pushdecl): Attach variables with incomplete types to
4847 the TYPE_MAIN_VARIANT of the incomplete type in question.
4848 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
4849 to complete, not at current_scope->incomplete. All such
4850 variables do need completion.
4852 2003-08-30 Richard Earnshaw <rearnsha@arm.com>
4853 Nicolas Pitre <nico@cam.org>
4855 * arm/lib1funcs.asm (RETCOND): Delete.
4856 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
4857 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
4858 (__ARM_ARCH__): Move here from ieee754-?f.S.
4859 (RET, RETc): Clean up definitions.
4860 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
4861 (FUNC_END): New macro that marks the end of any function.
4862 (ARM_FUNC_START): New macro that allows an assembler routine to be
4863 implemented in ARM code even if a Thumb-only build.
4864 Unconditionally include ieee754-?f.S.
4865 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
4866 Mark ends of functions.
4867 Split into separate conditionally-compiled units.
4868 Use RETLDM to return from routines.
4869 * arm/ieee754-sf.S: Similarly.
4870 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
4871 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
4872 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
4873 _fixsfsi and _fixunssfsi.
4875 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
4876 multiplication underflows to zero.
4877 (__adddf3): Fix bug when using VFP ordering on little-endian
4879 (__fixdfsi): Use rrx to extract the carry into a register instead of
4880 MRS instruction. Optimize later use of result.
4881 * arm/ieee754-sf.S (__fixsfsi): Likewise.
4882 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
4884 2003-08-29 Richard Henderson <rth@redhat.com>
4886 * tree-optimize.c: New file.
4887 * Makefile.in (OBJS-archive): Add tree-optimize.o.
4888 (tree-optimize.o): New.
4889 * c-decl.c (store_parm_decls): Use allocate_struct_function.
4890 (finish_function): Don't free_after_parsing or free_after_compilation.
4891 (set_save_expr_context): Move to tree-optimize.c.
4892 (c_expand_body_1): Use tree_rest_of_compilation.
4893 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
4894 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
4895 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
4896 iterate until closure.
4897 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
4898 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
4899 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
4900 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
4901 * toplev.h (tree_rest_of_compilation): Declare it.
4903 2003-08-29 Richard Henderson <rth@redhat.com>
4905 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
4906 * integrate.c (save_for_inline): Set saved_for_inline.
4907 * c-semantics.c (genrtl_scope_stmt): Check it.
4908 * toplev.c (wrapup_global_declarations): Check it.
4909 (rest_of_handle_inlining): Set and check rtl_inline_init.
4910 (rest_of_compilation): Remove out of date comment.
4912 2003-08-29 Richard Henderson <rth@redhat.com>
4914 * function.c (allocate_struct_function): New, split out of ...
4915 (prepare_function_start, init_function_start): ... here.
4916 * expr.c (init_expr): Use ggc_alloc_cleared.
4917 * stmt.c (init_stmt_for_function): Likewise.
4918 * tree.h (allocate_struct_function): Declare.
4920 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
4922 * config.gcc: Don't use negated character class in shell case
4925 2003-08-29 Richard Henderson <rth@redhat.com>
4927 * function.h (struct function): Move function_frequency and
4928 max_jumptable_ents before start of bit field members.
4930 2003-08-29 Richard Henderson <rth@redhat.com>
4932 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
4933 (fold_builtin_constant_p) ... not here.
4935 2003-08-29 Richard Henderson <rth@redhat.com>
4937 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
4938 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
4939 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
4941 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4943 * builtins.def: Fix typos.
4944 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
4945 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
4946 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
4947 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
4948 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
4950 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
4951 Use ATTR_MATHFN_FPROUNDING_ERRNO.
4953 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
4955 * config.gcc (i386-*-vsta): Fix obvious bogosity.
4957 * fixinc/inclhack.def: Remove special cases for unsupported
4958 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
4959 * fixinc/fixincl.x: Regenerate.
4961 2003-08-29 Mark Mitchell <mark@codesourcery.com>
4963 * Makefile.in (cpp.info): Just state dependencies.
4964 (gcc.info): Likewise.
4965 (gccint.info): Likewise.
4966 (gccinstall.info): Likewise.
4967 (cppinternals.info): Likewise.
4968 (cpp.dvi): Likewise.
4969 (gcc.dvi): Likewise.
4970 (gccint.dvi): Likewise.
4971 (gccinstall.dvi): Likewise.
4972 (cppinternals.dvi): Likewise.
4978 (fsf-funding.7): Likewise.
4979 ($(objdir)/%.info): New pattern rule.
4982 2003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
4984 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
4985 (restage2): Likewise.
4986 (restage3): Likewise.
4987 (restage4): Likewise.
4988 (restageprofile): Likewise.
4989 (restagefeedback): Likewise.
4990 (bubblestrap): Likewise.
4992 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
4994 * config.gcc: Narrow unsupported target match to avoid clobbering
4995 i?86-sequent-sysv4*.
4997 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4999 * builtins.c (mathfn_built_in): Handle new math builtins.
5001 2003-08-28 Per Bothner <per@bothner.com>
5003 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
5004 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
5005 (_cpp_lex_buffer): Likewise.
5006 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
5008 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
5010 * config/s390/s390.md ("*mulsi3_sign"): New insn.
5011 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
5012 ("mulsidi3"): ... this new insn.
5013 ("umulsidi3"): New insn.
5014 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
5015 mixed-mode matching constraints.
5016 ("udivmodsi4", "udivmoddisi3"): New insns.
5017 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
5019 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5021 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
5022 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
5023 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
5024 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
5025 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
5026 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
5027 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
5028 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
5029 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
5030 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
5031 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
5032 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
5033 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
5034 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
5035 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
5036 * tree.c: Assign new type_nodes.
5037 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
5038 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
5039 (float_ptr_type_node, double_ptr_type_node,
5040 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
5042 * doc/extend.texi: Document new builtins.
5044 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5046 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
5047 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
5049 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
5050 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
5051 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
5052 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
5053 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
5054 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
5055 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
5056 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
5057 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
5058 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
5060 * doc/extend.texi: Document new builtins.
5062 2003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
5064 * fixinc/mkfixinc.sh: Remove special case code for unsupported
5065 variants of i?86, powerpcle, and thumb.
5066 * fixinc/mkfixinc.sh: Remove special case code for unsupported
5067 arm and hppa variants.
5069 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5071 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
5072 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
5073 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
5074 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
5075 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
5076 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
5077 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
5078 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
5079 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
5080 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
5082 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
5083 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
5084 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
5085 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
5086 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
5087 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
5088 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
5089 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
5090 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
5091 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
5092 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
5093 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
5094 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
5095 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
5096 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
5097 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
5098 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
5099 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
5100 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
5101 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
5102 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
5103 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
5104 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
5105 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
5106 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
5107 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
5108 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
5109 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
5110 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
5111 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
5112 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
5114 * doc/extend.texi: Document new builtins.
5116 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
5118 * config/s390/s390.c (legitmate_constant_p): Use LARL on
5119 zSeries machines even in 31-bit addressing mode.
5120 (legitimate_reload_constant_p): Likewise.
5121 (legitimize_pic_address): Likewise.
5122 (legitimize_tls_address): Likewise.
5123 (s390_split_branches): Likewise.
5124 (s390_dump_pool): Likewise.
5125 (s390_mainpool_finish): Likewise.
5126 (s390_chunkify_start): Likewise.
5127 (s390_select_rtx_section): Likewise.
5128 * config/s390/s390.md ("doloop_si"): Likewise.
5129 ("pool_start_31", "pool_end_31"): Likewise.
5130 ("pool_start_64", "pool_end_64"): Likewise.
5131 ("main_base_31_small", "main_base_31_large"): Likewise.
5132 ("main_base_64"): Likewise.
5133 ("reload_base_31", "reload_base_64"): Likewise.
5134 ("*movsi_larl"): New insn.
5135 ("cjump", "icjump"): Use long branches on zSeries machines.
5137 ("call"): Use BRASL on zSeries machines.
5138 ("call_value", "call_value_tls"): Likewise.
5139 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
5141 ("*bras", "*brasl", "*basr") ... these new insns.
5142 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
5143 "bas_31_r"): Remove and replace by ...
5144 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
5145 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
5146 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
5147 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
5148 ("*return_si", "*return_di"): Remove and replace by ...
5149 ("*return"): ... this new insn.
5150 ("rotlsi3"): Allow on zSeries machines.
5152 * config/s390/s390.c (legitimize_reload_constant_p): Use
5153 LL/LH type instructions in z/Architecture mode.
5154 * config/s390/s390.md ("*movsi_lli"): Likewise.
5155 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
5156 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
5157 ("*extendqisi2"): Use LB in z/Architecture mode.
5158 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
5159 z/Architecture mode.
5160 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
5163 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
5165 ("ptr_extend"): Allow only in 64-bit mode.
5167 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
5169 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
5170 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
5172 (main): Only use standard_startfile_prefix if native.
5173 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
5175 2003-08-27 Per Bothner <pbothner@apple.com>
5177 * cpperror.c (print_location): Don't check for !pfile->buffer. That
5178 test fails following my 08-21 change, and it seems unnecessary anyway.
5179 (cpp_error): Likewise.
5181 2003-08-27 Jason Merrill <jason@redhat.com>
5183 * real.c (do_multiply): Initialize with memset.
5185 2003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5187 * gcov.c (typedef struct arc_info): New field cs_count.
5188 (accumulate_line_counts): Find cycles correctly.
5190 2003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
5192 * config/s390/s390.c (struct machine_function): Remove member
5194 (s390_optimize_prolog): Replace TEMP_REG argument with
5195 TEMP_USED and BASE_USED. Do not check get_pool_size ().
5196 (general_s_operand): Accept all immediates before reload if
5197 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
5199 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
5200 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
5201 (s390_alloc_pool): New function.
5202 (s390_new_pool): Call it.
5203 (s390_dump_pool): Add REMOTE_LABEL argument.
5204 (s390_chunkify_start): Add BASE_REG argument. Do not check
5206 (s390_chunkify_finish): Add BASE_REG argument. Adapt
5207 s390_dump_pool call.
5208 (s390_pool_count, s390_nr_constants): Remove.
5209 (s390_output_constant_pool): Remove.
5210 (s390_mainpool_start): New function.
5211 (s390_mainpool_finish): New function.
5212 (s390_mainpool_cancel): New function.
5213 (s390_reorg): Implement main literal pool handling.
5214 (s390_emit_prologue): Emit main_pool placeholder instead of
5215 literal_pool_31 / literal_pool_64 insns.
5216 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
5217 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
5218 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
5219 ("main_base_31_small", "main_base_31_large"): New insns.
5220 ("main_base_64", "main_pool"): New insns.
5221 ("literal_pool_31", "literal_pool_64"): Remove.
5223 2003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
5225 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
5227 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
5229 * fixinc/fixincl.x: Regenerate.
5231 2003-08-27 Richard Earnshaw <rearnsha@arm.com>
5233 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
5234 (L_ieee754_dp): New. Include ieee754-df.S.
5235 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
5236 and compilation in apcs-26 mode.
5237 * arm/ieee754-df.S: Likewise.
5238 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
5239 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
5241 2003-08-27 Nicolas Pitre <nico@cam.org>
5243 * arm/ieee754-sf.S: New.
5244 * arm/ieee754-df.S: New.
5246 2003-08-27 Jakub Jelinek <jakub@redhat.com>
5248 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
5249 and restore it if returning NULL.
5251 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
5253 * calls.c (initialize_argument_information): If an argument has no
5254 stack space associated with it, and BLOCK_REG_PADDING is defined,
5255 use it to decide at which end the argument should be padded.
5256 * function.c (assign_parms): Allocate BLKmode stack slots.
5257 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
5258 (mips_pad_reg_upward): Declare.
5259 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
5260 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
5261 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
5262 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
5263 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
5264 (mips_expand_call): Remove code for generating structure shifts.
5265 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
5266 types unless using the EABI.
5267 (function_arg_advance): Don't generate shift instructions.
5268 (function_arg): Don't return them. Don't short-circuit the
5269 check for double structure chunks for DFmode arguments.
5270 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
5271 (mips_expand_prologue): Remove code to emit structure shifts.
5272 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
5273 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
5274 comments to say that only structure returns are a problem.
5276 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
5278 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
5279 Fix to match produced versions.
5280 * fixinc/inclhack.def (longlong_t): New disabled test, ported
5282 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
5284 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
5285 ported from fixinc.ptx.
5287 2003-08-26 Per Bothner <pbothner@apple.com>
5289 * cpplib.h (struct cpp_token): Change type of field line to fileline.
5290 (cpp_error_with_line): Use fileline for appropriate parameter.
5291 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
5292 (struct cpp_reader): Likewise for fields line and directive_line.
5293 (_cpp_begin_message): Use fileline for appropriate parameter.
5294 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
5295 cpp_error): Use fileline for appropriate parameters and variables.
5296 (print_location): New local lin, since it is not a fileline.
5298 2003-08-26 Roger Sayle <roger@eyesopen.com>
5301 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
5302 (FLOAT_TYPE_P): Define in terms of these two new macros.
5303 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
5304 for complex floating point types.
5306 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
5308 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
5309 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
5310 s390_output_pool_entry.
5312 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
5314 * fixinc/inclhack.def (svr4_preproc_lint_on,
5315 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
5316 fixes, ported from fixinc.svr4.
5318 2003-08-26 Mark Mitchell <mark@codesourcery.com>
5320 * doc/install.texi (Prerequisites): Mention GNU make requirement.
5322 * Makefile.in (AR_FOR_TARGET): Export it.
5323 (AR_CREATE_FOR_TARGET): Likewise.
5324 (AR_FLAGS_FOR_TARGET): Likewise.
5325 (AR_EXTRACT_FOR_TARGET): Likewise.
5327 (BUILD_PREFIX): Likewise.
5328 (BUILD_PREFIX_1): Likewise.
5329 (DESTDIR): Likewise.
5330 (GCC_FOR_TARGET): Likewise.
5331 (INCLUDES): Likewise.
5332 (INSTALL_DATA): Likewise.
5333 (LIB1ASMSRC): Likewise.
5334 (LIBGCC2_CFLAGS): Likewise.
5335 (MACHMODE_H): Likewise.
5336 (NM_FOR_TARGET): Likewise.
5337 (RANLIB_FOR_TARGET): Likewise.
5338 (libsubdir): Likewise.
5339 (slibdir): Likewise.
5340 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
5342 (libgcc.a): Don't pass them here.
5343 (stmp-multilib): Or here.
5344 (install-libgcc): Or here.
5345 (install-multilib): Or here.
5346 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
5347 (stage1_build): Or here.
5349 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
5351 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
5352 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
5354 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
5356 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
5357 "*fmaddsf", "*fmsubsf"): New insns.
5359 2003-08-26 Roger Sayle <roger@eyesopen.com>
5361 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
5362 (C1*C2)/X when unsafe math optimizations are allowed.
5363 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
5364 math optimizations. Minor code clean-ups. Recursively call
5365 fold when constructing sub-expressions.
5367 2003-08-26 Roger Sayle <roger@eyesopen.com>
5369 * builtins.c (fold_builtin_bitop): New function to perform constant
5370 folding of ffs, clz, ctz, popcount and parity builtin functions
5371 and their long and long long variants (such as ffsl and ffsll).
5372 (fold_builtin): fold_builtin_bitop when appropriate.
5373 * simplify-rtx.c (simplify_unary_operation): Honor both
5374 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
5375 evaluating clz and ctz at compile-time, for operands wider
5378 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
5380 * builtins.c (build_function_call_expr): Don't set
5381 TREE_SIDE_EFFECTS here.
5382 * expr.c (emit_block_move_via_libcall): Likewise.
5383 (clear_storage_via_libcall): Likewise.
5384 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
5387 * gcse.c (is_too_expensive): New function.
5388 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
5390 2003-08-25 Zack Weinberg <zack@codesourcery.com>
5392 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
5393 commented-out logic to use DCE threads (if present), add
5394 support for POSIX threads.
5395 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
5396 #defines for -pthread. Add -lpthread to LIB_SPEC when
5397 -pthread. In both cases take -mt as a synonym for -pthread
5398 for acc compatibility.
5399 Define GTHREAD_USE_WEAK to 0.
5400 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
5401 Remove old logic for DCE threads from LIB_SPEC.
5402 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
5404 2003-08-25 Roger Sayle <roger@eyesopen.com>
5406 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
5407 return 0 for invalid argument types. Instead drop through to a
5408 call of expand_call at the bottom of function. If op is SQRT,
5409 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
5411 2003-08-25 Richard Henderson <rth@redhat.com>
5413 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
5414 result when op0 is SImode.
5416 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
5418 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
5420 * fixinc/fixincl.x: Regenerate.
5421 * fixinc/tests/base/sys/signal.h: Regenerate.
5423 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
5425 * combine.c (simplify_comparison): Re-enable widening of comparisons
5426 with non-paradoxical subregs of non-REG expressions.
5428 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
5430 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
5432 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
5434 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
5436 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5438 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
5439 * c-pretty-print.h (c_pretty_printer): Now typedef to the
5440 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
5441 (struct c_pretty_print_info): Document. Add new fields.
5442 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
5443 (pp_direct_abstract_declarator): New macro.
5444 (pp_ptr_operator): Likewise.
5445 (pp_simple_type_specifier): Likewise.
5446 (pp_expression): Likewise.
5447 (pp_parameter_list): Rename from pp_parameter_declaration.
5448 * c-pretty-print.c (pp_c_whitespace): Now a function.
5449 (pp_c_left_paren): Likewise.
5450 (pp_c_right_paren): Likewise.
5451 (pp_c_dot): Likewise.
5452 (pp_c_ampersand): Likewise.
5453 (pp_c_arrow): Likewise.
5454 (pp_c_semicolon): Likewise.
5455 (pp_c_type_cast): New function.
5456 (pp_c_space_for_pointer_operator): Likewise.
5457 (pp_c_call_argument_list): Likewise.
5458 (pp_c_cv_qualifier): Adjust prototype.
5459 (pp_c_type_qualifier_list): Likewise.
5460 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
5461 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
5462 Adjust to follow standard grammar.
5463 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
5464 REFERENCE_TYPE. Tidy.
5465 (pp_c_parameter_type_list): Adjust prototype. Tidy.
5466 (pp_c_parameter_declaration): Remove.
5467 (pp_c_abstract_declarator): Adjust prototype.
5468 (pp_c_direct_abstract_declarator): Likewise.
5469 (pp_c_type_id): Likewise.
5470 (pp_c_storage_class_specifier): Likewise.
5471 (pp_c_function_specifier): Likewise.
5472 (pp_c_declaration_specifiers): Likewise.
5473 (pp_c_direct_declarator): Likewise.
5474 (pp_c_declarator): Likewise.
5475 (pp_c_declarator): Likewise.
5476 (pp_c_declaration): Likewise.
5477 (pp_c_attributes): Likewise. Tidy.
5478 (pp_c_function_definition): Adjust prototype.
5479 (pp_c_char): Likewise.
5480 (pp_c_string_literal): Likewise.
5481 (pp_c_integer_constant): Likewise.
5482 (pp_c_character_constant): Likewise.
5483 (pp_c_bool_constant): Likewise.
5484 (pp_c_enumeration_constant): Likewise.
5485 (pp_c_floating_constant): Likewise.
5486 (pp_c_constant): Likewise.
5487 (pp_c_identifier): Likewise.
5488 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
5489 (pp_c_initializer): Adjust prototype.
5490 (pp_c_init_declarator): Likewise.
5491 (pp_c_initializer_list): Likewise.
5492 (pp_c_id_expression): Likewise.
5493 (pp_c_postfix_expression): Likewise.
5494 (pp_c_expression_list): Likewise.
5495 (pp_c_unary_expression): Likewise.
5496 (pp_c_cast_expression): Likewise.
5497 (pp_c_multiplicative_expression): Likewise.
5498 (pp_c_additive_expression): Likewise.
5499 (pp_c_shift_expression): Likewise.
5500 (pp_c_relational_expression): Likewise.
5501 (pp_c_equality_expression): Likewise.
5502 (pp_c_and_expression): Likewise.
5503 (pp_c_exclusive_or_expression): Likewise.
5504 (pp_c_inclusive_or_expression): Likewise.
5505 (pp_c_logical_and_expression): Likewise.
5506 (pp_c_logical_or_expression): Likewise.
5507 (pp_c_conditional_expression): Likewise.
5508 (pp_c_assignment_expression): Likewise.
5509 (pp_c_expression): Likewise. Tidy.
5510 (pp_c_statement): Likewise. Document.
5511 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
5513 * c-lang.c (c_initialize_diagnostics): Update.
5514 * c-common.h (strip_pointer_operator): Declare.
5515 * c-common.c (strip_pointer_operator): Define.
5517 2003-08-25 Mark Mitchell <mark@codesourcery.com>
5520 * tree.h (build_method_type_directly): Declare.
5521 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
5522 (vector_size_helper): Likewise.
5523 * tree.c (build_method_type_directly): New function.
5524 (build_method_type): Use it.
5526 2003-08-24 Richard Henderson <rth@redhat.com>
5528 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
5529 for 16-byte vector modes if sse not enabled; warn for abi change.
5530 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
5532 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
5534 * rtlanal.c (may_trap_p): Simplify an integer comparison.
5536 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
5538 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
5539 comment. Enable for DYNIX/ptx systems (when they switch to
5540 regular fixincludes).
5541 * fixinc/fixincl.x: Regenerate.
5543 2003-08-23 Jason Eckhardt <jle@rice.edu>
5545 * config/i860/t-i860: New.
5546 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
5548 2003-08-23 Jakub Jelinek <jakub@redhat.com>
5550 * c-decl.c (pushdecl): Only put decls which finish_struct will do
5551 something about onto incomplete chain.
5552 (finish_struct): If not removing type from incomplete
5555 2003-08-20 Jan Hubicka <jh@suse.cz>
5558 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
5561 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
5562 const_0_to_15_operand, const_0_to_255_operand): New predicates.
5563 * i386.h (PREDICATE_CODES): Add these.
5564 * i386.c (pinsrw and pextrw patterns): Use them.
5567 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
5570 * expr.c (convert_modes): Deal properly with integer to vector
5571 constant conversion.
5574 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
5576 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
5578 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
5579 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
5580 ("*movhi"): ... this.
5581 ("movqi", "*movqi"): Likewise.
5582 ("movqi_64"): Remove.
5583 ("*zero_extendhisi2_31"): Change predicate to s_operand.
5585 2003-08-23 Dale Johannesen <dalej@apple.com>
5586 * calls.c (emit_library_call_value_1): Fix obvious errors in
5587 arguments to emit_group_store.
5589 2003-08-23 Jason Eckhardt <jle@rice.edu>
5591 * calls.c (emit_library_call_value_1): Remove code related
5592 to LIBGCC_NEEDS_DOUBLE.
5593 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
5594 * doc/tm.texi: Likewise.
5595 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
5597 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
5599 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
5601 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
5603 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
5604 as well. Put memory references in the varargs alias set.
5605 (mips_expand_prologue): Remove varargs handling from here.
5607 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
5609 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
5610 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
5611 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
5612 for function pointer calls.
5613 * config/s390/s390.md ("*negdi2_31"): Likewise.
5615 2003-08-23 Roger Sayle <roger@eyesopen.com>
5617 * combine.c (apply_distributive_law): Correct comment.
5619 2003-08-23 Jason Eckhardt <jle@rice.edu>
5621 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
5623 2003-08-22 Jason Eckhardt <jle@rice.edu>
5625 * config/i860/i860.c (i860_build_va_list): Create the va_decl
5626 declaration. Document the va_list structure.
5627 (i860_va_start): Initialize the va_list structure.
5628 (i860_va_arg): Rewrite completely.
5629 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
5630 * config/i860/varargs.asm: Do not allocate or initialize
5631 a va_list. Return the address of the register save area.
5633 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5635 * config/iq2000/iq2000.c: Fix comment typos.
5636 * config/iq2000/iq2000.md: Likewise.
5638 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5640 * config/iq2000/iq2000.c: Follow spelling conventions.
5641 * config/iq2000/iq2000.h: Likewise.
5642 * config/mn10300/mn10300.c: Likewise.
5644 2003-08-22 Jason Eckhardt <jle@rice.edu>
5646 * config/i860/i860.c (output_move_double): Don't set latehalf
5647 to zero for CONST_INT (since it could be, e.g., -1).
5649 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
5650 (MODSI3_LIBCALL): ...with this one.
5651 (UREMSI3_LIBCALL): Replace this macro...
5652 (UMODSI3_LIBCALL): ...with this one.
5654 2003-08-22 Jason Eckhardt <jle@rice.edu>
5656 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
5657 (output_delayed_branch): Remove prototype.
5658 (single_insn_src_p): Remove prototype.
5659 * config/i860/i860.c (single_insn_src_p): Remove function.
5660 (output_delayed_branch): Remove function.
5661 (output_delay_insn): Remove function.
5662 (va_start): Remove unconditional test and dead code, re-format.
5663 Fix coding style and spelling problems in various comments.
5664 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
5665 (blockage pattern): ...and use it here.
5666 (all define_peephole patterns related to delayed branches): Remove.
5667 Fix coding style and spelling problems in various comments.
5669 2003-08-22 Jason Eckhardt <jle@rice.edu>
5671 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
5672 Remove all uses of the PARAMS macro. Remove superflous prototypes.
5673 Convert all function definitions from traditional to ISO C90 syntax.
5674 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
5675 with 'GCC'. Remove all uses of the PARAMS macro.
5676 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
5677 * config/i860/i860.md: Likewise.
5678 * config/i860/sysv4.h: Likewise.
5679 * config/i860/varargs.asm: Likewise.
5681 2003-08-22 Jason Eckhardt <jle@rice.edu>
5683 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
5685 (tdesc_section): Add prototype.
5686 Update copyright dates.
5687 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
5688 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
5689 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
5690 (targetm): Likewise.
5691 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
5692 for '%d' where necessary.
5693 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
5694 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
5695 by UNITS_PER_WORD when referencing (likewise for .floats).
5696 (I860_SVR4_VARARGS): Rename...
5697 (I860_SVR4_VA_LIST): ...to this.
5698 Call build() with 't' rather than 'field'.
5699 (i860_rtx_costs): New function.
5700 (TARGET_RTX_COSTS): Define.
5701 (i860_internal_label): New function.
5702 (TARGET_ASM_INTERNAL_LABEL): Define.
5703 (i860_file_start): New function.
5704 Update copyright dates.
5705 * config/i860/i860.h (CPP_PREDEFINES): Remove.
5706 (TARGET_CPU_CPP_BUILTINS): Define.
5707 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
5708 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
5709 (ASM_FILE_START): Remove.
5710 (ASM_FILE_START_1): Remove.
5711 (ASM_GLOBALIZE_LABEL): Remove.
5712 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
5713 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
5714 with targetm.asm_out.internal_label.
5715 Update copyright dates.
5716 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
5717 (CPP_PREDEFINES): Remove.
5718 (TARGET_OS_CPP_BUILTINS): Define.
5719 (GLOBAL_ASM_OP): Define.
5720 (ASM_FILE_START): Remove.
5721 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
5722 (TARGET_ASM_FILE_START): Define.
5723 Update copyright dates.
5725 2003-08-22 Jason Eckhardt <jle@rice.edu>
5727 * gcc/config.gcc (i860-*-sysv4*): Add target.
5728 * config/i860/i860-protos.h: New.
5729 * config/i860/i860.c: New.
5730 * config/i860/i860.h: New.
5731 * config/i860/i860.md: New.
5732 * config/i860/sysv4.h: New.
5733 * config/i860/varargs.asm: New.
5734 * config/i860/x-sysv4: New.
5736 2003-08-22 Jason Eckhardt <jle@rice.edu>
5738 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
5739 Remove all uses of PARAMS macro.
5740 Convert all function definitions to ISO C90 syntax.
5741 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
5742 * config/pa/fptr.c: Likewise.
5743 * config/pa/lib2funcs.asm: Likewise.
5744 * config/pa/long_double.h: Likewise.
5745 * config/pa/milli64.S: Likewise.
5746 * config/pa/pa-64.h: Likewise.
5747 * config/pa/pa-hpux.h: Likewise.
5748 * config/pa/pa-hpux10.h: Likewise.
5749 * config/pa/pa-hpux11.h: Likewise.
5750 * config/pa/pa-linux.h: Likewise.
5751 * config/pa/pa-modes.def: Likewise.
5752 * config/pa/pa-osf.h: Likewise.
5753 * config/pa/pa-pro-end.h: Likewise.
5754 * config/pa/pa.md: Likewise.
5755 * config/pa/pa32-linux.h: Likewise.
5756 * config/pa/pa64-linux.h: Likewise.
5757 * config/pa/pa64-hpux.h: Likewise.
5758 * config/pa/pa64-regs.h: Likewise.
5759 * config/pa/quadlib.c: Likewise.
5760 * config/pa/rtems.h: Likewise.
5761 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
5762 all uses of the PARAMS macro.
5763 * config/pa/pa.h: Likewise.
5764 * config/pa/som.h: Likewise.
5766 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
5767 Remove all uses of PARAMS macro.
5768 Convert all function definitions to ISO C90 syntax.
5769 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
5770 Remove all uses of PARAMS macro.
5771 * config/iq2000.h: Remove all uses of PARAMS macro.
5772 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
5774 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
5776 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
5777 * config/s390/s390.c (gen_consttable): Remove.
5778 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
5779 (s390_output_pool_entry): New function.
5780 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
5781 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
5782 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
5783 (UNSPECV_POOL_ENTRY): ... this new constant.
5784 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
5785 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
5786 ("*pool_entry"): ... and replace by this new insn.
5787 ("literal_pool_31"): Do not emit anchor label if pool empty.
5789 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
5790 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
5791 (s390_fixup_clobbered_return_reg): Remove.
5792 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
5793 (s390_return_addr_rtx): Always retrieve return address from save area
5794 slot. Use save_return_addr_p to force slot to be filled.
5795 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
5797 2003-08-22 Chris Demetriou <cgd@broadcom.com>
5799 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
5800 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
5801 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
5802 around SB-1 errata if TARGET_FIX_SB1 is set.
5803 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
5804 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
5806 2003-08-22 Roger Sayle <roger@eyesopen.com>
5808 * hashtable.c (ht_expand): Avoid calculating rehash for the common
5809 case that the first probe hits an empty hash table slot.
5811 2003-08-22 Mark Mitchell <mark@codesourcery.com>
5813 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
5815 2003-08-22 Mark Mitchell <mark@codesourcery.com>
5817 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
5818 (ptr_extend_plus_imm): ... this.
5819 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
5820 optimization in C++.
5821 (ia64_output_mi_thunk): Support ILP32 mode.
5823 2003-08-22 Bernardo Innocenti <bernie@develer.com>
5825 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
5827 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
5829 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5831 * config/i386/i386.c (const_int_1_operand): Simplify an
5834 2003-08-22 Alan Modra <amodra@bigpond.net.au>
5836 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
5837 * config/rs6000/ppc64-fp.c: Likewise.
5839 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5841 * cfgcleanup.c: Fix comment typos.
5842 * emit-rtl.c: Likewise.
5843 * optabs.c: Likewise.
5844 * ra-build.c: Likewise.
5845 * rtlanal.c: Likewise.
5848 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5850 * c-decl.c: Fix comment formatting.
5851 * cfgrtl.c: Likewise.
5852 * combine.c: Likewise.
5853 * convert.c: Likewise.
5854 * dominance.c: Likewise.
5855 * dwarf2out.c: Likewise.
5856 * dwarfout.c: Likewise.
5857 * expmed.c: Likewise.
5858 * fold-const.c: Likewise.
5860 * genattrtab.c: Likewise.
5861 * ggc-common.c: Likewise.
5862 * mips-tfile.c: Likewise.
5863 * regmove.c: Likewise.
5865 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5867 * builtin-attrs.def: Fix comment formatting.
5868 * c-pretty-print.c: Likewise.
5869 * diagnostic.h: Likewise.
5870 * langhooks.h: Likewise.
5871 * recog.c: Likewise.
5872 * simplify-rtx.c: Likewise.
5873 * tree.def: Likewise.
5875 2003-08-22 Bernardo Innocenti <bernie@develer.com>
5877 * config/m68k/m68k-protos.h: Convert to ISO C90.
5878 * config/m68k/m68k.c: Likewise.
5880 2003-08-21 Bernardo Innocenti <bernie@develer.com>
5881 Paul Dale <pauli@snapgear.com>
5882 Peter Barada <peter@baradas.org>
5884 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
5887 2003-08-21 Zack Weinberg <zack@codesourcery.com>
5889 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
5890 * config.gcc (*-*-openbsd): Don't set tm_file.
5891 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
5892 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
5893 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
5894 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
5895 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
5896 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
5897 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
5898 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
5899 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
5900 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
5901 xscale-*-coff): Use explicit and complete lists of target headers
5902 to include. Move definitions to tm_defines where appropriate.
5903 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
5904 not-yet-contributed configuration.
5906 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
5907 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
5908 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
5909 * config/i386/nto.h, config/iq2000/iq2000.h,
5910 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
5911 * config/m68k/linux.h, config/m68k/m68k-aout.h
5912 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
5913 * config/m68k/netbsd.h, config/m68k/openbsd.h
5914 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
5915 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
5916 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
5917 Remove includes of other target config headers, and
5918 definitions of macros moved to tm_defines lists. Add #undefs
5919 where now necessary to prevent redefinition warnings.
5921 * config/h8300/coff.h: New file split out of...
5922 * config/h8300/elf.h: ...here.
5923 * config/m68k/hp320base.h: New file split out of...
5924 * config/m68k/hp320.h: ...here.
5925 * config/rs6000/lynxbase.h: New file split out of...
5926 * config/rs6000/lynx.h: ...here.
5928 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
5929 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
5931 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
5932 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
5933 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
5934 Remove unnecessary #ifndef.
5935 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
5936 [under IN_LIBGCC2] with config/.
5938 2003-08-21 Per Bothner <pbothner@apple.com>
5940 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
5942 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
5943 by return_at_eof check. Always call _cpp_pop_buffer at end.
5945 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
5948 * config/h8300/h8300.md (two anonymous patterns): Remove.
5950 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
5952 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
5953 * config/mips/mips.c (function_arg_pass_by_reference): Never return
5956 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
5958 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
5959 and similarly in (A | C) == D where C & ~D != 0.
5961 2003-08-20 Geoffrey Keating <geoffk@apple.com>
5964 * configure.in: When testing with_libs and with_headers, treat
5965 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
5966 * configure: Regenerate.
5968 2003-08-20 Peter Barada <peter@baradas.org>
5970 * longlong.h (umul_ppmm): Add ColdFire support.
5972 2003-08-20 Peter Barada <peter@baradas.org>
5973 Bernardo Innocenti <bernie@develer.com>
5975 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
5976 * config/m68k/m68k.h: Likewise.
5977 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
5978 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
5979 * config/m68k/linux.h: Likewise.
5980 * config/m68k/m68k.c: Likewise.
5981 * config/m68k/m68k.md: Likewise.
5982 * config/m68k/m68kelf.h: Likewise.
5983 * config/m68k/netbsd-elf.h: Likewise.
5984 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
5986 2003-08-20 Bernardo Innocenti <bernie@develer.com>
5988 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
5989 * config/m68k/m68k.md: Likewise.
5991 2003-08-20 Mark Mitchell <mark@codesourcery.com>
5995 2003-08-19 Mark Mitchell <mark@codesourcery.com>
5996 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
5997 types with precisions other than those given by native machine
6000 2003-08-20 Gunther Nikl <gni@gecko.de>
6002 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
6003 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
6004 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
6005 * config/m68k/m68k.md (anonymous define_insn): Likewise
6006 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
6007 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
6008 code selected by NO_ASM_FMOVECR
6010 2003-08-20 Gunther Nikl <gni@gecko.de>
6012 * config/m68k/m68k.c (output_move_const_into_data_reg,
6013 output_move_himode): unify MOTOROLA/MIT handling of moveq
6014 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
6017 2003-08-20 Gunther Nikl <gni@gecko.de>
6019 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
6021 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
6022 HOST_WIDE_INT_PRINT_DEC with %wd
6024 2003-08-20 Loren James Rittle <ljrittle@acm.org>
6026 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
6029 2003-08-20 Roger Sayle <roger@eyesopen.com>
6032 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
6033 operands before calling tree_int_cst_lt when performing associative
6036 2003-08-20 Jason Merrill <jason@redhat.com>
6038 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
6039 (EXPR_CHECK): Don't check for 'r' or 's' if we're
6040 checking IS_EXPR_CODE_CLASS.
6041 * calls.c (calls_function_1): Likewise.
6042 * fold-const.c (fold): Likewise.
6043 * tree.c (iterative_hash_expr): Likewise.
6044 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
6046 2003-08-20 Gunther Nikl <gni@gecko.de>
6048 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
6049 depending on MOTOROLA_BSR
6050 * config/m68k/m68k.md (anonymous define_insn): Likewise
6052 2003-08-20 Jason Merrill <jason@redhat.com>
6054 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
6055 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
6056 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
6057 * dojump.c (do_jump): Likewise.
6058 * fold-const.c (operand_equal_p, fold): Likewise.
6059 (tree_expr_nonnegative_p): Likewise.
6061 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
6062 TYPE_USER_ALIGN for FIELD_DECLs.
6064 * attribs.c (decl_attributes): Rebuild the function pointer type after
6065 changing the target type.
6066 * tree.c (get_qualified_type): Also check that the attributes match.
6068 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
6070 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
6071 * objc/config-lang.in (stagestuff): ... to here.
6073 2003-08-19 Mark Mitchell <mark@codesourcery.com>
6076 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
6077 NOP_EXPR) when necessary.
6078 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
6079 types with precisions other than those given by native machine
6082 2003-08-19 Geoffrey Keating <geoffk@apple.com>
6084 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
6085 because some macro is defined.
6087 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
6089 * config/i386/darwin.h (ASM_SPEC): New.
6090 (SUBTARGET_EXTRA_SPECS): New.
6091 * config/rs6000/darwin.h (ASM_SPEC): New.
6092 (SUBTARGET_EXTRA_SPECS): New.
6093 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
6094 a cross-compiler between two different processors on Darwin.
6095 * configure: Regenerate.
6097 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
6099 * builtins.c: Fix comment typos.
6100 * c-common.c: Likewise.
6101 * c-decl.c: Likewise.
6102 * c-pretty-print.c: Likewise.
6103 * cfgbuild.c: Likewise.
6104 * cfglayout.c: Likewise.
6105 * cfgloopanal.c: Likewise.
6106 * cgraphunit.c: Likewise.
6107 * cppfiles.c: Likewise.
6108 * dwarfout.c: Likewise.
6110 * fold-const.c: Likewise.
6112 * ggc-page.c: Likewise.
6113 * haifa-sched.c: Likewise.
6114 * pretty-print.c: Likewise.
6117 * value-prof.c: Likewise.
6119 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
6121 * c-decl.c: Follow spelling conventions.
6122 * cppfiles.c: Likewise.
6124 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
6126 * c-common.c: Fix comment formatting.
6127 * c-common.h: Likewise.
6128 * c-decl.c: Likewise.
6129 * cppinit.c: Likewise.
6130 * cpplib.h: Likewise.
6131 * emit-rtl.c: Likewise.
6132 * input.h: Likewise.
6133 * line-map.h: Likewise.
6136 * simplify-rtx.c: Likewise.
6138 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
6140 * unwind-c.c: Add libgcc-style exception.
6141 * unwind-dw2.c: Likewise.
6142 * unwind-pe.h: Likewise.
6143 * unwind-sjlj.c: Likewise.
6144 * unwind.inc: Likewise.
6146 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
6148 PR c/5582 PR c++/10538
6149 * langhooks-def.h (lhd_decl_uninit): Declare.
6150 (LANG_HOOKS_DECL_UNINIT): New macro.
6151 (LANG_HOOKS_INITIALIZER): Adjust.
6152 * langhooks.h (struct lang_hooks): Add new field
6154 * langhooks.c (lhd_decl_uninit): Define.
6155 * c-common.c (c_decl_uninit_1): New function.
6156 (c_decl_uninit): New function.
6157 (warn_init_self): Define.
6158 * c-common.h (c_decl_uninit): Declare.
6159 (warn_init_self): Declare.
6160 * c.opt: Introduce -Winit-self.
6161 * c-opts.c (c_common_handle_options): Set warn_init_self.
6162 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
6163 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
6164 * function.c (uninitialized_vars_warning): Call the language hook.
6165 * doc/invoke.texi: Document -Winit-self.
6167 2003-08-19 Chris Demetriou <cgd@broadcom.com>
6169 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
6170 to use better predicates and constraints. Define new
6171 instruction to handle "trap_if" with DI-mode arguments.
6172 (conditional_trap): FAIL if trap code is not 0.
6174 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
6176 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
6177 strstr with $pb to a strcompare with "<pic base>"
6178 (ix86_output_addr_diff_elt): Output the real pic base.
6180 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
6182 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
6183 (LANG_HOOKS_INITIALIZER): Correct.
6184 * c-lang.c: Likewise.
6186 2003-08-19 Jan Hubicka <jh@suse.cz>
6188 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
6189 (cgraph_varpool_mark_needed_node): Likewise.
6190 * cgraph.h (notice_global_symbol): Declare
6191 * varasm.c (notice_global_symbol): Break out from ...
6192 (assemble_start_function): ... here; update for variables.
6193 (assemble_variable): Use notice_global_symbol.
6195 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
6197 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
6198 expect SFmode and DFmode arguments to be passed in FPRs,
6199 regardless of the underlying type.
6201 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
6204 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
6205 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
6207 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
6210 * c-typeck.c (set_init_index): Check for negative index.
6212 2003-08-18 Bob Wilson <bob.wilson@acm.org>
6214 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
6216 * config/xtensa/crtn.asm (_init, _fini): Likewise.
6217 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
6218 __umodsi3, __modsi3): Likewise.
6219 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
6222 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
6224 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
6226 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
6228 * config/mips/mips.md: Quote C code in braces. Remove use of
6229 fake const0_rtx operands. Remove double backslashes. Use \;.
6230 Remove workarounds for bogus warnings.
6232 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
6234 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
6235 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
6236 rather than TARGET_MIPS4300.
6237 (mulsf3_internal, mulsf3_r4300): Likewise.
6239 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
6241 * config/mips/mips.md: Renumber unspecs. Clean up comments.
6243 2003-08-17 Roger Sayle <roger@eyesopen.com>
6245 * simplify-rtx.c (associative_constant_p): New function to test
6246 whether an RTX expression is an immediate constant.
6247 (simplify_associative_operation): New function to perform some
6248 reassociation optimizations of associative binary expressions.
6249 (simplify_binary_operation): Use simplify_associative_operation
6250 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
6251 Floating point expressions are only reassociated when unsafe
6252 math optimizations are permitted.
6254 2003-08-17 Andreas Jaeger <aj@suse.de>
6256 * config/alpha/alpha.md: Remove usage of PARAMS.
6258 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
6259 * config/i386/i386-interix.h: Likewise.
6260 * config/i386/winnt.c: Likewise.
6261 * config/i386/cygming.h: Likewise.
6262 * config/i386/cygwin2.c: Likewise.
6263 * config/darwin.c: Likewise.
6264 * config/darwin-c.c: Likewise.
6265 * config/darwin-protos.h: Likewise.
6266 * config/darwin.h: Likewise.
6267 * config/s390/s390-protos.h: Likewise.
6268 * config/s390/s390.c: Likewise.
6269 * config/ia64/ia64.c: Likewse
6270 * config/ia64/ia64-protos.h: Likewise.
6271 * config/ia64/ia64-c.c: Likewise.
6273 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6275 * config/sparc/sparc.c: Convert to ISO C.
6277 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
6278 * config/sparc/sparc.c: Likewise.
6280 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
6283 * stmt.c (expand_expr_stmt_value): Don't warn about any void
6286 2003-08-16 Jan Hubicka <jh@suse.cz>
6288 * i386.c (ix86_fntype_regparm): Rename from ...
6289 (ix86_function_regparm): ... this one; add fastcall and local
6291 (ix86_function_ok_for_sibcall): Update.
6292 (ix86_return_pops_args): Likewise.
6293 (init_cumulative_args): Likewise.
6294 (x86_can_output_mi_thunk): Likewise.
6295 (function_arg): Fix formating.
6296 (x86_this_parameter): Fix fastcall.
6297 (x86_output_mi_thunk): Likewise.
6299 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
6300 body as reachable; mark nested functions as needed too.
6301 (dump_cgraph): Do not output global.calls.
6302 * cgraph.h (cgraph_global_info): Kill.
6303 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
6304 (record_call_1): Speedup.
6305 (cgraph_analyze_function): Break out from ...; compute inlining
6307 (cgraph_finalize_compilation_unit): ... here.
6308 (cgraph_mark_inline): Kill computation of calls.
6309 (cgraph_decide_inlining): Do not compute most of initial values.
6311 2003-08-14 Roger Sayle <roger@eyesopen.com>
6313 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
6314 to negate if either operand is easy to negate, if we don't care
6315 about sign-dependent rounding.
6316 (negate_expr): Make the logic to negate a REAL_CST explicit.
6317 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
6318 that's easy to negate, if we don't honor sign-dependent rounding.
6319 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
6320 negate, and the symmetric A * -B as -A * B if A is easy to negate.
6321 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
6322 -C/D if B and C are cheap to negate. Add an explicit rule to
6323 optimize X/-1.0 as -X when we don't care about signaling NaNs.
6325 2003-08-14 Zack Weinberg <zack@codesourcery.com>
6327 * Makefile.in (tm_file): Rename tm_include_list.
6328 (tm_p_file): Rename tm_p_include_list.
6329 (build_xm_file): Rename build_xm_include_list.
6330 (host_xm_file): Rename host_xm_include_list.
6331 (xm_file): Rename xm_include_list.
6332 (xm_file_list): Add to be substituted.
6333 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
6335 (bt-load.o): Add missing dependency on $(TM_H).
6336 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
6337 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
6338 build_xm_file, generate both *_file_list and *_include_list
6339 values from it. (xm_file_list was formerly not being generated.)
6340 In *_include_list, prefix the names of all headers found in
6341 $(srcdir)/config with config/. In each loop, consider only
6342 the special case files that can actually appear in that list.
6343 AC_SUBST all *_file_list and all *_include_list variables; do
6344 not AC_SUBST the plain *_file variables.
6345 * configure: Regenerate.
6347 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6349 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
6351 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6353 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
6355 (attr_length_call): Include it here. Improve length estimate for
6357 (output_call): Use targetm.binds_local_p.
6359 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6361 * builtins.c (CASE_MATHFN): New helper macro.
6362 (mathfn_built_in): Simplify and sort.
6364 * protoize.c (substr): Delete, callers changed to `strstr'.
6366 2003-08-13 Zack Weinberg <zack@codesourcery.com>
6368 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
6369 * config/iq2000/xm-iq2000.h: Delete file.
6371 2003-08-13 Geoffrey Keating <geoffk@apple.com>
6373 * gengtype.c (walk_type): Process a subobject before processing
6374 the pointer that points to the subobject.
6376 2003-08-13 Per Bothner <pbothner@apple.com>
6378 * regclass.c (init_reg_modes): Make non-static.
6379 Rename to init_reg_modes_once per new naming convention.
6380 (init_regs): Don't call init_reg_modes here.
6381 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
6382 * rtl.h (init_reg_modes_once): New declaration.
6383 * toplev.c (backend_init): Call init_regs after init_emit_once.
6385 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
6387 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
6388 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
6390 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
6392 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
6393 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
6395 2003-08-13 Dale Johannesen <dalej@apple.com>
6397 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
6398 handling of decrement-and-branch farther than 32 bits.
6400 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
6402 * configure.in (make_compare_target): Move test to ...
6403 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
6404 * configure: Regenerate.
6406 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
6408 * config/mips/iris6.h: Convert to C90 prototypes.
6409 * config/mips/irix6-libc-compat.c: Likewise.
6410 * config/mips/mips-protos.h: Likewise.
6411 * config/mips/mips.c: Likewise.
6413 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
6415 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
6416 for selected machines. Comment heavily.
6417 fixinc/fixincl.x: Rebuild.
6418 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
6420 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
6422 * config/mips/mips.h: Tweak various comments.
6423 * config/mips/mips.c: Likewise.
6425 2003-08-11 James E Wilson <wilson@tuliptree.org>
6427 PR optimization/11319
6429 * alias.c (find_base_value, case REG): Return 0 not src if no base
6432 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6434 * gcse.c (gmalloc): Fix last change.
6436 2003-08-11 Roger Sayle <roger@eyesopen.com>
6438 * simplify-rtx.c (simplify_binary_operation): Replace calls to
6439 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
6440 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
6441 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
6443 2003-08-11 Roger Sayle <roger@eyesopen.com>
6445 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
6446 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
6447 typecode for an ABS_EXPR.
6449 * doc/c-tree.texi: Document ABS_EXPR.
6451 2003-08-11 Roger Sayle <roger@eyesopen.com>
6453 * fold-const.c (fold): Optimize any associative floating point
6454 operator with -funsafe-math-optimizations, not just MULT_EXPR.
6456 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
6458 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
6459 information in SHmedia case too.
6460 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
6462 (__set_fpscr): Use an access via GOT for PIC case.
6464 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
6466 * configure.in (intermodule): Make switch test more portable.
6467 * configure: Regenerate.
6469 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
6471 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
6472 (restrap): Likewise.
6474 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6476 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
6477 (grealloc): Size argument is a size_t.
6478 (gcalloc): New function. Use throughout in lieu of
6481 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
6483 * config/ia64/ia64.c (ia64_reorg): Likewise.
6484 * conflict.c (conflict_graph_new): Likewise.
6485 * fixinc/fixincl.c (run_compiles): Likewise.
6486 * genattrtab.c (optimize_attrs): Likewise.
6487 * genrecog.c (new_decision): Likewise.
6488 * haifa-sched.c (schedule_block): Likewise.
6489 * hashtable.c (ht_create): Likewise.
6491 2003-08-11 Bob Wilson <bob.wilson@acm.org>
6493 * config/xtensa/lib2funcs.S: Fix whitespace.
6494 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
6495 syntax where appropriate. Remove unnecessary backslash escapes.
6496 Reformat comments and fix some code formatting.
6497 (extendqisi2): Rearrange conditional.
6498 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
6499 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
6502 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
6504 * config/mips/mips.c: Various formatting fixes.
6505 (override_options): Resync -mtune handling with gas.
6506 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
6507 * config/mips/mips.h: More formatting fixes.
6508 (mips_abi): Move declaration.
6509 * config/mips/mips.md (exception_receiver): Add mode to
6512 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
6514 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
6516 (bdesc_1arg): Remove evsplati and evsplatfi.
6518 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
6520 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
6523 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6525 * builtins.c (expand_builtin_strcat): Optimize constant strings.
6527 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
6529 * pretty-print.c (pp_base_indent): Rename from pp_indent.
6530 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
6531 (struct c_pretty_print_info): Add more fields.
6532 (pp_c_left_paren): Move to c-pretty-print.c.
6533 (pp_c_right_paren): Likewise.
6534 (pp_c_left_brace): Likewise.
6535 (pp_c_right_brace): Likewise.
6536 (pp_c_left_bracket): Likewise.
6537 (pp_c_right_bracket): Likewise.
6538 (pp_c_declarator): Declare.
6539 (pp_c_direct_declarator): Likewise.
6540 (pp_c_specifier_qualifier_list): Likewise.
6541 (pp_c_type_id): Likewise.
6542 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
6543 (pp_c_type_qualifier_list): New.
6544 (pp_c_pointer): Likewise.
6545 (pp_c_parameter_type_list): Likewise.
6546 (pp_c_function_definition): Likewise.
6547 (pp_c_id_expression): Likewise.
6548 (pp_c_simple_type_specifier): Tidy.
6549 (pp_c_unary_expression): Likewise.
6550 (pp_c_expression): Likewise.
6551 (pp_c_pretty_printer_init): Likewise.
6552 (pp_c_specifier_qualifier_list): Rework..
6553 (pp_c_abstract_declarator): Likewise.
6554 (pp_c_postfix_expression): Likewise.
6555 (pp_c_primary_expression): Likewise.
6556 (pp_c_cast_expression): Likewise.
6557 (pp_c_direct_abstract_declarator): Likewise.
6558 (pp_c_storage_class_specifier): Likewise.
6559 (pp_c_function_specifier): Likewise.
6560 (pp_c_declaration_specifiers): Likewise.
6561 (pp_c_direct_declarator): Likewise.
6562 (pp_c_declarator): Likewise.
6563 (pp_c_declaration): Likewise.
6564 (pp_c_statement): Likewise.
6565 (pp_c_integer_constant): Rename from pp_c_integer_literal.
6566 (pp_c_character_constant): Rename from pp_c_character_literal.
6567 (pp_c_bool_constant): Rename from pp_c_bool_literal.
6568 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
6569 (pp_c_floating_constant): Rename from pp_c_real_literal.
6570 (pp_c_constant): Rename from pp_c_literal.
6571 * c-lang.c: Include diagnostic.h and c-pretty-print.h
6572 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
6573 (c_initialize_diagnostics): New.
6574 * Makefile.in (c-lang.o): Update dependency.
6576 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
6578 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
6580 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
6582 * config/mips/mips.c (mips_no_mips16_string): Remove.
6583 (override_options): Don't handle -mips16 as part of -mipsN.
6584 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
6585 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
6586 (TARGET_OPTIONS): Remove -mno-mips16.
6588 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
6590 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
6591 (coprocessor2_operand): Likewise.
6592 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
6593 (lookup_name): Remove declaration.
6594 (abort_with_insn): Remove. Replace all uses with fatal_insn.
6595 (mips16, mips_abicalls): Remove.
6596 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
6597 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
6598 (coprocessor_operand, coprocessor2_operand): Remove.
6599 (override_options): Don't set mips16 or mips_abicalls.
6600 (print_operand): Don't expect SIGN_EXTEND operands.
6601 (mips_secondary_reload_class): Likewise.
6602 (mips_output_conditional_branch): Remove disabled long-branch code.
6603 * config/mips/mips.h (call_used_regs): Remove declaration.
6604 (may_call_alloca): Likewise.
6605 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
6606 (mips_abicalls, mips16): Remove declarations.
6607 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
6608 (CC1_SPEC): Remove outdated comment.
6609 (MIPS_VERSION, MACHINE_TYPE): Remove.
6610 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6611 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
6612 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
6613 (PUSH_ROUNDING): Likewise.
6614 (ASSEMBLER_SCRATCH_REGNUM): Remove.
6615 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
6616 and mips16 with TARGET_MIPS16.
6618 2003-08-09 Per Bothner <pbothner@apple.com>
6620 * cppinit.c (cpp_read_main_file): Split out source-independent
6621 initialization to separate function ...
6622 (cpp_post_options): New function.
6623 * cppfiles.c (cpp_stack_file): Rename public name to ...
6624 (_cpp_stack_file): New internal function name.
6625 * cpplib.h: Update accordingly.
6626 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
6627 (cpp_read_main_file): Don't initialize line here.
6628 * c-opts.c (c_common_post_options): Call cpp_post_options.
6629 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
6630 * fix-header.c (read_scan_file): Call cpp_post_options.
6632 2003-08-09 Per Bothner <per@bothner.com>
6634 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
6636 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6638 * pa.c (pa_asm_output_mi_thunk): Fix typo.
6640 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
6642 PR preprocessor/11839
6643 * cppfiles.c (open_file): Handle ENOTDIR.
6645 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
6648 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
6650 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6652 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
6653 source/destination is not a register operand.
6655 2003-08-08 Richard Henderson <rth@redhat.com>
6658 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
6659 RETURN_ADDRESS_POINTER_REGNUM.
6660 (ia64_expand_prologue): Don't frob it.
6661 (ia64_output_function_epilogue): Likewise.
6662 (ia64_return_addr_rtx): New.
6663 (ia64_split_return_addr_rtx): New.
6664 * config/ia64/ia64-protos.h: Update.
6665 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
6666 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
6667 (GENERAL_REGNO_P): Don't check it.
6668 (AR_*_REGNUM): Renumber.
6669 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
6670 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
6671 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
6672 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
6673 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
6674 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
6675 (movdi_ret_addr): New.
6677 2003-08-08 Geoffrey Keating <geoffk@apple.com>
6679 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
6681 2003-08-08 Roger Sayle <roger@eyesopen.com>
6683 * tree.h (get_identifier) Define a macro form of get_identifier
6684 that calls get_identifier_with_length when the string is constant.
6685 (get_identifier_with_length): Change type of second argument to
6686 size_t in prototype.
6687 * stringpool.c (get_identifier): Undefine the macro before giving
6688 the function definition.
6689 (get_identifier_with_length): Change type of second argument to
6690 size_t in function definition.
6691 * hashtable.c (calc_hash): Change type of second argument to size_t.
6692 (ht_lookup): Change type of third argument to size_t. Reorganize
6693 to speed-up the cases where the hash table slot is empty, or the
6694 first probe matches (i.e. there isn't a collision).
6695 * hashtable.h (ht_lookup): Adjust function prototype.
6697 2003-08-08 Bernardo Innocenti <bernie@develer.com>
6701 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
6703 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
6705 * common.opt: Add debug switches.
6706 * flags.h (use_gnu_debug_info_extensions): Boolify.
6707 * opts.c (write_symbols, debug_info_level,
6708 use_gnu_debug_info_extensions): Move from toplev.c.
6709 (set_debug_level): New.
6710 (common_handle_options): Handle debug switches.
6711 (print_help): Display target options directly.
6712 * toplev.c (debug_hooks): Don't initialize.
6713 (write_symbols, debug_info_level,
6714 use_gnu_debug_info_extensions): Move to opts.c.
6715 (debug_args, display_help, decode_g_option): Remove.
6716 (process_options): Set no debug if level zero here,
6717 and no-debug-hooks. Error here if impossible debug format selected.
6718 * toplev.h (display_help, decode_g_option): Remove.
6720 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
6722 * tree.c (get_file_function_name_long): Fix size of alloca() area.
6724 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
6726 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
6727 and gcc_cv_prog_cmp_skip.
6728 * configure: Regenerate.
6730 2003-08-08 Stan Cox <scox@redhat.com>
6732 * config/iq2000: New port.
6733 * config.gcc (iq2000-*-elf): Added.
6734 * doc/install.texi (Specific): Add iq2000 description.
6736 2003-08-08 Andreas Schwab <schwab@suse.de>
6738 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
6739 and insert missing empty argument.
6740 * configure: Regenerate.
6742 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6744 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
6745 (attr_length_millicode_call): Likewise.
6746 (attr_length_call): Likewise. Revise some maximum insn lengths.
6747 (attr_length_indirect_call): Likewise.
6748 (output_call): Fix thinko that added extra nop.
6749 * pa.h (IN_NAMED_SECTION_P): Define.
6752 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
6753 __STDC_EXT__ when using C++ dialect.
6755 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
6757 * sh.c (calc_live_regs): If the return address pointer is live,
6759 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
6760 for saves / restores.
6761 (sh_expand_epilogue): If sh_media_register_for_return returns a
6762 register number, flag the instructions that restores PR_MEDIA_REG
6764 Remove dead update of offset.
6765 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
6766 we can use the result of get_hard_reg_initial_val.
6767 * sh.md (UNSPEC_RA): New constant.
6768 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
6769 (load_ra). Handle UNSPEC_RA.
6770 (sibcall_media): Use PR_MEDIA_REG.
6772 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
6773 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
6774 needs saving on SHmedia.
6776 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
6778 * config/s390/s390.md: Replace all occurrences of \\t with \t.
6780 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
6782 * local-alloc.c (combine_regs): Fix comment typo.
6784 2003-08-06 Zack Weinberg <zack@codesourcery.com>
6786 * c-decl.c (builtin_decls): Replace with first_builtin_decl
6787 and last_builtin_decl.
6788 (c_init_decl_processing): Initialize both.
6789 (c_reset_state): Iterate from first_builtin_decl to
6790 last_builtin_decl inclusive to reintroduce builtins.
6792 2003-08-06 David Mosberger <davidm@hpl.hp.com>
6794 * doc/extend.texi (Function Attributes): Document the IA-64 version
6795 of the "model" attribute.
6797 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
6798 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
6799 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
6801 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
6802 (ia64_encode_section_info): Likewise.
6803 (ia64_attribute_table): Add "model" attribute.
6804 (TARGET_ENCODE_SECTION_INFO): Define.
6805 (small_addr_symbolic_operand): New function.
6806 (got_symbolic_operand): Return 0 for a symbolref to an object
6807 in the small address area.
6808 (enum ia64_addr_area): New type.
6809 (small_ident1): New variable.
6810 (small_ident2): Likewise.
6811 (init_idents): New function.
6812 (ia64_get_addr_area): Likewise.
6813 (ia64_encode_addr_area): Likewise.
6814 (ia64_encode_section_info): Likewise.
6815 (ia64_expand_load_address): For symbolic references to objects in
6816 the small-address-area, load the address via gen_rtx_SET() (which,
6817 eventually, will expand into "addl").
6819 2003-08-06 Per Bothner <pbothner@apple.com>
6821 * line-map.h (fileline): New typedef.
6822 (struct line_map, linemap_add, linemap_lookup): Use it.
6823 * input.h (struct location_s): Comment notes that long-term we want
6824 to replace it by fileline.
6826 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
6828 Fix SHcompact exception handling:
6829 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
6830 by the prologue, return a MEM with return_address_pointer_rtx
6832 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
6833 (RETURN_ADDR_OFFSET): Don't define.
6834 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
6835 registers that are visible in compact mode. Show that SHmedia
6836 registers still exist in compact mode, even if there are not
6838 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
6839 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
6840 and DW_EH_PE_pcrel for pic data.
6841 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
6842 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
6843 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
6844 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
6845 * sh.md (movsi_media-1): New splitter.
6847 2003-08-06 Graeme Peterson <gp@qnx.com>
6849 * config/i386/nto.h: New.
6850 * config/i386/t-nto: New.
6851 * config.gcc (i[34567]86-*-nto-qnx*): New.
6853 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
6855 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
6857 2003-08-06 Alan Modra <amodra@bigpond.net.au>
6859 * calls.c (load_register_parameters): Arrange for call_fusage to
6860 report the whole register as used when shifting to the msb.
6862 2003-08-05 Roger Sayle <roger@eyesopen.com>
6864 * builtins.c (expand_builtin): When not optimizing, call the library
6865 function for all builtins that have library functions (except alloca).
6867 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
6869 * c.opt: Introduce -fworking-directory.
6870 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
6871 * c-common.h (flag_working_directory): Declare.
6872 * c-common.c (flag_working_directory): Define.
6873 * c-opts.c (c_common_handle_options): Set it.
6874 (sanitize_cpp_opts): Set...
6875 * cpplib.h (struct cpp_options): ... working_directory option.
6876 (struct cpp_callbacks): Add dir_change.
6877 * cppinit.c (read_original_filename): Call...
6878 (read_original_directory): New. Look for # 1 "directory//"
6880 (cpp_read_main_file): Call dir_change callback if working_directory
6882 * gcc.c (cpp_unique_options): Pass -g*.
6883 * c-lex.c (cb_dir_change): New.
6884 (init_c_lex): Set dir_change callback.
6885 * toplev.c (src_pwd): New static variable.
6886 (set_src_pwd, get_src_pwd): New functions.
6887 * toplev.h (get_src_pwd, set_src_pwd): Declare.
6888 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
6889 * dwarf2out.c (gen_compile_unit_die): Likewise.
6890 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
6892 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
6894 * pretty-print.h (pp_set_line_maximum_length): Make macro.
6895 (pp_set_prefix): Likewise.
6896 (pp_destroy_prefix): Likewise.
6897 (pp_remaining_character_count_for_line): Likewise.
6898 (pp_clear_output_area): Likewise.
6899 (pp_formatted_text): Likewise.
6900 (pp_last_position_in_text): Likewise.
6901 (pp_emit_prefix): Likewise.
6902 (pp_append_text): Likewise.
6903 (pp_flush): Likewise.
6904 (pp_format_text): Likewise.
6905 (pp_format_verbatim): Likewise.
6906 (pp_tree_identifier): Tidy.
6907 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
6908 (pp_base_format_verbatim): Rename from pp_format_verbatim.
6909 (pp_base_flush): Rename from pp_flush.
6910 (pp_base_set_line_maximum_length): Rename from
6911 pp_set_line_maximum_length.
6912 (pp_base_clear_output_area): Rename from pp_clear_output_area.
6913 (pp_base_set_prefix): Rename from pp_set_prefix.
6914 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
6915 (pp_base_emit_prefix): Rename from pp_emit_prefix.
6916 (pp_base_append_text): Rename from pp_append_text.
6917 (pp_base_formatted_text): Rename from pp_formatted_text.
6918 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
6919 (pp_base_remaining_character_count_for_line): Rename from
6920 pp_remaining_character_count_for_line.
6921 * diagnostic.h (diagnostic_format_decoder): Tidy.
6922 (diagnostic_flush_buffer): Likewise.
6923 * c-pretty-print.h: (pp_c_string_literal): Declare.
6924 (pp_c_real_literal): Likewise.
6925 (pp_c_integer_literal): Likewise.
6926 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
6928 (pp_c_character_literal): Tidy.
6929 (pp_c_string_literal): Make public.
6930 (pp_c_bool_literal): Likewise.
6931 (pp_c_integer_literal): Likewise.
6932 (pp_c_real_literal): Likewise.
6934 * Makefile.in (C_PRETTY_PRINT_H): New variable.
6935 (c-pretty-print.o): Update dependence.
6937 2003-08-05 Chris Demetriou <cgd@broadcom.com>
6939 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
6940 ".set nomacro" state.
6941 (fix_truncsfsi2_macro): Likewise.
6943 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
6945 * tree.h (DID_INLINE_FUNC): Remove macro.
6946 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
6947 add tree check for FUNCTION_DECL.
6948 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
6949 (struct tree_decl): Rename inlined_function_flag to
6950 declared_inline_flag.
6951 * c-common.h (c_lang_decl): Remove.
6952 (DECL_ESTIMATED_INSNS): Remove.
6953 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
6954 (DECL_DECLARED_INLINE_P): Remove.
6955 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
6956 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
6957 (finish_function): Make uninlinable a bool. Fixup call to
6958 tree_inlinable_function_p() and fix some code style issues.
6959 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
6960 * cgraph.c (dump_cgraph): Likewise.
6961 * cgraphunit.c (cgraph_decide_inlining): Likewise
6962 (cgraph_finalize_compilation_unit): Likewise.
6963 Also update call to tree_inlinable_function_p().
6964 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
6965 look at DECL_DECLARED_INLINE and reverse logic.
6966 * print-tree.c (print_node): Likewise.
6967 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
6968 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
6970 * tree-inline.c (inlinable_function_p): Split up in this function to
6971 check for basic inlining inhibiting conditions, and new
6972 limits_allow_inlining() function. Warn if inlining is impossible
6973 because the inline candidate calls alloca or uses sjlj exceptions.
6974 (limits_allow_inlining): this new function to check if the inlining
6975 limits are satisfied. Throttle from currfn_max_inline_insns, not from
6976 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
6977 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
6979 (tree_inlinable_function_p): Make a bool. Update call to
6980 inlinable_function_p
6981 (expand_call_inline): Use limits_allow_inlining() when not in
6982 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
6983 instead see if the function was declared `inline'.
6985 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
6987 * gcse.c (try_replace_reg): Fix updating of note.
6989 2003-08-04 Roger Sayle <roger@eyesopen.com>
6992 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
6993 logic in negate_expr, i.e. we don't invert (A-B) for floating
6994 point types unless flag_unsafe_math_optimizations.
6996 2003-08-04 Roger Sayle <roger@eyesopen.com>
6998 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
6999 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
7000 for floating point expressions with -ffast-math.
7001 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
7002 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
7004 2003-08-04 Roger Sayle <roger@eyesopen.com>
7006 * c-common.c (flag_noniso_default_format_attributes): Delete.
7007 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
7008 (c_attrs_initialized): Delete.
7009 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
7010 always call c_init_attributes.
7011 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
7012 set c_attrs_initialized when done.
7013 (c_common_insert_default_attributes): Delete.
7014 * c-common.h (flag_noniso_default_format_attributes): Delete.
7015 (c_coomon_insert_default_attributes): Delete prototype.
7016 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
7017 flag_noniso_default_format_attributes.
7019 * c-decl.c (c_insert_default_attributes): Delete.
7020 * c-tree.h (c_insert_default_attributes): Delete prototype.
7022 * attribs.c (decl_attributes): Don't call insert_default_attributes
7023 langhook. Update function description comment.
7024 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
7025 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
7026 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
7027 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
7029 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
7032 2003-08-04 Richard Sandiford <rsandif@redhat.com>
7034 * config/mips/mips.c (override_options): Disable -G on targets that
7035 have no .section support.
7036 (mips_select_section): Use default_select_section for such targets.
7038 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
7040 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
7041 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
7042 * fixinc/fixincl.x: Rebuild.
7043 * fixinc/tests/base/regexp.h: New test.
7045 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
7047 * c-ppoutput.c (cb_line_change): Don't skip line changing while
7048 parsing macro arguments in the top-level context.
7050 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
7052 * config.in: Remove HAVE_LSTAT.
7053 * configure, configure.in: Don't test for lstat.
7055 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
7057 * opts.c (decode_options): Do language-specific initialization for
7058 the global diagnostic context.
7059 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
7060 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
7061 (LANG_HOOKS_INITIALIZER): Adjust.
7062 * langhooks.h (struct lang_hooks): Add new field
7063 initialize_diagnostics.
7064 * langhooks.c (lhd_initialize_diagnostics): Define.
7066 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
7068 * pretty-print.h: Adjust macro definitions.
7069 * pretty-print.c (pp_newline): Rename to pp_base_newline.
7070 (pp_character): Rename to pp_base_character.
7071 (pp_string): Rename to pp_base_string.
7072 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
7073 (pp_newline): Likewise. Adjust.
7074 (pp_c_char): Adjust.
7076 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7078 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
7079 BUILT_IN_LLABS): Move to miscellaneous section.
7081 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
7083 PR preprocessor/11534
7084 * cppexp.c (parse_defined): Warn only if -pedantic.
7086 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
7088 * cppfiles.c (stack_file): Use file path.
7090 2003-08-02 Roger Sayle <roger@eyesopen.com>
7092 * builtin-types.def (BT_SSIZE): New primitive type.
7093 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
7094 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
7095 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
7096 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
7097 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
7098 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
7099 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
7100 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
7101 few functions that define default attributes using it.
7102 * c-common.c (c_common_insert_default_attributes): Do nothing.
7104 * doc/extend.texi: Document these "new" builtins.
7106 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
7108 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
7109 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
7110 when -mieee-fp set and -shared not set.
7111 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
7113 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
7115 * cppfiles.c (struct _cpp_file): Rename once_only_next to
7116 next_file. Remove import and pragma_once, add once_only.
7117 (find_file): Add new file structures to the all_files list.
7118 (should_stack_file): Mark #import-ed files once-only, and
7119 don't stack them if the file has already been stacked.
7120 (_cp_mark_file_once_only): Simplify.
7121 * cpphash.h (struct cpp_reader): Rename once_only_files
7122 to all_files. Rename saw_pragma_once to seen_once_only.
7123 (_cpp_mark_file_once_only): Update prototype.
7124 * cpplib.c (do_pragma_once): Update.
7126 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
7128 * cppfiles.c (ENOTDIR): Remove.
7129 (open_file_in_dir): Rename find_file_in_dir. Handle errors
7130 other than ENOENT here.
7131 (once_only_file_p): Rename should_stack_file.
7132 (find_file, open_file_failed, read_file_guts): Report errors
7133 with full path name.
7134 (read_file): Move pch handling to should_stack_file.
7135 (should_stack_file): Handle PCH and once-only issues, and
7137 (stack_file): Don't do file reads.
7139 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7141 * libgcov.c (gcov_exit): Cleanup and fix.
7142 * profile.c (compute_value_histograms): Don't try to read profiles
7143 that are not present.
7145 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7147 * builtins.def: Categorize.
7149 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
7151 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
7153 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
7155 * config.gcc: Enable posix threads by default on darwin.
7157 2003-08-01 Jakub Jelinek <jakub@redhat.com>
7159 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
7160 even if nehedges1 is 0.
7162 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
7164 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
7165 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
7166 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
7169 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
7170 * fixinc/fixincl.x: Regenerate.
7171 * fixinc/tests/base/math.h: Regenerate to match test_text change.
7173 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7175 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
7177 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7179 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
7180 for accesses to exc_ptr.
7182 2003-08-01 Geoffrey Keating <geoffk@apple.com>
7184 * doc/sourcebuild.texi (Front End Directory): Don't make references
7185 to libsubdir, it's not part of the interface to frontends.
7186 * doc/install.texi (Configuration): Help users read faster by saying
7187 that GCC's configure options are the standard autoconf ones.
7188 Mention --libdir. Update the default rules for finding the
7189 assembler. Don't use libsubdir since we haven't said what it means.
7190 (Specific): In the Solaris 7 notes, update the place to put the
7192 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
7193 * doc/cpp.texi (Search Path): Actually, the search path
7194 depends on libdir, which can relocate with cpp.
7195 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
7196 now a private interface between the Makefile and the driver.
7198 2003-08-01 Richard Henderson <rth@redhat.com>
7200 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
7202 * varasm.c (lookup_constant_def): New function.
7203 * rtl.h (lookup_constant_def): Declare it.
7204 * dwarf2out.c (loc_descriptor_from_tree): Use it.
7205 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
7207 2003-08-01 Zack Weinberg <zack@codesourcery.com>
7209 * c-decl.c (gettags, pushdecl_function_level): Delete.
7210 (last_function_parm_vars): Rename last_function_parm_others.
7211 (current_function_parm_vars): Rename current_function_parm_others.
7212 (struct c_scope): Rewrite comment explaining this data structure.
7213 Add names_last, blocks_last, parms_last fields. Rename
7214 incomplete_list to incomplete.
7215 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
7216 (poplevel): Ignore second argument. No need to nreverse
7217 anything. Restructure such that each list is processed
7218 exactly once. Use 'const location_t *locus' syntactic sugar
7219 variable where useful. Issue unused variable warnings
7220 ourselves, do not rely on function.c.
7221 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
7222 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
7223 (implicitly_declare): decl cannot be error_mark_node.
7224 (undeclared_variable): Manipulate scope structure directly.
7225 (c_make_fname_decl): Likewise.
7226 (getdecls, c_init_decl_processing): Fix comment.
7227 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
7228 for 'last' variable.
7229 (grokparms): No need to nreverse parms list.
7230 (store_parm_decls_newstyle): Set up the parms_last and
7231 names_last fields of the new scope too.
7232 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
7233 on parms to begin with; check this under ENABLE_CHECKING. Set
7235 (check_for_loop_decls): Refer directly to current_scope->tags.
7236 Use consistent quote style in diagnostics.
7237 (c_write_global_declarations): The names list is not backward.
7239 * c-common.h: Don't prototype gettags.
7240 * c-parse.in: Call poplevel with second argument 0 always.
7242 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7244 * builtins.def: Resort builtins.
7246 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7248 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
7249 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
7250 Prepend "__builtin_" onto NAME with string concatenation. Remove
7251 explicit "__builtin_" from each macro call.
7253 Reformat entire file.
7255 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7257 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
7258 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
7260 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
7262 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
7263 CCL1, or CCL2 modes with floating point operations.
7265 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
7266 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
7267 "*subdf3_cconly"): New insns.
7268 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
7270 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
7272 * Makefile.in: Refine dependencies.
7273 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
7274 * c.opt: Update help for -Wimport.
7275 * cppfiles.c: Include hashtab.h. Update comments.
7276 (stack_file): Read the file before updating dependencies.
7277 (once_only_file_p): Be smarter about marking once-only files.
7278 (_cpp_mark_file_once_only): Correct the check for existence on
7280 (open_file_failed): Use name not path, which is NULL.
7281 * cpphash.h: Don't include hashtab.h.
7282 (struct _cpp_file): Remove.
7283 (struct cpp_reader): Update.
7284 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
7285 * cpplib.h (struct cpp_options): Remove warn_import.
7286 (cpp_simplify_path): Remove.
7288 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
7291 * doc/extend.texi (Statement Expressions): Document C++ semantics.
7293 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
7295 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
7297 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7299 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
7301 * builtins.def: Likewise.
7303 2003-07-31 Jason Merrill <jason@redhat.com>
7305 * Makefile.in (bubblestrap): Don't require a previous full
7308 * expr.c (mostly_zeros_p): No longer static.
7309 * tree.h: Declare it.
7310 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
7311 unless we need to do substitutions.
7313 2003-07-31 Roger Sayle <roger@eyesopen.com>
7315 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
7316 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
7317 as pow(x,2.0) when the latter will be expanded back into x*x.
7318 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
7319 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
7320 pow can never set errno when used with an integer exponent.
7321 Always use expand_powi when exponent is -1, 0, 1 or 2.
7322 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
7323 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
7324 the pow forms of these expressions.
7326 2003-07-31 Geoffrey Keating <geoffk@apple.com>
7328 * Makefile.in (libexecdir): New.
7329 (libsubdir): Use gcc instead of gcc-lib.
7330 (libexecsubdir): New.
7331 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
7332 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
7334 (installdirs): Make libexecsubdir.
7335 (install-common): Put executables in libexecsubdir.
7336 (itoolsdir): Use libexecsubdir.
7337 (itoolsdatadir): New.
7338 (install-mkheaders): Separate data files and executables.
7339 (install-collect2): Put executables in libexecsubdir.
7340 (uninstall): Remove libexecsubdir.
7341 * mkheaders.in: Update for new arrangement of files.
7343 (libexecsubdir): New.
7344 (itoolsdir): Use libexecsubdir.
7345 (itoolsdatadir): New.
7346 * gcc.c (gcc_libexec_prefix): New.
7347 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
7348 (standard_exec_prefix_1): Use libexec.
7349 (standard_exec_prefix_2): New.
7350 (standard_libexec_prefix): New.
7351 (process_command): Update for new arrangement of files. Compute
7352 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
7354 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
7356 * inclhack.def (stdio_va_list): Avoid bogus replacement which
7357 triggers on Interix.
7358 * fixincl.x: Regenerate.
7360 2003-07-31 Jakub Jelinek <jakub@redhat.com>
7362 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
7363 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
7365 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7367 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
7369 2003-07-31 Per Bothner <pbothner@apple.com>
7371 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
7372 (add_input_filename): New function.
7373 (handle_options): Call add_input_filename directly instead of
7375 * opts.h (in_fnames, num_in_fnames): Moved here.
7376 (add_input_filename): Declare.
7377 * c-decl.c: Need to #include opts.h.
7378 * Makefile.in (c-decl.o): Also depends on opts.h.
7379 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
7380 (c_common_handle_filename): Replaced by add_input_filename.
7381 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
7383 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
7384 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
7385 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
7386 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
7388 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7390 * combine.c (try_combine): Set JUMP_LABEL for newly created
7393 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7395 * fold-const.c (fold): Fold some comparisons of bit operations.
7397 2003-07-31 Jan Hubicka <jh@suse.cz>
7399 * cgraph.c (create_edge): Fix typo.
7400 * i386.c (pic_symbolic_operand): Reorder tests.
7402 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
7404 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
7406 (Gcov Data Files): Update.
7408 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7410 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
7413 * gthr-posix.c: New file.
7414 * gthr-posix.h: Define _REENTRANT if missing.
7415 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
7417 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
7419 * config/alpha/t-osf-pthread: New file.
7421 * fixinc/inclhack.def (alpha_pthread): New fix.
7422 * fixinc/fixincl.x: Regenerate.
7423 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
7425 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
7427 Fixes PR bootstrap/9330.
7429 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7431 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
7434 * configure: Regenerate.
7436 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
7438 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
7441 2003-07-30 Roger Sayle <roger@eyesopen.com>
7443 * builtins.def: Alphabetize.
7445 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
7447 * doc/c-tree.texi: Normalize spellings of "lowercase" and
7449 * doc/cpp.texi: Likewise.
7450 * doc/md.texi: Likewise.
7451 * doc/rtl.texi: Likewise.
7452 * doc/tm.texi: Likewise.
7454 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
7456 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
7457 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
7460 2003-07-30 Chris Demetriou <cgd@broadcom.com>
7462 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
7463 macros before defining them.
7465 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
7467 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
7468 UNSPECV_BLOCKAGE): New constants.
7469 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
7470 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
7471 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
7472 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
7474 (all insns and expanders): Write output control string as brace block
7475 where appropriate. Remove \-escapes for doublequote characters.
7477 2003-07-31 Jan Hubicka <jh@suse.cz>
7479 * gcse.c (insert_store): Fix typo in previous patch.
7481 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
7483 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
7485 2003-07-30 Andi Kleen <ak@muc.de>
7487 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
7489 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7491 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
7492 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
7493 GCOV_N_VALUE_COUNTERS): New.
7494 * profile.c (compute_value_histograms): New static function.
7495 (branch_prob): Read back the value histograms.
7496 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
7497 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
7498 * value-prof.c: Add comment on reading the profile.
7499 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
7500 * doc/invoke.texi (-fprofile-values): Document behavior with
7501 -fbranch-probabilities.
7503 2003-07-30 David Edelsohn <edelsohn@gnu.org>
7505 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
7507 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
7509 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
7512 2003-07-30 Jan Hubicka <jh@suse.cz>
7514 * gcse.c (insert_store): Ignore fake edges.
7516 * c-common.c (flag_vtable_gc): Kill.
7517 * c-common.g (flag_vtable_gc): Kill.
7518 * c-opts (c_common_handle_option): Kill.
7519 * c.opt (fvtable-gc): Kill.
7520 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
7521 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
7522 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
7524 * invoke.texi (-ftable-gc): Kill documentation.
7526 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
7527 just because function body is missing.
7529 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
7531 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
7533 * unwind-sjlj.c: Fix typo in file description.
7535 2003-07-30 Alan Modra <amodra@bigpond.net.au>
7537 * calls.c (load_register_parameters): When shifting reg sized values
7538 to the msb, move the value to a reg first.
7540 2003-07-29 Geoffrey Keating <geoffk@apple.com>
7542 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
7543 * line-map.h (linemap_add): Update comments.
7544 * line-map.c (linemap_add): Update comments, interpret zero-length
7545 filename as "<stdin>".
7547 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
7549 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
7551 2003-07-29 Zack Weinberg <zack@codesourcery.com>
7553 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
7554 New static variables.
7555 (struct c_scope): Add parms and warned_forward_parm_decls
7556 fields; remove parm_order.
7557 (storedecls, storetags): Delete.
7558 (poplevel): Also clear bindings on the parms chain.
7559 (pushdecl): Handle forward declarations of parameters, and
7560 chain PARM_DECLs on the parms list, not the names list.
7561 (lookup_name_current_level): Check for PARM_DECLs on the parms
7563 (push_parm_decl): Don't update parm_order.
7564 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
7565 warning, only once per parameter list, and set TREE_ASM_WRITTEN
7566 on the decls here. Then move the forward decls to the names list.
7567 (grokparms): Set last_function_parm_vars.
7568 (get_parm_info): Don't use gettags or getdecls. No need to
7569 extract non-parms from the parms list, or reorganize the parms
7570 list. Feed nonparms back in the TREE_TYPE of the list node
7571 returned. Issue only one error per parameter list for "void"
7572 appearing more than once in said parameter list. Collapse
7573 parmlist_tags_warning into this function to avoid double scan
7575 (start_function): Set current_function_parm_vars.
7576 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
7577 directly. Get non-parms from current_function_parm_vars; no
7578 need to extract them from the parms chain. Properly bind tags
7580 (store_parm_decls_oldstyle): No need to extract non-parameters
7581 from the parms chain, nor to store them back afterward. Move
7582 declaration to top of function, restructure code reordering
7584 (store_parm_decls): No need to save and restore warn_shadow.
7585 * c-parse.in: Don't call parmlist_tags_warning nor
7586 clear_parm_order. Call mark_forward_parm_decls when forward
7587 parm decls are encountered.
7588 * c-tree.h: Prototype mark_forward_parm_decls; not
7589 clear_parm_order or parmlist_tags_warning.
7591 2003-07-29 Geoffrey Keating <geoffk@apple.com>
7593 * c-common.c (allow_pch): Remove.
7594 * c-common.h (allow_pch): Remove.
7595 (c_common_no_more_pch): Declare.
7596 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
7597 * c-pch.c: Include hosthooks.h.
7598 (c_common_valid_pch): Don't check allow_pch.
7599 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
7600 (c_common_no_more_pch): New.
7601 * ggc-common.c: Include hosthooks.h.
7602 (gt_pch_save): Call gt_pch_get_address.
7603 (gt_pch_restore): Call gt_pch_use_address.
7604 * hooks.c (hook_voidp_size_t_null): New.
7605 (hook_bool_voidp_size_t_false): New.
7606 * hooks.h (hook_voidp_size_t_null): New.
7607 (hook_bool_voidp_size_t_false): New.
7608 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
7609 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
7610 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
7611 HOST_HOOKS_GT_PCH_USE_ADDRESS.
7612 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
7614 * doc/hostconfig.texi (Host Common): Document
7615 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
7616 * Makefile.in (c-pch.o): Depend on hosthooks.h.
7617 (ggc-common.o): Likewise.
7619 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
7620 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
7621 (pch_address_space): New.
7622 (darwin_rs6000_gt_pch_get_address): New.
7623 (darwin_rs6000_gt_pch_use_address): New.
7625 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
7627 PR preprocessor/11569
7628 PR preprocessor/11649
7629 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
7630 * cppfiles.c: Completely rewritten.
7631 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
7632 struct cpp_path is now struct cpp_dir.
7633 (remove_duplicates): Don't simplify path names.
7634 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
7636 * cpphash.h: Include hashtab.h.
7637 (_cpp_file): Declare.
7638 (struct cpp_buffer): struct include_file is now struct _cpp_file,
7639 and struct cpp_path is now struct cpp_dir. Rename members.
7640 (struct cpp_reader): Similarly. New members once_only_files,
7641 file_hash, file_hash_entries, quote_ignores_source_dir,
7642 no_search_path, saw_pragma_once. Remove all_include_files and
7643 max_include_len. Make some members bool.
7644 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
7645 (_cpp_stack_file): Renamed from _cpp_read_file.
7646 (_cpp_stack_include): Renamed from _cpp_execute_include.
7647 (_cpp_init_files): Renamed from _cpp_init_includes.
7648 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
7649 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
7650 (cpp_read_next_file): Rename and move to cppfiles.c.
7651 (cpp_read_main_file): Update.
7652 * cpplib.c (run_directive): Update for renamed members.
7653 (do_include_common, _cpp_pop_buffer): Update.
7654 (do_import): Undeprecate #import.
7655 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
7656 * cpplib.h: Remove file_name_map_list.
7657 (cpp_options): Remove map_list.
7658 (cpp_dir): Rename from cpp_path. New datatype for name_map.
7659 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
7661 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
7663 * Makefile.in: Make stamp-objdir safe for parallel builds.
7665 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
7667 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
7668 (info): Depend on stmp-docobjdir.
7670 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7672 * configure: Regenerate.
7674 2003-07-29 Jan Hubicka <jh@suse.cz>
7677 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
7678 in !unit-at-a-time mode.
7680 2003-07-28 Geoffrey Keating <geoffk@apple.com>
7682 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
7685 2003-07-28 Mark Mitchell <mark@codesourcery.com>
7688 * c-common.c (shorten_compare): Take into account differences
7689 between C and C++ representation for enumeration types.
7690 * tree.h (set_min_and_max_values_for_integral_type): Declare.
7691 * stor-layout.c (set_min_and_max_values_for_integral_type): New
7692 function, broken out from ...
7693 (fixup_signed_type): ... here and ...
7694 (fixup_unsigned_type): ... here.
7696 2003-07-28 Zack Weinberg <zack@codesourcery.com>
7698 * c-decl.c: Update commentary, adjust blank lines throughout.
7699 (struct c_scope): Fix indentation. Reorder members so
7700 outer-context pointers come first, booleans last.
7701 (duplicate_decls, define_label): Use a 'locus' variable for
7702 diagnostic locations in a few more places.
7703 (warn_if_shadowing): Un-split a conditional that fits on one line.
7704 (c_init_decl_processing): No need to clear current_scope and
7705 current_function_scope.
7706 (start_decl): Merge if/else if statements with same action.
7707 (push_parm_decl): Rename old_immediate_size_expand to use
7708 save_foo convention; save/restore around entire function.
7709 (grokdeclarator): Remove unnecessary braces.
7711 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
7712 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
7714 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
7715 when warn_declaration_after_statement. Call pedwarn_c90, not
7716 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
7717 * c-common.c (warn_declaration_after_statement): Define.
7718 * c-common.h (warn_declaration_after_statement): Declare.
7719 * c.opt (Wdeclaration-after-statement): New.
7720 * c-errors.c (pedwarn_c90): New function.
7721 * c-opts.c (c_common_handle_option) <case
7722 OPT_Wdeclaration_after_statement>: New.
7723 * c-tree.h (pedwarn_c90): Declare.
7724 * doc/invoke.texi (Option Summary): Document
7725 -Wdeclaration-after-statement.
7726 (Warning Options): Ditto.
7728 2003-07-28 Jan Hubicka <jh@suse.cz>
7730 * i386.md (memory attribute) Avoid accessing uninitialized memory
7731 for ishift1 type instructions.
7733 2003-07-28 Jakub Jelinek <jakub@redhat.com>
7735 * configure.in (--enable-checking): Add fold category.
7736 (ENABLE_FOLD_CHECKING): Define if requested.
7737 * configure: Rebuilt.
7738 * config.in: Rebuilt.
7739 * doc/install.texi: Document it.
7740 * fold-const.c: Include md5.h.
7741 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
7742 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
7743 print_fold_checksum): New functions.
7745 * fold-const.c (fold): Never modify argument passed to fold, instead
7746 change a copy and return it.
7747 * convert.c (convert_to_integer): Likewise.
7749 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
7751 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
7752 cleanup of junk after #else and #endif directives. Collapse repeated
7753 clauses into for statment.
7755 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
7757 2003-07-27 Zack Weinberg <zack@codesourcery.com>
7759 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
7760 (keep_next_if_subblocks): Rename next_is_function_body.
7761 (pushlevel): Adjust commentary. Always set ->keep on the
7762 outermost level of a function. Don't set ->keep_if_subblocks.
7763 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
7764 (store_parm_decls): Adjust to match.
7765 (finish_function): Adjust to match.
7766 Call poplevel with all three arguments zero.
7768 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
7769 New functions split out of store_parm_decls.
7770 Avoid unnecessary work. Use local variables consistently.
7771 (store_parm_decls): Likewise.
7773 (finish_function): No need to set functionbody flag on call to
7775 (struct language_function): Remove scope field.
7776 (c_push_function_context, c_pop_function_context): No need to
7777 save and restore current_scope.
7779 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
7781 * doc/extend.texi (Deprecated Features): Implicit typename is
7782 gone. Default args on types is going.
7784 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
7786 * Makefile.in (ifcvt.o): Depend on target.h
7787 * ifcvt.c (target.h): Include.
7788 (if_convert): Don't call mark_loop_exit_edges if we can't
7791 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7793 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
7795 2003-07-26 Richard Henderson <rth@redhat.com>
7798 * cse.c (count_reg_usage): Handle asm_operands properly.
7800 2003-07-26 Roger Sayle <roger@eyesopen.com>
7802 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
7803 (DEF_EXT_FALLBACK_BUILTIN): Delete.
7804 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
7805 the regular DEF_EXT_LIB_BUILTIN macro.
7806 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
7807 the regular DEF_LIB_BUILTIN macro.
7808 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
7809 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
7810 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
7811 DEF_EXT_LIB_BUILTIN macro.
7813 * c-decl.c (duplicate_decls): Remove code to handle builtin
7814 functions prototyped without an argument list.
7816 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
7818 * config/i386/winnt.c: Revert 2003-07-08 change.
7819 (i386_pe_section_type_flags): Remove error_with_decl here too.
7821 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
7823 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
7824 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
7825 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
7826 (v850_handle_data_area_attribute): Likewise.
7828 2003-07-26 Geoffrey Keating <geoffk@apple.com>
7830 * varasm.c (output_constant_def_contents): Use
7831 ASM_DECLARE_CONSTANT_NAME if defined.
7832 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
7833 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
7834 objects get at least one byte to prevent assembler problems.
7835 (ASM_DECLARE_CONSTANT_NAME): New.
7837 * Makefile.in (libbackend.o): Remove options_.h.
7838 (mostlyclean): Likewise.
7840 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
7841 insert a label at the end of an function under Mach-O.
7843 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
7845 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
7847 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
7849 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
7851 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
7853 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7855 * doc/passes.texi (Passes): Mention pretty-printing and
7858 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
7860 * doc/extend.texi (Function Attributes): GNU C++ does now allow
7861 unused parameter decls.
7862 (Attribute Syntax): GNU C++ does not allow label attributes to be
7865 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7867 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
7868 (objc_declare_class): Likewise.
7869 (error_with_ivar): Likewise.
7870 (start_class): Likewise.
7871 (warn_with_method): Likewise.
7873 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7875 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
7877 * calls.c (try_to_integrate): Don't use xxx_with_decl.
7878 (expand_call): Likewise.
7879 * dwarfout.c (output_reg_number): Likewise.
7880 * expr.c (expand_expr): Likewise.
7881 * function.c (assign_temp): Likewise.
7882 (uninitialized_vars_warning): Likewise.
7883 (setjmp_args_warning): Likewise.
7884 (expand_function_end): Likewise.
7885 * stmt.c (fixup_gotos): Likewise.
7886 (warn_about_unused_variables): Likewise.
7887 (expand_end_bindings): Likewise.
7888 * stor-layout.c (layout_decl): Likewise.
7889 (place_field): Likewise.
7890 * toplev.c (check_global_declarations): Likewise.
7891 (rest_of_handle_inlining): Likewise.
7892 (default_tree_printer): New function.
7893 (general_init): Initialize diagnostic machinery before routing
7894 signals to the ICE machinery. Set default tree printer.
7895 * toplev.h (pedwarn_with_decl): Remove declaration.
7896 (warning_with_decl): Likewise.
7897 (error_with_decl): Likewise.
7898 (pedwarn): Remove attribute for the time being.
7899 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
7900 * varasm.c (named_section): Likewise.
7901 (make_decl_rtl): Likewise.
7902 (assemble_variable): Likewise.
7903 (merge_weak): Likewise.
7904 (declare_weak): Likewise.
7906 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
7907 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
7908 (format_with_decl): Remove.
7909 (diagnostic_for_decl): Likewise.
7910 (pedwarn_with_decl): Likewise.
7911 (warning_with_decl): Likewise.
7912 (error_with_decl): Likewise.
7913 (diagnostic_initialize): Adjust.
7914 (diagnostic_count_diagnostic): Likewise.
7915 (announce_function): Likewise.
7916 (lhd_print_error_function): Likewise.
7917 (diagnostic_report_current_module): Likewise.
7918 (default_diagnostic_starter): Likewise.
7919 (diagnostic_report_diagnostic): Likewise.
7920 (default_diagnostic_finalizer): Likewise.
7921 (verbatim): Likewise.
7923 (warning): Likewise.
7924 * opts.c (common_handle_option): Likewise.
7925 * pretty-print.c: New file.
7926 * c-pretty-print.h (pp_base): Override.
7927 * c-pretty-print.c: Adjust use of macros throughout.
7928 (pp_buffer): New macro.
7929 (pp_newline): Likewise.
7930 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
7931 * Makefile.in (DIAGNOSTIC_H): New variable.
7932 (c-errors.o): Use it.
7933 (c-objc-common.o): Likewise.
7934 (c-common.o): Likewise.
7935 (c-opts.o): Likewise.
7936 (c-format.o): Likewise.
7937 (diagnostic.o): Likewise.
7939 (toplev.o): Likewise.
7940 (rtl-error.o): Likewise.
7941 (dwarf2out.o): Likewise.
7943 (pretty-print.o): New rule.
7945 2003-07-24 Roger Sayle <roger@eyesopen.com>
7947 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
7948 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
7949 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
7950 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
7951 (DEF_FRONT_END_LIB_BUILTIN): Delete.
7952 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
7953 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
7955 * builtins.c (build_string_literal): New function to construct
7956 a char* pointer to a string literal.
7957 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
7958 "rtx target" to be consistent with other expand_builtin_* functions.
7959 Change 3rd argument from "int unlocked" to "bool unlocked".
7960 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
7961 c-common.c to avoid front-end dependencies. Optimize printf("")
7962 as a no-op when the result isn't required. Handle embedded NULs
7964 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
7965 from c-common.c to avoid front-end dependencies. Likewise, optimize
7966 fprintf(fp,"") as a no-op when the result isn't required, evaluating
7967 fp for side-effects. Handle embedded NULs in format string.
7968 (expand_builtin_sprintf): Fix typo.
7969 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
7970 optimizing. Adjust calls of expand_builtin_fputs to match the API
7971 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
7972 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
7973 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
7975 * c-common.c (is_valid_printf_arglist): Delete.
7976 (c_expand_builtin): Delete.
7977 (c_expand_builtin_printf): Moved to builtins.c. Delete.
7978 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
7979 (c_expand_expr): No longer treat CALL_EXPRs specially.
7980 (CALLED_AS_BUILT_IN): Delete.
7982 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7984 PR optimization/11631
7985 * gcse.c (store_motion): Connect infinite loops to exit.
7987 2003-07-24 Jason Merrill <jason@redhat.com>
7989 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
7990 (boolean_true_node, boolean_false_node): Likewise.
7991 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
7992 * tree.c (build_common_tree_nodes): Init boolean_type_node.
7993 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
7994 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
7995 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
7996 (truthvalue_true_node): Renamed from boolean_true_node.
7997 (truthvalue_false_node): Renamed from boolean_false_node.
7998 * c-decl.c: Just set truthvalue_* to integer_*.
7999 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
8001 2003-07-24 Roger Sayle <roger@eyesopen.com>
8003 * c-decl.c (match_builtin_function_types): New subroutine of
8004 duplicate_decls to test whether a redeclaration of a builtin
8005 function is suitably close, i.e. the return type and all of
8006 the argument types have the same modes as the builtin expects.
8007 (duplicate_decls): Fuzzy type matching for builtin functions
8008 moved to match_builtin_function_types.
8010 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8012 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
8015 2003-07-24 Zack Weinberg <zack@codesourcery.com>
8017 * c-decl.c: Search-and-replace change 'binding level' to
8018 'scope' in commentary.
8019 (struct binding_level): Now struct c_scope.
8020 (current_binding_level): Now current_scope.
8021 (free_binding_level): Now scope_freelist.
8022 (current_function_level): Now current_function_scope.
8023 (global_binding_level): Now global_scope.
8024 (make_binding_level): Now make_scope.
8025 (pop_binding_level): Now pop_scope.
8027 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8029 * configure.in (libgcc_visibility): Add missing whitespace.
8031 2003-07-24 Richard Henderson <rth@redhat.com>
8033 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
8034 __gcc_personality_v0.
8036 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8038 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
8040 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
8042 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
8043 documentation missed from my 2003-07-09 patch.
8045 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
8047 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
8049 * configure: Rebuild.
8051 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
8054 * c-typeck.c (type_lists_compatible_p): Do not compare
8055 arguments if one of them is an error_mark_node
8057 2003-07-24 Alan Modra <amodra@bigpond.net.au>
8059 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
8060 if current_function_calls_eh_return.
8062 2003-07-23 Mark Mitchell <mark@codesourcery.com>
8064 * doc/c-tree.texi (OFFSET_TYPE): Update description.
8066 2003-07-23 Bob Wilson <bob.wilson@acm.org>
8068 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
8069 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
8070 __umodsi3, __modsi3): Increase frame size to 32.
8072 2003-07-23 Geoffrey Keating <geoffk@apple.com>
8074 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
8077 2003-07-23 Mark Mitchell <mark@codesourcery.com>
8079 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
8081 PR optimization/10679
8082 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
8084 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8086 PR target/11607 and PR target/11516
8087 * pa.md (extzv, extv, insv): Revert latter half of last patch.
8089 2003-07-22 Mark Mitchell <mark@codesourcery.com>
8091 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
8092 * varasam.c (output_constant): Likewise.
8094 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
8096 * alias.c: Fix comment formatting.
8097 * c-common.c: Likewise.
8098 * c-decl.c: Likewise.
8099 * c-opts.c: Likewise.
8100 * combine.c: Likewise.
8101 * cpplib.c: Likewise.
8102 * diagnostic.c: Likewise.
8103 * dojump.c: Likewise.
8104 * final.c: Likewise.
8105 * fold-const.c: Likewise.
8108 * ggc-page.c: Likewise.
8111 * mips-tfile.c: Likewise.
8112 * recog.c: Likewise.
8113 * regclass.c: Likewise.
8114 * regmove.c: Likewise.
8118 2003-07-22 Per Bothner <pbothner@apple.com>
8120 * line-map.c (add_line_map): Handle invalid LEAVE request.
8121 Fixes PR preprocessor/11361.
8123 2003-07-22 Per Bothner <pbothner@apple.com>
8125 * diagnostic.c.(diagnostic_report_current_module): Update to match
8126 2003-06-05 changes to push_srcloc and pop_srcloc.
8128 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
8130 * doc/trouble.texi: Better document two-stage name lookup.
8132 2003-07-22 Eric Christopher <echristo@redhat.com>
8134 * config/s390.c (s390_valid_pointer_mode): New.
8135 (TARGET_VALID_POINTER_MODE): Use.
8136 (s390_emit_prologue): Add tpf profiling hooks.
8137 (s390_emit_epilogue): Ditto.
8138 * config/s390.h (MASK_TPF): New.
8140 (POINTERS_EXTEND_UNSIGNED): Define.
8141 * config/s390.md (ptr_extend): New pattern.
8143 2003-07-22 Zack Weinberg <zack@codesourcery.com>
8145 * hashtable.c (approx_sqrt): Make static.
8146 * hashtable.h: Don't prototype approx_sqrt.
8147 * line-map.c (init_line_maps): Rename linemap_init.
8148 (free_line_maps): Rename linemap_free.
8149 (add_line_map): Rename linemap_add.
8150 (lookup_line): Rename linemap_lookup.
8151 (print_containing_files): Rename linemap_print_containing_files.
8152 * linemap.h: Update to match.
8154 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
8155 linemap routines to use new names.
8157 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
8159 * c-common.c (handle_packed_attribute): Don't pack a struct via a
8160 typedef. Propagate packedness from a main variant.
8162 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
8164 * Makefile.in (install-common): Add dependency on installdirs.
8166 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
8168 * c-common.c (c_common_type_for_mode): Return integer types for
8171 2003-07-22 Geoffrey Keating <geoffk@apple.com>
8173 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
8174 (finish_decl): Call maybe_apply_pragma_weak here.
8175 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
8176 TREE_PUBLIC and TREE_STATIC are decided.
8177 (start_function): Move call to maybe_apply_pragma_weak. Check that
8178 DECL_ASSEMBLER_NAME isn't set too early.
8180 * cpplex.c (_cpp_process_line_notes): Mention option name in
8183 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
8185 * combine.c (if_then_else_cond): Simplify the comparison of
8186 rtx against -1, 0, and 1.
8187 * loop.c (check_dbra_loop): Likewise.
8188 * optabs.c (emit_conditional_move): Likewise.
8189 (emit_conditional_add): Likewise.
8190 * config/i386/i386.md (*movsi_or): Likewise.
8191 (*movdi_or_rex6): Likewise.
8193 2003-07-22 Jan Hubicka <jh@suse.cz>
8195 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
8197 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
8199 * cppfiles.c (open_file_pch): Don't put unused entries in the
8200 splay tree. Remove dead code.
8202 2003-07-21 Geoffrey Keating <geoffk@apple.com>
8204 * c-common.h (num_in_fnames): Declare.
8205 (c_static_assembler_name): Move from here...
8206 * c-tree.h (c_static_assembler_name): ... to here.
8207 * c-opts.c: Don't include langhooks-def.h.
8208 (c_static_assembler_name): Move to c-decl.c.
8209 (num_in_fnames): Make externally visible.
8210 * c-decl.c: Include langhooks-def.h.
8211 (c_static_assembler_name): Move from c-opts.c.
8212 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
8213 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
8215 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
8216 when it's not needed.
8218 2003-07-21 Jakub Jelinek <jakub@redhat.com>
8220 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
8221 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
8222 (rs6000_emit_prologue): Save FPRs inline if set.
8224 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
8226 * config/ia64/ia64.md (prefetch): Support predicate.
8228 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
8230 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
8231 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
8234 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
8236 PR optimization/11536
8237 * unroll.c (loop_iterations): Do not replace a register holding
8238 the final value by its equivalent before the loop if it is not
8241 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
8243 * doc/extend.texi: Fixes to spelling, grammar, and diction.
8245 2003-07-21 Ben Elliston <bje@wasabisystems.com>
8247 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
8248 (V850 Options): Spelling fixes.
8250 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
8252 * doc/invoke.texi: Fixes to style, grammar and diction.
8254 2003-07-20 Roger Sayle <roger@eyesopen.com>
8256 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
8257 * system.h (SMALL_STACK): Poison obsolete target macro.
8258 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
8260 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
8262 * configure.in: Cache the results of testing for cmp's capabilities.
8263 * configure: Regenerate.
8265 2003-07-20 Mark Mitchell <mark@codesourcery.com>
8268 * dwarf2out.c (gen_enumeration_type_die): Remember that
8269 enumerators can be unsigned.
8271 2003-07-19 Zack Weinberg <zack@codesourcery.com>
8273 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
8274 (push_label_level, pop_label_level): Kill.
8275 (struct binding_level): Rename level_chain to outer.
8276 Add outer_function field. Change parm_flag, function_body,
8277 keep, keep_if_subblocks to 1-bit bitfields of type bool.
8278 (current_function_level): New variable.
8279 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
8280 (keep_next_level, declare_parm_level, warn_if_shadowing):
8282 (struct language_function): Kill named_labels, shadowed_labels fields.
8283 (c_init_decl_processing, start_function, c_push__function_context)
8284 (c_pop_function_context): No need to muck with named_labels nor
8287 (make_binding_level): No need to clear the structure here.
8288 (pop_binding_level): Always operate on current_binding_level.
8289 Update current_function_level if necessary.
8290 (pushlevel): Don't clear named_labels. Update current_function_level
8291 if necessary. Use "true" and "false" where appropriate.
8292 (poplevel): Diagnose labels defined but not used, or vice
8293 versa, and clear out label-meanings leaving scope, while
8294 walking down the decls list, for all binding levels.
8295 Handle LABEL_DECLs appearing in the shadowed list.
8296 pop_binding_level takes no arguments.
8297 (pushdecl_function_level): Use current_function_level.
8299 (make_label, bind_label): New static functions.
8300 (declare_label): New exported function.
8301 (lookup_label, define_label): Rewritten for new data structure.
8302 (shadow_label): Kill.
8304 * c-tree.h: Prototype declare_label; don't prototype
8305 push_label_level, pop_label_level, nor shadow_label.
8306 * c-parse.in: Remove all calls to push_label_level and
8307 pop_label_level. Use declare_label for __label__ decls.
8309 * doc/extend.texi: Clarify that __label__ can be used to
8310 declare labels with local scope in any nested block, not
8311 just statement expressions. Cross-reference nested functions
8312 section from local labels section.
8314 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8316 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
8318 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
8320 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
8322 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8324 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
8325 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
8327 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
8329 * config/s390/s390.c (legitimize_pic_address): Access local symbols
8330 relative to the GOT instead of relative to the literal pool base.
8331 (s390_output_symbolic_const): Handle new GOT-relative accesses.
8332 * config/s390/s390.md ("call"): Access local functions and PLT stubs
8333 relative to the GOT instead of relative to the literal pool base.
8334 ("call_value"): Likewise.
8335 ("call_value_tls"): Likewise.
8337 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
8338 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
8339 (s390_chunkify_finish): Likewise.
8340 (s390_chunkify_cancel): Likewise.
8341 (s390_reorg): Adapt caller.
8342 (find_base_register_in_addr,
8343 find_base_register_ref, replace_base_register_ref): Delete.
8344 (find_ltrel_base, replace_ltrel_base): New functions.
8345 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
8346 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
8347 base vs. index register usage.
8348 (struct constant_pool): Remove 'anchor'.
8349 (s390_add_anchor): Delete.
8350 (s390_dump_pool): Remove anchor handling.
8351 * config/s390/s390.md ("reload_anchor"): Remove.
8353 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
8354 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
8355 (s390_emit_prologue): Use it.
8356 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
8357 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
8358 hard-code register 14.
8359 * config/s390/s390-protos.h (s390_load_got): Declare.
8361 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
8362 Support TImode constants.
8363 * config/s390/s390.md ("consttable_ti"): New.
8364 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
8366 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
8367 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
8368 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
8369 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
8370 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
8371 New symbolic constants.
8372 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
8373 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
8374 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
8375 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
8376 symbolic UNSPEC values.
8377 * config/s390/s390.c (larl_operand, s390_short_displacement,
8378 bras_sym_operand, s390_cannot_force_const_mem,
8379 s390_delegitimize_address, s390_decompose_address,
8380 legitimize_pic_address, s390_output_symbolic_const,
8381 s390_function_profiler): Use symbolic UNSPEC values.
8383 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8385 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
8386 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
8387 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
8388 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
8389 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
8390 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
8391 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
8392 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
8393 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
8394 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
8395 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
8396 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
8397 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
8398 postreload.c prefix.c print-tree.c protoize.c ra-build.c
8399 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
8400 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
8401 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
8402 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
8403 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
8404 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
8407 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
8409 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
8410 * toplev.h (warning): Remove attribute.
8412 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
8414 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
8415 (pop_label_level): Likewise.
8416 (duplicate_decls): Likewise.
8417 (implicitly_declare): Likewise.
8418 (shadow_label): Likewise.
8419 (start_decl): Likewise.
8420 (finish_decl): Likewise.
8421 (grokdeclarator): Likewise.
8422 (get_parm_info): Likewise.
8423 (detect_field_duplicates): Likewise.
8424 (finish_struct): Likewise.
8425 (start_function): Likewise.
8426 (store_parm_decls): Likewise.
8427 (finish_function): Likewise.
8428 (c_expand_body_1): Likewise.
8429 (check_for_loop_decls): Likewise.
8430 (merge_translation_unit_decls): Likewise.
8432 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
8434 * common.opt: Document --param.
8435 * opts.c (columns, undocumented_msg): New.
8436 (print_help): Get number of columns from environment. Print
8437 --param help. Tweak newline handling.
8438 (print_param_help): New.
8439 (print_filtered_help): Better handling of duplicates. Complain
8440 about undocumented switches.
8441 (print_switch): New.
8442 (wrap_help): Improve wrapping, use COLUMNS.
8443 * opts.sh: Ignore comments in records.
8444 * params.def: Fix typos and remove trailing periods.
8445 * toplev.c (display_help): Don't dump --param help.
8446 * doc/sourcebuild.texi: Update.
8448 2003-07-18 Richard Henderson <rth@redhat.com>
8451 * optabs.c (prepare_operand): Fail gracefully instead of abort
8452 if the predicate doesn't satisfy.
8453 (gen_cond_trap): Allow prepare_operand to fail.
8455 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
8457 * c-common.c: Don't undefine GCC_DIAG_STYLE.
8458 (fname_decl): Don't use xxx_with_decl.
8459 (c_add_case_label): Likewise.
8460 (handle_section_attribute): Likewise.
8461 (handle_alias_attribute): Likewise.
8462 (handle_no_instrument_function_attribute): Likewise.
8463 (handle_no_limit_stack_attribute): Likewise.
8464 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
8465 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
8467 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8469 * Makefile.in (ifcvt.o): Add cfgloop.h.
8470 * basic-block.h (EDGE_LOOP_EXIT): New flag.
8471 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
8472 * ifcvt.c: Include cfgloop.h.
8473 (mark_loop_exit_edges): New static function.
8474 (if_convert): Call it.
8475 (find_if_header): Ignore branches out of loops.
8477 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
8479 * combine.c (simplify_comparison): Don't share rtx when converting
8480 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
8482 2003-07-18 David Edelsohn <edelsohn@gnu.org>
8484 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
8485 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
8486 (MUST_PASS_IN_STACK): Define.
8487 (BLOCK_REG_PADDING): Define.
8489 2003-07-18 Richard Henderson <rth@redhat.com>
8491 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
8492 to skip the addr_vec.
8494 2003-07-18 Alexandre Oliva <aoliva@redhat.com>
8496 * combine.c (combinable_i3pat): Don't forbid occurrences of
8497 i2dest or i1dest in inner_dest if inner_dest is a mem.
8499 2003-07-18 Jan Hubicka <jh@suse.cz>
8501 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
8503 2003-07-17 Jakub Jelinek <jakub@redhat.com>
8506 * loop.c (basic_induction_var): Check if convert_modes emitted any
8507 instructions. Remove them and return 0 if so.
8509 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
8511 PR optimization/11083
8512 * toplev.c (rest_of_handle_addresof): Rename into
8513 rest_of_handle_addressof. Delete unreachable blocks
8514 if dead edges were purged after the addressof pass.
8516 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
8518 * Makefile.in, configure, configure.in: Remove handling of
8519 lang-options.h and options_.h.
8520 * toplev.c (struct lang_opt, documented_lang_options): Remove.
8521 (display_help): Don't use documented_lang_options.
8523 2003-07-17 Zack Weinberg <zack@codesourcery.com>
8525 * c-decl.c (pushdecl_function_level): Make static, return nothing.
8526 (kept_level_p): Fold into poplevel.
8527 (undeclared_variable): Moved here from c-typeck.c. Export.
8528 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
8529 (undeclared_variable): Prototype here. Don't prototype
8530 kept_level_p nor pushdecl_function_level.
8531 * c-parse.in: Change first argument to poplevel from
8532 "kept_level_p()" to "KEEP_MAYBE".
8533 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
8535 2003-07-17 Roger Sayle <roger@eyesopen.com>
8537 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
8538 commutative operands instead of modifying the RTL in-place.
8540 2003-07-17 Mark Mitchell <mark@codesourcery.com>
8542 PR optimization/11557
8543 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
8544 unless we know which function is being called.
8546 2003-07-17 Roger Sayle <roger@eyesopen.com>
8548 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
8549 whether to reorder the operands of a commutative binary operator.
8551 2003-07-17 Roger Sayle <roger@eyesopen.com>
8553 * fold-const.c (const_binop): Avoid performing the FP operation at
8554 compile-time, if either operand is NaN and we honor signaling NaNs,
8555 or if we're dividing by zero and either flag_trapping_math is set
8556 or the desired mode doesn't support infinities.
8557 (fold_initializer): New function to fold an expression ignoring any
8558 potential run-time exceptions or traps.
8559 * tree.h (fold_initializer): Prototype here.
8560 * c-typeck.c (build_binary_op): Move to the end of the file so
8561 that intializer_stack is in scope. If constructing an initializer,
8562 i.e. when initializer_stack is not NULL, use fold_initializer to
8564 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
8565 performing FP operations at compile-time, if they would raise an
8566 exception at run-time.
8568 2003-07-17 Geoffrey Keating <geoffk@apple.com>
8571 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
8572 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
8573 (GTFILES): Add langhooks.c.
8574 (gt-langhooks.h): New.
8575 * c-common.h (c_static_assembler_name): Prototype.
8576 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
8577 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
8578 * c-opts.c: Include langhooks-def.h.
8579 (c_static_assembler_name): New.
8580 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
8582 (lhd_set_decl_assembler_name): Give static objects with context
8584 * varasm.c (var_labelno): Delete.
8585 (make_decl_rtl): Don't change the assembler name once it's set.
8587 * c-opts.c (this_input_filename): New.
8588 (finish_options): Take new parameter, name of file being compiled.
8589 Update callers. Set this_input_filename.
8590 (push_command_line_include): Use this_input_filename not
8591 main_input_filename.
8593 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
8595 * Makefile.in: Depend .pot generation on options.c.
8596 * po/exgettext: Add an extra_files variable containing additional
8599 2003-07-17 Zack Weinberg <zack@codesourcery.com>
8601 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
8602 c_write_global_declarations.
8604 * c-decl.c: Fix typos in several comments. Remove all
8605 #if 0 blocks; reindent as needed. Remove unused argument
8606 to declare_parm_level; all callers changed.
8607 * c-parse.in: Update calls to declare_parm_level. Avoid
8608 issuing a double warning in some circumstances.
8609 * c-typeck.c: Update calls to declare_parm_level.
8610 * c-tree.h: Update prototype of declare_parm_level.
8612 * c-pragma.c (apply_pragma_weak): Don't complain about a
8613 redundant #pragma weak.
8615 * objc/objc-act.c (forward_declare_categories,
8616 build_selector_reference_decl, build_class_reference_decl,
8617 build_objc_string_decl, synth_forward_declarations,
8618 build_protocol_reference): Set TREE_PUBLIC on synthetic
8619 forward decl to 0, consistent with eventual definition.
8620 Correct comments to match.
8622 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
8623 in regexp that don't form a range expression.
8624 * fixinc/fixincl.def: Regenerate.
8626 2003-07-17 Richard Henderson <rth@redhat.com>
8629 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
8630 even with !TARGET_CONST_GP.
8631 (ia64_function_ok_for_sibcall): Reject non-local functions.
8633 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
8635 * c-common.c (c_estimate_num_insns_1): Don't handle
8637 * expr.c (safe_from_p): Likewise.
8638 * gengtype.c (adjust_field_tree_exp): Likewise.
8639 * stmt.c (warn_if_unused_value): Likewise
8640 * tree.c (first_rtl_op): Likewise.
8641 * tree.def: Don't define METHOD_CALL_EXPR.
8642 * java/lang.c (java_estimate_num_insns_1): Don't handle
8645 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
8648 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
8649 and its restrictions for the SPARC64 port.
8650 Move the entry of "-mimpure-text" before that of "-mv8".
8652 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
8653 Phil Edwards <phil@jaj.com>
8655 * doc/install.texi (*-*-solaris2*): Document the step-by-step
8656 procedure to bootstrap and install.
8657 Document the preference for the legacy Sun tools in /usr/bin
8658 over the POSIX tools in /usr/xpg4/bin for the build process.
8660 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
8662 * c.opt: Document Uncodumented; use it. Document ObjC options.
8663 * opts.c (print_filtered_help): Skip undocumented switches.
8664 * opts.h (CL_UNDOCUMENTED): New.
8665 * opts.sh: Handle Undocumented.
8666 * toplev.c (documented_lang_options): Prevent its becoming empty.
8668 * lang-options.h: Remove.
8670 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
8672 * loop.c (check_ext_dependent_givs): Pass const struct loop *
8673 instead of struct loop_info * as argument. Accept BIVs with
8674 increment +/- 1 provided there is a friendly exit test against
8675 a loop-invariant value.
8676 (strength_reduce): Adapt call to check_ext_dependent_givs.
8678 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
8679 Con Bradley <con.bradley@superh.com>
8681 * sh-protos.h (sh_get_pr_initial_val): Declare.
8682 * sh.c (regno_reg_class): Make its elements type enum reg_class.
8683 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
8684 and live_regs_mask arguments. Changed all callers.
8685 (save_schedule_s): New structure.
8686 (save_schedule): New typedef.
8687 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
8688 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
8689 In interrupts handlers, also save registers that are usually
8690 partially saved, and make sure there is at least one general purpose
8691 register saved if a target register needs saving.
8692 Add casts in comparisons to avoid warnings.
8693 (sh_media_register_for_return): return -1 for interrupt handlers.
8694 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
8695 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
8696 registers used are available.
8697 Set RTX_FRAME_RELATED_P where appropriate.
8698 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
8699 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
8700 (initial_elimination_offset): Likewise.
8701 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
8702 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
8703 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
8704 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
8705 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
8706 and for target registers.
8707 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
8708 (regno_reg_class): Make its elements type enum reg_class.
8709 (CONSTRAINT_LEN): Don't use isdigit.
8710 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
8711 (FUNCTION_ARG): Add parentheses to avoid warnings.
8712 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
8713 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
8714 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
8715 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
8716 * sh.md (xordi3+1): Remove unused variable regno.
8717 (return_media): Check that tr0 is available before using it.
8719 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
8721 * c.opt: Document more options.
8723 2003-07-16 Roger Sayle <roger@eyesopen.com>
8725 * combine.c (subst): Also handle (subreg (const_double ...)) case
8726 if created by a substitution, by using the original inner mode.
8728 2003-07-16 Roger Sayle <roger@eyesopen.com>
8730 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
8731 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
8732 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
8734 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
8736 * doc/install.texi (--without-headers): New.
8738 Partial Fix PR/10129
8739 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
8740 (machopic_output_function_base_name): New; print the true pic label.
8741 (machopic_classify_ident): Pic Base is always a defined data.
8742 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
8743 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
8745 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
8746 if they are not floating point registers.
8749 * ggc.h: Add header guards.
8750 * c-decl.c (finish_struct): Sort fields if
8751 number greater than 15 and there are no
8752 anonymous structs/unions.
8753 * c-common.h: Include ggc.h.
8754 (sorted_fields_type): New struct.
8755 (field_decl_cmp): New prototype.
8756 (resort_sorted_fields): New prototype.
8757 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
8758 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
8759 as s, removing other fields.
8760 * c-typeck.c (lookup_field): Use s in lang_type.
8761 These were mostly moved from cp/class.c:
8762 * c-common.c (field_decl_cmp): New static function.
8763 (field_decl_cmp): New function.
8764 (resort_sorted_fields): New function.
8766 2003-07-16 Geoffrey Keating <geoffk@apple.com>
8768 * config/darwin.c (machopic_select_section): Use decl_readonly_section
8769 to do most of the work.
8771 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
8773 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
8774 * config/mmix/mmix.c: Convert functions to ISO C90.
8775 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
8777 (mmix_get_hard_reg_initial_val): Tweak section head comment.
8779 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
8781 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
8783 2003-07-16 Jakub Jelinek <jakub@redhat.com>
8785 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
8786 (uw_update_context_1): Use it.
8787 * config/rs6000/rs6000.c (insn_after_throw): Remove.
8788 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
8789 in parent frame if _Unwind_* called directly instead of through
8791 (rs6000_emit_eh_toc_restore): Remove.
8792 (rs6000_emit_prologue): Update stack pointer before doing any saving
8793 if current_function_calls_eh_return. Generate unwind info for $r2.
8794 (rs6000_emit_epilogue): Restore stack pointer after doing all
8795 restoring if current_function_calls_eh_return. Restore $r2.
8796 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
8797 * config/rs6000/rs6000.md (eh_return): Remove call to
8798 rs6000_emit_eh_toc_restore.
8799 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
8800 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
8802 2003-07-15 Jakub Jelinek <jakub@redhat.com>
8804 * expr.c (emit_block_move): Don't move anything if size is const 0.
8805 (clear_storage): Test against const0_rtx instead of comparing INTVAL
8808 2003-07-15 David S. Miller <davem@redhat.com>
8810 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
8811 emit nop if the last real insn is CALL_INSN.
8813 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
8815 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
8817 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
8819 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
8821 * config/i386/winnt.c (associated_type): Artificial methods are not
8822 affected by the import/export status of their class unless they are
8824 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
8826 * config/i386/winnt.c: Fix GCC copyright comment.
8828 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
8831 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
8832 not recursing on hard error.
8833 (diagnostic_for_decl): Likewise.
8834 * diagnostic.def: Rearrange.
8836 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
8838 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
8839 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
8841 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
8842 Richard Henderson <rth@redhat.com>
8844 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
8845 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
8846 (_Unwind_SetGR): Likewise.
8847 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
8848 (Unwind_SpTmp): New typedef.
8849 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
8850 (uw_update_context): Use _Unwind_GetPtr.
8851 (init_dwarf_reg_size_table): Move above uw_init_context_1.
8852 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
8853 Use _Unwind_SetSpColumn.
8854 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
8857 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
8859 * c.opt: Document more options.
8860 * toplev.c (documented_lang_options): Remove all local help strings.
8862 2003-07-15 Mark Mitchell <mark@codesourcery.com>
8865 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
8868 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
8871 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
8872 swap comparison operands if doing so would generate an
8873 unrecognizable insn.
8875 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
8877 PR optimization/11320
8878 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8879 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8880 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8881 current_sched_info->compute_jump_reg_dependencies. Record which
8882 registers are used and which registers are set by the jump.
8883 Clear deps->reg_conditional_sets after a barrier.
8884 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8885 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8886 (init_deps): Initialize reg_conditional_sets.
8887 (free_deps): Clear reg_conditional_sets.
8888 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8889 Mark registers live on entry of the fallthrough block and conditionally
8890 set as set by the jump. Mark registers live on entry of non-fallthrough
8891 blocks as used by the jump.
8892 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8893 Mark new parameters as unused.
8895 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
8897 * doc/invoke.texi: Resync MIPS -march documentation.
8899 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
8901 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
8902 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
8903 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
8904 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
8905 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
8906 (mips_issue_rate): Handle PROCESSOR_R9000.
8907 (mips_use_dfa_pipeline_interface): Likewise.
8908 * config/mips/9000.md: New file.
8909 * config/mips/mips.md: Include it.
8910 (define_attr cpu): Add r9000.
8911 (mulsi3_mult3): Use "mul" for rm9000 code.
8913 2003-07-15 Stan Cox <scox@redhat.com>
8915 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
8916 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
8917 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
8918 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
8919 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
8920 (mips_issue_rate): Handle PROCESSOR_R7000.
8921 (mips_use_dfa_pipeline_interface): Likewise.
8922 * config/mips/7000.md: New file.
8923 * config/mips/mips.md: Include it.
8924 (define_attr cpu): Add r7000.
8925 (mulsi3_mult3): Use "mul" for rm7000 code.
8927 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
8929 * config/mips/mips.md (define_attr type): Add condmove. Use it for
8930 the conditional move patterns.
8931 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
8932 Check for condmove type.
8933 (ir_vr54_arith): Add move type.
8934 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
8935 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
8937 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
8939 * c-opts.c (print_help): Remove.
8940 (c_common_handle_option): Don't handle --help.
8941 * c.opt: Document some options.
8943 * opts.c (print_filtered_help): New.
8944 (print_help): Use it.
8946 2003-07-14 Geoffrey Keating <geoffk@apple.com>
8948 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
8949 * tree.c: (build_common_tree_nodes_2): Likewise.
8950 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
8951 (V4DF_type_node): New.
8953 * c-opts.c (push_command_line_include): Don't free deferred_opts,
8955 (finish_options): Reset init_cursor.
8957 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
8959 * expr.c (expand_assignment): Remove an unused argument
8961 * expr.h: Update the prototype.
8962 * function.c: Update the callers.
8965 2003-07-14 Mark Mitchell <mark@codesourcery.com>
8968 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
8971 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
8973 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
8974 with __cplusplus, not "we must use the C++ compiler's type"
8975 * fixinc/inclhack.def (void_null): Note that Interix needs this.
8976 * fixinc/fixincl.x: Regenerate.
8978 2003-07-14 Geoffrey Keating <geoffk@apple.com>
8980 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
8981 and unseen_objects from the global data before calling
8982 __deregister_frame_info_bases.
8983 (examine_objects): Insert objects into the seen_objects list,
8985 (_Unwind_Find_FDE): Always unlock the global object lists, even if
8986 we couldn't allocate a data structure to put in it.
8988 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
8989 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
8990 (SET_TYPE_PROTOCOL_LIST): New.
8991 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
8992 (get_object_reference): Likewise.
8994 2003-07-14 Jan Hubicka <jh@suse.cz>
8996 * cfglayout.c (locator_file): Break out from ....
8997 (insn_file): ... here.
8998 (locator_line): Break out from ....
8999 (insn_line): ... here.
9000 * rtl.h (locator_file, locator_line): Declare.
9001 (final_start_function): Set proper line/file info.
9003 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
9005 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
9006 handled by pp_c_cast_expression.
9008 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
9010 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
9011 allocate 32768 bytes of stack. Use addition rather than subtraction
9012 when a single insn is enough.
9013 * config/mips/mips.md: Remove insns and splitters for subtracting
9015 (subsi3): Only accept register operands.
9016 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
9017 (subdi3_internal_3, subsi3_internal_2): Likewise.
9018 (casesi): Use expand_binop to subtract the lower bound.
9020 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
9022 * config/mips/mips.c (mips_in_small_data_p): Don't handle
9023 TARGET_MIPS16 specially.
9025 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
9027 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
9028 mips_output_aligned_bss.
9029 * config/mips/linux.h: Likewise.
9030 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
9031 * config/mips/mips.c (mips_output_aligned_bss): New function.
9033 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
9034 * config/mips/elf64.h: Likewise.
9036 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
9037 mips_declare_object_name.
9038 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
9039 * config/mips/elf64.h: As for elf.h.
9040 * config/mips/iris6.h: Likewise.
9041 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
9042 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
9043 do...while (0) block.
9044 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
9045 (mips_finish_declare_object): Declare.
9046 * config/mips/mips.c (mips_declare_object_name): New function.
9047 (mips_finish_declare_object): New function.
9049 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
9050 * config/mips/linux.h: Likewise.
9052 * config/mips/mips.c (inside_function): Delete.
9053 (file_in_function_warning, ignore_line_number): Delete.
9054 (mips_output_filename): Don't warn about changing filenames within
9056 (mips_output_lineno): Update accordingly.
9057 (mips_output_function_prologue): Don't reset the deleted variables.
9058 * config/mips/mips.h (inside_function): Delete.
9059 (file_in_function_warning, ignore_line_number): Delete.
9061 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
9062 * config/mips/elf64.h: Likewise.
9063 * config/mips/openbsd.h: Likewise.
9064 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
9065 * config/mips/linux.h: Likewise.
9066 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
9067 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
9069 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
9070 to the list of include files when using gas.
9071 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
9072 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
9073 * config/mips/elf64.h: Likewise.
9074 * config/mips/iris5.h: Likewise.
9075 * config/mips/linux.h: Likewise.
9076 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
9077 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
9078 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
9079 * config/mips/sdb.h: ...this new file.
9081 2003-07-14 Douglas Rupp <rupp@gnat.com>
9083 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
9084 argument to getcwd; use fixed buffer instead.
9086 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
9088 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
9089 * fixinc/fixinc.wrap: Delete.
9091 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
9093 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
9096 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
9098 * ggc-page.c (struct globals): Add new fields to keep track of the
9099 total allocated memory and overhead.
9100 (ggc_print_statistics): Print them.
9101 (ggc_alloc): Keep track of the total allocated memory and the
9104 * tree.c (dump_tree_statistics): Increase spacing.
9105 (enum tree_node_kind): Move to ...
9106 * tree.h (enum tree_node_kind): ... here.
9107 (tree_node_counts, tree_node_sizes): Declare.
9109 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
9111 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
9113 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9115 PR optimization/11440
9116 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
9119 2003-07-14 Alan Modra <amodra@bigpond.net.au>
9121 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
9122 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
9123 (emit_group_load, emit_group_store): Adjust declarations.
9124 Remove most occurrences of #ifdef TREE_CODE.
9125 * expr.c (emit_group_load): Add "type" param, and use
9126 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
9127 aligned accesses if !SLOW_UNALIGNED_ACCESS.
9128 (emit_group_store): Likewise.
9129 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
9130 emit_group_load and emit_group_store calls.
9131 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
9132 BLOCK_REG_PADDING to determine whether we need endian_correction.
9133 (load_register_parameters): Localize vars. Handle shifting of
9134 small values to the correct end of regs. Adjust emit_group_load
9136 (expand_call, emit_library_call_value_1): Adjust emit_group_load
9137 and emit_group_store calls.
9138 * function.c (assign_parms): Set mem alignment for stack slots.
9139 Adjust emit_group_store call. Store values at the "wrong" end
9140 of regs to the stack. Use BLOCK_REG_PADDING.
9141 (locate_and_pad_parm): Save where_pad.
9142 (expand_function_end): Adjust emit_group_load call.
9143 * stmt.c (expand_value_return): Adjust emit_group_load call.
9144 * Makefile.in (calls.o): Depend on $(OPTABS_H).
9145 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
9146 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
9147 (MUST_PASS_IN_STACK): Define.
9148 (BLOCK_REG_PADDING): Define.
9149 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
9150 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
9151 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
9152 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
9153 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
9155 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
9157 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
9159 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9161 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
9162 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
9164 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
9167 * toplev.c: Don't cut off option names.
9169 2003-07-13 Andreas Jaeger <aj@suse.de>
9171 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
9172 to integer of different size.
9174 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
9176 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
9177 to (eq (and X 1) 0).
9179 2003-07-13 Andreas Jaeger <aj@suse.de>
9181 * config.gcc: Add pmmintrin.h for x86_64-*-*.
9183 2003-07-13 Zack Weinberg <zack@codesourcery.com>
9185 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
9186 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
9187 list. Move these all together down by cpplib.
9189 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
9190 definition of CPPCHAR_SIGNED_T.
9192 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
9193 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
9194 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
9196 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
9197 * cppinit.c (cpp_create_reader): Likewise.
9199 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
9200 * cpptrad.c: Likewise. All callers changed.
9201 * cpplib.c: All callers changed.
9202 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
9203 * hashtable.h: Define GTY(x) to nothing here too.
9205 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9207 * stor-layout.c (compute_record_mode): Remove very obsolete test
9208 that forces BLKmode for records with fields crossing word boundary.
9210 2003-07-13 Zack Weinberg <zack@codesourcery.com>
9212 * Makefile.in: Remove orphan reference to acconfig.h.
9214 2003-07-13 Andreas Jaeger <aj@suse.de>
9216 * cgraphunit.c: Convert prototypes to ISO C90.
9218 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
9220 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
9222 * fixinc/fixincl.x: Rebuild.
9224 2003-07-12 Zack Weinberg <zack@codesourcery.com>
9226 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
9227 i?86-*-*. Use correct name of cache variable.
9228 * configure: Regenerate.
9230 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
9232 * config/alpha/alpha.c: Fix comment typos.
9233 * config/alpha/alpha.md: Likewise.
9234 * config/arm/arm.c: Likewise.
9235 * config/arm/arm.md: Likewise.
9236 * config/arm/lib1funcs.asm: Likewise.
9237 * config/avr/avr.md: Likewise.
9238 * config/arm/README-interworking: Fix typos.
9240 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
9242 * c-format.c: Fix comment formatting.
9243 * c-typeck.c: Likewise.
9244 * coverage.c: Likewise.
9245 * cppcharset.c: Likewise.
9246 * cpplib.c: Likewise.
9247 * dbxout.c: Likewise.
9248 * gcov-io.h: Likewise.
9249 * toplev.c: Likewise.
9251 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
9253 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
9256 2003-07-12 Zack Weinberg <zack@codesourcery.com>
9258 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
9259 uses three-argument AC_DEFINE so no acconfig.h entries are
9261 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
9262 which contains the GAS version number as a scaled integer.
9263 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
9264 ability to check for ELF assembler.
9265 (gcc_GAS_CHECK_FEATURE): New macro.
9266 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
9267 assembler feature checks using gcc_GAS_CHECK_FEATURE.
9268 Use three-argument AC_DEFINE everywhere.
9269 * acconfig.h: Deleted.
9270 * config.in, configure: Regenerate.
9272 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
9274 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
9276 * fixinc/fixincl.x: Regenerate.
9278 * fixinc/inclhack.def (gnu_types): Improve comment.
9280 2003-07-12 Andreas Jaeger <aj@suse.de>
9282 * fp-test.c (main): Use ISO C90 prototype.
9284 * version.c: Remove unneded include of ansidecl.h.
9286 * cgraph.h: Convert prototypes to ISO C90.
9287 * cgraph.c: Likewise.
9288 * fix-header.c: Likewise.
9290 * protoize.c: Likewise.
9292 2003-07-12 Jan Hubicka <jh@suse.cz>
9294 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
9297 2003-07-12 Jan Hubicka <jh@suse.cz>
9298 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9300 * cgraph.c (cgraph_max_uid): New global variable.
9301 (cgraph_node): Set uid field.
9302 (create_edge): Keep inline flags consistent.
9303 (dump_cgraph): Dump more info.
9304 * cgraph.h (struct cgraph_local_info): Remove inline_many and
9305 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
9306 (struct cgraph_global_info): Add insns, calls, cloned_times,
9308 (struct cgraph_node): Add uid.
9309 (struct cgraph_edge): Add inline_call.
9310 (cgraph_max_uid, cgraph_inline_p): Declare.
9311 * cgraph.c: Include params.h and fibheap.h
9312 (cgraph_mark_functions_to_inline_once): Kill.
9313 (INSNS_PER_CALL): New constant.
9314 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
9316 (cgraph_finalize_function): Do not analyze inlining.
9317 (cgraph_finalize_compilation_unit): Set inlining attributes.
9318 (cgraph_mark_functions_to_output): More consistency checks.
9319 (cgraph_optimize_function): Set current_function_decl to NULL.
9320 (cgraph_expand_function): Use new inline flags.
9321 (cgraph_postorder): Expand from cgraph_expand_functions.
9322 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
9323 (cgraph_inlined_into, cgraph_inlined_callees,
9324 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
9325 cgraph_mark_inline, cgraph_check_inline_limits,
9326 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
9327 cgraph_decide_inlining, cgraph_inline_p): New functions.
9328 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
9329 PARAM_INLINE_UNIT_GROWTH): New parameters.
9330 * tree-inline.c (struct inline_data): New field current_decl.
9331 (expand_call_inline): Avoid forward declarations; use
9332 inlinable_function_p.
9333 (optimize_inline_calls): Set id.current_decl.
9335 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
9337 * configure.in: Remove wrongly added definition of
9339 * configure: Regenerate.
9341 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9343 * rtl.def (NOTE): Do not use padding.
9345 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
9347 * doc/install.tex: Update required binutils for i?86-*-linux*
9349 2003-07-11 Richard Henderson <rth@redhat.com>
9351 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
9353 2003-07-11 Mark Mitchell <mark@codesourcery.com>
9355 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
9356 TRANSLATION_UNIT_DECL as top_level.
9358 2003-07-11 Jakub Jelinek <jakub@redhat.com>
9360 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
9361 then fall back to cmpstrM.
9362 * builtins.c (expand_builtin_memcmp): Likewise.
9363 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
9364 (s390_expand_cmpmem): ... this.
9365 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
9366 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
9367 from cmpstr* patterns. Rename call to s390_expand_cmpstr
9368 to s390_expand_cmpmem.
9369 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
9370 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
9372 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
9374 * doc/md.texi (cmpstrM): Describe as String compare insn, not
9378 2003-07-11 Loren James Rittle <ljrittle@acm.org>
9380 * config/i386/freebsd.h (SET_ASM_OP): Remove.
9381 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
9382 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
9383 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
9385 2003-07-11 Richard Henderson <rth@redhat.com>
9387 * function.c (assign_parms): Don't recombine complex args if
9388 fnargs is unchanged from orig_fnargs.
9389 (split_complex_args): Return args without complex before copying.
9390 Re-layout the modified parameters.
9392 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
9394 * regclass.c (choose_hard_reg_mode): Add third argument.
9395 Changed all callers.
9396 * rtl.h (choose_hard_reg_mode): Update declaration.
9397 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
9398 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
9400 2003-07-11 Geoffrey Keating <geoffk@apple.com>
9402 * c-decl.c (finish_decl): Handle 'used' here...
9403 * cgraphunit.c (cgraph_finalize_function): ... and here ...
9404 * c-common.c: (handle_used_attribute): ... not here.
9406 * configure.in (onstep): Support --enable-intermodule.
9407 * Makefile.in (OBJS-common): New.
9409 (OBJS-archive): New.
9410 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
9411 (OBJS-onestep): New.
9412 (libbackend.a): Support @onestep@.
9413 (libbackend.o): New.
9414 * configure: Regenerate.
9416 * c-common.h (c_reset_state): New prototype.
9417 (c_parse_file): New prototype.
9418 (finish_file): Move prototype from c-tree.h.
9419 * c-decl.c: Include <hashtab.h>.
9420 (builtin_decls): New.
9421 (current_file_decl): New.
9422 (duplicate_decls): Add extra parameter. Change all callers. Don't
9423 output duplicate common symbols.
9424 (link_hash_hash): New.
9425 (link_hash_eq): New.
9426 (poplevel): Handle popping of the top level.
9427 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
9428 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
9429 (pushdecl_top_level): Likewise.
9430 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
9431 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
9432 (finish_decl): Handle TRANSLATION_UNIT_DECL.
9433 (merge_translation_unit_decls): New.
9434 (c_write_global_declarations): New.
9435 (c_reset_state): New.
9436 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
9437 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
9438 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
9439 TRANSLATION_UNIT_DECL.
9440 (c_objc_common_finish_file): Call merge_translation_unit_decls.
9441 * c-opts.c (in_fnames): Rename from in_fname.
9442 (c_common_decode_option): Handle multiple input filenames.
9443 (c_common_post_options): Likewise.
9444 (c_common_parse_file): Likewise; also, call c_parse_file rather than
9446 * c-parse.in: Move cleanup code to c_parse_file.
9447 (free_parser_stacks): Move contents to c_parse_file.
9448 (c_parse_file): New.
9449 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
9451 (C_DECL_FILE_SCOPE): New.
9452 (finish_file): Move prototype to c-common.h.
9453 (merge_translation_unit_decls): New prototype.
9454 (comptypes): Add extra parameter to prototype.
9455 (c_write_global_declarations): New prototype.
9456 * c-typeck.c (tagged_types_tu_compatible_p): New.
9457 (function_types_compatible_p): Add extra parameter, change all callers.
9458 (type_lists_compatible_p): Likewise.
9459 (comptypes): Likewise.
9460 (struct tagged_tu_seen): New.
9461 (tagged_tu_seen_base): New.
9462 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
9463 (c_mark_addressable): Remove #if 0 code.
9464 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
9465 comment explaining why it shouldn't have to.
9466 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
9468 * cppinit.c (cpp_read_next_file): New.
9469 (cpp_read_main_file): Use it.
9470 * cpplib.c (undefine_macros): New.
9471 (cpp_undef_all): New.
9472 * cpplib.h (cpp_read_next_file): Prototype.
9473 (cpp_undef_all): Prototype.
9474 * langhooks-def.h (write_global_declarations): Remove prototype.
9475 * toplev.h (write_global_declarations): Add prototype.
9476 * tree.c (decl_type_context): Use switch statement, handle
9477 TRANSLATION_UNIT_DECL.
9478 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
9479 (TRANSLATION_UNIT_DECL): New kind of tree.
9480 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
9481 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
9482 * doc/invoke.texi: Make attempt to document new functionality.
9484 2003-05-19 Per Bothner <bothner@apple.com>
9486 * gcc.c (combine_inputs): New.
9487 (process_command): Set combine_inputs.
9488 (do_spec_1): Handle combine_inputs.
9491 2003-07-10 James E Wilson <wilson@tuliptree.org>
9493 PR optimization/9745
9494 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
9495 loop_insn_emit_before.
9496 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
9498 2003-07-10 Zack Weinberg <zack@codesourcery.com>
9500 * cppcharset.c: Fix comment.
9501 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
9502 (EILSEQ): #define to EINVAL if not already defined.
9503 (convert_using_iconv): #if out when !HAVE_ICONV.
9504 (init_iconv_desc): Handle !HAVE_ICONV here...
9505 (cpp_init_iconv): ...not here.
9507 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
9509 * common.opt: More --help messages.
9510 * opts.c (print_help): Use puts().
9511 * toplev.c (f_options): Remove help text.
9512 (display_help): Don't dump f_options.
9514 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
9516 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
9517 Move i?86-*-interix* to the don't-fix list.
9518 * fixinc/fixinc.interix: Delete with extreme prejudice.
9520 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
9523 * doc/install.texi: Document requirements for ia64-*-hpux* target.
9525 2003-07-10 Roger Sayle <roger@eyesopen.com>
9527 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
9529 2003-07-10 Zack Weinberg <zack@codesourcery.com>
9531 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
9532 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
9533 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
9534 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
9535 convert_no_conversion, convert_using_iconv): New functions.
9536 (APPLY_CONVERSION): New macro.
9537 (struct conversion, conversion_tab): New data structure.
9538 (init_iconv_desc): Check conversion_tab for a custom conversion
9539 primitive before trying to use iconv.
9540 (convert_cset): Deleted.
9541 (cpp_init_iconv): Use UTF- terminology, not UCS-.
9542 (_cpp_destroy_iconv): Update to match.
9543 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
9544 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
9545 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
9546 (_cpp_interpret_string_notranslate): New function, moved here
9549 * cpphash.h (convert_f, struct cset_converter): New types.
9550 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
9551 are now struct cset_converter, not bare iconv_t.
9553 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
9554 all callers changed.
9556 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
9558 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
9559 to opts.sh command line.
9560 * opts.sh: Write to temporary files with a move-if-change at the end.
9562 2003-07-10 Denis Chertykov <denisc@overta.ru>
9563 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9565 * combine.c (gen_binary): Handle the CLOBBER rtx and
9566 don't build a binary operation with it.
9568 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9570 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
9571 store_killed_after, store_killed_before): Keep track of the correct
9572 dependency function to use.
9574 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
9575 * toplev.c (do_compile): Don't try to open dump files before
9576 lang_dependent_init initializes dump_base_name.
9578 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9580 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
9582 * config/frv/frv.c (frv_expand_builtin): Likewise.
9583 * config/sh/sh.c (sh_media_init_builtins): Likewise.
9585 2003-07-09 Mark Mitchell <mark@codesourcery.com>
9588 * doc/invoke.texi (C++ Dialect Options): Change documentation of
9591 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
9593 * tm.texi (RETURN_ADDR_OFFSET): Document.
9595 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
9597 * gcov-io.h: Update documentation.
9598 (GCOV_UNSIGNED2STRING): New.
9599 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
9600 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
9601 GCOV_TAG_SUMMARY_LENGTH): Adjust.
9602 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
9603 GCOV_TAG_COUNTER_NUM): New.
9604 (GCOV_BLOCK_SIZE): Number of words.
9605 (gcov_var): Adjust buffer type.
9606 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
9607 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
9608 count, not byte count.
9609 (gcov_open): Adjust overread init.
9610 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
9611 gcov_write_string, gcov_write_tag, gcov_write_length,
9612 gcov_write_tag_length): Adjust.
9613 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
9614 (gcov_sync, gcov_seek): Adjust.
9615 * gcov-dump.c (print_usage): Show gcc version only.
9616 (dump_file): Use GCOV_UNSIGNED2STRING.
9617 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
9618 * gcov.c (print_version): Show gcc version only.
9619 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
9620 GCOV_TAG_*_NUM macros.
9621 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
9622 GCOV_TAG_COUNTER_LENGTH.
9623 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
9624 Use GCOV_TAG_COUNTER_NUM.
9625 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
9626 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
9628 2003-07-10 Andreas Schwab <schwab@suse.de>
9630 * gcov-dump.c (dump_file): Fix missing address operator.
9632 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
9635 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
9637 (fold_single_bit_test): If sign_bit_p() fails, assume that the
9638 bit being tested is not a sign bit.
9640 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
9642 * config/h8300/h8300.md (a peephole2): New.
9644 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
9646 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
9647 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
9648 from ld-linux.so.2 to ld.so.1.
9649 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
9650 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
9651 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
9652 nor -Wl,-rpath-link.
9653 (LIB_SPEC): Add -rpath-link if !static.
9654 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
9655 * config/mn10300/mn10300.c (mn10300_protect_label): New
9657 * config/mn10300/linux.h (PRINT_OPERAND,
9658 PRINT_OPERAND_ADDRESS): Set it during their execution.
9659 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
9660 mn10300_protect_label is set.
9661 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
9663 (LIB_SPEC, STARTFILE_SPEC): Define.
9664 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
9665 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
9666 FLOAT_BIT_ORDER_MISMATCH.
9667 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
9668 * config.gcc (am33_2.0-*-linux*): Added.
9669 * config/mn10300/linux.h: New.
9670 * config/mn10300/t-linux: New.
9672 2003-07-10 Andreas Jaeger <aj@suse.de>
9674 * fold-const.c: Properly wrap prototypes.
9676 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
9678 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
9679 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
9681 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
9682 * config/mn10300/mn10300.h: GTY-declare it.
9683 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
9684 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
9685 prototype. Use incoming RTL argument.
9686 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
9687 * config/mn10300/mn10300.md (int_label): Move C statements...
9688 (GOTaddr2picreg): ... here.
9689 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
9690 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
9691 * config/mn10300/mn10300.c (mn10300_encode_section_info):
9692 ... here. New function.
9693 (TARGET_ENCODE_SECTION_INFO): Define to it.
9694 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
9695 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
9697 (mn10300_loadPC): Define as insn splittable after reload.
9698 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
9699 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
9700 be defined in .rodata even in PIC, now that the assembler
9702 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
9703 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
9704 symbol take an underscore prefix.
9705 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
9706 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
9707 legitimize_pic_address): Declare.
9708 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
9709 the PIC register as fixed.
9710 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
9711 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
9713 (LEGITIMATE_PIC_OPERAND_P): Define.
9714 (PIC_OFFSET_TABLE_REGNUM): Define.
9715 (GOT_SYMBOL_NAME): Define.
9716 (SYMBOLIC_CONST_P): Define.
9717 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
9719 (MN10300_GLOBAL_P): Test it.
9720 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
9721 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
9722 * config/mn10300/mn10300.c (print_operand): Handle unspec.
9723 (expand_prologue): Set PIC register.
9724 (call_address_operand): Don't match SYMBOL_REFs in PIC.
9725 (legitimize_address): Call legitimize_pic_address.
9726 (legitimize_pic_address): New fn.
9727 (legitimate_pic_operand_p): New fn.
9728 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
9729 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
9730 UNSPEC_PLT): New constants.
9731 (pop_pic_reg): New insn.
9732 (movsi): Adjust non-PIC addresses.
9733 (builtin_setjmp_receiver): Restore the PIC register.
9735 (call): Adjust non-PIC addresses.
9736 (int_label, GOTaddr2picreg): New expands.
9737 (am33_loadPC): New insn.
9738 (mn10300_loadPC): New expand.
9739 (call_next_insn): New insn.
9740 (add_GOT_to_pic_reg): New expand.
9741 (symGOT2reg, symGOT2reg_i): New expands.
9742 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
9743 (sym2PIC, sym2PLT): New expands.
9745 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
9747 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
9748 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
9749 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
9750 to flag_unsafe_math_optimizations.
9751 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
9752 * config/mn10300/mn10300.c (expand_prologue): Mark
9753 FP-register-saving insns as frame-related.
9754 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
9755 * config/mn10300/mn10300.c
9756 (mn10300_get_live_callee_saved_regs): Don't search past
9757 LAST_EXTENDED_REGNUM.
9758 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
9759 * config/mn10300/mn10300.md: Remove excessive line breaks from
9760 `@' output patterns that were accounted as additional
9762 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
9763 Re-introduce changes accidentally removed in Richard Sandiford's
9765 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
9766 Re-instate am33-2 lost in merge from net GCC.
9767 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
9768 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
9769 floating-point registers.
9770 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
9771 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
9772 pessimizations that had gone in on 2000-05-08.
9773 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
9774 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
9775 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
9776 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
9778 * (movhi): Likewise.
9779 * (movsi): Likewise.
9780 * (movsf): Likewise.
9781 * (movdi): Likewise.
9782 * (movdf): Likewise.
9783 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
9784 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
9785 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
9786 (expand_prologue, expand_epilogue): Save and restore FP regs.
9787 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
9788 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
9789 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
9790 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
9791 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
9793 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
9794 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
9795 Discourage the two-argument, longer opcodes.
9796 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
9798 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
9799 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
9800 * config/mn10300/mn10300.md (cmpsf): New pattern.
9801 (branch): Test mdep.fpCC and output fbCC.
9802 * config/mn10300/mn10300.c (print_operand): Output conditions.
9803 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
9804 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
9805 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
9806 mulsf3, divsf3): Use the `F' constraint for FP values.
9807 * config/mn10300/mn10300.c (const_1f_operand): New function.
9808 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
9809 * config/mn10300/mn10300.md (sqrtsf2): New expand.
9810 (rsqrtsf2): New insn.
9811 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
9812 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
9814 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
9815 * config/mn10300/mn10300.md (abssf2, negdf2): On
9816 TARGET_AM33_2, expand to...
9817 (abssf2_am33_2, negdf2_am33_2): New insns.
9818 (addsf3, subsf3, mulsf3, divsf3): Likewise.
9819 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
9820 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
9821 movdi, movdf): Added FP regs.
9822 * invoke.texi (-mam33-2, -mno-am33-2): Document.
9823 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
9824 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
9826 (REGNO_AM33_2_FP_P): Renamed to...
9827 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
9828 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
9829 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
9830 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
9831 regs from GENERAL_REGS.
9832 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
9833 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
9834 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
9835 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
9836 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
9837 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
9839 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
9840 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
9841 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
9842 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
9843 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
9844 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
9845 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
9846 AM33/2.0 floating-point registers.
9847 (CONDITIONAL_REGISTER_USAGE): Adjust.
9848 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
9849 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
9850 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
9851 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
9852 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
9853 (MULTILIB_DIRNAMES): Likewise.
9854 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
9855 `__AM33_2__' when `-mam33-2' is given.
9856 (TARGET_AM33_2): Define.
9857 (TARGET_SWITCHES): Adjust.
9858 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
9861 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
9863 * doc/install.texi: Add missing @.
9865 2003-07-09 Bob Wilson <bob.wilson@acm.org>
9867 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
9869 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
9872 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
9874 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
9877 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
9878 "x-crtfini.o" with "crtinit.o", "crtfini.o".
9880 * fixinc/inclhack.def (limits_ifndefs): Add select test.
9881 * fixinc/fixincl.x: Rebuild.
9883 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
9884 * fixinc/fixincl.x: Rebuild.
9886 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
9888 * doc/install.texi (Configuration): Document the valgrind option
9889 to --enable-checking.
9891 2003-07-09 Jan Hubicka <jh@suse.cz>
9893 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
9895 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9897 * c-lex.c (cb_ident): Cast cstr.text to const char *.
9899 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
9901 * gcov-io.h: Update documentation.
9902 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
9904 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
9905 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
9906 (struct gcov_var): Change buffer's type. Add endian flag.
9907 (gcov_open): Remove mode in libgcov.
9908 (gcov_magic): Prototype.
9909 * gcov-io.c (from_file): New.
9910 (gcov_open): Clear endian flag.
9912 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
9914 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
9915 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
9916 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
9917 * gcov-iov.c (main): Correct cast.
9918 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
9920 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
9921 (coverage_init): Use GCOV_NOTE_SUFFIX.
9922 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
9923 Rename to gcov_version, and return flag.
9924 (gcov_exit): Use gcov_version.
9925 (__gcov_init): Use gcov_version.
9926 * Makefile.in (coverageexts): Update.
9927 * gcov.c (print_version): Remove endianness conversion.
9928 (create_file_names): Use GCOV_NOTE_SUFFIX.
9929 (read_graph_file): Use gcov_magic.
9930 (read_count_file): Likewise.
9931 * gcov-dump.c (dump_file): Remove endianness conversion, use
9934 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
9936 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
9938 * configure: Regenerated.
9939 * Makefile.in (ALL_CFLAGS): Correct its comment.
9941 2003-07-08 Mark Mitchell <mark@codesourcery.com>
9943 * fold-const.c (make_range): Do not access operand 1 for a
9944 zero-operand operator.
9946 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
9948 * toplev.c (warn_dummy, W_options): Die.
9949 (display_help): Don't print W_options.
9950 * common.opt: Add W_options help from toplev.c.
9952 2003-07-09 Andreas Jaeger <aj@suse.de>
9954 * opts.c (wrap_help): Only pass int arguments as arguments to
9955 printf's '*' modifier. Change argument of function.
9957 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
9959 * doc/invoke.texi: Fix misspelling of "@item".
9961 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
9963 * config/i386/i386.md: Remove an old comment about
9966 2003-07-09 Jan Hubicka <jh@suse.cz>
9968 * cgraph.c (cgraph_node_name): New function.
9969 (dump_cgraph): Use it.
9970 * cgraph.h (cgraph_dump_file): Declare.
9971 (cgraph_node_name): Declare.
9972 * cgraphunit.c: Include timevar.h
9973 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
9974 (cgraph_optimize_function): Use TV_INTEGRATION.
9975 (cgraph_mark_local_functions): reorganize dumps.
9976 (cgraph_mark_functions_to_inline_once): Likewise.
9977 (cgraph_optimize): Likewise; use timevar.
9978 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
9979 * toplev.c (dump_file_index): Add DFI_cgraph.
9980 (dump_file_info): Likewise.
9981 (cgraph_dump_file): New global variable.
9982 (do_compile): Open and close cgraph dump.
9983 * invoke.texi (-d): Document new flag; renumber.
9985 2003-07-08 Roger Sayle <roger@eyesopen.com>
9988 * calls.c (emit_call_1): Don't bother popping the arguments off of
9989 the stack after a noreturn function call; The adjustment is dead.
9990 (expand_call): Likewise.
9992 2003-07-08 Geoffrey Keating <geoffk@apple.com>
9994 * expr.c (MOVE_MAX_PIECES): Move from here...
9995 * defaults.h (MOVE_MAX_PIECES): ... to here.
9997 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
9999 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
10001 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10003 * genattr.c (internal_dfa_insn_code): Don't prototype.
10004 * genattrtab.c (attr_desc): Add `static_p' field.
10005 (expand_units): Make blockage range and ready cost functions
10007 (write_attr_get): Don't add extern prototypes in C file. Mark
10008 static functions as appropriate.
10009 (find_attr, make_internal_attr): Initialize static_p.
10010 * genattrtab.h (ATTR_STATIC): New macro.
10011 * genautomata.c (output_internal_reset_func): Mark output function
10013 (make_internal_dfa_insn_code_attr): Mark output function as static.
10015 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10017 * genattrtab.h: Add new macros for attr `special' flags.
10018 * genattrtab.c (attr_desc): Reorder/resize fields better.
10019 Use attr `special' macros in all calls to make_internal_attr.
10020 * genautomata.c: Likewise.
10022 2003-07-09 Jan Hubicka <jh@suse.cz>
10024 * c-common.c (c_estimate_num_insns_1): New static function.
10025 (c_estimate_num_insns): New global function.
10026 * c-common.h (DECL_NUM_STMTS): Rename to...
10027 (DECL_ESTIMATED_INSNS): ... this.
10028 (c_estimate_num_insns): Declare.
10029 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
10030 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
10031 * c-semantics.c (add_stmt): Do not account statements.
10032 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
10034 * langhooks.h (lang_hooks_for_tree_inlining): Add
10036 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
10038 (max-inline-insns): set to 300.
10039 (min-inline-insns): set to 10.
10040 * tree-inline.c (struct inline_data): Rename inlined_stmts to
10042 (INSNS_PER_STMT): Kill.
10043 (inlinable_function_p): Compute and store body size.
10044 (expand_call_inline): Likewise.
10045 (optimize_inline_calls): Likewise.
10047 2003-07-08 James E Wilson <wilson@tuliptree.org>
10050 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
10051 loop over new variable t2 instead of t.
10053 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
10056 * config/i386/winnt.c: Replace use of error(), warning() with
10057 error_with_decl(), warning_with_decl(), throughout.
10059 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
10061 * opts.c (wrap_help): Use unsigned int, not size_t.
10063 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
10065 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
10066 as .file/.loc directives are incompatible with linker relaxation.
10068 2003-07-08 Zack Weinberg <zack@codesourcery.com>
10070 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
10071 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
10072 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
10073 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
10074 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
10075 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
10076 Escape { and } characters which are not part of range expressions.
10077 * fixinc/fixincl.x: Regenerate.
10078 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
10080 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
10083 * tree-inline.c (find_alloca_call): Use
10084 walk_tree_without_duplicates, instead of walk_tree.
10085 (find_builtin_longjmp_call): Likewise.
10086 * c-objc-common.c (c_cannot_inline_fn): Likewise.
10087 * c-semantics.c (find_reachable_label): Likewise.
10089 2003-07-08 Jakub Jelinek <jakub@redhat.com>
10092 * config/i386/i386.c (ix86_check_movabs): New function.
10093 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
10094 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
10095 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
10097 2003-07-08 Chris Demetriou <cgd@broadcom.com>
10099 * Makefile.in (install-po): Cope with empty CATALOGS.
10101 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
10103 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
10104 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
10105 (SECTION_FUNCTION_TEMPLATE): Delete.
10106 * config/mips/elf.h: As for elf64.h.
10107 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
10108 * config/mips/linux.h: As for elf.h
10109 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
10110 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
10111 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
10112 of in_sdata from current_section_name and current_section_flags.
10113 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
10114 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
10115 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
10116 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
10117 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
10118 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
10119 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
10120 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
10121 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
10122 (override_options): Remove setting of MASK_GPOPT.
10123 (mips_output_external): Use mips_in_small_data_p to check whether a
10124 symbol needs an .extern directive. Don't emit such directives for
10125 TARGET_EXPLICIT_RELOCS.
10126 (mips_declare_object): Update accordingly.
10127 (mips_select_rtx_section): Call named_section rather than
10128 SMALL_DATA_SECTION.
10129 (mips_select_section): Use default_elf_section_section for everything
10130 except .text string constants.
10131 (mips_in_small_data_p): New function.
10132 (mips_encode_section_info): Remove small data handling.
10133 (mips_unique_section): Delete.
10134 (iris6_section_type_flags): New function.
10135 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
10137 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10140 * pa.md: Disparage all mtsar constraints.
10141 (extzv, extv, insv): Don't fail on length of {32|64}.
10143 2003-07-08 Zack Weinberg <zack@codesourcery.com>
10145 * system.h: Poison MAP_CHARACTER.
10146 * config/i370/i370-protos.h (mvs_map_char): Delete.
10147 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
10148 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
10149 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
10151 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
10153 * toplev.c (randomize): Correct call to time().
10155 2003-07-08 Jakub Jelinek <jakub@redhat.com>
10157 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
10158 REG_EQUIV notes as well.
10160 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
10162 * doc/md.texi: Fix the description of addmodecc.
10164 2003-07-07 Zack Weinberg <zack@codesourcery.com>
10166 * Makefile.in (top_builddir): Set to "..", not ".".
10167 (INTLLIBS, INTLDEPS): Delete.
10168 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
10169 (LIBDEPS): Add $(LIBICONV_DEP).
10170 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
10171 (INCLUDES): Replace -I../intl with @INCINTL@.
10172 ($(top_builddir)/intl/libintl.a): Delete rule.
10173 (stage2-start, stage3-start, stage4-start, stageprofile-start,
10174 stagefeedback-start): Use $$ for variable to be evaluated by
10176 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
10177 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
10178 * aclocal.m4: sinclude ../config/progtest.m4. Add
10179 contents of lcmessage.m4 from gettext distro.
10180 * configure.in: Check for wchar.h and setlocale. Set
10181 LIBICONV_DEP to the empty string and substitute it.
10182 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
10183 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
10184 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
10185 in $LIBINTL, to avoid linking it twice.
10186 * configure, config.in: Regenerate.
10188 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
10190 * fixinc/mkfixinc.sh: Remove winnt support.
10191 * fixinc/fixinc.winnt: Delete with extreme prejudice.
10193 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
10195 * Makefile.in: Update.
10196 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
10197 * c.opt: Update documentation.
10198 * common.opt: Add some help text.
10199 * opts.c: Include intl.h.
10200 (wrap_help, print_help): New.
10201 (find_opt, handle_option, common_handle_option): opt_text now
10202 contains the '-'. Use print_help to output help.
10203 * opts.h (struct cl_option): New member "help".
10204 * opts.sh: Update to handle help text output and to prepend
10206 * toplev.c (display_help): Remove some help text.
10208 2003-07-07 David Edelsohn <edelsohn@gnu.org>
10209 Fariborz Jahanian <fjahanian@apple.com>
10211 * configure.in: Test for PowerPC mfcr field support in assembler.
10212 * config.in, configure: Regenderated.
10214 * config/rs6000/power4.md: Add mfcrf reservation.
10215 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
10216 * config/rs6000/rs6000.c (mfcr_operation): Define.
10217 (print_operand): Add 'Q' case for mfcrf.
10218 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
10219 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
10220 (movcc_internal1): Emit optional field operand for mfcr and set
10221 "type" attribute appropriately.
10222 (mfcr SCC): Likewise.
10223 (movesi_from_cr_one): New.
10225 2003-07-07 Roger Sayle <roger@eyesopen.com>
10227 * config/i386/i386.md: Correct check-in of incorrect version.
10229 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10231 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
10232 adjacent stdio calls.
10233 * c-decl.c (c_print_identifier): Likewise.
10234 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
10235 * print-rtl.c (print_rtx): Likewise.
10236 * print-tree.c (print_node_brief, print_node): Likewise.
10237 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
10239 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
10240 * config.in, configure: Regenerated.
10242 2003-07-07 Roger Sayle <roger@eyesopen.com>
10245 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
10246 Changed to define_expand patterns that copy operand[1] to prevent
10247 it from being clobbered before emitting an atan2?f3_1 insn.
10248 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
10249 patterns that actually specify the behaviour of x87's FPATAN.
10251 2003-07-07 Jakub Jelinek <jakub@redhat.com>
10253 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
10254 clearing of SYMBOL_FLAG_LOCAL bit.
10255 If vcall_offset fits into signed 16-bit immediate, use
10256 one instruction for both addition and load.
10258 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
10260 * opts.c (common_handle_option): Correct handling of the
10261 -falign- switches that do and don't take an argument.
10263 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
10265 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
10267 (pushhi1_h8300hs): Likewise.
10269 2003-07-07 Andreas Jaeger <aj@suse.de>
10271 * genextract.c: Convert remaining prototypes to ISO C90.
10273 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
10274 * fold-const.c (fold_single_bit_test): Likewise.
10275 * diagnostic.c (default_diagnostic_finalizer): Likewise.
10276 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
10278 * gengtype.c (write_array): Generate ISO C90 prototypes.
10280 * genflags.c (gen_proto): Generate ISO C90 prototypes.
10282 2003-07-07 Roger Sayle <roger@eyesopen.com>
10284 PR optimization/11059
10285 * expr.c (can_store_by_pieces): Return true if length is zero.
10286 (store_by_pieces): If length is zero and endp is two, abort,
10287 othwerise, if length is zero and endp is not two, return "to".
10288 (clear_by_pieces): Do nothing if length is zero.
10289 (clear_storage): Do nothing if length is zero.
10290 (store_constructor): Simplify code when size is zero, or the
10291 target has already been cleared. This avoids emitting a
10292 blockage instruction when initializing empty structures.
10294 2003-07-07 Andreas Jaeger <aj@suse.de>
10296 * mips-tfile.c: Convert prototypes to ISO C90.
10297 * mips-tdump.c: Convert prototypes to ISO C90.
10299 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
10301 * rtl.h (emit_line_note): Take a location_t.
10302 (emit_line_note_force): Remove.
10303 (set_file_and_line_for_statement): Take a location_t.
10304 * tree.g (emit_line_note): Take a location_t.
10305 * emit-rtl.c (emit_line_note): Take a location_t.
10306 (emit_line_note_force): Remove.
10307 * function.c (init_function_start): Adjust emit_line_note call.
10308 (expand_function_end): Use force_next_line_note, not
10309 emit_line_note_force.
10310 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
10311 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
10312 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
10313 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
10314 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
10315 genrtl_continue_stmt, genrtl_switch_stmt,
10316 genrtl_asm_stmt): Likewise.
10317 * expr.c (expand_expr): Likewise.
10318 * integrate.c (expand_inline_function): Likewise.
10319 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
10320 (expand_decl_init): Adjust emit_line_note call.
10322 2003-07-07 Dale Johannesen <dalej@apple.com>
10324 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
10326 2003-07-07 Andreas Jaeger <aj@suse.de>
10328 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
10329 * config/i386/i386.c: Likewise.
10331 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
10333 * config/h8300/h8300.md: Use gen_int_mode instead of
10334 GEN_INT (trunc_int_for_mode (...)).
10336 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
10338 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
10339 2 bytes and then subtract 2 from the stack pointer.
10340 (pushhi1_h8300hs): Likewise.
10342 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
10344 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
10346 * configure: Regenerated.
10347 * Makefile.in: Remove extraneous comment.
10348 * toplev.c (randomize): Protect against potential multiple calls.
10349 * doc/invoke.texi (-frandom-seed): Document use for in coverage
10352 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10353 Eric Botcazou <ebotcazou@libertysurf.fr>
10355 PR optimization/11198
10356 * alias.c (objects_must_conflict_p): Return 1 if the types have
10357 the same alias set, not if the alias sets only conflict.
10359 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
10361 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
10362 (convert_cset): Change inbuf to type ICONV_CONST char.
10363 * Makefile.in (LIBS): Add LIBICONV.
10365 * doc/invoke.texi (-falign-functions): Document that
10366 when n is zero then a machine-dependent default is used.
10367 (-falign-labels): Document that when n is zero then a
10368 machine-dependent default is used and that -falign-labels =1
10369 is equivalent to -fno-align-labels.
10370 (-falign-loops): Likewise.
10371 (-falign-jumps): Likewise.
10373 2003-07-06 Art Haas <ahaas@airmail.net>
10375 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
10376 initializer syntax.
10378 2003-07-06 James E Wilson <wilson@tuliptree.org>
10380 PR optimization/9812
10381 * rtl.h (mem_for_const_double): Delete prototype.
10382 * varasm.c (mem_for_const_double): Delete function.
10383 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
10384 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
10385 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
10386 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
10387 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
10388 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
10389 comment about confused support for XFmode constants.
10391 2003-07-07 Jan Hubicka <jh@suse.cz>
10393 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
10395 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
10397 * config/h8300/h8300.c: Fix comment typos.
10398 * config/h8300/h8300.md: Likewise.
10399 * config/i386/athlon.md: Likewise.
10400 * config/i386/i386.c: Likewise.
10401 * config/i386/pentium.md: Likewise.
10402 * config/ia64/ia64.c: Likewise.
10403 * config/ia64/itanium1.md: Likewise.
10404 * config/ia64/itanium2.md: Likewise.
10405 * config/m32r/m32r.md: Likewise.
10406 * config/m68hc11/m68hc11.c: Likewise.
10407 * config/mcore/mcore.c: Likewise.
10408 * config/mips/sr71k.md: Likewise.
10409 * config/mips/t-iris5-as: Likewise.
10410 * config/mmix/mmix.h: Likewise.
10411 * config/ns32k/ns32k.h: Likewise.
10412 * config/ns32k/NOTES: Fix a typo.
10414 2003-07-06 Andreas Jaeger <aj@suse.de>
10416 * stmt.c: Convert remaining prototypes to ISO C90.
10417 * cfglayout.c: Likewise.
10418 * dbxout.c: Likewise.
10420 * genemit.c: Likewise.
10422 * basic-block.h: Convert prototypes to ISO C90.
10423 * c-parse.in: Likewise.
10424 * c-pragma.h: Likewise.
10425 * c-typeck.c: Likewise.
10426 * cfghooks.h: Likewise.
10427 * cfgloopanal.c: Likewise.
10428 * dbxout.h: Likewise.
10429 * debug.h: Likewise.
10430 * dwarf2asm.h: Likewise.
10431 * gcov.c: Likewise.
10432 * gengtype-lex.l: Likewise.
10433 * sched-int.h: Likewise.
10434 * timevar.c: Likewise.
10436 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
10438 * c-common.h (c_comon_handle_filename,
10439 c_common_missing_arguement): New.
10440 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
10441 LANG_HOOKS_MISSING_ARGUMENT): New.
10442 * c-opts.c (missing_arg): Rename c_common_missing_argument,
10443 update to be an appropriate langhook.
10444 (c_common_handle_option): Don't handle filenames.
10445 (c_common_handle_filename): New.
10446 * hooks.c (hook_void_constcharptr,
10447 hook_bool_constcharptr_size_t_false): New.
10448 * hooks.h (hook_void_constcharptr,
10449 hook_bool_constcharptr_size_t_false): New.
10450 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
10451 LANG_HOOKS_MISSING_ARGUMENT): New.
10452 (LANG_HOOKS_INITIALIZER): Update.
10453 * langhooks.h (struct lang_hooks): Add handle_filename and
10455 * opts.c (handle_option): Don't handle filenames here, but ...
10456 (handle_options): ... here.
10457 (common_handle_option): Don't handle missing arguments here.
10458 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
10459 LANG_HOOKS_MISSING_ARGUMENT): New.
10461 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
10463 * Makfile.in: Remove traces of mbchar.
10464 * c-parse.in (MULTIBYTE_CHARS): Remove.
10465 * config.in (MULTIBYTE_CHARS): Remove.
10466 * configure: Remove --enable-mbchar.
10467 * configure.in: Remove --enable-mbchar.
10468 * mbchar.c, mbchar.h: Remove.
10469 * system.h: Poison MULTIBYTE_CHARS.
10470 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
10471 * config/linux.h (MULTIBYTE_CHARS): Remove.
10472 * config/svr4.h (MULTIBYTE_CHARS): Remove.
10473 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
10475 2003-07-06 Andreas Jaeger <aj@suse.de>
10477 * varray.c (varray_check_failed): Fix typo.
10479 * unroll.c: Convert prototypes to ISO C90.
10480 * varasm.c: Likewise.
10481 * varray.c: Likewise.
10482 * varray.h: Likewise.
10483 * vmsdbgout.c: Likewise.
10484 * xcoffout.c: Likewise.
10485 * xcoffout.h: Likewise.
10487 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
10489 * gcov-io.h: Add a local time stamp.
10490 (struct gcov_info): Add stamp field.
10491 (gcov_truncate): New.
10492 * coverage.c (read_counts_file): Skip the stamp.
10493 (coverage_begin_output): Write the stamp.
10494 (build_gcov_info): Declare and init the stamp.
10495 (coverage_finish): Only unlink data file, if stamp is zero.
10496 * gcov-dump.c (dump_file): Dump the stamp.
10497 * gcov.c (bbg_stamp): New.
10498 (release_structures): Clear bbg_stamp.
10499 (read_graph_file): Read stamp.
10500 (read_count_file): Check stamp.
10501 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
10503 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
10505 * tree.h (default_flag_random_seed): Remove.
10506 * toplev.h (local_tick): Declare.
10507 * tree.c (flag_random_seed, default_flag_random_seed): Move to
10509 (append_random_chars): Don't call default_flag_random_seed.
10510 * toplev.c (flag_random_seed): Define here. Set local_tick.
10511 (local_tick): Define.
10512 (randomize): New, moved from tree.c.
10513 (print_switch_values): Adjust.
10514 (toplev_main): Call randomize.
10516 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
10518 * tree.h (crc32_string): Declare.
10519 * tree.c (append_random_chars): Remove.
10520 (crc32_string): New.
10521 (get_file_function_name_long): Use crc32_string here.
10523 2003-07-06 Andreas Jaeger <aj@suse.de>
10525 * gcc.c: Convert prototypes to ISO C90.
10527 * gcov-dump.c: Likewise.
10528 * gcov-iov.c: Likewise.
10529 * gcse.c: Likewise.
10530 * genattrtab.h: Likewise.
10532 * global.c: Likewise.
10533 * graph.c: Likewise.
10534 * graph.h: Likewise.
10535 * hosthooks.h: Likewise.
10536 * hooks.h: Likewise.
10537 * hooks.c: Likewise.
10538 * hashtable.h: Likewise.
10539 * hashtable.c: Likewise.
10540 * haifa-sched.c: Likewise.
10541 * integrate.h: Likewise.
10542 * integrate.c: Likewise.
10543 * input.h: Likewise.
10544 * ifcvt.c: Likewise.
10545 * jump.c: Likewise.
10546 * langhooks-def.h: Likewise. Add extern to prototypes.
10547 * langhooks.c: Likewise.
10548 * langhooks.h: Likewise.
10550 * local-alloc.c: Likewise.
10551 * loop-init.c: Likewise.
10552 * loop-unroll.c: Likewise.
10553 * loop-unswitch.c: Likewise.
10554 * loop.c: Likewise.
10555 * loop.h: Likewise. Add extern to prototypes.
10556 * machmode.h: Likewise.
10557 * main.c: Likewise.
10558 * mbchar.c: Likewise.
10559 * mbchar.h: Likewise.
10560 * mkdeps.c: Likewise.
10561 * mkdeps.h: Likewise.
10562 * optabs.c: Likewise.
10563 * optabs.h: Likewise.
10564 * output.h: Likewise.
10565 * gccspec.c: Likwise.
10566 * postreload.c: Likewise.
10567 * prefix.c: Likewise.
10568 * prefix.h: Likewise.
10569 * print-rtl.c: Likewise.
10570 * print-tree.c: Likewise.
10571 * profile.c: Likewise.
10572 * read-rtl.c: Likewise.
10573 * real.c: Likewise.
10574 * real.h: Likewise.
10575 * recog.c: Likewise.
10576 * recog.h: Likewise.
10577 * reg-stack.c: Likewise.
10578 * regclass.c: Likewise.
10579 * regmove.c: Likewise.
10580 * regrename.c: Likewise.
10581 * regs.h: Likewise.
10582 * reload.c: Likewise.
10583 * reload.h: Likewise.
10584 * reload1.c: Likewise.
10585 * reorg.c: Likewise.
10586 * resource.c: Likewise.
10587 * resource.h: Likewise.
10588 * rtl-error.c: Likewise.
10591 * rtlanal.c: Likewise.
10592 * sbitmap.c: Likewise.
10593 * sbitmap.h: Likewise.
10594 * scan-decls.c: Likewise.
10595 * scan.c: Likewise.
10596 * sched-deps.c: Likewise.
10597 * sched-ebb.c: Likewise.
10598 * sched-int.h: Likewise.
10599 * sched-rgn.c: Likewise.
10600 * sched-vis.c: Likewise.
10601 * sibcall.c: Likewise.
10602 * simplify-rtx.c: Likewise.
10603 * sreal.c: Likewise.
10604 * sreal.h: Likewise.
10605 * ssa-ccp.c: Likewise.
10606 * ssa-dce.c: Likewise.
10609 * stack.h: Likewise.
10610 * stmt.c: Likewise.
10611 * stor-layout.c: Likewise.
10612 * stringpool.c: Likewise.
10613 * target.h: Likewise.
10614 * timevar.c: Likewise.
10615 * timevar.h: Likewise.
10616 * tlink.c: Likewise.
10617 * tracer.c: Likewise.
10618 * tree-inline.c: Likewise.
10619 * tree-inline.h: Likewise.
10620 * tree.c: Likewise.
10621 * tree.h: Likewise.
10623 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
10625 * combine.c (nonzero_bits1): Fix a warning.
10627 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
10629 * config/h8300/h8300.c (compute_mov_length): Correct the
10630 length of loading CONST0_RTX (SFmode).
10632 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
10634 * toplev.c (output_clean_symbol_name): Remove.
10635 * toplev.h (output_clean_symbol_name): Remove.
10636 * config/alpha/alpha.c (unicosmk_output_module_name): Use
10637 lbasename & clean_symbol_name.
10639 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
10641 * ggc.h: Follow spelling conventions.
10642 * config/i386/i386.c: Likewise.
10643 * config/i386/winnt.c: Likewise.
10644 * config/rs6000/rs6000.c: Likewise.
10646 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
10648 * bt-load.c: Fix comment typos.
10649 * c-incpath.c: Likewise.
10651 * cfgcleanup.c: Likewise.
10652 * cfgloop.h: Likewise.
10653 * cfgloopmanip.c: Likewise.
10654 * cfgrtl.c: Likewise.
10655 * diagnostic.h: Likewise.
10656 * dwarfout.c: Likewise.
10657 * emit-rtl.c: Likewise.
10658 * et-forest.c: Likewise.
10659 * et-forest.h: Likewise.
10660 * expr.c: Likewise.
10661 * gcse.c: Likewise.
10662 * genattr.c: Likewise.
10663 * jump.c: Likewise.
10664 * langhooks.h: Likewise.
10665 * local-alloc.c: Likewise.
10666 * loop-unroll.c: Likewise.
10667 * loop-unswitch.c: Likewise.
10668 * ra-build.c: Likewise.
10669 * regclass.c: Likewise.
10670 * regmove.c: Likewise.
10671 * rtl.def: Likewise.
10672 * rtlanal.c: Likewise.
10673 * sched-ebb.c: Likewise.
10674 * sched-rgn.c: Likewise.
10675 * simplify-rtx.c: Likewise.
10677 * tracer.c: Likewise.
10678 * tree.c: Likewise.
10680 2003-07-05 Zack Weinberg <zack@codesourcery.com>
10682 * cppcharset.c: Use the correct return type for the fallback iconv
10685 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10687 Blame to Jan Hubicka <jh@suse.cz>
10688 * cfglayout.c (record_effective_endpoints): Split insns before
10689 first basic block correctly.
10691 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10693 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
10694 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
10695 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
10697 2003-07-05 Andreas Jaeger <aj@suse.de>
10699 * genattrtab.c (write_attr_get): Revert part of last patch to
10700 always write out a prototype.
10702 * genemit.c (gen_split): Readd lost unused attributes in last
10705 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10707 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
10708 different from header.
10710 2003-07-05 Andreas Schwab <schwab@suse.de>
10712 * config/m68k/m68k.c: Remove code protected by CRDS.
10713 * config/m68k/m68k.md: Likewise.
10715 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
10718 * c-opts.c (permit_fortran_options): New.
10719 (c_common_init_options): Accept fortran front end options if
10720 it looks like we might be preprocessing Fortran.
10721 (c_common_handle_option): Don't reject switch if permit_fotran_options.
10723 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10725 * genattr.c (internal_dfa_insn_code): Output prototype.
10726 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
10727 * genautomata.c: Likewise.
10728 * genconditions.c: Likewise.
10729 * genemit.c: Likewise.
10730 * genextract.c: Likewise.
10731 * gengenrtl.c: Likewise.
10732 * gengtype.c: Likewise.
10733 * genopinit.c: Likewise.
10734 * genoutput.c: Likewise.
10735 * genpeep.c: Likewise.
10736 * genrecog.c: Likewise.
10738 2003-07-04 Zack Weinberg <zack@codesourcery.com>
10740 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
10741 (struct cpp_options): Add narrow_charset, wide_charset,
10742 bytes_big_endian fields. Remove EBCDIC field.
10743 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
10745 * cpphash.h: Include <iconv.h> if we have it, otherwise
10746 provide a dummy definition of iconv_t.
10747 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
10748 (_cpp_valid_ucn): Update prototype.
10749 (_cpp_destroy_iconv): New prototype.
10751 * doc/cpp.texi: Document character set handling.
10752 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
10753 * doc/extend.texi: Delete entire section on multiline strings.
10754 Rewrite section on __FUNCTION__ etc now that these are
10757 * cppucnid.tab, cppucnid.pl: New files.
10758 * cppucnid.h: New generated file.
10759 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
10760 (iconv_open, iconv, iconv_close): Provide dummy definitions
10762 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
10763 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
10764 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
10765 cpp_interpret_string, narrow_str_to_charconst,
10766 wide_str_to_charconst): New.
10767 (ucn_valid_in_identifier): Use a binary search through the
10768 ucnranges table defined in cppucnid.h, not a long chain of if
10770 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
10771 character names are only valid in C++ and C99" to a warning.
10772 Issue the "meaning of \[uU] is different in traditional C"
10773 warning here. Take care not to let iconv see an invalid UCS
10774 value if we get a malformed UCN. Issue an error if we don't
10776 (cpp_interpret_charconst): Moved here from cpplex.c. Use
10777 cpp_interpret_string to do the heavy lifting.
10779 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
10780 narrow_charset, wide_charset fields of options structure.
10781 (cpp_destroy): Call _cpp_destroy_iconv.
10782 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
10783 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
10784 (cpp_interpret_charconst): Moved to cppcharset.c.
10785 * cpplib.c (dequote_string): Delete.
10786 (interpret_string_notranslate): New.
10787 (do_line, do_linemarker): Use interpret_string_notranslate.
10789 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
10791 * c-common.c (fname_string, combine_strings): Delete.
10792 * c-common.h (fname_string, combine_strings): Delete prototypes.
10793 * c-lex.c (ignore_escape_flag): Delete.
10794 (cb_ident): Use cpp_interpret_string, not lex_string.
10795 (get_nonpadding_token): New function.
10796 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
10797 Adjust calls to lex_string. Don't write *value twice.
10798 (lex_string): Now handles string constant concatenation.
10799 Most of the work handed off to cpp_interpret_string.
10800 Call fix_string_type here.
10801 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
10802 FUNC_NAME, throughout.
10803 (OBJC_STRING): New token type.
10804 (primary:STRING): No need to call fix_string_type here.
10805 (primary:objc_string): Make that OBJC_STRING.
10806 (objc_string nonterminal): Delete.
10807 (yylexname): Delete code to handle fake string constants.
10808 (yylexstring): Delete entirely.
10809 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
10810 to handle CPP_ATSIGN.
10812 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
10813 * c-opts.c (missing_arg, c_common_handle_option): Handle
10814 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
10815 (c_common_init): Set cpp_opts->bytes_big_endian, not
10816 cpp_opts->EBCDIC. Call cpp_init_iconv.
10817 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
10818 (TARGET_EBCDIC): Delete default definition.
10820 * objc/objc-act.c (build_objc_string_object): No need to
10821 handle string constant concatenation.
10823 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
10825 * doc/install.texi: Fix typos.
10826 * doc/invoke.texi: Likewise.
10827 * doc/tm.texi: Likewise.
10829 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
10831 * config/pa/fptr.c: Fix comment typos.
10832 * config/pa/pa-64.h: Likewise.
10833 * config/pa/pa.c: Likewise.
10834 * config/pa/pa.h: Likewise.
10835 * config/rs6000/603.md: Likewise.
10836 * config/rs6000/7xx.md: Likewise.
10837 * config/rs6000/darwin.h: Likewise.
10838 * config/rs6000/freebsd.h: Likewise.
10839 * config/rs6000/rs6000.c: Likewise.
10840 * config/rs6000/rs6000.md: Likewise.
10841 * config/rs6000/spe.h: Likewise.
10843 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
10845 * config/s390/2064.md: Change GNU CC to GCC.
10846 * config/s390/2084.md: Likewise.
10847 * config/s390/fixdfdi.h: Likewise.
10848 * config/s390/linux.h: Likewise.
10849 * config/s390/s390-modes.def: Likewise.
10850 * config/s390/s390-protos.h: Likewise.
10851 * config/s390/s390.c: Likewise.
10852 * config/s390/s390.h: Likewise.
10853 * config/s390/s390.md: Likewise.
10854 * config/s390/s390x.h: Likewise.
10856 2003-07-04 Jeff Law <law@redhat.com>
10859 * expr.c (do_store_flag): Pass in the correct result type
10860 when calling fold_single_bit_test.
10861 * fold-const.c (fold_single_bit_test): Use result_type for the
10862 result when folding a sign bit test.
10864 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
10866 * opts.c (common_handle_options): Negate sense of -falign- switches.
10868 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
10870 * Makefile.in: Replace PWD with PWD_COMMAND.
10872 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10874 * cfgloopanal.c (count_strange_loop_iterations): New static function.
10875 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
10876 Handle strange loops.
10878 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
10880 * install.texi: Even the g77 manpage is derived from
10881 the full g77 manual.
10883 2003-07-04 Zack Weinberg <zack@codesourcery.com>
10885 * ABOUT-NLS: Delete.
10886 * intl: Delete entire directory.
10887 * aclocal.m4: Include ../config/gettext.m4. Delete
10888 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
10889 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
10890 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
10891 Remove intl/Makefile from all_outputs.
10892 * configure, config.in: Regenerate.
10893 * Makefile.in: Expunge all references to intl subdirectory.
10894 Add -I../intl to INCLUDES.
10895 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
10897 2003-07-04 Roger Sayle <roger@eyesopen.com>
10899 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
10900 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
10902 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
10904 PR c++/5287, PR c++/7910, PR c++/11021
10905 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
10906 dllimport attribute if function is defined at declaration, but
10907 report error instead. Likewise for dllimport'd variable
10908 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
10909 declared within functions, Report error if dllimport or dllexport
10910 symbol is not global.
10911 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
10912 if defined after declaration or if inlined. Don't allow definition
10913 of static data members of C++ classes. Don't dllimport virtual
10915 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
10916 (i386_pe_mark_dllimport): Remove unnecessary checks.
10917 (i386_pe_encode_section_info): Warn if the dllimport attribute
10918 and symbol prefix have been instantiated and then overridden.
10920 * doc/extend.texi: Document dllimport and dllexport attributes.
10922 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
10924 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
10926 * config/kaos.h (CPP_PREDEFINES): Delete.
10927 (TARGET_OS_CPP_BUILTINS): New.
10929 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10931 * c-aux-info.c: Include toplev.h after c-tree.h.
10932 * c-common.c: Likewise.
10933 (GCC_DIAG_STYLE): Undef.
10934 * c-semantics.c (GCC_DIAG_STYLE): Define.
10935 * c-tree.h (GCC_DIAG_STYLE): Likewise.
10936 * diagnostic.h (inform): Move prototype to toplev.h.
10937 * jump.c: Include diagnostic.h before toplev.h.
10938 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
10939 (warning, error, fatal_error, pedwarn, sorry, inform,
10940 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
10942 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10944 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
10945 at all if edge is not specified.
10946 (can_copy_bbs_p, copy_bbs): New.
10947 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
10948 * cfgloop.c (get_loop_body): Comment more precisely.
10949 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
10950 (scale_bbs_frequencies): Fix comment typo.
10951 (can_duplicate_loop_p): Use can_copy_bbs_p.
10952 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
10954 2003-07-03 Devang Patel <dpatel@apple.com>
10956 * c-opts.c (c_common_parse_file): Remove extra
10957 debug_hooks->start_source_file call.
10959 2003-07-03 Roger Sayle <roger@eyesopen.com>
10961 * real.c (real_trunc, real_floor, real_ceil): New functions
10962 to implement trunc, floor and ceil respectively.
10963 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
10964 * builtins.c (integer_valued_real_p): New function to test if
10965 a floating point expression has an integer valued result.
10966 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
10967 foo(x) where foo is an integer rounding function. Similarly,
10968 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
10969 (double)(int)x when both foo and bar are integer rounding
10970 functions and we don't need to honor errno.
10971 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
10972 New functions to fold trunc, floor and ceil.
10973 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
10974 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
10975 to fold BUILT_IN_CEIL*.
10976 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
10977 the remaining integer rounding functions.
10979 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
10981 * config/sparc/sparc.c (function_arg_partial_nregs): Use
10982 SPARC_INT_ARG_MAX to determine where to split unnamed
10983 complex FP arguments.
10985 2003-07-03 Jan Hubicka <jh@suse.cz>
10987 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
10988 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
10989 (merge_blocks_move_predecessor_nojumps,
10990 merge_blocks_move_successor_nojumps): Use merge_blocks.
10991 (try_optimize_cfg): Use merge_blocks_move.
10992 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
10993 (merge_blocks_nomove): Rename to rtl_merge_blocks.
10994 (cfg_layout_create_basic_block): New.
10995 (rtl_can_merge_blocks): New.
10996 (cfg_layout_split_block): Do not alloc aux by hand.
10997 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
10999 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
11000 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
11001 * cfgloopmanip.c (loop_split_edge_with): Likewise.
11002 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
11004 * basic-block.h (basic_block_def): Add field 'rbi'.
11005 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
11006 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
11007 * cfg.c (entry_exit_blocks): Add new field.
11008 * cfglayout.c: Include alloc-pool.h;
11009 (cfg_layout_pool): New.
11010 (record_effective_endpoints, fixup_reorder_chain,
11011 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
11013 (cfg_layout_initialize_rbi): New function.
11014 (cfg_layout_initialize): Use it.
11015 (cfg_layout_finalize): Clear rbi fields.
11016 * cfglayout.h (RBI): Kill.
11017 (cfg_layout_initialize_rbi): Declare.
11018 * cfgloopmanip.c (copy_bbs): Use rbi.
11019 (record_exit_edges): Likewise.
11020 (duplicate_loop_to_header_edge): Likewise.
11021 * cfgrtl.c (cfg_layout_create_basic_block): Use
11022 cfg_layout_initialize_rbi.
11023 (cfg_layout_split_block): Use rbi.
11024 (cfg_layout_delete_block): Likewise.
11025 * loop-init.c (loop_optimizer_finalize): Likewise.
11026 * loop-unswitch.c (unswitch_loop): Likewise.
11027 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
11029 * cfgrtl.c: Update comments.
11030 (try_redirect_by_replacing_jump): New argument.
11031 (redirect_branch_edge): Break out from ...
11032 (rtl_redirect_edge_and_branch): ... this one.
11033 (update_cfg_after_block_merging): Break out from ...
11034 (rtl_merge_blocks): ... this one.
11035 (cfg_layout_split_edge): New.
11036 (cfg_layout_merge_blocks): New.
11037 (cfg_layout_can_merge_blocks_p): New.
11038 (cfg_layout_redirect_edge_and_branch): Reorganize.
11039 (cfg_layout_rtl_cfg_hooks): Fill in.
11040 (cfg_layout_delete_block): Kill barriers.
11041 * cfganal.c (can_fallthru): Deal with exit blocks
11042 * cfglayout.c (cfg_layout_function_header): New function
11043 (record_effective_endpoints): Record function header.
11044 (fixup_reorder_chain): Fixup dead jumptables; place header
11046 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
11047 * bb-reorder.c (cfg_layout_initialize): Update call.
11048 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
11049 edges in cfglayout mode.
11050 * cfglayout.c (cleanup_unconditional_jumps): Kill.
11051 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
11052 * cfglayout.h (cfg_layout_initialize): Update prototype.
11053 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
11054 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
11055 * flow.c (propagate_block): Do not crash when basic block ends
11056 by first insn in the chain.
11057 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
11059 * tracer.c (tracer): Update call of cfg_layout_initialize.
11061 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11063 * Makefile.in: Use dependency variables in lieu of explicit
11066 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
11068 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
11069 * tree.h: ...to here.
11071 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
11073 * config/s390/2064.md: Fix comment typos.
11074 * config/s390/2084.md: Likewise.
11075 * config/s390/s390.c: Likewise.
11076 * config/s390/s390.md: Likewise.
11077 * config/sh/sh.c: Likewise.
11078 * config/sh/sh.h: Likewise.
11079 * config/sh/sh.md: Likewise.
11080 * config/sparc/sparc.c: Likewise.
11081 * config/sparc/sparc.h: Likewise.
11082 * config/sparc/sparc.md: Likewise.
11083 * config/stormy16/stormy16.c: Likewise.
11084 * config/stormy16/stormy16.h: Likewise.
11085 * config/stormy16/stormy-abi: Fix a typo.
11087 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
11089 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
11091 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11093 * config/mips/mips.h (save_argv): Delete.
11095 2003-07-03 Roger Sayle <roger@eyesopen.com>
11098 * fold-const.c (extract_muldiv_1): There's nothing that can be done
11099 if the expression is a SAVE_EXPR.
11101 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
11103 * config/m32r/m32r.c: Fix comment typos.
11104 * config/m68hc11/m68hc11.c: Likewise.
11105 * config/m68hc11/m68hc11.h: Likewise.
11106 * config/m68k/m68k.c: Likewise.
11107 * config/mcore/mcore.c: Likewise.
11108 * config/mcore/mcore.h: Likewise.
11109 * config/mcore/mcore.md: Likewise.
11110 * config/mips/mips.c: Likewise.
11111 * config/mips/mips.h: Likewise.
11112 * config/mips/mips.md: Likewise.
11113 * config/mips/netbsd.h: Likewise.
11114 * config/mn10300/mn10300.c: Likewise.
11116 2003-07-03 Andreas Schwab <schwab@suse.de>
11118 * dbxout.c (pending_bincls): Move decl down inside
11119 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
11121 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
11123 * rtl.h (NOTE_DATA): Refer to whole union.
11124 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
11126 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
11128 PR optimization/11381
11129 * simplify-rtx.c (simplify_relational_operation): Check that
11130 two equal operands have no side-effects before simplifying
11133 2003-07-02 Jeff Law <law@redhat.com>
11135 * expr.c (do_store_flag): Remove special case folding for
11136 single bit tests. Instead call back into the commonized folder
11138 * fold-const.c (fold_single_bit_test): New function, mostly
11139 extracted from do_store_flag, with an additional case extracted
11141 (fold): Call fold_single_bit_test appropriately.
11142 * tree.h (fold_single_bit_test): Prototype.
11144 2003-07-02 Zack Weinberg <zack@codesourcery.com>
11146 * system.h: Include filenames.h.
11147 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
11148 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
11149 define based on HAVE_DOS_BASED_FILE_SYSTEM.
11150 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
11151 * config/i386/xm-mingw32.h: Don't define
11152 HAVE_DOS_BASED_FILE_SYSTEM,
11153 DIR_SEPARATOR, or DIR_SEPARATOR_2.
11154 * doc/hostconfig.texi: Update to match.
11156 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
11157 config/i386/cygwin.h:
11158 Use IS_ABSOLUTE_PATH throughout.
11159 * gcc.c (DIR_UP): Delete, unused.
11160 * protoize.c (IS_SAME_PATH): Define in terms of
11162 (is_abspath): Delete.
11164 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
11166 * config/i386/emmintrin.h: Fix comment typos.
11167 * config/i386/i386.c: Likewise.
11168 * config/i386/i386.h: Likewise.
11169 * config/i386/sco5.h: Likewise.
11170 * config/ia64/ia64.c: Likewise.
11171 * config/ia64/itanium2.md: Likewise.
11173 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
11175 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
11177 (emit_bincl_stab): Same.
11178 (emit_pending_bincls): Same.
11180 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
11182 * config/h8300/h8300.c (compute_mov_length): Fix the length of
11183 loading CONST0_RTX (SFmode).
11184 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
11185 'G' to CONST0_RTX (SFmode).
11186 * config/h8300/h8300.md (movsf_h8300): Change the first
11188 (movsf_h8300h): Likewise.
11190 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
11192 * c-common.h (c_common_init_options): New prototype.
11193 * c-opts.c (deferred_size): Remove.
11194 (defer_opt): Array is now pre-allocated.
11195 (c_common_init_options): Pre-allocate deferred_opts. Make
11196 lang_flags unsigned.
11197 (push_command_line_options): Free deferred_opts.
11198 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
11199 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
11200 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
11201 * langhooks.h (struct lang_hooks): New prototype for init_options.
11202 * main.c (main): Cast argv.
11203 * opts.c (handle_option, handle_options): Update prototypes.
11204 (decode_options): save_argc, save_argv are not global. Constify.
11205 * opts.h (decode_options): New prototype.
11206 * toplev.c (general_init): New protoype.
11207 (save_argv): Make static.
11208 (save_argc): Remove.
11209 (print_switch_values, general_init): Constify.
11210 (toplev_main): Save argv.
11211 * toplev.h (toplev_main): Update prototype.
11212 (save_argc, save_argv): Remove.
11214 2003-07-02 David Edelsohn <edelsohn@gnu.org>
11216 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
11217 (emit_bincl_stab): Same.
11218 (emit_pending_bincls): Same.
11220 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
11223 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
11225 2003-07-02 Andreas Schwab <schwab@suse.de>
11227 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
11229 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
11231 PR optimization/11210
11232 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
11233 about the behaviour with regard to bitfields.
11234 * fold-const (decode_field_reference): Record outermost type in
11235 case the expression is a NOP. Strip all NOPs. Set the signedness
11236 to that of the outermost type (if any) when the bitsize is equal
11237 to the size of the type.
11239 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
11241 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
11242 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
11243 (adddi3_internal_3, addsi3_internal_2): Likewise.
11245 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
11247 * config/mips/mips.c (machine_function): Add new fields:
11248 ignore_hazard_length_p and all_noreorder_p.
11249 (mips_flag_delayed_branch): New variable.
11250 (override_options): Treat '/' as an operand punctuation character.
11251 Set up mips_flag_delayed_branch.
11252 (print_operand): Handle '/'.
11253 (mips_output_function_prologue): Put the whole function in
11254 .set noreorder and .set nomacro if all_noreorder_p is true.
11255 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
11256 (mips16_optimize_gp): Remove "first insn" parameter.
11257 (mips16_lay_out_constants): New function, split out from mips_reorg.
11258 (mips_avoid_hazard, mips_avoid_hazards): New functions.
11259 (mips_reorg): For mips16 code, call mips16_lay_out_constant
11260 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
11261 do delayed-branch scheduling followed by hazard detection.
11262 (mips_adjust_insn_length): Only account for hazards if
11263 !ignore_hazard_length_p.
11264 (mips_output_load_label): Add a nop to the o32 sequence if
11265 the target suffers from load delays.
11266 (mips_output_conditional_branch): Add %/ to the end of branches.
11267 (mips_output_division): Fill the branch delay slot with %#.
11268 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
11269 instructions. End all other %* branches with %/.
11270 (ffssi2, ffsdi2): Fix lengths.
11271 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
11272 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
11273 (fix_truncsfsi2_macro): Likewise.
11274 (mov_lwl): Set hazard to "none".
11275 (ashldi3_internal): Fill the branch delay slot with %#.
11276 (ashrdi3_internal, lshrdi3_internal): Likewise.
11277 (exception_receiver): Explicitly set $28.
11278 (hazard_nop): New pattern.
11280 2003-07-02 Jan Hubicka <jh@suse.cz>
11282 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
11283 before calling tree_inlinable_function_p.
11285 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11287 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
11288 <internal/stdio_core.h> too.
11289 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
11290 <internal/wchar_core.h> too.
11291 Substitute va_list uses in inline definition.
11292 * fixinc/fixincl.x: Regenerate.
11294 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11296 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
11297 Undef before redefinition.
11298 (LABEL_AFTER_LOC): Likewise.
11299 (DEFAULT_SIGNED_CHAR): Likewise.
11300 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
11303 * config/mips/iris3.h: Remove, unused.
11304 * config/mips/iris4.h: Likewise.
11306 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
11308 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
11309 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
11310 target_cpu_default.
11312 * config/mips/iris5.h: Move explicit includes ...
11313 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
11315 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
11316 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
11319 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
11320 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
11321 target_cpu_default.
11323 * config/mips/iris6.h: Fix IRIX spelling.
11324 (MULTILIB_DEFAULTS): Undef before redefinition.
11326 * config/mips/iris6.h: Move explicit includes ...
11327 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
11329 2003-07-02 Jan Hubicka <jh@suse.cz>
11331 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
11332 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
11333 Use next_needed field instead of aux to maintain the queue.
11334 * cgraph.h (cgraph_node): Add next_needed.
11335 (cgraph_varpool_node): Add next_needed; remove aux.
11336 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
11338 2003-07-02 Jan Hubicka <jh@suse.cz>
11340 * cgraphunit.c (cgraph_finalize_function): Set finalized.
11341 (cgraph_finalize_function): Do not examine inlinablility.
11342 (cgraph_finalize_compilation_unit): Do it here.
11343 * cgraph.h (cgraph_local_info): Add finalized field.
11345 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11347 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
11348 (gt_pch_restore): Likewise.
11350 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
11352 * config/alpha/alpha.c: Fix comment typos.
11353 * config/alpha/elf.h: Likewise.
11354 * config/arm/arm.c: Likewise.
11355 * config/arm/arm.h: Likewise.
11356 * config/arm/arm.md: Likewise.
11357 * config/arm/t-arm-coff: Likewise.
11358 * config/arm/t-strongarm-pe: Likewise.
11359 * config/arm/xscale-elf.h: Likewise.
11360 * config/avr/avr.h: Likewise.
11362 2003-07-01 Jeff Law <law@redhat.com>
11364 * stmt.c (any_pending_cleanups): Remove another redundant test.
11366 2003-07-01 David Edelsohn <edelsohn@gnu.org>
11367 J"orn Rennecke <joern.rennecke@superh.com>
11369 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
11372 2003-07-01 Devang Patel <dpatel@apple.com>
11374 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
11375 (binclstatus): New.
11376 (struct dbx_file): New members - bincl_status, pending_bincl_name and
11378 (pending_bincls): New.
11379 (dbxout_init): Initialize new dbx_file members.
11380 (dbxout_start_source_file): Same.
11381 (emit_bincl_stab): New function.
11382 (emit_pending_bincls): Same.
11383 (emit_pending_bincls_if_required): Same.
11384 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
11386 (dbxout_begin_block): Emit pending BINCL stabs.
11387 (dbxout_end_block): Same.
11388 (dbxout_function_decl): Same.
11389 (dbxout_continue): Same.
11390 (dbxout_type): Same.
11391 (dbxout_class_name_qualifiers): Same.
11392 (dbxout_symbol): Same.
11393 (dbxout_symbol_location): Same.
11394 (dbxout_parms): Same.
11396 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11398 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
11399 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
11401 2003-07-01 Andreas Jaeger <aj@suse.de>
11403 * fold-const.c: Convert prototypes to ISO C90.
11404 * function.c: Likewise.
11405 * function.h: Likewise.
11407 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
11409 * doc/contrib.texi: Fix typos.
11410 * doc/invoke.texi: Likewise.
11411 * doc/passes.texi: Likewise.
11412 * doc/sourcebuild.texi: Likewise.
11413 * doc/tm.texi: Likewise.
11415 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
11417 * basic-block.h: Fix comment typos.
11418 * bb-reorder.c: Likewise.
11419 * c-format.c: Likewise.
11420 * cfgcleanup.c: Likewise.
11421 * cfghooks.h: Likewise.
11422 * cfgloop.c: Likewise.
11423 * cfgloopmanip.c: Likewise.
11424 * cfgrtl.c: Likewise.
11425 * cgraph.h: Likewise.
11426 * cgraphunit.c: Likewise.
11427 * combine.c: Likewise.
11428 * convert.c: Likewise.
11429 * dbxout.c: Likewise.
11432 * diagnostic.c: Likewise.
11433 * dwarf2out.c: Likewise.
11434 * et-forest.h: Likewise.
11435 * flow.c: Likewise.
11436 * fold-const.c: Likewise.
11437 * function.h: Likewise.
11438 * gcov-io.h: Likewise.
11439 * gcov.c: Likewise.
11440 * gcse.c: Likewise.
11441 * genautomata.c: Likewise.
11442 * ggc-common.c: Likewise.
11443 * ggc-page.c: Likewise.
11444 * loop-unroll.c: Likewise.
11445 * loop-unswitch.c: Likewise.
11446 * loop.c: Likewise.
11447 * mips-tfile.c: Likewise.
11448 * optabs.c: Likewise.
11449 * ra-build.c: Likewise.
11450 * ra-colorize.c: Likewise.
11451 * ra-rewrite.c: Likewise.
11453 * regmove.c: Likewise.
11454 * reload.c: Likewise.
11455 * rtlanal.c: Likewise.
11456 * sched-ebb.c: Likewise.
11457 * sched-int.h: Likewise.
11458 * sched-vis.c: Likewise.
11459 * sreal.c: Likewise.
11460 * ssa-ccp.c: Likewise.
11462 * toplev.c: Likewise.
11463 * tree-inline.c: Likewise.
11464 * value-prof.c: Likewise.
11465 * value-prof.h: Likewise.
11467 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
11469 * rtl.h (emit_line_note_after): Remove.
11470 (emit_note_copy_after, emit_note_copy): New.
11471 * emit-rtl.c (reorder_insns_with_line_notes): Replace
11472 emit_line_note_after with emit_note_copy_after.
11473 (emit_insn_after_with_line_notes): Likewise.
11474 (emit_line_note_after): Kill.
11475 (emit_note_copy_after): New.
11476 (emit_note_copy): New.
11477 * function.c (emit_return_into_block): Use emit_note_copy_after.
11478 (thread_prologue_and_epilogue_insns): Likewise.
11479 * integrate.c (expand_inline_function): Use emit_note_copy.
11480 (copy_insn_list): Likewise.
11481 * unroll.c (copy_loop_body): Likewise.
11482 * cfglayout.c (duplicate_insn_chain): Likewise.
11484 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
11486 * c-tree.h (define_label): Replace filename and lineno arguments
11488 * c-decl.c (poplevel): Adjust define_label call.
11489 (pop_label_level): Likewise.
11490 (define_label): Replace filename and lineno arguments with a
11492 (store_parm_decls): Use DECL_SOURCE_LOCATION.
11493 * c-parse.in (label): Adjust define_label call.
11495 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
11497 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
11498 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
11499 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
11500 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
11501 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
11503 2003-07-01 Andreas Jaeger <aj@suse.de>
11505 * final.c: Convert prototypes to ISO C90.
11506 * flow.c: Likewise.
11507 * flags.h: Likewise.
11508 * gcov-io.c: Likewise.
11509 * gcov-io.h: Likewise.
11511 See ChangeLog.9 for earlier changes.