1 2003-10-20 Falk Hueffner <falk@debian.org>
4 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
5 comparison against constant by adjusting the argument except for
8 2003-10-19 Mark Mitchell <mark@codesourcery.com>
10 * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
11 arm1136jfs, and armv6j.
12 * config/arm/arm.c (FL_ARCH6J): New macro.
14 (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
16 (all_architectures): Add entry for armv6j.
17 (arm_override_options): Add entries for arm926ejs, arm1026ejs,
18 arm1136js, and arm1136jfs.
19 * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
20 (TARGET_CPU_arm1026ej_s): Likewise.
21 (TARGET_CPU_arm1136j_s): Likewise.
22 (TARGET_CPU_arm1136jf_s): Likewise.
23 * doc/invoke.texi: Document new ARM cores and architecture
26 2003-10-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
28 * Makefile.in (toplev.o): Add value-prof.h dependency.
29 (value-prof.o): Add REGS_H dependency.
30 * common.opt (fprofile-values, fvpt): New.
31 * flags.h (flag_value_profile_transformations): Declare.
32 * opts.c (common_handle_option): Handle -fprofile_values and
34 * profile.c (branch_prob): Don't remove death notes here.
35 * timevar.def (TV_VPT): New.
36 * value-prof.c: Include regs.h.
37 (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
38 gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
39 mod_subtract_transform, value_profile_transformations): New.
40 (insn_values_to_profile): Call insn_divmod_values_to_profile.
41 (find_values_to_profile): Add dumps.
42 * value-prof.h (value_profile_transformations): Declare.
43 * toplev.c: Include value-prof.h.
44 (rest_of_handle_value_profile_transformations): New.
45 (enum dump_file_index): Add DFI_vpt.
46 (dump_file): Add vpt dump.
47 (flag_value_profile_transformations): New.
48 (lang_independent_options): Add flag_profile_values and
49 flag_value_profile_transformations.
50 (rest_of_compilation): Call
51 rest_of_handle_value_profile_transformations.
52 (process_options): Let -fvpt imply -fprofile-values.
53 * doc/invoke.texi (-fvpt): Document.
55 2003-10-19 Jan Hubicka <jh@suse.cz>
57 * i386.c (print_reg): Do not abort on certain registers.
60 * reg-stack.c (subst_stack_regs_pat): Use st(1) for clobbers.
61 * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
62 match_scratch; avoid bogus paralles.
65 * i386.c (ix86_function_regparm): Disable implicit register passing
66 conventions when profiling.
68 2003-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
69 Richard Henderson <rth@redhat.com>
72 * config/i386/i386.md (*movsi_zero): Delete.
73 (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
75 2003-10-19 Richard Henderson <rth@redhat.com>
77 * config/alpha/alpha.c (fix_operator): New.
78 (divmod_operator): Tidy.
79 (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
80 * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
81 (PREDICATE_CODES): Update.
82 * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
83 (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
84 (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
85 (fix_truncsfdi_ieee): Likewise.
86 (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
87 (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
88 * config/alpha/alpha-protos.h: Update.
90 2003-10-19 Richard Sandiford <rsandifo@redhat.com>
92 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
93 * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
94 * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
97 2003-10-18 Kazu Hirata <kazu@cs.umass.edu>
99 * doc/extend.texi: Fix typos.
100 * doc/invoke.texi: Likewise.
102 2003-10-18 Nicolas Pitre <nico@cam.org>
104 * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
105 XScale optimizations not arm_arch_xscale.
106 * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
108 2003-10-18 Ulrich Weigand <uweigand@de.ibm.com>
110 * config/s390/s390-protos.h (shift_count_operand): Add prototype.
111 * config/s390/s390.c (shift_count_operand): New function.
112 (s390_extra_constraint): Use it to implement 'Y' constraint.
113 (print_shift_count_operand): New function.
114 (print_operand): Use it to implement '%Y'.
115 * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
116 (PREDICATE_CODES): Add shift_count_operand.
117 * config/s390/s390.md ("rotldi3"): Merge alternatives,
118 using "shift_count_operand" predicate and "Y" constraint,
119 and "%Y" to output the combined shift count.
120 ("rotlsi3"): Likewise.
121 ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
122 ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
123 "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
124 ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
125 ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
126 ("lshrsi3"): Likewise.
128 2003-10-18 Gunther Nikl <gni@gecko.de>
130 * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
131 argument to asm_fprintf statement.
133 2003-10-18 Fariborz Jahanian <fjahanian@apple.com>
135 * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
136 (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
137 a "long long" argument.
139 2003-10-18 Alexandre Oliva <aoliva@redhat.com>
141 * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
144 2003-10-18 Richard Sandiford <rsandifo@redhat.com>
146 * rtl.h (rtl_size): Declare.
147 (rtunion): Remove rtwint.
148 (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
149 (RTX_HDR_SIZE, RTX_SIZE): New macros.
150 (RTL_CHECK1): Adjust for new rtx_def layout.
151 (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
152 (XWINT, XCWINT): Likewise. Access the rtx structure directly.
155 * rtl.def: Adjust comments for new rtx_def layout.
156 * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
158 * rtl.c (rtx_size): New array.
159 (rtx_alloc): Adjust call to ggc_alloc_rtx. Use RTX_HDR_SIZE.
160 (copy_rtx): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
161 (shallow_copy_rtx): Adjust call to ggc_alloc_rtx. Use RTX_SIZE.
162 * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
163 * emit-rtl.c (copy_most_rtx): Likewise.
164 (copy_rtx_if_shared): Use RTX_SIZE.
165 (copy_insn_1): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
166 * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call. Use RTX_HDR_SIZE.
167 * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
168 (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
169 an array. Adjust output for new rtx_def layout.
170 * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
171 * reload1.c (eliminate_regs): Use RTX_SIZE.
172 * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
173 * gdbinit.in (pi): Likewise.
175 2003-10-18 Jan Hubicka <jh@suse.cz>
177 * integrate.c (copy_decl_for_inlining): Revert previous patch.
179 2003-10-18 Jan Hubicka <jh@suse.cz>
181 * integrate.c (copy_decl_for_inlining): Fix copying of copies.
183 2003-10-18 Roger Sayle <roger@eyesopen.com>
185 * libgcc.texi: Group multi-word types, such as "long double" and
186 "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
187 Document __unord?f2 as returning a non-zero value, not just one.
189 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
191 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
192 ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
194 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
196 * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
199 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
201 * config/sparc/sparc.c (function_arg_record_value_1): New fourth
202 parameter packed_p. Search for a DECL_PACKED field only if
203 packed_p is false. Pass packed_p recursively.
204 (function_arg_record_value_2): Likewise.
205 (function_arg_record_value): Update calls to
206 function_arg_record_value_1 and function_arg_record_value_2.
208 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
210 * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
211 was successfully forced to memory before using the result.
213 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
216 * config/i386/i386.md (*movsi_zero): New insn to set
217 a register to zero on TARGET_USE_MOV0 targets.
219 2003-10-18 Kelley Cook <kcook@gcc.gnu.org>
221 * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
222 (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
224 2003-10-17 David Edelsohn <edelsohn@gnu.org>
226 * doc/invoke.texi (gcse-las): Fix typo.
228 2003-10-17 Andrew Pinski <pinskia@physics.uc.edu>
230 * doc/install.texi: Remove first part of the sentence for
231 zsh not working. Change gcc to GCC.
234 * doc/install.texi: Document that zsh does not work when
237 2003-10-17 Nathanael Nerode <neroden@gcc.gnu.org>
239 * config/ptx4.h: Switch to DWARF 2; update comments.
241 2003-10-17 Segher Boessenkool <boessen@de.ibm.com>
242 Hartmut Penner <hpenner@de.ibm.com>
244 PR 10404, partial 11591, partial 11601
245 * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
246 "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
247 "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
248 "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
249 "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
250 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
251 (altivec_expand_stv_builtin): Adjust for the memory_operand.
252 (altivec_expand_builtin): Call altivec_expand_lv_builtin.
253 (altivec_init_builtins): Use `long int' for memory offsets.
255 2003-10-17 Jan Hubicka <jh@suse.cz>
257 * opts.c (common_handle_option): Handle OPT_fweb
258 * invoke.texi (-fweb): Add missing parts of documentation.
260 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
262 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
265 2003-10-17 Mostafa Hagog <mustafa@il.ibm.com>
267 * common.opt: Add description of the new -fgcse-las flag.
268 * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
269 * gcse.c (hash_scan_set): Handle the case of store expression and
270 insert the memory expression to the hash table, this way we make it
271 possible to discover redundant loads after stores and remove them.
272 (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
273 to pre_insert_copies, it is not the correct place to call it after
274 adding stores to be in the available expression hash table.
275 (pre_insert_copies): Added the call to update_ld_motion_stores when
276 one or more copies were inserted.
277 * opts.c (common_handle_option): Handle the -fgcse-las flag.
278 * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
280 * doc/invoke.tex: Document new -fgcse-las flag.
282 2003-10-18 Alan Modra <amodra@bigpond.net.au>
284 * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
285 for posterity, then remove it.
287 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
288 Nathan Sidwell <nathan@codesourcery.com>
290 * config/arm/arm.c (use_return_insn): Not a single instruction, if
291 there's a frame pointer.
292 (arm_output_epilogue): Protect stack pointer from being corrupted
295 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
297 * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
299 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
301 * combine.c (simplify_set): Do not clear out undobuf.other_insn
302 already set elsewhere.
304 2003-10-17 Kelley Cook <kcook@gcc.gnu.org>
306 * config/i386/i386.c (ix86_expand_prologue): Use
307 gen_allocate_stack_worker.
309 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
311 * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
313 (mips-sgi-irix6*): Likewise.
315 * config/mips/iris6gas.h: New file.
316 * gcc/config.gcc (mips-sgi-irix6*): Use it.
318 * config/mips/mips.h (TARGET_IRIX): Provide default.
319 (TARGET_IRIX5): Likewise.
320 (TARGET_SGI_O32_AS): Likewise.
321 * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
322 (TARGET_IRIX5): Likewise.
323 * config/mips/iris6.h (TARGET_IRIX6): Remove.
324 (TARGET_IRIX5): Redefine as 0.
326 * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
327 linker workaround with TARGET_IRIX and mips_abi instead of
328 ASM_OUTPUT_UNDEF_FUNCTION.
329 (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
330 testing TARGET_IRIX and mips_abi explicitly.
331 * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
332 * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
334 * config/mips/mips.c (irix_output_external_libcall): Renamed from
335 mips_output_external_libcall.
336 Use new TARGET_IRIX in guard.
337 * config/mips/mips-protos.h (irix_output_external_libcall): Match
339 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
341 * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
344 * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
345 depending on mips_abi.
346 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
347 * config/mips/mips.c (mips_output_function_prologue): Test
348 FUNCTION_NAME_ALREADY_DECLARED at runtime.
349 (mips_output_function_epilogue): Likewise.
350 (build_mips16_function_stub): Likewise.
351 (build_mips16_call_stub): Likewise.
352 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
355 * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
356 IRIX 6 O32 assembler.
357 (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
358 (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
359 _MIPS_SIM for O32 ABI.
360 (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
361 (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
362 (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
363 Integrate O32 version.
364 (SUBTARGET_ASM_SPEC): Handle -mabi=32.
365 (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
367 (BSS_SECTION_ASM_OP_32): Define.
368 (BSS_SECTION_ASM_OP_64): Likewise.
369 (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
371 (TARGET_ASM_NAMED_SECTION): Reflect renaming.
372 Move up to allow override for O32 ABI without GNU as.
373 (EH_FRAME_SECTION_NAME): Define explicitly.
374 (MUST_USE_SJLJ_EXCEPTIONS): Define.
375 [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
376 DTORS_SECTION_ASM_OP): Dummy definitions.
377 (TARGET_ASM_NAMED_SECTION): Undef statically.
378 (EH_FRAME_SECTION_NAME): Likewise.
379 (ASM_OUTPUT_FILENAME): Integrate mips.h version.
380 (LINK_SPEC): Only use default options -call_shared -no_unresolved
382 Don't pass -init, -fini with -mabi=32.
383 (COLLECT_PARSE_FLAG): Define.
385 * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
387 Renamed to use irix_ prefix.
388 (iris6_asm_named_section): Likewise.
389 (iris_section_align_entry_eq): Likewise.
390 (iris_section_align_entry_hash): Likewise.
391 (iris6_file_start): Likewise.
392 (iris6_section_align_1): Likewise.
393 (iris6_file_end): Likewise.
394 (iris6_section_type_flags): Likewise.
395 (iris_section_align_htab): Likewise.
396 (iris_orig_asm_out_file): Likewise.
397 [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
398 (TARGET_ASM_FILE_END): Likewise.
399 (TARGET_SECTION_TYPE_FLAGS): Likewise.
401 * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
402 (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
403 override_options instead.
404 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
405 (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
406 * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
407 flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
409 Likewise for constructor/destructor handling.
410 (override_options): Handle IRIX O32 assembler quirks.
411 [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
413 (mips_file_start): Use new TARGET_IRIX.
414 (mips_declare_object_name): No special processing for IRIX O32
416 (mips_finish_declare_object): Likewise.
417 (irix_asm_output_align): Renamed from iris6_asm_output_align.
418 Don't record alignment for O32 ABI.
419 (irix_file_start): Renamed from iris6_file_start.
420 Return early for O32 ABI.
421 (irix_file_end): Renamed from iris6_file_end.
422 Don't emit .section directives for O32 ABI.
423 * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
424 * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
426 * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
427 (MULTILIB_OSDIRNAMES): Likewise.
429 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
431 * collect2.c (COLLECT_PARSE_FLAG): Provide default.
433 * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
435 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
437 * arm-modes.def (CC_Nmode): New condition code mode.
438 * arm.c (thumb_condition_code): Delete.
439 (arm_select_cc_mode): Handle single-bit test for Thumb.
440 (arm_print_operand, cases 'd' and 'D'): Don't special case the
441 condition code logic for Thumb.
442 (get_arm_condition_code): Handle CC_Nmode.
443 (thumb_cbrch_target_operand): New function.
444 * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
445 * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
446 * arm.md: Add Thumb split patterns for zero_extract and
448 (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
449 (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
450 (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
451 (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
452 (cbranchne_decr1): Re-work to use CC_Nmode.
454 * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
455 by the return instruction. Add a use of the link register if it
458 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
460 * flow.c (init_propagate_block_info): Don't abort if a conditional
461 jump is not a comparison of a register. Instead, just don't record
462 conditional life information.
464 2003-10-16 Jan Hubicka <jh@suse.cz>
466 PR optimization/12630
467 * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
468 for operands 7 and 8.
470 2003-10-16 Kelley Cook <kcook@gcc.gnu.org>
472 * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
474 2003-10-16 Danny Smith <dannysmith@users.sourceforge.net>
476 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
478 * config/i386/winnt.c (gen_stdcall_suffix): Make static
479 (gen_fastcall_suffix): Likewise.
480 (i386_pe_dllexport_p): Likewise.
481 (i386_pe_dllimport_p): Likewise.
482 (i386_pe_mark_dllexport): Likewise.
483 (i386_pe_mark_dllimport): Likewise.
484 (i386_pe_asm_named_section): Fix formatting.
486 2003-10-16 Zack Weinberg <zack@codesourcery.com>
488 * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
489 * system.h: Declare snprintf if necessary.
490 * configure, config.in: Regenerate.
492 2003-10-15 David Edelsohn <edelsohn@gnu.org>
494 * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
495 arguments if TARGET_ALTIVEC_ABI.
497 2003-10-15 Roger Sayle <roger@eyesopen.com>
499 * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
500 fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
501 fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
503 (expand_builtin_memcpy): Use integer_zerop instead of testing
504 host_integerp and tree_low_cst directly. Move misapplied hunk
505 for optimization wher SRC and DEST point to the same location.
506 (expand_builtin_mempcpy): From here.
507 (expand_builtin_memmove): Use integer_zerop instead of testing
508 host_integerp and tree_low_cst_directly.
509 (expand_builtin_memset): Likewise.
510 (expand_builtin_memcmp): Likewise (and for integer_onep).
511 (expand_builtin_strncmp): Likewise.
512 (fold_builtin): Call the appropriate fold_builtin_foo functions
513 to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
516 2003-10-15 Geoffrey Keating <geoffk@apple.com>
518 * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
519 prototype. Clean up some whitespace.
520 * config/darwin.c: Use gen_rtx_FOO (...) rather than
522 (machopic_non_lazy_ptr_name): Make static.
523 (name_needs_quotes): Allow '.' and '$' unquoted.
524 (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
527 2003-10-15 Gábor Lóki <alga@rgai.hu>
529 * fold-const.c (tree_swap_operands_p): Disable some features
530 when optimizing for size.
532 2003-10-15 David Daney <ddaney@avtrex.com>
534 * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
535 * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
537 (DWARF_FRAME_RETURN_COLUMN): Ditto.
538 (SIGNAL_UNWIND_RETURN_COLUMN): New, used
539 by MD_FALLBACK_FRAME_STATE_FOR.
540 * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
542 2003-10-15 Zack Weinberg <zack@codesourcery.com>
544 * genmodes.c: Include hashtab.h.
545 (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
546 (adj_bytesize, adj_alignment, adj_format, new_adjust)
547 (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
548 (print_maybe_const_decl, emit_mode_adjustments): New.
549 (known_modes): Rename to modes.
550 (find_mode): Kill class argument; look up in hash table.
551 (new_mode): Insert into hash table also.
553 (reset_float_format, make_partial_integer_mode)
554 (make_vector_mode): Tweak error reporting.
555 (reset_float_format): Correct type of fourth argument.
556 (emit_insn_modes_h): Add #defines to help make mode_size,
557 mode_base_align, and real_format_for_mode conditionally const.
558 (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
559 (emit_real_format_for_mode): Likewise, but temporarily disabled.
560 (emit_insn_modes_c): Call emit_mode_adjustments.
561 (main): Initialize modes_by_name.
562 * Makefile.in: Update dependencies.
563 * machmode.def: Document EXPR arguments and new ADJUST_* statements.
564 * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
565 declarations of mode_size and mode_base_align. Declare
566 init_adjust_machine_modes.
567 * toplev.c (backend_init): Call init_adjust_machine_modes.
569 2003-10-15 Olivier Hainque <hainque@act-europe.fr>
571 * genmodes.c (calc_wider_mode): Allocate enough room for all the
572 entries we'll possibly assign in the sort buffer.
574 2003-10-15 Ulrich Weigand <uweigand@de.ibm.com>
576 * config.gcc (s390x-ibm-tpf*): New target.
577 * doc/install.texi: Document it.
578 * config/s390/t-tpf: New file.
579 * config/s390/tpf.h: New file.
581 2003-10-15 Hans-Peter Nilsson <hp@axis.com>
584 * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
585 (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
586 Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
587 ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
588 (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
589 (define_split "*mov_sidesi_mem"+28, +29, +30): Use
590 replace_equiv_address, not gen_rtx_MEM.
591 * config/cris/cris.c (cris_mem_op): New match_operator function.
592 (cris_notice_update_cc): Use replace_equiv_address, not
594 * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
596 2003-10-15 Bernardo Innocenti <bernie@develer.com>
598 * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
599 MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
600 definitions after the other flags.
602 2003-10-14 Ziemowit Laski <zlaski@apple.com>
604 * c-parse.in (methoddef, methodproto): Call objc_add_method()
605 instead of add_method().
606 * objc/objc-act.c (objc_check_decl): Do not check for
607 constant_string_type.
608 (add_method): Rename to objc_add_method().
609 (really_start_method): Call objc_add_method() instead of
611 * objc/objc-act.h (add_method): Rename to objc_add_method().
613 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
615 * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
616 (s390_slb_comparison): Likewise.
617 * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
619 * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
620 and s390_slb_comparison.
621 * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
623 ("*adddi3_31z", "*subdi3_31z"): New insns.
624 ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
625 "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
628 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
630 * configure.in: Clean up some feedback echoes.
631 * configure: Regenerate.
633 * aclocal.m4: Properly quote names of macros being defined.
635 * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
637 2003-10-14 Steve Ellcey <sje@cup.hp.com>
639 * config/ia64/ia64.c (ia64_expand_call): Force function address
641 * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
643 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
645 * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
646 "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
647 ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
648 "*divsf3_ibm"): Likewise.
650 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
652 * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
653 target_alias with target_noncanonical.
655 2003-10-14 Geoffrey Keating <geoffk@apple.com>
657 * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
658 and add case for machines where outgoing register parameters
661 * config/darwin.c (machopic_indirect_data_reference): Use a scratch
662 register when generating indirect address.
664 2003-10-14 Richard Earnshaw <rearnsha@arm.com>
666 * arm.c (arm_addimm_operand): MODE arguemnt is unused.
667 * arm.md (cbranchne_decr1): Fix bootstrap warning.
669 2003-10-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
671 * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
672 * fixinc/fixincl.x: Regenerate.
673 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
675 Fixes PR bootstrap/9330.
677 2003-10-13 Eric Christopher <echristo@redhat.com>
679 * config/frv/frv.c (frv_adjust_field_align): Redo check for
681 (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
682 * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
683 (SBSS_SECTION_ASM_OP): Remove.
684 (EXTRA_SECTIONS): Remove in_sbss.
685 (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
686 (SBSS_SECTION_FUNCTION, sbss_section): Remove.
687 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
690 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
692 * Makefile.in, configure.in, config.host, mkheaders.in: Replace
693 uses of ${target_alias} for directory names (and other places which
694 won't like the empty string) with ${target_noncanonical}. Introduce
695 call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
697 * configure: Regenerate.
699 2003-10-13 Ian Lance Taylor <ian@wasabisystems.com>
701 * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
702 * config/arm/arm.md: For splits which rely on conditional moves,
703 remove ! TARGET_IWMMXT condition.
705 2003-10-13 David S. Miller <davem@redhat.com>
707 * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
708 (find_cond_trap): Always increment if we emit a conditional
711 2003-10-13 Zack Weinberg <zack@codesourcery.com>
713 * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
714 with min-insn-modes.o.
715 (STAGESTUFF): Add min-insn-modes.c.
716 (genobjs): Add genmodes.o.
717 (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
718 (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
719 (min-insn-modes.c, min-insn-modes.o): New rules.
720 (s-modes): Also generate min-insn-modes.c.
721 ($(BUILD_PREFIX_1)insn-modes.o): Kill.
722 * genmodes.c (struct mode_data): Add format field.
723 (blank_mode, validate_mode, complete_mode): Update to match.
724 (make_scalar_mode): Separate into make_int_mode and make_float_mode.
725 (_SCALAR_MODE): Kill.
726 (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
727 (emit_insn_modes_c_header): Adjust.
728 (emit_min_insn_modes_c_header, emit_real_format_for_mode)
729 (emit_min_insn_modes_c): New functions.
730 (emit_insn_modes_c): Call emit_real_format_for_mode.
731 (main): Add -m option to generate min-insn-modes.c.
732 * machmode.h: Update documentation. Add format argument to
733 all uses of FLOAT_MODE.
734 * real.c: Don't define real_format_for_mode here.
736 * dwarfout.c: Move default definition of PRINT_REG...
737 * defaults.h: ...here.
738 * print-rtl.c: Include tm_p.h.
739 (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
741 (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG. But surround
742 this entire block with #ifndef GENERATOR_FILE.
743 * regclass.c: Unconditionally define reg_names.
744 * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
745 Don't define DEBUG_REGISTER_NAMES.
746 * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
747 redefinition of REGISTER_NAMES.
748 * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
750 * combine.c: Change all preprocessor conditionals on
751 EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
753 * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
754 * configure.in: Don't define EXTRA_CC_MODES.
755 * configure, config.in: Regenerate.
756 * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
758 * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
759 May assume that GET_MODE_CLASS is accurate for extra CC modes
762 * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
763 number of arguments to aggregate_value_p.
765 * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
766 * machmode.def: Explain ARCH-modes.def. Document
767 RESET_FLOAT_FORMAT. Improve commentary on various mode
768 clusters. Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
769 XF, or TF modes here. Remove backward-compatibility
772 * config/alpha/alpha-modes.def: New file; define TF mode.
773 * config/arc/arm-modes.def: Define XF mode.
774 * config/c4x/c4x-modes.def: Define QF and HF modes. Unset
775 float format for SF and DF modes.
776 * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
777 * config/i386/i386-modes.def: Define XF and TF modes.
778 * config/i960/i960-modes.def: Define TF mode.
779 * config/ia64/ia64-modes.def: Define TF and OI modes.
780 * config/m68k/m68k-modes.def: New file; define XF mode.
781 * config/mips/mips-modes.def: New file; define TF mode, reset
782 formats for SF and DF modes.
783 * config/pa/pa-modes.def: Define TF mode.
784 * config/rs6000/rs6000.c: Define TF and PSI modes.
785 * config/s390/s390-modes.def: Define OI mode.
786 * config/sh/sh-modes.def: New file; define PSI mode.
787 * config/sparc/sparc-modes.def: Define TF mode.
788 * config/vax/vax-modes.def: New file; reset formats for SF and
791 * config/c4x/c4x.c (c4x_override_options): No need to mess
792 with real_format_for_mode or set REAL_MODE_FORMATs.
793 (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
795 * config/i386/i386.c (override_options): No need to set
796 REAL_MODE_FORMATs here.
797 * config/i960/i960.c (i960_initialize): Likewise.
798 * config/m68k/m68k.c (m68k_override_options): Likewise.
799 * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
800 for TFmode only if not the default.
801 * config/mips/mips.c (override_options): Likewise.
802 * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
803 DFmode only if not the default.
805 * config/i370/i370.h (RET_REG): Don't consider TFmode.
806 * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
807 * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
808 of modes that don't appear anywhere in the machine description.
810 * config/arc/arc-modes.def, config/arm/arm-modes.def
811 * config/c4x/c4x-modes.def, config/frv/frv-modes.def
812 * config/i386/i386-modes.def, config/i960/i960-modes.def
813 * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
814 * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
815 * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
816 * config/sparc/sparc-modes.def: Convert to new style for
817 declaring extra CC modes.
819 2003-10-13 Zack Weinberg <zack@codesourcery.com>
821 * cpplex.c (_cpp_clean_line): In the common case of a line
822 with no trigraphs and no \-newline, avoid writing to memory.
823 (_cpp_skip_block_comment): Use a local 'cur' pointer instead
824 of the buffer member. Make c an uchar to avoid unnecessary
827 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
829 * configure.in: Remove unnecessary test.
830 * configure: Regenerate.
832 * configure.in: Fix grammatical error. Move UWIN host error to...
834 * configure: Regenerate.
836 2003-10-13 Andreas Krebbel <krebbel1@de.ibm.com>
838 * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
839 "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
840 of flag_unsafe_math_optimizations.
841 * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
842 "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
843 fused-madd and no-fused-madd.
844 * doc/invoke.texi: Documented the new options fused-madd and
845 no-fused-madd for S/390.
847 2003-10-14 Alan Modra <amodra@bigpond.net.au>
849 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
850 MASK_ALIGN_NATURAL if rs6000_alignment_string not given. Don't
852 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
853 * config/rs6000/rs6000.c: Formatting.
854 (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
855 when rs6000_alignment_string given.
857 2003-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
860 * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
861 (sparc_flat_must_save_register_p): New function to decide whether
862 a register must be saved/restored in the function prologue/epilogue.
863 (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
865 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
867 * config/avr/avr.c, config/avr/avr-protos.h: Convert to
868 ISO C90 function declarations and definitions.
869 * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
871 2003-10-12 Nathanael Nerode <neroden@gcc.gnu.org>
873 * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
874 config files which do the same thing.
875 * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
876 config/freebsd6.h: Remove now unnecessary files.
878 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
880 * c-common.c (c_common_truthvalue_conversion): Warn if the
881 address of a non-weak function is used as a truth value.
883 2003-10-12 Kazu Hirata <kazu@cs.umass.edu>
885 * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
887 * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
888 instead of a literal.
890 2003-10-12 Hans-Peter Nilsson <hp@bitrange.com>
892 * doc/extend.texi (Function Attributes): Mention the exceptional
893 path for noreturn-marked functions.
895 2003-10-12 Jan Hubicka <jh@suse.cz>
897 * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
900 2003-10-12 Danny Smith <dannysmith@users.sourceforge.net>
902 * config/i386/i386.c (x86_this_parameter): Fix typo.
904 2003-10-11 Jan Hubicka <jh@suse.cz>
906 * Makefile.in (web.o): New.
908 * rtl.h (web_main): Declare.
909 * timervar.def (TV_WEB): New.
910 * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
911 (rest_of_hanle_web): New.
912 (flag_web): New static variable.
913 (lang_independent_options): Add "web".
914 (rest_of_compilation): Call rest_of_handle_web.
915 * invoke.texi (-fweb): Document.
916 * common.opt (fweb): New.
917 * flags.h (flag_web): New.
918 * opts.c (decode_options): Set flag_web at -O3.
920 * passes.texi (web construction): Document.
921 * invoke.texi (-O3): Document that -fweb is enabled.
923 * regrename.c (regrename_optimize): Deal better with situation when
926 * sched-ebb.c: Include params.h and profile.h
927 (schedule_ebbs): Use tracer parameters to discover superblocks
928 * Makefile.in (sched-ebb.o): Add dependencies.
930 2003-10-11 Roger Sayle <roger@eyesopen.com>
932 * fold-const.c (negate_mathfn_p): New function to determine whether
933 a built-in mathematical function is sign preserving, f(-x) == -f(x).
934 Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
935 (tree_swap_operands_p): Change API to take an additional argument
936 indicating that the swapped operands evaluate in reverse order.
937 Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
938 operand side-effects or we don't care about flag_evaluation_order.
939 (reorder_operands_p): New function to check whether its safe to
940 evaluate the given operands in reverse order.
941 (negate_expr_p): We can always negate integer constants unless
942 we honor -ftrapv and the signed type would overflow. Only allow
943 -(A-B) into B-A if reorder_operands_p says that its OK. Allow
944 negation of COMPLEX_CST if both real and imaginary parts can be
945 negated. Allow negation through floating point extensions and
946 sign-preserving built-in functions.
947 (negate_expr): Move the code to negate integers from "fold" to
948 here. Always negate integer constants unless we honor -ftrapv
949 and the signed type would overflow. Always negate real constants
950 unless we honor -ftrapping-math. Only convert -(A-B) into B-A
951 if allowed by reorder_operands_p. Add support for COMPLEX_CST.
952 Optimize negation through floating point extensions and
953 sign-preserving built-in functions (as defined by negate_mathfn_p).
954 (fold): Adjust calls to tree_swap_operands_p.
955 (fold <NEGATE_EXPR>): Move the remaining negation optimizations
956 to negate_expr_p/negate_expr.
957 (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
958 allowed to convert (-A) - B into (-B) - A.
960 2003-10-11 Roger Sayle <roger@eyesopen.com>
962 * builtins.c (expand_builtin_strcmp): Defend against the possibility
963 that gen_cmpstrsi may fail: Stabilize the argument list against
964 re-evaluation and expand the library call directly using this saved
965 argument list if a cmpstrsi sequence can't be generated.
966 (expand_builtin_strncmp): Likewise.
968 * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
970 2003-10-11 Roger Sayle <roger@eyesopen.com>
972 PR optimization/12260
973 * simplify-rtx.c (simplify_unary_operation): Simplify all unary
974 operations through CONST nodes. Optimize (neg (plus X C)) as
975 (minus -C X) for constant values C.
976 (simplify_binary_operation): Optimize (minus (neg X) C) as
977 (minus -C X) for constant values C.
978 (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
979 instead create (minus -C X).
981 2003-10-11 Roger Sayle <roger@eyesopen.com>
983 * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
984 safe_from_p for us, once it chooses an evaluation order.
985 (expand_expr <MULT_EXPR>): Likewise.
986 (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise. If expand_operands
987 places the second operand in "target", swap the operands.
988 (do_store_flag): Let expand_operands call safe_from_p for us.
990 2003-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
992 PR optimization/12544
993 * function.c (put_var_into_stack): Don't generate ADDRESSOFs
994 for DECL_NONLOCAL decls.
996 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
998 * expr.c: Follow spelling conventions.
1000 * optabs.c: Likewise.
1001 * sched-deps.c: Likewise.
1002 * sdbout.c: Likewise.
1004 Sat Oct 11 12:24:23 CEST 2003 Jan Hubicka <jh@suse.cz>
1006 * varasm.c (notice_global_symbol): Fix handling of variables; avoid
1007 re-computing of variable.
1009 2003-10-11 Richard Henderson <rth@redhat.com>
1011 * config/alpha/alpha.c (alpha_return_in_memory): Rename from
1012 return_in_memory, make static, change signature to match target hook.
1013 (alpha_setup_incoming_varargs): Make static, change signature to
1014 match target hook, add code for vms and unicos.
1015 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
1016 TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
1017 TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
1018 TARGET_STRICT_ARGUMENT_NAMING,
1019 TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
1020 * config/alpha/alpha-protos.h: Update.
1021 * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
1022 PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
1023 SETUP_INCOMING_VARARGS): Remove.
1024 * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
1025 * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
1027 2003-10-11 Ian Lance Taylor <ian@wasabisystems.com>
1029 * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
1031 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
1033 * config/m68k/lb1sf68.asm: Follow spelling conventions.
1034 * config/m68k/m68k.c: Likewise.
1035 * config/m68k/m68k.h: Likewise.
1036 * config/m68k/m68k.md: Likewise.
1038 2003-10-11 Roger Sayle <roger@eyesopen.com>
1040 * builtins.c (expand_builtin_memcpy): Optimize case when the two
1041 pointer arguments are the equal, non-volatile and side-effect free.
1042 (expand_builtin_mempcpy): Likewise.
1043 (expand_builtin_memmove): Likewise.
1044 (expand_builtin_strcpy): Likewise.
1045 (expand_builtin_memcmp): Likewise.
1046 (expand_builtin_strcmp): Likewise.
1047 (expand_builtin_strncmp): Likewise.
1049 2003-10-11 Roger Sayle <roger@eyesopen.com>
1051 * combine.c (apply_distributive_law): Enable "distributive" floating
1052 point optimizations with -funsafe-math-optimizations.
1054 2003-10-11 Andrew Pinski <pinskia@physics.uc.edu>
1056 * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
1058 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
1060 * config/m68k/m68k-protos.h: Remove the prototype for
1063 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
1065 * config/m68k/m68k.c: Fix comment typos.
1067 2003-10-11 Bernardo Innocenti <bernie@develer.com>
1069 * config/m68k/m68k-protos.h (use_return_insn): Change return type from
1071 * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
1072 (current_frame): New global var.
1073 (m68k_compute_frame_layout): Cache computations in current_frame.
1074 (m68k_initial_elimination_offset): Use values from current_frame
1075 instead of recomputing them.
1076 (use_return_insn): Likewise.
1077 (m68k_output_function_prologue): Likewise.
1078 (m68k_output_function_epilogue): Likewise.
1079 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
1080 inside the block for __pic__.
1082 2003-10-11 Peter Barada <peter@baradas.org>
1083 Bernardo Innocenti <bernie@develer.com>
1085 * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
1086 (m68k_save_reg): Add boolean parameter `interrupt_handler'.
1087 (m68k_interrupt_function_p): New function.
1088 (m68k_handle_fndecl_attribute): Ditto.
1089 (m68k_compute_frame_layout): Ditto.
1090 (m68k_attribute_table): Define back-end specific attributes.
1091 (m68k_output_function_epilogue): Emit RTE instruction for interrupt
1094 2003-10-11 Bernardo Innocenti <bernie@develer.com>
1096 * config/m68k/t-uclinux: New target Makefile fragment.
1097 * config/m68k/uclinux.h: New target macro file.
1098 * config.gcc (m68k-*-uclinux): New target definition.
1100 2003-10-10 Roger Sayle <roger@eyesopen.com>
1102 * builtins.c (builtin_mathfn_code): Generalize to check whether
1103 the call is to any built-in function by comparing the call's
1104 argument list against the builtin decl's function type.
1106 2003-10-10 Roger Sayle <roger@eyesopen.com>
1108 * cse.c (constant_pool_entries_regcost): New global variable to
1109 hold the register cost component of constant_pool_entries_cost.
1110 (fold_rtx): Calculate constant_pool_entries_regcost at the same
1111 time as constant_pool_entries_cost.
1112 (cse_insn): Set both src_folded_cost and src_folded_regcost from
1113 constant_pool_entries_cost and constant_pool_entries_regcost.
1114 (cse_main): Initialize constant_pool_entries_regcost to zero.
1116 * optabs.c (expand_unop): Attach a REG_EQUAL note describing
1117 the semantics of the sequence of bit operations used to negate
1118 a floating-point value.
1119 (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
1120 the semantics of the bit operations used to abs a floating point
1123 2003-10-11 Bernardo Innocenti <bernie@develer.com>
1124 Paul Dale <pauli@snapgear.com>
1126 * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
1128 * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
1129 -fpic, -fPIC, -msep-data and -mid-shared-library.
1130 * config/m68k/m68k.c (m68k_library_id_string): New global variable.
1131 (override_options): Add -msep-data and -mshared-library-id support.
1132 (m68k_output_function_prologue): Generate code to load A5 for
1133 TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
1134 (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
1135 (m68k_output_pic_call): New function.
1136 * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
1137 (TARGET_ID_SHARED_LIBRARY): Ditto.
1138 (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
1139 * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
1140 (call_value): Likewise.
1142 2003-10-10 Zack Weinberg <zack@codesourcery.com>
1144 * gengenrtl.c (find_formats, genheader): Make i an unsigned
1145 int, remove cast of NUM_RTX_CODE.
1146 * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
1147 entire file. Remove the #ifs on GET_MODE_MASK etc and
1148 GET_MODE_WIDER_MODE etc.
1150 2003-10-10 Eric Christopher <echristo@redhat.com>
1152 * lcm.c (optimize_mode_switching): Change NORMAL_MODE
1153 to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
1155 * config/sh/sh.h (MODE_ENTRY): New macro.
1157 (MODE_AFTER): Ditto.
1158 * config/sh/sh.md: Change for MODE_AFTER. Add
1160 * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
1162 2003-10-10 Zack Weinberg <zack@codesourcery.com>
1164 * genmodes.c, mode-classes.def: New files.
1165 * machmode.def: Rewritten to genmodes.c interface.
1166 * Makefile.in (extra_modes_file): New substitution variable.
1167 (MACHMODE_H): No longer includes machmode.def or
1168 @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
1169 (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
1170 (OBJS-common): Add insn-modes.o.
1171 (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
1172 genmodes$(build_exeext).
1173 (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
1174 genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
1175 (s-genrtl): Don't depend on $(RTL_BASE_H).
1176 (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
1177 or $(RTL_BASE_H); just rtl.def.
1178 * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
1179 real.h. Give fake definition of CONST_DOUBLE_FORMAT and
1180 substitute definition of NUM_RTX_CODE. Add casts to avoid
1182 * machmode.h: Include insn-modes.h, not machmode.def. Include
1183 mode-classes.def to define enum mode_class. Tweak definitions
1184 of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
1185 GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
1186 (inner_mode_array): Renamed mode_inner.
1187 (mode_base_align): New.
1188 * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
1189 mode_unit_size, mode_wider_mode, mode_mask_array,
1190 inner_mode_array, class_narrowest_mode): Delete definitions.
1191 * stor-layout.c (get_mode_alignment): Use mode_base_align.
1192 * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
1193 and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
1195 * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
1196 No need to define BITS_PER_UNIT.
1198 2003-10-10 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1200 * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
1201 (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
1202 (ia64_initialize_trampoline): If not using GAS, declare trampoline
1204 * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
1205 (ASM_OUTPUT_DEBUG_LABEL): Likewise.
1207 * stor-layout.c (compute_record_mode): Don't force BLKmode if
1208 field is zero-length BLKmode.
1209 * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
1210 zero-size references.
1212 * combine.c (distribute_links): Properly test for REG being set.
1214 * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
1215 gen_lowpart and company except for REG.
1217 2003-10-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1219 * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
1221 2003-10-10 Nathanael Nerode <neroden@gcc.gnu.org>
1223 * config.gcc (mips*-*-netbsd*): Remove content-free line.
1225 2003-10-10 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
1227 * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
1228 gcov_position_t and gcov_type.
1230 2003-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
1232 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
1233 * configure: Regenerate.
1235 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
1237 * config/h8300/h8300.md (define_asm_attributes): Specify
1238 the length of an asm insn more precisely.
1240 2003-10-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1242 * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
1244 2003-10-09 Bob Wilson <bob.wilson@acm.org>
1246 * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
1247 FP register number to 48 and MAC16 accumulator to 0x210.
1249 2003-10-09 Nathanael Nerode <neroden@gcc.gnu.org>
1251 * config.gcc: Remove redundant thread_file setting clauses for
1252 various *-*-linux* targets.
1254 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
1256 * config/h8300/h8300.md (define_asm_attributes): New.
1258 2003-10-09 Roger Sayle <roger@eyesopen.com>
1260 * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
1261 to the comparison, as emit_libcall_block calls copy_rtx on equiv.
1263 2003-10-09 Dorit Naishlos <dorit@il.ibm.com>
1265 * haifa-sched.c (ok_for_early_schedule): New function.
1266 (early_queue_to_ready): New function.
1267 (schedule_block): Allow early removal of insns from Q.
1268 (schedule_insn): Update INSN_TICK in case of premature
1270 * common.opt (sched_stalled_insns): New flag.
1271 (sched_stalled_insns_dep): New flag.
1272 * flags.h: Same above flags.
1273 * opts.c: Same as above.
1274 * toplev.c: Same as above.
1275 * target.h (targetm.sched.is_costly_dependence): New
1277 * target-def.h: Same as above.
1278 * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
1279 Support new flag -msched-costly-dep.
1280 (DEFAULT_SCHED_COSTLY_DEP): Define.
1281 * config/rs6000/rs6000.c:
1282 (rs6000_is_costly_dependence): New function.
1283 (is_load_insn, is_store_insn): New functions.
1284 (is_load_insn1, is_store_insn1, is_mem_ref): New
1286 * doc/invoke.texi (-fsched-stalled-insns-dep)
1287 (-fsched-stalled-insns, -msched-costly-dep): Document
1289 * doc/tm.texi (is_costly_dependence): Define new
1290 scheduler target hook.
1292 2003-10-09 Jason Merrill <jason@redhat.com>
1295 * c-common.c (c_build_qualified_type): Look through arrays first.
1296 (c_apply_type_quals_to_decl): Look through arrays.
1298 * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
1299 types with constructors.
1301 * coverage.c (build_ctr_info_value): Use build_decl to make a
1303 (create_coverage): Likewise.
1305 * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
1307 (expand_asm_operands): Not here.
1308 (parse_input_constraint): No longer static.
1309 * tree.h: Declare it.
1311 2003-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
1313 * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
1315 (SHLIB_INSTALL): Likewise.
1317 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
1319 * doc/install.texi: Remove reference to removed 'pthreads' thread
1322 2003-10-08 Aldy Hernandez <aldyh@redhat.com>
1324 * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
1327 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
1329 * config.gcc: Don't accept --enable-threads=pthreads. Clean
1330 up related case statements.
1331 * configure.in: Don't accept --enable-threads=pthreads,
1332 decosf1, mach, or os2 (none of which work anyway). Alphabetize
1333 supported thread files in case clause.
1334 * configure: Regenerate.
1336 2003-10-08 Geoffrey Keating <geoffk@apple.com>
1338 * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
1339 definition to above SPARC_STACK_BOUNDARY_HACK.
1341 2003-10-08 Jason Merrill <jason@redhat.com>
1343 * c-pretty-print.c (pp_c_postfix_expression)
1344 <COMPOUND_LITERAL_EXPR>: Fix thinko.
1346 2003-10-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1348 * mklibgcc.in: Don't hide undefined or typeless symbols.
1350 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1352 PR optimization/12142
1353 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
1354 uses of the register in the SET_SRC. Remove unnecessary argument.
1355 * pa.c (legitimize_pic_address): Before reload, use a scratch register
1356 for the intermediate result in loading the address of a SYMBOL_REF.
1357 Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn
1358 which loads the SYMBOL_REF address.
1360 2003-10-08 Timo Kokkonen <tjko@iki.fi>
1361 Eric Botcazou <ebotcazou@libertysurf.fr>
1364 * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
1365 to define the size of the extern_C_braces array. Set it to 200.
1366 (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
1368 2003-10-08 Carlo Wood <carlo@alinoe.com>
1370 * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
1371 a space after the -o option. flex 2.5.31 understands both, with
1372 and without the space. Removed that space.
1374 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
1376 * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
1377 (compute_frame_size): Initialize it. Remove the .cprestore slot
1379 (mips_output_function_prologue): Simplify accordingly.
1380 (mips_debugger_offset): Change the mips16 frame pointer offset from
1381 current_function_outgoing_args to cfun->machine->frame.args_size.
1382 (mips_initial_elimination_offset): Likewise.
1383 (mips_expand_prologue): Likewise.
1384 (mips_expand_epilogue): Likewise.
1386 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
1388 * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
1389 (EXTRA_MEMORY_CONSTRAINT): Define.
1390 (CAN_ELIMINATE): Remove lwu workaround.
1391 * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
1392 Use a 'W' constraint for the source operand.
1394 2003-10-08 Kazu Hirata <kazu@cs.umass.edu>
1396 * genopinit.c (main): Output code to declare undefined
1399 2003-10-07 Kelley Cook <kcook@gcc.gnu.org>
1401 * gengtype-lex.l: Remove -Wtraditional cruft.
1402 * Makefile.in (gengtype-lex.c): Likewise.
1404 2003-10-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1406 * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
1408 2003-10-07 Jason Merrill <jason@redhat.com>
1411 * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
1414 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
1416 * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
1418 Fixes PR bootstrap/12173.
1420 2003-10-07 Zack Weinberg <zack@codesourcery.com>
1422 * errors.c: Don't include coretypes.h or tm.h.
1423 (trim_filename): Use IS_DIR_SEPARATOR.
1424 * Makefile.in: Update dependencies of errors.o and
1425 $(BUILD_PREFIX_1)errors.o.
1427 2003-10-07 Geoffrey Keating <geoffk@apple.com>
1429 * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
1430 account when aligning arguments.
1431 * calls.c (STACK_POINTER_OFFSET): Move default from here ...
1432 * defaults.h (STACK_POINTER_OFFSET): ... to here.
1433 * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
1434 it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
1435 (SPARC_STACK_BOUNDARY_HACK): Define.
1436 * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
1437 arrange for vector parameters to varargs functions to be passed
1438 in both memory and GPRs when appropriate.
1439 (rs6000_va_arg): Vector arguments passed in memory are 16-byte
1442 * hooks.c (hook_bool_tree_true): New.
1443 (hook_rtx_tree_int_null): New.
1444 (hook_rtx_rtx_null): Use NULL, not 0.
1445 * hooks.h: Add 'extern' to everything.
1446 (hook_bool_tree_true): New.
1447 (hook_rtx_tree_int_null): New.
1448 * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
1449 * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
1450 * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
1452 * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
1453 (setup_incoming_varargs): Prototype.
1454 (TARGET_PROMOTE_FUNCTION_ARGS): Define.
1455 (TARGET_PROMOTE_FUNCTION_RETURN): Define.
1456 (TARGET_STRUCT_VALUE_RTX): Define.
1457 (TARGET_RETURN_IN_MEMORY): Define.
1458 (TARGET_SETUP_INCOMING_VARARGS): Define.
1459 (TARGET_STRICT_ARGUMENT_NAMING): Define.
1460 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
1461 (init_cumulative_args): Use rs6000_return_in_memory.
1462 (setup_incoming_varargs): Make 'static'.
1463 * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
1464 (PROMOTE_FUNCTION_RETURN): Delete.
1465 (STRUCT_VALUE): Delete.
1466 (RETURN_IN_MEMORY): Delete.
1467 (SETUP_INCOMING_VARARGS): Delete.
1469 2003-10-07 Gerald Pfeifer <gerald@pfeifer.com>
1471 * doc/invoke.texi (Warning Options): Simplify and clarify the
1472 descriptions of -Wnonnull and -Winit-self.
1474 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
1476 * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
1477 indicees for floating-point conversersion libcalls.
1479 2003-10-07 Nathanael Nerode <neroden@gcc.gnu.org>
1481 * Makefile.in: Add more comments separating large conceptually
1484 * configure.in: Clean up thread file logic.
1485 * configure: Regenerate.
1487 2003-10-07 Danny Smith <dannysmith@users.sourceforge.net>
1489 * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
1490 (switch_to_section): Handle in_readonly_data.
1491 * config/i386/winnt.c (i386_pe_asm_named_section): Handle
1494 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
1496 * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
1498 (cbranchne_decr1): New Thumb pattern.
1499 * arm.c (arm_addimm_operand): New insn predicate.
1500 * arm-protos.h: Add a prototype for it.
1501 * arm.h (PREDICATE_CODES): Add it.
1503 2003-10-07 Dorit Naishlos <dorit@il.ibm.com>
1505 * sched-int.h (sched_info): New field
1506 sched_max_insns_priority.
1507 * sched-rgn.c (init_ready_list): Add invocations to
1508 targetm.sched.adjust_priority.
1509 (sched_max_insns_priority): Init new field.
1510 * sched-ebb.c (sched_max_insns_priority): Init new field.
1511 * haifa-sched.c (set_priorities): Set
1512 sched_info->sched_max_insns_priority.
1513 * config/rs6000/rs6000.h:
1514 (rs6000_sched_restricted_insns_priority_str): Support new
1515 flag -mprioritize-restricted-insns.
1516 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
1517 * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
1519 (rs6000_adjust_priority): Change priority of restricted
1520 insns, using above new function and new flag.
1521 * doc/invoke.texi (-mprioritize-restricted-insns): Document
1524 2003-10-07 Zack Weinberg <zack@codesourcery.com>
1526 * expr.c (cmpstr_optab, cmpmem_optab): New.
1527 * genopinit.c: Initialize them.
1528 * optabs.h: Declare them.
1529 * optabs.c (init_optabs): Clear them.
1530 (prepare_cmp_insn): Use cmpstr_optab and cmpmem_optab to find
1531 block memory compare insns, not conditional chains. Restructure
1532 the fallback generation of a call to memcmp/bcmp for better
1535 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
1537 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
1538 (mips_save_restore_fn): New typedef.
1539 (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
1540 (mips_set_frame_expr, mips_frame_set): Move above prologue code.
1541 (save_restore_insns): Remove, replacing with...
1542 (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
1543 (mips_save_reg, mips_restore_reg): New function.
1544 (mips_expand_prologue, mips_expand_epilogue): Rework.
1545 * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
1546 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
1547 (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
1549 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
1551 * config/mips/mips.c (mips_expand_prologue): Remove unused
1552 traversal of function arguments.
1554 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
1556 * doc/invoke.texi: Remove documentation of -mentry.
1557 * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
1558 (override_options, mips_save_reg_p): Remove handling.
1559 (compute_frame_size, mips_output_function_prologue): Likewise.
1560 (mips_expand_prologue, mips_expand_epilogue): Likewise.
1561 * config/mips/mips.h (mips_entry_string): Remove declaration.
1562 (TARGET_OPTIONS): Remove -mentry.
1563 * config/mips/mips16.S: Remove mention of -mentry.
1565 2003-10-06 Zack Weinberg <zack@codesourcery.com>
1567 * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
1568 (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
1569 (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
1570 (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
1571 (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
1572 (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
1573 (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
1574 (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
1575 (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
1576 (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
1577 (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
1578 (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
1579 (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
1580 (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
1581 (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
1582 (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
1583 (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
1584 (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
1585 (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
1586 (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
1587 (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
1588 (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
1589 (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
1590 (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
1591 (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
1592 (fixunstfti_libfunc): Delete.
1593 * optabs.h (struct optab_handlers): Break out of struct optab.
1594 (struct convert_optab, convert_optab, enum convert_optab_index,
1595 convert_optab_table, sext_optab, zext_optab, trunc_optab,
1596 sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
1597 sfloat_optab, ufloat_optab): New.
1598 (set_conv_libfunc): Prototype.
1599 (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
1600 (trunc_optab): Renamed btrunc_optab.
1601 * builtins.c (expand_builtin_mathfn): Update to match.
1602 * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
1603 (convert_optab_table, new_convert_optab, init_convert_optab)
1604 (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
1605 (set_conv_libfunc): New.
1606 (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
1607 (expand_float, expand_fix): Use new conversion optabs,
1608 not old insn code tables or long chains of ifs.
1609 (init_optabs): No need to clear old insn code tables.
1610 Initialize the new optabs, not the old libfunc array entries.
1611 Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
1612 * genopinit.c: Initialize conversion optabs, not the
1613 former insn code tables. Remove unnecessary casts.
1614 Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
1615 * expr.c (convert_move): Remove redundant check that
1616 to_real==from_real. Use the conversion optabs instead
1617 of long chains of tests of modes. Move partial-integer-mode
1618 interconversion above all integer conversion. Do not recurse
1619 on a value forced into a register in the original mode.
1621 * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
1622 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
1623 * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
1624 in new conversion optabs; do not reference the old libfunc
1625 array entries. No need to include libfuncs.h.
1627 2003-10-06 Roger Sayle <roger@eyesopen.com>
1629 * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
1630 point comparison sequence with a REG_EQUAL note that describes
1631 the comparison's semantics.
1633 2003-10-06 Roger Sayle <roger@eyesopen.com>
1635 * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
1636 of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
1638 2003-10-06 Roger Sayle <roger@eyesopen.com>
1639 Zack Weinberg <zack@codesourcery.com>
1641 * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
1642 instruction by using LCT_CONST and then calling emit_libcall_block
1645 2003-10-06 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
1647 PR optimization/11974
1648 * optabs.c (expand_unop): Promote libcall outmode according to
1651 2003-10-06 Zack Weinberg <zack@codesourcery.com>
1653 * real.h (REAL_MODE_FORMAT): New macro.
1654 * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
1655 * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
1656 * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
1657 * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
1658 * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
1659 directly to real_format_for_mode array, wherever possible.
1661 2003-10-06 Devang Patel <dpatel@apple.com>
1663 * dwarf2out.c (is_main_source): Remove variable.
1664 (dwarf2out_start_source_file): Do not check is_main_source.
1665 Do not reset is_main_source.
1666 (dwarf2out_init): Do not initialize is_main_source.
1668 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1670 * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
1671 (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
1672 introduced some multi-line prototypes.
1673 * fixinc/fixincl.x: Regenerate.
1675 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1677 * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
1678 * config/mips/mips.c (stack_operand): New predicate.
1679 * config/mips/mips.md: Use it for the destination of mips16 insns
1682 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1684 * config/mips/mips.md (*lowsi): Renamed from lowsi.
1685 (*lowdi): Likewise lowdi.
1686 (*lowsi_mips16, *lowdi_mips16): New patterns.
1687 * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
1688 mips16 CONSTANT_RELOC handling.
1689 (mips_delegitimize_address): Adjust for new sdata representation.
1691 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1693 * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
1694 skip any remaining register arguments.
1696 2003-10-06 Ulrich Weigand <uweigand@de.ibm.com>
1698 * reload.c (find_reloads_subreg_address): Use correct offset for
1699 paradoxical MEM subregs on big-endian targets.
1701 2003-10-06 Andrew Haley <aph@redhat.com>
1703 * tree.c (get_callee_fndecl): Call
1704 lang_hooks.lang_get_callee_fndecl.
1705 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
1706 (lhd_get_callee_fndecl): New.
1708 2003-10-06 Andrew Pinski <apinski@apple.com>
1710 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
1711 error in calculating the length of the string.
1712 (machopic_stub_name): Likewise.
1714 2003-10-06 Roger Sayle <roger@eyesopen.com>
1716 * optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note
1717 describing the return value of the comparison libcall to the
1718 REG_RETVAL instruction of the emitted sequence.
1720 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1722 PR optimization/12215
1723 * cse.c (cse_set_around_loop): Emit the move at the beginning
1724 of the next basic block for trapping sets.
1726 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1728 PR optimization/11637
1729 * combine.c (adjust_for_new_dest): New function to adjust the
1730 notes and LOG_LINKS when the dest of an insn has changed.
1731 (try_combine): Use it when deleting the first insn of a two-insn
1732 parallel or splitting a two-load parallel.
1734 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1736 * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
1737 if TARGET_EXPLICIT_RELOCS.
1739 2003-10-06 Mark Mitchell <mark@codesourcery.com>
1742 * Makefile.in (info): Use double-colon rules.
1744 (generated-manpages): Likewise.
1745 * configure.in: Do not create lang.info, lang.dvi, or
1746 lang.generated-manpages hooks.
1747 * configure: Regenerated.
1748 * objc/Make-lang.in (objc.info): Remove.
1750 (objc.generated-manpages): Remove.
1751 * doc/sourcebuild.texi: Update description of info, dvi, and
1752 generated-manpages hooks.
1754 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1756 * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
1758 2003-10-05 Andrew Pinski <apinski@apple.com>
1760 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
1761 errors in memcpy destinations.
1762 (machopic_stub_name): Likewise.
1764 2003-10-05 Andrew Pinski <apinski@apple.com>
1766 * config/darwin.c (machopic_non_lazy_ptr_name):
1767 Change strcat to memcpy and add length together.
1768 (machopic_stub_name): Likewise.
1770 2003-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
1772 * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
1773 signal trampoline codes.
1775 2003-10-05 Chris Demetriou <cgd@broadcom.com>
1777 * config/mips/mips.md (*divsf3): Move description of
1778 SB-1 F2 erratum from here to...
1779 (divsf3): Here. Disable if TARGET_FIX_SB1 is set and
1780 flag_unsafe_math_optimizations is not.
1782 2003-10-05 Aldy Hernandez <aldyh@redhat.com>
1784 * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
1785 TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
1787 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1789 * c-pretty-print.c: Fix comment typos.
1790 * c-pretty-print.h: Likewise.
1791 * calls.c: Likewise.
1792 * cfgloopmanip.c: Likewise.
1793 * cgraphunit.c: Likewise.
1794 * cppfiles.c: Likewise.
1795 * final.c: Likewise.
1796 * function.c: Likewise.
1797 * gcov-io.h: Likewise.
1799 * genoutput.c: Likewise.
1801 * postreload.c: Likewise.
1802 * reg-stack.c: Likewise.
1803 * regmove.c: Likewise.
1804 * sched-int.h: Likewise.
1805 * sched-rgn.c: Likewise.
1806 * simplify-rtx.c: Likewise.
1807 * tree-inline.c: Likewise.
1808 * config/m68hc11/m68hc11.h: Likewise.
1809 * config/mmix/mmix.c: Likewise.
1810 * config/mn10300/mn10300.md: Likewise.
1811 * config/sh/sh.h: Likewise.
1813 2003-10-05 Richard Henderson <rth@redhat.com>
1815 * tree-inline.c (remap_type): New.
1816 (remap_decl): Use it. Remap DECL_SIZE*.
1817 (copy_body_r): Use it.
1818 (walk_tree): Walk TREE_TYPE too.
1819 (copy_tree_r): Don't walk subtrees of types.
1820 * tree.c (variably_modified_type_p): Restructure. Consider integer
1821 types with non-const bounds variably modified.
1823 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1825 * doc/invoke.texi: Fix typos.
1827 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1829 * fold-const.c: Follow spelling conventions.
1830 * function.c: Likewise.
1831 * config/c4x/c4x.h: Likewise.
1832 * config/c4x/c4x.md: Likewise.
1833 * config/frv/frv.md: Likewise.
1834 * config/rs6000/aix.h: Likewise.
1835 * config/rs6000/linux64.h: Likewise.
1836 * config/xtensa/xtensa.c: Likewise.
1838 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1840 * c-pretty-print.c: Fix comment formatting.
1841 * cfglayout.c: Likewise.
1842 * cfgloopanal.c: Likewise.
1843 * cppcharset.c: Likewise.
1844 * dbxout.c: Likewise.
1845 * ggc-page.c: Likewise.
1847 * target.h: Likewise.
1849 2003-10-04 Kelley Cook <kelleycook@wideopenwest.com>
1851 * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
1853 2003-10-04 Nathanael Nerode <neroden@gcc.gnu.org>
1855 * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
1856 Convert to ISO C90 function declarations and definitions.
1858 2003-10-04 Zack Weinberg <zack@codesourcery.com>
1861 (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
1862 (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
1863 (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
1864 (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
1865 (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
1866 (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
1867 (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
1868 (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
1869 (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
1870 (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
1871 (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
1872 (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
1873 (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
1874 (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
1875 (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
1876 (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
1878 * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
1879 (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
1880 (le_optab, unord_optab): New.
1882 * optabs.c (prepare_float_lib_cmp): Rewrite. Get the libfuncs
1883 from the code_to_optab table, not a giant switch; use
1884 swap_condition; do widening only if a comparison function that
1885 we can call exists in a wider mode, not if a cmp_optab insn or
1886 libfunc exists in a wider mode; call protect_from_queue
1887 exactly once on each operand.
1888 (init_optabs): Initialize the new optabs, not the deleted libfuncs.
1890 * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
1891 * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
1892 Set floating point comparison libfuncs using set_optab_libfunc
1893 on the appropriate optab.
1895 * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
1896 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
1897 selector conditionals.
1899 2003-10-04 Stephane Carrez <stcarrez@nerim.fr>
1901 * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
1902 identical to m68hc12 as far as libraries are concerned.
1904 2003-10-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1907 * c-typeck.c (convert_for_assignment): Issue an error for
1908 array to pointer assignment after default conversion.
1909 (digest_init): Likewise.
1911 2003-10-04 Fariborz Jahanian <fjahanian@apple.com>
1913 * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
1915 2003-10-03 Gerald Pfeifer <gerald@pfeifer.com>
1917 * doc/extend.texi (Function Attributes): Fix title of GNU C
1918 Preprocessor manual.
1919 (C++ Extensions): Fix reference to "Predefined Macros" in the
1920 GNU C Preprocessor manual.
1922 2003-10-04 Richard Earnshaw <reanrsha@arm.com>
1924 * doc/extend.texi: Document how GCC estimates and relies on the size
1927 2003-10-04 Richard Sandiford <rsandifo@redhat.com>
1929 * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
1930 arguments downward for big-endian o64.
1932 2003-10-03 Robert Bowdidge <bowdidge@apple.com>
1934 * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
1935 PCH generation, avoiding too-frequent flushes when writing to NFS
1938 2003-10-03 Ziemowit Laski <zlaski@apple.com>
1940 * objc/objc-act.c (lookup_category): Mark as 'inline'.
1942 2003-10-03 Alexander Malmberg <alexander@malmberg.org>
1943 Ziemowit Laski <zlaski@apple.com>
1945 * objc/objc-act.c (add_method_to_hash_list, lookup_category):
1947 (lookup_method_in_hash_lists): New parameter indicating whether
1948 we are messaging 'Class' or 'id'.
1949 (check_duplicates): Likewise; do not assume all methods will
1950 be either class or instance methods.
1951 (generate_category, finish_class): Use lookup_category().
1952 (add_method): Use add_method_to_hash_list(); insert instance
1953 methods of root classes into the global class method hash table.
1954 (add_category): Use lookup_category(); avoid constructing
1955 duplicate categories.
1956 (really_start_method): Add method to corresponding @interface,
1957 if not already there (and if the @interface exists).
1958 (finish_message_expr, finish_objc): Adjust calls to
1961 2003-10-03 Roger Sayle <roger@eyesopen.com>
1963 PR optimization/9325, PR java/6391
1964 * fold-const.c (fold_convert): For floating point to integer
1965 conversions, return the maximum/minimum representable integer
1966 value if the real constant overflows the destination type.
1967 * tree.c (real_value_from_int_cst): Allow the type to be NULL,
1968 meaning don't truncate the result to a floating point mode.
1969 Simplify the logic by calling real_from_integer directly.
1970 * simplify-rtx.c (simplify_unary_operation): Implement the
1971 same semantics for folding floating point to integer conversions
1974 2003-10-03 Chris Demetriou <cgd@broadcom.com>
1976 * config/mips/mips.c (mips_emit_prefetch): Restructure
1977 to avoid use of arrays, handle indexed prefetch.
1978 * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
1979 (ISA_HAS_PREFETCHX): New deffine.
1980 * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
1982 (prefetch_indexed_di, prefetch_indexed_si): New insns.
1984 2003-10-03 Jeff Sturm <jsturm@one-point.com>
1985 Roger Sayle <roger@eyesopen.com>
1987 PR optimization/12289
1988 * calls.c (emit_call_1): Pretend to have popped the arguments
1989 to noreturn and longjmp functions instead of ignoring them.
1990 (expand_call): Don't adjust stack_pointer_dela while
1991 inhibit_defer_pop is set.
1993 2003-10-03 Andreas Schwab <schwab@suse.de>
1996 * configure.in: Check for libunwind on the host only if building
1998 * configure: Regenerated.
2000 2003-10-03 Paolo Carlini <pcarlini@unitus.it>
2002 * unwind-pe.h (read_encoded_value_with_base): Constify u and
2003 its inizialization cast.
2005 2003-10-03 Richard Sandiford <rsandifo@redhat.com>
2008 * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
2010 2003-10-02 Mark Mitchell <mark@codesourcery.com>
2012 PR optimization/12180
2013 * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
2014 functions containing calls to __builtin_next_arg.
2016 2003-10-02 Chris Demetriou <cgd@broadcom.com>
2018 * config/mips/mips.c (mips_emit_prefetch): Use operand 3
2019 in instructions being output.
2020 * config/mips/mips.md (prefetch_si_address): Change third
2021 operand's constraint letter to 'I'.
2022 (prefetch_di_address): Likewise.
2023 (prefetch_si, prefetch_di): Set third operand to const0_rtx.
2025 2003-10-02 Zack Weinberg <zack@codesourcery.com>
2027 * system.h: Poison macros obsoleted by earlier patch.
2028 * config/cris/cris.c: C90-ify a function definition.
2030 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
2033 * combine.c (make_field_assignment): Check whether rtx's code
2034 is CONST_INT before using INTVAL.
2036 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
2038 * cgraph.c (cgraph_node): Use INSERT instead of 1 in
2039 htab_find_slot_with_hash.
2040 (cgraph_node_for_identifier): Use NO_INSERT.
2041 (cgraph_remove_node): Use NO_INSERT.
2042 (cgraph_varpool_node): Use INSERT.
2043 (cgraph_varpool_node_for_identifier): Use NO_INSERT.
2045 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
2047 Waldek Hebisch <hebisch@math.uni.wroc.pl>
2049 * varasm.c (compare_constant): Fix thinko.
2051 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
2053 * config/frv/frv.c (frv_issue_rate): New function.
2054 (frv_pack_insns): Use it.
2055 (TARGET_SCHED_ISSUE_RATE): Define.
2057 2003-10-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
2059 * config/mcore/mcore.c: Convert to ISO C90 function declarations
2061 * config/mcore/mcore.h: Likewise.
2062 * config/mcore/mcore-protos.h: Likewise.
2064 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
2066 * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
2067 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
2069 2003-10-01 Per Bothner <pbothner@apple.com>
2071 * c-lex.c (src_line): Remove unneeded static variable.
2072 (cb_line_change): Set input_line directly, instead of src_line.
2073 (get_non_padding_token): We no longer need to compensate for the
2074 "horrible things" the C++ front-end does with the current line number,
2076 * cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change
2077 callback even when popping the main file.
2078 * c-lex.c (fe_file_change): Handle a NULL new_map.
2079 * fix-header.c (cb_file_change): Likewise.
2080 * c-ppoutput.c (pp_file_change): Likewise.
2082 * cppinit.c (cpp_read_main_file): Split into two functions:
2083 Distribute _cpp_stack_file call over the two functions.
2084 (cpp_find_main_file): New function.
2085 Don't call _cpp_do_file_change even if working_directory flag set.
2086 (cpp_push_main_file): New function.
2087 * cppfiles.c (_cpp_find_failed): New helper function.
2088 (find_file): Made non-static and renamed to _cpp_find_file.
2089 (_cpp_stack_file): No longer needed. But note the following.
2090 (stack_file): Made non-static and renamed to _cpp_stack_file.
2091 * fix-header.c (cpp_read_main_file): Replace cpp_read_main_file
2092 call with calls to cpp_find_main_file and cpp_push_main_file.
2093 (search_path_head): If there is no current buffer, use main_file.
2094 * cpphash.h: Update function declarations.
2095 * cpplib.h: Update function declarations.
2097 * c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
2098 (c_common_parse_file): No longer need to call cpp_read_main_file
2099 when file_index > 0 (as in multi-file or server compiation).
2100 (finish_options): Change to <built-in> is an LC_ENTER, not LC_RENAME
2101 as this now happens before cpp_push_main_file.
2102 (push_command_line_include): When done with options, pass LC_LEAVE
2103 instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
2104 (fe_file_change): Handle NULL new_map, and simplify.
2105 * cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed
2106 08-28 change, since we're never called with a NULL buffer.
2107 (_cpp_lex_direct): Likewise.
2108 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
2109 Return false if buffer is NULL at end.
2111 * cpplex.c (_cpp_get_fresh_line): Return value now just depends on
2112 whether pfile->buffer is NULL after pop, ignoring return_at_eof.
2113 * cpphash.h (struct cpp_buffer): Remove unused return_at_eof field.
2114 * cpplib.c (cpp_push_buffer): Since we no longer set return_at_eof,
2115 remove the unused return_at_eof parameter.
2116 * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
2117 Update callers of cpp_push_buffer.
2119 2003-10-01 Zack Weinberg <zack@codesourcery.com>
2121 * target.h (init_libfuncs): New hook.
2122 * target-def.h: Default TARGET_INIT_BUILTINS and
2123 TARGET_INIT_LIBFUNCS to hook_void_void. Add
2124 TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
2125 * builtins.c (default_init_builtins): Delete.
2126 * expr.h (default_init_builtins): Delete prototype.
2127 * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
2128 Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
2129 Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
2130 DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
2131 MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
2132 and UMODDI3_LIBCALL,
2134 * Makefile.in (optabs.o): Depends on target.h.
2135 * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
2136 * optabs.c: Include target.h.
2137 (prepare_float_lib_cmp): No need for #ifdef around use of
2138 FLOAT_LIB_COMPARE_RETURNS_BOOL.
2139 (set_optab_libfunc): New function.
2140 (init_optabs): Delete use of all *_LIBCALL defines.
2141 Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
2142 * optabs.h: Prototype set_optab_libfunc.
2144 * config.gcc: Remove all references to pa/long_double.h,
2145 ia64/hpux_longdouble.h, and gofast.h.
2146 (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
2147 to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
2149 * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
2150 * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
2151 * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
2152 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
2153 * config/sparc/sparc.c, config/vax/vax.c:
2154 Provide a definition for TARGET_INIT_LIBFUNCS. Where
2155 necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
2157 * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
2158 * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
2159 * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
2160 * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
2161 * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
2162 * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
2163 * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
2164 * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
2165 INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
2167 * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
2168 Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
2169 * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
2170 HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
2171 * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
2173 * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
2174 * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
2175 SUN_INTEGER_MULTIPLY_64 to 0.
2176 * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
2177 SUN_INTEGER_MULTIPLY_64 to 1.
2178 * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
2179 SUN_INTEGER_MULTIPLY_64 to 0.
2180 * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
2181 Define US_SOFTWARE_GOFAST.
2182 * config/vax/vax.h: Default TARGET_ELF to 0.
2183 * config/vax/elf.h: Redefine TARGET_ELF to 1.
2185 * config/gofast.h: Don't define any macros here. Provide one
2186 static function, gofast_maybe_init_libfuncs, which does what
2187 INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
2188 is already defined. Do not clear negation libfuncs. Do
2189 not mess with HFmode, XFmode, or TFmode libfuncs.
2191 * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
2193 2003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
2196 * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
2198 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2200 * config/mips/xm-iris5.h: Remove, unnecessary.
2201 * config.build (mips-sgi-irix5*): Remove.
2202 (mips-sgi-irix6*o32): Likewise.
2203 * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
2204 (mips-sgi-irix5cross64): Likewise.
2205 (mips-sgi-irix5*): Likewise.
2206 * config.host (mips-sgi-irix5*): Remove.
2207 (mips-sgi-irix6*o32): Likewise.
2209 2003-10-01 Zack Weinberg <zack@codesourcery.com>
2211 * dbxout.c (dbxout_fptype_value): Delete.
2212 (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
2214 2003-10-01 Alexandre Oliva <aoliva@redhat.com>
2216 * output.h (compute_reloc_for_constant): Declare.
2217 * varasm.c (compute_reloc_for_constant): Extract from...
2218 (output_addressed_constants): ... here. Adjust all callers.
2220 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2222 * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
2223 * configure: Rebuilt.
2225 2003-10-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2227 * fold-const.c (make_range): When handling unsigned, don't reverse
2228 range if high bound is zero.
2230 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2232 * config/frv/frv.h (PREDICATE_CODES): Added
2233 condexec_si_media_operator, condexec_sf_add_operator and
2234 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
2235 and condexec_sf_unary_operator.
2237 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2239 * aclocal.m4: Add ultrix* to /dev/zero blacklist.
2240 * configure: Rebuilt.
2242 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2244 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
2246 * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
2248 2003-09-23 David S. Miller <davem@redhat.com>
2250 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
2252 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
2254 2003-10-01 Steven Bosscher <steven@gcc.gnu.org>
2256 * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
2257 C90 function declarations and definitions.
2259 2003-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
2261 * config.gcc (cris-*-linux*): Revert mistaken commit.
2263 2003-10-01 Eric Botcazou <ebotcazou@libertysurf.fr>
2265 PR optimization/11753
2266 * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
2267 the length in the non-V9 case.
2269 2003-09-30 Richard Henderson <rth@redhat.com>
2271 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
2272 DWARF_ALT_FRAME_RETURN_COLUMN.
2273 * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
2274 (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
2275 (uw_frame_state_for): Return end-of-stack for null return address.
2276 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
2278 * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
2279 (alpha_expand_prologue): Store a zero for it.
2280 (alpha_expand_epilogue): Don't reload it.
2281 * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
2282 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
2283 for the sigframe return address.
2285 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
2287 * sdbout.c: Convert to ISO C90 prototypes.
2288 * objc/objc-act.c: Likewise.
2290 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
2292 * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
2293 * config/i386/winnt.c: Likewise.
2294 * config/i386/cygming.h: Likewise.
2296 2003-09-30 Kazu Hirata <kazu@cs.umass.edu>
2298 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
2299 (A ^ B) - B for any B.
2301 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
2303 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
2304 powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
2306 2003-09-30 Richard Earnshaw <rearnsha@arm.com>
2308 * arm/ieee754-sf.S: Tidy formatting.
2310 2003-09-30 Nicolas Pitre <nico@cam.org>
2312 * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
2314 (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
2315 (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
2316 added better divisor alignment in the other case.
2317 (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
2318 (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
2319 macros above, add fast exits for divisor >= dividend, etc.
2321 2003-09-30 Nicolas Pitre <nico@cam.org>
2323 * arm/ieee754-df.S: Split compilation of fixunsdfsi from
2325 * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
2327 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
2329 * config.gcc: Default use_fixproto to 'no'.
2331 2003-09-30 Richard Sandiford <rsandifo@redhat.com>
2333 PR optimization/12345
2334 * config/mips/mips-protos.h (mips_restore_gp): Remove.
2335 (mips_gp_save_slot): Declare.
2336 * config/mips/mips.c (mips_restore_gp): Remove in favor of...
2337 (mips_gp_save_slot): ...this new function.
2338 * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
2339 and mips_output_move to generate the output template.
2340 (call_internal): Force splitting if TARGET_SPLIT_CALLS. Don't emit
2341 a gp load after a noreturn call. Load the gp using a move rather
2342 than an exception_receiver pattern.
2343 (call_value_internal, call_value_multiple_internal): Likewise.
2344 (call_split, call_value_split, call_value_multiple_split): Clobber $28.
2346 2003-09-30 Carlo Wood <carlo@alinoe.com>
2349 * cfglayout.c (insn_scope): Use prologue_locator and
2350 epilogue_locator; return the outer function scope for
2351 pro- and epilogue insns.
2353 2003-09-29 Zack Weinberg <zack@codesourcery.com>
2355 * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
2356 REAL_TYPEs based on the bitsize of the type's mode, not the
2359 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2361 * dwarf2out.c (default_eh_frame_section): Split into ...
2362 (named_section_eh_frame_section, collect2_eh_frame_section): ... new
2364 * output.h (named_section_eh_frame_section): Declare.
2365 (collect2_eh_frame_section): Likewise.
2367 2003-09-29 Zack Weinberg <zack@codesourcery.com>
2369 * real.c (real_sqrt): Use get_canonical_qnan directly.
2371 * dwarf2out.c (add_const_value_attribute): Use real_to_target.
2373 * varasm.c (assemble_real): Use real_to_target directly,
2374 calculate the number of significant elements of the result
2375 array and write them out in a loop, instead of using a giant
2376 switch statement to pick the correct REAL_VALUE_TO_TARGET_*
2379 2003-09-29 Jan Hubicka <jh@suse.cz>
2382 * varasm.c (notice_global_symbol): Discard external symbols.
2384 PR optimization/12286
2385 * gcov-io.c (gcov_read_words): Fix memmove call.
2386 * profile.c (compute_branch_probabilities): Add extra sanity checks.
2388 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2390 * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
2393 * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
2394 wildcards which explicitly match micro versions.
2395 * fixinc/fixincl.x: Regenerate.
2397 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
2399 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
2400 (A ^ B) - B, where B is any power of 2 minus 1.
2402 2003-09-29 Jan Hubicka <jh@suse.cz>
2404 * libgcov.c (gcov_exit): Fix two pastos.
2406 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
2408 * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
2409 define_split immediately below to form define_insn_and_split.
2411 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
2413 * config/h8300/h8300.md (*tstsi_variable_bit): New.
2414 (*tstsi_variable_bit_qi): Likewise.
2416 2003-09-28 Phil Edwards <phil@codesourcery.com>
2418 * doc/cppopts.texi: Use 'dashMP' instead of '-MP' as a cross-
2421 2003-09-28 Richard Henderson <rth@redhat.com>
2423 * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
2424 file and line separately.
2426 2003-09-28 Ulrich Weigand <uweigand@de.ibm.com>
2428 * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
2429 "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
2430 "*subdi3_borrow_cconly"): New insns.
2431 ("*addsi3_sub", "*subsi3_sub"): Remove.
2432 ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
2433 ("*subsi3_cc"): Fix op_type attribute.
2435 2003-09-28 Richard Henderson <rth@redhat.com>
2437 * stmt.c (expand_asm_operands): Take a location_t, instead of
2438 individual file and line.
2439 * c-typeck.c (c_expand_asm_operands): Likewise.
2440 * tree.h (expand_asm_operands): Update decl.
2441 * c-common.h (c_expand_asm_operands): Likewise.
2442 * c-semantics (genrtl_asm_stmt): Update call.
2444 2003-09-28 Philip Blundell <philb@gnu.org>
2446 * config/arm/arm.c (legitimize_pic_address): Check
2447 SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
2448 (arm_assemble_integer): Likewise.
2450 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
2452 * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
2453 config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
2455 Convert to ISO C90 function declarations and definitions.
2457 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
2459 * config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
2460 Convert to ISO C90 function declarations and definitions.
2462 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
2464 * config/mips/mips.c (mips_constant_info): Add reloc field.
2465 (mips_classify_constant): Initialize it. Always set SYMBOL to the
2466 underlying symbol, not to an unspec.
2467 (mips_delegitimize_address, print_operand): Clean up accordingly.
2469 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
2471 * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
2472 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
2473 * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
2474 (mips_classify_constant): Use it.
2475 (mips_splittable_symbol_p): Add an offset argument.
2476 (mips_classify_address): Adjust call accordingly.
2477 (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
2478 than a relocation unspec. Update call to mips_splittable_symbol_p.
2479 Generalize the code that copes with symbols + invalid offsets.
2480 (print_operand): Allow '%R' to be applied to small data addresses.
2481 (mips_reloc_string): Remove RELOC_GPREL16.
2482 (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg. Return $gp
2483 for TARGET_EXPLICIT_RELOCS. Return null if we can't use gp-relative
2484 relocation operators.
2485 * config/mips/mips.md (RELOC_GPREL16): Remove. Shuffle other reloc
2486 constants accordingly.
2488 2003-09-27 Roger Sayle <roger@eyesopen.com>
2490 * toplev.c (flag_evaluation_order): New global variable.
2491 * flags.h (flag_evaluation_order): Prototype here.
2492 * expr.c (expand_operands): If we need to preserve observable
2493 evaluation order, protect exp1 from clobbering exp0's result.
2495 2003-09-28 Andreas Jaeger <aj@suse.de>
2497 * c-decl.c (finish_function): Convert definition to ISO C90.
2498 * ifcvt.c (mark_loop_exit_edges): Likewise.
2499 * ra-rewrite.c (emit_colors): Likewise.
2501 2003-09-27 Nathanael Nerode <neroden@gcc.gnu.org>
2503 * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
2504 * config.gcc (arm*-*-uclinux*): Disable fixproto.
2505 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
2506 powerpc-*-eabialtivec*): Disable fixproto.
2508 2003-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
2510 PR optimization/12340
2511 * loop.h (struct induction): Document the new semantics
2512 of the 'same' field for bivs.
2513 * unroll.c (biv_total_increment): Don't count the same
2514 biv increment several times.
2515 (loop_iterations) [GENERAL_INDUCT]: Likewise.
2517 2003-09-27 Graham Stott <graham.stott@btinternet.com>
2519 * unroll.c (loop_interations)[GT]: Add missing break.
2521 2003-09-27 Kelley Cook <kcook@gcc.gnu.org>
2523 * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
2524 config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
2525 config/dbxelf.h, config/elfos.h, config/fp-bit.h,
2526 config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
2527 config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
2528 config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
2529 config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
2530 config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
2531 config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
2532 config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
2533 config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
2534 config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
2535 config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
2536 config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
2537 config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
2538 config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
2539 config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
2540 config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
2541 config/alpha/xm-vms.h, config/arc/arc-modes.def,
2542 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
2543 config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
2544 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
2545 config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
2546 config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
2547 config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
2548 config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
2549 config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
2550 config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
2551 config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
2552 config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
2553 config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
2554 config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
2555 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
2556 config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
2557 config/i960/i960-c.c, config/i960/i960-coff.h,
2558 config/i960/i960-modes.def, config/i960/i960-protos.h,
2559 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
2560 config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
2561 config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2562 config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
2563 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
2564 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
2565 config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
2566 config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
2567 config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
2568 config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
2569 config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
2570 config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
2571 config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
2572 config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
2573 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
2574 config/mcore/mcore-protos.h, config/mcore/mcore.c,
2575 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
2576 config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
2577 config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
2578 config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
2579 config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
2580 config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
2581 config/mips/vr.h, config/mn10300/linux.h,
2582 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
2583 config/mn10300/mn10300.h, config/mn10300/mn10300.md,
2584 config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
2585 config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
2586 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
2587 config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
2588 config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
2589 config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
2590 config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
2591 config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
2592 config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
2593 config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
2594 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
2595 config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
2596 config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
2597 config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
2598 fixinc/fixinc.svr4: GNU CC -> GCC.
2600 2003-09-26 Loren James Rittle <ljrittle@acm.org>
2602 * objc/objc-act.c (tm_p.h): Tweak order.
2603 * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
2605 2003-09-26 Nathanael Nerode <neroden@gcc.gnu.org>
2607 * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
2608 Include t-slibgcc-elf-ver and t-linux in tmake_file.
2609 * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
2611 * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
2613 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
2614 sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
2616 * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
2618 2003-09-26 Loren James Rittle <ljrittle@acm.org>
2620 * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
2621 * objc/objc-act.c (tm_p.h): Include.
2623 2003-09-26 Per Bothner <pbothner@apple.com>
2625 * dbxout.c (dbxout_typedefs): Output typedefs in forward order.
2626 No longer any need to reverse by recursion.
2628 2003-09-26 Roger Sayle <roger@eyesopen.com>
2629 Richard Henderson <rth@redhat.com>
2631 PR optimization/11741
2632 * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
2633 appropriate set to match that in hash_scan_insn. Fall back to
2634 the original copy method, if we can't validate changing insn.
2635 (pre_delete): Only delete instructions that have a single_set,
2636 instead of aborting when we encounter an PARALLEL insn with more
2639 2003-09-26 Andreas Krebbel <krebbel1@de.ibm.com>
2641 * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
2642 ("builtin_longjmp"): Insn deleted.
2643 ("save_stack_nonlocal"): Save literal pool base pointer behind
2644 backchain and stack pointer.
2645 ("restore_stack_nonlocal"): Restore literal pool base pointer.
2646 * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
2647 the stack save area for the nonlocal goto case.
2649 2003-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2652 * pa.c (output_bvb): Fix typo.
2654 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
2656 * expmed.c (store_bit_field): Don't search for an integer mode
2657 unless we need the result.
2659 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
2661 * expr.c (emit_move_insn_1): If there is no move pattern for the
2662 original mode, try using a pattern for the corresponding integer mode.
2664 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
2667 * combine.c (if_then_else_cond): Tighten mode check.
2669 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2671 * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
2672 'struct _cpp_strbuf'.
2674 * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2675 config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
2676 config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
2677 config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
2678 config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
2679 config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
2680 config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
2681 config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
2682 config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
2683 "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
2684 * config/i386/i386-aout.h, config/i386/i386-coff.h,
2685 config/i386/i386-interix.h, config/i386/i386-interix3.h,
2686 config/i386/i386-modes.def, config/i386/i386-protos.h,
2687 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
2688 config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
2689 config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
2690 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
2691 config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
2692 "GNU compiler" -> GCC.
2693 * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
2694 config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
2695 config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
2696 config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
2697 config/i386/freebsd-aout.h, config/i386/freebsd.h,
2698 config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
2700 2003-09-25 Kelley Cook <kelleycook@wideopenwest.com>
2702 * cgraph.c (dump_cgraph): Don't output newline before dump. Add in
2703 "local" to the callgraph dump. Output "after inlining" earlier.
2704 * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
2705 callgraph dumps. Correct misspellings.
2706 (cgraph_decide_inlining): Output number of insns before inlining.
2707 Output the calling function into which a function is inlined.
2708 (cgraph_decide_small_functions): Format dump file like always_inline.
2710 2003-09-25 Loren James Rittle <ljrittle@acm.org>
2712 * config/i386/i386.h (ix86_return_in_memory): Add prototype.
2714 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
2716 * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
2717 FPR slots in the save area.
2718 (s390_emit_epilogue): Likewise.
2720 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
2722 * cgraph.h (cgraph_remove_edge): Declare.
2723 * cgraph.c (cgraph_remove_edge): Make extern.
2724 * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
2725 instead of cgraph_remove_call.
2727 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
2729 * objc/objc-act.c (gen_declaration_1): Fix printf format.
2731 2003-09-25 Richard Earnshaw <rearnsha@arm.com>
2733 * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
2736 2003-09-25 Ziemowit Laski <zlaski@apple.com>
2738 * config/darwin-protos.h (objc_image_info_section):
2741 2003-09-25 Ziemowit Laski <zlaski@apple.com>
2743 * Makefile.in (stub-objc.o): Depend on $(GGC_H).
2745 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2747 * config.gcc: Get rid of more gratuitious 'x'es. Actually allow
2748 tsc701 as a --with-cpu, --with-tune setting for sparc.
2750 2003-09-25 Ziemowit Laski <zlaski@apple.com>
2752 * c-parse.in (objc_try_stmt): Do not specify a %type.
2754 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2756 * config.gcc: New 'widely ported system' clause for rtems.
2757 Set thread file there, not in individual clauses.
2759 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
2762 * config/mips/mips.c (mips_va_arg): Handle arguments that must be
2763 passed on the stack.
2765 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2767 * config.gcc (widely ported systems section): Mostly alphabetize
2768 by system. Comment the case where we can't.
2769 * config.gcc (widely ported systems section): Reindent and clean up.
2771 * config.gcc: Remove some unnecessary uses of 'x' in case statements.
2772 Actually allow ep9312 as an arm --with-arch setting.
2774 * config.gcc (*-hpux11): Disable fixproto.
2776 2003-09-24 Phil Edwards <phil@codesourcery.com>
2779 * gcc/cppfiles.c (pch_open_file): Return based on combined
2780 result of all files.
2781 (validate_pch): Return validate flag for current file.
2783 2003-09-24 Roger Sayle <roger@eyesopen.com>
2786 * fold-const.c (tree_swap_operands_p): Only reorder operands when
2787 one of the operands is constant.
2789 2003-09-24 Ziemowit Laski <zlaski@apple.com>
2791 MERGE OF objc-improvements-branch into MAINLINE:
2792 * Makefile.in (C_OBJS): Add in stub-objc.o.
2793 (c-parse.y): Change sed demarcations to begin with '@@'.
2794 (stub-objc.o): New rule.
2795 * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
2796 flag_replace_objc_classes): New flags.
2797 * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
2798 RID_AT_SYNCHRONIZED): New keywords.
2799 (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
2800 flag_replace_objc_classes): New flags.
2801 (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
2802 objc_comptypes, objc_message_selector, lookup_objc_ivar,
2803 get_current_scope, objc_mark_locals_volatile): New prototypes,
2804 some moved from c-tree.h.
2805 * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
2806 (finish_decl): Adjust where objc_check_decl() gets called.
2807 * c-lang.c (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
2808 objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
2809 * c-opts.c (c_common_handle_option): Add handling for flag_nil_receivers,
2810 flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
2811 * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
2812 '@@end_ifc', respectively.
2813 (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
2814 (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
2815 objc_finally_block): New rules.
2816 (component_decl_list2): Clean up semantic action for @defs construct.
2817 (component_decl, c99_block_start): Remove call to add_objc_decls().
2818 (poplevel): Add call to objc_clear_super_receiver().
2819 (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
2821 (classdef, methodprotolist): Clean up/simplify.
2822 (methodprotolist2): Eliminate.
2823 (methodproto): Call add_method() instead of add_class_method() and
2824 add_instance_method().
2825 (receiver): Add TYPENAME production.
2826 (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
2827 (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
2829 * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
2830 objc_comptypes, objc_message_selector)
2831 * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
2832 struct and pointer types.
2833 (build_c_cast): Do not discard ObjC protocol qualifiers.
2834 (convert_for_assignment): Cache result of comp_target_types() instead
2835 of calling it more than once.
2836 * c.opt (fnext-runtime): Update description string.
2837 (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
2838 New ObjC/ObjC++-specific flags.
2839 * function.h (GCC_FUNCTION_H): Header guard.
2840 * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
2841 * stub-objc.c: New file, to be used to satisfy references to ObjC
2842 functions by the C and C++ front-ends.
2843 * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
2844 * config/darwin.h (FUNCTION): Add in_objc_image_info.
2845 (SECTION_FUNCTION): Add objc_image_info_section.
2846 * doc/invoke.texi: Link to GCC web site for Objective-C information.
2847 (-fconstant-string-class): Update documentation.
2848 (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
2849 -fzero-link): New documentation.
2850 * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
2852 * objc/lang-specs.h (@objective-c-header): Fix -E spec.
2853 * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
2854 throughout; provide casts for return values from memory allocation
2855 functions (xmalloc, alloca, ggc_alloc, etc.).
2856 (OBJC_VOID_AT_END): New macro.
2857 (rtl.h): Do not #include any more.
2858 (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
2859 (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
2860 TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
2861 TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
2862 TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
2863 (struct val_stack, catch_count_stack, exc_binding_stack, val_stack_push,
2864 val_stack_pop): New.
2865 (objc_check_decl): Fix precondition for error message, along with
2867 (lookup_and_install_protocols): Remove nonexistent protocols from
2868 protocol list instead of returning error_mark_node.
2869 (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
2870 (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
2871 (synth_module_prologue): General clean-up; construct NeXT-specific
2872 runtime API prototypes if needed.
2873 (build_string_class_template): Remove.
2874 (check_string_class_template, string_layout_checked): New.
2875 (build_objc_string_object): Generalize to work with
2876 -fconstant-string-class.
2877 (build_objc_symtab_template): Fix layout for the NeXT runtime.
2878 (build_metadata_decl): New.
2879 (forward_declare_categories): Call build_metadata_decl() instead of
2880 create_builtin_decl() et al.
2881 (build_module_descriptor): Use OBJC_VOID_AT_END instead of
2883 (build_selector_reference_decl, build_class_reference_decl,
2884 build_objc_string_decl): Do not set TREE_READONLY.
2885 (get_proto_encoding): Do not call hack_method_prototype().
2886 (get_class_reference): Add failure mode for invalid class names;
2887 support -fzero-link; defer if in an ObjC++ template declaration.
2888 (objc_declare_alias, objc_declare_class): Fix up duplicate name
2889 lookup; check for global scope if in ObjC++.
2890 (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
2891 RECORD_TYPE, IDENTIFIER_NODE, etc.)
2892 (objc_is_id): Removed.
2893 (objc_is_object_ptr): New function.
2894 (get_class_ivars_from_name): New function, used for @defs construct.
2895 (get_class_ivars): Add option to return raw ivars; create a
2896 ClASS_OWN_IVARS list for each class as needed.
2897 (objc_enter_block, objc_exit_block, objc_declare_variable,
2898 objc_build_throw_stmt, val_stack_push, val_stack_pop,
2899 objc_build_try_enter_fragment, objc_build_extract_expr,
2900 objc_build_try_exit_fragment, objc_build_extract_fragment,
2901 objc_build_try_prologue, objc_build_try_epilogue,
2902 objc_build_catch_stmt, objc_build_catch_epilogue,
2903 objc_build_finally_prologue, objc_build_finally_epilogue,
2904 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
2905 objc_build_synchronized_epilogue, build_objc_exception_stuff):
2907 (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
2909 (build_private_template): Fix up calls to get_class_ivars().
2910 (offset_is_register, forwarding_offset): Remove.
2911 (objc_method_parm_type, objc_encoded_type_size): New functions.
2912 (encode_method_prototype): Simplify to no longer depend on
2913 back-end information.
2914 (build_tmp_function_decl_xxx, build_tmp_function_decl,
2915 hack_method_prototype): Removed.
2916 (generate_protocol_references): Remove calls to
2917 build_tmp_function_decl().
2918 (generate_protocols): Adjust calls to encode_method_prototype().
2919 (build_class_template): Generate sel_id' and 'gc_object_type' fields
2920 for the NeXT runtime.
2921 (synth_forward_declarations): Call build_metadata_decl().
2922 (check_ivars): Check that the number of ivars matches also.
2923 (build_super_template): Modify super_type directly; disable debugging
2924 output while generating decl.
2925 (build_ivar_list_initializer): Skip list elements that are not
2927 (ivar_list_length): New function.
2928 (generate_ivar_lists): Call ivar_list_length() instead of list_length()
2929 and encode_method_prototype() instead of encode_method_def().
2930 (build_shared_structure_initializer): Generate 'sel_id' field for
2932 (generate_category): Do not set TREE_USED.
2933 (build_keyword_selector): Ditto; transform into a function argument
2935 (get_arg_type_list): If there are no user-specified arguments, use
2936 '...'; use OBJC_VOID_AT_END.
2937 (check_duplicates): Add a parameter indicating whether methods or
2938 selectors are being checked.
2939 (receiver_is_class_object): Add parameters indicating whether
2940 receiver is 'self' or 'super'; robustify.
2941 (build_message_expr): Defer call to finish_message_expr() if
2942 inside an ObjC++ template.
2943 (lookup_method_in_hash_lists): New function.
2944 (finish_message_expr): Complete rewrite/fix.
2945 (build_objc_method_call): Ditto; factor out commonalities between
2946 the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
2947 messenger variants on the NeXT.
2948 (lookup_instance_method_static, lookup_class_method_static):
2949 Fold into a single lookup_method_static() function with an
2950 additional parameter.
2951 (add_class_method, add_instance_method): Fold into a single
2952 add_method() function with an additional parameter.
2953 (add_category): Make duplicate categories a hard error in ObjC++.
2954 (add_instance_variable): Properly handle unnamed ivars, arrays of
2955 zero or no size and bitfields. In ObjC++, check for nontrivial
2956 C++ class instances.
2957 (is_public): Allow C functions to access non-@public ivars, with
2959 (start_class): Move common initializations to
2960 synth_module_prologue(); check for global scope if in ObjC++.
2961 (continue_class): Fix calls to finish_struct().
2962 (objc_declare_protocols, start_protocol): Check for global scope
2964 (encode_pointer): Encode 'BOOL *' specially on the NeXT.
2965 (encode_aggregate_within): Rewrite to properly distinguish
2966 struct tags from typedefs in both ObjC and ObjC++.
2967 (encode_bitfield, encode_complete_bitfield): Remove.
2968 (encode_next_bitfield, encode_gnu_bitfield): New functions.
2969 (encode_field_decl): Call encode_next_bitfield() or
2970 encode_gnu_bitfield() as needed.
2971 (synth_self_and_ucmd_args): New function.
2972 (start_method_def): Use it.
2973 (objc_types_are_equivalent): New function.
2974 (comp_proto_with_proto): Use it instead of comptypes(), since
2976 (really_start_method): Use lookup_method_static() instead of
2977 lookup_class_method_static() and lookup_instance_method_static();
2978 Emit 'extern "C"' if in ObjC++ mode.
2979 (add_objc_decls): Removed.
2980 (UOBJC_SUPER_scope): New variable.
2981 (get_super_receiver): Move construction of 'super' from
2982 add_objc_decls(); remove dependency on struct objc_class.
2983 (encode_method_def): Removed; encode_method_prototype() is
2985 (objc_clear_super_receiver): New function.
2986 (objc_expand_function_end): Do not do anything for ordinary
2988 (finish_method_def): Mark ObjC methods as un-inlinable.
2989 (gen_declaration_1): Emit widths of bitfields.
2990 (finish_objc): Call generate_objc_image_info() if needed;
2991 use check_duplicates() when checking for selector duplicates.
2992 (generate_objc_image_info): New function.
2993 * objc/objc-act.h (add_instance_method, add_class_method,
2994 get_class_ivars): Remove prototypes.
2995 (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
2996 objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
2997 objc_build_catch_stmt, objc_build_catch_epilogue,
2998 objc_build_finally_prologue, objc_build_finally_epilogue,
2999 add_method, get_class_ivars_from_name): New prototypes.
3000 (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
3001 (TYPE_PROTOCOL_LIST): Robustify to distinguish from
3002 TRANSLATION_UNIT_DECLs.
3003 (OBJC_TYPE_NAME): New.
3004 (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
3006 (IS_SUPER): Robustify.
3007 (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
3008 umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
3009 objc_exception_try_enter_decl, objc_exception_try_exit_decl,
3010 objc_exception_match_decl, objc_exception_throw_decl,
3011 objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
3012 objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
3013 objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
3014 objc_catch_type): New ObjC/ObjC++ roots.
3015 * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
3016 ObjC/ObjC++ tree node codes.
3018 2003-09-24 Alexandre Oliva <aoliva@redhat.com>
3020 * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
3021 code path that calls a handler.
3023 2003-09-24 Nathanael Nerode <neroden@gcc.gnu.org>
3025 * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
3028 * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
3029 the section giving $with_cpu defaults by target.
3031 * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
3032 arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
3033 rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
3034 rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
3035 rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
3036 i[34567]86-pc-msdosdjgpp*): Disable fixproto.
3038 2003-09-24 David Edelsohn <edelsohn@gnu.org>
3040 * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
3041 together. Protect load string instruction with TARGET_STRING.
3042 (movti_string): Collapse case 1 and 2 together.
3044 2003-09-24 Nathan Sidwell <nathan@codesourcery.com>
3046 * c-common.c (c_common_type_for_mode): Check for VOIDmode.
3048 2003-09-24 Richard Earnshaw <rearnsha@arm.com>
3050 * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
3053 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
3055 * config.gcc: Move use_fixproto=no from generic vxworks clause to
3058 * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
3059 (accidentally missed in last pass).
3061 2003-09-23 Andrew Pinski <apinski@apple.com>
3064 * configure: Regenerate.
3066 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
3068 * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
3069 missed in last pass).
3071 2003-09-23 Alexandre Oliva <aoliva@redhat.com>
3073 * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
3076 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
3078 * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
3080 * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
3081 powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
3082 powerpcle-*-eabi*): Disable fixproto.
3084 * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
3085 specific FreeBSD clauses.
3086 * config.gcc: Move use_fixproto=no from generic NetBSD clause to
3087 specific NetBSD clauses.
3088 * config.gcc: Move use_fixproto=no from generic OpenBSD clause
3089 to specific OpenBSD clauses.
3091 2003-09-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3093 * pa.c (hppa_expand_prologue): Do pic register save in frame marker
3094 without adding a frame note.
3095 * pa.md (allocate_stack): Save pic register in new frame marker when
3096 generating pic code.
3098 2003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
3100 * cgraphunit.c (cgraph_expand_all_functions): Renamed from
3101 cgraph_expand_functions.
3103 2003-09-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3105 * Makefile.in (gnucompare*): Merge into ...
3106 (slowcompare*): ... here.
3107 (fastcompare*): New targets.
3108 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
3109 other "fast" cmp programs.
3110 * configure: Regenerate.
3112 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3114 * targhooks.c: Include output.h.
3115 * Makefile.in (targhooks.o): Add output.h to dependency list.
3117 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3119 * config.host: Removed superfluous newline.
3121 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
3123 * config.gcc: Use ${target}, not $machine.
3124 * configure.in: Don't set $machine.
3125 * configure: Regenerate.
3127 2003-09-23 Geoffrey Keating <geoffk@apple.com>
3129 * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
3131 * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
3132 pass zero-size arrays by reference.
3133 (rs6000_va_arg): Likewise.
3135 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
3137 * config.gcc: Set use_fixproto=no in each specific *-gnu*
3138 configuration, rather than the generic one.
3140 2003-09-23 Richard Henderson <rth@redhat.com>
3142 * tree-inline.c (remap_save_expr): Map new save_expr to identity
3143 rather than to error_mark_node.
3145 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3147 * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
3149 * configure: Regenerate.
3150 * config.in: Likewise.
3151 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
3152 HAVE_GAS_SHF_MERGE value.
3153 * varasm.c (mergeable_string_section): Likewise.
3154 (mergeable_constant_section): Likewise.
3156 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3158 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
3161 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3163 * target.h (struct gcc_target): New member external_libcall.
3164 * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
3165 (TARGET_ASM_OUT): Use it.
3166 * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
3167 * targhooks.c: Convert to ISO C 90.
3168 (default_external_libcall): New function.
3169 * targhooks.h (default_external_libcall): Declare.
3170 * varasm.c (assemble_external_libcall): Use
3171 targetm.asm_out.external_libcall instead of
3172 ASM_OUTPUT_EXTERNAL_LIBCALL.
3173 * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
3174 (mips_output_external_libcall): Declare.
3175 * config/mips/mips.c (mips_output_external_libcall): Change
3177 Change to match TARGET_ASM_EXTERNAL_LIBCALL.
3178 Only operate for O32 ABI.
3179 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
3180 instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
3181 * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
3182 superceded by TARGET_ASM_EXTERNAL_LIBCALL.
3184 2003-09-22 Nathnael Nerode <neroden@gcc.gnu.org>
3186 * config.gcc: Do per-target disabling of fixproto here in clauses,
3187 not in t- fragments.
3188 * configure.in: Adjust to set STMP_FIXPROTO correctly.
3189 * configure: Regenerate.
3190 * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
3191 config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
3192 t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
3193 xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
3194 * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
3195 t-interix, t-linux-aout: Delete files consisting only of
3196 setting of STMP_FIXPROTO.
3198 * config.host: Allow unknown hosts (not targets). Allow
3199 ns32k-*-netbsdelf* as a host (not a target). Remove redundant
3200 empty clauses. Remove useless obsolete-configuration clause.
3201 Prune unsupported configuration list. Collapse identical
3202 clauses for closely related systems. Rewrite comment for
3203 unsupported hosts list. Reorganize a little.
3205 2003-09-22 Richard Henderson <rth@redhat.com>
3207 * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
3210 2003-09-22 David Edelsohn <edelsohn@gnu.org>
3211 Hartmut Penner <hpenner@de.ibm.com>
3212 Segher Boessenkool <boessen@de.ibm.com>
3214 * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
3215 (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
3216 (rs6000_split_altivec_in_gprs): Rename to ...
3217 (rs6000_split_multireg_move): Add support for update addressing.
3218 * config/rs6000/rs6000-protos.h: Same.
3219 * config/rs6000/altivec.md: Same.
3220 * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
3222 (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
3223 (movti_power): Use new splitter for multiple GPRs.
3224 (movti_string): Same.
3225 (movti_ppc64): Same.
3227 2003-09-22 Bob Wilson <bob.wilson@acm.org>
3229 * config/xtensa/xtensa-protos.h: Convert to ISO C90.
3230 * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes.
3232 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
3234 * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
3235 (andsi3): Set attr cc to set_zn when using shifts or adds.
3237 2003-09-22 Bernardo Innocenti <bernie@develer.com>
3239 * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
3241 2003-09-22 Bernardo Innocenti <bernie@develer.com>
3243 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
3244 Resurrect -mrtd option.
3246 2003-09-21 Andrew Pinski <pinskia@physics.uc.edu>
3249 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
3250 mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
3252 2003-09-22 Olivier Hainque <hainque@act-europe.fr>
3255 * reg-stack.c (convert_regs_1): Purge possible dead eh edges
3256 after potential deletion of trapping insn. Avoids later ICE
3257 from call to fixup_abnormal_edges.
3258 (convert_regs_2): Stack the current block successors before
3259 processing this block, that is, before the potential deletion of
3260 dead edges by convert_regs_1, because these edges have been used
3261 to initialize the predecessors count.
3263 2003-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
3265 * real.c: Fix several nits in the head comment.
3267 2003-09-21 Richard Henderson <rth@redhat.com>
3269 * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
3270 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
3271 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
3272 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
3273 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
3275 2003-09-21 Richard Henderson <rth@redhat.com>
3277 * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
3278 (TREE_FILENAME, TREE_LINENO): Likewise.
3279 (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
3280 (TREE_LOCUS_SET_P): New.
3281 * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
3282 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
3283 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
3284 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
3285 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
3287 2003-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
3289 * config/vax/vax-protos.h: Convert to ISO C90.
3290 * config/vax/vax.c: Convert to ISO C90.
3292 2003-09-21 Graham Stott <grahams@btinternet.com>
3295 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
3297 2003-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
3300 * reorg.c (stop_search_p): Return 1 for insns that can
3303 2003-09-20 Richard Henderson <rth@redhat.com>
3305 * c-format.c (gcc_diag_char_table): Add %J.
3306 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
3307 (check_format_types): Fix wanted_type name lookup.
3308 (init_dynamic_diag_info): Setup %J.
3309 * diagnostic.c (text_specifies_location): Implement %J.
3310 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
3311 dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
3312 tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
3313 config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
3314 config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
3316 * tree-inline.c: Include intl.h
3317 (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
3318 * Makefile.in (tree-inline.o): Update.
3320 2003-09-20 Roger Sayle <roger@eyesopen.com>
3322 * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
3323 transformation of a>=0 into (unsigned)a<0x80000000.
3325 2003-09-20 Andrew Pinski <apinski@apple.com>
3327 * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
3329 2003-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
3331 * Makefile.in: Don't set (unused) DLLTOOL.
3333 * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
3334 Remove obsolete references to ENQUIRE.
3336 2003-09-19 Nathanael Nerode <neroden@gcc.gnu.org>
3338 * configure.in: Remove --with-elf, which doesn't work.
3339 * configure: Regenerate.
3340 * config.gcc: Remove references to $elf, which does nothing.
3342 * config/i386/xm-vsta.h: Remove xm-file believed useless.
3343 * config.build (i386-vsta): Remove reference to it.
3344 * config.host (i386-vsta): Remove reference to it.
3346 2003-09-19 Phil Edwards <phil@codesourcery.com>
3348 * doc/install.texi: Document the multiple testsuite options.
3350 2003-09-19 Gerald Pfeifer <gerald@pfeifer.com>
3352 * doc/install.texi (Specific): Add the specific versions of GCC
3353 where support for FreeBSD 1, HP-UX version 9 and older, and AIX
3354 version 3 and older was discontinued.
3356 2003-09-19 Joel Sherrill <joel@oarcorp.com>
3358 * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
3361 2003-09-19 Bernardo Innocenti <bernie@develer.com>
3363 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
3364 for -m68030, -m68020-60 and -m68020-40.
3365 * config/m68k/m68k.h (TARGET_68030): New target flag.
3366 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
3367 TARGET_REGPARM): Remove.
3368 * config/m68k/m68k.h: Regroup and renumber target flags.
3369 * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
3370 * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
3371 * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
3372 * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
3373 * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
3375 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3377 * config/m68k/t-rtems (m68k-*-rtems*): New.
3378 * config.gcc: Use config/m68k/t-rtems.
3380 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3382 * config/mips/t-rtems: New.
3383 * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
3385 2003-09-19 Kelley Cook <kelleycook@wideopenwest.com>
3387 * cgraph.c: Fix typo in debugging output.
3389 2003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
3390 Eric Botcazou <ebotcazou@libertysurf.fr>
3393 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
3395 2003-09-18 Mike Stump <mrs@apple.com>
3397 * c-ppoutput.c (print): Use fileline typedef for field 'line'.
3398 (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
3399 cb_ident, cb_def_pragma): Use fileline typedef.
3400 * cpphash.h (struct cpp_reader): Likewise for field out.first_line.
3402 2003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3404 * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
3405 total parm size if a parm has incomplete type.
3406 (gen_fastcall_suffix): Likewise.
3408 2003-09-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3410 * except.c (output_function_exception_table): Adjust last change
3411 to handle TYPE of INTEGER_CST.
3413 2003-09-18 Mark Mitchell <mark@codesourcery.com>
3416 * builtins.c (expand_builtin_apply): Use convert_memory_address
3417 before returning the value.
3419 * alias.c (find_base_value): Simplify use of
3420 convert_memory_address.
3421 (find_base_term): Likewise.
3422 * builtins.c (expand_builtin_stejmp_setup): Likewise.
3423 (expand_builtin_longjmp): Likewise.
3424 (expand_builtin_prefetch): Likewise.
3425 (get_memory_rtx): Likewise.
3426 (expand_builtin_return): Likewise.
3427 (expand_builtin_memcpy): Likewise.
3428 (expand_builtin_strncpy): Likewise.
3429 (expand_builtin_memset): Likewise.
3430 (expand_builtin_va_arg): Likewise.
3431 (expand_builtin_va_copy): Likewise.
3432 (expand_builtin_alloca): Likewise.
3433 * calls.c (expand_call): Likewise.
3434 * except.c (expand_builtin_extract_return_addr): Likewise.
3435 (expand_builtin_eh_return): Likewise.
3436 * explow.c (convert_memory_address): Define even when
3437 POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address
3438 is already in the right mode.
3439 * explow.c (memory_address): Simplify use of convert_memory_address.
3440 (probe_stack_range): Likewise.
3441 * expmed.c (make_tree): Likewise.
3442 * expr.c (emit_block_move_in_libcall): Likewise.
3443 (expand_assignment): Likewise.
3444 (expand_expr): Likewise.
3445 * function.c (assign_parms): Likewise.
3446 (expand_function_end): Likewise.
3447 * integrate.c (copy_rtx_and_substitute): Likewise.
3448 * stmt.c (expand_computed_goto): Likewise.
3450 2003-09-18 Roger Sayle <roger@eyesopen.com>
3452 * simplify-rtx.c (simplify_unary_operation): Only transform
3453 (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
3454 is -1. RTL "not" is a bit-wise not, "~", not a logical not "!".
3456 2003-09-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3459 * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
3461 2003-09-18 Roger Sayle <roger@eyesopen.com>
3463 * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
3464 PARITY_EXPR): Delete unused tree codes.
3465 * c-common.c (c_common_truthvalue_conversion): Delete references
3466 to FFS_EXPR and POPCOUNT_EXPR.
3467 * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
3468 (pp_c_expression): Likewise.
3469 * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
3470 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
3471 * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
3472 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to
3473 BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
3474 and long long variants.
3476 2003-09-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
3478 * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
3479 * c-pretty-print.c: Fix formatting.
3480 (pp_c_integer_constant): Append type annotation to literals. Tidy.
3481 (pp_c_type_specifier): Tidy.
3482 (pp_c_compound_literal): New function.
3483 (pp_c_initializer): Simplify..
3484 (pp_c_initializer_list): Likewise.
3485 (pp_c_brace_enclosed_initializer_list): New function.
3486 (pp_c_postfix_expression): Simplify.
3488 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
3490 * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
3491 one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
3493 2003-09-17 Richard Henderson <rth@redhat.com>
3495 * tree-optimize.c (tree_rest_of_compilation): Save and restore
3498 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
3500 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
3502 2003-09-17 Richard Henderson <rth@redhat.com>
3504 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
3506 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3508 * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
3509 * configure: Regenerate.
3511 2003-09-17 Mark Mitchell <mark@codesourcery.com>
3514 * dbxout.c (dbxout_init): Use a langhook to find builtin types.
3515 * langhooks-def.h (lhd_return_null_tree_v): New function.
3516 (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
3517 (LANG_HOOKS_DECLS): Add it to the intializer.
3518 * langhooks.c (lhd_return_null_tree_v): New function.
3519 * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
3521 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
3523 * configure.in: Quote gcc_config_arguments for configargs.h.
3524 * configure: Regenerated.
3525 * gccbug.in: Don't shell-expand gcc_config_arguments.
3527 2003-09-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
3530 * c-pretty-print.c (pp_c_floating_constant): Append
3531 type-annotation to floating constants.
3533 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3535 * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
3537 Use it for _MIPS_SIM.
3538 * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
3540 * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
3542 * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
3544 Fixes PR target/10190.
3546 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
3548 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
3549 to shared libraries.
3551 2003-09-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3553 PR optimization/11646
3554 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
3555 EDGE_ABNORMAL flag for EH edges.
3556 * toplev.c (rest_of_handle_cse): Delete unreachable blocks
3557 if dead edges were purged.
3559 2003-09-16 Bernardo Innocenti <bernie@develer.com>
3561 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
3562 * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
3563 * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
3564 * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
3566 2003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
3568 * cfgcleanup.c (label_is_jump_target_p): Correct use of table
3569 returned by tablejump_p.
3571 2003-09-16 Joel Brobecker <brobecker@gnat.com>
3573 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
3575 2003-09-16 Roger Sayle <roger@eyesopen.com>
3578 * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
3579 argument to be VOIDmode, taking the mode of the comparison from
3580 the operands. Only call simplify_relational_operation if we
3581 know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
3582 if comparison has a floating point result. Ensure that the
3583 result is always of the specified mode.
3584 (simplify_replace_rtx): Simplify call to simplify_gen_relational.
3585 (simplify_unary_operation): Ensure the correct mode and cmp_mode
3586 are always passed to simplify_gen_relational. Simplify NOT of
3587 comparison operator in any mode, not just BImode.
3588 (simplify_ternary_operation): Correct tests on the return value
3589 of simplify_relational_operation to use const_true_rtx, not
3590 const1_rtx. Abort if it ever returns a non-constant result.
3592 * cfgloopanal.c (count_strange_loop_iterations): Use the function
3593 simplify_relational_operation, not simplify_gen_relational, if
3594 we're only interested in constant comparisons and will ignore
3595 non-constant results.
3597 2003-09-16 Roger Sayle <roger@eyesopen.com>
3599 * fold-const.c (tree_swap_operands_p): New function to determine
3600 the prefered ordering of operands.
3601 (fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
3602 operands to commutative, comparison or ternary operators. Replace
3603 uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
3604 transformation of A ? B : C into !A ? C : B.
3606 2003-09-16 Jakub Jelinek <jakub@redhat.com>
3608 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3609 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3610 * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3611 * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3612 * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3613 * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3614 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3615 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3617 2003-09-16 Jason Merrill <jason@redhat.com>
3618 Jakub Jelinek <jakub@redhat.com>
3620 * c-common.c (handle_warn_unused_result_attribute): New function.
3621 (c_common_attribute_table): Add warn_unused_result.
3622 (c_expand_expr): Issue warning when result of inlined function
3623 with warn_unused_result attribute is ignored.
3624 * calls.c (expand_call): Issue warning when result of function
3625 with warn_unused_result attribute is ignored.
3626 * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
3627 * expr.c (expr_wfl_stack): Define.
3628 (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
3629 pass const0_rtx as target. Chain locations into expr_wfl_stack.
3630 * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
3631 bit if inlined function has warn_unused_result attribute.
3632 * input.h (expr_wfl_stack): Declare.
3633 * doc/extend.texi: Document warn_unused_result attribute.
3635 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3637 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
3639 2003-09-15 Bob Wilson <bob.wilson@acm.org>
3641 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
3643 (call_insn_operand): For PIC, don't allow a direct call to a
3644 function in a different section than the current one.
3646 2003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3648 * doc/invoke.texi (Warning Options): Add missing hyphen before
3649 "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
3650 Move "-Wold-style-definition" to the C-only section.
3651 Fix the ordering of the warning options.
3653 2003-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3654 Jeff Law <law@redhat.com>
3656 * gcse.c (remove_reachable_equiv_notes): New.
3657 replace_store_insn): Call it. Update antic list.
3658 (store_killed_in_insn): Take REG_EQUAL notes into account.
3659 (build_store_vectors, delete_store): Add parameter to
3660 replace_store_insn call.
3662 2003-09-15 Bob Wilson <bob.wilson@acm.org>
3664 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
3667 2003-09-15 Kazu Hirata <kazu@cs.umass.edu>
3669 * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
3670 (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
3671 * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
3673 * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
3675 * config/rs6000/rs6000.c (function_arg_padding): Likewise.
3676 * config/sparc/sparc.c (function_arg_padding): Likewise.
3678 2003-09-15 Vladimir Makarov <vmakarov@redhat.com>
3680 * haifa-sched.c (schedule_block): Use ready_remove_first instead
3681 of choose_ready for non-dfa insn scheduling.
3683 2003-09-15 Andreas Jaeger <aj@suse.de>
3684 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3686 * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
3687 * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
3688 * c-parse.in: Warn about old-style parameter definition.
3689 * c-common.c: Define warn_old_style_defintion.
3690 * c-common.h: Declare it.
3691 * c.opt: Add Wold-style-defintion.
3693 2003-09-15 Andreas Jaeger <aj@suse.de>
3695 * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
3696 * config/rs6000/rs6000.c: Likewise.
3698 2003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3700 PR optimization/10914
3701 * expr.h (get_condition, canonicalize_condition): Declaration changed.
3702 * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
3703 and canonicalize_condition calls.
3704 * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
3705 delete_null_pointer_checks): Ditto.
3706 * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
3707 * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
3708 * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
3709 (canonicalize_condition, get_condition): Allow to return comparisons
3710 of cc mode registers.
3711 * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
3712 cc mode registers comparison in condition.
3714 2003-09-12 Mark Mitchell <mark@codesourcery.com>
3716 * coverage.c (create_coverage): Do not call pushlevel/poplevel.
3717 * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
3719 * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
3721 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
3723 * combine.c (simplify_comparison): Convert
3724 (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
3725 (eq (and (lshiftrt X Y) 1) 0).
3727 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
3729 * alias.c: Follow spelling conventions.
3730 * cpphash.h: Likewise.
3731 * fold-const.c: Likewise.
3733 2003-09-14 Alexandre Oliva <aoliva@redhat.com>
3735 * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
3736 * c-lex.c (cb_line_change): Skip line changing whenever
3739 2003-09-14 Steven Bosscher <steven@gcc.gnu.org>
3741 * ra.c: Convert to ISO C90 prototypes.
3742 * ra-build.c: Likewise.
3743 * ra-colorize.c: Likewise.
3744 * ra-debug.c: Likewise.
3745 * ra-rewrite.c: Likewise.
3747 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
3749 * Makefile.in (%.dvi): Remove excess $(docdir).
3751 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
3753 * function.c (STACK_BYTES): Move definition to head of file.
3754 (assign_parms): Don't pass current_function_pretend_args_size
3755 directly to SETUP_INCOMING_VARARGS. For partial register arguments,
3756 round current_function_pretend_args_size up to STACK_BYTES. Skip any
3757 excess before laying out the argument.
3759 2003-09-14 Andreas Jaeger <aj@suse.de>
3761 * objc/objc-act.c: Convert to ISO C90 prototypes.
3762 * objc/objc-act.h: Likewise.
3764 2003-09-14 Olaf Hering <olh@suse.de>
3766 * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
3768 2003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
3771 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
3772 as they already are done in config/m68k/m68k.h.
3773 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
3775 * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
3776 (machopic_output_stub): Only generate pic base symbols when using pic
3777 and generate them in the form L00000000$spb.
3779 2003-09-13 Richard Henderson <rth@redhat.com>
3781 * cgraphunit.c (cgraph_assemble_pending_functions): Export.
3782 (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
3785 2003-09-12 Dale Johannesen <dalej@apple.com>
3787 * config/rs6000/rs6000.c: Fix typos in previous.
3789 2003-09-12 Ziemowit Laski <zlaski@apple.com>
3791 * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
3792 when allocating pp->buffer.
3794 2003-09-12 Geoffrey Keating <geoffk@apple.com>
3796 * config/darwin.c (machopic_select_rtx_section): Use
3797 const_data_section for things that might require relocation.
3799 2003-09-12 H.J. Lu <hongjiu.lu@intel.com>
3802 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
3804 2003-09-12 Bob Wilson <bob.wilson@acm.org>
3806 * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
3807 * config/xtensa/linux.h (ASM_SPEC): Likewise.
3808 * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
3809 -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
3810 -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
3811 -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
3812 -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
3813 -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
3814 and redefine corresponding TARGET_* macros with constants from the
3815 xtensa-config.h header.
3816 * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
3817 for the options listed above.
3819 2003-09-12 Dale Johannesen <dalej@apple.com>
3821 * config/rs6000/rs6000-protos.h: Use C90 prototypes.
3822 * config/rs6000/rs6000-c.c: Ditto.
3823 * config/rs6000/rs6000.c: Ditto.
3824 * config/rs6000/ sysv4.h: Ditto.
3826 2003-09-12 Chris Lattner <sabre@nondot.org>
3828 * loop.c: Move comments describing BIV's and GIV's to top of file
3830 2003-09-12 Roger Sayle <roger@eyesopen.com>
3832 PR optimization/8967
3833 * alias.c (write_dependence_p): Modify to take an additional constp
3834 argument that controls whether the UNCHANGING_RTX_P flags are used.
3835 (anti_dependence, output_dependence): Adjust write_dependence_p
3836 callers to pass this additional argument, to return the same result.
3837 (unchanging_anti_dependence): New variant of anti_dependence that
3838 ignores the UNCHANGING_RTX_P property on memory references.
3839 * rtl.h (unchaning_anti_dependence): Prototype here.
3840 * flow.c (init_propagate_block): Place fake constant mem writes on
3841 the mem_set_list so that dead writes to const variables are deleted.
3842 (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
3843 (mark_used_regs): Likewise.
3845 2003-09-12 Richard Sandiford <rsandifo@redhat.com>
3847 * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
3848 (mcore_secondary_reload_class): Declare.
3849 (mcore_output_inline_const_forced): Remove.
3850 * config/mcore/mcore.md (movsi): Remove the code that forced
3851 non-inlineable constants into a register if the target was r15
3852 or the stack pointer. Remove constant restrictions from the main
3853 define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
3854 of an r <- P alternative. Remove fallback define_insn for reload.
3855 (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
3856 define_insn. Use mcore_output_move in the remaining define_insn.
3857 Adjust condition and constraints in the way as for movsi.
3858 (movdi): Always split unacceptable constants into two. Use
3859 simplify_gen_subreg instead of operand_subword{,_force}.
3860 * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
3861 (mcore_output_move): Support HImode and QImode moves as well.
3862 (mcore_m15_operand_p): New function.
3863 (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
3864 (mcore_secondary_reload_class): New function.
3865 * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
3866 terms of mcore_secondary_reload_class.
3868 2003-09-11 Mike Stump <mrs@apple.com>
3870 * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
3872 2003-09-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3874 * builtins.c (fold_builtin_logarithm): if N can't be truncated to
3875 MODE exactly, then only convert logN(N) -> 1.0 if
3876 flag_unsafe_math_optimizations is set.
3878 * builtins.c (builtin_dconsts_init, dconstpi, dconste,
3879 init_builtin_dconsts): Delete.
3880 * emit-rtl.c (dconstpi, dconste): Define.
3881 (init_emit_once): Initialize dconstpi & dconste.
3882 * real.h (dconstpi, dconste): Declare.
3884 2003-09-11 Alexandre Oliva <aoliva@redhat.com>
3887 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
3888 for ultimate origin even if block is abstract.
3890 2003-09-11 Roger Sayle <roger@eyesopen.com>
3892 * combine.c (combine_simplify_rtx): Move several NOT and NEG
3893 optimizations from here...
3894 * simplify-rtx.c (simplify_unary_operation): to here. Recursively
3895 simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
3897 2003-09-11 Richard Henderson <rth@redhat.com>
3899 * cgraphunit.c (cgraph_finalize_function): Add nested arg.
3900 Tweek tests for function already generated.
3901 (cgraph_expand_function): Don't double announce in !unit-at-a-time.
3902 * cgraph.h (cgraph_finalize_function): Update for extra arg.
3903 * c-decl.c (finish_function): Likewise.
3905 2003-09-10 Joe Buck <jbuck@welsh-buck.org>
3907 * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
3909 2003-09-10 Jerry Quinn <jlquinn@optonline.net>
3911 * real.c: Update URL to VAX floating point docs.
3912 (decode_vax_d): Extract 8 exponent bits instead of 7.
3914 2003-09-10 Ian Lance Taylor <ian@wasabisystems.com>
3916 * combine.c (force_to_mode): Set fuller_mask based only on mask,
3919 2003-09-11 Jan Hubicka <jh@suse.cz>
3921 * c-objc-common.c (c_cannot_inline_tree_fn): Warn
3922 on why function is not inlinable; do not check
3924 (inline_forbidden_p): Move to...
3925 * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
3926 deal with alloca, longjmp.
3927 (inline_forbidden_p): New static function.
3928 (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
3929 find_builtin_longjmp_call): Kill.
3931 2003-09-10 Richard Henderson <rth@redhat.com>
3933 * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
3934 * cgraphunit.c: Update to match.
3935 (record_call_1): Rearrange. Call lang hook for language nodes.
3936 (cgraph_analyze_function): Don't call lower_function.
3937 * langhooks.h (struct lang_hooks_for_callgraph): Replace
3938 lower_function with analyze_expr.
3939 * langhooks-def.h: Update to match.
3940 * langhooks.c (lhd_callgraph_analyze_expr): New.
3942 2003-09-10 Martin Husemann <martin@duskware.de>
3945 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
3946 constants greater than 63.
3947 * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
3948 against constants greater than 31.
3949 (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
3950 constants greater than 63.
3952 2003-09-09 Richard Henderson <rth@redhat.com>
3954 * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
3955 * cgraph.h (cgraph_finalize_function): Update.
3956 * c-decl.c (finish_function): Update.
3958 2003-09-09 Devang Patel <dpatel@apple.com>
3960 * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
3961 * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
3963 2003-09-09 Eric Christopher <echristo@redhat.com>
3965 * configure.in: Change usage of 'head' to 'sed 1q'.
3966 * configure: Regenerate.
3968 2003-09-09 Richard Henderson <rth@redhat.com>
3970 * except.c: Include cgraph.h.
3971 (output_function_exception_table): Invoke
3972 cgraph_varpool_mark_needed_node.
3973 * Makefile.in (except.o): Update.
3975 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
3977 * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
3978 and use it throughout.
3980 2003-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3982 * builtins.c (real_dconstp, fold_builtin_logarithm,
3983 fold_builtin_exponent): New, split out from fold_builtin. Also
3984 generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
3985 * emit-rtl.c (dconst3, dconst10, dconstthird): New.
3986 (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
3987 of hardcoded array size.
3988 * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
3989 (tree_expr_nonnegative_p): Likewise.
3990 * real.h (dconst3, dconst10, dconstthird): New.
3992 2003-09-09 Jan Hubicka <jh@suse.cz>
3994 * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
3996 (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
3999 2003-09-09 Roger Sayle <roger@eyesopen.com>
4001 * builtins.c (fold_builtin_cabs): Protect the complex argument
4002 against multiple evaluation when optimizing cabs* into sqrt*.
4004 2003-09-09 Jan Hubicka <jh@suse.cz>
4006 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
4008 2003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
4010 * Makefile.in: Revert yesterday's change.
4012 2003-09-08 Bernardo Innocenti <bernie@develer.com>
4013 Peter Barada <peter@baradas.org>
4015 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
4016 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
4017 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
4018 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
4019 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
4020 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
4021 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
4022 (m68k_compute_frame_layout): New function.
4023 (m68k_initial_elimination_offset): New function.
4024 (m68k_output_function_prologue): ColdFire-specific movem handling.
4025 (m68k_output_function_epilogue): Likewise.
4026 * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
4027 (ARG_POINTER_REGNUM): Add new definition.
4028 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
4029 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
4030 (CAN_ELIMINATE): Likewise.
4031 (INITIAL_ELIMINATION_OFFSET): Likewise.
4033 2003-09-08 Bernardo Innocenti <bernie@develer.com>
4035 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
4036 by removing redundant variable cfa_store_offset.
4038 2003-09-08 Mark Mitchell <mark@codesourcery.com>
4040 * langhooks-def.h (lhd_register_builtin_type): New function.
4041 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
4042 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
4043 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
4044 * langhooks.c (lhd_register_builtin_type): New function.
4045 * c-common.h (c_register_builtin_type): Declare.
4046 * c-common.c (c_register_builtin_type): New function.
4047 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
4048 c_register_builtin_type.
4049 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
4050 __float80, and __float128 macros.
4051 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
4052 __float80, and __float128 types.
4054 2003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4057 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
4058 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
4059 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
4060 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
4061 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
4062 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
4063 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
4064 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
4065 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
4066 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
4067 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
4068 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
4069 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
4070 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
4071 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
4072 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
4073 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
4075 * doc/extend.texi: Document new builtins.
4077 2003-09-09 Jan Hubicka <jh@suse.cz>
4079 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
4081 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
4082 functions, check for COMDAT.
4083 (cgraph_assemble_pending_functions): Break out from...
4084 (cgraph_finalize_function): ... here; allow redefinig of extern inline
4086 (record_call_1): Record function references only in non-unit-at-a-time
4088 (cgraph_analyze_function): Reset current_function_decl.
4089 (cgraph_finalize_compilation_unit): Assemble pending functions.
4091 2003-09-08 Mark Mitchell <mark@codesourcery.com>
4093 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
4094 (libgov.a): Likewise.
4095 (libgcc_eh.a): Likewise.
4097 2003-09-08 Roger Sayle <roger@eyesopen.com>
4099 * fold-const.c (operand_equal_p): Clarify documentation.
4101 2003-09-08 Richard Henderson <rth@redhat.com>
4103 * c-decl.c (c_expand_body_1): Push and pop function context here.
4104 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
4105 nested argument instead of computing nesting ourselves.
4107 2003-09-08 Jakub Jelinek <jakub@redhat.com>
4109 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
4110 regstack if optimizing but not scheduling after reload.
4112 2003-09-08 Jakub Jelinek <jakub@redhat.com>
4114 * config/sparc/sparc.c (struct machine_function): New type.
4115 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
4116 (sparc_override_options): Initialize init_machine_status.
4117 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
4118 tie_symbolic_operand, tle_symbolic_operand): New functions.
4119 (symbolic_operand): Disallow tls_symbolic_operand.
4120 (symbolic_memory_operand): Likewise.
4121 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
4122 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
4124 (sparc_tls_symbol): New variable.
4125 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
4126 legitimize_address): New functions.
4127 (print_operand): Handle %&.
4128 (sparc_init_machine_status, get_some_local_dynamic_name,
4129 get_some_local_dynamic_name_1): New functions.
4130 (sparc_output_dwarf_dtprel): New function.
4131 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
4133 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
4134 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
4135 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
4136 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
4137 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
4138 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
4139 (ASM_OUTPUT_DWARF_DTPREL): Define.
4140 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
4141 tie_symbolic_operand, tle_symbolic_operand.
4142 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
4143 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
4144 (tls_call_delay): New attribute.
4145 (in_call_delay): Use it.
4146 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
4147 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
4148 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
4149 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
4150 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
4151 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
4152 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
4153 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
4154 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
4155 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
4156 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
4157 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
4158 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
4159 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
4161 * config/sparc/sparc-protos.h (legitimate_constant_p,
4162 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
4163 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
4164 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
4165 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
4166 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
4167 * configure.in (sparc*-*-*): Add TLS check.
4168 * configure: Rebuilt.
4170 2003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4173 * config/i386/i386.c (memory_address_length): Fix computation when
4174 the base is esp or ebp.
4176 2003-09-07 Mark Mitchell <mark@codesourcery.com>
4179 * varasm.c (initializer_constant_valid_p): Correct logic for
4182 2003-09-07 Roger Sayle <roger@eyesopen.com>
4184 * expr.c (expand_operands): New function to expand an operand pair.
4185 (expand_expr): Call expand_operands whenever we need to expand both
4186 operands of a binary operator.
4187 (do_store_flag): Likewise for operands of comparison operations.
4189 2003-09-07 Roger Sayle <roger@eyesopen.com>
4191 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
4192 (-A)*B if we care about sign-dependent rounding.
4194 2003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
4196 * c-pretty-print.h (pp_c_left_brace): Declare.
4197 (pp_c_right_brace): Likewise.
4198 * c-pretty-print.c (pp_c_left_brace): Now a function
4199 (pp_c_right_brace): Likewise.
4201 2003-09-07 Jan Hubicka <jh@suse.cz>
4203 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
4205 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
4207 * diagnostic.c (warn_deprecated_use): Move to toplev.c
4209 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
4211 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
4212 * Makefile.in (langhooks.o): Depend on diagnostic.h
4214 2003-09-06 James E Wilson <wilson@tuliptree.org>
4216 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
4219 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
4221 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
4222 and use it throughout.
4224 2003-09-07 Jan Hubicka <jh@suse.cz>
4226 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
4228 * toplev.c (rest_of_decl_compilation): Do not finalize external
4231 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
4233 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
4235 2003-09-06 Jan Hubicka <jh@suse.cz>
4238 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
4241 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
4243 2003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
4245 * diagnostic.c (announce_function): Move to toplev.c.
4247 2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4249 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
4252 2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4254 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
4255 when gc checking is enabled.
4257 2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
4260 * c-decl.c (c_expand_body_1): Move return warning from here...
4261 (finish_function): ...to here.
4263 2003-09-05 Geoffrey Keating <geoffk@apple.com>
4265 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
4266 a subset of the input class.
4268 2003-09-05 Kazu Hirata <kazu@cs.umass.edu>
4270 * config/i860/i860.c: Follow spelling conventions.
4271 * config/i860/i860.h: Likewise.
4272 * config/sh/sh.h: Likewise.
4274 2003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
4276 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
4277 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
4278 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
4280 2003-09-05 Roger Sayle <roger@eyesopen.com>
4281 Richard Henderson <rth@redhat.com>
4283 PR optimization/1823
4284 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
4285 multiplication to implement division by constant integer.
4287 2003-09-05 Jan Hubicka <jh@suse.cz>
4289 * opts.c (decode_options): Enable unit-at-a-time at -O2.
4290 * params.def (max-inline-insns-single): Set to 500
4291 (max-inline-insns-auto): Set to 150
4292 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
4294 2003-09-04 Richard Henderson <rth@redhat.com>
4296 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
4297 (cgraph_mark_needed_node): Remove needed argument.
4298 * cgraph.h: Update to match.
4299 * cgraphunit.c (decide_is_function_needed): Split out from ...
4300 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
4301 if we generated the function.
4302 (record_call_1): Update for cgraph_mark_reachable_node.
4303 * varasm.c (mark_referenced): Likewise.
4304 * objc/objc-act.c (mark_referenced_methods): Likewise.
4306 2003-09-04 DJ Delorie <dj@redhat.com>
4308 * targhooks.c: Add comment explaining the migration process.
4310 2003-09-04 Eric Christopher <echristo@redhat.com>
4312 * config/frv/t-frv: Fix path for frv-abi.h.
4313 * config/frv/frv-asm.h: Fix string concatenation.
4315 2003-09-04 DJ Delorie <dj@redhat.com>
4317 * builtins.c (apply_args_size): Guard against a NULL cfun.
4318 (expand_builtin_apply_args_1): Likewise.
4319 (expand_builtin_apply): Likewise.
4320 Fixes PR bootstrap/12172.
4322 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4324 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
4325 assembler supports Sun syntax for cmov.
4326 * configure: Regenerate.
4327 * config.in: Likewise.
4328 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
4329 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
4330 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
4331 Fixes PR target/12101.
4333 2003-09-04 Matt Austern <austern@apple.com>
4335 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
4336 with verbosity 0, instead of DECL_NAME, for human-readable string.
4338 2003-09-04 Eric Christopher <echristo@redhat.com>
4340 * targhooks.c (default_return_in_memory): Allow
4343 2003-09-04 Eric Christopher <echristo@redhat.com>
4345 * targhooks.c (default_return_in_memory): Fix typo
4348 2003-09-04 Eric Christopher <echristo@redhat.com>
4350 * targhooks.c (default_return_in_memory): Fix default
4353 2003-09-04 Bernardo Innocenti <bernie@develer.com>
4355 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
4357 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
4358 enable coff-only code in m68k.c.
4360 2003-09-04 Nick Clifton <nickc@redhat.com>
4362 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
4364 * config/v850/v850.h: Accept v850e1 as a default CPU.
4365 Accept -mv850e1 as a command line option.
4366 * doc/invoke.texi: Document new -mv850e1 command line switch.
4367 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
4370 2003-09-04 Nick Clifton <nickc@redhat.com>
4372 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
4373 * config/v850/t-v850: Only produce one extra multilib - for
4375 * config/v850/t-v850e: New file: Only produce one extra
4376 multilib - for the v850.
4378 2003-09-04 Jakub Jelinek <jakub@redhat.com>
4380 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
4381 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
4382 * unwind.h (_Unwind_GetBSP): New prototype.
4383 * libgcc-std.ver: Add empty GCC_3.3.2 version.
4384 * mkmap-symver.awk: For symbol versions with no exported symbols,
4385 don't put anything into version script, just change all symbol
4386 versions which inherit from it to inherit from its ancestor.
4388 2003-09-04 Eric Christopher <echristo@redhat.com>
4390 * config/mips/mips.c (mips_expand_prologue): Convert to
4391 calls.struct_value_rtx hook.
4392 (reg_or_const_float_1_operand): New.
4393 * config/mips/mips.h: Update Comments.
4394 (mips_arg): Add reg_or_const_float_1_operand.
4395 * config/mips/mips.md (divdf3); Convert to expander.
4397 (*divdf3): New pattern.
4400 2003-09-04 Jan Hubicka <jh@suse.cz>
4402 * toplev.c (wrapup_global_declarations): Fix final pass in
4405 2003-09-04 Mark Mitchell <mark@codesourcery.com>
4407 * doc/extend.texi: Document removal of cast-as-lvalue extension in
4410 2003-09-04 Nicolas Roche <roche@act-europe.fr>
4412 * gcc.c (process_command): Fix typo.
4414 2003-09-03 David O'Brien <obrien@FreeBSD.org>
4417 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
4418 (PTRDIFF_TYPE): Likewise.
4419 (WCHAR_TYPE_SIZE): Likewise.
4421 2003-09-03 DJ Delorie <dj@redhat.com>
4423 * targhooks.c: New file.
4424 * targhooks.h: New file.
4425 * Makefile.in: Add targhooks.o support.
4426 (function.o): Depend on$(TARGET_H).
4428 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
4429 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
4430 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
4431 (expand_builtin_saveregs): Convert to
4432 calls.expand_builtin_saveregs hook.
4433 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
4434 here, instead of ...
4435 (get_parm_info) ... here.
4436 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
4438 (finish_function): Handle calls.promote_prototypes hook here too.
4439 * c-typeck.c (convert_arguments): Convert to
4440 calls.promote_prototypes hook.
4441 (c_convert_parm_for_inlining): Likewise.
4442 * calls.c (initialize_argument_information): Convert to
4443 calls.promote_function_args hook.
4444 (expand_call): Convert to calls.struct_value_rtx,
4445 calls.strict_argument_naming,
4446 calls.pretend_outgoing_varargs_named, and
4447 calls.promote_function_return hooks. Pass fndecl to
4448 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
4449 hooks, so they can use that.
4450 (emit_library_call_value_1): Likewise.
4451 * combine.c (setup_incoming_promotions): Convert to
4452 calls.promote_function_args hook.
4453 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
4454 * expr.c (expand_assignment): Pass call to aggregate_value_p.
4455 (expand_expr): Likewise.
4456 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
4457 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
4458 RETURN_IN_MEMORY macro defaults.
4459 * final.c (profile_function): Convert to calls.struct_value_rtx
4461 * function.c (aggregate_value_p): Accept function type tree as
4462 second parameter; try to deduce fntype from it. Convert to
4463 calls.return_in_memory hook.
4464 (assign_parms): Convert to calls.setup_incoming_varargs,
4465 calls.strict_argument_naming, calls.promote_function_args,
4466 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
4468 (expand_function_start): Likewise. Convert to
4469 calls.struct_value_rtx hook.
4470 (expand_function_end): Convert to calls.promote_function_return hook.
4471 (allocate_struct_function): Pass fndecl to aggregate_value_p.
4472 * hard-reg-set.h: Update comments to new hook names.
4473 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
4474 * reg-stack.c (stack_result): Likewise.
4475 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
4476 * stmt.c (expand_value_return): Convert to
4477 calls.promote_function_return hook.
4478 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
4479 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
4480 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
4481 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
4482 TARGET_STRICT_ARGUMENT_NAMING,
4483 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
4484 * target.h: Likewise.
4485 * tree.h (aggregate_value_p): Also takes a tree to deduce function
4486 attributes from (for target hooks).
4487 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
4488 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
4489 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
4490 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
4491 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
4494 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
4495 to aggregate_value_p.
4496 * config/arm/arm.c (arm_init_cumulative_args,
4497 arm_output_mi_thunk): Likewise.
4498 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
4500 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
4501 mips_can_use_return_insn): Likewise.
4502 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
4503 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
4504 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
4506 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
4507 function to aggregate_value_p.
4508 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
4511 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
4512 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
4513 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
4514 (sh_handle_renesas_attribute, sh_promote_prototypes,
4515 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
4516 sh_setup_incoming_varargs, sh_strict_argument_naming,
4517 sh_pretend_outgoing_varargs_named): New decls.
4518 (targetm): Add new hooks.
4519 (calc_live_regs): Save MACL and MACH if the function has the
4521 (sh_expand_prologue): Support renesas attribute.
4522 (sh_builtin_saveregs): Make static.
4523 (sh_build_va_list): Support renesas attribute.
4524 (sh_va_start): Likewise.
4525 (sh_va_arg): Likewise.
4526 (sh_promote_prototypes): New.
4527 (sh_function_arg): New, moved from sh.h. Support renesas
4529 (sh_function_arg_advance): Likewise.
4530 (sh_return_in_memory): Likewise.
4531 (sh_strict_argument_naming): Likewise.
4532 (sh_pretend_outgoing_varargs_named): Likewise.
4533 (sh_struct_value_rtx): New.
4534 (sh_attribute): Add renesas attribute.
4535 (sh_handle_renesas_attribute): New.
4536 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
4537 (sh_ms_bitfield_layout_p): Support renesas attribute also.
4538 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
4539 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
4541 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
4543 (sh_args): Add renesas_abi flag.
4544 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
4545 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
4546 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
4547 stack for the renesas abi.
4548 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
4549 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
4550 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
4551 call cookie to indicate renesas calls.
4553 2003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
4555 * gcse.c (replace_one_set): New function.
4556 (pre_insert_copy_insn): Change the order of copying
4557 to make copy propagation discover additional PRE opportunities.
4559 2003-09-03 Roger Sayle <roger@eyesopen.com>
4561 PR optimization/11700.
4562 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
4563 of a hard register is representable before trying to simplify it
4564 using subreg_hard_regno.
4566 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4568 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
4569 * configure: Regenerate.
4571 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4573 * intl.h (N_): Remove parentheses.
4575 2003-09-03 Bernardo Innocenti <bernie@develer.com>
4577 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
4578 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
4579 definition and code blocks compiled when not defined.
4580 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
4581 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
4582 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
4583 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
4585 2003-09-03 Jeff Sturm <jsturm@one-point.com>
4587 * cgraphunit.c (visited_nodes): New static variable.
4588 (record_call_1): Use walk_tree with visited_nodes.
4589 (cgraph_create_edges): Use walk_tree with visited_nodes.
4590 Setup/teardown visited_nodes hashtable.
4592 2003-09-03 Roger Sayle <roger@eyesopen.com>
4594 * toplev.c (flag_rounding_math): New global variable.
4595 (f_options): Add to the list of language independent options.
4596 * flags.h (flag_rounding_math): Prototype here.
4597 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
4598 * common.opt (frounding-math): New common command line option.
4599 * opts.c (common_handle_option): Handle OPT_frounding_math.
4600 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
4602 * doc/invoke.texi: Document this new command line option.
4604 2003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4606 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
4608 2003-09-03 Jan Hubicka <jh@suse.cz>
4610 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
4611 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
4612 * c-objc-common.c: Kill include of gt-c-objc-common.h
4613 (expand_deferred_fns, deffer_fn): Kill function.
4614 (deferred_fns): Kill variable.
4615 (finish_cdtor): Update finish_function call.
4616 (c_objc_common_finish_file): Always call cgraph code.
4617 * c-parse.c: Regenerate.
4618 * c-parse.y: Regenerate.
4619 * c-tree.h (finish_function): Update prototype.
4620 * objc-acct.c (build_module_descriptor, finish_method_def):
4621 Update call of finish_function.
4622 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
4624 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
4625 function and assemble it if needed.
4626 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
4628 (cgraph_optimize): Likewise.
4629 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
4630 even when it has no inline callees.
4631 * c-parse.in: Update calls to finish_function.
4633 2003-09-03 Nick Clifton <nickc@redhat.com>
4635 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
4636 Use #error to generate the message if TARGET_DEFAULT is not
4639 2003-09-03 Richard Sandiford <rsandifo@redhat.com>
4641 * config/mips/mips.h (MASK_UNUSED1): Remove.
4642 (MASK_XGOT, TARGET_XGOT): Define.
4643 (TARGET_SWITCHES): Add an entry for -mxgot.
4644 (ASM_SPEC): Map -mxgot to -xgot.
4645 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
4646 whether we're using a big-GOT sequences.
4647 (mips_legitimize_const_move, mips_expand_call): Likewise.
4648 (override_options): Revert 2003-01-09 change.
4649 * doc/invoke.texi: Document -mxgot.
4651 2003-09-02 Jason Merrill <jason@redhat.com>
4653 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
4654 * config/sparc/sol2.h: Not here.
4656 2003-09-02 Roger Sayle <roger@eyesopen.com>
4658 * expr.c (expand_expr): The code following both_summands performs
4659 the same task as simplify_gen_binary. Replace all gotos to
4660 both_summands with a call to simplify_gen_binary and delete the
4663 2003-09-02 Jason Merrill <jason@redhat.com>
4666 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
4668 2003-09-02 Jeff Sturm <jsturm@one-point.com>
4670 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
4671 (cgraph_optimize_function): Set current_function_decl to the
4672 fndecl we're integrating from.
4674 2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4676 * builtins.def: Break out _Complex math functions into their
4679 2003-09-02 Andreas Jaeger <aj@suse.de>
4681 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
4683 2003-09-02 Josef Zlomek <zlomekj@suse.cz>
4685 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
4686 finding the note again.
4688 2003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
4690 * config.gcc: Remove host-specific rewrites of target_alias.
4692 2003-09-01 Mark Mitchell <mark@codesourcery.com>
4694 * Makefile.in (genprogs): Fix typo.
4696 * Makefile.in (gencheck.o): Remove build commands.
4697 (dummy-conditions.o): Likewise.
4698 (read-rtl.o): Likewise.
4699 (gensupport.o): Likewise.
4700 (genconfig$(build_exeext)): Remove rule.
4701 (genconfig.o): Remove build commands.
4702 (genflags$(build_exeext)): Remove rule.
4703 (genflags.o): Remove build commands.
4704 (gencodes$(build_exeext)): Remove rule.
4705 (gencodes.o): Remove build commands.
4706 (genconstants.o): Remove build commands.
4707 (genemit$(build_exeext)): Remove rule.
4708 (genemit.o): Remove build commands.
4709 (genrecog$(build_exeext)): Remove rule.
4710 (genrecog.o): Remove build commands.
4711 (genextract$(build_exeext)): Remove rule.
4712 (genextract.o): Remove build commands.
4713 (genpeep$(build_exeext)): Remove rule.
4714 (genpeep.o): Remove build commands.
4715 (genattr$(build_exeext)): Remove rule.
4716 (genattr.o): Remove build commands.
4717 (genprognames): New variable.
4718 (genprogs): Likewise.
4719 (genobjs): Likewise.
4720 (genprogs): New rule.
4721 (genobjs): Likewise.
4722 (genattrtab.o): Remove build commands.
4723 (genautomata.o): Likewise.
4724 (genoutput$(build_exeext)): Remove rule.
4725 (genoutput.o): Remove build commands.
4726 (gengenrtl.o): Likewise.
4727 (genpreds.o): Likewise.
4728 (gengtype.o): Likewise.
4729 (genconditions.o): Likewise.
4730 (gen-protos.o): Likewise.
4732 (fix-header.o): Likewise.
4733 (scan-decls.o): Likewise.
4734 (check-g++): Combine with other check targets.
4735 (check-gcc): Likewise.
4736 (check-g77): Likewise.
4737 (check-objc): Likewise.
4739 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
4741 * config.gcc: Remove host-specific stuff which is unused here
4742 since the introduction of config.host.
4744 * doc/fragments.texi: Mention config.host.
4745 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
4746 of config.build, config.host, and config.gcc.
4748 2003-09-01 Zack Weinberg <zack@codesourcery.com>
4750 * c-decl.c (pushdecl): Don't put variables on
4751 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
4754 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
4756 * config.host: New file.
4757 * config.gcc: Remove some host-specific stuff and some
4758 logic needed only for repeated invocation.
4759 * configure.in: Use config.host.
4760 * configure: Regenerate.
4762 2003-09-01 Josef Zlomek <zlomekj@suse.cz>
4764 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
4765 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
4766 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
4767 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
4768 * tree.def (BIT_ANDTC_EXPR): Kill.
4770 2003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
4772 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
4773 * configure: Regenerate.
4775 * config.gcc: Remove references to install_headers_dir, now unused
4776 since introduction of config.build.
4777 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
4779 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
4782 * config.build: New file.
4783 * config.gcc: Remove some build-specific stuff.
4784 * configure.in: Use config.build.
4785 * configure: Regnerate.
4787 2003-08-31 Steven Bosscher <steven@gcc.gnu.org>
4788 Roger Sayle <roger@eyesopen.com>
4791 * stmt.c (expand_end_case_type): Only use jump tables for dense
4792 switch statements when optimizing for size.
4794 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
4796 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
4797 the != 0 case, which ensures pending stack adjustments are flushed.
4799 2003-08-30 Zack Weinberg <zack@codesourcery.com>
4801 * configure.frag: Delete file.
4802 * configure.in: Rename the substitution variables
4803 dep_host_xmake_file and dep_tmake_file to xmake_file and
4804 tmake_file respectively. Do not expand $srcdir in the
4805 value of these; leave that for Make. Introduce a new
4806 substitution varaible, all_lang_makefrags, which lists
4807 subdirectory Make-lang.in files; exclude these from
4808 all_lang_makefiles, which is now only for subdirectory
4809 outputs. Do not invoke configure.frag. Do not set nor
4810 AC_SUBST_FILE target_overrides, host_overrides, or
4811 language_fragments. Create build subdirectories in
4812 config.status extra commands.
4813 * configure: Regenerate.
4814 * Makefile.in: Update substitutions to match changes to
4815 configure. Use include directives instead of @-insertions
4816 to read in host, target, and language fragments.
4817 (Makefile rule): Do not invoke configure.frag. Do not copy
4818 config.status to config.run before executing it. Set
4819 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
4821 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
4823 2003-08-30 Zack Weinberg <zack@codesourcery.com>
4825 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
4826 * c-typeck.c (same_translation_unit_p): New function.
4827 (comptypes): Use it instead of flags parameter to identify
4828 structure types from different translation units.
4829 * c-decl.c (duplicate_decls): Always call comptypes with
4830 COMPTYPE_STRICT flags argument.
4831 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
4834 2003-08-30 Zack Weinberg <zack@codesourcery.com>
4836 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
4837 * c-decl.c (struct c_scope): Remove "incomplete" field.
4838 (pushdecl): Attach variables with incomplete types to
4839 the TYPE_MAIN_VARIANT of the incomplete type in question.
4840 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
4841 to complete, not at current_scope->incomplete. All such
4842 variables do need completion.
4844 2003-08-30 Richard Earnshaw <rearnsha@arm.com>
4845 Nicolas Pitre <nico@cam.org>
4847 * arm/lib1funcs.asm (RETCOND): Delete.
4848 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
4849 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
4850 (__ARM_ARCH__): Move here from ieee754-?f.S.
4851 (RET, RETc): Clean up definitions.
4852 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
4853 (FUNC_END): New macro that marks the end of any function.
4854 (ARM_FUNC_START): New macro that allows an assembler routine to be
4855 implemented in ARM code even if a Thumb-only build.
4856 Unconditionally include ieee754-?f.S.
4857 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
4858 Mark ends of functions.
4859 Split into separate conditionally-compiled units.
4860 Use RETLDM to return from routines.
4861 * arm/ieee754-sf.S: Similarly.
4862 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
4863 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
4864 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
4865 _fixsfsi and _fixunssfsi.
4867 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
4868 multiplication underflows to zero.
4869 (__adddf3): Fix bug when using VFP ordering on little-endian
4871 (__fixdfsi): Use rrx to extract the carry into a register instead of
4872 MRS instruction. Optimize later use of result.
4873 * arm/ieee754-sf.S (__fixsfsi): Likewise.
4874 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
4876 2003-08-29 Richard Henderson <rth@redhat.com>
4878 * tree-optimize.c: New file.
4879 * Makefile.in (OBJS-archive): Add tree-optimize.o.
4880 (tree-optimize.o): New.
4881 * c-decl.c (store_parm_decls): Use allocate_struct_function.
4882 (finish_function): Don't free_after_parsing or free_after_compilation.
4883 (set_save_expr_context): Move to tree-optimize.c.
4884 (c_expand_body_1): Use tree_rest_of_compilation.
4885 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
4886 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
4887 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
4888 iterate until closure.
4889 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
4890 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
4891 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
4892 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
4893 * toplev.h (tree_rest_of_compilation): Declare it.
4895 2003-08-29 Richard Henderson <rth@redhat.com>
4897 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
4898 * integrate.c (save_for_inline): Set saved_for_inline.
4899 * c-semantics.c (genrtl_scope_stmt): Check it.
4900 * toplev.c (wrapup_global_declarations): Check it.
4901 (rest_of_handle_inlining): Set and check rtl_inline_init.
4902 (rest_of_compilation): Remove out of date comment.
4904 2003-08-29 Richard Henderson <rth@redhat.com>
4906 * function.c (allocate_struct_function): New, split out of ...
4907 (prepare_function_start, init_function_start): ... here.
4908 * expr.c (init_expr): Use ggc_alloc_cleared.
4909 * stmt.c (init_stmt_for_function): Likewise.
4910 * tree.h (allocate_struct_function): Declare.
4912 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
4914 * config.gcc: Don't use negated character class in shell case
4917 2003-08-29 Richard Henderson <rth@redhat.com>
4919 * function.h (struct function): Move function_frequency and
4920 max_jumptable_ents before start of bit field members.
4922 2003-08-29 Richard Henderson <rth@redhat.com>
4924 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
4925 (fold_builtin_constant_p) ... not here.
4927 2003-08-29 Richard Henderson <rth@redhat.com>
4929 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
4930 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
4931 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
4933 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4935 * builtins.def: Fix typos.
4936 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
4937 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
4938 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
4939 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
4940 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
4942 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
4943 Use ATTR_MATHFN_FPROUNDING_ERRNO.
4945 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
4947 * config.gcc (i386-*-vsta): Fix obvious bogosity.
4949 * fixinc/inclhack.def: Remove special cases for unsupported
4950 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
4951 * fixinc/fixincl.x: Regenerate.
4953 2003-08-29 Mark Mitchell <mark@codesourcery.com>
4955 * Makefile.in (cpp.info): Just state dependencies.
4956 (gcc.info): Likewise.
4957 (gccint.info): Likewise.
4958 (gccinstall.info): Likewise.
4959 (cppinternals.info): Likewise.
4960 (cpp.dvi): Likewise.
4961 (gcc.dvi): Likewise.
4962 (gccint.dvi): Likewise.
4963 (gccinstall.dvi): Likewise.
4964 (cppinternals.dvi): Likewise.
4970 (fsf-funding.7): Likewise.
4971 ($(objdir)/%.info): New pattern rule.
4974 2003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
4976 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
4977 (restage2): Likewise.
4978 (restage3): Likewise.
4979 (restage4): Likewise.
4980 (restageprofile): Likewise.
4981 (restagefeedback): Likewise.
4982 (bubblestrap): Likewise.
4984 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
4986 * config.gcc: Narrow unsupported target match to avoid clobbering
4987 i?86-sequent-sysv4*.
4989 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4991 * builtins.c (mathfn_built_in): Handle new math builtins.
4993 2003-08-28 Per Bothner <per@bothner.com>
4995 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
4996 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
4997 (_cpp_lex_buffer): Likewise.
4998 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
5000 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
5002 * config/s390/s390.md ("*mulsi3_sign"): New insn.
5003 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
5004 ("mulsidi3"): ... this new insn.
5005 ("umulsidi3"): New insn.
5006 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
5007 mixed-mode matching constraints.
5008 ("udivmodsi4", "udivmoddisi3"): New insns.
5009 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
5011 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5013 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
5014 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
5015 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
5016 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
5017 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
5018 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
5019 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
5020 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
5021 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
5022 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
5023 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
5024 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
5025 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
5026 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
5027 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
5028 * tree.c: Assign new type_nodes.
5029 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
5030 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
5031 (float_ptr_type_node, double_ptr_type_node,
5032 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
5034 * doc/extend.texi: Document new builtins.
5036 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5038 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
5039 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
5041 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
5042 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
5043 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
5044 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
5045 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
5046 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
5047 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
5048 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
5049 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
5050 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
5052 * doc/extend.texi: Document new builtins.
5054 2003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
5056 * fixinc/mkfixinc.sh: Remove special case code for unsupported
5057 variants of i?86, powerpcle, and thumb.
5058 * fixinc/mkfixinc.sh: Remove special case code for unsupported
5059 arm and hppa variants.
5061 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5063 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
5064 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
5065 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
5066 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
5067 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
5068 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
5069 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
5070 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
5071 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
5072 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
5074 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
5075 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
5076 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
5077 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
5078 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
5079 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
5080 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
5081 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
5082 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
5083 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
5084 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
5085 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
5086 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
5087 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
5088 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
5089 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
5090 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
5091 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
5092 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
5093 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
5094 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
5095 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
5096 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
5097 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
5098 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
5099 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
5100 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
5101 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
5102 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
5103 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
5104 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
5106 * doc/extend.texi: Document new builtins.
5108 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
5110 * config/s390/s390.c (legitmate_constant_p): Use LARL on
5111 zSeries machines even in 31-bit addressing mode.
5112 (legitimate_reload_constant_p): Likewise.
5113 (legitimize_pic_address): Likewise.
5114 (legitimize_tls_address): Likewise.
5115 (s390_split_branches): Likewise.
5116 (s390_dump_pool): Likewise.
5117 (s390_mainpool_finish): Likewise.
5118 (s390_chunkify_start): Likewise.
5119 (s390_select_rtx_section): Likewise.
5120 * config/s390/s390.md ("doloop_si"): Likewise.
5121 ("pool_start_31", "pool_end_31"): Likewise.
5122 ("pool_start_64", "pool_end_64"): Likewise.
5123 ("main_base_31_small", "main_base_31_large"): Likewise.
5124 ("main_base_64"): Likewise.
5125 ("reload_base_31", "reload_base_64"): Likewise.
5126 ("*movsi_larl"): New insn.
5127 ("cjump", "icjump"): Use long branches on zSeries machines.
5129 ("call"): Use BRASL on zSeries machines.
5130 ("call_value", "call_value_tls"): Likewise.
5131 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
5133 ("*bras", "*brasl", "*basr") ... these new insns.
5134 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
5135 "bas_31_r"): Remove and replace by ...
5136 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
5137 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
5138 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
5139 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
5140 ("*return_si", "*return_di"): Remove and replace by ...
5141 ("*return"): ... this new insn.
5142 ("rotlsi3"): Allow on zSeries machines.
5144 * config/s390/s390.c (legitimize_reload_constant_p): Use
5145 LL/LH type instructions in z/Architecture mode.
5146 * config/s390/s390.md ("*movsi_lli"): Likewise.
5147 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
5148 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
5149 ("*extendqisi2"): Use LB in z/Architecture mode.
5150 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
5151 z/Architecture mode.
5152 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
5155 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
5157 ("ptr_extend"): Allow only in 64-bit mode.
5159 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
5161 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
5162 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
5164 (main): Only use standard_startfile_prefix if native.
5165 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
5167 2003-08-27 Per Bothner <pbothner@apple.com>
5169 * cpperror.c (print_location): Don't check for !pfile->buffer. That
5170 test fails following my 08-21 change, and it seems unnecessary anyway.
5171 (cpp_error): Likewise.
5173 2003-08-27 Jason Merrill <jason@redhat.com>
5175 * real.c (do_multiply): Initialize with memset.
5177 2003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5179 * gcov.c (typedef struct arc_info): New field cs_count.
5180 (accumulate_line_counts): Find cycles correctly.
5182 2003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
5184 * config/s390/s390.c (struct machine_function): Remove member
5186 (s390_optimize_prolog): Replace TEMP_REG argument with
5187 TEMP_USED and BASE_USED. Do not check get_pool_size ().
5188 (general_s_operand): Accept all immediates before reload if
5189 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
5191 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
5192 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
5193 (s390_alloc_pool): New function.
5194 (s390_new_pool): Call it.
5195 (s390_dump_pool): Add REMOTE_LABEL argument.
5196 (s390_chunkify_start): Add BASE_REG argument. Do not check
5198 (s390_chunkify_finish): Add BASE_REG argument. Adapt
5199 s390_dump_pool call.
5200 (s390_pool_count, s390_nr_constants): Remove.
5201 (s390_output_constant_pool): Remove.
5202 (s390_mainpool_start): New function.
5203 (s390_mainpool_finish): New function.
5204 (s390_mainpool_cancel): New function.
5205 (s390_reorg): Implement main literal pool handling.
5206 (s390_emit_prologue): Emit main_pool placeholder instead of
5207 literal_pool_31 / literal_pool_64 insns.
5208 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
5209 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
5210 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
5211 ("main_base_31_small", "main_base_31_large"): New insns.
5212 ("main_base_64", "main_pool"): New insns.
5213 ("literal_pool_31", "literal_pool_64"): Remove.
5215 2003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
5217 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
5219 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
5221 * fixinc/fixincl.x: Regenerate.
5223 2003-08-27 Richard Earnshaw <rearnsha@arm.com>
5225 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
5226 (L_ieee754_dp): New. Include ieee754-df.S.
5227 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
5228 and compilation in apcs-26 mode.
5229 * arm/ieee754-df.S: Likewise.
5230 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
5231 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
5233 2003-08-27 Nicolas Pitre <nico@cam.org>
5235 * arm/ieee754-sf.S: New.
5236 * arm/ieee754-df.S: New.
5238 2003-08-27 Jakub Jelinek <jakub@redhat.com>
5240 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
5241 and restore it if returning NULL.
5243 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
5245 * calls.c (initialize_argument_information): If an argument has no
5246 stack space associated with it, and BLOCK_REG_PADDING is defined,
5247 use it to decide at which end the argument should be padded.
5248 * function.c (assign_parms): Allocate BLKmode stack slots.
5249 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
5250 (mips_pad_reg_upward): Declare.
5251 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
5252 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
5253 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
5254 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
5255 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
5256 (mips_expand_call): Remove code for generating structure shifts.
5257 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
5258 types unless using the EABI.
5259 (function_arg_advance): Don't generate shift instructions.
5260 (function_arg): Don't return them. Don't short-circuit the
5261 check for double structure chunks for DFmode arguments.
5262 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
5263 (mips_expand_prologue): Remove code to emit structure shifts.
5264 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
5265 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
5266 comments to say that only structure returns are a problem.
5268 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
5270 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
5271 Fix to match produced versions.
5272 * fixinc/inclhack.def (longlong_t): New disabled test, ported
5274 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
5276 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
5277 ported from fixinc.ptx.
5279 2003-08-26 Per Bothner <pbothner@apple.com>
5281 * cpplib.h (struct cpp_token): Change type of field line to fileline.
5282 (cpp_error_with_line): Use fileline for appropriate parameter.
5283 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
5284 (struct cpp_reader): Likewise for fields line and directive_line.
5285 (_cpp_begin_message): Use fileline for appropriate parameter.
5286 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
5287 cpp_error): Use fileline for appropriate parameters and variables.
5288 (print_location): New local lin, since it is not a fileline.
5290 2003-08-26 Roger Sayle <roger@eyesopen.com>
5293 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
5294 (FLOAT_TYPE_P): Define in terms of these two new macros.
5295 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
5296 for complex floating point types.
5298 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
5300 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
5301 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
5302 s390_output_pool_entry.
5304 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
5306 * fixinc/inclhack.def (svr4_preproc_lint_on,
5307 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
5308 fixes, ported from fixinc.svr4.
5310 2003-08-26 Mark Mitchell <mark@codesourcery.com>
5312 * doc/install.texi (Prerequisites): Mention GNU make requirement.
5314 * Makefile.in (AR_FOR_TARGET): Export it.
5315 (AR_CREATE_FOR_TARGET): Likewise.
5316 (AR_FLAGS_FOR_TARGET): Likewise.
5317 (AR_EXTRACT_FOR_TARGET): Likewise.
5319 (BUILD_PREFIX): Likewise.
5320 (BUILD_PREFIX_1): Likewise.
5321 (DESTDIR): Likewise.
5322 (GCC_FOR_TARGET): Likewise.
5323 (INCLUDES): Likewise.
5324 (INSTALL_DATA): Likewise.
5325 (LIB1ASMSRC): Likewise.
5326 (LIBGCC2_CFLAGS): Likewise.
5327 (MACHMODE_H): Likewise.
5328 (NM_FOR_TARGET): Likewise.
5329 (RANLIB_FOR_TARGET): Likewise.
5330 (libsubdir): Likewise.
5331 (slibdir): Likewise.
5332 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
5334 (libgcc.a): Don't pass them here.
5335 (stmp-multilib): Or here.
5336 (install-libgcc): Or here.
5337 (install-multilib): Or here.
5338 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
5339 (stage1_build): Or here.
5341 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
5343 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
5344 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
5346 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
5348 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
5349 "*fmaddsf", "*fmsubsf"): New insns.
5351 2003-08-26 Roger Sayle <roger@eyesopen.com>
5353 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
5354 (C1*C2)/X when unsafe math optimizations are allowed.
5355 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
5356 math optimizations. Minor code clean-ups. Recursively call
5357 fold when constructing sub-expressions.
5359 2003-08-26 Roger Sayle <roger@eyesopen.com>
5361 * builtins.c (fold_builtin_bitop): New function to perform constant
5362 folding of ffs, clz, ctz, popcount and parity builtin functions
5363 and their long and long long variants (such as ffsl and ffsll).
5364 (fold_builtin): fold_builtin_bitop when appropriate.
5365 * simplify-rtx.c (simplify_unary_operation): Honor both
5366 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
5367 evaluating clz and ctz at compile-time, for operands wider
5370 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
5372 * builtins.c (build_function_call_expr): Don't set
5373 TREE_SIDE_EFFECTS here.
5374 * expr.c (emit_block_move_via_libcall): Likewise.
5375 (clear_storage_via_libcall): Likewise.
5376 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
5379 * gcse.c (is_too_expensive): New function.
5380 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
5382 2003-08-25 Zack Weinberg <zack@codesourcery.com>
5384 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
5385 commented-out logic to use DCE threads (if present), add
5386 support for POSIX threads.
5387 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
5388 #defines for -pthread. Add -lpthread to LIB_SPEC when
5389 -pthread. In both cases take -mt as a synonym for -pthread
5390 for acc compatibility.
5391 Define GTHREAD_USE_WEAK to 0.
5392 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
5393 Remove old logic for DCE threads from LIB_SPEC.
5394 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
5396 2003-08-25 Roger Sayle <roger@eyesopen.com>
5398 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
5399 return 0 for invalid argument types. Instead drop through to a
5400 call of expand_call at the bottom of function. If op is SQRT,
5401 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
5403 2003-08-25 Richard Henderson <rth@redhat.com>
5405 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
5406 result when op0 is SImode.
5408 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
5410 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
5412 * fixinc/fixincl.x: Regenerate.
5413 * fixinc/tests/base/sys/signal.h: Regenerate.
5415 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
5417 * combine.c (simplify_comparison): Re-enable widening of comparisons
5418 with non-paradoxical subregs of non-REG expressions.
5420 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
5422 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
5424 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
5426 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
5428 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5430 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
5431 * c-pretty-print.h (c_pretty_printer): Now typedef to the
5432 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
5433 (struct c_pretty_print_info): Document. Add new fields.
5434 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
5435 (pp_direct_abstract_declarator): New macro.
5436 (pp_ptr_operator): Likewise.
5437 (pp_simple_type_specifier): Likewise.
5438 (pp_expression): Likewise.
5439 (pp_parameter_list): Rename from pp_parameter_declaration.
5440 * c-pretty-print.c (pp_c_whitespace): Now a function.
5441 (pp_c_left_paren): Likewise.
5442 (pp_c_right_paren): Likewise.
5443 (pp_c_dot): Likewise.
5444 (pp_c_ampersand): Likewise.
5445 (pp_c_arrow): Likewise.
5446 (pp_c_semicolon): Likewise.
5447 (pp_c_type_cast): New function.
5448 (pp_c_space_for_pointer_operator): Likewise.
5449 (pp_c_call_argument_list): Likewise.
5450 (pp_c_cv_qualifier): Adjust prototype.
5451 (pp_c_type_qualifier_list): Likewise.
5452 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
5453 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
5454 Adjust to follow standard grammar.
5455 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
5456 REFERENCE_TYPE. Tidy.
5457 (pp_c_parameter_type_list): Adjust prototype. Tidy.
5458 (pp_c_parameter_declaration): Remove.
5459 (pp_c_abstract_declarator): Adjust prototype.
5460 (pp_c_direct_abstract_declarator): Likewise.
5461 (pp_c_type_id): Likewise.
5462 (pp_c_storage_class_specifier): Likewise.
5463 (pp_c_function_specifier): Likewise.
5464 (pp_c_declaration_specifiers): Likewise.
5465 (pp_c_direct_declarator): Likewise.
5466 (pp_c_declarator): Likewise.
5467 (pp_c_declarator): Likewise.
5468 (pp_c_declaration): Likewise.
5469 (pp_c_attributes): Likewise. Tidy.
5470 (pp_c_function_definition): Adjust prototype.
5471 (pp_c_char): Likewise.
5472 (pp_c_string_literal): Likewise.
5473 (pp_c_integer_constant): Likewise.
5474 (pp_c_character_constant): Likewise.
5475 (pp_c_bool_constant): Likewise.
5476 (pp_c_enumeration_constant): Likewise.
5477 (pp_c_floating_constant): Likewise.
5478 (pp_c_constant): Likewise.
5479 (pp_c_identifier): Likewise.
5480 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
5481 (pp_c_initializer): Adjust prototype.
5482 (pp_c_init_declarator): Likewise.
5483 (pp_c_initializer_list): Likewise.
5484 (pp_c_id_expression): Likewise.
5485 (pp_c_postfix_expression): Likewise.
5486 (pp_c_expression_list): Likewise.
5487 (pp_c_unary_expression): Likewise.
5488 (pp_c_cast_expression): Likewise.
5489 (pp_c_multiplicative_expression): Likewise.
5490 (pp_c_additive_expression): Likewise.
5491 (pp_c_shift_expression): Likewise.
5492 (pp_c_relational_expression): Likewise.
5493 (pp_c_equality_expression): Likewise.
5494 (pp_c_and_expression): Likewise.
5495 (pp_c_exclusive_or_expression): Likewise.
5496 (pp_c_inclusive_or_expression): Likewise.
5497 (pp_c_logical_and_expression): Likewise.
5498 (pp_c_logical_or_expression): Likewise.
5499 (pp_c_conditional_expression): Likewise.
5500 (pp_c_assignment_expression): Likewise.
5501 (pp_c_expression): Likewise. Tidy.
5502 (pp_c_statement): Likewise. Document.
5503 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
5505 * c-lang.c (c_initialize_diagnostics): Update.
5506 * c-common.h (strip_pointer_operator): Declare.
5507 * c-common.c (strip_pointer_operator): Define.
5509 2003-08-25 Mark Mitchell <mark@codesourcery.com>
5512 * tree.h (build_method_type_directly): Declare.
5513 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
5514 (vector_size_helper): Likewise.
5515 * tree.c (build_method_type_directly): New function.
5516 (build_method_type): Use it.
5518 2003-08-24 Richard Henderson <rth@redhat.com>
5520 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
5521 for 16-byte vector modes if sse not enabled; warn for abi change.
5522 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
5524 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
5526 * rtlanal.c (may_trap_p): Simplify an integer comparison.
5528 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
5530 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
5531 comment. Enable for DYNIX/ptx systems (when they switch to
5532 regular fixincludes).
5533 * fixinc/fixincl.x: Regenerate.
5535 2003-08-23 Jason Eckhardt <jle@rice.edu>
5537 * config/i860/t-i860: New.
5538 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
5540 2003-08-23 Jakub Jelinek <jakub@redhat.com>
5542 * c-decl.c (pushdecl): Only put decls which finish_struct will do
5543 something about onto incomplete chain.
5544 (finish_struct): If not removing type from incomplete
5547 2003-08-20 Jan Hubicka <jh@suse.cz>
5550 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
5553 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
5554 const_0_to_15_operand, const_0_to_255_operand): New predicates.
5555 * i386.h (PREDICATE_CODES): Add these.
5556 * i386.c (pinsrw and pextrw patterns): Use them.
5559 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
5562 * expr.c (convert_modes): Deal properly with integer to vector
5563 constant conversion.
5566 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
5568 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
5570 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
5571 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
5572 ("*movhi"): ... this.
5573 ("movqi", "*movqi"): Likewise.
5574 ("movqi_64"): Remove.
5575 ("*zero_extendhisi2_31"): Change predicate to s_operand.
5577 2003-08-23 Dale Johannesen <dalej@apple.com>
5578 * calls.c (emit_library_call_value_1): Fix obvious errors in
5579 arguments to emit_group_store.
5581 2003-08-23 Jason Eckhardt <jle@rice.edu>
5583 * calls.c (emit_library_call_value_1): Remove code related
5584 to LIBGCC_NEEDS_DOUBLE.
5585 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
5586 * doc/tm.texi: Likewise.
5587 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
5589 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
5591 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
5593 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
5595 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
5596 as well. Put memory references in the varargs alias set.
5597 (mips_expand_prologue): Remove varargs handling from here.
5599 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
5601 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
5602 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
5603 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
5604 for function pointer calls.
5605 * config/s390/s390.md ("*negdi2_31"): Likewise.
5607 2003-08-23 Roger Sayle <roger@eyesopen.com>
5609 * combine.c (apply_distributive_law): Correct comment.
5611 2003-08-23 Jason Eckhardt <jle@rice.edu>
5613 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
5615 2003-08-22 Jason Eckhardt <jle@rice.edu>
5617 * config/i860/i860.c (i860_build_va_list): Create the va_decl
5618 declaration. Document the va_list structure.
5619 (i860_va_start): Initialize the va_list structure.
5620 (i860_va_arg): Rewrite completely.
5621 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
5622 * config/i860/varargs.asm: Do not allocate or initialize
5623 a va_list. Return the address of the register save area.
5625 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5627 * config/iq2000/iq2000.c: Fix comment typos.
5628 * config/iq2000/iq2000.md: Likewise.
5630 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5632 * config/iq2000/iq2000.c: Follow spelling conventions.
5633 * config/iq2000/iq2000.h: Likewise.
5634 * config/mn10300/mn10300.c: Likewise.
5636 2003-08-22 Jason Eckhardt <jle@rice.edu>
5638 * config/i860/i860.c (output_move_double): Don't set latehalf
5639 to zero for CONST_INT (since it could be, e.g., -1).
5641 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
5642 (MODSI3_LIBCALL): ...with this one.
5643 (UREMSI3_LIBCALL): Replace this macro...
5644 (UMODSI3_LIBCALL): ...with this one.
5646 2003-08-22 Jason Eckhardt <jle@rice.edu>
5648 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
5649 (output_delayed_branch): Remove prototype.
5650 (single_insn_src_p): Remove prototype.
5651 * config/i860/i860.c (single_insn_src_p): Remove function.
5652 (output_delayed_branch): Remove function.
5653 (output_delay_insn): Remove function.
5654 (va_start): Remove unconditional test and dead code, re-format.
5655 Fix coding style and spelling problems in various comments.
5656 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
5657 (blockage pattern): ...and use it here.
5658 (all define_peephole patterns related to delayed branches): Remove.
5659 Fix coding style and spelling problems in various comments.
5661 2003-08-22 Jason Eckhardt <jle@rice.edu>
5663 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
5664 Remove all uses of the PARAMS macro. Remove superflous prototypes.
5665 Convert all function definitions from traditional to ISO C90 syntax.
5666 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
5667 with 'GCC'. Remove all uses of the PARAMS macro.
5668 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
5669 * config/i860/i860.md: Likewise.
5670 * config/i860/sysv4.h: Likewise.
5671 * config/i860/varargs.asm: Likewise.
5673 2003-08-22 Jason Eckhardt <jle@rice.edu>
5675 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
5677 (tdesc_section): Add prototype.
5678 Update copyright dates.
5679 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
5680 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
5681 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
5682 (targetm): Likewise.
5683 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
5684 for '%d' where necessary.
5685 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
5686 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
5687 by UNITS_PER_WORD when referencing (likewise for .floats).
5688 (I860_SVR4_VARARGS): Rename...
5689 (I860_SVR4_VA_LIST): ...to this.
5690 Call build() with 't' rather than 'field'.
5691 (i860_rtx_costs): New function.
5692 (TARGET_RTX_COSTS): Define.
5693 (i860_internal_label): New function.
5694 (TARGET_ASM_INTERNAL_LABEL): Define.
5695 (i860_file_start): New function.
5696 Update copyright dates.
5697 * config/i860/i860.h (CPP_PREDEFINES): Remove.
5698 (TARGET_CPU_CPP_BUILTINS): Define.
5699 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
5700 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
5701 (ASM_FILE_START): Remove.
5702 (ASM_FILE_START_1): Remove.
5703 (ASM_GLOBALIZE_LABEL): Remove.
5704 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
5705 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
5706 with targetm.asm_out.internal_label.
5707 Update copyright dates.
5708 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
5709 (CPP_PREDEFINES): Remove.
5710 (TARGET_OS_CPP_BUILTINS): Define.
5711 (GLOBAL_ASM_OP): Define.
5712 (ASM_FILE_START): Remove.
5713 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
5714 (TARGET_ASM_FILE_START): Define.
5715 Update copyright dates.
5717 2003-08-22 Jason Eckhardt <jle@rice.edu>
5719 * gcc/config.gcc (i860-*-sysv4*): Add target.
5720 * config/i860/i860-protos.h: New.
5721 * config/i860/i860.c: New.
5722 * config/i860/i860.h: New.
5723 * config/i860/i860.md: New.
5724 * config/i860/sysv4.h: New.
5725 * config/i860/varargs.asm: New.
5726 * config/i860/x-sysv4: New.
5728 2003-08-22 Jason Eckhardt <jle@rice.edu>
5730 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
5731 Remove all uses of PARAMS macro.
5732 Convert all function definitions to ISO C90 syntax.
5733 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
5734 * config/pa/fptr.c: Likewise.
5735 * config/pa/lib2funcs.asm: Likewise.
5736 * config/pa/long_double.h: Likewise.
5737 * config/pa/milli64.S: Likewise.
5738 * config/pa/pa-64.h: Likewise.
5739 * config/pa/pa-hpux.h: Likewise.
5740 * config/pa/pa-hpux10.h: Likewise.
5741 * config/pa/pa-hpux11.h: Likewise.
5742 * config/pa/pa-linux.h: Likewise.
5743 * config/pa/pa-modes.def: Likewise.
5744 * config/pa/pa-osf.h: Likewise.
5745 * config/pa/pa-pro-end.h: Likewise.
5746 * config/pa/pa.md: Likewise.
5747 * config/pa/pa32-linux.h: Likewise.
5748 * config/pa/pa64-linux.h: Likewise.
5749 * config/pa/pa64-hpux.h: Likewise.
5750 * config/pa/pa64-regs.h: Likewise.
5751 * config/pa/quadlib.c: Likewise.
5752 * config/pa/rtems.h: Likewise.
5753 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
5754 all uses of the PARAMS macro.
5755 * config/pa/pa.h: Likewise.
5756 * config/pa/som.h: Likewise.
5758 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
5759 Remove all uses of PARAMS macro.
5760 Convert all function definitions to ISO C90 syntax.
5761 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
5762 Remove all uses of PARAMS macro.
5763 * config/iq2000.h: Remove all uses of PARAMS macro.
5764 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
5766 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
5768 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
5769 * config/s390/s390.c (gen_consttable): Remove.
5770 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
5771 (s390_output_pool_entry): New function.
5772 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
5773 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
5774 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
5775 (UNSPECV_POOL_ENTRY): ... this new constant.
5776 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
5777 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
5778 ("*pool_entry"): ... and replace by this new insn.
5779 ("literal_pool_31"): Do not emit anchor label if pool empty.
5781 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
5782 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
5783 (s390_fixup_clobbered_return_reg): Remove.
5784 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
5785 (s390_return_addr_rtx): Always retrieve return address from save area
5786 slot. Use save_return_addr_p to force slot to be filled.
5787 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
5789 2003-08-22 Chris Demetriou <cgd@broadcom.com>
5791 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
5792 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
5793 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
5794 around SB-1 errata if TARGET_FIX_SB1 is set.
5795 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
5796 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
5798 2003-08-22 Roger Sayle <roger@eyesopen.com>
5800 * hashtable.c (ht_expand): Avoid calculating rehash for the common
5801 case that the first probe hits an empty hash table slot.
5803 2003-08-22 Mark Mitchell <mark@codesourcery.com>
5805 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
5807 2003-08-22 Mark Mitchell <mark@codesourcery.com>
5809 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
5810 (ptr_extend_plus_imm): ... this.
5811 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
5812 optimization in C++.
5813 (ia64_output_mi_thunk): Support ILP32 mode.
5815 2003-08-22 Bernardo Innocenti <bernie@develer.com>
5817 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
5819 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
5821 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5823 * config/i386/i386.c (const_int_1_operand): Simplify an
5826 2003-08-22 Alan Modra <amodra@bigpond.net.au>
5828 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
5829 * config/rs6000/ppc64-fp.c: Likewise.
5831 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5833 * cfgcleanup.c: Fix comment typos.
5834 * emit-rtl.c: Likewise.
5835 * optabs.c: Likewise.
5836 * ra-build.c: Likewise.
5837 * rtlanal.c: Likewise.
5840 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5842 * c-decl.c: Fix comment formatting.
5843 * cfgrtl.c: Likewise.
5844 * combine.c: Likewise.
5845 * convert.c: Likewise.
5846 * dominance.c: Likewise.
5847 * dwarf2out.c: Likewise.
5848 * dwarfout.c: Likewise.
5849 * expmed.c: Likewise.
5850 * fold-const.c: Likewise.
5852 * genattrtab.c: Likewise.
5853 * ggc-common.c: Likewise.
5854 * mips-tfile.c: Likewise.
5855 * regmove.c: Likewise.
5857 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5859 * builtin-attrs.def: Fix comment formatting.
5860 * c-pretty-print.c: Likewise.
5861 * diagnostic.h: Likewise.
5862 * langhooks.h: Likewise.
5863 * recog.c: Likewise.
5864 * simplify-rtx.c: Likewise.
5865 * tree.def: Likewise.
5867 2003-08-22 Bernardo Innocenti <bernie@develer.com>
5869 * config/m68k/m68k-protos.h: Convert to ISO C90.
5870 * config/m68k/m68k.c: Likewise.
5872 2003-08-21 Bernardo Innocenti <bernie@develer.com>
5873 Paul Dale <pauli@snapgear.com>
5874 Peter Barada <peter@baradas.org>
5876 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
5879 2003-08-21 Zack Weinberg <zack@codesourcery.com>
5881 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
5882 * config.gcc (*-*-openbsd): Don't set tm_file.
5883 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
5884 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
5885 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
5886 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
5887 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
5888 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
5889 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
5890 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
5891 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
5892 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
5893 xscale-*-coff): Use explicit and complete lists of target headers
5894 to include. Move definitions to tm_defines where appropriate.
5895 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
5896 not-yet-contributed configuration.
5898 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
5899 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
5900 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
5901 * config/i386/nto.h, config/iq2000/iq2000.h,
5902 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
5903 * config/m68k/linux.h, config/m68k/m68k-aout.h
5904 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
5905 * config/m68k/netbsd.h, config/m68k/openbsd.h
5906 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
5907 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
5908 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
5909 Remove includes of other target config headers, and
5910 definitions of macros moved to tm_defines lists. Add #undefs
5911 where now necessary to prevent redefinition warnings.
5913 * config/h8300/coff.h: New file split out of...
5914 * config/h8300/elf.h: ...here.
5915 * config/m68k/hp320base.h: New file split out of...
5916 * config/m68k/hp320.h: ...here.
5917 * config/rs6000/lynxbase.h: New file split out of...
5918 * config/rs6000/lynx.h: ...here.
5920 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
5921 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
5923 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
5924 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
5925 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
5926 Remove unnecessary #ifndef.
5927 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
5928 [under IN_LIBGCC2] with config/.
5930 2003-08-21 Per Bothner <pbothner@apple.com>
5932 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
5934 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
5935 by return_at_eof check. Always call _cpp_pop_buffer at end.
5937 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
5940 * config/h8300/h8300.md (two anonymous patterns): Remove.
5942 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
5944 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
5945 * config/mips/mips.c (function_arg_pass_by_reference): Never return
5948 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
5950 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
5951 and similarly in (A | C) == D where C & ~D != 0.
5953 2003-08-20 Geoffrey Keating <geoffk@apple.com>
5956 * configure.in: When testing with_libs and with_headers, treat
5957 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
5958 * configure: Regenerate.
5960 2003-08-20 Peter Barada <peter@baradas.org>
5962 * longlong.h (umul_ppmm): Add ColdFire support.
5964 2003-08-20 Peter Barada <peter@baradas.org>
5965 Bernardo Innocenti <bernie@develer.com>
5967 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
5968 * config/m68k/m68k.h: Likewise.
5969 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
5970 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
5971 * config/m68k/linux.h: Likewise.
5972 * config/m68k/m68k.c: Likewise.
5973 * config/m68k/m68k.md: Likewise.
5974 * config/m68k/m68kelf.h: Likewise.
5975 * config/m68k/netbsd-elf.h: Likewise.
5976 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
5978 2003-08-20 Bernardo Innocenti <bernie@develer.com>
5980 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
5981 * config/m68k/m68k.md: Likewise.
5983 2003-08-20 Mark Mitchell <mark@codesourcery.com>
5987 2003-08-19 Mark Mitchell <mark@codesourcery.com>
5988 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
5989 types with precisions other than those given by native machine
5992 2003-08-20 Gunther Nikl <gni@gecko.de>
5994 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
5995 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
5996 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
5997 * config/m68k/m68k.md (anonymous define_insn): Likewise
5998 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
5999 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
6000 code selected by NO_ASM_FMOVECR
6002 2003-08-20 Gunther Nikl <gni@gecko.de>
6004 * config/m68k/m68k.c (output_move_const_into_data_reg,
6005 output_move_himode): unify MOTOROLA/MIT handling of moveq
6006 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
6009 2003-08-20 Gunther Nikl <gni@gecko.de>
6011 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
6013 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
6014 HOST_WIDE_INT_PRINT_DEC with %wd
6016 2003-08-20 Loren James Rittle <ljrittle@acm.org>
6018 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
6021 2003-08-20 Roger Sayle <roger@eyesopen.com>
6024 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
6025 operands before calling tree_int_cst_lt when performing associative
6028 2003-08-20 Jason Merrill <jason@redhat.com>
6030 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
6031 (EXPR_CHECK): Don't check for 'r' or 's' if we're
6032 checking IS_EXPR_CODE_CLASS.
6033 * calls.c (calls_function_1): Likewise.
6034 * fold-const.c (fold): Likewise.
6035 * tree.c (iterative_hash_expr): Likewise.
6036 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
6038 2003-08-20 Gunther Nikl <gni@gecko.de>
6040 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
6041 depending on MOTOROLA_BSR
6042 * config/m68k/m68k.md (anonymous define_insn): Likewise
6044 2003-08-20 Jason Merrill <jason@redhat.com>
6046 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
6047 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
6048 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
6049 * dojump.c (do_jump): Likewise.
6050 * fold-const.c (operand_equal_p, fold): Likewise.
6051 (tree_expr_nonnegative_p): Likewise.
6053 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
6054 TYPE_USER_ALIGN for FIELD_DECLs.
6056 * attribs.c (decl_attributes): Rebuild the function pointer type after
6057 changing the target type.
6058 * tree.c (get_qualified_type): Also check that the attributes match.
6060 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
6062 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
6063 * objc/config-lang.in (stagestuff): ... to here.
6065 2003-08-19 Mark Mitchell <mark@codesourcery.com>
6068 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
6069 NOP_EXPR) when necessary.
6070 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
6071 types with precisions other than those given by native machine
6074 2003-08-19 Geoffrey Keating <geoffk@apple.com>
6076 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
6077 because some macro is defined.
6079 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
6081 * config/i386/darwin.h (ASM_SPEC): New.
6082 (SUBTARGET_EXTRA_SPECS): New.
6083 * config/rs6000/darwin.h (ASM_SPEC): New.
6084 (SUBTARGET_EXTRA_SPECS): New.
6085 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
6086 a cross-compiler between two different processors on Darwin.
6087 * configure: Regenerate.
6089 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
6091 * builtins.c: Fix comment typos.
6092 * c-common.c: Likewise.
6093 * c-decl.c: Likewise.
6094 * c-pretty-print.c: Likewise.
6095 * cfgbuild.c: Likewise.
6096 * cfglayout.c: Likewise.
6097 * cfgloopanal.c: Likewise.
6098 * cgraphunit.c: Likewise.
6099 * cppfiles.c: Likewise.
6100 * dwarfout.c: Likewise.
6102 * fold-const.c: Likewise.
6104 * ggc-page.c: Likewise.
6105 * haifa-sched.c: Likewise.
6106 * pretty-print.c: Likewise.
6109 * value-prof.c: Likewise.
6111 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
6113 * c-decl.c: Follow spelling conventions.
6114 * cppfiles.c: Likewise.
6116 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
6118 * c-common.c: Fix comment formatting.
6119 * c-common.h: Likewise.
6120 * c-decl.c: Likewise.
6121 * cppinit.c: Likewise.
6122 * cpplib.h: Likewise.
6123 * emit-rtl.c: Likewise.
6124 * input.h: Likewise.
6125 * line-map.h: Likewise.
6128 * simplify-rtx.c: Likewise.
6130 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
6132 * unwind-c.c: Add libgcc-style exception.
6133 * unwind-dw2.c: Likewise.
6134 * unwind-pe.h: Likewise.
6135 * unwind-sjlj.c: Likewise.
6136 * unwind.inc: Likewise.
6138 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
6140 PR c/5582 PR c++/10538
6141 * langhooks-def.h (lhd_decl_uninit): Declare.
6142 (LANG_HOOKS_DECL_UNINIT): New macro.
6143 (LANG_HOOKS_INITIALIZER): Adjust.
6144 * langhooks.h (struct lang_hooks): Add new field
6146 * langhooks.c (lhd_decl_uninit): Define.
6147 * c-common.c (c_decl_uninit_1): New function.
6148 (c_decl_uninit): New function.
6149 (warn_init_self): Define.
6150 * c-common.h (c_decl_uninit): Declare.
6151 (warn_init_self): Declare.
6152 * c.opt: Introduce -Winit-self.
6153 * c-opts.c (c_common_handle_options): Set warn_init_self.
6154 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
6155 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
6156 * function.c (uninitialized_vars_warning): Call the language hook.
6157 * doc/invoke.texi: Document -Winit-self.
6159 2003-08-19 Chris Demetriou <cgd@broadcom.com>
6161 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
6162 to use better predicates and constraints. Define new
6163 instruction to handle "trap_if" with DI-mode arguments.
6164 (conditional_trap): FAIL if trap code is not 0.
6166 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
6168 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
6169 strstr with $pb to a strcompare with "<pic base>"
6170 (ix86_output_addr_diff_elt): Output the real pic base.
6172 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
6174 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
6175 (LANG_HOOKS_INITIALIZER): Correct.
6176 * c-lang.c: Likewise.
6178 2003-08-19 Jan Hubicka <jh@suse.cz>
6180 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
6181 (cgraph_varpool_mark_needed_node): Likewise.
6182 * cgraph.h (notice_global_symbol): Declare
6183 * varasm.c (notice_global_symbol): Break out from ...
6184 (assemble_start_function): ... here; update for variables.
6185 (assemble_variable): Use notice_global_symbol.
6187 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
6189 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
6190 expect SFmode and DFmode arguments to be passed in FPRs,
6191 regardless of the underlying type.
6193 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
6196 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
6197 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
6199 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
6202 * c-typeck.c (set_init_index): Check for negative index.
6204 2003-08-18 Bob Wilson <bob.wilson@acm.org>
6206 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
6208 * config/xtensa/crtn.asm (_init, _fini): Likewise.
6209 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
6210 __umodsi3, __modsi3): Likewise.
6211 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
6214 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
6216 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
6218 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
6220 * config/mips/mips.md: Quote C code in braces. Remove use of
6221 fake const0_rtx operands. Remove double backslashes. Use \;.
6222 Remove workarounds for bogus warnings.
6224 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
6226 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
6227 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
6228 rather than TARGET_MIPS4300.
6229 (mulsf3_internal, mulsf3_r4300): Likewise.
6231 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
6233 * config/mips/mips.md: Renumber unspecs. Clean up comments.
6235 2003-08-17 Roger Sayle <roger@eyesopen.com>
6237 * simplify-rtx.c (associative_constant_p): New function to test
6238 whether an RTX expression is an immediate constant.
6239 (simplify_associative_operation): New function to perform some
6240 reassociation optimizations of associative binary expressions.
6241 (simplify_binary_operation): Use simplify_associative_operation
6242 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
6243 Floating point expressions are only reassociated when unsafe
6244 math optimizations are permitted.
6246 2003-08-17 Andreas Jaeger <aj@suse.de>
6248 * config/alpha/alpha.md: Remove usage of PARAMS.
6250 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
6251 * config/i386/i386-interix.h: Likewise.
6252 * config/i386/winnt.c: Likewise.
6253 * config/i386/cygming.h: Likewise.
6254 * config/i386/cygwin2.c: Likewise.
6255 * config/darwin.c: Likewise.
6256 * config/darwin-c.c: Likewise.
6257 * config/darwin-protos.h: Likewise.
6258 * config/darwin.h: Likewise.
6259 * config/s390/s390-protos.h: Likewise.
6260 * config/s390/s390.c: Likewise.
6261 * config/ia64/ia64.c: Likewse
6262 * config/ia64/ia64-protos.h: Likewise.
6263 * config/ia64/ia64-c.c: Likewise.
6265 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6267 * config/sparc/sparc.c: Convert to ISO C.
6269 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
6270 * config/sparc/sparc.c: Likewise.
6272 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
6275 * stmt.c (expand_expr_stmt_value): Don't warn about any void
6278 2003-08-16 Jan Hubicka <jh@suse.cz>
6280 * i386.c (ix86_fntype_regparm): Rename from ...
6281 (ix86_function_regparm): ... this one; add fastcall and local
6283 (ix86_function_ok_for_sibcall): Update.
6284 (ix86_return_pops_args): Likewise.
6285 (init_cumulative_args): Likewise.
6286 (x86_can_output_mi_thunk): Likewise.
6287 (function_arg): Fix formating.
6288 (x86_this_parameter): Fix fastcall.
6289 (x86_output_mi_thunk): Likewise.
6291 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
6292 body as reachable; mark nested functions as needed too.
6293 (dump_cgraph): Do not output global.calls.
6294 * cgraph.h (cgraph_global_info): Kill.
6295 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
6296 (record_call_1): Speedup.
6297 (cgraph_analyze_function): Break out from ...; compute inlining
6299 (cgraph_finalize_compilation_unit): ... here.
6300 (cgraph_mark_inline): Kill computation of calls.
6301 (cgraph_decide_inlining): Do not compute most of initial values.
6303 2003-08-14 Roger Sayle <roger@eyesopen.com>
6305 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
6306 to negate if either operand is easy to negate, if we don't care
6307 about sign-dependent rounding.
6308 (negate_expr): Make the logic to negate a REAL_CST explicit.
6309 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
6310 that's easy to negate, if we don't honor sign-dependent rounding.
6311 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
6312 negate, and the symmetric A * -B as -A * B if A is easy to negate.
6313 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
6314 -C/D if B and C are cheap to negate. Add an explicit rule to
6315 optimize X/-1.0 as -X when we don't care about signaling NaNs.
6317 2003-08-14 Zack Weinberg <zack@codesourcery.com>
6319 * Makefile.in (tm_file): Rename tm_include_list.
6320 (tm_p_file): Rename tm_p_include_list.
6321 (build_xm_file): Rename build_xm_include_list.
6322 (host_xm_file): Rename host_xm_include_list.
6323 (xm_file): Rename xm_include_list.
6324 (xm_file_list): Add to be substituted.
6325 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
6327 (bt-load.o): Add missing dependency on $(TM_H).
6328 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
6329 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
6330 build_xm_file, generate both *_file_list and *_include_list
6331 values from it. (xm_file_list was formerly not being generated.)
6332 In *_include_list, prefix the names of all headers found in
6333 $(srcdir)/config with config/. In each loop, consider only
6334 the special case files that can actually appear in that list.
6335 AC_SUBST all *_file_list and all *_include_list variables; do
6336 not AC_SUBST the plain *_file variables.
6337 * configure: Regenerate.
6339 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6341 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
6343 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6345 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
6347 (attr_length_call): Include it here. Improve length estimate for
6349 (output_call): Use targetm.binds_local_p.
6351 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6353 * builtins.c (CASE_MATHFN): New helper macro.
6354 (mathfn_built_in): Simplify and sort.
6356 * protoize.c (substr): Delete, callers changed to `strstr'.
6358 2003-08-13 Zack Weinberg <zack@codesourcery.com>
6360 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
6361 * config/iq2000/xm-iq2000.h: Delete file.
6363 2003-08-13 Geoffrey Keating <geoffk@apple.com>
6365 * gengtype.c (walk_type): Process a subobject before processing
6366 the pointer that points to the subobject.
6368 2003-08-13 Per Bothner <pbothner@apple.com>
6370 * regclass.c (init_reg_modes): Make non-static.
6371 Rename to init_reg_modes_once per new naming convention.
6372 (init_regs): Don't call init_reg_modes here.
6373 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
6374 * rtl.h (init_reg_modes_once): New declaration.
6375 * toplev.c (backend_init): Call init_regs after init_emit_once.
6377 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
6379 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
6380 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
6382 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
6384 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
6385 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
6387 2003-08-13 Dale Johannesen <dalej@apple.com>
6389 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
6390 handling of decrement-and-branch farther than 32 bits.
6392 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
6394 * configure.in (make_compare_target): Move test to ...
6395 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
6396 * configure: Regenerate.
6398 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
6400 * config/mips/iris6.h: Convert to C90 prototypes.
6401 * config/mips/irix6-libc-compat.c: Likewise.
6402 * config/mips/mips-protos.h: Likewise.
6403 * config/mips/mips.c: Likewise.
6405 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
6407 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
6408 for selected machines. Comment heavily.
6409 fixinc/fixincl.x: Rebuild.
6410 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
6412 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
6414 * config/mips/mips.h: Tweak various comments.
6415 * config/mips/mips.c: Likewise.
6417 2003-08-11 James E Wilson <wilson@tuliptree.org>
6419 PR optimization/11319
6421 * alias.c (find_base_value, case REG): Return 0 not src if no base
6424 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6426 * gcse.c (gmalloc): Fix last change.
6428 2003-08-11 Roger Sayle <roger@eyesopen.com>
6430 * simplify-rtx.c (simplify_binary_operation): Replace calls to
6431 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
6432 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
6433 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
6435 2003-08-11 Roger Sayle <roger@eyesopen.com>
6437 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
6438 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
6439 typecode for an ABS_EXPR.
6441 * doc/c-tree.texi: Document ABS_EXPR.
6443 2003-08-11 Roger Sayle <roger@eyesopen.com>
6445 * fold-const.c (fold): Optimize any associative floating point
6446 operator with -funsafe-math-optimizations, not just MULT_EXPR.
6448 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
6450 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
6451 information in SHmedia case too.
6452 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
6454 (__set_fpscr): Use an access via GOT for PIC case.
6456 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
6458 * configure.in (intermodule): Make switch test more portable.
6459 * configure: Regenerate.
6461 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
6463 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
6464 (restrap): Likewise.
6466 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6468 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
6469 (grealloc): Size argument is a size_t.
6470 (gcalloc): New function. Use throughout in lieu of
6473 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
6475 * config/ia64/ia64.c (ia64_reorg): Likewise.
6476 * conflict.c (conflict_graph_new): Likewise.
6477 * fixinc/fixincl.c (run_compiles): Likewise.
6478 * genattrtab.c (optimize_attrs): Likewise.
6479 * genrecog.c (new_decision): Likewise.
6480 * haifa-sched.c (schedule_block): Likewise.
6481 * hashtable.c (ht_create): Likewise.
6483 2003-08-11 Bob Wilson <bob.wilson@acm.org>
6485 * config/xtensa/lib2funcs.S: Fix whitespace.
6486 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
6487 syntax where appropriate. Remove unnecessary backslash escapes.
6488 Reformat comments and fix some code formatting.
6489 (extendqisi2): Rearrange conditional.
6490 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
6491 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
6494 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
6496 * config/mips/mips.c: Various formatting fixes.
6497 (override_options): Resync -mtune handling with gas.
6498 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
6499 * config/mips/mips.h: More formatting fixes.
6500 (mips_abi): Move declaration.
6501 * config/mips/mips.md (exception_receiver): Add mode to
6504 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
6506 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
6508 (bdesc_1arg): Remove evsplati and evsplatfi.
6510 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
6512 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
6515 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6517 * builtins.c (expand_builtin_strcat): Optimize constant strings.
6519 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
6521 * pretty-print.c (pp_base_indent): Rename from pp_indent.
6522 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
6523 (struct c_pretty_print_info): Add more fields.
6524 (pp_c_left_paren): Move to c-pretty-print.c.
6525 (pp_c_right_paren): Likewise.
6526 (pp_c_left_brace): Likewise.
6527 (pp_c_right_brace): Likewise.
6528 (pp_c_left_bracket): Likewise.
6529 (pp_c_right_bracket): Likewise.
6530 (pp_c_declarator): Declare.
6531 (pp_c_direct_declarator): Likewise.
6532 (pp_c_specifier_qualifier_list): Likewise.
6533 (pp_c_type_id): Likewise.
6534 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
6535 (pp_c_type_qualifier_list): New.
6536 (pp_c_pointer): Likewise.
6537 (pp_c_parameter_type_list): Likewise.
6538 (pp_c_function_definition): Likewise.
6539 (pp_c_id_expression): Likewise.
6540 (pp_c_simple_type_specifier): Tidy.
6541 (pp_c_unary_expression): Likewise.
6542 (pp_c_expression): Likewise.
6543 (pp_c_pretty_printer_init): Likewise.
6544 (pp_c_specifier_qualifier_list): Rework..
6545 (pp_c_abstract_declarator): Likewise.
6546 (pp_c_postfix_expression): Likewise.
6547 (pp_c_primary_expression): Likewise.
6548 (pp_c_cast_expression): Likewise.
6549 (pp_c_direct_abstract_declarator): Likewise.
6550 (pp_c_storage_class_specifier): Likewise.
6551 (pp_c_function_specifier): Likewise.
6552 (pp_c_declaration_specifiers): Likewise.
6553 (pp_c_direct_declarator): Likewise.
6554 (pp_c_declarator): Likewise.
6555 (pp_c_declaration): Likewise.
6556 (pp_c_statement): Likewise.
6557 (pp_c_integer_constant): Rename from pp_c_integer_literal.
6558 (pp_c_character_constant): Rename from pp_c_character_literal.
6559 (pp_c_bool_constant): Rename from pp_c_bool_literal.
6560 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
6561 (pp_c_floating_constant): Rename from pp_c_real_literal.
6562 (pp_c_constant): Rename from pp_c_literal.
6563 * c-lang.c: Include diagnostic.h and c-pretty-print.h
6564 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
6565 (c_initialize_diagnostics): New.
6566 * Makefile.in (c-lang.o): Update dependency.
6568 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
6570 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
6572 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
6574 * config/mips/mips.c (mips_no_mips16_string): Remove.
6575 (override_options): Don't handle -mips16 as part of -mipsN.
6576 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
6577 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
6578 (TARGET_OPTIONS): Remove -mno-mips16.
6580 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
6582 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
6583 (coprocessor2_operand): Likewise.
6584 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
6585 (lookup_name): Remove declaration.
6586 (abort_with_insn): Remove. Replace all uses with fatal_insn.
6587 (mips16, mips_abicalls): Remove.
6588 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
6589 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
6590 (coprocessor_operand, coprocessor2_operand): Remove.
6591 (override_options): Don't set mips16 or mips_abicalls.
6592 (print_operand): Don't expect SIGN_EXTEND operands.
6593 (mips_secondary_reload_class): Likewise.
6594 (mips_output_conditional_branch): Remove disabled long-branch code.
6595 * config/mips/mips.h (call_used_regs): Remove declaration.
6596 (may_call_alloca): Likewise.
6597 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
6598 (mips_abicalls, mips16): Remove declarations.
6599 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
6600 (CC1_SPEC): Remove outdated comment.
6601 (MIPS_VERSION, MACHINE_TYPE): Remove.
6602 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6603 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
6604 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
6605 (PUSH_ROUNDING): Likewise.
6606 (ASSEMBLER_SCRATCH_REGNUM): Remove.
6607 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
6608 and mips16 with TARGET_MIPS16.
6610 2003-08-09 Per Bothner <pbothner@apple.com>
6612 * cppinit.c (cpp_read_main_file): Split out source-independent
6613 initialization to separate function ...
6614 (cpp_post_options): New function.
6615 * cppfiles.c (cpp_stack_file): Rename public name to ...
6616 (_cpp_stack_file): New internal function name.
6617 * cpplib.h: Update accordingly.
6618 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
6619 (cpp_read_main_file): Don't initialize line here.
6620 * c-opts.c (c_common_post_options): Call cpp_post_options.
6621 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
6622 * fix-header.c (read_scan_file): Call cpp_post_options.
6624 2003-08-09 Per Bothner <per@bothner.com>
6626 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
6628 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6630 * pa.c (pa_asm_output_mi_thunk): Fix typo.
6632 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
6634 PR preprocessor/11839
6635 * cppfiles.c (open_file): Handle ENOTDIR.
6637 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
6640 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
6642 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6644 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
6645 source/destination is not a register operand.
6647 2003-08-08 Richard Henderson <rth@redhat.com>
6650 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
6651 RETURN_ADDRESS_POINTER_REGNUM.
6652 (ia64_expand_prologue): Don't frob it.
6653 (ia64_output_function_epilogue): Likewise.
6654 (ia64_return_addr_rtx): New.
6655 (ia64_split_return_addr_rtx): New.
6656 * config/ia64/ia64-protos.h: Update.
6657 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
6658 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
6659 (GENERAL_REGNO_P): Don't check it.
6660 (AR_*_REGNUM): Renumber.
6661 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
6662 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
6663 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
6664 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
6665 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
6666 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
6667 (movdi_ret_addr): New.
6669 2003-08-08 Geoffrey Keating <geoffk@apple.com>
6671 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
6673 2003-08-08 Roger Sayle <roger@eyesopen.com>
6675 * tree.h (get_identifier) Define a macro form of get_identifier
6676 that calls get_identifier_with_length when the string is constant.
6677 (get_identifier_with_length): Change type of second argument to
6678 size_t in prototype.
6679 * stringpool.c (get_identifier): Undefine the macro before giving
6680 the function definition.
6681 (get_identifier_with_length): Change type of second argument to
6682 size_t in function definition.
6683 * hashtable.c (calc_hash): Change type of second argument to size_t.
6684 (ht_lookup): Change type of third argument to size_t. Reorganize
6685 to speed-up the cases where the hash table slot is empty, or the
6686 first probe matches (i.e. there isn't a collision).
6687 * hashtable.h (ht_lookup): Adjust function prototype.
6689 2003-08-08 Bernardo Innocenti <bernie@develer.com>
6693 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
6695 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
6697 * common.opt: Add debug switches.
6698 * flags.h (use_gnu_debug_info_extensions): Boolify.
6699 * opts.c (write_symbols, debug_info_level,
6700 use_gnu_debug_info_extensions): Move from toplev.c.
6701 (set_debug_level): New.
6702 (common_handle_options): Handle debug switches.
6703 (print_help): Display target options directly.
6704 * toplev.c (debug_hooks): Don't initialize.
6705 (write_symbols, debug_info_level,
6706 use_gnu_debug_info_extensions): Move to opts.c.
6707 (debug_args, display_help, decode_g_option): Remove.
6708 (process_options): Set no debug if level zero here,
6709 and no-debug-hooks. Error here if impossible debug format selected.
6710 * toplev.h (display_help, decode_g_option): Remove.
6712 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
6714 * tree.c (get_file_function_name_long): Fix size of alloca() area.
6716 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
6718 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
6719 and gcc_cv_prog_cmp_skip.
6720 * configure: Regenerate.
6722 2003-08-08 Stan Cox <scox@redhat.com>
6724 * config/iq2000: New port.
6725 * config.gcc (iq2000-*-elf): Added.
6726 * doc/install.texi (Specific): Add iq2000 description.
6728 2003-08-08 Andreas Schwab <schwab@suse.de>
6730 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
6731 and insert missing empty argument.
6732 * configure: Regenerate.
6734 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6736 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
6737 (attr_length_millicode_call): Likewise.
6738 (attr_length_call): Likewise. Revise some maximum insn lengths.
6739 (attr_length_indirect_call): Likewise.
6740 (output_call): Fix thinko that added extra nop.
6741 * pa.h (IN_NAMED_SECTION_P): Define.
6744 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
6745 __STDC_EXT__ when using C++ dialect.
6747 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
6749 * sh.c (calc_live_regs): If the return address pointer is live,
6751 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
6752 for saves / restores.
6753 (sh_expand_epilogue): If sh_media_register_for_return returns a
6754 register number, flag the instructions that restores PR_MEDIA_REG
6756 Remove dead update of offset.
6757 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
6758 we can use the result of get_hard_reg_initial_val.
6759 * sh.md (UNSPEC_RA): New constant.
6760 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
6761 (load_ra). Handle UNSPEC_RA.
6762 (sibcall_media): Use PR_MEDIA_REG.
6764 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
6765 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
6766 needs saving on SHmedia.
6768 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
6770 * config/s390/s390.md: Replace all occurrences of \\t with \t.
6772 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
6774 * local-alloc.c (combine_regs): Fix comment typo.
6776 2003-08-06 Zack Weinberg <zack@codesourcery.com>
6778 * c-decl.c (builtin_decls): Replace with first_builtin_decl
6779 and last_builtin_decl.
6780 (c_init_decl_processing): Initialize both.
6781 (c_reset_state): Iterate from first_builtin_decl to
6782 last_builtin_decl inclusive to reintroduce builtins.
6784 2003-08-06 David Mosberger <davidm@hpl.hp.com>
6786 * doc/extend.texi (Function Attributes): Document the IA-64 version
6787 of the "model" attribute.
6789 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
6790 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
6791 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
6793 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
6794 (ia64_encode_section_info): Likewise.
6795 (ia64_attribute_table): Add "model" attribute.
6796 (TARGET_ENCODE_SECTION_INFO): Define.
6797 (small_addr_symbolic_operand): New function.
6798 (got_symbolic_operand): Return 0 for a symbolref to an object
6799 in the small address area.
6800 (enum ia64_addr_area): New type.
6801 (small_ident1): New variable.
6802 (small_ident2): Likewise.
6803 (init_idents): New function.
6804 (ia64_get_addr_area): Likewise.
6805 (ia64_encode_addr_area): Likewise.
6806 (ia64_encode_section_info): Likewise.
6807 (ia64_expand_load_address): For symbolic references to objects in
6808 the small-address-area, load the address via gen_rtx_SET() (which,
6809 eventually, will expand into "addl").
6811 2003-08-06 Per Bothner <pbothner@apple.com>
6813 * line-map.h (fileline): New typedef.
6814 (struct line_map, linemap_add, linemap_lookup): Use it.
6815 * input.h (struct location_s): Comment notes that long-term we want
6816 to replace it by fileline.
6818 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
6820 Fix SHcompact exception handling:
6821 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
6822 by the prologue, return a MEM with return_address_pointer_rtx
6824 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
6825 (RETURN_ADDR_OFFSET): Don't define.
6826 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
6827 registers that are visible in compact mode. Show that SHmedia
6828 registers still exist in compact mode, even if there are not
6830 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
6831 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
6832 and DW_EH_PE_pcrel for pic data.
6833 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
6834 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
6835 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
6836 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
6837 * sh.md (movsi_media-1): New splitter.
6839 2003-08-06 Graeme Peterson <gp@qnx.com>
6841 * config/i386/nto.h: New.
6842 * config/i386/t-nto: New.
6843 * config.gcc (i[34567]86-*-nto-qnx*): New.
6845 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
6847 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
6849 2003-08-06 Alan Modra <amodra@bigpond.net.au>
6851 * calls.c (load_register_parameters): Arrange for call_fusage to
6852 report the whole register as used when shifting to the msb.
6854 2003-08-05 Roger Sayle <roger@eyesopen.com>
6856 * builtins.c (expand_builtin): When not optimizing, call the library
6857 function for all builtins that have library functions (except alloca).
6859 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
6861 * c.opt: Introduce -fworking-directory.
6862 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
6863 * c-common.h (flag_working_directory): Declare.
6864 * c-common.c (flag_working_directory): Define.
6865 * c-opts.c (c_common_handle_options): Set it.
6866 (sanitize_cpp_opts): Set...
6867 * cpplib.h (struct cpp_options): ... working_directory option.
6868 (struct cpp_callbacks): Add dir_change.
6869 * cppinit.c (read_original_filename): Call...
6870 (read_original_directory): New. Look for # 1 "directory//"
6872 (cpp_read_main_file): Call dir_change callback if working_directory
6874 * gcc.c (cpp_unique_options): Pass -g*.
6875 * c-lex.c (cb_dir_change): New.
6876 (init_c_lex): Set dir_change callback.
6877 * toplev.c (src_pwd): New static variable.
6878 (set_src_pwd, get_src_pwd): New functions.
6879 * toplev.h (get_src_pwd, set_src_pwd): Declare.
6880 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
6881 * dwarf2out.c (gen_compile_unit_die): Likewise.
6882 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
6884 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
6886 * pretty-print.h (pp_set_line_maximum_length): Make macro.
6887 (pp_set_prefix): Likewise.
6888 (pp_destroy_prefix): Likewise.
6889 (pp_remaining_character_count_for_line): Likewise.
6890 (pp_clear_output_area): Likewise.
6891 (pp_formatted_text): Likewise.
6892 (pp_last_position_in_text): Likewise.
6893 (pp_emit_prefix): Likewise.
6894 (pp_append_text): Likewise.
6895 (pp_flush): Likewise.
6896 (pp_format_text): Likewise.
6897 (pp_format_verbatim): Likewise.
6898 (pp_tree_identifier): Tidy.
6899 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
6900 (pp_base_format_verbatim): Rename from pp_format_verbatim.
6901 (pp_base_flush): Rename from pp_flush.
6902 (pp_base_set_line_maximum_length): Rename from
6903 pp_set_line_maximum_length.
6904 (pp_base_clear_output_area): Rename from pp_clear_output_area.
6905 (pp_base_set_prefix): Rename from pp_set_prefix.
6906 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
6907 (pp_base_emit_prefix): Rename from pp_emit_prefix.
6908 (pp_base_append_text): Rename from pp_append_text.
6909 (pp_base_formatted_text): Rename from pp_formatted_text.
6910 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
6911 (pp_base_remaining_character_count_for_line): Rename from
6912 pp_remaining_character_count_for_line.
6913 * diagnostic.h (diagnostic_format_decoder): Tidy.
6914 (diagnostic_flush_buffer): Likewise.
6915 * c-pretty-print.h: (pp_c_string_literal): Declare.
6916 (pp_c_real_literal): Likewise.
6917 (pp_c_integer_literal): Likewise.
6918 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
6920 (pp_c_character_literal): Tidy.
6921 (pp_c_string_literal): Make public.
6922 (pp_c_bool_literal): Likewise.
6923 (pp_c_integer_literal): Likewise.
6924 (pp_c_real_literal): Likewise.
6926 * Makefile.in (C_PRETTY_PRINT_H): New variable.
6927 (c-pretty-print.o): Update dependence.
6929 2003-08-05 Chris Demetriou <cgd@broadcom.com>
6931 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
6932 ".set nomacro" state.
6933 (fix_truncsfsi2_macro): Likewise.
6935 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
6937 * tree.h (DID_INLINE_FUNC): Remove macro.
6938 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
6939 add tree check for FUNCTION_DECL.
6940 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
6941 (struct tree_decl): Rename inlined_function_flag to
6942 declared_inline_flag.
6943 * c-common.h (c_lang_decl): Remove.
6944 (DECL_ESTIMATED_INSNS): Remove.
6945 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
6946 (DECL_DECLARED_INLINE_P): Remove.
6947 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
6948 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
6949 (finish_function): Make uninlinable a bool. Fixup call to
6950 tree_inlinable_function_p() and fix some code style issues.
6951 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
6952 * cgraph.c (dump_cgraph): Likewise.
6953 * cgraphunit.c (cgraph_decide_inlining): Likewise
6954 (cgraph_finalize_compilation_unit): Likewise.
6955 Also update call to tree_inlinable_function_p().
6956 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
6957 look at DECL_DECLARED_INLINE and reverse logic.
6958 * print-tree.c (print_node): Likewise.
6959 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
6960 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
6962 * tree-inline.c (inlinable_function_p): Split up in this function to
6963 check for basic inlining inhibiting conditions, and new
6964 limits_allow_inlining() function. Warn if inlining is impossible
6965 because the inline candidate calls alloca or uses sjlj exceptions.
6966 (limits_allow_inlining): this new function to check if the inlining
6967 limits are satisfied. Throttle from currfn_max_inline_insns, not from
6968 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
6969 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
6971 (tree_inlinable_function_p): Make a bool. Update call to
6972 inlinable_function_p
6973 (expand_call_inline): Use limits_allow_inlining() when not in
6974 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
6975 instead see if the function was declared `inline'.
6977 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
6979 * gcse.c (try_replace_reg): Fix updating of note.
6981 2003-08-04 Roger Sayle <roger@eyesopen.com>
6984 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
6985 logic in negate_expr, i.e. we don't invert (A-B) for floating
6986 point types unless flag_unsafe_math_optimizations.
6988 2003-08-04 Roger Sayle <roger@eyesopen.com>
6990 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
6991 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
6992 for floating point expressions with -ffast-math.
6993 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
6994 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
6996 2003-08-04 Roger Sayle <roger@eyesopen.com>
6998 * c-common.c (flag_noniso_default_format_attributes): Delete.
6999 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
7000 (c_attrs_initialized): Delete.
7001 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
7002 always call c_init_attributes.
7003 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
7004 set c_attrs_initialized when done.
7005 (c_common_insert_default_attributes): Delete.
7006 * c-common.h (flag_noniso_default_format_attributes): Delete.
7007 (c_coomon_insert_default_attributes): Delete prototype.
7008 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
7009 flag_noniso_default_format_attributes.
7011 * c-decl.c (c_insert_default_attributes): Delete.
7012 * c-tree.h (c_insert_default_attributes): Delete prototype.
7014 * attribs.c (decl_attributes): Don't call insert_default_attributes
7015 langhook. Update function description comment.
7016 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
7017 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
7018 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
7019 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
7021 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
7024 2003-08-04 Richard Sandiford <rsandif@redhat.com>
7026 * config/mips/mips.c (override_options): Disable -G on targets that
7027 have no .section support.
7028 (mips_select_section): Use default_select_section for such targets.
7030 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
7032 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
7033 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
7034 * fixinc/fixincl.x: Rebuild.
7035 * fixinc/tests/base/regexp.h: New test.
7037 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
7039 * c-ppoutput.c (cb_line_change): Don't skip line changing while
7040 parsing macro arguments in the top-level context.
7042 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
7044 * config.in: Remove HAVE_LSTAT.
7045 * configure, configure.in: Don't test for lstat.
7047 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
7049 * opts.c (decode_options): Do language-specific initialization for
7050 the global diagnostic context.
7051 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
7052 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
7053 (LANG_HOOKS_INITIALIZER): Adjust.
7054 * langhooks.h (struct lang_hooks): Add new field
7055 initialize_diagnostics.
7056 * langhooks.c (lhd_initialize_diagnostics): Define.
7058 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
7060 * pretty-print.h: Adjust macro definitions.
7061 * pretty-print.c (pp_newline): Rename to pp_base_newline.
7062 (pp_character): Rename to pp_base_character.
7063 (pp_string): Rename to pp_base_string.
7064 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
7065 (pp_newline): Likewise. Adjust.
7066 (pp_c_char): Adjust.
7068 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7070 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
7071 BUILT_IN_LLABS): Move to miscellaneous section.
7073 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
7075 PR preprocessor/11534
7076 * cppexp.c (parse_defined): Warn only if -pedantic.
7078 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
7080 * cppfiles.c (stack_file): Use file path.
7082 2003-08-02 Roger Sayle <roger@eyesopen.com>
7084 * builtin-types.def (BT_SSIZE): New primitive type.
7085 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
7086 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
7087 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
7088 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
7089 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
7090 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
7091 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
7092 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
7093 few functions that define default attributes using it.
7094 * c-common.c (c_common_insert_default_attributes): Do nothing.
7096 * doc/extend.texi: Document these "new" builtins.
7098 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
7100 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
7101 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
7102 when -mieee-fp set and -shared not set.
7103 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
7105 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
7107 * cppfiles.c (struct _cpp_file): Rename once_only_next to
7108 next_file. Remove import and pragma_once, add once_only.
7109 (find_file): Add new file structures to the all_files list.
7110 (should_stack_file): Mark #import-ed files once-only, and
7111 don't stack them if the file has already been stacked.
7112 (_cp_mark_file_once_only): Simplify.
7113 * cpphash.h (struct cpp_reader): Rename once_only_files
7114 to all_files. Rename saw_pragma_once to seen_once_only.
7115 (_cpp_mark_file_once_only): Update prototype.
7116 * cpplib.c (do_pragma_once): Update.
7118 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
7120 * cppfiles.c (ENOTDIR): Remove.
7121 (open_file_in_dir): Rename find_file_in_dir. Handle errors
7122 other than ENOENT here.
7123 (once_only_file_p): Rename should_stack_file.
7124 (find_file, open_file_failed, read_file_guts): Report errors
7125 with full path name.
7126 (read_file): Move pch handling to should_stack_file.
7127 (should_stack_file): Handle PCH and once-only issues, and
7129 (stack_file): Don't do file reads.
7131 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7133 * libgcov.c (gcov_exit): Cleanup and fix.
7134 * profile.c (compute_value_histograms): Don't try to read profiles
7135 that are not present.
7137 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7139 * builtins.def: Categorize.
7141 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
7143 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
7145 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
7147 * config.gcc: Enable posix threads by default on darwin.
7149 2003-08-01 Jakub Jelinek <jakub@redhat.com>
7151 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
7152 even if nehedges1 is 0.
7154 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
7156 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
7157 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
7158 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
7161 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
7162 * fixinc/fixincl.x: Regenerate.
7163 * fixinc/tests/base/math.h: Regenerate to match test_text change.
7165 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7167 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
7169 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7171 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
7172 for accesses to exc_ptr.
7174 2003-08-01 Geoffrey Keating <geoffk@apple.com>
7176 * doc/sourcebuild.texi (Front End Directory): Don't make references
7177 to libsubdir, it's not part of the interface to frontends.
7178 * doc/install.texi (Configuration): Help users read faster by saying
7179 that GCC's configure options are the standard autoconf ones.
7180 Mention --libdir. Update the default rules for finding the
7181 assembler. Don't use libsubdir since we haven't said what it means.
7182 (Specific): In the Solaris 7 notes, update the place to put the
7184 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
7185 * doc/cpp.texi (Search Path): Actually, the search path
7186 depends on libdir, which can relocate with cpp.
7187 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
7188 now a private interface between the Makefile and the driver.
7190 2003-08-01 Richard Henderson <rth@redhat.com>
7192 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
7194 * varasm.c (lookup_constant_def): New function.
7195 * rtl.h (lookup_constant_def): Declare it.
7196 * dwarf2out.c (loc_descriptor_from_tree): Use it.
7197 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
7199 2003-08-01 Zack Weinberg <zack@codesourcery.com>
7201 * c-decl.c (gettags, pushdecl_function_level): Delete.
7202 (last_function_parm_vars): Rename last_function_parm_others.
7203 (current_function_parm_vars): Rename current_function_parm_others.
7204 (struct c_scope): Rewrite comment explaining this data structure.
7205 Add names_last, blocks_last, parms_last fields. Rename
7206 incomplete_list to incomplete.
7207 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
7208 (poplevel): Ignore second argument. No need to nreverse
7209 anything. Restructure such that each list is processed
7210 exactly once. Use 'const location_t *locus' syntactic sugar
7211 variable where useful. Issue unused variable warnings
7212 ourselves, do not rely on function.c.
7213 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
7214 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
7215 (implicitly_declare): decl cannot be error_mark_node.
7216 (undeclared_variable): Manipulate scope structure directly.
7217 (c_make_fname_decl): Likewise.
7218 (getdecls, c_init_decl_processing): Fix comment.
7219 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
7220 for 'last' variable.
7221 (grokparms): No need to nreverse parms list.
7222 (store_parm_decls_newstyle): Set up the parms_last and
7223 names_last fields of the new scope too.
7224 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
7225 on parms to begin with; check this under ENABLE_CHECKING. Set
7227 (check_for_loop_decls): Refer directly to current_scope->tags.
7228 Use consistent quote style in diagnostics.
7229 (c_write_global_declarations): The names list is not backward.
7231 * c-common.h: Don't prototype gettags.
7232 * c-parse.in: Call poplevel with second argument 0 always.
7234 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7236 * builtins.def: Resort builtins.
7238 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7240 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
7241 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
7242 Prepend "__builtin_" onto NAME with string concatenation. Remove
7243 explicit "__builtin_" from each macro call.
7245 Reformat entire file.
7247 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7249 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
7250 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
7252 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
7254 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
7255 CCL1, or CCL2 modes with floating point operations.
7257 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
7258 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
7259 "*subdf3_cconly"): New insns.
7260 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
7262 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
7264 * Makefile.in: Refine dependencies.
7265 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
7266 * c.opt: Update help for -Wimport.
7267 * cppfiles.c: Include hashtab.h. Update comments.
7268 (stack_file): Read the file before updating dependencies.
7269 (once_only_file_p): Be smarter about marking once-only files.
7270 (_cpp_mark_file_once_only): Correct the check for existence on
7272 (open_file_failed): Use name not path, which is NULL.
7273 * cpphash.h: Don't include hashtab.h.
7274 (struct _cpp_file): Remove.
7275 (struct cpp_reader): Update.
7276 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
7277 * cpplib.h (struct cpp_options): Remove warn_import.
7278 (cpp_simplify_path): Remove.
7280 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
7283 * doc/extend.texi (Statement Expressions): Document C++ semantics.
7285 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
7287 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
7289 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7291 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
7293 * builtins.def: Likewise.
7295 2003-07-31 Jason Merrill <jason@redhat.com>
7297 * Makefile.in (bubblestrap): Don't require a previous full
7300 * expr.c (mostly_zeros_p): No longer static.
7301 * tree.h: Declare it.
7302 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
7303 unless we need to do substitutions.
7305 2003-07-31 Roger Sayle <roger@eyesopen.com>
7307 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
7308 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
7309 as pow(x,2.0) when the latter will be expanded back into x*x.
7310 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
7311 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
7312 pow can never set errno when used with an integer exponent.
7313 Always use expand_powi when exponent is -1, 0, 1 or 2.
7314 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
7315 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
7316 the pow forms of these expressions.
7318 2003-07-31 Geoffrey Keating <geoffk@apple.com>
7320 * Makefile.in (libexecdir): New.
7321 (libsubdir): Use gcc instead of gcc-lib.
7322 (libexecsubdir): New.
7323 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
7324 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
7326 (installdirs): Make libexecsubdir.
7327 (install-common): Put executables in libexecsubdir.
7328 (itoolsdir): Use libexecsubdir.
7329 (itoolsdatadir): New.
7330 (install-mkheaders): Separate data files and executables.
7331 (install-collect2): Put executables in libexecsubdir.
7332 (uninstall): Remove libexecsubdir.
7333 * mkheaders.in: Update for new arrangement of files.
7335 (libexecsubdir): New.
7336 (itoolsdir): Use libexecsubdir.
7337 (itoolsdatadir): New.
7338 * gcc.c (gcc_libexec_prefix): New.
7339 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
7340 (standard_exec_prefix_1): Use libexec.
7341 (standard_exec_prefix_2): New.
7342 (standard_libexec_prefix): New.
7343 (process_command): Update for new arrangement of files. Compute
7344 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
7346 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
7348 * inclhack.def (stdio_va_list): Avoid bogus replacement which
7349 triggers on Interix.
7350 * fixincl.x: Regenerate.
7352 2003-07-31 Jakub Jelinek <jakub@redhat.com>
7354 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
7355 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
7357 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7359 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
7361 2003-07-31 Per Bothner <pbothner@apple.com>
7363 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
7364 (add_input_filename): New function.
7365 (handle_options): Call add_input_filename directly instead of
7367 * opts.h (in_fnames, num_in_fnames): Moved here.
7368 (add_input_filename): Declare.
7369 * c-decl.c: Need to #include opts.h.
7370 * Makefile.in (c-decl.o): Also depends on opts.h.
7371 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
7372 (c_common_handle_filename): Replaced by add_input_filename.
7373 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
7375 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
7376 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
7377 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
7378 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
7380 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7382 * combine.c (try_combine): Set JUMP_LABEL for newly created
7385 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7387 * fold-const.c (fold): Fold some comparisons of bit operations.
7389 2003-07-31 Jan Hubicka <jh@suse.cz>
7391 * cgraph.c (create_edge): Fix typo.
7392 * i386.c (pic_symbolic_operand): Reorder tests.
7394 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
7396 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
7398 (Gcov Data Files): Update.
7400 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7402 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
7405 * gthr-posix.c: New file.
7406 * gthr-posix.h: Define _REENTRANT if missing.
7407 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
7409 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
7411 * config/alpha/t-osf-pthread: New file.
7413 * fixinc/inclhack.def (alpha_pthread): New fix.
7414 * fixinc/fixincl.x: Regenerate.
7415 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
7417 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
7419 Fixes PR bootstrap/9330.
7421 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7423 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
7426 * configure: Regenerate.
7428 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
7430 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
7433 2003-07-30 Roger Sayle <roger@eyesopen.com>
7435 * builtins.def: Alphabetize.
7437 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
7439 * doc/c-tree.texi: Normalize spellings of "lowercase" and
7441 * doc/cpp.texi: Likewise.
7442 * doc/md.texi: Likewise.
7443 * doc/rtl.texi: Likewise.
7444 * doc/tm.texi: Likewise.
7446 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
7448 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
7449 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
7452 2003-07-30 Chris Demetriou <cgd@broadcom.com>
7454 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
7455 macros before defining them.
7457 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
7459 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
7460 UNSPECV_BLOCKAGE): New constants.
7461 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
7462 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
7463 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
7464 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
7466 (all insns and expanders): Write output control string as brace block
7467 where appropriate. Remove \-escapes for doublequote characters.
7469 2003-07-31 Jan Hubicka <jh@suse.cz>
7471 * gcse.c (insert_store): Fix typo in previous patch.
7473 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
7475 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
7477 2003-07-30 Andi Kleen <ak@muc.de>
7479 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
7481 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7483 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
7484 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
7485 GCOV_N_VALUE_COUNTERS): New.
7486 * profile.c (compute_value_histograms): New static function.
7487 (branch_prob): Read back the value histograms.
7488 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
7489 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
7490 * value-prof.c: Add comment on reading the profile.
7491 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
7492 * doc/invoke.texi (-fprofile-values): Document behavior with
7493 -fbranch-probabilities.
7495 2003-07-30 David Edelsohn <edelsohn@gnu.org>
7497 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
7499 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
7501 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
7504 2003-07-30 Jan Hubicka <jh@suse.cz>
7506 * gcse.c (insert_store): Ignore fake edges.
7508 * c-common.c (flag_vtable_gc): Kill.
7509 * c-common.g (flag_vtable_gc): Kill.
7510 * c-opts (c_common_handle_option): Kill.
7511 * c.opt (fvtable-gc): Kill.
7512 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
7513 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
7514 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
7516 * invoke.texi (-ftable-gc): Kill documentation.
7518 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
7519 just because function body is missing.
7521 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
7523 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
7525 * unwind-sjlj.c: Fix typo in file description.
7527 2003-07-30 Alan Modra <amodra@bigpond.net.au>
7529 * calls.c (load_register_parameters): When shifting reg sized values
7530 to the msb, move the value to a reg first.
7532 2003-07-29 Geoffrey Keating <geoffk@apple.com>
7534 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
7535 * line-map.h (linemap_add): Update comments.
7536 * line-map.c (linemap_add): Update comments, interpret zero-length
7537 filename as "<stdin>".
7539 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
7541 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
7543 2003-07-29 Zack Weinberg <zack@codesourcery.com>
7545 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
7546 New static variables.
7547 (struct c_scope): Add parms and warned_forward_parm_decls
7548 fields; remove parm_order.
7549 (storedecls, storetags): Delete.
7550 (poplevel): Also clear bindings on the parms chain.
7551 (pushdecl): Handle forward declarations of parameters, and
7552 chain PARM_DECLs on the parms list, not the names list.
7553 (lookup_name_current_level): Check for PARM_DECLs on the parms
7555 (push_parm_decl): Don't update parm_order.
7556 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
7557 warning, only once per parameter list, and set TREE_ASM_WRITTEN
7558 on the decls here. Then move the forward decls to the names list.
7559 (grokparms): Set last_function_parm_vars.
7560 (get_parm_info): Don't use gettags or getdecls. No need to
7561 extract non-parms from the parms list, or reorganize the parms
7562 list. Feed nonparms back in the TREE_TYPE of the list node
7563 returned. Issue only one error per parameter list for "void"
7564 appearing more than once in said parameter list. Collapse
7565 parmlist_tags_warning into this function to avoid double scan
7567 (start_function): Set current_function_parm_vars.
7568 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
7569 directly. Get non-parms from current_function_parm_vars; no
7570 need to extract them from the parms chain. Properly bind tags
7572 (store_parm_decls_oldstyle): No need to extract non-parameters
7573 from the parms chain, nor to store them back afterward. Move
7574 declaration to top of function, restructure code reordering
7576 (store_parm_decls): No need to save and restore warn_shadow.
7577 * c-parse.in: Don't call parmlist_tags_warning nor
7578 clear_parm_order. Call mark_forward_parm_decls when forward
7579 parm decls are encountered.
7580 * c-tree.h: Prototype mark_forward_parm_decls; not
7581 clear_parm_order or parmlist_tags_warning.
7583 2003-07-29 Geoffrey Keating <geoffk@apple.com>
7585 * c-common.c (allow_pch): Remove.
7586 * c-common.h (allow_pch): Remove.
7587 (c_common_no_more_pch): Declare.
7588 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
7589 * c-pch.c: Include hosthooks.h.
7590 (c_common_valid_pch): Don't check allow_pch.
7591 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
7592 (c_common_no_more_pch): New.
7593 * ggc-common.c: Include hosthooks.h.
7594 (gt_pch_save): Call gt_pch_get_address.
7595 (gt_pch_restore): Call gt_pch_use_address.
7596 * hooks.c (hook_voidp_size_t_null): New.
7597 (hook_bool_voidp_size_t_false): New.
7598 * hooks.h (hook_voidp_size_t_null): New.
7599 (hook_bool_voidp_size_t_false): New.
7600 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
7601 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
7602 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
7603 HOST_HOOKS_GT_PCH_USE_ADDRESS.
7604 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
7606 * doc/hostconfig.texi (Host Common): Document
7607 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
7608 * Makefile.in (c-pch.o): Depend on hosthooks.h.
7609 (ggc-common.o): Likewise.
7611 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
7612 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
7613 (pch_address_space): New.
7614 (darwin_rs6000_gt_pch_get_address): New.
7615 (darwin_rs6000_gt_pch_use_address): New.
7617 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
7619 PR preprocessor/11569
7620 PR preprocessor/11649
7621 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
7622 * cppfiles.c: Completely rewritten.
7623 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
7624 struct cpp_path is now struct cpp_dir.
7625 (remove_duplicates): Don't simplify path names.
7626 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
7628 * cpphash.h: Include hashtab.h.
7629 (_cpp_file): Declare.
7630 (struct cpp_buffer): struct include_file is now struct _cpp_file,
7631 and struct cpp_path is now struct cpp_dir. Rename members.
7632 (struct cpp_reader): Similarly. New members once_only_files,
7633 file_hash, file_hash_entries, quote_ignores_source_dir,
7634 no_search_path, saw_pragma_once. Remove all_include_files and
7635 max_include_len. Make some members bool.
7636 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
7637 (_cpp_stack_file): Renamed from _cpp_read_file.
7638 (_cpp_stack_include): Renamed from _cpp_execute_include.
7639 (_cpp_init_files): Renamed from _cpp_init_includes.
7640 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
7641 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
7642 (cpp_read_next_file): Rename and move to cppfiles.c.
7643 (cpp_read_main_file): Update.
7644 * cpplib.c (run_directive): Update for renamed members.
7645 (do_include_common, _cpp_pop_buffer): Update.
7646 (do_import): Undeprecate #import.
7647 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
7648 * cpplib.h: Remove file_name_map_list.
7649 (cpp_options): Remove map_list.
7650 (cpp_dir): Rename from cpp_path. New datatype for name_map.
7651 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
7653 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
7655 * Makefile.in: Make stamp-objdir safe for parallel builds.
7657 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
7659 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
7660 (info): Depend on stmp-docobjdir.
7662 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7664 * configure: Regenerate.
7666 2003-07-29 Jan Hubicka <jh@suse.cz>
7669 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
7670 in !unit-at-a-time mode.
7672 2003-07-28 Geoffrey Keating <geoffk@apple.com>
7674 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
7677 2003-07-28 Mark Mitchell <mark@codesourcery.com>
7680 * c-common.c (shorten_compare): Take into account differences
7681 between C and C++ representation for enumeration types.
7682 * tree.h (set_min_and_max_values_for_integral_type): Declare.
7683 * stor-layout.c (set_min_and_max_values_for_integral_type): New
7684 function, broken out from ...
7685 (fixup_signed_type): ... here and ...
7686 (fixup_unsigned_type): ... here.
7688 2003-07-28 Zack Weinberg <zack@codesourcery.com>
7690 * c-decl.c: Update commentary, adjust blank lines throughout.
7691 (struct c_scope): Fix indentation. Reorder members so
7692 outer-context pointers come first, booleans last.
7693 (duplicate_decls, define_label): Use a 'locus' variable for
7694 diagnostic locations in a few more places.
7695 (warn_if_shadowing): Un-split a conditional that fits on one line.
7696 (c_init_decl_processing): No need to clear current_scope and
7697 current_function_scope.
7698 (start_decl): Merge if/else if statements with same action.
7699 (push_parm_decl): Rename old_immediate_size_expand to use
7700 save_foo convention; save/restore around entire function.
7701 (grokdeclarator): Remove unnecessary braces.
7703 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
7704 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
7706 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
7707 when warn_declaration_after_statement. Call pedwarn_c90, not
7708 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
7709 * c-common.c (warn_declaration_after_statement): Define.
7710 * c-common.h (warn_declaration_after_statement): Declare.
7711 * c.opt (Wdeclaration-after-statement): New.
7712 * c-errors.c (pedwarn_c90): New function.
7713 * c-opts.c (c_common_handle_option) <case
7714 OPT_Wdeclaration_after_statement>: New.
7715 * c-tree.h (pedwarn_c90): Declare.
7716 * doc/invoke.texi (Option Summary): Document
7717 -Wdeclaration-after-statement.
7718 (Warning Options): Ditto.
7720 2003-07-28 Jan Hubicka <jh@suse.cz>
7722 * i386.md (memory attribute) Avoid accessing uninitialized memory
7723 for ishift1 type instructions.
7725 2003-07-28 Jakub Jelinek <jakub@redhat.com>
7727 * configure.in (--enable-checking): Add fold category.
7728 (ENABLE_FOLD_CHECKING): Define if requested.
7729 * configure: Rebuilt.
7730 * config.in: Rebuilt.
7731 * doc/install.texi: Document it.
7732 * fold-const.c: Include md5.h.
7733 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
7734 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
7735 print_fold_checksum): New functions.
7737 * fold-const.c (fold): Never modify argument passed to fold, instead
7738 change a copy and return it.
7739 * convert.c (convert_to_integer): Likewise.
7741 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
7743 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
7744 cleanup of junk after #else and #endif directives. Collapse repeated
7745 clauses into for statment.
7747 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
7749 2003-07-27 Zack Weinberg <zack@codesourcery.com>
7751 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
7752 (keep_next_if_subblocks): Rename next_is_function_body.
7753 (pushlevel): Adjust commentary. Always set ->keep on the
7754 outermost level of a function. Don't set ->keep_if_subblocks.
7755 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
7756 (store_parm_decls): Adjust to match.
7757 (finish_function): Adjust to match.
7758 Call poplevel with all three arguments zero.
7760 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
7761 New functions split out of store_parm_decls.
7762 Avoid unnecessary work. Use local variables consistently.
7763 (store_parm_decls): Likewise.
7765 (finish_function): No need to set functionbody flag on call to
7767 (struct language_function): Remove scope field.
7768 (c_push_function_context, c_pop_function_context): No need to
7769 save and restore current_scope.
7771 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
7773 * doc/extend.texi (Deprecated Features): Implicit typename is
7774 gone. Default args on types is going.
7776 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
7778 * Makefile.in (ifcvt.o): Depend on target.h
7779 * ifcvt.c (target.h): Include.
7780 (if_convert): Don't call mark_loop_exit_edges if we can't
7783 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7785 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
7787 2003-07-26 Richard Henderson <rth@redhat.com>
7790 * cse.c (count_reg_usage): Handle asm_operands properly.
7792 2003-07-26 Roger Sayle <roger@eyesopen.com>
7794 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
7795 (DEF_EXT_FALLBACK_BUILTIN): Delete.
7796 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
7797 the regular DEF_EXT_LIB_BUILTIN macro.
7798 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
7799 the regular DEF_LIB_BUILTIN macro.
7800 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
7801 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
7802 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
7803 DEF_EXT_LIB_BUILTIN macro.
7805 * c-decl.c (duplicate_decls): Remove code to handle builtin
7806 functions prototyped without an argument list.
7808 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
7810 * config/i386/winnt.c: Revert 2003-07-08 change.
7811 (i386_pe_section_type_flags): Remove error_with_decl here too.
7813 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
7815 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
7816 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
7817 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
7818 (v850_handle_data_area_attribute): Likewise.
7820 2003-07-26 Geoffrey Keating <geoffk@apple.com>
7822 * varasm.c (output_constant_def_contents): Use
7823 ASM_DECLARE_CONSTANT_NAME if defined.
7824 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
7825 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
7826 objects get at least one byte to prevent assembler problems.
7827 (ASM_DECLARE_CONSTANT_NAME): New.
7829 * Makefile.in (libbackend.o): Remove options_.h.
7830 (mostlyclean): Likewise.
7832 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
7833 insert a label at the end of an function under Mach-O.
7835 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
7837 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
7839 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
7841 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
7843 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
7845 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7847 * doc/passes.texi (Passes): Mention pretty-printing and
7850 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
7852 * doc/extend.texi (Function Attributes): GNU C++ does now allow
7853 unused parameter decls.
7854 (Attribute Syntax): GNU C++ does not allow label attributes to be
7857 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7859 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
7860 (objc_declare_class): Likewise.
7861 (error_with_ivar): Likewise.
7862 (start_class): Likewise.
7863 (warn_with_method): Likewise.
7865 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7867 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
7869 * calls.c (try_to_integrate): Don't use xxx_with_decl.
7870 (expand_call): Likewise.
7871 * dwarfout.c (output_reg_number): Likewise.
7872 * expr.c (expand_expr): Likewise.
7873 * function.c (assign_temp): Likewise.
7874 (uninitialized_vars_warning): Likewise.
7875 (setjmp_args_warning): Likewise.
7876 (expand_function_end): Likewise.
7877 * stmt.c (fixup_gotos): Likewise.
7878 (warn_about_unused_variables): Likewise.
7879 (expand_end_bindings): Likewise.
7880 * stor-layout.c (layout_decl): Likewise.
7881 (place_field): Likewise.
7882 * toplev.c (check_global_declarations): Likewise.
7883 (rest_of_handle_inlining): Likewise.
7884 (default_tree_printer): New function.
7885 (general_init): Initialize diagnostic machinery before routing
7886 signals to the ICE machinery. Set default tree printer.
7887 * toplev.h (pedwarn_with_decl): Remove declaration.
7888 (warning_with_decl): Likewise.
7889 (error_with_decl): Likewise.
7890 (pedwarn): Remove attribute for the time being.
7891 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
7892 * varasm.c (named_section): Likewise.
7893 (make_decl_rtl): Likewise.
7894 (assemble_variable): Likewise.
7895 (merge_weak): Likewise.
7896 (declare_weak): Likewise.
7898 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
7899 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
7900 (format_with_decl): Remove.
7901 (diagnostic_for_decl): Likewise.
7902 (pedwarn_with_decl): Likewise.
7903 (warning_with_decl): Likewise.
7904 (error_with_decl): Likewise.
7905 (diagnostic_initialize): Adjust.
7906 (diagnostic_count_diagnostic): Likewise.
7907 (announce_function): Likewise.
7908 (lhd_print_error_function): Likewise.
7909 (diagnostic_report_current_module): Likewise.
7910 (default_diagnostic_starter): Likewise.
7911 (diagnostic_report_diagnostic): Likewise.
7912 (default_diagnostic_finalizer): Likewise.
7913 (verbatim): Likewise.
7915 (warning): Likewise.
7916 * opts.c (common_handle_option): Likewise.
7917 * pretty-print.c: New file.
7918 * c-pretty-print.h (pp_base): Override.
7919 * c-pretty-print.c: Adjust use of macros throughout.
7920 (pp_buffer): New macro.
7921 (pp_newline): Likewise.
7922 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
7923 * Makefile.in (DIAGNOSTIC_H): New variable.
7924 (c-errors.o): Use it.
7925 (c-objc-common.o): Likewise.
7926 (c-common.o): Likewise.
7927 (c-opts.o): Likewise.
7928 (c-format.o): Likewise.
7929 (diagnostic.o): Likewise.
7931 (toplev.o): Likewise.
7932 (rtl-error.o): Likewise.
7933 (dwarf2out.o): Likewise.
7935 (pretty-print.o): New rule.
7937 2003-07-24 Roger Sayle <roger@eyesopen.com>
7939 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
7940 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
7941 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
7942 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
7943 (DEF_FRONT_END_LIB_BUILTIN): Delete.
7944 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
7945 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
7947 * builtins.c (build_string_literal): New function to construct
7948 a char* pointer to a string literal.
7949 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
7950 "rtx target" to be consistent with other expand_builtin_* functions.
7951 Change 3rd argument from "int unlocked" to "bool unlocked".
7952 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
7953 c-common.c to avoid front-end dependencies. Optimize printf("")
7954 as a no-op when the result isn't required. Handle embedded NULs
7956 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
7957 from c-common.c to avoid front-end dependencies. Likewise, optimize
7958 fprintf(fp,"") as a no-op when the result isn't required, evaluating
7959 fp for side-effects. Handle embedded NULs in format string.
7960 (expand_builtin_sprintf): Fix typo.
7961 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
7962 optimizing. Adjust calls of expand_builtin_fputs to match the API
7963 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
7964 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
7965 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
7967 * c-common.c (is_valid_printf_arglist): Delete.
7968 (c_expand_builtin): Delete.
7969 (c_expand_builtin_printf): Moved to builtins.c. Delete.
7970 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
7971 (c_expand_expr): No longer treat CALL_EXPRs specially.
7972 (CALLED_AS_BUILT_IN): Delete.
7974 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7976 PR optimization/11631
7977 * gcse.c (store_motion): Connect infinite loops to exit.
7979 2003-07-24 Jason Merrill <jason@redhat.com>
7981 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
7982 (boolean_true_node, boolean_false_node): Likewise.
7983 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
7984 * tree.c (build_common_tree_nodes): Init boolean_type_node.
7985 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
7986 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
7987 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
7988 (truthvalue_true_node): Renamed from boolean_true_node.
7989 (truthvalue_false_node): Renamed from boolean_false_node.
7990 * c-decl.c: Just set truthvalue_* to integer_*.
7991 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
7993 2003-07-24 Roger Sayle <roger@eyesopen.com>
7995 * c-decl.c (match_builtin_function_types): New subroutine of
7996 duplicate_decls to test whether a redeclaration of a builtin
7997 function is suitably close, i.e. the return type and all of
7998 the argument types have the same modes as the builtin expects.
7999 (duplicate_decls): Fuzzy type matching for builtin functions
8000 moved to match_builtin_function_types.
8002 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8004 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
8007 2003-07-24 Zack Weinberg <zack@codesourcery.com>
8009 * c-decl.c: Search-and-replace change 'binding level' to
8010 'scope' in commentary.
8011 (struct binding_level): Now struct c_scope.
8012 (current_binding_level): Now current_scope.
8013 (free_binding_level): Now scope_freelist.
8014 (current_function_level): Now current_function_scope.
8015 (global_binding_level): Now global_scope.
8016 (make_binding_level): Now make_scope.
8017 (pop_binding_level): Now pop_scope.
8019 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8021 * configure.in (libgcc_visibility): Add missing whitespace.
8023 2003-07-24 Richard Henderson <rth@redhat.com>
8025 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
8026 __gcc_personality_v0.
8028 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8030 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
8032 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
8034 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
8035 documentation missed from my 2003-07-09 patch.
8037 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
8039 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
8041 * configure: Rebuild.
8043 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
8046 * c-typeck.c (type_lists_compatible_p): Do not compare
8047 arguments if one of them is an error_mark_node
8049 2003-07-24 Alan Modra <amodra@bigpond.net.au>
8051 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
8052 if current_function_calls_eh_return.
8054 2003-07-23 Mark Mitchell <mark@codesourcery.com>
8056 * doc/c-tree.texi (OFFSET_TYPE): Update description.
8058 2003-07-23 Bob Wilson <bob.wilson@acm.org>
8060 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
8061 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
8062 __umodsi3, __modsi3): Increase frame size to 32.
8064 2003-07-23 Geoffrey Keating <geoffk@apple.com>
8066 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
8069 2003-07-23 Mark Mitchell <mark@codesourcery.com>
8071 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
8073 PR optimization/10679
8074 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
8076 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8078 PR target/11607 and PR target/11516
8079 * pa.md (extzv, extv, insv): Revert latter half of last patch.
8081 2003-07-22 Mark Mitchell <mark@codesourcery.com>
8083 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
8084 * varasam.c (output_constant): Likewise.
8086 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
8088 * alias.c: Fix comment formatting.
8089 * c-common.c: Likewise.
8090 * c-decl.c: Likewise.
8091 * c-opts.c: Likewise.
8092 * combine.c: Likewise.
8093 * cpplib.c: Likewise.
8094 * diagnostic.c: Likewise.
8095 * dojump.c: Likewise.
8096 * final.c: Likewise.
8097 * fold-const.c: Likewise.
8100 * ggc-page.c: Likewise.
8103 * mips-tfile.c: Likewise.
8104 * recog.c: Likewise.
8105 * regclass.c: Likewise.
8106 * regmove.c: Likewise.
8110 2003-07-22 Per Bothner <pbothner@apple.com>
8112 * line-map.c (add_line_map): Handle invalid LEAVE request.
8113 Fixes PR preprocessor/11361.
8115 2003-07-22 Per Bothner <pbothner@apple.com>
8117 * diagnostic.c.(diagnostic_report_current_module): Update to match
8118 2003-06-05 changes to push_srcloc and pop_srcloc.
8120 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
8122 * doc/trouble.texi: Better document two-stage name lookup.
8124 2003-07-22 Eric Christopher <echristo@redhat.com>
8126 * config/s390.c (s390_valid_pointer_mode): New.
8127 (TARGET_VALID_POINTER_MODE): Use.
8128 (s390_emit_prologue): Add tpf profiling hooks.
8129 (s390_emit_epilogue): Ditto.
8130 * config/s390.h (MASK_TPF): New.
8132 (POINTERS_EXTEND_UNSIGNED): Define.
8133 * config/s390.md (ptr_extend): New pattern.
8135 2003-07-22 Zack Weinberg <zack@codesourcery.com>
8137 * hashtable.c (approx_sqrt): Make static.
8138 * hashtable.h: Don't prototype approx_sqrt.
8139 * line-map.c (init_line_maps): Rename linemap_init.
8140 (free_line_maps): Rename linemap_free.
8141 (add_line_map): Rename linemap_add.
8142 (lookup_line): Rename linemap_lookup.
8143 (print_containing_files): Rename linemap_print_containing_files.
8144 * linemap.h: Update to match.
8146 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
8147 linemap routines to use new names.
8149 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
8151 * c-common.c (handle_packed_attribute): Don't pack a struct via a
8152 typedef. Propagate packedness from a main variant.
8154 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
8156 * Makefile.in (install-common): Add dependency on installdirs.
8158 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
8160 * c-common.c (c_common_type_for_mode): Return integer types for
8163 2003-07-22 Geoffrey Keating <geoffk@apple.com>
8165 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
8166 (finish_decl): Call maybe_apply_pragma_weak here.
8167 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
8168 TREE_PUBLIC and TREE_STATIC are decided.
8169 (start_function): Move call to maybe_apply_pragma_weak. Check that
8170 DECL_ASSEMBLER_NAME isn't set too early.
8172 * cpplex.c (_cpp_process_line_notes): Mention option name in
8175 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
8177 * combine.c (if_then_else_cond): Simplify the comparison of
8178 rtx against -1, 0, and 1.
8179 * loop.c (check_dbra_loop): Likewise.
8180 * optabs.c (emit_conditional_move): Likewise.
8181 (emit_conditional_add): Likewise.
8182 * config/i386/i386.md (*movsi_or): Likewise.
8183 (*movdi_or_rex6): Likewise.
8185 2003-07-22 Jan Hubicka <jh@suse.cz>
8187 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
8189 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
8191 * cppfiles.c (open_file_pch): Don't put unused entries in the
8192 splay tree. Remove dead code.
8194 2003-07-21 Geoffrey Keating <geoffk@apple.com>
8196 * c-common.h (num_in_fnames): Declare.
8197 (c_static_assembler_name): Move from here...
8198 * c-tree.h (c_static_assembler_name): ... to here.
8199 * c-opts.c: Don't include langhooks-def.h.
8200 (c_static_assembler_name): Move to c-decl.c.
8201 (num_in_fnames): Make externally visible.
8202 * c-decl.c: Include langhooks-def.h.
8203 (c_static_assembler_name): Move from c-opts.c.
8204 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
8205 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
8207 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
8208 when it's not needed.
8210 2003-07-21 Jakub Jelinek <jakub@redhat.com>
8212 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
8213 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
8214 (rs6000_emit_prologue): Save FPRs inline if set.
8216 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
8218 * config/ia64/ia64.md (prefetch): Support predicate.
8220 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
8222 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
8223 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
8226 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
8228 PR optimization/11536
8229 * unroll.c (loop_iterations): Do not replace a register holding
8230 the final value by its equivalent before the loop if it is not
8233 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
8235 * doc/extend.texi: Fixes to spelling, grammar, and diction.
8237 2003-07-21 Ben Elliston <bje@wasabisystems.com>
8239 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
8240 (V850 Options): Spelling fixes.
8242 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
8244 * doc/invoke.texi: Fixes to style, grammar and diction.
8246 2003-07-20 Roger Sayle <roger@eyesopen.com>
8248 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
8249 * system.h (SMALL_STACK): Poison obsolete target macro.
8250 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
8252 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
8254 * configure.in: Cache the results of testing for cmp's capabilities.
8255 * configure: Regenerate.
8257 2003-07-20 Mark Mitchell <mark@codesourcery.com>
8260 * dwarf2out.c (gen_enumeration_type_die): Remember that
8261 enumerators can be unsigned.
8263 2003-07-19 Zack Weinberg <zack@codesourcery.com>
8265 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
8266 (push_label_level, pop_label_level): Kill.
8267 (struct binding_level): Rename level_chain to outer.
8268 Add outer_function field. Change parm_flag, function_body,
8269 keep, keep_if_subblocks to 1-bit bitfields of type bool.
8270 (current_function_level): New variable.
8271 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
8272 (keep_next_level, declare_parm_level, warn_if_shadowing):
8274 (struct language_function): Kill named_labels, shadowed_labels fields.
8275 (c_init_decl_processing, start_function, c_push__function_context)
8276 (c_pop_function_context): No need to muck with named_labels nor
8279 (make_binding_level): No need to clear the structure here.
8280 (pop_binding_level): Always operate on current_binding_level.
8281 Update current_function_level if necessary.
8282 (pushlevel): Don't clear named_labels. Update current_function_level
8283 if necessary. Use "true" and "false" where appropriate.
8284 (poplevel): Diagnose labels defined but not used, or vice
8285 versa, and clear out label-meanings leaving scope, while
8286 walking down the decls list, for all binding levels.
8287 Handle LABEL_DECLs appearing in the shadowed list.
8288 pop_binding_level takes no arguments.
8289 (pushdecl_function_level): Use current_function_level.
8291 (make_label, bind_label): New static functions.
8292 (declare_label): New exported function.
8293 (lookup_label, define_label): Rewritten for new data structure.
8294 (shadow_label): Kill.
8296 * c-tree.h: Prototype declare_label; don't prototype
8297 push_label_level, pop_label_level, nor shadow_label.
8298 * c-parse.in: Remove all calls to push_label_level and
8299 pop_label_level. Use declare_label for __label__ decls.
8301 * doc/extend.texi: Clarify that __label__ can be used to
8302 declare labels with local scope in any nested block, not
8303 just statement expressions. Cross-reference nested functions
8304 section from local labels section.
8306 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8308 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
8310 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
8312 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
8314 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8316 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
8317 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
8319 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
8321 * config/s390/s390.c (legitimize_pic_address): Access local symbols
8322 relative to the GOT instead of relative to the literal pool base.
8323 (s390_output_symbolic_const): Handle new GOT-relative accesses.
8324 * config/s390/s390.md ("call"): Access local functions and PLT stubs
8325 relative to the GOT instead of relative to the literal pool base.
8326 ("call_value"): Likewise.
8327 ("call_value_tls"): Likewise.
8329 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
8330 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
8331 (s390_chunkify_finish): Likewise.
8332 (s390_chunkify_cancel): Likewise.
8333 (s390_reorg): Adapt caller.
8334 (find_base_register_in_addr,
8335 find_base_register_ref, replace_base_register_ref): Delete.
8336 (find_ltrel_base, replace_ltrel_base): New functions.
8337 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
8338 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
8339 base vs. index register usage.
8340 (struct constant_pool): Remove 'anchor'.
8341 (s390_add_anchor): Delete.
8342 (s390_dump_pool): Remove anchor handling.
8343 * config/s390/s390.md ("reload_anchor"): Remove.
8345 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
8346 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
8347 (s390_emit_prologue): Use it.
8348 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
8349 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
8350 hard-code register 14.
8351 * config/s390/s390-protos.h (s390_load_got): Declare.
8353 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
8354 Support TImode constants.
8355 * config/s390/s390.md ("consttable_ti"): New.
8356 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
8358 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
8359 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
8360 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
8361 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
8362 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
8363 New symbolic constants.
8364 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
8365 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
8366 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
8367 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
8368 symbolic UNSPEC values.
8369 * config/s390/s390.c (larl_operand, s390_short_displacement,
8370 bras_sym_operand, s390_cannot_force_const_mem,
8371 s390_delegitimize_address, s390_decompose_address,
8372 legitimize_pic_address, s390_output_symbolic_const,
8373 s390_function_profiler): Use symbolic UNSPEC values.
8375 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8377 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
8378 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
8379 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
8380 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
8381 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
8382 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
8383 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
8384 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
8385 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
8386 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
8387 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
8388 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
8389 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
8390 postreload.c prefix.c print-tree.c protoize.c ra-build.c
8391 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
8392 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
8393 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
8394 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
8395 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
8396 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
8399 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
8401 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
8402 * toplev.h (warning): Remove attribute.
8404 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
8406 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
8407 (pop_label_level): Likewise.
8408 (duplicate_decls): Likewise.
8409 (implicitly_declare): Likewise.
8410 (shadow_label): Likewise.
8411 (start_decl): Likewise.
8412 (finish_decl): Likewise.
8413 (grokdeclarator): Likewise.
8414 (get_parm_info): Likewise.
8415 (detect_field_duplicates): Likewise.
8416 (finish_struct): Likewise.
8417 (start_function): Likewise.
8418 (store_parm_decls): Likewise.
8419 (finish_function): Likewise.
8420 (c_expand_body_1): Likewise.
8421 (check_for_loop_decls): Likewise.
8422 (merge_translation_unit_decls): Likewise.
8424 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
8426 * common.opt: Document --param.
8427 * opts.c (columns, undocumented_msg): New.
8428 (print_help): Get number of columns from environment. Print
8429 --param help. Tweak newline handling.
8430 (print_param_help): New.
8431 (print_filtered_help): Better handling of duplicates. Complain
8432 about undocumented switches.
8433 (print_switch): New.
8434 (wrap_help): Improve wrapping, use COLUMNS.
8435 * opts.sh: Ignore comments in records.
8436 * params.def: Fix typos and remove trailing periods.
8437 * toplev.c (display_help): Don't dump --param help.
8438 * doc/sourcebuild.texi: Update.
8440 2003-07-18 Richard Henderson <rth@redhat.com>
8443 * optabs.c (prepare_operand): Fail gracefully instead of abort
8444 if the predicate doesn't satisfy.
8445 (gen_cond_trap): Allow prepare_operand to fail.
8447 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
8449 * c-common.c: Don't undefine GCC_DIAG_STYLE.
8450 (fname_decl): Don't use xxx_with_decl.
8451 (c_add_case_label): Likewise.
8452 (handle_section_attribute): Likewise.
8453 (handle_alias_attribute): Likewise.
8454 (handle_no_instrument_function_attribute): Likewise.
8455 (handle_no_limit_stack_attribute): Likewise.
8456 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
8457 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
8459 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8461 * Makefile.in (ifcvt.o): Add cfgloop.h.
8462 * basic-block.h (EDGE_LOOP_EXIT): New flag.
8463 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
8464 * ifcvt.c: Include cfgloop.h.
8465 (mark_loop_exit_edges): New static function.
8466 (if_convert): Call it.
8467 (find_if_header): Ignore branches out of loops.
8469 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
8471 * combine.c (simplify_comparison): Don't share rtx when converting
8472 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
8474 2003-07-18 David Edelsohn <edelsohn@gnu.org>
8476 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
8477 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
8478 (MUST_PASS_IN_STACK): Define.
8479 (BLOCK_REG_PADDING): Define.
8481 2003-07-18 Richard Henderson <rth@redhat.com>
8483 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
8484 to skip the addr_vec.
8486 2003-07-18 Alexandre Oliva <aoliva@redhat.com>
8488 * combine.c (combinable_i3pat): Don't forbid occurrences of
8489 i2dest or i1dest in inner_dest if inner_dest is a mem.
8491 2003-07-18 Jan Hubicka <jh@suse.cz>
8493 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
8495 2003-07-17 Jakub Jelinek <jakub@redhat.com>
8498 * loop.c (basic_induction_var): Check if convert_modes emitted any
8499 instructions. Remove them and return 0 if so.
8501 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
8503 PR optimization/11083
8504 * toplev.c (rest_of_handle_addresof): Rename into
8505 rest_of_handle_addressof. Delete unreachable blocks
8506 if dead edges were purged after the addressof pass.
8508 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
8510 * Makefile.in, configure, configure.in: Remove handling of
8511 lang-options.h and options_.h.
8512 * toplev.c (struct lang_opt, documented_lang_options): Remove.
8513 (display_help): Don't use documented_lang_options.
8515 2003-07-17 Zack Weinberg <zack@codesourcery.com>
8517 * c-decl.c (pushdecl_function_level): Make static, return nothing.
8518 (kept_level_p): Fold into poplevel.
8519 (undeclared_variable): Moved here from c-typeck.c. Export.
8520 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
8521 (undeclared_variable): Prototype here. Don't prototype
8522 kept_level_p nor pushdecl_function_level.
8523 * c-parse.in: Change first argument to poplevel from
8524 "kept_level_p()" to "KEEP_MAYBE".
8525 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
8527 2003-07-17 Roger Sayle <roger@eyesopen.com>
8529 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
8530 commutative operands instead of modifying the RTL in-place.
8532 2003-07-17 Mark Mitchell <mark@codesourcery.com>
8534 PR optimization/11557
8535 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
8536 unless we know which function is being called.
8538 2003-07-17 Roger Sayle <roger@eyesopen.com>
8540 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
8541 whether to reorder the operands of a commutative binary operator.
8543 2003-07-17 Roger Sayle <roger@eyesopen.com>
8545 * fold-const.c (const_binop): Avoid performing the FP operation at
8546 compile-time, if either operand is NaN and we honor signaling NaNs,
8547 or if we're dividing by zero and either flag_trapping_math is set
8548 or the desired mode doesn't support infinities.
8549 (fold_initializer): New function to fold an expression ignoring any
8550 potential run-time exceptions or traps.
8551 * tree.h (fold_initializer): Prototype here.
8552 * c-typeck.c (build_binary_op): Move to the end of the file so
8553 that intializer_stack is in scope. If constructing an initializer,
8554 i.e. when initializer_stack is not NULL, use fold_initializer to
8556 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
8557 performing FP operations at compile-time, if they would raise an
8558 exception at run-time.
8560 2003-07-17 Geoffrey Keating <geoffk@apple.com>
8563 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
8564 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
8565 (GTFILES): Add langhooks.c.
8566 (gt-langhooks.h): New.
8567 * c-common.h (c_static_assembler_name): Prototype.
8568 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
8569 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
8570 * c-opts.c: Include langhooks-def.h.
8571 (c_static_assembler_name): New.
8572 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
8574 (lhd_set_decl_assembler_name): Give static objects with context
8576 * varasm.c (var_labelno): Delete.
8577 (make_decl_rtl): Don't change the assembler name once it's set.
8579 * c-opts.c (this_input_filename): New.
8580 (finish_options): Take new parameter, name of file being compiled.
8581 Update callers. Set this_input_filename.
8582 (push_command_line_include): Use this_input_filename not
8583 main_input_filename.
8585 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
8587 * Makefile.in: Depend .pot generation on options.c.
8588 * po/exgettext: Add an extra_files variable containing additional
8591 2003-07-17 Zack Weinberg <zack@codesourcery.com>
8593 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
8594 c_write_global_declarations.
8596 * c-decl.c: Fix typos in several comments. Remove all
8597 #if 0 blocks; reindent as needed. Remove unused argument
8598 to declare_parm_level; all callers changed.
8599 * c-parse.in: Update calls to declare_parm_level. Avoid
8600 issuing a double warning in some circumstances.
8601 * c-typeck.c: Update calls to declare_parm_level.
8602 * c-tree.h: Update prototype of declare_parm_level.
8604 * c-pragma.c (apply_pragma_weak): Don't complain about a
8605 redundant #pragma weak.
8607 * objc/objc-act.c (forward_declare_categories,
8608 build_selector_reference_decl, build_class_reference_decl,
8609 build_objc_string_decl, synth_forward_declarations,
8610 build_protocol_reference): Set TREE_PUBLIC on synthetic
8611 forward decl to 0, consistent with eventual definition.
8612 Correct comments to match.
8614 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
8615 in regexp that don't form a range expression.
8616 * fixinc/fixincl.def: Regenerate.
8618 2003-07-17 Richard Henderson <rth@redhat.com>
8621 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
8622 even with !TARGET_CONST_GP.
8623 (ia64_function_ok_for_sibcall): Reject non-local functions.
8625 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
8627 * c-common.c (c_estimate_num_insns_1): Don't handle
8629 * expr.c (safe_from_p): Likewise.
8630 * gengtype.c (adjust_field_tree_exp): Likewise.
8631 * stmt.c (warn_if_unused_value): Likewise
8632 * tree.c (first_rtl_op): Likewise.
8633 * tree.def: Don't define METHOD_CALL_EXPR.
8634 * java/lang.c (java_estimate_num_insns_1): Don't handle
8637 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
8640 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
8641 and its restrictions for the SPARC64 port.
8642 Move the entry of "-mimpure-text" before that of "-mv8".
8644 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
8645 Phil Edwards <phil@jaj.com>
8647 * doc/install.texi (*-*-solaris2*): Document the step-by-step
8648 procedure to bootstrap and install.
8649 Document the preference for the legacy Sun tools in /usr/bin
8650 over the POSIX tools in /usr/xpg4/bin for the build process.
8652 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
8654 * c.opt: Document Uncodumented; use it. Document ObjC options.
8655 * opts.c (print_filtered_help): Skip undocumented switches.
8656 * opts.h (CL_UNDOCUMENTED): New.
8657 * opts.sh: Handle Undocumented.
8658 * toplev.c (documented_lang_options): Prevent its becoming empty.
8660 * lang-options.h: Remove.
8662 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
8664 * loop.c (check_ext_dependent_givs): Pass const struct loop *
8665 instead of struct loop_info * as argument. Accept BIVs with
8666 increment +/- 1 provided there is a friendly exit test against
8667 a loop-invariant value.
8668 (strength_reduce): Adapt call to check_ext_dependent_givs.
8670 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
8671 Con Bradley <con.bradley@superh.com>
8673 * sh-protos.h (sh_get_pr_initial_val): Declare.
8674 * sh.c (regno_reg_class): Make its elements type enum reg_class.
8675 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
8676 and live_regs_mask arguments. Changed all callers.
8677 (save_schedule_s): New structure.
8678 (save_schedule): New typedef.
8679 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
8680 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
8681 In interrupts handlers, also save registers that are usually
8682 partially saved, and make sure there is at least one general purpose
8683 register saved if a target register needs saving.
8684 Add casts in comparisons to avoid warnings.
8685 (sh_media_register_for_return): return -1 for interrupt handlers.
8686 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
8687 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
8688 registers used are available.
8689 Set RTX_FRAME_RELATED_P where appropriate.
8690 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
8691 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
8692 (initial_elimination_offset): Likewise.
8693 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
8694 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
8695 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
8696 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
8697 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
8698 and for target registers.
8699 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
8700 (regno_reg_class): Make its elements type enum reg_class.
8701 (CONSTRAINT_LEN): Don't use isdigit.
8702 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
8703 (FUNCTION_ARG): Add parentheses to avoid warnings.
8704 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
8705 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
8706 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
8707 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
8708 * sh.md (xordi3+1): Remove unused variable regno.
8709 (return_media): Check that tr0 is available before using it.
8711 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
8713 * c.opt: Document more options.
8715 2003-07-16 Roger Sayle <roger@eyesopen.com>
8717 * combine.c (subst): Also handle (subreg (const_double ...)) case
8718 if created by a substitution, by using the original inner mode.
8720 2003-07-16 Roger Sayle <roger@eyesopen.com>
8722 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
8723 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
8724 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
8726 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
8728 * doc/install.texi (--without-headers): New.
8730 Partial Fix PR/10129
8731 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
8732 (machopic_output_function_base_name): New; print the true pic label.
8733 (machopic_classify_ident): Pic Base is always a defined data.
8734 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
8735 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
8737 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
8738 if they are not floating point registers.
8741 * ggc.h: Add header guards.
8742 * c-decl.c (finish_struct): Sort fields if
8743 number greater than 15 and there are no
8744 anonymous structs/unions.
8745 * c-common.h: Include ggc.h.
8746 (sorted_fields_type): New struct.
8747 (field_decl_cmp): New prototype.
8748 (resort_sorted_fields): New prototype.
8749 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
8750 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
8751 as s, removing other fields.
8752 * c-typeck.c (lookup_field): Use s in lang_type.
8753 These were mostly moved from cp/class.c:
8754 * c-common.c (field_decl_cmp): New static function.
8755 (field_decl_cmp): New function.
8756 (resort_sorted_fields): New function.
8758 2003-07-16 Geoffrey Keating <geoffk@apple.com>
8760 * config/darwin.c (machopic_select_section): Use decl_readonly_section
8761 to do most of the work.
8763 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
8765 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
8766 * config/mmix/mmix.c: Convert functions to ISO C90.
8767 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
8769 (mmix_get_hard_reg_initial_val): Tweak section head comment.
8771 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
8773 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
8775 2003-07-16 Jakub Jelinek <jakub@redhat.com>
8777 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
8778 (uw_update_context_1): Use it.
8779 * config/rs6000/rs6000.c (insn_after_throw): Remove.
8780 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
8781 in parent frame if _Unwind_* called directly instead of through
8783 (rs6000_emit_eh_toc_restore): Remove.
8784 (rs6000_emit_prologue): Update stack pointer before doing any saving
8785 if current_function_calls_eh_return. Generate unwind info for $r2.
8786 (rs6000_emit_epilogue): Restore stack pointer after doing all
8787 restoring if current_function_calls_eh_return. Restore $r2.
8788 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
8789 * config/rs6000/rs6000.md (eh_return): Remove call to
8790 rs6000_emit_eh_toc_restore.
8791 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
8792 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
8794 2003-07-15 Jakub Jelinek <jakub@redhat.com>
8796 * expr.c (emit_block_move): Don't move anything if size is const 0.
8797 (clear_storage): Test against const0_rtx instead of comparing INTVAL
8800 2003-07-15 David S. Miller <davem@redhat.com>
8802 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
8803 emit nop if the last real insn is CALL_INSN.
8805 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
8807 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
8809 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
8811 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
8813 * config/i386/winnt.c (associated_type): Artificial methods are not
8814 affected by the import/export status of their class unless they are
8816 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
8818 * config/i386/winnt.c: Fix GCC copyright comment.
8820 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
8823 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
8824 not recursing on hard error.
8825 (diagnostic_for_decl): Likewise.
8826 * diagnostic.def: Rearrange.
8828 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
8830 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
8831 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
8833 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
8834 Richard Henderson <rth@redhat.com>
8836 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
8837 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
8838 (_Unwind_SetGR): Likewise.
8839 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
8840 (Unwind_SpTmp): New typedef.
8841 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
8842 (uw_update_context): Use _Unwind_GetPtr.
8843 (init_dwarf_reg_size_table): Move above uw_init_context_1.
8844 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
8845 Use _Unwind_SetSpColumn.
8846 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
8849 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
8851 * c.opt: Document more options.
8852 * toplev.c (documented_lang_options): Remove all local help strings.
8854 2003-07-15 Mark Mitchell <mark@codesourcery.com>
8857 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
8860 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
8863 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
8864 swap comparison operands if doing so would generate an
8865 unrecognizable insn.
8867 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
8869 PR optimization/11320
8870 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8871 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8872 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8873 current_sched_info->compute_jump_reg_dependencies. Record which
8874 registers are used and which registers are set by the jump.
8875 Clear deps->reg_conditional_sets after a barrier.
8876 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8877 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8878 (init_deps): Initialize reg_conditional_sets.
8879 (free_deps): Clear reg_conditional_sets.
8880 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8881 Mark registers live on entry of the fallthrough block and conditionally
8882 set as set by the jump. Mark registers live on entry of non-fallthrough
8883 blocks as used by the jump.
8884 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8885 Mark new parameters as unused.
8887 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
8889 * doc/invoke.texi: Resync MIPS -march documentation.
8891 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
8893 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
8894 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
8895 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
8896 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
8897 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
8898 (mips_issue_rate): Handle PROCESSOR_R9000.
8899 (mips_use_dfa_pipeline_interface): Likewise.
8900 * config/mips/9000.md: New file.
8901 * config/mips/mips.md: Include it.
8902 (define_attr cpu): Add r9000.
8903 (mulsi3_mult3): Use "mul" for rm9000 code.
8905 2003-07-15 Stan Cox <scox@redhat.com>
8907 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
8908 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
8909 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
8910 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
8911 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
8912 (mips_issue_rate): Handle PROCESSOR_R7000.
8913 (mips_use_dfa_pipeline_interface): Likewise.
8914 * config/mips/7000.md: New file.
8915 * config/mips/mips.md: Include it.
8916 (define_attr cpu): Add r7000.
8917 (mulsi3_mult3): Use "mul" for rm7000 code.
8919 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
8921 * config/mips/mips.md (define_attr type): Add condmove. Use it for
8922 the conditional move patterns.
8923 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
8924 Check for condmove type.
8925 (ir_vr54_arith): Add move type.
8926 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
8927 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
8929 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
8931 * c-opts.c (print_help): Remove.
8932 (c_common_handle_option): Don't handle --help.
8933 * c.opt: Document some options.
8935 * opts.c (print_filtered_help): New.
8936 (print_help): Use it.
8938 2003-07-14 Geoffrey Keating <geoffk@apple.com>
8940 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
8941 * tree.c: (build_common_tree_nodes_2): Likewise.
8942 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
8943 (V4DF_type_node): New.
8945 * c-opts.c (push_command_line_include): Don't free deferred_opts,
8947 (finish_options): Reset init_cursor.
8949 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
8951 * expr.c (expand_assignment): Remove an unused argument
8953 * expr.h: Update the prototype.
8954 * function.c: Update the callers.
8957 2003-07-14 Mark Mitchell <mark@codesourcery.com>
8960 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
8963 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
8965 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
8966 with __cplusplus, not "we must use the C++ compiler's type"
8967 * fixinc/inclhack.def (void_null): Note that Interix needs this.
8968 * fixinc/fixincl.x: Regenerate.
8970 2003-07-14 Geoffrey Keating <geoffk@apple.com>
8972 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
8973 and unseen_objects from the global data before calling
8974 __deregister_frame_info_bases.
8975 (examine_objects): Insert objects into the seen_objects list,
8977 (_Unwind_Find_FDE): Always unlock the global object lists, even if
8978 we couldn't allocate a data structure to put in it.
8980 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
8981 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
8982 (SET_TYPE_PROTOCOL_LIST): New.
8983 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
8984 (get_object_reference): Likewise.
8986 2003-07-14 Jan Hubicka <jh@suse.cz>
8988 * cfglayout.c (locator_file): Break out from ....
8989 (insn_file): ... here.
8990 (locator_line): Break out from ....
8991 (insn_line): ... here.
8992 * rtl.h (locator_file, locator_line): Declare.
8993 (final_start_function): Set proper line/file info.
8995 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
8997 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
8998 handled by pp_c_cast_expression.
9000 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
9002 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
9003 allocate 32768 bytes of stack. Use addition rather than subtraction
9004 when a single insn is enough.
9005 * config/mips/mips.md: Remove insns and splitters for subtracting
9007 (subsi3): Only accept register operands.
9008 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
9009 (subdi3_internal_3, subsi3_internal_2): Likewise.
9010 (casesi): Use expand_binop to subtract the lower bound.
9012 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
9014 * config/mips/mips.c (mips_in_small_data_p): Don't handle
9015 TARGET_MIPS16 specially.
9017 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
9019 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
9020 mips_output_aligned_bss.
9021 * config/mips/linux.h: Likewise.
9022 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
9023 * config/mips/mips.c (mips_output_aligned_bss): New function.
9025 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
9026 * config/mips/elf64.h: Likewise.
9028 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
9029 mips_declare_object_name.
9030 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
9031 * config/mips/elf64.h: As for elf.h.
9032 * config/mips/iris6.h: Likewise.
9033 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
9034 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
9035 do...while (0) block.
9036 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
9037 (mips_finish_declare_object): Declare.
9038 * config/mips/mips.c (mips_declare_object_name): New function.
9039 (mips_finish_declare_object): New function.
9041 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
9042 * config/mips/linux.h: Likewise.
9044 * config/mips/mips.c (inside_function): Delete.
9045 (file_in_function_warning, ignore_line_number): Delete.
9046 (mips_output_filename): Don't warn about changing filenames within
9048 (mips_output_lineno): Update accordingly.
9049 (mips_output_function_prologue): Don't reset the deleted variables.
9050 * config/mips/mips.h (inside_function): Delete.
9051 (file_in_function_warning, ignore_line_number): Delete.
9053 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
9054 * config/mips/elf64.h: Likewise.
9055 * config/mips/openbsd.h: Likewise.
9056 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
9057 * config/mips/linux.h: Likewise.
9058 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
9059 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
9061 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
9062 to the list of include files when using gas.
9063 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
9064 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
9065 * config/mips/elf64.h: Likewise.
9066 * config/mips/iris5.h: Likewise.
9067 * config/mips/linux.h: Likewise.
9068 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
9069 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
9070 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
9071 * config/mips/sdb.h: ...this new file.
9073 2003-07-14 Douglas Rupp <rupp@gnat.com>
9075 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
9076 argument to getcwd; use fixed buffer instead.
9078 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
9080 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
9081 * fixinc/fixinc.wrap: Delete.
9083 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
9085 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
9088 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
9090 * ggc-page.c (struct globals): Add new fields to keep track of the
9091 total allocated memory and overhead.
9092 (ggc_print_statistics): Print them.
9093 (ggc_alloc): Keep track of the total allocated memory and the
9096 * tree.c (dump_tree_statistics): Increase spacing.
9097 (enum tree_node_kind): Move to ...
9098 * tree.h (enum tree_node_kind): ... here.
9099 (tree_node_counts, tree_node_sizes): Declare.
9101 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
9103 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
9105 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9107 PR optimization/11440
9108 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
9111 2003-07-14 Alan Modra <amodra@bigpond.net.au>
9113 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
9114 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
9115 (emit_group_load, emit_group_store): Adjust declarations.
9116 Remove most occurrences of #ifdef TREE_CODE.
9117 * expr.c (emit_group_load): Add "type" param, and use
9118 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
9119 aligned accesses if !SLOW_UNALIGNED_ACCESS.
9120 (emit_group_store): Likewise.
9121 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
9122 emit_group_load and emit_group_store calls.
9123 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
9124 BLOCK_REG_PADDING to determine whether we need endian_correction.
9125 (load_register_parameters): Localize vars. Handle shifting of
9126 small values to the correct end of regs. Adjust emit_group_load
9128 (expand_call, emit_library_call_value_1): Adjust emit_group_load
9129 and emit_group_store calls.
9130 * function.c (assign_parms): Set mem alignment for stack slots.
9131 Adjust emit_group_store call. Store values at the "wrong" end
9132 of regs to the stack. Use BLOCK_REG_PADDING.
9133 (locate_and_pad_parm): Save where_pad.
9134 (expand_function_end): Adjust emit_group_load call.
9135 * stmt.c (expand_value_return): Adjust emit_group_load call.
9136 * Makefile.in (calls.o): Depend on $(OPTABS_H).
9137 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
9138 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
9139 (MUST_PASS_IN_STACK): Define.
9140 (BLOCK_REG_PADDING): Define.
9141 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
9142 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
9143 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
9144 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
9145 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
9147 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
9149 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
9151 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9153 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
9154 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
9156 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
9159 * toplev.c: Don't cut off option names.
9161 2003-07-13 Andreas Jaeger <aj@suse.de>
9163 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
9164 to integer of different size.
9166 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
9168 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
9169 to (eq (and X 1) 0).
9171 2003-07-13 Andreas Jaeger <aj@suse.de>
9173 * config.gcc: Add pmmintrin.h for x86_64-*-*.
9175 2003-07-13 Zack Weinberg <zack@codesourcery.com>
9177 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
9178 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
9179 list. Move these all together down by cpplib.
9181 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
9182 definition of CPPCHAR_SIGNED_T.
9184 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
9185 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
9186 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
9188 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
9189 * cppinit.c (cpp_create_reader): Likewise.
9191 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
9192 * cpptrad.c: Likewise. All callers changed.
9193 * cpplib.c: All callers changed.
9194 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
9195 * hashtable.h: Define GTY(x) to nothing here too.
9197 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9199 * stor-layout.c (compute_record_mode): Remove very obsolete test
9200 that forces BLKmode for records with fields crossing word boundary.
9202 2003-07-13 Zack Weinberg <zack@codesourcery.com>
9204 * Makefile.in: Remove orphan reference to acconfig.h.
9206 2003-07-13 Andreas Jaeger <aj@suse.de>
9208 * cgraphunit.c: Convert prototypes to ISO C90.
9210 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
9212 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
9214 * fixinc/fixincl.x: Rebuild.
9216 2003-07-12 Zack Weinberg <zack@codesourcery.com>
9218 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
9219 i?86-*-*. Use correct name of cache variable.
9220 * configure: Regenerate.
9222 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
9224 * config/alpha/alpha.c: Fix comment typos.
9225 * config/alpha/alpha.md: Likewise.
9226 * config/arm/arm.c: Likewise.
9227 * config/arm/arm.md: Likewise.
9228 * config/arm/lib1funcs.asm: Likewise.
9229 * config/avr/avr.md: Likewise.
9230 * config/arm/README-interworking: Fix typos.
9232 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
9234 * c-format.c: Fix comment formatting.
9235 * c-typeck.c: Likewise.
9236 * coverage.c: Likewise.
9237 * cppcharset.c: Likewise.
9238 * cpplib.c: Likewise.
9239 * dbxout.c: Likewise.
9240 * gcov-io.h: Likewise.
9241 * toplev.c: Likewise.
9243 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
9245 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
9248 2003-07-12 Zack Weinberg <zack@codesourcery.com>
9250 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
9251 uses three-argument AC_DEFINE so no acconfig.h entries are
9253 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
9254 which contains the GAS version number as a scaled integer.
9255 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
9256 ability to check for ELF assembler.
9257 (gcc_GAS_CHECK_FEATURE): New macro.
9258 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
9259 assembler feature checks using gcc_GAS_CHECK_FEATURE.
9260 Use three-argument AC_DEFINE everywhere.
9261 * acconfig.h: Deleted.
9262 * config.in, configure: Regenerate.
9264 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
9266 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
9268 * fixinc/fixincl.x: Regenerate.
9270 * fixinc/inclhack.def (gnu_types): Improve comment.
9272 2003-07-12 Andreas Jaeger <aj@suse.de>
9274 * fp-test.c (main): Use ISO C90 prototype.
9276 * version.c: Remove unneded include of ansidecl.h.
9278 * cgraph.h: Convert prototypes to ISO C90.
9279 * cgraph.c: Likewise.
9280 * fix-header.c: Likewise.
9282 * protoize.c: Likewise.
9284 2003-07-12 Jan Hubicka <jh@suse.cz>
9286 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
9289 2003-07-12 Jan Hubicka <jh@suse.cz>
9290 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9292 * cgraph.c (cgraph_max_uid): New global variable.
9293 (cgraph_node): Set uid field.
9294 (create_edge): Keep inline flags consistent.
9295 (dump_cgraph): Dump more info.
9296 * cgraph.h (struct cgraph_local_info): Remove inline_many and
9297 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
9298 (struct cgraph_global_info): Add insns, calls, cloned_times,
9300 (struct cgraph_node): Add uid.
9301 (struct cgraph_edge): Add inline_call.
9302 (cgraph_max_uid, cgraph_inline_p): Declare.
9303 * cgraph.c: Include params.h and fibheap.h
9304 (cgraph_mark_functions_to_inline_once): Kill.
9305 (INSNS_PER_CALL): New constant.
9306 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
9308 (cgraph_finalize_function): Do not analyze inlining.
9309 (cgraph_finalize_compilation_unit): Set inlining attributes.
9310 (cgraph_mark_functions_to_output): More consistency checks.
9311 (cgraph_optimize_function): Set current_function_decl to NULL.
9312 (cgraph_expand_function): Use new inline flags.
9313 (cgraph_postorder): Expand from cgraph_expand_functions.
9314 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
9315 (cgraph_inlined_into, cgraph_inlined_callees,
9316 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
9317 cgraph_mark_inline, cgraph_check_inline_limits,
9318 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
9319 cgraph_decide_inlining, cgraph_inline_p): New functions.
9320 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
9321 PARAM_INLINE_UNIT_GROWTH): New parameters.
9322 * tree-inline.c (struct inline_data): New field current_decl.
9323 (expand_call_inline): Avoid forward declarations; use
9324 inlinable_function_p.
9325 (optimize_inline_calls): Set id.current_decl.
9327 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
9329 * configure.in: Remove wrongly added definition of
9331 * configure: Regenerate.
9333 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9335 * rtl.def (NOTE): Do not use padding.
9337 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
9339 * doc/install.tex: Update required binutils for i?86-*-linux*
9341 2003-07-11 Richard Henderson <rth@redhat.com>
9343 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
9345 2003-07-11 Mark Mitchell <mark@codesourcery.com>
9347 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
9348 TRANSLATION_UNIT_DECL as top_level.
9350 2003-07-11 Jakub Jelinek <jakub@redhat.com>
9352 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
9353 then fall back to cmpstrM.
9354 * builtins.c (expand_builtin_memcmp): Likewise.
9355 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
9356 (s390_expand_cmpmem): ... this.
9357 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
9358 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
9359 from cmpstr* patterns. Rename call to s390_expand_cmpstr
9360 to s390_expand_cmpmem.
9361 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
9362 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
9364 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
9366 * doc/md.texi (cmpstrM): Describe as String compare insn, not
9370 2003-07-11 Loren James Rittle <ljrittle@acm.org>
9372 * config/i386/freebsd.h (SET_ASM_OP): Remove.
9373 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
9374 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
9375 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
9377 2003-07-11 Richard Henderson <rth@redhat.com>
9379 * function.c (assign_parms): Don't recombine complex args if
9380 fnargs is unchanged from orig_fnargs.
9381 (split_complex_args): Return args without complex before copying.
9382 Re-layout the modified parameters.
9384 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
9386 * regclass.c (choose_hard_reg_mode): Add third argument.
9387 Changed all callers.
9388 * rtl.h (choose_hard_reg_mode): Update declaration.
9389 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
9390 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
9392 2003-07-11 Geoffrey Keating <geoffk@apple.com>
9394 * c-decl.c (finish_decl): Handle 'used' here...
9395 * cgraphunit.c (cgraph_finalize_function): ... and here ...
9396 * c-common.c: (handle_used_attribute): ... not here.
9398 * configure.in (onstep): Support --enable-intermodule.
9399 * Makefile.in (OBJS-common): New.
9401 (OBJS-archive): New.
9402 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
9403 (OBJS-onestep): New.
9404 (libbackend.a): Support @onestep@.
9405 (libbackend.o): New.
9406 * configure: Regenerate.
9408 * c-common.h (c_reset_state): New prototype.
9409 (c_parse_file): New prototype.
9410 (finish_file): Move prototype from c-tree.h.
9411 * c-decl.c: Include <hashtab.h>.
9412 (builtin_decls): New.
9413 (current_file_decl): New.
9414 (duplicate_decls): Add extra parameter. Change all callers. Don't
9415 output duplicate common symbols.
9416 (link_hash_hash): New.
9417 (link_hash_eq): New.
9418 (poplevel): Handle popping of the top level.
9419 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
9420 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
9421 (pushdecl_top_level): Likewise.
9422 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
9423 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
9424 (finish_decl): Handle TRANSLATION_UNIT_DECL.
9425 (merge_translation_unit_decls): New.
9426 (c_write_global_declarations): New.
9427 (c_reset_state): New.
9428 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
9429 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
9430 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
9431 TRANSLATION_UNIT_DECL.
9432 (c_objc_common_finish_file): Call merge_translation_unit_decls.
9433 * c-opts.c (in_fnames): Rename from in_fname.
9434 (c_common_decode_option): Handle multiple input filenames.
9435 (c_common_post_options): Likewise.
9436 (c_common_parse_file): Likewise; also, call c_parse_file rather than
9438 * c-parse.in: Move cleanup code to c_parse_file.
9439 (free_parser_stacks): Move contents to c_parse_file.
9440 (c_parse_file): New.
9441 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
9443 (C_DECL_FILE_SCOPE): New.
9444 (finish_file): Move prototype to c-common.h.
9445 (merge_translation_unit_decls): New prototype.
9446 (comptypes): Add extra parameter to prototype.
9447 (c_write_global_declarations): New prototype.
9448 * c-typeck.c (tagged_types_tu_compatible_p): New.
9449 (function_types_compatible_p): Add extra parameter, change all callers.
9450 (type_lists_compatible_p): Likewise.
9451 (comptypes): Likewise.
9452 (struct tagged_tu_seen): New.
9453 (tagged_tu_seen_base): New.
9454 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
9455 (c_mark_addressable): Remove #if 0 code.
9456 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
9457 comment explaining why it shouldn't have to.
9458 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
9460 * cppinit.c (cpp_read_next_file): New.
9461 (cpp_read_main_file): Use it.
9462 * cpplib.c (undefine_macros): New.
9463 (cpp_undef_all): New.
9464 * cpplib.h (cpp_read_next_file): Prototype.
9465 (cpp_undef_all): Prototype.
9466 * langhooks-def.h (write_global_declarations): Remove prototype.
9467 * toplev.h (write_global_declarations): Add prototype.
9468 * tree.c (decl_type_context): Use switch statement, handle
9469 TRANSLATION_UNIT_DECL.
9470 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
9471 (TRANSLATION_UNIT_DECL): New kind of tree.
9472 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
9473 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
9474 * doc/invoke.texi: Make attempt to document new functionality.
9476 2003-05-19 Per Bothner <bothner@apple.com>
9478 * gcc.c (combine_inputs): New.
9479 (process_command): Set combine_inputs.
9480 (do_spec_1): Handle combine_inputs.
9483 2003-07-10 James E Wilson <wilson@tuliptree.org>
9485 PR optimization/9745
9486 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
9487 loop_insn_emit_before.
9488 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
9490 2003-07-10 Zack Weinberg <zack@codesourcery.com>
9492 * cppcharset.c: Fix comment.
9493 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
9494 (EILSEQ): #define to EINVAL if not already defined.
9495 (convert_using_iconv): #if out when !HAVE_ICONV.
9496 (init_iconv_desc): Handle !HAVE_ICONV here...
9497 (cpp_init_iconv): ...not here.
9499 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
9501 * common.opt: More --help messages.
9502 * opts.c (print_help): Use puts().
9503 * toplev.c (f_options): Remove help text.
9504 (display_help): Don't dump f_options.
9506 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
9508 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
9509 Move i?86-*-interix* to the don't-fix list.
9510 * fixinc/fixinc.interix: Delete with extreme prejudice.
9512 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
9515 * doc/install.texi: Document requirements for ia64-*-hpux* target.
9517 2003-07-10 Roger Sayle <roger@eyesopen.com>
9519 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
9521 2003-07-10 Zack Weinberg <zack@codesourcery.com>
9523 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
9524 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
9525 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
9526 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
9527 convert_no_conversion, convert_using_iconv): New functions.
9528 (APPLY_CONVERSION): New macro.
9529 (struct conversion, conversion_tab): New data structure.
9530 (init_iconv_desc): Check conversion_tab for a custom conversion
9531 primitive before trying to use iconv.
9532 (convert_cset): Deleted.
9533 (cpp_init_iconv): Use UTF- terminology, not UCS-.
9534 (_cpp_destroy_iconv): Update to match.
9535 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
9536 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
9537 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
9538 (_cpp_interpret_string_notranslate): New function, moved here
9541 * cpphash.h (convert_f, struct cset_converter): New types.
9542 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
9543 are now struct cset_converter, not bare iconv_t.
9545 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
9546 all callers changed.
9548 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
9550 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
9551 to opts.sh command line.
9552 * opts.sh: Write to temporary files with a move-if-change at the end.
9554 2003-07-10 Denis Chertykov <denisc@overta.ru>
9555 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9557 * combine.c (gen_binary): Handle the CLOBBER rtx and
9558 don't build a binary operation with it.
9560 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9562 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
9563 store_killed_after, store_killed_before): Keep track of the correct
9564 dependency function to use.
9566 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
9567 * toplev.c (do_compile): Don't try to open dump files before
9568 lang_dependent_init initializes dump_base_name.
9570 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9572 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
9574 * config/frv/frv.c (frv_expand_builtin): Likewise.
9575 * config/sh/sh.c (sh_media_init_builtins): Likewise.
9577 2003-07-09 Mark Mitchell <mark@codesourcery.com>
9580 * doc/invoke.texi (C++ Dialect Options): Change documentation of
9583 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
9585 * tm.texi (RETURN_ADDR_OFFSET): Document.
9587 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
9589 * gcov-io.h: Update documentation.
9590 (GCOV_UNSIGNED2STRING): New.
9591 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
9592 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
9593 GCOV_TAG_SUMMARY_LENGTH): Adjust.
9594 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
9595 GCOV_TAG_COUNTER_NUM): New.
9596 (GCOV_BLOCK_SIZE): Number of words.
9597 (gcov_var): Adjust buffer type.
9598 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
9599 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
9600 count, not byte count.
9601 (gcov_open): Adjust overread init.
9602 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
9603 gcov_write_string, gcov_write_tag, gcov_write_length,
9604 gcov_write_tag_length): Adjust.
9605 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
9606 (gcov_sync, gcov_seek): Adjust.
9607 * gcov-dump.c (print_usage): Show gcc version only.
9608 (dump_file): Use GCOV_UNSIGNED2STRING.
9609 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
9610 * gcov.c (print_version): Show gcc version only.
9611 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
9612 GCOV_TAG_*_NUM macros.
9613 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
9614 GCOV_TAG_COUNTER_LENGTH.
9615 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
9616 Use GCOV_TAG_COUNTER_NUM.
9617 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
9618 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
9620 2003-07-10 Andreas Schwab <schwab@suse.de>
9622 * gcov-dump.c (dump_file): Fix missing address operator.
9624 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
9627 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
9629 (fold_single_bit_test): If sign_bit_p() fails, assume that the
9630 bit being tested is not a sign bit.
9632 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
9634 * config/h8300/h8300.md (a peephole2): New.
9636 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
9638 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
9639 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
9640 from ld-linux.so.2 to ld.so.1.
9641 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
9642 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
9643 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
9644 nor -Wl,-rpath-link.
9645 (LIB_SPEC): Add -rpath-link if !static.
9646 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
9647 * config/mn10300/mn10300.c (mn10300_protect_label): New
9649 * config/mn10300/linux.h (PRINT_OPERAND,
9650 PRINT_OPERAND_ADDRESS): Set it during their execution.
9651 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
9652 mn10300_protect_label is set.
9653 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
9655 (LIB_SPEC, STARTFILE_SPEC): Define.
9656 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
9657 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
9658 FLOAT_BIT_ORDER_MISMATCH.
9659 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
9660 * config.gcc (am33_2.0-*-linux*): Added.
9661 * config/mn10300/linux.h: New.
9662 * config/mn10300/t-linux: New.
9664 2003-07-10 Andreas Jaeger <aj@suse.de>
9666 * fold-const.c: Properly wrap prototypes.
9668 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
9670 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
9671 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
9673 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
9674 * config/mn10300/mn10300.h: GTY-declare it.
9675 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
9676 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
9677 prototype. Use incoming RTL argument.
9678 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
9679 * config/mn10300/mn10300.md (int_label): Move C statements...
9680 (GOTaddr2picreg): ... here.
9681 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
9682 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
9683 * config/mn10300/mn10300.c (mn10300_encode_section_info):
9684 ... here. New function.
9685 (TARGET_ENCODE_SECTION_INFO): Define to it.
9686 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
9687 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
9689 (mn10300_loadPC): Define as insn splittable after reload.
9690 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
9691 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
9692 be defined in .rodata even in PIC, now that the assembler
9694 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
9695 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
9696 symbol take an underscore prefix.
9697 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
9698 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
9699 legitimize_pic_address): Declare.
9700 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
9701 the PIC register as fixed.
9702 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
9703 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
9705 (LEGITIMATE_PIC_OPERAND_P): Define.
9706 (PIC_OFFSET_TABLE_REGNUM): Define.
9707 (GOT_SYMBOL_NAME): Define.
9708 (SYMBOLIC_CONST_P): Define.
9709 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
9711 (MN10300_GLOBAL_P): Test it.
9712 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
9713 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
9714 * config/mn10300/mn10300.c (print_operand): Handle unspec.
9715 (expand_prologue): Set PIC register.
9716 (call_address_operand): Don't match SYMBOL_REFs in PIC.
9717 (legitimize_address): Call legitimize_pic_address.
9718 (legitimize_pic_address): New fn.
9719 (legitimate_pic_operand_p): New fn.
9720 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
9721 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
9722 UNSPEC_PLT): New constants.
9723 (pop_pic_reg): New insn.
9724 (movsi): Adjust non-PIC addresses.
9725 (builtin_setjmp_receiver): Restore the PIC register.
9727 (call): Adjust non-PIC addresses.
9728 (int_label, GOTaddr2picreg): New expands.
9729 (am33_loadPC): New insn.
9730 (mn10300_loadPC): New expand.
9731 (call_next_insn): New insn.
9732 (add_GOT_to_pic_reg): New expand.
9733 (symGOT2reg, symGOT2reg_i): New expands.
9734 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
9735 (sym2PIC, sym2PLT): New expands.
9737 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
9739 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
9740 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
9741 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
9742 to flag_unsafe_math_optimizations.
9743 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
9744 * config/mn10300/mn10300.c (expand_prologue): Mark
9745 FP-register-saving insns as frame-related.
9746 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
9747 * config/mn10300/mn10300.c
9748 (mn10300_get_live_callee_saved_regs): Don't search past
9749 LAST_EXTENDED_REGNUM.
9750 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
9751 * config/mn10300/mn10300.md: Remove excessive line breaks from
9752 `@' output patterns that were accounted as additional
9754 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
9755 Re-introduce changes accidentally removed in Richard Sandiford's
9757 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
9758 Re-instate am33-2 lost in merge from net GCC.
9759 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
9760 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
9761 floating-point registers.
9762 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
9763 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
9764 pessimizations that had gone in on 2000-05-08.
9765 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
9766 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
9767 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
9768 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
9770 * (movhi): Likewise.
9771 * (movsi): Likewise.
9772 * (movsf): Likewise.
9773 * (movdi): Likewise.
9774 * (movdf): Likewise.
9775 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
9776 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
9777 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
9778 (expand_prologue, expand_epilogue): Save and restore FP regs.
9779 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
9780 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
9781 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
9782 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
9783 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
9785 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
9786 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
9787 Discourage the two-argument, longer opcodes.
9788 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
9790 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
9791 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
9792 * config/mn10300/mn10300.md (cmpsf): New pattern.
9793 (branch): Test mdep.fpCC and output fbCC.
9794 * config/mn10300/mn10300.c (print_operand): Output conditions.
9795 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
9796 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
9797 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
9798 mulsf3, divsf3): Use the `F' constraint for FP values.
9799 * config/mn10300/mn10300.c (const_1f_operand): New function.
9800 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
9801 * config/mn10300/mn10300.md (sqrtsf2): New expand.
9802 (rsqrtsf2): New insn.
9803 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
9804 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
9806 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
9807 * config/mn10300/mn10300.md (abssf2, negdf2): On
9808 TARGET_AM33_2, expand to...
9809 (abssf2_am33_2, negdf2_am33_2): New insns.
9810 (addsf3, subsf3, mulsf3, divsf3): Likewise.
9811 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
9812 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
9813 movdi, movdf): Added FP regs.
9814 * invoke.texi (-mam33-2, -mno-am33-2): Document.
9815 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
9816 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
9818 (REGNO_AM33_2_FP_P): Renamed to...
9819 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
9820 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
9821 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
9822 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
9823 regs from GENERAL_REGS.
9824 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
9825 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
9826 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
9827 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
9828 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
9829 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
9831 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
9832 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
9833 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
9834 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
9835 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
9836 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
9837 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
9838 AM33/2.0 floating-point registers.
9839 (CONDITIONAL_REGISTER_USAGE): Adjust.
9840 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
9841 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
9842 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
9843 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
9844 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
9845 (MULTILIB_DIRNAMES): Likewise.
9846 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
9847 `__AM33_2__' when `-mam33-2' is given.
9848 (TARGET_AM33_2): Define.
9849 (TARGET_SWITCHES): Adjust.
9850 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
9853 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
9855 * doc/install.texi: Add missing @.
9857 2003-07-09 Bob Wilson <bob.wilson@acm.org>
9859 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
9861 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
9864 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
9866 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
9869 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
9870 "x-crtfini.o" with "crtinit.o", "crtfini.o".
9872 * fixinc/inclhack.def (limits_ifndefs): Add select test.
9873 * fixinc/fixincl.x: Rebuild.
9875 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
9876 * fixinc/fixincl.x: Rebuild.
9878 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
9880 * doc/install.texi (Configuration): Document the valgrind option
9881 to --enable-checking.
9883 2003-07-09 Jan Hubicka <jh@suse.cz>
9885 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
9887 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9889 * c-lex.c (cb_ident): Cast cstr.text to const char *.
9891 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
9893 * gcov-io.h: Update documentation.
9894 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
9896 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
9897 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
9898 (struct gcov_var): Change buffer's type. Add endian flag.
9899 (gcov_open): Remove mode in libgcov.
9900 (gcov_magic): Prototype.
9901 * gcov-io.c (from_file): New.
9902 (gcov_open): Clear endian flag.
9904 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
9906 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
9907 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
9908 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
9909 * gcov-iov.c (main): Correct cast.
9910 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
9912 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
9913 (coverage_init): Use GCOV_NOTE_SUFFIX.
9914 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
9915 Rename to gcov_version, and return flag.
9916 (gcov_exit): Use gcov_version.
9917 (__gcov_init): Use gcov_version.
9918 * Makefile.in (coverageexts): Update.
9919 * gcov.c (print_version): Remove endianness conversion.
9920 (create_file_names): Use GCOV_NOTE_SUFFIX.
9921 (read_graph_file): Use gcov_magic.
9922 (read_count_file): Likewise.
9923 * gcov-dump.c (dump_file): Remove endianness conversion, use
9926 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
9928 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
9930 * configure: Regenerated.
9931 * Makefile.in (ALL_CFLAGS): Correct its comment.
9933 2003-07-08 Mark Mitchell <mark@codesourcery.com>
9935 * fold-const.c (make_range): Do not access operand 1 for a
9936 zero-operand operator.
9938 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
9940 * toplev.c (warn_dummy, W_options): Die.
9941 (display_help): Don't print W_options.
9942 * common.opt: Add W_options help from toplev.c.
9944 2003-07-09 Andreas Jaeger <aj@suse.de>
9946 * opts.c (wrap_help): Only pass int arguments as arguments to
9947 printf's '*' modifier. Change argument of function.
9949 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
9951 * doc/invoke.texi: Fix misspelling of "@item".
9953 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
9955 * config/i386/i386.md: Remove an old comment about
9958 2003-07-09 Jan Hubicka <jh@suse.cz>
9960 * cgraph.c (cgraph_node_name): New function.
9961 (dump_cgraph): Use it.
9962 * cgraph.h (cgraph_dump_file): Declare.
9963 (cgraph_node_name): Declare.
9964 * cgraphunit.c: Include timevar.h
9965 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
9966 (cgraph_optimize_function): Use TV_INTEGRATION.
9967 (cgraph_mark_local_functions): reorganize dumps.
9968 (cgraph_mark_functions_to_inline_once): Likewise.
9969 (cgraph_optimize): Likewise; use timevar.
9970 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
9971 * toplev.c (dump_file_index): Add DFI_cgraph.
9972 (dump_file_info): Likewise.
9973 (cgraph_dump_file): New global variable.
9974 (do_compile): Open and close cgraph dump.
9975 * invoke.texi (-d): Document new flag; renumber.
9977 2003-07-08 Roger Sayle <roger@eyesopen.com>
9980 * calls.c (emit_call_1): Don't bother popping the arguments off of
9981 the stack after a noreturn function call; The adjustment is dead.
9982 (expand_call): Likewise.
9984 2003-07-08 Geoffrey Keating <geoffk@apple.com>
9986 * expr.c (MOVE_MAX_PIECES): Move from here...
9987 * defaults.h (MOVE_MAX_PIECES): ... to here.
9989 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
9991 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
9993 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9995 * genattr.c (internal_dfa_insn_code): Don't prototype.
9996 * genattrtab.c (attr_desc): Add `static_p' field.
9997 (expand_units): Make blockage range and ready cost functions
9999 (write_attr_get): Don't add extern prototypes in C file. Mark
10000 static functions as appropriate.
10001 (find_attr, make_internal_attr): Initialize static_p.
10002 * genattrtab.h (ATTR_STATIC): New macro.
10003 * genautomata.c (output_internal_reset_func): Mark output function
10005 (make_internal_dfa_insn_code_attr): Mark output function as static.
10007 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10009 * genattrtab.h: Add new macros for attr `special' flags.
10010 * genattrtab.c (attr_desc): Reorder/resize fields better.
10011 Use attr `special' macros in all calls to make_internal_attr.
10012 * genautomata.c: Likewise.
10014 2003-07-09 Jan Hubicka <jh@suse.cz>
10016 * c-common.c (c_estimate_num_insns_1): New static function.
10017 (c_estimate_num_insns): New global function.
10018 * c-common.h (DECL_NUM_STMTS): Rename to...
10019 (DECL_ESTIMATED_INSNS): ... this.
10020 (c_estimate_num_insns): Declare.
10021 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
10022 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
10023 * c-semantics.c (add_stmt): Do not account statements.
10024 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
10026 * langhooks.h (lang_hooks_for_tree_inlining): Add
10028 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
10030 (max-inline-insns): set to 300.
10031 (min-inline-insns): set to 10.
10032 * tree-inline.c (struct inline_data): Rename inlined_stmts to
10034 (INSNS_PER_STMT): Kill.
10035 (inlinable_function_p): Compute and store body size.
10036 (expand_call_inline): Likewise.
10037 (optimize_inline_calls): Likewise.
10039 2003-07-08 James E Wilson <wilson@tuliptree.org>
10042 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
10043 loop over new variable t2 instead of t.
10045 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
10048 * config/i386/winnt.c: Replace use of error(), warning() with
10049 error_with_decl(), warning_with_decl(), throughout.
10051 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
10053 * opts.c (wrap_help): Use unsigned int, not size_t.
10055 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
10057 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
10058 as .file/.loc directives are incompatible with linker relaxation.
10060 2003-07-08 Zack Weinberg <zack@codesourcery.com>
10062 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
10063 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
10064 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
10065 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
10066 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
10067 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
10068 Escape { and } characters which are not part of range expressions.
10069 * fixinc/fixincl.x: Regenerate.
10070 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
10072 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
10075 * tree-inline.c (find_alloca_call): Use
10076 walk_tree_without_duplicates, instead of walk_tree.
10077 (find_builtin_longjmp_call): Likewise.
10078 * c-objc-common.c (c_cannot_inline_fn): Likewise.
10079 * c-semantics.c (find_reachable_label): Likewise.
10081 2003-07-08 Jakub Jelinek <jakub@redhat.com>
10084 * config/i386/i386.c (ix86_check_movabs): New function.
10085 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
10086 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
10087 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
10089 2003-07-08 Chris Demetriou <cgd@broadcom.com>
10091 * Makefile.in (install-po): Cope with empty CATALOGS.
10093 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
10095 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
10096 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
10097 (SECTION_FUNCTION_TEMPLATE): Delete.
10098 * config/mips/elf.h: As for elf64.h.
10099 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
10100 * config/mips/linux.h: As for elf.h
10101 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
10102 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
10103 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
10104 of in_sdata from current_section_name and current_section_flags.
10105 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
10106 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
10107 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
10108 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
10109 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
10110 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
10111 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
10112 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
10113 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
10114 (override_options): Remove setting of MASK_GPOPT.
10115 (mips_output_external): Use mips_in_small_data_p to check whether a
10116 symbol needs an .extern directive. Don't emit such directives for
10117 TARGET_EXPLICIT_RELOCS.
10118 (mips_declare_object): Update accordingly.
10119 (mips_select_rtx_section): Call named_section rather than
10120 SMALL_DATA_SECTION.
10121 (mips_select_section): Use default_elf_section_section for everything
10122 except .text string constants.
10123 (mips_in_small_data_p): New function.
10124 (mips_encode_section_info): Remove small data handling.
10125 (mips_unique_section): Delete.
10126 (iris6_section_type_flags): New function.
10127 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
10129 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10132 * pa.md: Disparage all mtsar constraints.
10133 (extzv, extv, insv): Don't fail on length of {32|64}.
10135 2003-07-08 Zack Weinberg <zack@codesourcery.com>
10137 * system.h: Poison MAP_CHARACTER.
10138 * config/i370/i370-protos.h (mvs_map_char): Delete.
10139 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
10140 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
10141 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
10143 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
10145 * toplev.c (randomize): Correct call to time().
10147 2003-07-08 Jakub Jelinek <jakub@redhat.com>
10149 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
10150 REG_EQUIV notes as well.
10152 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
10154 * doc/md.texi: Fix the description of addmodecc.
10156 2003-07-07 Zack Weinberg <zack@codesourcery.com>
10158 * Makefile.in (top_builddir): Set to "..", not ".".
10159 (INTLLIBS, INTLDEPS): Delete.
10160 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
10161 (LIBDEPS): Add $(LIBICONV_DEP).
10162 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
10163 (INCLUDES): Replace -I../intl with @INCINTL@.
10164 ($(top_builddir)/intl/libintl.a): Delete rule.
10165 (stage2-start, stage3-start, stage4-start, stageprofile-start,
10166 stagefeedback-start): Use $$ for variable to be evaluated by
10168 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
10169 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
10170 * aclocal.m4: sinclude ../config/progtest.m4. Add
10171 contents of lcmessage.m4 from gettext distro.
10172 * configure.in: Check for wchar.h and setlocale. Set
10173 LIBICONV_DEP to the empty string and substitute it.
10174 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
10175 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
10176 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
10177 in $LIBINTL, to avoid linking it twice.
10178 * configure, config.in: Regenerate.
10180 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
10182 * fixinc/mkfixinc.sh: Remove winnt support.
10183 * fixinc/fixinc.winnt: Delete with extreme prejudice.
10185 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
10187 * Makefile.in: Update.
10188 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
10189 * c.opt: Update documentation.
10190 * common.opt: Add some help text.
10191 * opts.c: Include intl.h.
10192 (wrap_help, print_help): New.
10193 (find_opt, handle_option, common_handle_option): opt_text now
10194 contains the '-'. Use print_help to output help.
10195 * opts.h (struct cl_option): New member "help".
10196 * opts.sh: Update to handle help text output and to prepend
10198 * toplev.c (display_help): Remove some help text.
10200 2003-07-07 David Edelsohn <edelsohn@gnu.org>
10201 Fariborz Jahanian <fjahanian@apple.com>
10203 * configure.in: Test for PowerPC mfcr field support in assembler.
10204 * config.in, configure: Regenderated.
10206 * config/rs6000/power4.md: Add mfcrf reservation.
10207 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
10208 * config/rs6000/rs6000.c (mfcr_operation): Define.
10209 (print_operand): Add 'Q' case for mfcrf.
10210 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
10211 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
10212 (movcc_internal1): Emit optional field operand for mfcr and set
10213 "type" attribute appropriately.
10214 (mfcr SCC): Likewise.
10215 (movesi_from_cr_one): New.
10217 2003-07-07 Roger Sayle <roger@eyesopen.com>
10219 * config/i386/i386.md: Correct check-in of incorrect version.
10221 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10223 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
10224 adjacent stdio calls.
10225 * c-decl.c (c_print_identifier): Likewise.
10226 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
10227 * print-rtl.c (print_rtx): Likewise.
10228 * print-tree.c (print_node_brief, print_node): Likewise.
10229 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
10231 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
10232 * config.in, configure: Regenerated.
10234 2003-07-07 Roger Sayle <roger@eyesopen.com>
10237 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
10238 Changed to define_expand patterns that copy operand[1] to prevent
10239 it from being clobbered before emitting an atan2?f3_1 insn.
10240 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
10241 patterns that actually specify the behaviour of x87's FPATAN.
10243 2003-07-07 Jakub Jelinek <jakub@redhat.com>
10245 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
10246 clearing of SYMBOL_FLAG_LOCAL bit.
10247 If vcall_offset fits into signed 16-bit immediate, use
10248 one instruction for both addition and load.
10250 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
10252 * opts.c (common_handle_option): Correct handling of the
10253 -falign- switches that do and don't take an argument.
10255 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
10257 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
10259 (pushhi1_h8300hs): Likewise.
10261 2003-07-07 Andreas Jaeger <aj@suse.de>
10263 * genextract.c: Convert remaining prototypes to ISO C90.
10265 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
10266 * fold-const.c (fold_single_bit_test): Likewise.
10267 * diagnostic.c (default_diagnostic_finalizer): Likewise.
10268 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
10270 * gengtype.c (write_array): Generate ISO C90 prototypes.
10272 * genflags.c (gen_proto): Generate ISO C90 prototypes.
10274 2003-07-07 Roger Sayle <roger@eyesopen.com>
10276 PR optimization/11059
10277 * expr.c (can_store_by_pieces): Return true if length is zero.
10278 (store_by_pieces): If length is zero and endp is two, abort,
10279 othwerise, if length is zero and endp is not two, return "to".
10280 (clear_by_pieces): Do nothing if length is zero.
10281 (clear_storage): Do nothing if length is zero.
10282 (store_constructor): Simplify code when size is zero, or the
10283 target has already been cleared. This avoids emitting a
10284 blockage instruction when initializing empty structures.
10286 2003-07-07 Andreas Jaeger <aj@suse.de>
10288 * mips-tfile.c: Convert prototypes to ISO C90.
10289 * mips-tdump.c: Convert prototypes to ISO C90.
10291 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
10293 * rtl.h (emit_line_note): Take a location_t.
10294 (emit_line_note_force): Remove.
10295 (set_file_and_line_for_statement): Take a location_t.
10296 * tree.g (emit_line_note): Take a location_t.
10297 * emit-rtl.c (emit_line_note): Take a location_t.
10298 (emit_line_note_force): Remove.
10299 * function.c (init_function_start): Adjust emit_line_note call.
10300 (expand_function_end): Use force_next_line_note, not
10301 emit_line_note_force.
10302 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
10303 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
10304 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
10305 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
10306 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
10307 genrtl_continue_stmt, genrtl_switch_stmt,
10308 genrtl_asm_stmt): Likewise.
10309 * expr.c (expand_expr): Likewise.
10310 * integrate.c (expand_inline_function): Likewise.
10311 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
10312 (expand_decl_init): Adjust emit_line_note call.
10314 2003-07-07 Dale Johannesen <dalej@apple.com>
10316 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
10318 2003-07-07 Andreas Jaeger <aj@suse.de>
10320 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
10321 * config/i386/i386.c: Likewise.
10323 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
10325 * config/h8300/h8300.md: Use gen_int_mode instead of
10326 GEN_INT (trunc_int_for_mode (...)).
10328 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
10330 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
10331 2 bytes and then subtract 2 from the stack pointer.
10332 (pushhi1_h8300hs): Likewise.
10334 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
10336 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
10338 * configure: Regenerated.
10339 * Makefile.in: Remove extraneous comment.
10340 * toplev.c (randomize): Protect against potential multiple calls.
10341 * doc/invoke.texi (-frandom-seed): Document use for in coverage
10344 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10345 Eric Botcazou <ebotcazou@libertysurf.fr>
10347 PR optimization/11198
10348 * alias.c (objects_must_conflict_p): Return 1 if the types have
10349 the same alias set, not if the alias sets only conflict.
10351 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
10353 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
10354 (convert_cset): Change inbuf to type ICONV_CONST char.
10355 * Makefile.in (LIBS): Add LIBICONV.
10357 * doc/invoke.texi (-falign-functions): Document that
10358 when n is zero then a machine-dependent default is used.
10359 (-falign-labels): Document that when n is zero then a
10360 machine-dependent default is used and that -falign-labels =1
10361 is equivalent to -fno-align-labels.
10362 (-falign-loops): Likewise.
10363 (-falign-jumps): Likewise.
10365 2003-07-06 Art Haas <ahaas@airmail.net>
10367 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
10368 initializer syntax.
10370 2003-07-06 James E Wilson <wilson@tuliptree.org>
10372 PR optimization/9812
10373 * rtl.h (mem_for_const_double): Delete prototype.
10374 * varasm.c (mem_for_const_double): Delete function.
10375 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
10376 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
10377 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
10378 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
10379 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
10380 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
10381 comment about confused support for XFmode constants.
10383 2003-07-07 Jan Hubicka <jh@suse.cz>
10385 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
10387 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
10389 * config/h8300/h8300.c: Fix comment typos.
10390 * config/h8300/h8300.md: Likewise.
10391 * config/i386/athlon.md: Likewise.
10392 * config/i386/i386.c: Likewise.
10393 * config/i386/pentium.md: Likewise.
10394 * config/ia64/ia64.c: Likewise.
10395 * config/ia64/itanium1.md: Likewise.
10396 * config/ia64/itanium2.md: Likewise.
10397 * config/m32r/m32r.md: Likewise.
10398 * config/m68hc11/m68hc11.c: Likewise.
10399 * config/mcore/mcore.c: Likewise.
10400 * config/mips/sr71k.md: Likewise.
10401 * config/mips/t-iris5-as: Likewise.
10402 * config/mmix/mmix.h: Likewise.
10403 * config/ns32k/ns32k.h: Likewise.
10404 * config/ns32k/NOTES: Fix a typo.
10406 2003-07-06 Andreas Jaeger <aj@suse.de>
10408 * stmt.c: Convert remaining prototypes to ISO C90.
10409 * cfglayout.c: Likewise.
10410 * dbxout.c: Likewise.
10412 * genemit.c: Likewise.
10414 * basic-block.h: Convert prototypes to ISO C90.
10415 * c-parse.in: Likewise.
10416 * c-pragma.h: Likewise.
10417 * c-typeck.c: Likewise.
10418 * cfghooks.h: Likewise.
10419 * cfgloopanal.c: Likewise.
10420 * dbxout.h: Likewise.
10421 * debug.h: Likewise.
10422 * dwarf2asm.h: Likewise.
10423 * gcov.c: Likewise.
10424 * gengtype-lex.l: Likewise.
10425 * sched-int.h: Likewise.
10426 * timevar.c: Likewise.
10428 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
10430 * c-common.h (c_comon_handle_filename,
10431 c_common_missing_arguement): New.
10432 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
10433 LANG_HOOKS_MISSING_ARGUMENT): New.
10434 * c-opts.c (missing_arg): Rename c_common_missing_argument,
10435 update to be an appropriate langhook.
10436 (c_common_handle_option): Don't handle filenames.
10437 (c_common_handle_filename): New.
10438 * hooks.c (hook_void_constcharptr,
10439 hook_bool_constcharptr_size_t_false): New.
10440 * hooks.h (hook_void_constcharptr,
10441 hook_bool_constcharptr_size_t_false): New.
10442 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
10443 LANG_HOOKS_MISSING_ARGUMENT): New.
10444 (LANG_HOOKS_INITIALIZER): Update.
10445 * langhooks.h (struct lang_hooks): Add handle_filename and
10447 * opts.c (handle_option): Don't handle filenames here, but ...
10448 (handle_options): ... here.
10449 (common_handle_option): Don't handle missing arguments here.
10450 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
10451 LANG_HOOKS_MISSING_ARGUMENT): New.
10453 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
10455 * Makfile.in: Remove traces of mbchar.
10456 * c-parse.in (MULTIBYTE_CHARS): Remove.
10457 * config.in (MULTIBYTE_CHARS): Remove.
10458 * configure: Remove --enable-mbchar.
10459 * configure.in: Remove --enable-mbchar.
10460 * mbchar.c, mbchar.h: Remove.
10461 * system.h: Poison MULTIBYTE_CHARS.
10462 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
10463 * config/linux.h (MULTIBYTE_CHARS): Remove.
10464 * config/svr4.h (MULTIBYTE_CHARS): Remove.
10465 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
10467 2003-07-06 Andreas Jaeger <aj@suse.de>
10469 * varray.c (varray_check_failed): Fix typo.
10471 * unroll.c: Convert prototypes to ISO C90.
10472 * varasm.c: Likewise.
10473 * varray.c: Likewise.
10474 * varray.h: Likewise.
10475 * vmsdbgout.c: Likewise.
10476 * xcoffout.c: Likewise.
10477 * xcoffout.h: Likewise.
10479 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
10481 * gcov-io.h: Add a local time stamp.
10482 (struct gcov_info): Add stamp field.
10483 (gcov_truncate): New.
10484 * coverage.c (read_counts_file): Skip the stamp.
10485 (coverage_begin_output): Write the stamp.
10486 (build_gcov_info): Declare and init the stamp.
10487 (coverage_finish): Only unlink data file, if stamp is zero.
10488 * gcov-dump.c (dump_file): Dump the stamp.
10489 * gcov.c (bbg_stamp): New.
10490 (release_structures): Clear bbg_stamp.
10491 (read_graph_file): Read stamp.
10492 (read_count_file): Check stamp.
10493 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
10495 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
10497 * tree.h (default_flag_random_seed): Remove.
10498 * toplev.h (local_tick): Declare.
10499 * tree.c (flag_random_seed, default_flag_random_seed): Move to
10501 (append_random_chars): Don't call default_flag_random_seed.
10502 * toplev.c (flag_random_seed): Define here. Set local_tick.
10503 (local_tick): Define.
10504 (randomize): New, moved from tree.c.
10505 (print_switch_values): Adjust.
10506 (toplev_main): Call randomize.
10508 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
10510 * tree.h (crc32_string): Declare.
10511 * tree.c (append_random_chars): Remove.
10512 (crc32_string): New.
10513 (get_file_function_name_long): Use crc32_string here.
10515 2003-07-06 Andreas Jaeger <aj@suse.de>
10517 * gcc.c: Convert prototypes to ISO C90.
10519 * gcov-dump.c: Likewise.
10520 * gcov-iov.c: Likewise.
10521 * gcse.c: Likewise.
10522 * genattrtab.h: Likewise.
10524 * global.c: Likewise.
10525 * graph.c: Likewise.
10526 * graph.h: Likewise.
10527 * hosthooks.h: Likewise.
10528 * hooks.h: Likewise.
10529 * hooks.c: Likewise.
10530 * hashtable.h: Likewise.
10531 * hashtable.c: Likewise.
10532 * haifa-sched.c: Likewise.
10533 * integrate.h: Likewise.
10534 * integrate.c: Likewise.
10535 * input.h: Likewise.
10536 * ifcvt.c: Likewise.
10537 * jump.c: Likewise.
10538 * langhooks-def.h: Likewise. Add extern to prototypes.
10539 * langhooks.c: Likewise.
10540 * langhooks.h: Likewise.
10542 * local-alloc.c: Likewise.
10543 * loop-init.c: Likewise.
10544 * loop-unroll.c: Likewise.
10545 * loop-unswitch.c: Likewise.
10546 * loop.c: Likewise.
10547 * loop.h: Likewise. Add extern to prototypes.
10548 * machmode.h: Likewise.
10549 * main.c: Likewise.
10550 * mbchar.c: Likewise.
10551 * mbchar.h: Likewise.
10552 * mkdeps.c: Likewise.
10553 * mkdeps.h: Likewise.
10554 * optabs.c: Likewise.
10555 * optabs.h: Likewise.
10556 * output.h: Likewise.
10557 * gccspec.c: Likwise.
10558 * postreload.c: Likewise.
10559 * prefix.c: Likewise.
10560 * prefix.h: Likewise.
10561 * print-rtl.c: Likewise.
10562 * print-tree.c: Likewise.
10563 * profile.c: Likewise.
10564 * read-rtl.c: Likewise.
10565 * real.c: Likewise.
10566 * real.h: Likewise.
10567 * recog.c: Likewise.
10568 * recog.h: Likewise.
10569 * reg-stack.c: Likewise.
10570 * regclass.c: Likewise.
10571 * regmove.c: Likewise.
10572 * regrename.c: Likewise.
10573 * regs.h: Likewise.
10574 * reload.c: Likewise.
10575 * reload.h: Likewise.
10576 * reload1.c: Likewise.
10577 * reorg.c: Likewise.
10578 * resource.c: Likewise.
10579 * resource.h: Likewise.
10580 * rtl-error.c: Likewise.
10583 * rtlanal.c: Likewise.
10584 * sbitmap.c: Likewise.
10585 * sbitmap.h: Likewise.
10586 * scan-decls.c: Likewise.
10587 * scan.c: Likewise.
10588 * sched-deps.c: Likewise.
10589 * sched-ebb.c: Likewise.
10590 * sched-int.h: Likewise.
10591 * sched-rgn.c: Likewise.
10592 * sched-vis.c: Likewise.
10593 * sibcall.c: Likewise.
10594 * simplify-rtx.c: Likewise.
10595 * sreal.c: Likewise.
10596 * sreal.h: Likewise.
10597 * ssa-ccp.c: Likewise.
10598 * ssa-dce.c: Likewise.
10601 * stack.h: Likewise.
10602 * stmt.c: Likewise.
10603 * stor-layout.c: Likewise.
10604 * stringpool.c: Likewise.
10605 * target.h: Likewise.
10606 * timevar.c: Likewise.
10607 * timevar.h: Likewise.
10608 * tlink.c: Likewise.
10609 * tracer.c: Likewise.
10610 * tree-inline.c: Likewise.
10611 * tree-inline.h: Likewise.
10612 * tree.c: Likewise.
10613 * tree.h: Likewise.
10615 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
10617 * combine.c (nonzero_bits1): Fix a warning.
10619 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
10621 * config/h8300/h8300.c (compute_mov_length): Correct the
10622 length of loading CONST0_RTX (SFmode).
10624 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
10626 * toplev.c (output_clean_symbol_name): Remove.
10627 * toplev.h (output_clean_symbol_name): Remove.
10628 * config/alpha/alpha.c (unicosmk_output_module_name): Use
10629 lbasename & clean_symbol_name.
10631 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
10633 * ggc.h: Follow spelling conventions.
10634 * config/i386/i386.c: Likewise.
10635 * config/i386/winnt.c: Likewise.
10636 * config/rs6000/rs6000.c: Likewise.
10638 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
10640 * bt-load.c: Fix comment typos.
10641 * c-incpath.c: Likewise.
10643 * cfgcleanup.c: Likewise.
10644 * cfgloop.h: Likewise.
10645 * cfgloopmanip.c: Likewise.
10646 * cfgrtl.c: Likewise.
10647 * diagnostic.h: Likewise.
10648 * dwarfout.c: Likewise.
10649 * emit-rtl.c: Likewise.
10650 * et-forest.c: Likewise.
10651 * et-forest.h: Likewise.
10652 * expr.c: Likewise.
10653 * gcse.c: Likewise.
10654 * genattr.c: Likewise.
10655 * jump.c: Likewise.
10656 * langhooks.h: Likewise.
10657 * local-alloc.c: Likewise.
10658 * loop-unroll.c: Likewise.
10659 * loop-unswitch.c: Likewise.
10660 * ra-build.c: Likewise.
10661 * regclass.c: Likewise.
10662 * regmove.c: Likewise.
10663 * rtl.def: Likewise.
10664 * rtlanal.c: Likewise.
10665 * sched-ebb.c: Likewise.
10666 * sched-rgn.c: Likewise.
10667 * simplify-rtx.c: Likewise.
10669 * tracer.c: Likewise.
10670 * tree.c: Likewise.
10672 2003-07-05 Zack Weinberg <zack@codesourcery.com>
10674 * cppcharset.c: Use the correct return type for the fallback iconv
10677 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10679 Blame to Jan Hubicka <jh@suse.cz>
10680 * cfglayout.c (record_effective_endpoints): Split insns before
10681 first basic block correctly.
10683 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10685 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
10686 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
10687 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
10689 2003-07-05 Andreas Jaeger <aj@suse.de>
10691 * genattrtab.c (write_attr_get): Revert part of last patch to
10692 always write out a prototype.
10694 * genemit.c (gen_split): Readd lost unused attributes in last
10697 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10699 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
10700 different from header.
10702 2003-07-05 Andreas Schwab <schwab@suse.de>
10704 * config/m68k/m68k.c: Remove code protected by CRDS.
10705 * config/m68k/m68k.md: Likewise.
10707 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
10710 * c-opts.c (permit_fortran_options): New.
10711 (c_common_init_options): Accept fortran front end options if
10712 it looks like we might be preprocessing Fortran.
10713 (c_common_handle_option): Don't reject switch if permit_fotran_options.
10715 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10717 * genattr.c (internal_dfa_insn_code): Output prototype.
10718 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
10719 * genautomata.c: Likewise.
10720 * genconditions.c: Likewise.
10721 * genemit.c: Likewise.
10722 * genextract.c: Likewise.
10723 * gengenrtl.c: Likewise.
10724 * gengtype.c: Likewise.
10725 * genopinit.c: Likewise.
10726 * genoutput.c: Likewise.
10727 * genpeep.c: Likewise.
10728 * genrecog.c: Likewise.
10730 2003-07-04 Zack Weinberg <zack@codesourcery.com>
10732 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
10733 (struct cpp_options): Add narrow_charset, wide_charset,
10734 bytes_big_endian fields. Remove EBCDIC field.
10735 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
10737 * cpphash.h: Include <iconv.h> if we have it, otherwise
10738 provide a dummy definition of iconv_t.
10739 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
10740 (_cpp_valid_ucn): Update prototype.
10741 (_cpp_destroy_iconv): New prototype.
10743 * doc/cpp.texi: Document character set handling.
10744 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
10745 * doc/extend.texi: Delete entire section on multiline strings.
10746 Rewrite section on __FUNCTION__ etc now that these are
10749 * cppucnid.tab, cppucnid.pl: New files.
10750 * cppucnid.h: New generated file.
10751 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
10752 (iconv_open, iconv, iconv_close): Provide dummy definitions
10754 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
10755 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
10756 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
10757 cpp_interpret_string, narrow_str_to_charconst,
10758 wide_str_to_charconst): New.
10759 (ucn_valid_in_identifier): Use a binary search through the
10760 ucnranges table defined in cppucnid.h, not a long chain of if
10762 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
10763 character names are only valid in C++ and C99" to a warning.
10764 Issue the "meaning of \[uU] is different in traditional C"
10765 warning here. Take care not to let iconv see an invalid UCS
10766 value if we get a malformed UCN. Issue an error if we don't
10768 (cpp_interpret_charconst): Moved here from cpplex.c. Use
10769 cpp_interpret_string to do the heavy lifting.
10771 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
10772 narrow_charset, wide_charset fields of options structure.
10773 (cpp_destroy): Call _cpp_destroy_iconv.
10774 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
10775 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
10776 (cpp_interpret_charconst): Moved to cppcharset.c.
10777 * cpplib.c (dequote_string): Delete.
10778 (interpret_string_notranslate): New.
10779 (do_line, do_linemarker): Use interpret_string_notranslate.
10781 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
10783 * c-common.c (fname_string, combine_strings): Delete.
10784 * c-common.h (fname_string, combine_strings): Delete prototypes.
10785 * c-lex.c (ignore_escape_flag): Delete.
10786 (cb_ident): Use cpp_interpret_string, not lex_string.
10787 (get_nonpadding_token): New function.
10788 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
10789 Adjust calls to lex_string. Don't write *value twice.
10790 (lex_string): Now handles string constant concatenation.
10791 Most of the work handed off to cpp_interpret_string.
10792 Call fix_string_type here.
10793 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
10794 FUNC_NAME, throughout.
10795 (OBJC_STRING): New token type.
10796 (primary:STRING): No need to call fix_string_type here.
10797 (primary:objc_string): Make that OBJC_STRING.
10798 (objc_string nonterminal): Delete.
10799 (yylexname): Delete code to handle fake string constants.
10800 (yylexstring): Delete entirely.
10801 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
10802 to handle CPP_ATSIGN.
10804 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
10805 * c-opts.c (missing_arg, c_common_handle_option): Handle
10806 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
10807 (c_common_init): Set cpp_opts->bytes_big_endian, not
10808 cpp_opts->EBCDIC. Call cpp_init_iconv.
10809 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
10810 (TARGET_EBCDIC): Delete default definition.
10812 * objc/objc-act.c (build_objc_string_object): No need to
10813 handle string constant concatenation.
10815 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
10817 * doc/install.texi: Fix typos.
10818 * doc/invoke.texi: Likewise.
10819 * doc/tm.texi: Likewise.
10821 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
10823 * config/pa/fptr.c: Fix comment typos.
10824 * config/pa/pa-64.h: Likewise.
10825 * config/pa/pa.c: Likewise.
10826 * config/pa/pa.h: Likewise.
10827 * config/rs6000/603.md: Likewise.
10828 * config/rs6000/7xx.md: Likewise.
10829 * config/rs6000/darwin.h: Likewise.
10830 * config/rs6000/freebsd.h: Likewise.
10831 * config/rs6000/rs6000.c: Likewise.
10832 * config/rs6000/rs6000.md: Likewise.
10833 * config/rs6000/spe.h: Likewise.
10835 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
10837 * config/s390/2064.md: Change GNU CC to GCC.
10838 * config/s390/2084.md: Likewise.
10839 * config/s390/fixdfdi.h: Likewise.
10840 * config/s390/linux.h: Likewise.
10841 * config/s390/s390-modes.def: Likewise.
10842 * config/s390/s390-protos.h: Likewise.
10843 * config/s390/s390.c: Likewise.
10844 * config/s390/s390.h: Likewise.
10845 * config/s390/s390.md: Likewise.
10846 * config/s390/s390x.h: Likewise.
10848 2003-07-04 Jeff Law <law@redhat.com>
10851 * expr.c (do_store_flag): Pass in the correct result type
10852 when calling fold_single_bit_test.
10853 * fold-const.c (fold_single_bit_test): Use result_type for the
10854 result when folding a sign bit test.
10856 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
10858 * opts.c (common_handle_options): Negate sense of -falign- switches.
10860 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
10862 * Makefile.in: Replace PWD with PWD_COMMAND.
10864 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10866 * cfgloopanal.c (count_strange_loop_iterations): New static function.
10867 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
10868 Handle strange loops.
10870 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
10872 * install.texi: Even the g77 manpage is derived from
10873 the full g77 manual.
10875 2003-07-04 Zack Weinberg <zack@codesourcery.com>
10877 * ABOUT-NLS: Delete.
10878 * intl: Delete entire directory.
10879 * aclocal.m4: Include ../config/gettext.m4. Delete
10880 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
10881 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
10882 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
10883 Remove intl/Makefile from all_outputs.
10884 * configure, config.in: Regenerate.
10885 * Makefile.in: Expunge all references to intl subdirectory.
10886 Add -I../intl to INCLUDES.
10887 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
10889 2003-07-04 Roger Sayle <roger@eyesopen.com>
10891 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
10892 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
10894 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
10896 PR c++/5287, PR c++/7910, PR c++/11021
10897 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
10898 dllimport attribute if function is defined at declaration, but
10899 report error instead. Likewise for dllimport'd variable
10900 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
10901 declared within functions, Report error if dllimport or dllexport
10902 symbol is not global.
10903 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
10904 if defined after declaration or if inlined. Don't allow definition
10905 of static data members of C++ classes. Don't dllimport virtual
10907 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
10908 (i386_pe_mark_dllimport): Remove unnecessary checks.
10909 (i386_pe_encode_section_info): Warn if the dllimport attribute
10910 and symbol prefix have been instantiated and then overridden.
10912 * doc/extend.texi: Document dllimport and dllexport attributes.
10914 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
10916 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
10918 * config/kaos.h (CPP_PREDEFINES): Delete.
10919 (TARGET_OS_CPP_BUILTINS): New.
10921 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10923 * c-aux-info.c: Include toplev.h after c-tree.h.
10924 * c-common.c: Likewise.
10925 (GCC_DIAG_STYLE): Undef.
10926 * c-semantics.c (GCC_DIAG_STYLE): Define.
10927 * c-tree.h (GCC_DIAG_STYLE): Likewise.
10928 * diagnostic.h (inform): Move prototype to toplev.h.
10929 * jump.c: Include diagnostic.h before toplev.h.
10930 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
10931 (warning, error, fatal_error, pedwarn, sorry, inform,
10932 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
10934 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10936 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
10937 at all if edge is not specified.
10938 (can_copy_bbs_p, copy_bbs): New.
10939 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
10940 * cfgloop.c (get_loop_body): Comment more precisely.
10941 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
10942 (scale_bbs_frequencies): Fix comment typo.
10943 (can_duplicate_loop_p): Use can_copy_bbs_p.
10944 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
10946 2003-07-03 Devang Patel <dpatel@apple.com>
10948 * c-opts.c (c_common_parse_file): Remove extra
10949 debug_hooks->start_source_file call.
10951 2003-07-03 Roger Sayle <roger@eyesopen.com>
10953 * real.c (real_trunc, real_floor, real_ceil): New functions
10954 to implement trunc, floor and ceil respectively.
10955 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
10956 * builtins.c (integer_valued_real_p): New function to test if
10957 a floating point expression has an integer valued result.
10958 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
10959 foo(x) where foo is an integer rounding function. Similarly,
10960 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
10961 (double)(int)x when both foo and bar are integer rounding
10962 functions and we don't need to honor errno.
10963 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
10964 New functions to fold trunc, floor and ceil.
10965 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
10966 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
10967 to fold BUILT_IN_CEIL*.
10968 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
10969 the remaining integer rounding functions.
10971 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
10973 * config/sparc/sparc.c (function_arg_partial_nregs): Use
10974 SPARC_INT_ARG_MAX to determine where to split unnamed
10975 complex FP arguments.
10977 2003-07-03 Jan Hubicka <jh@suse.cz>
10979 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
10980 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
10981 (merge_blocks_move_predecessor_nojumps,
10982 merge_blocks_move_successor_nojumps): Use merge_blocks.
10983 (try_optimize_cfg): Use merge_blocks_move.
10984 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
10985 (merge_blocks_nomove): Rename to rtl_merge_blocks.
10986 (cfg_layout_create_basic_block): New.
10987 (rtl_can_merge_blocks): New.
10988 (cfg_layout_split_block): Do not alloc aux by hand.
10989 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
10991 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
10992 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
10993 * cfgloopmanip.c (loop_split_edge_with): Likewise.
10994 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
10996 * basic-block.h (basic_block_def): Add field 'rbi'.
10997 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
10998 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
10999 * cfg.c (entry_exit_blocks): Add new field.
11000 * cfglayout.c: Include alloc-pool.h;
11001 (cfg_layout_pool): New.
11002 (record_effective_endpoints, fixup_reorder_chain,
11003 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
11005 (cfg_layout_initialize_rbi): New function.
11006 (cfg_layout_initialize): Use it.
11007 (cfg_layout_finalize): Clear rbi fields.
11008 * cfglayout.h (RBI): Kill.
11009 (cfg_layout_initialize_rbi): Declare.
11010 * cfgloopmanip.c (copy_bbs): Use rbi.
11011 (record_exit_edges): Likewise.
11012 (duplicate_loop_to_header_edge): Likewise.
11013 * cfgrtl.c (cfg_layout_create_basic_block): Use
11014 cfg_layout_initialize_rbi.
11015 (cfg_layout_split_block): Use rbi.
11016 (cfg_layout_delete_block): Likewise.
11017 * loop-init.c (loop_optimizer_finalize): Likewise.
11018 * loop-unswitch.c (unswitch_loop): Likewise.
11019 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
11021 * cfgrtl.c: Update comments.
11022 (try_redirect_by_replacing_jump): New argument.
11023 (redirect_branch_edge): Break out from ...
11024 (rtl_redirect_edge_and_branch): ... this one.
11025 (update_cfg_after_block_merging): Break out from ...
11026 (rtl_merge_blocks): ... this one.
11027 (cfg_layout_split_edge): New.
11028 (cfg_layout_merge_blocks): New.
11029 (cfg_layout_can_merge_blocks_p): New.
11030 (cfg_layout_redirect_edge_and_branch): Reorganize.
11031 (cfg_layout_rtl_cfg_hooks): Fill in.
11032 (cfg_layout_delete_block): Kill barriers.
11033 * cfganal.c (can_fallthru): Deal with exit blocks
11034 * cfglayout.c (cfg_layout_function_header): New function
11035 (record_effective_endpoints): Record function header.
11036 (fixup_reorder_chain): Fixup dead jumptables; place header
11038 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
11039 * bb-reorder.c (cfg_layout_initialize): Update call.
11040 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
11041 edges in cfglayout mode.
11042 * cfglayout.c (cleanup_unconditional_jumps): Kill.
11043 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
11044 * cfglayout.h (cfg_layout_initialize): Update prototype.
11045 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
11046 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
11047 * flow.c (propagate_block): Do not crash when basic block ends
11048 by first insn in the chain.
11049 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
11051 * tracer.c (tracer): Update call of cfg_layout_initialize.
11053 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11055 * Makefile.in: Use dependency variables in lieu of explicit
11058 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
11060 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
11061 * tree.h: ...to here.
11063 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
11065 * config/s390/2064.md: Fix comment typos.
11066 * config/s390/2084.md: Likewise.
11067 * config/s390/s390.c: Likewise.
11068 * config/s390/s390.md: Likewise.
11069 * config/sh/sh.c: Likewise.
11070 * config/sh/sh.h: Likewise.
11071 * config/sh/sh.md: Likewise.
11072 * config/sparc/sparc.c: Likewise.
11073 * config/sparc/sparc.h: Likewise.
11074 * config/sparc/sparc.md: Likewise.
11075 * config/stormy16/stormy16.c: Likewise.
11076 * config/stormy16/stormy16.h: Likewise.
11077 * config/stormy16/stormy-abi: Fix a typo.
11079 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
11081 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
11083 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11085 * config/mips/mips.h (save_argv): Delete.
11087 2003-07-03 Roger Sayle <roger@eyesopen.com>
11090 * fold-const.c (extract_muldiv_1): There's nothing that can be done
11091 if the expression is a SAVE_EXPR.
11093 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
11095 * config/m32r/m32r.c: Fix comment typos.
11096 * config/m68hc11/m68hc11.c: Likewise.
11097 * config/m68hc11/m68hc11.h: Likewise.
11098 * config/m68k/m68k.c: Likewise.
11099 * config/mcore/mcore.c: Likewise.
11100 * config/mcore/mcore.h: Likewise.
11101 * config/mcore/mcore.md: Likewise.
11102 * config/mips/mips.c: Likewise.
11103 * config/mips/mips.h: Likewise.
11104 * config/mips/mips.md: Likewise.
11105 * config/mips/netbsd.h: Likewise.
11106 * config/mn10300/mn10300.c: Likewise.
11108 2003-07-03 Andreas Schwab <schwab@suse.de>
11110 * dbxout.c (pending_bincls): Move decl down inside
11111 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
11113 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
11115 * rtl.h (NOTE_DATA): Refer to whole union.
11116 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
11118 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
11120 PR optimization/11381
11121 * simplify-rtx.c (simplify_relational_operation): Check that
11122 two equal operands have no side-effects before simplifying
11125 2003-07-02 Jeff Law <law@redhat.com>
11127 * expr.c (do_store_flag): Remove special case folding for
11128 single bit tests. Instead call back into the commonized folder
11130 * fold-const.c (fold_single_bit_test): New function, mostly
11131 extracted from do_store_flag, with an additional case extracted
11133 (fold): Call fold_single_bit_test appropriately.
11134 * tree.h (fold_single_bit_test): Prototype.
11136 2003-07-02 Zack Weinberg <zack@codesourcery.com>
11138 * system.h: Include filenames.h.
11139 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
11140 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
11141 define based on HAVE_DOS_BASED_FILE_SYSTEM.
11142 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
11143 * config/i386/xm-mingw32.h: Don't define
11144 HAVE_DOS_BASED_FILE_SYSTEM,
11145 DIR_SEPARATOR, or DIR_SEPARATOR_2.
11146 * doc/hostconfig.texi: Update to match.
11148 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
11149 config/i386/cygwin.h:
11150 Use IS_ABSOLUTE_PATH throughout.
11151 * gcc.c (DIR_UP): Delete, unused.
11152 * protoize.c (IS_SAME_PATH): Define in terms of
11154 (is_abspath): Delete.
11156 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
11158 * config/i386/emmintrin.h: Fix comment typos.
11159 * config/i386/i386.c: Likewise.
11160 * config/i386/i386.h: Likewise.
11161 * config/i386/sco5.h: Likewise.
11162 * config/ia64/ia64.c: Likewise.
11163 * config/ia64/itanium2.md: Likewise.
11165 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
11167 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
11169 (emit_bincl_stab): Same.
11170 (emit_pending_bincls): Same.
11172 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
11174 * config/h8300/h8300.c (compute_mov_length): Fix the length of
11175 loading CONST0_RTX (SFmode).
11176 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
11177 'G' to CONST0_RTX (SFmode).
11178 * config/h8300/h8300.md (movsf_h8300): Change the first
11180 (movsf_h8300h): Likewise.
11182 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
11184 * c-common.h (c_common_init_options): New prototype.
11185 * c-opts.c (deferred_size): Remove.
11186 (defer_opt): Array is now pre-allocated.
11187 (c_common_init_options): Pre-allocate deferred_opts. Make
11188 lang_flags unsigned.
11189 (push_command_line_options): Free deferred_opts.
11190 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
11191 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
11192 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
11193 * langhooks.h (struct lang_hooks): New prototype for init_options.
11194 * main.c (main): Cast argv.
11195 * opts.c (handle_option, handle_options): Update prototypes.
11196 (decode_options): save_argc, save_argv are not global. Constify.
11197 * opts.h (decode_options): New prototype.
11198 * toplev.c (general_init): New protoype.
11199 (save_argv): Make static.
11200 (save_argc): Remove.
11201 (print_switch_values, general_init): Constify.
11202 (toplev_main): Save argv.
11203 * toplev.h (toplev_main): Update prototype.
11204 (save_argc, save_argv): Remove.
11206 2003-07-02 David Edelsohn <edelsohn@gnu.org>
11208 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
11209 (emit_bincl_stab): Same.
11210 (emit_pending_bincls): Same.
11212 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
11215 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
11217 2003-07-02 Andreas Schwab <schwab@suse.de>
11219 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
11221 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
11223 PR optimization/11210
11224 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
11225 about the behaviour with regard to bitfields.
11226 * fold-const (decode_field_reference): Record outermost type in
11227 case the expression is a NOP. Strip all NOPs. Set the signedness
11228 to that of the outermost type (if any) when the bitsize is equal
11229 to the size of the type.
11231 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
11233 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
11234 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
11235 (adddi3_internal_3, addsi3_internal_2): Likewise.
11237 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
11239 * config/mips/mips.c (machine_function): Add new fields:
11240 ignore_hazard_length_p and all_noreorder_p.
11241 (mips_flag_delayed_branch): New variable.
11242 (override_options): Treat '/' as an operand punctuation character.
11243 Set up mips_flag_delayed_branch.
11244 (print_operand): Handle '/'.
11245 (mips_output_function_prologue): Put the whole function in
11246 .set noreorder and .set nomacro if all_noreorder_p is true.
11247 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
11248 (mips16_optimize_gp): Remove "first insn" parameter.
11249 (mips16_lay_out_constants): New function, split out from mips_reorg.
11250 (mips_avoid_hazard, mips_avoid_hazards): New functions.
11251 (mips_reorg): For mips16 code, call mips16_lay_out_constant
11252 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
11253 do delayed-branch scheduling followed by hazard detection.
11254 (mips_adjust_insn_length): Only account for hazards if
11255 !ignore_hazard_length_p.
11256 (mips_output_load_label): Add a nop to the o32 sequence if
11257 the target suffers from load delays.
11258 (mips_output_conditional_branch): Add %/ to the end of branches.
11259 (mips_output_division): Fill the branch delay slot with %#.
11260 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
11261 instructions. End all other %* branches with %/.
11262 (ffssi2, ffsdi2): Fix lengths.
11263 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
11264 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
11265 (fix_truncsfsi2_macro): Likewise.
11266 (mov_lwl): Set hazard to "none".
11267 (ashldi3_internal): Fill the branch delay slot with %#.
11268 (ashrdi3_internal, lshrdi3_internal): Likewise.
11269 (exception_receiver): Explicitly set $28.
11270 (hazard_nop): New pattern.
11272 2003-07-02 Jan Hubicka <jh@suse.cz>
11274 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
11275 before calling tree_inlinable_function_p.
11277 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11279 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
11280 <internal/stdio_core.h> too.
11281 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
11282 <internal/wchar_core.h> too.
11283 Substitute va_list uses in inline definition.
11284 * fixinc/fixincl.x: Regenerate.
11286 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11288 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
11289 Undef before redefinition.
11290 (LABEL_AFTER_LOC): Likewise.
11291 (DEFAULT_SIGNED_CHAR): Likewise.
11292 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
11295 * config/mips/iris3.h: Remove, unused.
11296 * config/mips/iris4.h: Likewise.
11298 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
11300 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
11301 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
11302 target_cpu_default.
11304 * config/mips/iris5.h: Move explicit includes ...
11305 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
11307 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
11308 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
11311 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
11312 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
11313 target_cpu_default.
11315 * config/mips/iris6.h: Fix IRIX spelling.
11316 (MULTILIB_DEFAULTS): Undef before redefinition.
11318 * config/mips/iris6.h: Move explicit includes ...
11319 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
11321 2003-07-02 Jan Hubicka <jh@suse.cz>
11323 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
11324 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
11325 Use next_needed field instead of aux to maintain the queue.
11326 * cgraph.h (cgraph_node): Add next_needed.
11327 (cgraph_varpool_node): Add next_needed; remove aux.
11328 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
11330 2003-07-02 Jan Hubicka <jh@suse.cz>
11332 * cgraphunit.c (cgraph_finalize_function): Set finalized.
11333 (cgraph_finalize_function): Do not examine inlinablility.
11334 (cgraph_finalize_compilation_unit): Do it here.
11335 * cgraph.h (cgraph_local_info): Add finalized field.
11337 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11339 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
11340 (gt_pch_restore): Likewise.
11342 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
11344 * config/alpha/alpha.c: Fix comment typos.
11345 * config/alpha/elf.h: Likewise.
11346 * config/arm/arm.c: Likewise.
11347 * config/arm/arm.h: Likewise.
11348 * config/arm/arm.md: Likewise.
11349 * config/arm/t-arm-coff: Likewise.
11350 * config/arm/t-strongarm-pe: Likewise.
11351 * config/arm/xscale-elf.h: Likewise.
11352 * config/avr/avr.h: Likewise.
11354 2003-07-01 Jeff Law <law@redhat.com>
11356 * stmt.c (any_pending_cleanups): Remove another redundant test.
11358 2003-07-01 David Edelsohn <edelsohn@gnu.org>
11359 J"orn Rennecke <joern.rennecke@superh.com>
11361 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
11364 2003-07-01 Devang Patel <dpatel@apple.com>
11366 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
11367 (binclstatus): New.
11368 (struct dbx_file): New members - bincl_status, pending_bincl_name and
11370 (pending_bincls): New.
11371 (dbxout_init): Initialize new dbx_file members.
11372 (dbxout_start_source_file): Same.
11373 (emit_bincl_stab): New function.
11374 (emit_pending_bincls): Same.
11375 (emit_pending_bincls_if_required): Same.
11376 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
11378 (dbxout_begin_block): Emit pending BINCL stabs.
11379 (dbxout_end_block): Same.
11380 (dbxout_function_decl): Same.
11381 (dbxout_continue): Same.
11382 (dbxout_type): Same.
11383 (dbxout_class_name_qualifiers): Same.
11384 (dbxout_symbol): Same.
11385 (dbxout_symbol_location): Same.
11386 (dbxout_parms): Same.
11388 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11390 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
11391 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
11393 2003-07-01 Andreas Jaeger <aj@suse.de>
11395 * fold-const.c: Convert prototypes to ISO C90.
11396 * function.c: Likewise.
11397 * function.h: Likewise.
11399 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
11401 * doc/contrib.texi: Fix typos.
11402 * doc/invoke.texi: Likewise.
11403 * doc/passes.texi: Likewise.
11404 * doc/sourcebuild.texi: Likewise.
11405 * doc/tm.texi: Likewise.
11407 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
11409 * basic-block.h: Fix comment typos.
11410 * bb-reorder.c: Likewise.
11411 * c-format.c: Likewise.
11412 * cfgcleanup.c: Likewise.
11413 * cfghooks.h: Likewise.
11414 * cfgloop.c: Likewise.
11415 * cfgloopmanip.c: Likewise.
11416 * cfgrtl.c: Likewise.
11417 * cgraph.h: Likewise.
11418 * cgraphunit.c: Likewise.
11419 * combine.c: Likewise.
11420 * convert.c: Likewise.
11421 * dbxout.c: Likewise.
11424 * diagnostic.c: Likewise.
11425 * dwarf2out.c: Likewise.
11426 * et-forest.h: Likewise.
11427 * flow.c: Likewise.
11428 * fold-const.c: Likewise.
11429 * function.h: Likewise.
11430 * gcov-io.h: Likewise.
11431 * gcov.c: Likewise.
11432 * gcse.c: Likewise.
11433 * genautomata.c: Likewise.
11434 * ggc-common.c: Likewise.
11435 * ggc-page.c: Likewise.
11436 * loop-unroll.c: Likewise.
11437 * loop-unswitch.c: Likewise.
11438 * loop.c: Likewise.
11439 * mips-tfile.c: Likewise.
11440 * optabs.c: Likewise.
11441 * ra-build.c: Likewise.
11442 * ra-colorize.c: Likewise.
11443 * ra-rewrite.c: Likewise.
11445 * regmove.c: Likewise.
11446 * reload.c: Likewise.
11447 * rtlanal.c: Likewise.
11448 * sched-ebb.c: Likewise.
11449 * sched-int.h: Likewise.
11450 * sched-vis.c: Likewise.
11451 * sreal.c: Likewise.
11452 * ssa-ccp.c: Likewise.
11454 * toplev.c: Likewise.
11455 * tree-inline.c: Likewise.
11456 * value-prof.c: Likewise.
11457 * value-prof.h: Likewise.
11459 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
11461 * rtl.h (emit_line_note_after): Remove.
11462 (emit_note_copy_after, emit_note_copy): New.
11463 * emit-rtl.c (reorder_insns_with_line_notes): Replace
11464 emit_line_note_after with emit_note_copy_after.
11465 (emit_insn_after_with_line_notes): Likewise.
11466 (emit_line_note_after): Kill.
11467 (emit_note_copy_after): New.
11468 (emit_note_copy): New.
11469 * function.c (emit_return_into_block): Use emit_note_copy_after.
11470 (thread_prologue_and_epilogue_insns): Likewise.
11471 * integrate.c (expand_inline_function): Use emit_note_copy.
11472 (copy_insn_list): Likewise.
11473 * unroll.c (copy_loop_body): Likewise.
11474 * cfglayout.c (duplicate_insn_chain): Likewise.
11476 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
11478 * c-tree.h (define_label): Replace filename and lineno arguments
11480 * c-decl.c (poplevel): Adjust define_label call.
11481 (pop_label_level): Likewise.
11482 (define_label): Replace filename and lineno arguments with a
11484 (store_parm_decls): Use DECL_SOURCE_LOCATION.
11485 * c-parse.in (label): Adjust define_label call.
11487 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
11489 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
11490 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
11491 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
11492 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
11493 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
11495 2003-07-01 Andreas Jaeger <aj@suse.de>
11497 * final.c: Convert prototypes to ISO C90.
11498 * flow.c: Likewise.
11499 * flags.h: Likewise.
11500 * gcov-io.c: Likewise.
11501 * gcov-io.h: Likewise.
11503 See ChangeLog.9 for earlier changes.