1 2003-10-18 Nicolas Pitre <nico@cam.org>
3 * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
4 XScale optimizations not arm_arch_xscale.
5 * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
7 2003-10-18 Ulrich Weigand <uweigand@de.ibm.com>
9 * config/s390/s390-protos.h (shift_count_operand): Add prototype.
10 * config/s390/s390.c (shift_count_operand): New function.
11 (s390_extra_constraint): Use it to implement 'Y' constraint.
12 (print_shift_count_operand): New function.
13 (print_operand): Use it to implement '%Y'.
14 * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
15 (PREDICATE_CODES): Add shift_count_operand.
16 * config/s390/s390.md ("rotldi3"): Merge alternatives,
17 using "shift_count_operand" predicate and "Y" constraint,
18 and "%Y" to output the combined shift count.
19 ("rotlsi3"): Likewise.
20 ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
21 ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
22 "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
23 ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
24 ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
25 ("lshrsi3"): Likewise.
27 2003-10-18 Gunther Nikl <gni@gecko.de>
29 * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
30 argument to asm_fprintf statement.
32 2003-10-18 Fariborz Jahanian <fjahanian@apple.com>
34 * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
35 (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
36 a "long long" argument.
38 2003-10-18 Alexandre Oliva <aoliva@redhat.com>
40 * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
43 2003-10-18 Richard Sandiford <rsandifo@redhat.com>
45 * rtl.h (rtl_size): Declare.
46 (rtunion): Remove rtwint.
47 (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
48 (RTX_HDR_SIZE, RTX_SIZE): New macros.
49 (RTL_CHECK1): Adjust for new rtx_def layout.
50 (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
51 (XWINT, XCWINT): Likewise. Access the rtx structure directly.
54 * rtl.def: Adjust comments for new rtx_def layout.
55 * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
57 * rtl.c (rtx_size): New array.
58 (rtx_alloc): Adjust call to ggc_alloc_rtx. Use RTX_HDR_SIZE.
59 (copy_rtx): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
60 (shallow_copy_rtx): Adjust call to ggc_alloc_rtx. Use RTX_SIZE.
61 * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
62 * emit-rtl.c (copy_most_rtx): Likewise.
63 (copy_rtx_if_shared): Use RTX_SIZE.
64 (copy_insn_1): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
65 * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call. Use RTX_HDR_SIZE.
66 * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
67 (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
68 an array. Adjust output for new rtx_def layout.
69 * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
70 * reload1.c (eliminate_regs): Use RTX_SIZE.
71 * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
72 * gdbinit.in (pi): Likewise.
74 2003-10-18 Jan Hubicka <jh@suse.cz>
76 * integrate.c (copy_decl_for_inlining): Revert previous patch.
78 2003-10-18 Jan Hubicka <jh@suse.cz>
80 * integrate.c (copy_decl_for_inlining): Fix copying of copies.
82 2003-10-18 Roger Sayle <roger@eyesopen.com>
84 * libgcc.texi: Group multi-word types, such as "long double" and
85 "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
86 Document __unord?f2 as returning a non-zero value, not just one.
88 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
90 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
91 ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
93 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
95 * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
98 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
100 * config/sparc/sparc.c (function_arg_record_value_1): New fourth
101 parameter packed_p. Search for a DECL_PACKED field only if
102 packed_p is false. Pass packed_p recursively.
103 (function_arg_record_value_2): Likewise.
104 (function_arg_record_value): Update calls to
105 function_arg_record_value_1 and function_arg_record_value_2.
107 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
109 * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
110 was successfully forced to memory before using the result.
112 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
115 * config/i386/i386.md (*movsi_zero): New insn to set
116 a register to zero on TARGET_USE_MOV0 targets.
118 2003-10-18 Kelley Cook <kcook@gcc.gnu.org>
120 * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
121 (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
123 2003-10-17 David Edelsohn <edelsohn@gnu.org>
125 * doc/invoke.texi (gcse-las): Fix typo.
127 2003-10-17 Andrew Pinski <pinskia@physics.uc.edu>
129 * doc/install.texi: Remove first part of the sentence for
130 zsh not working. Change gcc to GCC.
133 * doc/install.texi: Document that zsh does not work when
136 2003-10-17 Nathanael Nerode <neroden@gcc.gnu.org>
138 * config/ptx4.h: Switch to DWARF 2; update comments.
140 2003-10-17 Segher Boessenkool <boessen@de.ibm.com>
141 Hartmut Penner <hpenner@de.ibm.com>
143 PR 10404, partial 11591, partial 11601
144 * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
145 "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
146 "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
147 "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
148 "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
149 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
150 (altivec_expand_stv_builtin): Adjust for the memory_operand.
151 (altivec_expand_builtin): Call altivec_expand_lv_builtin.
152 (altivec_init_builtins): Use `long int' for memory offsets.
154 2003-10-17 Jan Hubicka <jh@suse.cz>
156 * opts.c (common_handle_option): Handle OPT_fweb
157 * invoke.texi (-fweb): Add missing parts of documentation.
159 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
161 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
164 2003-10-17 Mostafa Hagog <mustafa@il.ibm.com>
166 * common.opt: Add description of the new -fgcse-las flag.
167 * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
168 * gcse.c (hash_scan_set): Handle the case of store expression and
169 insert the memory expression to the hash table, this way we make it
170 possible to discover redundant loads after stores and remove them.
171 (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
172 to pre_insert_copies, it is not the correct place to call it after
173 adding stores to be in the available expression hash table.
174 (pre_insert_copies): Added the call to update_ld_motion_stores when
175 one or more copies were inserted.
176 * opts.c (common_handle_option): Handle the -fgcse-las flag.
177 * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
179 * doc/invoke.tex: Document new -fgcse-las flag.
181 2003-10-18 Alan Modra <amodra@bigpond.net.au>
183 * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
184 for posterity, then remove it.
186 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
187 Nathan Sidwell <nathan@codesourcery.com>
189 * config/arm/arm.c (use_return_insn): Not a single instruction, if
190 there's a frame pointer.
191 (arm_output_epilogue): Protect stack pointer from being corrupted
194 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
196 * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
198 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
200 * combine.c (simplify_set): Do not clear out undobuf.other_insn
201 already set elsewhere.
203 2003-10-17 Kelley Cook <kcook@gcc.gnu.org>
205 * config/i386/i386.c (ix86_expand_prologue): Use
206 gen_allocate_stack_worker.
208 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
210 * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
212 (mips-sgi-irix6*): Likewise.
214 * config/mips/iris6gas.h: New file.
215 * gcc/config.gcc (mips-sgi-irix6*): Use it.
217 * config/mips/mips.h (TARGET_IRIX): Provide default.
218 (TARGET_IRIX5): Likewise.
219 (TARGET_SGI_O32_AS): Likewise.
220 * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
221 (TARGET_IRIX5): Likewise.
222 * config/mips/iris6.h (TARGET_IRIX6): Remove.
223 (TARGET_IRIX5): Redefine as 0.
225 * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
226 linker workaround with TARGET_IRIX and mips_abi instead of
227 ASM_OUTPUT_UNDEF_FUNCTION.
228 (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
229 testing TARGET_IRIX and mips_abi explicitly.
230 * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
231 * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
233 * config/mips/mips.c (irix_output_external_libcall): Renamed from
234 mips_output_external_libcall.
235 Use new TARGET_IRIX in guard.
236 * config/mips/mips-protos.h (irix_output_external_libcall): Match
238 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
240 * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
243 * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
244 depending on mips_abi.
245 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
246 * config/mips/mips.c (mips_output_function_prologue): Test
247 FUNCTION_NAME_ALREADY_DECLARED at runtime.
248 (mips_output_function_epilogue): Likewise.
249 (build_mips16_function_stub): Likewise.
250 (build_mips16_call_stub): Likewise.
251 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
254 * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
255 IRIX 6 O32 assembler.
256 (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
257 (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
258 _MIPS_SIM for O32 ABI.
259 (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
260 (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
261 (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
262 Integrate O32 version.
263 (SUBTARGET_ASM_SPEC): Handle -mabi=32.
264 (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
266 (BSS_SECTION_ASM_OP_32): Define.
267 (BSS_SECTION_ASM_OP_64): Likewise.
268 (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
270 (TARGET_ASM_NAMED_SECTION): Reflect renaming.
271 Move up to allow override for O32 ABI without GNU as.
272 (EH_FRAME_SECTION_NAME): Define explicitly.
273 (MUST_USE_SJLJ_EXCEPTIONS): Define.
274 [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
275 DTORS_SECTION_ASM_OP): Dummy definitions.
276 (TARGET_ASM_NAMED_SECTION): Undef statically.
277 (EH_FRAME_SECTION_NAME): Likewise.
278 (ASM_OUTPUT_FILENAME): Integrate mips.h version.
279 (LINK_SPEC): Only use default options -call_shared -no_unresolved
281 Don't pass -init, -fini with -mabi=32.
282 (COLLECT_PARSE_FLAG): Define.
284 * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
286 Renamed to use irix_ prefix.
287 (iris6_asm_named_section): Likewise.
288 (iris_section_align_entry_eq): Likewise.
289 (iris_section_align_entry_hash): Likewise.
290 (iris6_file_start): Likewise.
291 (iris6_section_align_1): Likewise.
292 (iris6_file_end): Likewise.
293 (iris6_section_type_flags): Likewise.
294 (iris_section_align_htab): Likewise.
295 (iris_orig_asm_out_file): Likewise.
296 [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
297 (TARGET_ASM_FILE_END): Likewise.
298 (TARGET_SECTION_TYPE_FLAGS): Likewise.
300 * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
301 (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
302 override_options instead.
303 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
304 (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
305 * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
306 flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
308 Likewise for constructor/destructor handling.
309 (override_options): Handle IRIX O32 assembler quirks.
310 [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
312 (mips_file_start): Use new TARGET_IRIX.
313 (mips_declare_object_name): No special processing for IRIX O32
315 (mips_finish_declare_object): Likewise.
316 (irix_asm_output_align): Renamed from iris6_asm_output_align.
317 Don't record alignment for O32 ABI.
318 (irix_file_start): Renamed from iris6_file_start.
319 Return early for O32 ABI.
320 (irix_file_end): Renamed from iris6_file_end.
321 Don't emit .section directives for O32 ABI.
322 * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
323 * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
325 * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
326 (MULTILIB_OSDIRNAMES): Likewise.
328 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
330 * collect2.c (COLLECT_PARSE_FLAG): Provide default.
332 * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
334 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
336 * arm-modes.def (CC_Nmode): New condition code mode.
337 * arm.c (thumb_condition_code): Delete.
338 (arm_select_cc_mode): Handle single-bit test for Thumb.
339 (arm_print_operand, cases 'd' and 'D'): Don't special case the
340 condition code logic for Thumb.
341 (get_arm_condition_code): Handle CC_Nmode.
342 (thumb_cbrch_target_operand): New function.
343 * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
344 * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
345 * arm.md: Add Thumb split patterns for zero_extract and
347 (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
348 (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
349 (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
350 (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
351 (cbranchne_decr1): Re-work to use CC_Nmode.
353 * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
354 by the return instruction. Add a use of the link register if it
357 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
359 * flow.c (init_propagate_block_info): Don't abort if a conditional
360 jump is not a comparison of a register. Instead, just don't record
361 conditional life information.
363 2003-10-16 Jan Hubicka <jh@suse.cz>
365 PR optimization/12630
366 * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
367 for operands 7 and 8.
369 2003-10-16 Kelley Cook <kcook@gcc.gnu.org>
371 * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
373 2003-10-16 Danny Smith <dannysmith@users.sourceforge.net>
375 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
377 * config/i386/winnt.c (gen_stdcall_suffix): Make static
378 (gen_fastcall_suffix): Likewise.
379 (i386_pe_dllexport_p): Likewise.
380 (i386_pe_dllimport_p): Likewise.
381 (i386_pe_mark_dllexport): Likewise.
382 (i386_pe_mark_dllimport): Likewise.
383 (i386_pe_asm_named_section): Fix formatting.
385 2003-10-16 Zack Weinberg <zack@codesourcery.com>
387 * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
388 * system.h: Declare snprintf if necessary.
389 * configure, config.in: Regenerate.
391 2003-10-15 David Edelsohn <edelsohn@gnu.org>
393 * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
394 arguments if TARGET_ALTIVEC_ABI.
396 2003-10-15 Roger Sayle <roger@eyesopen.com>
398 * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
399 fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
400 fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
402 (expand_builtin_memcpy): Use integer_zerop instead of testing
403 host_integerp and tree_low_cst directly. Move misapplied hunk
404 for optimization wher SRC and DEST point to the same location.
405 (expand_builtin_mempcpy): From here.
406 (expand_builtin_memmove): Use integer_zerop instead of testing
407 host_integerp and tree_low_cst_directly.
408 (expand_builtin_memset): Likewise.
409 (expand_builtin_memcmp): Likewise (and for integer_onep).
410 (expand_builtin_strncmp): Likewise.
411 (fold_builtin): Call the appropriate fold_builtin_foo functions
412 to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
415 2003-10-15 Geoffrey Keating <geoffk@apple.com>
417 * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
418 prototype. Clean up some whitespace.
419 * config/darwin.c: Use gen_rtx_FOO (...) rather than
421 (machopic_non_lazy_ptr_name): Make static.
422 (name_needs_quotes): Allow '.' and '$' unquoted.
423 (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
426 2003-10-15 Gábor Lóki <alga@rgai.hu>
428 * fold-const.c (tree_swap_operands_p): Disable some features
429 when optimizing for size.
431 2003-10-15 David Daney <ddaney@avtrex.com>
433 * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
434 * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
436 (DWARF_FRAME_RETURN_COLUMN): Ditto.
437 (SIGNAL_UNWIND_RETURN_COLUMN): New, used
438 by MD_FALLBACK_FRAME_STATE_FOR.
439 * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
441 2003-10-15 Zack Weinberg <zack@codesourcery.com>
443 * genmodes.c: Include hashtab.h.
444 (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
445 (adj_bytesize, adj_alignment, adj_format, new_adjust)
446 (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
447 (print_maybe_const_decl, emit_mode_adjustments): New.
448 (known_modes): Rename to modes.
449 (find_mode): Kill class argument; look up in hash table.
450 (new_mode): Insert into hash table also.
452 (reset_float_format, make_partial_integer_mode)
453 (make_vector_mode): Tweak error reporting.
454 (reset_float_format): Correct type of fourth argument.
455 (emit_insn_modes_h): Add #defines to help make mode_size,
456 mode_base_align, and real_format_for_mode conditionally const.
457 (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
458 (emit_real_format_for_mode): Likewise, but temporarily disabled.
459 (emit_insn_modes_c): Call emit_mode_adjustments.
460 (main): Initialize modes_by_name.
461 * Makefile.in: Update dependencies.
462 * machmode.def: Document EXPR arguments and new ADJUST_* statements.
463 * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
464 declarations of mode_size and mode_base_align. Declare
465 init_adjust_machine_modes.
466 * toplev.c (backend_init): Call init_adjust_machine_modes.
468 2003-10-15 Olivier Hainque <hainque@act-europe.fr>
470 * genmodes.c (calc_wider_mode): Allocate enough room for all the
471 entries we'll possibly assign in the sort buffer.
473 2003-10-15 Ulrich Weigand <uweigand@de.ibm.com>
475 * config.gcc (s390x-ibm-tpf*): New target.
476 * doc/install.texi: Document it.
477 * config/s390/t-tpf: New file.
478 * config/s390/tpf.h: New file.
480 2003-10-15 Hans-Peter Nilsson <hp@axis.com>
483 * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
484 (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
485 Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
486 ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
487 (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
488 (define_split "*mov_sidesi_mem"+28, +29, +30): Use
489 replace_equiv_address, not gen_rtx_MEM.
490 * config/cris/cris.c (cris_mem_op): New match_operator function.
491 (cris_notice_update_cc): Use replace_equiv_address, not
493 * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
495 2003-10-15 Bernardo Innocenti <bernie@develer.com>
497 * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
498 MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
499 definitions after the other flags.
501 2003-10-14 Ziemowit Laski <zlaski@apple.com>
503 * c-parse.in (methoddef, methodproto): Call objc_add_method()
504 instead of add_method().
505 * objc/objc-act.c (objc_check_decl): Do not check for
506 constant_string_type.
507 (add_method): Rename to objc_add_method().
508 (really_start_method): Call objc_add_method() instead of
510 * objc/objc-act.h (add_method): Rename to objc_add_method().
512 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
514 * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
515 (s390_slb_comparison): Likewise.
516 * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
518 * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
519 and s390_slb_comparison.
520 * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
522 ("*adddi3_31z", "*subdi3_31z"): New insns.
523 ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
524 "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
527 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
529 * configure.in: Clean up some feedback echoes.
530 * configure: Regenerate.
532 * aclocal.m4: Properly quote names of macros being defined.
534 * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
536 2003-10-14 Steve Ellcey <sje@cup.hp.com>
538 * config/ia64/ia64.c (ia64_expand_call): Force function address
540 * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
542 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
544 * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
545 "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
546 ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
547 "*divsf3_ibm"): Likewise.
549 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
551 * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
552 target_alias with target_noncanonical.
554 2003-10-14 Geoffrey Keating <geoffk@apple.com>
556 * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
557 and add case for machines where outgoing register parameters
560 * config/darwin.c (machopic_indirect_data_reference): Use a scratch
561 register when generating indirect address.
563 2003-10-14 Richard Earnshaw <rearnsha@arm.com>
565 * arm.c (arm_addimm_operand): MODE arguemnt is unused.
566 * arm.md (cbranchne_decr1): Fix bootstrap warning.
568 2003-10-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
570 * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
571 * fixinc/fixincl.x: Regenerate.
572 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
574 Fixes PR bootstrap/9330.
576 2003-10-13 Eric Christopher <echristo@redhat.com>
578 * config/frv/frv.c (frv_adjust_field_align): Redo check for
580 (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
581 * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
582 (SBSS_SECTION_ASM_OP): Remove.
583 (EXTRA_SECTIONS): Remove in_sbss.
584 (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
585 (SBSS_SECTION_FUNCTION, sbss_section): Remove.
586 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
589 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
591 * Makefile.in, configure.in, config.host, mkheaders.in: Replace
592 uses of ${target_alias} for directory names (and other places which
593 won't like the empty string) with ${target_noncanonical}. Introduce
594 call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
596 * configure: Regenerate.
598 2003-10-13 Ian Lance Taylor <ian@wasabisystems.com>
600 * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
601 * config/arm/arm.md: For splits which rely on conditional moves,
602 remove ! TARGET_IWMMXT condition.
604 2003-10-13 David S. Miller <davem@redhat.com>
606 * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
607 (find_cond_trap): Always increment if we emit a conditional
610 2003-10-13 Zack Weinberg <zack@codesourcery.com>
612 * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
613 with min-insn-modes.o.
614 (STAGESTUFF): Add min-insn-modes.c.
615 (genobjs): Add genmodes.o.
616 (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
617 (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
618 (min-insn-modes.c, min-insn-modes.o): New rules.
619 (s-modes): Also generate min-insn-modes.c.
620 ($(BUILD_PREFIX_1)insn-modes.o): Kill.
621 * genmodes.c (struct mode_data): Add format field.
622 (blank_mode, validate_mode, complete_mode): Update to match.
623 (make_scalar_mode): Separate into make_int_mode and make_float_mode.
624 (_SCALAR_MODE): Kill.
625 (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
626 (emit_insn_modes_c_header): Adjust.
627 (emit_min_insn_modes_c_header, emit_real_format_for_mode)
628 (emit_min_insn_modes_c): New functions.
629 (emit_insn_modes_c): Call emit_real_format_for_mode.
630 (main): Add -m option to generate min-insn-modes.c.
631 * machmode.h: Update documentation. Add format argument to
632 all uses of FLOAT_MODE.
633 * real.c: Don't define real_format_for_mode here.
635 * dwarfout.c: Move default definition of PRINT_REG...
636 * defaults.h: ...here.
637 * print-rtl.c: Include tm_p.h.
638 (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
640 (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG. But surround
641 this entire block with #ifndef GENERATOR_FILE.
642 * regclass.c: Unconditionally define reg_names.
643 * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
644 Don't define DEBUG_REGISTER_NAMES.
645 * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
646 redefinition of REGISTER_NAMES.
647 * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
649 * combine.c: Change all preprocessor conditionals on
650 EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
652 * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
653 * configure.in: Don't define EXTRA_CC_MODES.
654 * configure, config.in: Regenerate.
655 * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
657 * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
658 May assume that GET_MODE_CLASS is accurate for extra CC modes
661 * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
662 number of arguments to aggregate_value_p.
664 * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
665 * machmode.def: Explain ARCH-modes.def. Document
666 RESET_FLOAT_FORMAT. Improve commentary on various mode
667 clusters. Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
668 XF, or TF modes here. Remove backward-compatibility
671 * config/alpha/alpha-modes.def: New file; define TF mode.
672 * config/arc/arm-modes.def: Define XF mode.
673 * config/c4x/c4x-modes.def: Define QF and HF modes. Unset
674 float format for SF and DF modes.
675 * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
676 * config/i386/i386-modes.def: Define XF and TF modes.
677 * config/i960/i960-modes.def: Define TF mode.
678 * config/ia64/ia64-modes.def: Define TF and OI modes.
679 * config/m68k/m68k-modes.def: New file; define XF mode.
680 * config/mips/mips-modes.def: New file; define TF mode, reset
681 formats for SF and DF modes.
682 * config/pa/pa-modes.def: Define TF mode.
683 * config/rs6000/rs6000.c: Define TF and PSI modes.
684 * config/s390/s390-modes.def: Define OI mode.
685 * config/sh/sh-modes.def: New file; define PSI mode.
686 * config/sparc/sparc-modes.def: Define TF mode.
687 * config/vax/vax-modes.def: New file; reset formats for SF and
690 * config/c4x/c4x.c (c4x_override_options): No need to mess
691 with real_format_for_mode or set REAL_MODE_FORMATs.
692 (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
694 * config/i386/i386.c (override_options): No need to set
695 REAL_MODE_FORMATs here.
696 * config/i960/i960.c (i960_initialize): Likewise.
697 * config/m68k/m68k.c (m68k_override_options): Likewise.
698 * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
699 for TFmode only if not the default.
700 * config/mips/mips.c (override_options): Likewise.
701 * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
702 DFmode only if not the default.
704 * config/i370/i370.h (RET_REG): Don't consider TFmode.
705 * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
706 * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
707 of modes that don't appear anywhere in the machine description.
709 * config/arc/arc-modes.def, config/arm/arm-modes.def
710 * config/c4x/c4x-modes.def, config/frv/frv-modes.def
711 * config/i386/i386-modes.def, config/i960/i960-modes.def
712 * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
713 * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
714 * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
715 * config/sparc/sparc-modes.def: Convert to new style for
716 declaring extra CC modes.
718 2003-10-13 Zack Weinberg <zack@codesourcery.com>
720 * cpplex.c (_cpp_clean_line): In the common case of a line
721 with no trigraphs and no \-newline, avoid writing to memory.
722 (_cpp_skip_block_comment): Use a local 'cur' pointer instead
723 of the buffer member. Make c an uchar to avoid unnecessary
726 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
728 * configure.in: Remove unnecessary test.
729 * configure: Regenerate.
731 * configure.in: Fix grammatical error. Move UWIN host error to...
733 * configure: Regenerate.
735 2003-10-13 Andreas Krebbel <krebbel1@de.ibm.com>
737 * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
738 "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
739 of flag_unsafe_math_optimizations.
740 * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
741 "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
742 fused-madd and no-fused-madd.
743 * doc/invoke.texi: Documented the new options fused-madd and
744 no-fused-madd for S/390.
746 2003-10-14 Alan Modra <amodra@bigpond.net.au>
748 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
749 MASK_ALIGN_NATURAL if rs6000_alignment_string not given. Don't
751 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
752 * config/rs6000/rs6000.c: Formatting.
753 (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
754 when rs6000_alignment_string given.
756 2003-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
759 * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
760 (sparc_flat_must_save_register_p): New function to decide whether
761 a register must be saved/restored in the function prologue/epilogue.
762 (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
764 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
766 * config/avr/avr.c, config/avr/avr-protos.h: Convert to
767 ISO C90 function declarations and definitions.
768 * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
770 2003-10-12 Nathanael Nerode <neroden@gcc.gnu.org>
772 * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
773 config files which do the same thing.
774 * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
775 config/freebsd6.h: Remove now unnecessary files.
777 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
779 * c-common.c (c_common_truthvalue_conversion): Warn if the
780 address of a non-weak function is used as a truth value.
782 2003-10-12 Kazu Hirata <kazu@cs.umass.edu>
784 * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
786 * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
787 instead of a literal.
789 2003-10-12 Hans-Peter Nilsson <hp@bitrange.com>
791 * doc/extend.texi (Function Attributes): Mention the exceptional
792 path for noreturn-marked functions.
794 2003-10-12 Jan Hubicka <jh@suse.cz>
796 * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
799 2003-10-12 Danny Smith <dannysmith@users.sourceforge.net>
801 * config/i386/i386.c (x86_this_parameter): Fix typo.
803 2003-10-11 Jan Hubicka <jh@suse.cz>
805 * Makefile.in (web.o): New.
807 * rtl.h (web_main): Declare.
808 * timervar.def (TV_WEB): New.
809 * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
810 (rest_of_hanle_web): New.
811 (flag_web): New static variable.
812 (lang_independent_options): Add "web".
813 (rest_of_compilation): Call rest_of_handle_web.
814 * invoke.texi (-fweb): Document.
815 * common.opt (fweb): New.
816 * flags.h (flag_web): New.
817 * opts.c (decode_options): Set flag_web at -O3.
819 * passes.texi (web construction): Document.
820 * invoke.texi (-O3): Document that -fweb is enabled.
822 * regrename.c (regrename_optimize): Deal better with situation when
825 * sched-ebb.c: Include params.h and profile.h
826 (schedule_ebbs): Use tracer parameters to discover superblocks
827 * Makefile.in (sched-ebb.o): Add dependencies.
829 2003-10-11 Roger Sayle <roger@eyesopen.com>
831 * fold-const.c (negate_mathfn_p): New function to determine whether
832 a built-in mathematical function is sign preserving, f(-x) == -f(x).
833 Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
834 (tree_swap_operands_p): Change API to take an additional argument
835 indicating that the swapped operands evaluate in reverse order.
836 Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
837 operand side-effects or we don't care about flag_evaluation_order.
838 (reorder_operands_p): New function to check whether its safe to
839 evaluate the given operands in reverse order.
840 (negate_expr_p): We can always negate integer constants unless
841 we honor -ftrapv and the signed type would overflow. Only allow
842 -(A-B) into B-A if reorder_operands_p says that its OK. Allow
843 negation of COMPLEX_CST if both real and imaginary parts can be
844 negated. Allow negation through floating point extensions and
845 sign-preserving built-in functions.
846 (negate_expr): Move the code to negate integers from "fold" to
847 here. Always negate integer constants unless we honor -ftrapv
848 and the signed type would overflow. Always negate real constants
849 unless we honor -ftrapping-math. Only convert -(A-B) into B-A
850 if allowed by reorder_operands_p. Add support for COMPLEX_CST.
851 Optimize negation through floating point extensions and
852 sign-preserving built-in functions (as defined by negate_mathfn_p).
853 (fold): Adjust calls to tree_swap_operands_p.
854 (fold <NEGATE_EXPR>): Move the remaining negation optimizations
855 to negate_expr_p/negate_expr.
856 (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
857 allowed to convert (-A) - B into (-B) - A.
859 2003-10-11 Roger Sayle <roger@eyesopen.com>
861 * builtins.c (expand_builtin_strcmp): Defend against the possibility
862 that gen_cmpstrsi may fail: Stabilize the argument list against
863 re-evaluation and expand the library call directly using this saved
864 argument list if a cmpstrsi sequence can't be generated.
865 (expand_builtin_strncmp): Likewise.
867 * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
869 2003-10-11 Roger Sayle <roger@eyesopen.com>
871 PR optimization/12260
872 * simplify-rtx.c (simplify_unary_operation): Simplify all unary
873 operations through CONST nodes. Optimize (neg (plus X C)) as
874 (minus -C X) for constant values C.
875 (simplify_binary_operation): Optimize (minus (neg X) C) as
876 (minus -C X) for constant values C.
877 (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
878 instead create (minus -C X).
880 2003-10-11 Roger Sayle <roger@eyesopen.com>
882 * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
883 safe_from_p for us, once it chooses an evaluation order.
884 (expand_expr <MULT_EXPR>): Likewise.
885 (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise. If expand_operands
886 places the second operand in "target", swap the operands.
887 (do_store_flag): Let expand_operands call safe_from_p for us.
889 2003-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
891 PR optimization/12544
892 * function.c (put_var_into_stack): Don't generate ADDRESSOFs
893 for DECL_NONLOCAL decls.
895 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
897 * expr.c: Follow spelling conventions.
899 * optabs.c: Likewise.
900 * sched-deps.c: Likewise.
901 * sdbout.c: Likewise.
903 Sat Oct 11 12:24:23 CEST 2003 Jan Hubicka <jh@suse.cz>
905 * varasm.c (notice_global_symbol): Fix handling of variables; avoid
906 re-computing of variable.
908 2003-10-11 Richard Henderson <rth@redhat.com>
910 * config/alpha/alpha.c (alpha_return_in_memory): Rename from
911 return_in_memory, make static, change signature to match target hook.
912 (alpha_setup_incoming_varargs): Make static, change signature to
913 match target hook, add code for vms and unicos.
914 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
915 TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
916 TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
917 TARGET_STRICT_ARGUMENT_NAMING,
918 TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
919 * config/alpha/alpha-protos.h: Update.
920 * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
921 PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
922 SETUP_INCOMING_VARARGS): Remove.
923 * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
924 * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
926 2003-10-11 Ian Lance Taylor <ian@wasabisystems.com>
928 * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
930 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
932 * config/m68k/lb1sf68.asm: Follow spelling conventions.
933 * config/m68k/m68k.c: Likewise.
934 * config/m68k/m68k.h: Likewise.
935 * config/m68k/m68k.md: Likewise.
937 2003-10-11 Roger Sayle <roger@eyesopen.com>
939 * builtins.c (expand_builtin_memcpy): Optimize case when the two
940 pointer arguments are the equal, non-volatile and side-effect free.
941 (expand_builtin_mempcpy): Likewise.
942 (expand_builtin_memmove): Likewise.
943 (expand_builtin_strcpy): Likewise.
944 (expand_builtin_memcmp): Likewise.
945 (expand_builtin_strcmp): Likewise.
946 (expand_builtin_strncmp): Likewise.
948 2003-10-11 Roger Sayle <roger@eyesopen.com>
950 * combine.c (apply_distributive_law): Enable "distributive" floating
951 point optimizations with -funsafe-math-optimizations.
953 2003-10-11 Andrew Pinski <pinskia@physics.uc.edu>
955 * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
957 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
959 * config/m68k/m68k-protos.h: Remove the prototype for
962 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
964 * config/m68k/m68k.c: Fix comment typos.
966 2003-10-11 Bernardo Innocenti <bernie@develer.com>
968 * config/m68k/m68k-protos.h (use_return_insn): Change return type from
970 * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
971 (current_frame): New global var.
972 (m68k_compute_frame_layout): Cache computations in current_frame.
973 (m68k_initial_elimination_offset): Use values from current_frame
974 instead of recomputing them.
975 (use_return_insn): Likewise.
976 (m68k_output_function_prologue): Likewise.
977 (m68k_output_function_epilogue): Likewise.
978 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
979 inside the block for __pic__.
981 2003-10-11 Peter Barada <peter@baradas.org>
982 Bernardo Innocenti <bernie@develer.com>
984 * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
985 (m68k_save_reg): Add boolean parameter `interrupt_handler'.
986 (m68k_interrupt_function_p): New function.
987 (m68k_handle_fndecl_attribute): Ditto.
988 (m68k_compute_frame_layout): Ditto.
989 (m68k_attribute_table): Define back-end specific attributes.
990 (m68k_output_function_epilogue): Emit RTE instruction for interrupt
993 2003-10-11 Bernardo Innocenti <bernie@develer.com>
995 * config/m68k/t-uclinux: New target Makefile fragment.
996 * config/m68k/uclinux.h: New target macro file.
997 * config.gcc (m68k-*-uclinux): New target definition.
999 2003-10-10 Roger Sayle <roger@eyesopen.com>
1001 * builtins.c (builtin_mathfn_code): Generalize to check whether
1002 the call is to any built-in function by comparing the call's
1003 argument list against the builtin decl's function type.
1005 2003-10-10 Roger Sayle <roger@eyesopen.com>
1007 * cse.c (constant_pool_entries_regcost): New global variable to
1008 hold the register cost component of constant_pool_entries_cost.
1009 (fold_rtx): Calculate constant_pool_entries_regcost at the same
1010 time as constant_pool_entries_cost.
1011 (cse_insn): Set both src_folded_cost and src_folded_regcost from
1012 constant_pool_entries_cost and constant_pool_entries_regcost.
1013 (cse_main): Initialize constant_pool_entries_regcost to zero.
1015 * optabs.c (expand_unop): Attach a REG_EQUAL note describing
1016 the semantics of the sequence of bit operations used to negate
1017 a floating-point value.
1018 (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
1019 the semantics of the bit operations used to abs a floating point
1022 2003-10-11 Bernardo Innocenti <bernie@develer.com>
1023 Paul Dale <pauli@snapgear.com>
1025 * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
1027 * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
1028 -fpic, -fPIC, -msep-data and -mid-shared-library.
1029 * config/m68k/m68k.c (m68k_library_id_string): New global variable.
1030 (override_options): Add -msep-data and -mshared-library-id support.
1031 (m68k_output_function_prologue): Generate code to load A5 for
1032 TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
1033 (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
1034 (m68k_output_pic_call): New function.
1035 * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
1036 (TARGET_ID_SHARED_LIBRARY): Ditto.
1037 (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
1038 * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
1039 (call_value): Likewise.
1041 2003-10-10 Zack Weinberg <zack@codesourcery.com>
1043 * gengenrtl.c (find_formats, genheader): Make i an unsigned
1044 int, remove cast of NUM_RTX_CODE.
1045 * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
1046 entire file. Remove the #ifs on GET_MODE_MASK etc and
1047 GET_MODE_WIDER_MODE etc.
1049 2003-10-10 Eric Christopher <echristo@redhat.com>
1051 * lcm.c (optimize_mode_switching): Change NORMAL_MODE
1052 to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
1054 * config/sh/sh.h (MODE_ENTRY): New macro.
1056 (MODE_AFTER): Ditto.
1057 * config/sh/sh.md: Change for MODE_AFTER. Add
1059 * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
1061 2003-10-10 Zack Weinberg <zack@codesourcery.com>
1063 * genmodes.c, mode-classes.def: New files.
1064 * machmode.def: Rewritten to genmodes.c interface.
1065 * Makefile.in (extra_modes_file): New substitution variable.
1066 (MACHMODE_H): No longer includes machmode.def or
1067 @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
1068 (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
1069 (OBJS-common): Add insn-modes.o.
1070 (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
1071 genmodes$(build_exeext).
1072 (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
1073 genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
1074 (s-genrtl): Don't depend on $(RTL_BASE_H).
1075 (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
1076 or $(RTL_BASE_H); just rtl.def.
1077 * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
1078 real.h. Give fake definition of CONST_DOUBLE_FORMAT and
1079 substitute definition of NUM_RTX_CODE. Add casts to avoid
1081 * machmode.h: Include insn-modes.h, not machmode.def. Include
1082 mode-classes.def to define enum mode_class. Tweak definitions
1083 of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
1084 GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
1085 (inner_mode_array): Renamed mode_inner.
1086 (mode_base_align): New.
1087 * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
1088 mode_unit_size, mode_wider_mode, mode_mask_array,
1089 inner_mode_array, class_narrowest_mode): Delete definitions.
1090 * stor-layout.c (get_mode_alignment): Use mode_base_align.
1091 * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
1092 and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
1094 * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
1095 No need to define BITS_PER_UNIT.
1097 2003-10-10 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1099 * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
1100 (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
1101 (ia64_initialize_trampoline): If not using GAS, declare trampoline
1103 * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
1104 (ASM_OUTPUT_DEBUG_LABEL): Likewise.
1106 * stor-layout.c (compute_record_mode): Don't force BLKmode if
1107 field is zero-length BLKmode.
1108 * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
1109 zero-size references.
1111 * combine.c (distribute_links): Properly test for REG being set.
1113 * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
1114 gen_lowpart and company except for REG.
1116 2003-10-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1118 * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
1120 2003-10-10 Nathanael Nerode <neroden@gcc.gnu.org>
1122 * config.gcc (mips*-*-netbsd*): Remove content-free line.
1124 2003-10-10 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
1126 * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
1127 gcov_position_t and gcov_type.
1129 2003-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
1131 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
1132 * configure: Regenerate.
1134 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
1136 * config/h8300/h8300.md (define_asm_attributes): Specify
1137 the length of an asm insn more precisely.
1139 2003-10-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1141 * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
1143 2003-10-09 Bob Wilson <bob.wilson@acm.org>
1145 * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
1146 FP register number to 48 and MAC16 accumulator to 0x210.
1148 2003-10-09 Nathanael Nerode <neroden@gcc.gnu.org>
1150 * config.gcc: Remove redundant thread_file setting clauses for
1151 various *-*-linux* targets.
1153 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
1155 * config/h8300/h8300.md (define_asm_attributes): New.
1157 2003-10-09 Roger Sayle <roger@eyesopen.com>
1159 * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
1160 to the comparison, as emit_libcall_block calls copy_rtx on equiv.
1162 2003-10-09 Dorit Naishlos <dorit@il.ibm.com>
1164 * haifa-sched.c (ok_for_early_schedule): New function.
1165 (early_queue_to_ready): New function.
1166 (schedule_block): Allow early removal of insns from Q.
1167 (schedule_insn): Update INSN_TICK in case of premature
1169 * common.opt (sched_stalled_insns): New flag.
1170 (sched_stalled_insns_dep): New flag.
1171 * flags.h: Same above flags.
1172 * opts.c: Same as above.
1173 * toplev.c: Same as above.
1174 * target.h (targetm.sched.is_costly_dependence): New
1176 * target-def.h: Same as above.
1177 * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
1178 Support new flag -msched-costly-dep.
1179 (DEFAULT_SCHED_COSTLY_DEP): Define.
1180 * config/rs6000/rs6000.c:
1181 (rs6000_is_costly_dependence): New function.
1182 (is_load_insn, is_store_insn): New functions.
1183 (is_load_insn1, is_store_insn1, is_mem_ref): New
1185 * doc/invoke.texi (-fsched-stalled-insns-dep)
1186 (-fsched-stalled-insns, -msched-costly-dep): Document
1188 * doc/tm.texi (is_costly_dependence): Define new
1189 scheduler target hook.
1191 2003-10-09 Jason Merrill <jason@redhat.com>
1194 * c-common.c (c_build_qualified_type): Look through arrays first.
1195 (c_apply_type_quals_to_decl): Look through arrays.
1197 * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
1198 types with constructors.
1200 * coverage.c (build_ctr_info_value): Use build_decl to make a
1202 (create_coverage): Likewise.
1204 * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
1206 (expand_asm_operands): Not here.
1207 (parse_input_constraint): No longer static.
1208 * tree.h: Declare it.
1210 2003-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
1212 * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
1214 (SHLIB_INSTALL): Likewise.
1216 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
1218 * doc/install.texi: Remove reference to removed 'pthreads' thread
1221 2003-10-08 Aldy Hernandez <aldyh@redhat.com>
1223 * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
1226 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
1228 * config.gcc: Don't accept --enable-threads=pthreads. Clean
1229 up related case statements.
1230 * configure.in: Don't accept --enable-threads=pthreads,
1231 decosf1, mach, or os2 (none of which work anyway). Alphabetize
1232 supported thread files in case clause.
1233 * configure: Regenerate.
1235 2003-10-08 Geoffrey Keating <geoffk@apple.com>
1237 * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
1238 definition to above SPARC_STACK_BOUNDARY_HACK.
1240 2003-10-08 Jason Merrill <jason@redhat.com>
1242 * c-pretty-print.c (pp_c_postfix_expression)
1243 <COMPOUND_LITERAL_EXPR>: Fix thinko.
1245 2003-10-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1247 * mklibgcc.in: Don't hide undefined or typeless symbols.
1249 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1251 PR optimization/12142
1252 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
1253 uses of the register in the SET_SRC. Remove unnecessary argument.
1254 * pa.c (legitimize_pic_address): Before reload, use a scratch register
1255 for the intermediate result in loading the address of a SYMBOL_REF.
1256 Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn
1257 which loads the SYMBOL_REF address.
1259 2003-10-08 Timo Kokkonen <tjko@iki.fi>
1260 Eric Botcazou <ebotcazou@libertysurf.fr>
1263 * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
1264 to define the size of the extern_C_braces array. Set it to 200.
1265 (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
1267 2003-10-08 Carlo Wood <carlo@alinoe.com>
1269 * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
1270 a space after the -o option. flex 2.5.31 understands both, with
1271 and without the space. Removed that space.
1273 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
1275 * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
1276 (compute_frame_size): Initialize it. Remove the .cprestore slot
1278 (mips_output_function_prologue): Simplify accordingly.
1279 (mips_debugger_offset): Change the mips16 frame pointer offset from
1280 current_function_outgoing_args to cfun->machine->frame.args_size.
1281 (mips_initial_elimination_offset): Likewise.
1282 (mips_expand_prologue): Likewise.
1283 (mips_expand_epilogue): Likewise.
1285 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
1287 * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
1288 (EXTRA_MEMORY_CONSTRAINT): Define.
1289 (CAN_ELIMINATE): Remove lwu workaround.
1290 * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
1291 Use a 'W' constraint for the source operand.
1293 2003-10-08 Kazu Hirata <kazu@cs.umass.edu>
1295 * genopinit.c (main): Output code to declare undefined
1298 2003-10-07 Kelley Cook <kcook@gcc.gnu.org>
1300 * gengtype-lex.l: Remove -Wtraditional cruft.
1301 * Makefile.in (gengtype-lex.c): Likewise.
1303 2003-10-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1305 * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
1307 2003-10-07 Jason Merrill <jason@redhat.com>
1310 * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
1313 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
1315 * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
1317 Fixes PR bootstrap/12173.
1319 2003-10-07 Zack Weinberg <zack@codesourcery.com>
1321 * errors.c: Don't include coretypes.h or tm.h.
1322 (trim_filename): Use IS_DIR_SEPARATOR.
1323 * Makefile.in: Update dependencies of errors.o and
1324 $(BUILD_PREFIX_1)errors.o.
1326 2003-10-07 Geoffrey Keating <geoffk@apple.com>
1328 * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
1329 account when aligning arguments.
1330 * calls.c (STACK_POINTER_OFFSET): Move default from here ...
1331 * defaults.h (STACK_POINTER_OFFSET): ... to here.
1332 * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
1333 it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
1334 (SPARC_STACK_BOUNDARY_HACK): Define.
1335 * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
1336 arrange for vector parameters to varargs functions to be passed
1337 in both memory and GPRs when appropriate.
1338 (rs6000_va_arg): Vector arguments passed in memory are 16-byte
1341 * hooks.c (hook_bool_tree_true): New.
1342 (hook_rtx_tree_int_null): New.
1343 (hook_rtx_rtx_null): Use NULL, not 0.
1344 * hooks.h: Add 'extern' to everything.
1345 (hook_bool_tree_true): New.
1346 (hook_rtx_tree_int_null): New.
1347 * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
1348 * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
1349 * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
1351 * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
1352 (setup_incoming_varargs): Prototype.
1353 (TARGET_PROMOTE_FUNCTION_ARGS): Define.
1354 (TARGET_PROMOTE_FUNCTION_RETURN): Define.
1355 (TARGET_STRUCT_VALUE_RTX): Define.
1356 (TARGET_RETURN_IN_MEMORY): Define.
1357 (TARGET_SETUP_INCOMING_VARARGS): Define.
1358 (TARGET_STRICT_ARGUMENT_NAMING): Define.
1359 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
1360 (init_cumulative_args): Use rs6000_return_in_memory.
1361 (setup_incoming_varargs): Make 'static'.
1362 * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
1363 (PROMOTE_FUNCTION_RETURN): Delete.
1364 (STRUCT_VALUE): Delete.
1365 (RETURN_IN_MEMORY): Delete.
1366 (SETUP_INCOMING_VARARGS): Delete.
1368 2003-10-07 Gerald Pfeifer <gerald@pfeifer.com>
1370 * doc/invoke.texi (Warning Options): Simplify and clarify the
1371 descriptions of -Wnonnull and -Winit-self.
1373 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
1375 * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
1376 indicees for floating-point conversersion libcalls.
1378 2003-10-07 Nathanael Nerode <neroden@gcc.gnu.org>
1380 * Makefile.in: Add more comments separating large conceptually
1383 * configure.in: Clean up thread file logic.
1384 * configure: Regenerate.
1386 2003-10-07 Danny Smith <dannysmith@users.sourceforge.net>
1388 * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
1389 (switch_to_section): Handle in_readonly_data.
1390 * config/i386/winnt.c (i386_pe_asm_named_section): Handle
1393 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
1395 * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
1397 (cbranchne_decr1): New Thumb pattern.
1398 * arm.c (arm_addimm_operand): New insn predicate.
1399 * arm-protos.h: Add a prototype for it.
1400 * arm.h (PREDICATE_CODES): Add it.
1402 2003-10-07 Dorit Naishlos <dorit@il.ibm.com>
1404 * sched-int.h (sched_info): New field
1405 sched_max_insns_priority.
1406 * sched-rgn.c (init_ready_list): Add invocations to
1407 targetm.sched.adjust_priority.
1408 (sched_max_insns_priority): Init new field.
1409 * sched-ebb.c (sched_max_insns_priority): Init new field.
1410 * haifa-sched.c (set_priorities): Set
1411 sched_info->sched_max_insns_priority.
1412 * config/rs6000/rs6000.h:
1413 (rs6000_sched_restricted_insns_priority_str): Support new
1414 flag -mprioritize-restricted-insns.
1415 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
1416 * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
1418 (rs6000_adjust_priority): Change priority of restricted
1419 insns, using above new function and new flag.
1420 * doc/invoke.texi (-mprioritize-restricted-insns): Document
1423 2003-10-07 Zack Weinberg <zack@codesourcery.com>
1425 * expr.c (cmpstr_optab, cmpmem_optab): New.
1426 * genopinit.c: Initialize them.
1427 * optabs.h: Declare them.
1428 * optabs.c (init_optabs): Clear them.
1429 (prepare_cmp_insn): Use cmpstr_optab and cmpmem_optab to find
1430 block memory compare insns, not conditional chains. Restructure
1431 the fallback generation of a call to memcmp/bcmp for better
1434 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
1436 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
1437 (mips_save_restore_fn): New typedef.
1438 (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
1439 (mips_set_frame_expr, mips_frame_set): Move above prologue code.
1440 (save_restore_insns): Remove, replacing with...
1441 (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
1442 (mips_save_reg, mips_restore_reg): New function.
1443 (mips_expand_prologue, mips_expand_epilogue): Rework.
1444 * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
1445 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
1446 (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
1448 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
1450 * config/mips/mips.c (mips_expand_prologue): Remove unused
1451 traversal of function arguments.
1453 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
1455 * doc/invoke.texi: Remove documentation of -mentry.
1456 * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
1457 (override_options, mips_save_reg_p): Remove handling.
1458 (compute_frame_size, mips_output_function_prologue): Likewise.
1459 (mips_expand_prologue, mips_expand_epilogue): Likewise.
1460 * config/mips/mips.h (mips_entry_string): Remove declaration.
1461 (TARGET_OPTIONS): Remove -mentry.
1462 * config/mips/mips16.S: Remove mention of -mentry.
1464 2003-10-06 Zack Weinberg <zack@codesourcery.com>
1466 * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
1467 (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
1468 (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
1469 (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
1470 (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
1471 (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
1472 (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
1473 (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
1474 (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
1475 (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
1476 (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
1477 (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
1478 (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
1479 (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
1480 (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
1481 (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
1482 (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
1483 (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
1484 (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
1485 (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
1486 (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
1487 (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
1488 (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
1489 (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
1490 (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
1491 (fixunstfti_libfunc): Delete.
1492 * optabs.h (struct optab_handlers): Break out of struct optab.
1493 (struct convert_optab, convert_optab, enum convert_optab_index,
1494 convert_optab_table, sext_optab, zext_optab, trunc_optab,
1495 sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
1496 sfloat_optab, ufloat_optab): New.
1497 (set_conv_libfunc): Prototype.
1498 (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
1499 (trunc_optab): Renamed btrunc_optab.
1500 * builtins.c (expand_builtin_mathfn): Update to match.
1501 * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
1502 (convert_optab_table, new_convert_optab, init_convert_optab)
1503 (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
1504 (set_conv_libfunc): New.
1505 (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
1506 (expand_float, expand_fix): Use new conversion optabs,
1507 not old insn code tables or long chains of ifs.
1508 (init_optabs): No need to clear old insn code tables.
1509 Initialize the new optabs, not the old libfunc array entries.
1510 Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
1511 * genopinit.c: Initialize conversion optabs, not the
1512 former insn code tables. Remove unnecessary casts.
1513 Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
1514 * expr.c (convert_move): Remove redundant check that
1515 to_real==from_real. Use the conversion optabs instead
1516 of long chains of tests of modes. Move partial-integer-mode
1517 interconversion above all integer conversion. Do not recurse
1518 on a value forced into a register in the original mode.
1520 * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
1521 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
1522 * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
1523 in new conversion optabs; do not reference the old libfunc
1524 array entries. No need to include libfuncs.h.
1526 2003-10-06 Roger Sayle <roger@eyesopen.com>
1528 * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
1529 point comparison sequence with a REG_EQUAL note that describes
1530 the comparison's semantics.
1532 2003-10-06 Roger Sayle <roger@eyesopen.com>
1534 * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
1535 of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
1537 2003-10-06 Roger Sayle <roger@eyesopen.com>
1538 Zack Weinberg <zack@codesourcery.com>
1540 * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
1541 instruction by using LCT_CONST and then calling emit_libcall_block
1544 2003-10-06 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
1546 PR optimization/11974
1547 * optabs.c (expand_unop): Promote libcall outmode according to
1550 2003-10-06 Zack Weinberg <zack@codesourcery.com>
1552 * real.h (REAL_MODE_FORMAT): New macro.
1553 * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
1554 * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
1555 * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
1556 * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
1557 * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
1558 directly to real_format_for_mode array, wherever possible.
1560 2003-10-06 Devang Patel <dpatel@apple.com>
1562 * dwarf2out.c (is_main_source): Remove variable.
1563 (dwarf2out_start_source_file): Do not check is_main_source.
1564 Do not reset is_main_source.
1565 (dwarf2out_init): Do not initialize is_main_source.
1567 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1569 * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
1570 (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
1571 introduced some multi-line prototypes.
1572 * fixinc/fixincl.x: Regenerate.
1574 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1576 * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
1577 * config/mips/mips.c (stack_operand): New predicate.
1578 * config/mips/mips.md: Use it for the destination of mips16 insns
1581 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1583 * config/mips/mips.md (*lowsi): Renamed from lowsi.
1584 (*lowdi): Likewise lowdi.
1585 (*lowsi_mips16, *lowdi_mips16): New patterns.
1586 * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
1587 mips16 CONSTANT_RELOC handling.
1588 (mips_delegitimize_address): Adjust for new sdata representation.
1590 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1592 * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
1593 skip any remaining register arguments.
1595 2003-10-06 Ulrich Weigand <uweigand@de.ibm.com>
1597 * reload.c (find_reloads_subreg_address): Use correct offset for
1598 paradoxical MEM subregs on big-endian targets.
1600 2003-10-06 Andrew Haley <aph@redhat.com>
1602 * tree.c (get_callee_fndecl): Call
1603 lang_hooks.lang_get_callee_fndecl.
1604 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
1605 (lhd_get_callee_fndecl): New.
1607 2003-10-06 Andrew Pinski <apinski@apple.com>
1609 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
1610 error in calculating the length of the string.
1611 (machopic_stub_name): Likewise.
1613 2003-10-06 Roger Sayle <roger@eyesopen.com>
1615 * optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note
1616 describing the return value of the comparison libcall to the
1617 REG_RETVAL instruction of the emitted sequence.
1619 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1621 PR optimization/12215
1622 * cse.c (cse_set_around_loop): Emit the move at the beginning
1623 of the next basic block for trapping sets.
1625 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
1627 PR optimization/11637
1628 * combine.c (adjust_for_new_dest): New function to adjust the
1629 notes and LOG_LINKS when the dest of an insn has changed.
1630 (try_combine): Use it when deleting the first insn of a two-insn
1631 parallel or splitting a two-load parallel.
1633 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1635 * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
1636 if TARGET_EXPLICIT_RELOCS.
1638 2003-10-06 Mark Mitchell <mark@codesourcery.com>
1641 * Makefile.in (info): Use double-colon rules.
1643 (generated-manpages): Likewise.
1644 * configure.in: Do not create lang.info, lang.dvi, or
1645 lang.generated-manpages hooks.
1646 * configure: Regenerated.
1647 * objc/Make-lang.in (objc.info): Remove.
1649 (objc.generated-manpages): Remove.
1650 * doc/sourcebuild.texi: Update description of info, dvi, and
1651 generated-manpages hooks.
1653 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
1655 * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
1657 2003-10-05 Andrew Pinski <apinski@apple.com>
1659 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
1660 errors in memcpy destinations.
1661 (machopic_stub_name): Likewise.
1663 2003-10-05 Andrew Pinski <apinski@apple.com>
1665 * config/darwin.c (machopic_non_lazy_ptr_name):
1666 Change strcat to memcpy and add length together.
1667 (machopic_stub_name): Likewise.
1669 2003-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
1671 * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
1672 signal trampoline codes.
1674 2003-10-05 Chris Demetriou <cgd@broadcom.com>
1676 * config/mips/mips.md (*divsf3): Move description of
1677 SB-1 F2 erratum from here to...
1678 (divsf3): Here. Disable if TARGET_FIX_SB1 is set and
1679 flag_unsafe_math_optimizations is not.
1681 2003-10-05 Aldy Hernandez <aldyh@redhat.com>
1683 * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
1684 TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
1686 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1688 * c-pretty-print.c: Fix comment typos.
1689 * c-pretty-print.h: Likewise.
1690 * calls.c: Likewise.
1691 * cfgloopmanip.c: Likewise.
1692 * cgraphunit.c: Likewise.
1693 * cppfiles.c: Likewise.
1694 * final.c: Likewise.
1695 * function.c: Likewise.
1696 * gcov-io.h: Likewise.
1698 * genoutput.c: Likewise.
1700 * postreload.c: Likewise.
1701 * reg-stack.c: Likewise.
1702 * regmove.c: Likewise.
1703 * sched-int.h: Likewise.
1704 * sched-rgn.c: Likewise.
1705 * simplify-rtx.c: Likewise.
1706 * tree-inline.c: Likewise.
1707 * config/m68hc11/m68hc11.h: Likewise.
1708 * config/mmix/mmix.c: Likewise.
1709 * config/mn10300/mn10300.md: Likewise.
1710 * config/sh/sh.h: Likewise.
1712 2003-10-05 Richard Henderson <rth@redhat.com>
1714 * tree-inline.c (remap_type): New.
1715 (remap_decl): Use it. Remap DECL_SIZE*.
1716 (copy_body_r): Use it.
1717 (walk_tree): Walk TREE_TYPE too.
1718 (copy_tree_r): Don't walk subtrees of types.
1719 * tree.c (variably_modified_type_p): Restructure. Consider integer
1720 types with non-const bounds variably modified.
1722 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1724 * doc/invoke.texi: Fix typos.
1726 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1728 * fold-const.c: Follow spelling conventions.
1729 * function.c: Likewise.
1730 * config/c4x/c4x.h: Likewise.
1731 * config/c4x/c4x.md: Likewise.
1732 * config/frv/frv.md: Likewise.
1733 * config/rs6000/aix.h: Likewise.
1734 * config/rs6000/linux64.h: Likewise.
1735 * config/xtensa/xtensa.c: Likewise.
1737 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
1739 * c-pretty-print.c: Fix comment formatting.
1740 * cfglayout.c: Likewise.
1741 * cfgloopanal.c: Likewise.
1742 * cppcharset.c: Likewise.
1743 * dbxout.c: Likewise.
1744 * ggc-page.c: Likewise.
1746 * target.h: Likewise.
1748 2003-10-04 Kelley Cook <kelleycook@wideopenwest.com>
1750 * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
1752 2003-10-04 Nathanael Nerode <neroden@gcc.gnu.org>
1754 * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
1755 Convert to ISO C90 function declarations and definitions.
1757 2003-10-04 Zack Weinberg <zack@codesourcery.com>
1760 (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
1761 (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
1762 (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
1763 (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
1764 (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
1765 (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
1766 (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
1767 (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
1768 (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
1769 (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
1770 (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
1771 (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
1772 (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
1773 (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
1774 (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
1775 (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
1777 * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
1778 (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
1779 (le_optab, unord_optab): New.
1781 * optabs.c (prepare_float_lib_cmp): Rewrite. Get the libfuncs
1782 from the code_to_optab table, not a giant switch; use
1783 swap_condition; do widening only if a comparison function that
1784 we can call exists in a wider mode, not if a cmp_optab insn or
1785 libfunc exists in a wider mode; call protect_from_queue
1786 exactly once on each operand.
1787 (init_optabs): Initialize the new optabs, not the deleted libfuncs.
1789 * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
1790 * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
1791 Set floating point comparison libfuncs using set_optab_libfunc
1792 on the appropriate optab.
1794 * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
1795 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
1796 selector conditionals.
1798 2003-10-04 Stephane Carrez <stcarrez@nerim.fr>
1800 * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
1801 identical to m68hc12 as far as libraries are concerned.
1803 2003-10-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1806 * c-typeck.c (convert_for_assignment): Issue an error for
1807 array to pointer assignment after default conversion.
1808 (digest_init): Likewise.
1810 2003-10-04 Fariborz Jahanian <fjahanian@apple.com>
1812 * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
1814 2003-10-03 Gerald Pfeifer <gerald@pfeifer.com>
1816 * doc/extend.texi (Function Attributes): Fix title of GNU C
1817 Preprocessor manual.
1818 (C++ Extensions): Fix reference to "Predefined Macros" in the
1819 GNU C Preprocessor manual.
1821 2003-10-04 Richard Earnshaw <reanrsha@arm.com>
1823 * doc/extend.texi: Document how GCC estimates and relies on the size
1826 2003-10-04 Richard Sandiford <rsandifo@redhat.com>
1828 * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
1829 arguments downward for big-endian o64.
1831 2003-10-03 Robert Bowdidge <bowdidge@apple.com>
1833 * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
1834 PCH generation, avoiding too-frequent flushes when writing to NFS
1837 2003-10-03 Ziemowit Laski <zlaski@apple.com>
1839 * objc/objc-act.c (lookup_category): Mark as 'inline'.
1841 2003-10-03 Alexander Malmberg <alexander@malmberg.org>
1842 Ziemowit Laski <zlaski@apple.com>
1844 * objc/objc-act.c (add_method_to_hash_list, lookup_category):
1846 (lookup_method_in_hash_lists): New parameter indicating whether
1847 we are messaging 'Class' or 'id'.
1848 (check_duplicates): Likewise; do not assume all methods will
1849 be either class or instance methods.
1850 (generate_category, finish_class): Use lookup_category().
1851 (add_method): Use add_method_to_hash_list(); insert instance
1852 methods of root classes into the global class method hash table.
1853 (add_category): Use lookup_category(); avoid constructing
1854 duplicate categories.
1855 (really_start_method): Add method to corresponding @interface,
1856 if not already there (and if the @interface exists).
1857 (finish_message_expr, finish_objc): Adjust calls to
1860 2003-10-03 Roger Sayle <roger@eyesopen.com>
1862 PR optimization/9325, PR java/6391
1863 * fold-const.c (fold_convert): For floating point to integer
1864 conversions, return the maximum/minimum representable integer
1865 value if the real constant overflows the destination type.
1866 * tree.c (real_value_from_int_cst): Allow the type to be NULL,
1867 meaning don't truncate the result to a floating point mode.
1868 Simplify the logic by calling real_from_integer directly.
1869 * simplify-rtx.c (simplify_unary_operation): Implement the
1870 same semantics for folding floating point to integer conversions
1873 2003-10-03 Chris Demetriou <cgd@broadcom.com>
1875 * config/mips/mips.c (mips_emit_prefetch): Restructure
1876 to avoid use of arrays, handle indexed prefetch.
1877 * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
1878 (ISA_HAS_PREFETCHX): New deffine.
1879 * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
1881 (prefetch_indexed_di, prefetch_indexed_si): New insns.
1883 2003-10-03 Jeff Sturm <jsturm@one-point.com>
1884 Roger Sayle <roger@eyesopen.com>
1886 PR optimization/12289
1887 * calls.c (emit_call_1): Pretend to have popped the arguments
1888 to noreturn and longjmp functions instead of ignoring them.
1889 (expand_call): Don't adjust stack_pointer_dela while
1890 inhibit_defer_pop is set.
1892 2003-10-03 Andreas Schwab <schwab@suse.de>
1895 * configure.in: Check for libunwind on the host only if building
1897 * configure: Regenerated.
1899 2003-10-03 Paolo Carlini <pcarlini@unitus.it>
1901 * unwind-pe.h (read_encoded_value_with_base): Constify u and
1902 its inizialization cast.
1904 2003-10-03 Richard Sandiford <rsandifo@redhat.com>
1907 * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
1909 2003-10-02 Mark Mitchell <mark@codesourcery.com>
1911 PR optimization/12180
1912 * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
1913 functions containing calls to __builtin_next_arg.
1915 2003-10-02 Chris Demetriou <cgd@broadcom.com>
1917 * config/mips/mips.c (mips_emit_prefetch): Use operand 3
1918 in instructions being output.
1919 * config/mips/mips.md (prefetch_si_address): Change third
1920 operand's constraint letter to 'I'.
1921 (prefetch_di_address): Likewise.
1922 (prefetch_si, prefetch_di): Set third operand to const0_rtx.
1924 2003-10-02 Zack Weinberg <zack@codesourcery.com>
1926 * system.h: Poison macros obsoleted by earlier patch.
1927 * config/cris/cris.c: C90-ify a function definition.
1929 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
1932 * combine.c (make_field_assignment): Check whether rtx's code
1933 is CONST_INT before using INTVAL.
1935 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
1937 * cgraph.c (cgraph_node): Use INSERT instead of 1 in
1938 htab_find_slot_with_hash.
1939 (cgraph_node_for_identifier): Use NO_INSERT.
1940 (cgraph_remove_node): Use NO_INSERT.
1941 (cgraph_varpool_node): Use INSERT.
1942 (cgraph_varpool_node_for_identifier): Use NO_INSERT.
1944 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
1946 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1948 * varasm.c (compare_constant): Fix thinko.
1950 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
1952 * config/frv/frv.c (frv_issue_rate): New function.
1953 (frv_pack_insns): Use it.
1954 (TARGET_SCHED_ISSUE_RATE): Define.
1956 2003-10-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
1958 * config/mcore/mcore.c: Convert to ISO C90 function declarations
1960 * config/mcore/mcore.h: Likewise.
1961 * config/mcore/mcore-protos.h: Likewise.
1963 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
1965 * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
1966 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
1968 2003-10-01 Per Bothner <pbothner@apple.com>
1970 * c-lex.c (src_line): Remove unneeded static variable.
1971 (cb_line_change): Set input_line directly, instead of src_line.
1972 (get_non_padding_token): We no longer need to compensate for the
1973 "horrible things" the C++ front-end does with the current line number,
1975 * cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change
1976 callback even when popping the main file.
1977 * c-lex.c (fe_file_change): Handle a NULL new_map.
1978 * fix-header.c (cb_file_change): Likewise.
1979 * c-ppoutput.c (pp_file_change): Likewise.
1981 * cppinit.c (cpp_read_main_file): Split into two functions:
1982 Distribute _cpp_stack_file call over the two functions.
1983 (cpp_find_main_file): New function.
1984 Don't call _cpp_do_file_change even if working_directory flag set.
1985 (cpp_push_main_file): New function.
1986 * cppfiles.c (_cpp_find_failed): New helper function.
1987 (find_file): Made non-static and renamed to _cpp_find_file.
1988 (_cpp_stack_file): No longer needed. But note the following.
1989 (stack_file): Made non-static and renamed to _cpp_stack_file.
1990 * fix-header.c (cpp_read_main_file): Replace cpp_read_main_file
1991 call with calls to cpp_find_main_file and cpp_push_main_file.
1992 (search_path_head): If there is no current buffer, use main_file.
1993 * cpphash.h: Update function declarations.
1994 * cpplib.h: Update function declarations.
1996 * c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
1997 (c_common_parse_file): No longer need to call cpp_read_main_file
1998 when file_index > 0 (as in multi-file or server compiation).
1999 (finish_options): Change to <built-in> is an LC_ENTER, not LC_RENAME
2000 as this now happens before cpp_push_main_file.
2001 (push_command_line_include): When done with options, pass LC_LEAVE
2002 instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
2003 (fe_file_change): Handle NULL new_map, and simplify.
2004 * cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed
2005 08-28 change, since we're never called with a NULL buffer.
2006 (_cpp_lex_direct): Likewise.
2007 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
2008 Return false if buffer is NULL at end.
2010 * cpplex.c (_cpp_get_fresh_line): Return value now just depends on
2011 whether pfile->buffer is NULL after pop, ignoring return_at_eof.
2012 * cpphash.h (struct cpp_buffer): Remove unused return_at_eof field.
2013 * cpplib.c (cpp_push_buffer): Since we no longer set return_at_eof,
2014 remove the unused return_at_eof parameter.
2015 * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
2016 Update callers of cpp_push_buffer.
2018 2003-10-01 Zack Weinberg <zack@codesourcery.com>
2020 * target.h (init_libfuncs): New hook.
2021 * target-def.h: Default TARGET_INIT_BUILTINS and
2022 TARGET_INIT_LIBFUNCS to hook_void_void. Add
2023 TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
2024 * builtins.c (default_init_builtins): Delete.
2025 * expr.h (default_init_builtins): Delete prototype.
2026 * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
2027 Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
2028 Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
2029 DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
2030 MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
2031 and UMODDI3_LIBCALL,
2033 * Makefile.in (optabs.o): Depends on target.h.
2034 * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
2035 * optabs.c: Include target.h.
2036 (prepare_float_lib_cmp): No need for #ifdef around use of
2037 FLOAT_LIB_COMPARE_RETURNS_BOOL.
2038 (set_optab_libfunc): New function.
2039 (init_optabs): Delete use of all *_LIBCALL defines.
2040 Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
2041 * optabs.h: Prototype set_optab_libfunc.
2043 * config.gcc: Remove all references to pa/long_double.h,
2044 ia64/hpux_longdouble.h, and gofast.h.
2045 (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
2046 to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
2048 * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
2049 * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
2050 * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
2051 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
2052 * config/sparc/sparc.c, config/vax/vax.c:
2053 Provide a definition for TARGET_INIT_LIBFUNCS. Where
2054 necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
2056 * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
2057 * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
2058 * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
2059 * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
2060 * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
2061 * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
2062 * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
2063 * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
2064 INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
2066 * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
2067 Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
2068 * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
2069 HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
2070 * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
2072 * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
2073 * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
2074 SUN_INTEGER_MULTIPLY_64 to 0.
2075 * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
2076 SUN_INTEGER_MULTIPLY_64 to 1.
2077 * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
2078 SUN_INTEGER_MULTIPLY_64 to 0.
2079 * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
2080 Define US_SOFTWARE_GOFAST.
2081 * config/vax/vax.h: Default TARGET_ELF to 0.
2082 * config/vax/elf.h: Redefine TARGET_ELF to 1.
2084 * config/gofast.h: Don't define any macros here. Provide one
2085 static function, gofast_maybe_init_libfuncs, which does what
2086 INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
2087 is already defined. Do not clear negation libfuncs. Do
2088 not mess with HFmode, XFmode, or TFmode libfuncs.
2090 * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
2092 2003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
2095 * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
2097 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2099 * config/mips/xm-iris5.h: Remove, unnecessary.
2100 * config.build (mips-sgi-irix5*): Remove.
2101 (mips-sgi-irix6*o32): Likewise.
2102 * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
2103 (mips-sgi-irix5cross64): Likewise.
2104 (mips-sgi-irix5*): Likewise.
2105 * config.host (mips-sgi-irix5*): Remove.
2106 (mips-sgi-irix6*o32): Likewise.
2108 2003-10-01 Zack Weinberg <zack@codesourcery.com>
2110 * dbxout.c (dbxout_fptype_value): Delete.
2111 (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
2113 2003-10-01 Alexandre Oliva <aoliva@redhat.com>
2115 * output.h (compute_reloc_for_constant): Declare.
2116 * varasm.c (compute_reloc_for_constant): Extract from...
2117 (output_addressed_constants): ... here. Adjust all callers.
2119 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2121 * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
2122 * configure: Rebuilt.
2124 2003-10-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2126 * fold-const.c (make_range): When handling unsigned, don't reverse
2127 range if high bound is zero.
2129 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2131 * config/frv/frv.h (PREDICATE_CODES): Added
2132 condexec_si_media_operator, condexec_sf_add_operator and
2133 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
2134 and condexec_sf_unary_operator.
2136 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2138 * aclocal.m4: Add ultrix* to /dev/zero blacklist.
2139 * configure: Rebuilt.
2141 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2143 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
2145 * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
2147 2003-09-23 David S. Miller <davem@redhat.com>
2149 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
2151 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
2153 2003-10-01 Steven Bosscher <steven@gcc.gnu.org>
2155 * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
2156 C90 function declarations and definitions.
2158 2003-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
2160 * config.gcc (cris-*-linux*): Revert mistaken commit.
2162 2003-10-01 Eric Botcazou <ebotcazou@libertysurf.fr>
2164 PR optimization/11753
2165 * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
2166 the length in the non-V9 case.
2168 2003-09-30 Richard Henderson <rth@redhat.com>
2170 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
2171 DWARF_ALT_FRAME_RETURN_COLUMN.
2172 * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
2173 (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
2174 (uw_frame_state_for): Return end-of-stack for null return address.
2175 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
2177 * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
2178 (alpha_expand_prologue): Store a zero for it.
2179 (alpha_expand_epilogue): Don't reload it.
2180 * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
2181 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
2182 for the sigframe return address.
2184 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
2186 * sdbout.c: Convert to ISO C90 prototypes.
2187 * objc/objc-act.c: Likewise.
2189 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
2191 * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
2192 * config/i386/winnt.c: Likewise.
2193 * config/i386/cygming.h: Likewise.
2195 2003-09-30 Kazu Hirata <kazu@cs.umass.edu>
2197 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
2198 (A ^ B) - B for any B.
2200 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
2202 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
2203 powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
2205 2003-09-30 Richard Earnshaw <rearnsha@arm.com>
2207 * arm/ieee754-sf.S: Tidy formatting.
2209 2003-09-30 Nicolas Pitre <nico@cam.org>
2211 * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
2213 (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
2214 (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
2215 added better divisor alignment in the other case.
2216 (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
2217 (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
2218 macros above, add fast exits for divisor >= dividend, etc.
2220 2003-09-30 Nicolas Pitre <nico@cam.org>
2222 * arm/ieee754-df.S: Split compilation of fixunsdfsi from
2224 * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
2226 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
2228 * config.gcc: Default use_fixproto to 'no'.
2230 2003-09-30 Richard Sandiford <rsandifo@redhat.com>
2232 PR optimization/12345
2233 * config/mips/mips-protos.h (mips_restore_gp): Remove.
2234 (mips_gp_save_slot): Declare.
2235 * config/mips/mips.c (mips_restore_gp): Remove in favor of...
2236 (mips_gp_save_slot): ...this new function.
2237 * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
2238 and mips_output_move to generate the output template.
2239 (call_internal): Force splitting if TARGET_SPLIT_CALLS. Don't emit
2240 a gp load after a noreturn call. Load the gp using a move rather
2241 than an exception_receiver pattern.
2242 (call_value_internal, call_value_multiple_internal): Likewise.
2243 (call_split, call_value_split, call_value_multiple_split): Clobber $28.
2245 2003-09-30 Carlo Wood <carlo@alinoe.com>
2248 * cfglayout.c (insn_scope): Use prologue_locator and
2249 epilogue_locator; return the outer function scope for
2250 pro- and epilogue insns.
2252 2003-09-29 Zack Weinberg <zack@codesourcery.com>
2254 * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
2255 REAL_TYPEs based on the bitsize of the type's mode, not the
2258 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2260 * dwarf2out.c (default_eh_frame_section): Split into ...
2261 (named_section_eh_frame_section, collect2_eh_frame_section): ... new
2263 * output.h (named_section_eh_frame_section): Declare.
2264 (collect2_eh_frame_section): Likewise.
2266 2003-09-29 Zack Weinberg <zack@codesourcery.com>
2268 * real.c (real_sqrt): Use get_canonical_qnan directly.
2270 * dwarf2out.c (add_const_value_attribute): Use real_to_target.
2272 * varasm.c (assemble_real): Use real_to_target directly,
2273 calculate the number of significant elements of the result
2274 array and write them out in a loop, instead of using a giant
2275 switch statement to pick the correct REAL_VALUE_TO_TARGET_*
2278 2003-09-29 Jan Hubicka <jh@suse.cz>
2281 * varasm.c (notice_global_symbol): Discard external symbols.
2283 PR optimization/12286
2284 * gcov-io.c (gcov_read_words): Fix memmove call.
2285 * profile.c (compute_branch_probabilities): Add extra sanity checks.
2287 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2289 * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
2292 * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
2293 wildcards which explicitly match micro versions.
2294 * fixinc/fixincl.x: Regenerate.
2296 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
2298 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
2299 (A ^ B) - B, where B is any power of 2 minus 1.
2301 2003-09-29 Jan Hubicka <jh@suse.cz>
2303 * libgcov.c (gcov_exit): Fix two pastos.
2305 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
2307 * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
2308 define_split immediately below to form define_insn_and_split.
2310 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
2312 * config/h8300/h8300.md (*tstsi_variable_bit): New.
2313 (*tstsi_variable_bit_qi): Likewise.
2315 2003-09-28 Phil Edwards <phil@codesourcery.com>
2317 * doc/cppopts.texi: Use 'dashMP' instead of '-MP' as a cross-
2320 2003-09-28 Richard Henderson <rth@redhat.com>
2322 * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
2323 file and line separately.
2325 2003-09-28 Ulrich Weigand <uweigand@de.ibm.com>
2327 * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
2328 "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
2329 "*subdi3_borrow_cconly"): New insns.
2330 ("*addsi3_sub", "*subsi3_sub"): Remove.
2331 ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
2332 ("*subsi3_cc"): Fix op_type attribute.
2334 2003-09-28 Richard Henderson <rth@redhat.com>
2336 * stmt.c (expand_asm_operands): Take a location_t, instead of
2337 individual file and line.
2338 * c-typeck.c (c_expand_asm_operands): Likewise.
2339 * tree.h (expand_asm_operands): Update decl.
2340 * c-common.h (c_expand_asm_operands): Likewise.
2341 * c-semantics (genrtl_asm_stmt): Update call.
2343 2003-09-28 Philip Blundell <philb@gnu.org>
2345 * config/arm/arm.c (legitimize_pic_address): Check
2346 SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
2347 (arm_assemble_integer): Likewise.
2349 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
2351 * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
2352 config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
2354 Convert to ISO C90 function declarations and definitions.
2356 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
2358 * config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
2359 Convert to ISO C90 function declarations and definitions.
2361 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
2363 * config/mips/mips.c (mips_constant_info): Add reloc field.
2364 (mips_classify_constant): Initialize it. Always set SYMBOL to the
2365 underlying symbol, not to an unspec.
2366 (mips_delegitimize_address, print_operand): Clean up accordingly.
2368 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
2370 * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
2371 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
2372 * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
2373 (mips_classify_constant): Use it.
2374 (mips_splittable_symbol_p): Add an offset argument.
2375 (mips_classify_address): Adjust call accordingly.
2376 (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
2377 than a relocation unspec. Update call to mips_splittable_symbol_p.
2378 Generalize the code that copes with symbols + invalid offsets.
2379 (print_operand): Allow '%R' to be applied to small data addresses.
2380 (mips_reloc_string): Remove RELOC_GPREL16.
2381 (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg. Return $gp
2382 for TARGET_EXPLICIT_RELOCS. Return null if we can't use gp-relative
2383 relocation operators.
2384 * config/mips/mips.md (RELOC_GPREL16): Remove. Shuffle other reloc
2385 constants accordingly.
2387 2003-09-27 Roger Sayle <roger@eyesopen.com>
2389 * toplev.c (flag_evaluation_order): New global variable.
2390 * flags.h (flag_evaluation_order): Prototype here.
2391 * expr.c (expand_operands): If we need to preserve observable
2392 evaluation order, protect exp1 from clobbering exp0's result.
2394 2003-09-28 Andreas Jaeger <aj@suse.de>
2396 * c-decl.c (finish_function): Convert definition to ISO C90.
2397 * ifcvt.c (mark_loop_exit_edges): Likewise.
2398 * ra-rewrite.c (emit_colors): Likewise.
2400 2003-09-27 Nathanael Nerode <neroden@gcc.gnu.org>
2402 * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
2403 * config.gcc (arm*-*-uclinux*): Disable fixproto.
2404 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
2405 powerpc-*-eabialtivec*): Disable fixproto.
2407 2003-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
2409 PR optimization/12340
2410 * loop.h (struct induction): Document the new semantics
2411 of the 'same' field for bivs.
2412 * unroll.c (biv_total_increment): Don't count the same
2413 biv increment several times.
2414 (loop_iterations) [GENERAL_INDUCT]: Likewise.
2416 2003-09-27 Graham Stott <graham.stott@btinternet.com>
2418 * unroll.c (loop_interations)[GT]: Add missing break.
2420 2003-09-27 Kelley Cook <kcook@gcc.gnu.org>
2422 * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
2423 config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
2424 config/dbxelf.h, config/elfos.h, config/fp-bit.h,
2425 config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
2426 config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
2427 config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
2428 config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
2429 config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
2430 config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
2431 config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
2432 config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
2433 config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
2434 config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
2435 config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
2436 config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
2437 config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
2438 config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
2439 config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
2440 config/alpha/xm-vms.h, config/arc/arc-modes.def,
2441 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
2442 config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
2443 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
2444 config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
2445 config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
2446 config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
2447 config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
2448 config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
2449 config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
2450 config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
2451 config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
2452 config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
2453 config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
2454 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
2455 config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
2456 config/i960/i960-c.c, config/i960/i960-coff.h,
2457 config/i960/i960-modes.def, config/i960/i960-protos.h,
2458 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
2459 config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
2460 config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2461 config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
2462 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
2463 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
2464 config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
2465 config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
2466 config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
2467 config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
2468 config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
2469 config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
2470 config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
2471 config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
2472 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
2473 config/mcore/mcore-protos.h, config/mcore/mcore.c,
2474 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
2475 config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
2476 config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
2477 config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
2478 config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
2479 config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
2480 config/mips/vr.h, config/mn10300/linux.h,
2481 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
2482 config/mn10300/mn10300.h, config/mn10300/mn10300.md,
2483 config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
2484 config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
2485 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
2486 config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
2487 config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
2488 config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
2489 config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
2490 config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
2491 config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
2492 config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
2493 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
2494 config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
2495 config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
2496 config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
2497 fixinc/fixinc.svr4: GNU CC -> GCC.
2499 2003-09-26 Loren James Rittle <ljrittle@acm.org>
2501 * objc/objc-act.c (tm_p.h): Tweak order.
2502 * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
2504 2003-09-26 Nathanael Nerode <neroden@gcc.gnu.org>
2506 * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
2507 Include t-slibgcc-elf-ver and t-linux in tmake_file.
2508 * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
2510 * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
2512 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
2513 sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
2515 * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
2517 2003-09-26 Loren James Rittle <ljrittle@acm.org>
2519 * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
2520 * objc/objc-act.c (tm_p.h): Include.
2522 2003-09-26 Per Bothner <pbothner@apple.com>
2524 * dbxout.c (dbxout_typedefs): Output typedefs in forward order.
2525 No longer any need to reverse by recursion.
2527 2003-09-26 Roger Sayle <roger@eyesopen.com>
2528 Richard Henderson <rth@redhat.com>
2530 PR optimization/11741
2531 * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
2532 appropriate set to match that in hash_scan_insn. Fall back to
2533 the original copy method, if we can't validate changing insn.
2534 (pre_delete): Only delete instructions that have a single_set,
2535 instead of aborting when we encounter an PARALLEL insn with more
2538 2003-09-26 Andreas Krebbel <krebbel1@de.ibm.com>
2540 * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
2541 ("builtin_longjmp"): Insn deleted.
2542 ("save_stack_nonlocal"): Save literal pool base pointer behind
2543 backchain and stack pointer.
2544 ("restore_stack_nonlocal"): Restore literal pool base pointer.
2545 * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
2546 the stack save area for the nonlocal goto case.
2548 2003-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2551 * pa.c (output_bvb): Fix typo.
2553 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
2555 * expmed.c (store_bit_field): Don't search for an integer mode
2556 unless we need the result.
2558 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
2560 * expr.c (emit_move_insn_1): If there is no move pattern for the
2561 original mode, try using a pattern for the corresponding integer mode.
2563 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
2566 * combine.c (if_then_else_cond): Tighten mode check.
2568 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2570 * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
2571 'struct _cpp_strbuf'.
2573 * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2574 config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
2575 config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
2576 config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
2577 config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
2578 config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
2579 config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
2580 config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
2581 config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
2582 "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
2583 * config/i386/i386-aout.h, config/i386/i386-coff.h,
2584 config/i386/i386-interix.h, config/i386/i386-interix3.h,
2585 config/i386/i386-modes.def, config/i386/i386-protos.h,
2586 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
2587 config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
2588 config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
2589 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
2590 config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
2591 "GNU compiler" -> GCC.
2592 * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
2593 config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
2594 config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
2595 config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
2596 config/i386/freebsd-aout.h, config/i386/freebsd.h,
2597 config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
2599 2003-09-25 Kelley Cook <kelleycook@wideopenwest.com>
2601 * cgraph.c (dump_cgraph): Don't output newline before dump. Add in
2602 "local" to the callgraph dump. Output "after inlining" earlier.
2603 * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
2604 callgraph dumps. Correct misspellings.
2605 (cgraph_decide_inlining): Output number of insns before inlining.
2606 Output the calling function into which a function is inlined.
2607 (cgraph_decide_small_functions): Format dump file like always_inline.
2609 2003-09-25 Loren James Rittle <ljrittle@acm.org>
2611 * config/i386/i386.h (ix86_return_in_memory): Add prototype.
2613 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
2615 * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
2616 FPR slots in the save area.
2617 (s390_emit_epilogue): Likewise.
2619 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
2621 * cgraph.h (cgraph_remove_edge): Declare.
2622 * cgraph.c (cgraph_remove_edge): Make extern.
2623 * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
2624 instead of cgraph_remove_call.
2626 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
2628 * objc/objc-act.c (gen_declaration_1): Fix printf format.
2630 2003-09-25 Richard Earnshaw <rearnsha@arm.com>
2632 * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
2635 2003-09-25 Ziemowit Laski <zlaski@apple.com>
2637 * config/darwin-protos.h (objc_image_info_section):
2640 2003-09-25 Ziemowit Laski <zlaski@apple.com>
2642 * Makefile.in (stub-objc.o): Depend on $(GGC_H).
2644 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2646 * config.gcc: Get rid of more gratuitious 'x'es. Actually allow
2647 tsc701 as a --with-cpu, --with-tune setting for sparc.
2649 2003-09-25 Ziemowit Laski <zlaski@apple.com>
2651 * c-parse.in (objc_try_stmt): Do not specify a %type.
2653 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2655 * config.gcc: New 'widely ported system' clause for rtems.
2656 Set thread file there, not in individual clauses.
2658 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
2661 * config/mips/mips.c (mips_va_arg): Handle arguments that must be
2662 passed on the stack.
2664 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
2666 * config.gcc (widely ported systems section): Mostly alphabetize
2667 by system. Comment the case where we can't.
2668 * config.gcc (widely ported systems section): Reindent and clean up.
2670 * config.gcc: Remove some unnecessary uses of 'x' in case statements.
2671 Actually allow ep9312 as an arm --with-arch setting.
2673 * config.gcc (*-hpux11): Disable fixproto.
2675 2003-09-24 Phil Edwards <phil@codesourcery.com>
2678 * gcc/cppfiles.c (pch_open_file): Return based on combined
2679 result of all files.
2680 (validate_pch): Return validate flag for current file.
2682 2003-09-24 Roger Sayle <roger@eyesopen.com>
2685 * fold-const.c (tree_swap_operands_p): Only reorder operands when
2686 one of the operands is constant.
2688 2003-09-24 Ziemowit Laski <zlaski@apple.com>
2690 MERGE OF objc-improvements-branch into MAINLINE:
2691 * Makefile.in (C_OBJS): Add in stub-objc.o.
2692 (c-parse.y): Change sed demarcations to begin with '@@'.
2693 (stub-objc.o): New rule.
2694 * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
2695 flag_replace_objc_classes): New flags.
2696 * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
2697 RID_AT_SYNCHRONIZED): New keywords.
2698 (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
2699 flag_replace_objc_classes): New flags.
2700 (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
2701 objc_comptypes, objc_message_selector, lookup_objc_ivar,
2702 get_current_scope, objc_mark_locals_volatile): New prototypes,
2703 some moved from c-tree.h.
2704 * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
2705 (finish_decl): Adjust where objc_check_decl() gets called.
2706 * c-lang.c (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
2707 objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
2708 * c-opts.c (c_common_handle_option): Add handling for flag_nil_receivers,
2709 flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
2710 * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
2711 '@@end_ifc', respectively.
2712 (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
2713 (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
2714 objc_finally_block): New rules.
2715 (component_decl_list2): Clean up semantic action for @defs construct.
2716 (component_decl, c99_block_start): Remove call to add_objc_decls().
2717 (poplevel): Add call to objc_clear_super_receiver().
2718 (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
2720 (classdef, methodprotolist): Clean up/simplify.
2721 (methodprotolist2): Eliminate.
2722 (methodproto): Call add_method() instead of add_class_method() and
2723 add_instance_method().
2724 (receiver): Add TYPENAME production.
2725 (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
2726 (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
2728 * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
2729 objc_comptypes, objc_message_selector)
2730 * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
2731 struct and pointer types.
2732 (build_c_cast): Do not discard ObjC protocol qualifiers.
2733 (convert_for_assignment): Cache result of comp_target_types() instead
2734 of calling it more than once.
2735 * c.opt (fnext-runtime): Update description string.
2736 (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
2737 New ObjC/ObjC++-specific flags.
2738 * function.h (GCC_FUNCTION_H): Header guard.
2739 * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
2740 * stub-objc.c: New file, to be used to satisfy references to ObjC
2741 functions by the C and C++ front-ends.
2742 * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
2743 * config/darwin.h (FUNCTION): Add in_objc_image_info.
2744 (SECTION_FUNCTION): Add objc_image_info_section.
2745 * doc/invoke.texi: Link to GCC web site for Objective-C information.
2746 (-fconstant-string-class): Update documentation.
2747 (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
2748 -fzero-link): New documentation.
2749 * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
2751 * objc/lang-specs.h (@objective-c-header): Fix -E spec.
2752 * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
2753 throughout; provide casts for return values from memory allocation
2754 functions (xmalloc, alloca, ggc_alloc, etc.).
2755 (OBJC_VOID_AT_END): New macro.
2756 (rtl.h): Do not #include any more.
2757 (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
2758 (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
2759 TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
2760 TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
2761 TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
2762 (struct val_stack, catch_count_stack, exc_binding_stack, val_stack_push,
2763 val_stack_pop): New.
2764 (objc_check_decl): Fix precondition for error message, along with
2766 (lookup_and_install_protocols): Remove nonexistent protocols from
2767 protocol list instead of returning error_mark_node.
2768 (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
2769 (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
2770 (synth_module_prologue): General clean-up; construct NeXT-specific
2771 runtime API prototypes if needed.
2772 (build_string_class_template): Remove.
2773 (check_string_class_template, string_layout_checked): New.
2774 (build_objc_string_object): Generalize to work with
2775 -fconstant-string-class.
2776 (build_objc_symtab_template): Fix layout for the NeXT runtime.
2777 (build_metadata_decl): New.
2778 (forward_declare_categories): Call build_metadata_decl() instead of
2779 create_builtin_decl() et al.
2780 (build_module_descriptor): Use OBJC_VOID_AT_END instead of
2782 (build_selector_reference_decl, build_class_reference_decl,
2783 build_objc_string_decl): Do not set TREE_READONLY.
2784 (get_proto_encoding): Do not call hack_method_prototype().
2785 (get_class_reference): Add failure mode for invalid class names;
2786 support -fzero-link; defer if in an ObjC++ template declaration.
2787 (objc_declare_alias, objc_declare_class): Fix up duplicate name
2788 lookup; check for global scope if in ObjC++.
2789 (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
2790 RECORD_TYPE, IDENTIFIER_NODE, etc.)
2791 (objc_is_id): Removed.
2792 (objc_is_object_ptr): New function.
2793 (get_class_ivars_from_name): New function, used for @defs construct.
2794 (get_class_ivars): Add option to return raw ivars; create a
2795 ClASS_OWN_IVARS list for each class as needed.
2796 (objc_enter_block, objc_exit_block, objc_declare_variable,
2797 objc_build_throw_stmt, val_stack_push, val_stack_pop,
2798 objc_build_try_enter_fragment, objc_build_extract_expr,
2799 objc_build_try_exit_fragment, objc_build_extract_fragment,
2800 objc_build_try_prologue, objc_build_try_epilogue,
2801 objc_build_catch_stmt, objc_build_catch_epilogue,
2802 objc_build_finally_prologue, objc_build_finally_epilogue,
2803 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
2804 objc_build_synchronized_epilogue, build_objc_exception_stuff):
2806 (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
2808 (build_private_template): Fix up calls to get_class_ivars().
2809 (offset_is_register, forwarding_offset): Remove.
2810 (objc_method_parm_type, objc_encoded_type_size): New functions.
2811 (encode_method_prototype): Simplify to no longer depend on
2812 back-end information.
2813 (build_tmp_function_decl_xxx, build_tmp_function_decl,
2814 hack_method_prototype): Removed.
2815 (generate_protocol_references): Remove calls to
2816 build_tmp_function_decl().
2817 (generate_protocols): Adjust calls to encode_method_prototype().
2818 (build_class_template): Generate sel_id' and 'gc_object_type' fields
2819 for the NeXT runtime.
2820 (synth_forward_declarations): Call build_metadata_decl().
2821 (check_ivars): Check that the number of ivars matches also.
2822 (build_super_template): Modify super_type directly; disable debugging
2823 output while generating decl.
2824 (build_ivar_list_initializer): Skip list elements that are not
2826 (ivar_list_length): New function.
2827 (generate_ivar_lists): Call ivar_list_length() instead of list_length()
2828 and encode_method_prototype() instead of encode_method_def().
2829 (build_shared_structure_initializer): Generate 'sel_id' field for
2831 (generate_category): Do not set TREE_USED.
2832 (build_keyword_selector): Ditto; transform into a function argument
2834 (get_arg_type_list): If there are no user-specified arguments, use
2835 '...'; use OBJC_VOID_AT_END.
2836 (check_duplicates): Add a parameter indicating whether methods or
2837 selectors are being checked.
2838 (receiver_is_class_object): Add parameters indicating whether
2839 receiver is 'self' or 'super'; robustify.
2840 (build_message_expr): Defer call to finish_message_expr() if
2841 inside an ObjC++ template.
2842 (lookup_method_in_hash_lists): New function.
2843 (finish_message_expr): Complete rewrite/fix.
2844 (build_objc_method_call): Ditto; factor out commonalities between
2845 the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
2846 messenger variants on the NeXT.
2847 (lookup_instance_method_static, lookup_class_method_static):
2848 Fold into a single lookup_method_static() function with an
2849 additional parameter.
2850 (add_class_method, add_instance_method): Fold into a single
2851 add_method() function with an additional parameter.
2852 (add_category): Make duplicate categories a hard error in ObjC++.
2853 (add_instance_variable): Properly handle unnamed ivars, arrays of
2854 zero or no size and bitfields. In ObjC++, check for nontrivial
2855 C++ class instances.
2856 (is_public): Allow C functions to access non-@public ivars, with
2858 (start_class): Move common initializations to
2859 synth_module_prologue(); check for global scope if in ObjC++.
2860 (continue_class): Fix calls to finish_struct().
2861 (objc_declare_protocols, start_protocol): Check for global scope
2863 (encode_pointer): Encode 'BOOL *' specially on the NeXT.
2864 (encode_aggregate_within): Rewrite to properly distinguish
2865 struct tags from typedefs in both ObjC and ObjC++.
2866 (encode_bitfield, encode_complete_bitfield): Remove.
2867 (encode_next_bitfield, encode_gnu_bitfield): New functions.
2868 (encode_field_decl): Call encode_next_bitfield() or
2869 encode_gnu_bitfield() as needed.
2870 (synth_self_and_ucmd_args): New function.
2871 (start_method_def): Use it.
2872 (objc_types_are_equivalent): New function.
2873 (comp_proto_with_proto): Use it instead of comptypes(), since
2875 (really_start_method): Use lookup_method_static() instead of
2876 lookup_class_method_static() and lookup_instance_method_static();
2877 Emit 'extern "C"' if in ObjC++ mode.
2878 (add_objc_decls): Removed.
2879 (UOBJC_SUPER_scope): New variable.
2880 (get_super_receiver): Move construction of 'super' from
2881 add_objc_decls(); remove dependency on struct objc_class.
2882 (encode_method_def): Removed; encode_method_prototype() is
2884 (objc_clear_super_receiver): New function.
2885 (objc_expand_function_end): Do not do anything for ordinary
2887 (finish_method_def): Mark ObjC methods as un-inlinable.
2888 (gen_declaration_1): Emit widths of bitfields.
2889 (finish_objc): Call generate_objc_image_info() if needed;
2890 use check_duplicates() when checking for selector duplicates.
2891 (generate_objc_image_info): New function.
2892 * objc/objc-act.h (add_instance_method, add_class_method,
2893 get_class_ivars): Remove prototypes.
2894 (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
2895 objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
2896 objc_build_catch_stmt, objc_build_catch_epilogue,
2897 objc_build_finally_prologue, objc_build_finally_epilogue,
2898 add_method, get_class_ivars_from_name): New prototypes.
2899 (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
2900 (TYPE_PROTOCOL_LIST): Robustify to distinguish from
2901 TRANSLATION_UNIT_DECLs.
2902 (OBJC_TYPE_NAME): New.
2903 (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
2905 (IS_SUPER): Robustify.
2906 (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
2907 umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
2908 objc_exception_try_enter_decl, objc_exception_try_exit_decl,
2909 objc_exception_match_decl, objc_exception_throw_decl,
2910 objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
2911 objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
2912 objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
2913 objc_catch_type): New ObjC/ObjC++ roots.
2914 * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
2915 ObjC/ObjC++ tree node codes.
2917 2003-09-24 Alexandre Oliva <aoliva@redhat.com>
2919 * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
2920 code path that calls a handler.
2922 2003-09-24 Nathanael Nerode <neroden@gcc.gnu.org>
2924 * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
2927 * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
2928 the section giving $with_cpu defaults by target.
2930 * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
2931 arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
2932 rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
2933 rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
2934 rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
2935 i[34567]86-pc-msdosdjgpp*): Disable fixproto.
2937 2003-09-24 David Edelsohn <edelsohn@gnu.org>
2939 * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
2940 together. Protect load string instruction with TARGET_STRING.
2941 (movti_string): Collapse case 1 and 2 together.
2943 2003-09-24 Nathan Sidwell <nathan@codesourcery.com>
2945 * c-common.c (c_common_type_for_mode): Check for VOIDmode.
2947 2003-09-24 Richard Earnshaw <rearnsha@arm.com>
2949 * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
2952 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
2954 * config.gcc: Move use_fixproto=no from generic vxworks clause to
2957 * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
2958 (accidentally missed in last pass).
2960 2003-09-23 Andrew Pinski <apinski@apple.com>
2963 * configure: Regenerate.
2965 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
2967 * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
2968 missed in last pass).
2970 2003-09-23 Alexandre Oliva <aoliva@redhat.com>
2972 * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
2975 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
2977 * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
2979 * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
2980 powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
2981 powerpcle-*-eabi*): Disable fixproto.
2983 * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
2984 specific FreeBSD clauses.
2985 * config.gcc: Move use_fixproto=no from generic NetBSD clause to
2986 specific NetBSD clauses.
2987 * config.gcc: Move use_fixproto=no from generic OpenBSD clause
2988 to specific OpenBSD clauses.
2990 2003-09-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2992 * pa.c (hppa_expand_prologue): Do pic register save in frame marker
2993 without adding a frame note.
2994 * pa.md (allocate_stack): Save pic register in new frame marker when
2995 generating pic code.
2997 2003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
2999 * cgraphunit.c (cgraph_expand_all_functions): Renamed from
3000 cgraph_expand_functions.
3002 2003-09-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3004 * Makefile.in (gnucompare*): Merge into ...
3005 (slowcompare*): ... here.
3006 (fastcompare*): New targets.
3007 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
3008 other "fast" cmp programs.
3009 * configure: Regenerate.
3011 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3013 * targhooks.c: Include output.h.
3014 * Makefile.in (targhooks.o): Add output.h to dependency list.
3016 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3018 * config.host: Removed superfluous newline.
3020 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
3022 * config.gcc: Use ${target}, not $machine.
3023 * configure.in: Don't set $machine.
3024 * configure: Regenerate.
3026 2003-09-23 Geoffrey Keating <geoffk@apple.com>
3028 * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
3030 * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
3031 pass zero-size arrays by reference.
3032 (rs6000_va_arg): Likewise.
3034 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
3036 * config.gcc: Set use_fixproto=no in each specific *-gnu*
3037 configuration, rather than the generic one.
3039 2003-09-23 Richard Henderson <rth@redhat.com>
3041 * tree-inline.c (remap_save_expr): Map new save_expr to identity
3042 rather than to error_mark_node.
3044 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3046 * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
3048 * configure: Regenerate.
3049 * config.in: Likewise.
3050 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
3051 HAVE_GAS_SHF_MERGE value.
3052 * varasm.c (mergeable_string_section): Likewise.
3053 (mergeable_constant_section): Likewise.
3055 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3057 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
3060 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3062 * target.h (struct gcc_target): New member external_libcall.
3063 * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
3064 (TARGET_ASM_OUT): Use it.
3065 * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
3066 * targhooks.c: Convert to ISO C 90.
3067 (default_external_libcall): New function.
3068 * targhooks.h (default_external_libcall): Declare.
3069 * varasm.c (assemble_external_libcall): Use
3070 targetm.asm_out.external_libcall instead of
3071 ASM_OUTPUT_EXTERNAL_LIBCALL.
3072 * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
3073 (mips_output_external_libcall): Declare.
3074 * config/mips/mips.c (mips_output_external_libcall): Change
3076 Change to match TARGET_ASM_EXTERNAL_LIBCALL.
3077 Only operate for O32 ABI.
3078 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
3079 instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
3080 * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
3081 superceded by TARGET_ASM_EXTERNAL_LIBCALL.
3083 2003-09-22 Nathnael Nerode <neroden@gcc.gnu.org>
3085 * config.gcc: Do per-target disabling of fixproto here in clauses,
3086 not in t- fragments.
3087 * configure.in: Adjust to set STMP_FIXPROTO correctly.
3088 * configure: Regenerate.
3089 * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
3090 config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
3091 t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
3092 xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
3093 * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
3094 t-interix, t-linux-aout: Delete files consisting only of
3095 setting of STMP_FIXPROTO.
3097 * config.host: Allow unknown hosts (not targets). Allow
3098 ns32k-*-netbsdelf* as a host (not a target). Remove redundant
3099 empty clauses. Remove useless obsolete-configuration clause.
3100 Prune unsupported configuration list. Collapse identical
3101 clauses for closely related systems. Rewrite comment for
3102 unsupported hosts list. Reorganize a little.
3104 2003-09-22 Richard Henderson <rth@redhat.com>
3106 * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
3109 2003-09-22 David Edelsohn <edelsohn@gnu.org>
3110 Hartmut Penner <hpenner@de.ibm.com>
3111 Segher Boessenkool <boessen@de.ibm.com>
3113 * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
3114 (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
3115 (rs6000_split_altivec_in_gprs): Rename to ...
3116 (rs6000_split_multireg_move): Add support for update addressing.
3117 * config/rs6000/rs6000-protos.h: Same.
3118 * config/rs6000/altivec.md: Same.
3119 * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
3121 (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
3122 (movti_power): Use new splitter for multiple GPRs.
3123 (movti_string): Same.
3124 (movti_ppc64): Same.
3126 2003-09-22 Bob Wilson <bob.wilson@acm.org>
3128 * config/xtensa/xtensa-protos.h: Convert to ISO C90.
3129 * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes.
3131 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
3133 * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
3134 (andsi3): Set attr cc to set_zn when using shifts or adds.
3136 2003-09-22 Bernardo Innocenti <bernie@develer.com>
3138 * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
3140 2003-09-22 Bernardo Innocenti <bernie@develer.com>
3142 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
3143 Resurrect -mrtd option.
3145 2003-09-21 Andrew Pinski <pinskia@physics.uc.edu>
3148 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
3149 mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
3151 2003-09-22 Olivier Hainque <hainque@act-europe.fr>
3154 * reg-stack.c (convert_regs_1): Purge possible dead eh edges
3155 after potential deletion of trapping insn. Avoids later ICE
3156 from call to fixup_abnormal_edges.
3157 (convert_regs_2): Stack the current block successors before
3158 processing this block, that is, before the potential deletion of
3159 dead edges by convert_regs_1, because these edges have been used
3160 to initialize the predecessors count.
3162 2003-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
3164 * real.c: Fix several nits in the head comment.
3166 2003-09-21 Richard Henderson <rth@redhat.com>
3168 * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
3169 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
3170 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
3171 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
3172 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
3174 2003-09-21 Richard Henderson <rth@redhat.com>
3176 * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
3177 (TREE_FILENAME, TREE_LINENO): Likewise.
3178 (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
3179 (TREE_LOCUS_SET_P): New.
3180 * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
3181 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
3182 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
3183 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
3184 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
3186 2003-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
3188 * config/vax/vax-protos.h: Convert to ISO C90.
3189 * config/vax/vax.c: Convert to ISO C90.
3191 2003-09-21 Graham Stott <grahams@btinternet.com>
3194 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
3196 2003-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
3199 * reorg.c (stop_search_p): Return 1 for insns that can
3202 2003-09-20 Richard Henderson <rth@redhat.com>
3204 * c-format.c (gcc_diag_char_table): Add %J.
3205 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
3206 (check_format_types): Fix wanted_type name lookup.
3207 (init_dynamic_diag_info): Setup %J.
3208 * diagnostic.c (text_specifies_location): Implement %J.
3209 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
3210 dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
3211 tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
3212 config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
3213 config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
3215 * tree-inline.c: Include intl.h
3216 (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
3217 * Makefile.in (tree-inline.o): Update.
3219 2003-09-20 Roger Sayle <roger@eyesopen.com>
3221 * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
3222 transformation of a>=0 into (unsigned)a<0x80000000.
3224 2003-09-20 Andrew Pinski <apinski@apple.com>
3226 * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
3228 2003-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
3230 * Makefile.in: Don't set (unused) DLLTOOL.
3232 * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
3233 Remove obsolete references to ENQUIRE.
3235 2003-09-19 Nathanael Nerode <neroden@gcc.gnu.org>
3237 * configure.in: Remove --with-elf, which doesn't work.
3238 * configure: Regenerate.
3239 * config.gcc: Remove references to $elf, which does nothing.
3241 * config/i386/xm-vsta.h: Remove xm-file believed useless.
3242 * config.build (i386-vsta): Remove reference to it.
3243 * config.host (i386-vsta): Remove reference to it.
3245 2003-09-19 Phil Edwards <phil@codesourcery.com>
3247 * doc/install.texi: Document the multiple testsuite options.
3249 2003-09-19 Gerald Pfeifer <gerald@pfeifer.com>
3251 * doc/install.texi (Specific): Add the specific versions of GCC
3252 where support for FreeBSD 1, HP-UX version 9 and older, and AIX
3253 version 3 and older was discontinued.
3255 2003-09-19 Joel Sherrill <joel@oarcorp.com>
3257 * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
3260 2003-09-19 Bernardo Innocenti <bernie@develer.com>
3262 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
3263 for -m68030, -m68020-60 and -m68020-40.
3264 * config/m68k/m68k.h (TARGET_68030): New target flag.
3265 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
3266 TARGET_REGPARM): Remove.
3267 * config/m68k/m68k.h: Regroup and renumber target flags.
3268 * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
3269 * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
3270 * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
3271 * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
3272 * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
3274 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3276 * config/m68k/t-rtems (m68k-*-rtems*): New.
3277 * config.gcc: Use config/m68k/t-rtems.
3279 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3281 * config/mips/t-rtems: New.
3282 * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
3284 2003-09-19 Kelley Cook <kelleycook@wideopenwest.com>
3286 * cgraph.c: Fix typo in debugging output.
3288 2003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
3289 Eric Botcazou <ebotcazou@libertysurf.fr>
3292 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
3294 2003-09-18 Mike Stump <mrs@apple.com>
3296 * c-ppoutput.c (print): Use fileline typedef for field 'line'.
3297 (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
3298 cb_ident, cb_def_pragma): Use fileline typedef.
3299 * cpphash.h (struct cpp_reader): Likewise for field out.first_line.
3301 2003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
3303 * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
3304 total parm size if a parm has incomplete type.
3305 (gen_fastcall_suffix): Likewise.
3307 2003-09-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3309 * except.c (output_function_exception_table): Adjust last change
3310 to handle TYPE of INTEGER_CST.
3312 2003-09-18 Mark Mitchell <mark@codesourcery.com>
3315 * builtins.c (expand_builtin_apply): Use convert_memory_address
3316 before returning the value.
3318 * alias.c (find_base_value): Simplify use of
3319 convert_memory_address.
3320 (find_base_term): Likewise.
3321 * builtins.c (expand_builtin_stejmp_setup): Likewise.
3322 (expand_builtin_longjmp): Likewise.
3323 (expand_builtin_prefetch): Likewise.
3324 (get_memory_rtx): Likewise.
3325 (expand_builtin_return): Likewise.
3326 (expand_builtin_memcpy): Likewise.
3327 (expand_builtin_strncpy): Likewise.
3328 (expand_builtin_memset): Likewise.
3329 (expand_builtin_va_arg): Likewise.
3330 (expand_builtin_va_copy): Likewise.
3331 (expand_builtin_alloca): Likewise.
3332 * calls.c (expand_call): Likewise.
3333 * except.c (expand_builtin_extract_return_addr): Likewise.
3334 (expand_builtin_eh_return): Likewise.
3335 * explow.c (convert_memory_address): Define even when
3336 POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address
3337 is already in the right mode.
3338 * explow.c (memory_address): Simplify use of convert_memory_address.
3339 (probe_stack_range): Likewise.
3340 * expmed.c (make_tree): Likewise.
3341 * expr.c (emit_block_move_in_libcall): Likewise.
3342 (expand_assignment): Likewise.
3343 (expand_expr): Likewise.
3344 * function.c (assign_parms): Likewise.
3345 (expand_function_end): Likewise.
3346 * integrate.c (copy_rtx_and_substitute): Likewise.
3347 * stmt.c (expand_computed_goto): Likewise.
3349 2003-09-18 Roger Sayle <roger@eyesopen.com>
3351 * simplify-rtx.c (simplify_unary_operation): Only transform
3352 (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
3353 is -1. RTL "not" is a bit-wise not, "~", not a logical not "!".
3355 2003-09-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3358 * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
3360 2003-09-18 Roger Sayle <roger@eyesopen.com>
3362 * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
3363 PARITY_EXPR): Delete unused tree codes.
3364 * c-common.c (c_common_truthvalue_conversion): Delete references
3365 to FFS_EXPR and POPCOUNT_EXPR.
3366 * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
3367 (pp_c_expression): Likewise.
3368 * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
3369 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
3370 * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
3371 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to
3372 BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
3373 and long long variants.
3375 2003-09-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
3377 * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
3378 * c-pretty-print.c: Fix formatting.
3379 (pp_c_integer_constant): Append type annotation to literals. Tidy.
3380 (pp_c_type_specifier): Tidy.
3381 (pp_c_compound_literal): New function.
3382 (pp_c_initializer): Simplify..
3383 (pp_c_initializer_list): Likewise.
3384 (pp_c_brace_enclosed_initializer_list): New function.
3385 (pp_c_postfix_expression): Simplify.
3387 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
3389 * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
3390 one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
3392 2003-09-17 Richard Henderson <rth@redhat.com>
3394 * tree-optimize.c (tree_rest_of_compilation): Save and restore
3397 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
3399 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
3401 2003-09-17 Richard Henderson <rth@redhat.com>
3403 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
3405 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3407 * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
3408 * configure: Regenerate.
3410 2003-09-17 Mark Mitchell <mark@codesourcery.com>
3413 * dbxout.c (dbxout_init): Use a langhook to find builtin types.
3414 * langhooks-def.h (lhd_return_null_tree_v): New function.
3415 (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
3416 (LANG_HOOKS_DECLS): Add it to the intializer.
3417 * langhooks.c (lhd_return_null_tree_v): New function.
3418 * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
3420 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
3422 * configure.in: Quote gcc_config_arguments for configargs.h.
3423 * configure: Regenerated.
3424 * gccbug.in: Don't shell-expand gcc_config_arguments.
3426 2003-09-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
3429 * c-pretty-print.c (pp_c_floating_constant): Append
3430 type-annotation to floating constants.
3432 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3434 * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
3436 Use it for _MIPS_SIM.
3437 * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
3439 * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
3441 * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
3443 Fixes PR target/10190.
3445 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
3447 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
3448 to shared libraries.
3450 2003-09-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3452 PR optimization/11646
3453 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
3454 EDGE_ABNORMAL flag for EH edges.
3455 * toplev.c (rest_of_handle_cse): Delete unreachable blocks
3456 if dead edges were purged.
3458 2003-09-16 Bernardo Innocenti <bernie@develer.com>
3460 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
3461 * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
3462 * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
3463 * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
3465 2003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
3467 * cfgcleanup.c (label_is_jump_target_p): Correct use of table
3468 returned by tablejump_p.
3470 2003-09-16 Joel Brobecker <brobecker@gnat.com>
3472 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
3474 2003-09-16 Roger Sayle <roger@eyesopen.com>
3477 * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
3478 argument to be VOIDmode, taking the mode of the comparison from
3479 the operands. Only call simplify_relational_operation if we
3480 know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
3481 if comparison has a floating point result. Ensure that the
3482 result is always of the specified mode.
3483 (simplify_replace_rtx): Simplify call to simplify_gen_relational.
3484 (simplify_unary_operation): Ensure the correct mode and cmp_mode
3485 are always passed to simplify_gen_relational. Simplify NOT of
3486 comparison operator in any mode, not just BImode.
3487 (simplify_ternary_operation): Correct tests on the return value
3488 of simplify_relational_operation to use const_true_rtx, not
3489 const1_rtx. Abort if it ever returns a non-constant result.
3491 * cfgloopanal.c (count_strange_loop_iterations): Use the function
3492 simplify_relational_operation, not simplify_gen_relational, if
3493 we're only interested in constant comparisons and will ignore
3494 non-constant results.
3496 2003-09-16 Roger Sayle <roger@eyesopen.com>
3498 * fold-const.c (tree_swap_operands_p): New function to determine
3499 the prefered ordering of operands.
3500 (fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
3501 operands to commutative, comparison or ternary operators. Replace
3502 uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
3503 transformation of A ? B : C into !A ? C : B.
3505 2003-09-16 Jakub Jelinek <jakub@redhat.com>
3507 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3508 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3509 * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3510 * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3511 * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3512 * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3513 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3514 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3516 2003-09-16 Jason Merrill <jason@redhat.com>
3517 Jakub Jelinek <jakub@redhat.com>
3519 * c-common.c (handle_warn_unused_result_attribute): New function.
3520 (c_common_attribute_table): Add warn_unused_result.
3521 (c_expand_expr): Issue warning when result of inlined function
3522 with warn_unused_result attribute is ignored.
3523 * calls.c (expand_call): Issue warning when result of function
3524 with warn_unused_result attribute is ignored.
3525 * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
3526 * expr.c (expr_wfl_stack): Define.
3527 (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
3528 pass const0_rtx as target. Chain locations into expr_wfl_stack.
3529 * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
3530 bit if inlined function has warn_unused_result attribute.
3531 * input.h (expr_wfl_stack): Declare.
3532 * doc/extend.texi: Document warn_unused_result attribute.
3534 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
3536 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
3538 2003-09-15 Bob Wilson <bob.wilson@acm.org>
3540 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
3542 (call_insn_operand): For PIC, don't allow a direct call to a
3543 function in a different section than the current one.
3545 2003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
3547 * doc/invoke.texi (Warning Options): Add missing hyphen before
3548 "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
3549 Move "-Wold-style-definition" to the C-only section.
3550 Fix the ordering of the warning options.
3552 2003-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3553 Jeff Law <law@redhat.com>
3555 * gcse.c (remove_reachable_equiv_notes): New.
3556 replace_store_insn): Call it. Update antic list.
3557 (store_killed_in_insn): Take REG_EQUAL notes into account.
3558 (build_store_vectors, delete_store): Add parameter to
3559 replace_store_insn call.
3561 2003-09-15 Bob Wilson <bob.wilson@acm.org>
3563 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
3566 2003-09-15 Kazu Hirata <kazu@cs.umass.edu>
3568 * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
3569 (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
3570 * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
3572 * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
3574 * config/rs6000/rs6000.c (function_arg_padding): Likewise.
3575 * config/sparc/sparc.c (function_arg_padding): Likewise.
3577 2003-09-15 Vladimir Makarov <vmakarov@redhat.com>
3579 * haifa-sched.c (schedule_block): Use ready_remove_first instead
3580 of choose_ready for non-dfa insn scheduling.
3582 2003-09-15 Andreas Jaeger <aj@suse.de>
3583 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3585 * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
3586 * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
3587 * c-parse.in: Warn about old-style parameter definition.
3588 * c-common.c: Define warn_old_style_defintion.
3589 * c-common.h: Declare it.
3590 * c.opt: Add Wold-style-defintion.
3592 2003-09-15 Andreas Jaeger <aj@suse.de>
3594 * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
3595 * config/rs6000/rs6000.c: Likewise.
3597 2003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3599 PR optimization/10914
3600 * expr.h (get_condition, canonicalize_condition): Declaration changed.
3601 * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
3602 and canonicalize_condition calls.
3603 * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
3604 delete_null_pointer_checks): Ditto.
3605 * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
3606 * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
3607 * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
3608 (canonicalize_condition, get_condition): Allow to return comparisons
3609 of cc mode registers.
3610 * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
3611 cc mode registers comparison in condition.
3613 2003-09-12 Mark Mitchell <mark@codesourcery.com>
3615 * coverage.c (create_coverage): Do not call pushlevel/poplevel.
3616 * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
3618 * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
3620 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
3622 * combine.c (simplify_comparison): Convert
3623 (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
3624 (eq (and (lshiftrt X Y) 1) 0).
3626 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
3628 * alias.c: Follow spelling conventions.
3629 * cpphash.h: Likewise.
3630 * fold-const.c: Likewise.
3632 2003-09-14 Alexandre Oliva <aoliva@redhat.com>
3634 * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
3635 * c-lex.c (cb_line_change): Skip line changing whenever
3638 2003-09-14 Steven Bosscher <steven@gcc.gnu.org>
3640 * ra.c: Convert to ISO C90 prototypes.
3641 * ra-build.c: Likewise.
3642 * ra-colorize.c: Likewise.
3643 * ra-debug.c: Likewise.
3644 * ra-rewrite.c: Likewise.
3646 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
3648 * Makefile.in (%.dvi): Remove excess $(docdir).
3650 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
3652 * function.c (STACK_BYTES): Move definition to head of file.
3653 (assign_parms): Don't pass current_function_pretend_args_size
3654 directly to SETUP_INCOMING_VARARGS. For partial register arguments,
3655 round current_function_pretend_args_size up to STACK_BYTES. Skip any
3656 excess before laying out the argument.
3658 2003-09-14 Andreas Jaeger <aj@suse.de>
3660 * objc/objc-act.c: Convert to ISO C90 prototypes.
3661 * objc/objc-act.h: Likewise.
3663 2003-09-14 Olaf Hering <olh@suse.de>
3665 * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
3667 2003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
3670 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
3671 as they already are done in config/m68k/m68k.h.
3672 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
3674 * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
3675 (machopic_output_stub): Only generate pic base symbols when using pic
3676 and generate them in the form L00000000$spb.
3678 2003-09-13 Richard Henderson <rth@redhat.com>
3680 * cgraphunit.c (cgraph_assemble_pending_functions): Export.
3681 (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
3684 2003-09-12 Dale Johannesen <dalej@apple.com>
3686 * config/rs6000/rs6000.c: Fix typos in previous.
3688 2003-09-12 Ziemowit Laski <zlaski@apple.com>
3690 * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
3691 when allocating pp->buffer.
3693 2003-09-12 Geoffrey Keating <geoffk@apple.com>
3695 * config/darwin.c (machopic_select_rtx_section): Use
3696 const_data_section for things that might require relocation.
3698 2003-09-12 H.J. Lu <hongjiu.lu@intel.com>
3701 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
3703 2003-09-12 Bob Wilson <bob.wilson@acm.org>
3705 * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
3706 * config/xtensa/linux.h (ASM_SPEC): Likewise.
3707 * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
3708 -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
3709 -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
3710 -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
3711 -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
3712 -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
3713 and redefine corresponding TARGET_* macros with constants from the
3714 xtensa-config.h header.
3715 * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
3716 for the options listed above.
3718 2003-09-12 Dale Johannesen <dalej@apple.com>
3720 * config/rs6000/rs6000-protos.h: Use C90 prototypes.
3721 * config/rs6000/rs6000-c.c: Ditto.
3722 * config/rs6000/rs6000.c: Ditto.
3723 * config/rs6000/ sysv4.h: Ditto.
3725 2003-09-12 Chris Lattner <sabre@nondot.org>
3727 * loop.c: Move comments describing BIV's and GIV's to top of file
3729 2003-09-12 Roger Sayle <roger@eyesopen.com>
3731 PR optimization/8967
3732 * alias.c (write_dependence_p): Modify to take an additional constp
3733 argument that controls whether the UNCHANGING_RTX_P flags are used.
3734 (anti_dependence, output_dependence): Adjust write_dependence_p
3735 callers to pass this additional argument, to return the same result.
3736 (unchanging_anti_dependence): New variant of anti_dependence that
3737 ignores the UNCHANGING_RTX_P property on memory references.
3738 * rtl.h (unchaning_anti_dependence): Prototype here.
3739 * flow.c (init_propagate_block): Place fake constant mem writes on
3740 the mem_set_list so that dead writes to const variables are deleted.
3741 (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
3742 (mark_used_regs): Likewise.
3744 2003-09-12 Richard Sandiford <rsandifo@redhat.com>
3746 * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
3747 (mcore_secondary_reload_class): Declare.
3748 (mcore_output_inline_const_forced): Remove.
3749 * config/mcore/mcore.md (movsi): Remove the code that forced
3750 non-inlineable constants into a register if the target was r15
3751 or the stack pointer. Remove constant restrictions from the main
3752 define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
3753 of an r <- P alternative. Remove fallback define_insn for reload.
3754 (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
3755 define_insn. Use mcore_output_move in the remaining define_insn.
3756 Adjust condition and constraints in the way as for movsi.
3757 (movdi): Always split unacceptable constants into two. Use
3758 simplify_gen_subreg instead of operand_subword{,_force}.
3759 * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
3760 (mcore_output_move): Support HImode and QImode moves as well.
3761 (mcore_m15_operand_p): New function.
3762 (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
3763 (mcore_secondary_reload_class): New function.
3764 * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
3765 terms of mcore_secondary_reload_class.
3767 2003-09-11 Mike Stump <mrs@apple.com>
3769 * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
3771 2003-09-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3773 * builtins.c (fold_builtin_logarithm): if N can't be truncated to
3774 MODE exactly, then only convert logN(N) -> 1.0 if
3775 flag_unsafe_math_optimizations is set.
3777 * builtins.c (builtin_dconsts_init, dconstpi, dconste,
3778 init_builtin_dconsts): Delete.
3779 * emit-rtl.c (dconstpi, dconste): Define.
3780 (init_emit_once): Initialize dconstpi & dconste.
3781 * real.h (dconstpi, dconste): Declare.
3783 2003-09-11 Alexandre Oliva <aoliva@redhat.com>
3786 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
3787 for ultimate origin even if block is abstract.
3789 2003-09-11 Roger Sayle <roger@eyesopen.com>
3791 * combine.c (combine_simplify_rtx): Move several NOT and NEG
3792 optimizations from here...
3793 * simplify-rtx.c (simplify_unary_operation): to here. Recursively
3794 simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
3796 2003-09-11 Richard Henderson <rth@redhat.com>
3798 * cgraphunit.c (cgraph_finalize_function): Add nested arg.
3799 Tweek tests for function already generated.
3800 (cgraph_expand_function): Don't double announce in !unit-at-a-time.
3801 * cgraph.h (cgraph_finalize_function): Update for extra arg.
3802 * c-decl.c (finish_function): Likewise.
3804 2003-09-10 Joe Buck <jbuck@welsh-buck.org>
3806 * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
3808 2003-09-10 Jerry Quinn <jlquinn@optonline.net>
3810 * real.c: Update URL to VAX floating point docs.
3811 (decode_vax_d): Extract 8 exponent bits instead of 7.
3813 2003-09-10 Ian Lance Taylor <ian@wasabisystems.com>
3815 * combine.c (force_to_mode): Set fuller_mask based only on mask,
3818 2003-09-11 Jan Hubicka <jh@suse.cz>
3820 * c-objc-common.c (c_cannot_inline_tree_fn): Warn
3821 on why function is not inlinable; do not check
3823 (inline_forbidden_p): Move to...
3824 * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
3825 deal with alloca, longjmp.
3826 (inline_forbidden_p): New static function.
3827 (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
3828 find_builtin_longjmp_call): Kill.
3830 2003-09-10 Richard Henderson <rth@redhat.com>
3832 * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
3833 * cgraphunit.c: Update to match.
3834 (record_call_1): Rearrange. Call lang hook for language nodes.
3835 (cgraph_analyze_function): Don't call lower_function.
3836 * langhooks.h (struct lang_hooks_for_callgraph): Replace
3837 lower_function with analyze_expr.
3838 * langhooks-def.h: Update to match.
3839 * langhooks.c (lhd_callgraph_analyze_expr): New.
3841 2003-09-10 Martin Husemann <martin@duskware.de>
3844 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
3845 constants greater than 63.
3846 * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
3847 against constants greater than 31.
3848 (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
3849 constants greater than 63.
3851 2003-09-09 Richard Henderson <rth@redhat.com>
3853 * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
3854 * cgraph.h (cgraph_finalize_function): Update.
3855 * c-decl.c (finish_function): Update.
3857 2003-09-09 Devang Patel <dpatel@apple.com>
3859 * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
3860 * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
3862 2003-09-09 Eric Christopher <echristo@redhat.com>
3864 * configure.in: Change usage of 'head' to 'sed 1q'.
3865 * configure: Regenerate.
3867 2003-09-09 Richard Henderson <rth@redhat.com>
3869 * except.c: Include cgraph.h.
3870 (output_function_exception_table): Invoke
3871 cgraph_varpool_mark_needed_node.
3872 * Makefile.in (except.o): Update.
3874 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
3876 * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
3877 and use it throughout.
3879 2003-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3881 * builtins.c (real_dconstp, fold_builtin_logarithm,
3882 fold_builtin_exponent): New, split out from fold_builtin. Also
3883 generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
3884 * emit-rtl.c (dconst3, dconst10, dconstthird): New.
3885 (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
3886 of hardcoded array size.
3887 * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
3888 (tree_expr_nonnegative_p): Likewise.
3889 * real.h (dconst3, dconst10, dconstthird): New.
3891 2003-09-09 Jan Hubicka <jh@suse.cz>
3893 * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
3895 (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
3898 2003-09-09 Roger Sayle <roger@eyesopen.com>
3900 * builtins.c (fold_builtin_cabs): Protect the complex argument
3901 against multiple evaluation when optimizing cabs* into sqrt*.
3903 2003-09-09 Jan Hubicka <jh@suse.cz>
3905 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
3907 2003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
3909 * Makefile.in: Revert yesterday's change.
3911 2003-09-08 Bernardo Innocenti <bernie@develer.com>
3912 Peter Barada <peter@baradas.org>
3914 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
3915 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
3916 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
3917 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
3918 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
3919 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
3920 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
3921 (m68k_compute_frame_layout): New function.
3922 (m68k_initial_elimination_offset): New function.
3923 (m68k_output_function_prologue): ColdFire-specific movem handling.
3924 (m68k_output_function_epilogue): Likewise.
3925 * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
3926 (ARG_POINTER_REGNUM): Add new definition.
3927 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
3928 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
3929 (CAN_ELIMINATE): Likewise.
3930 (INITIAL_ELIMINATION_OFFSET): Likewise.
3932 2003-09-08 Bernardo Innocenti <bernie@develer.com>
3934 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
3935 by removing redundant variable cfa_store_offset.
3937 2003-09-08 Mark Mitchell <mark@codesourcery.com>
3939 * langhooks-def.h (lhd_register_builtin_type): New function.
3940 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
3941 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3942 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
3943 * langhooks.c (lhd_register_builtin_type): New function.
3944 * c-common.h (c_register_builtin_type): Declare.
3945 * c-common.c (c_register_builtin_type): New function.
3946 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
3947 c_register_builtin_type.
3948 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
3949 __float80, and __float128 macros.
3950 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
3951 __float80, and __float128 types.
3953 2003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3956 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
3957 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
3958 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
3959 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
3960 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
3961 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
3962 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
3963 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
3964 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
3965 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
3966 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
3967 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
3968 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
3969 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
3970 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
3971 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
3972 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
3974 * doc/extend.texi: Document new builtins.
3976 2003-09-09 Jan Hubicka <jh@suse.cz>
3978 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
3980 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
3981 functions, check for COMDAT.
3982 (cgraph_assemble_pending_functions): Break out from...
3983 (cgraph_finalize_function): ... here; allow redefinig of extern inline
3985 (record_call_1): Record function references only in non-unit-at-a-time
3987 (cgraph_analyze_function): Reset current_function_decl.
3988 (cgraph_finalize_compilation_unit): Assemble pending functions.
3990 2003-09-08 Mark Mitchell <mark@codesourcery.com>
3992 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
3993 (libgov.a): Likewise.
3994 (libgcc_eh.a): Likewise.
3996 2003-09-08 Roger Sayle <roger@eyesopen.com>
3998 * fold-const.c (operand_equal_p): Clarify documentation.
4000 2003-09-08 Richard Henderson <rth@redhat.com>
4002 * c-decl.c (c_expand_body_1): Push and pop function context here.
4003 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
4004 nested argument instead of computing nesting ourselves.
4006 2003-09-08 Jakub Jelinek <jakub@redhat.com>
4008 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
4009 regstack if optimizing but not scheduling after reload.
4011 2003-09-08 Jakub Jelinek <jakub@redhat.com>
4013 * config/sparc/sparc.c (struct machine_function): New type.
4014 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
4015 (sparc_override_options): Initialize init_machine_status.
4016 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
4017 tie_symbolic_operand, tle_symbolic_operand): New functions.
4018 (symbolic_operand): Disallow tls_symbolic_operand.
4019 (symbolic_memory_operand): Likewise.
4020 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
4021 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
4023 (sparc_tls_symbol): New variable.
4024 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
4025 legitimize_address): New functions.
4026 (print_operand): Handle %&.
4027 (sparc_init_machine_status, get_some_local_dynamic_name,
4028 get_some_local_dynamic_name_1): New functions.
4029 (sparc_output_dwarf_dtprel): New function.
4030 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
4032 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
4033 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
4034 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
4035 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
4036 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
4037 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
4038 (ASM_OUTPUT_DWARF_DTPREL): Define.
4039 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
4040 tie_symbolic_operand, tle_symbolic_operand.
4041 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
4042 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
4043 (tls_call_delay): New attribute.
4044 (in_call_delay): Use it.
4045 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
4046 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
4047 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
4048 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
4049 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
4050 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
4051 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
4052 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
4053 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
4054 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
4055 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
4056 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
4057 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
4058 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
4060 * config/sparc/sparc-protos.h (legitimate_constant_p,
4061 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
4062 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
4063 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
4064 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
4065 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
4066 * configure.in (sparc*-*-*): Add TLS check.
4067 * configure: Rebuilt.
4069 2003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
4072 * config/i386/i386.c (memory_address_length): Fix computation when
4073 the base is esp or ebp.
4075 2003-09-07 Mark Mitchell <mark@codesourcery.com>
4078 * varasm.c (initializer_constant_valid_p): Correct logic for
4081 2003-09-07 Roger Sayle <roger@eyesopen.com>
4083 * expr.c (expand_operands): New function to expand an operand pair.
4084 (expand_expr): Call expand_operands whenever we need to expand both
4085 operands of a binary operator.
4086 (do_store_flag): Likewise for operands of comparison operations.
4088 2003-09-07 Roger Sayle <roger@eyesopen.com>
4090 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
4091 (-A)*B if we care about sign-dependent rounding.
4093 2003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
4095 * c-pretty-print.h (pp_c_left_brace): Declare.
4096 (pp_c_right_brace): Likewise.
4097 * c-pretty-print.c (pp_c_left_brace): Now a function
4098 (pp_c_right_brace): Likewise.
4100 2003-09-07 Jan Hubicka <jh@suse.cz>
4102 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
4104 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
4106 * diagnostic.c (warn_deprecated_use): Move to toplev.c
4108 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
4110 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
4111 * Makefile.in (langhooks.o): Depend on diagnostic.h
4113 2003-09-06 James E Wilson <wilson@tuliptree.org>
4115 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
4118 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
4120 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
4121 and use it throughout.
4123 2003-09-07 Jan Hubicka <jh@suse.cz>
4125 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
4127 * toplev.c (rest_of_decl_compilation): Do not finalize external
4130 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
4132 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
4134 2003-09-06 Jan Hubicka <jh@suse.cz>
4137 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
4140 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
4142 2003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
4144 * diagnostic.c (announce_function): Move to toplev.c.
4146 2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4148 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
4151 2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4153 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
4154 when gc checking is enabled.
4156 2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
4159 * c-decl.c (c_expand_body_1): Move return warning from here...
4160 (finish_function): ...to here.
4162 2003-09-05 Geoffrey Keating <geoffk@apple.com>
4164 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
4165 a subset of the input class.
4167 2003-09-05 Kazu Hirata <kazu@cs.umass.edu>
4169 * config/i860/i860.c: Follow spelling conventions.
4170 * config/i860/i860.h: Likewise.
4171 * config/sh/sh.h: Likewise.
4173 2003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
4175 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
4176 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
4177 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
4179 2003-09-05 Roger Sayle <roger@eyesopen.com>
4180 Richard Henderson <rth@redhat.com>
4182 PR optimization/1823
4183 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
4184 multiplication to implement division by constant integer.
4186 2003-09-05 Jan Hubicka <jh@suse.cz>
4188 * opts.c (decode_options): Enable unit-at-a-time at -O2.
4189 * params.def (max-inline-insns-single): Set to 500
4190 (max-inline-insns-auto): Set to 150
4191 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
4193 2003-09-04 Richard Henderson <rth@redhat.com>
4195 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
4196 (cgraph_mark_needed_node): Remove needed argument.
4197 * cgraph.h: Update to match.
4198 * cgraphunit.c (decide_is_function_needed): Split out from ...
4199 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
4200 if we generated the function.
4201 (record_call_1): Update for cgraph_mark_reachable_node.
4202 * varasm.c (mark_referenced): Likewise.
4203 * objc/objc-act.c (mark_referenced_methods): Likewise.
4205 2003-09-04 DJ Delorie <dj@redhat.com>
4207 * targhooks.c: Add comment explaining the migration process.
4209 2003-09-04 Eric Christopher <echristo@redhat.com>
4211 * config/frv/t-frv: Fix path for frv-abi.h.
4212 * config/frv/frv-asm.h: Fix string concatenation.
4214 2003-09-04 DJ Delorie <dj@redhat.com>
4216 * builtins.c (apply_args_size): Guard against a NULL cfun.
4217 (expand_builtin_apply_args_1): Likewise.
4218 (expand_builtin_apply): Likewise.
4219 Fixes PR bootstrap/12172.
4221 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4223 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
4224 assembler supports Sun syntax for cmov.
4225 * configure: Regenerate.
4226 * config.in: Likewise.
4227 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
4228 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
4229 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
4230 Fixes PR target/12101.
4232 2003-09-04 Matt Austern <austern@apple.com>
4234 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
4235 with verbosity 0, instead of DECL_NAME, for human-readable string.
4237 2003-09-04 Eric Christopher <echristo@redhat.com>
4239 * targhooks.c (default_return_in_memory): Allow
4242 2003-09-04 Eric Christopher <echristo@redhat.com>
4244 * targhooks.c (default_return_in_memory): Fix typo
4247 2003-09-04 Eric Christopher <echristo@redhat.com>
4249 * targhooks.c (default_return_in_memory): Fix default
4252 2003-09-04 Bernardo Innocenti <bernie@develer.com>
4254 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
4256 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
4257 enable coff-only code in m68k.c.
4259 2003-09-04 Nick Clifton <nickc@redhat.com>
4261 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
4263 * config/v850/v850.h: Accept v850e1 as a default CPU.
4264 Accept -mv850e1 as a command line option.
4265 * doc/invoke.texi: Document new -mv850e1 command line switch.
4266 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
4269 2003-09-04 Nick Clifton <nickc@redhat.com>
4271 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
4272 * config/v850/t-v850: Only produce one extra multilib - for
4274 * config/v850/t-v850e: New file: Only produce one extra
4275 multilib - for the v850.
4277 2003-09-04 Jakub Jelinek <jakub@redhat.com>
4279 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
4280 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
4281 * unwind.h (_Unwind_GetBSP): New prototype.
4282 * libgcc-std.ver: Add empty GCC_3.3.2 version.
4283 * mkmap-symver.awk: For symbol versions with no exported symbols,
4284 don't put anything into version script, just change all symbol
4285 versions which inherit from it to inherit from its ancestor.
4287 2003-09-04 Eric Christopher <echristo@redhat.com>
4289 * config/mips/mips.c (mips_expand_prologue): Convert to
4290 calls.struct_value_rtx hook.
4291 (reg_or_const_float_1_operand): New.
4292 * config/mips/mips.h: Update Comments.
4293 (mips_arg): Add reg_or_const_float_1_operand.
4294 * config/mips/mips.md (divdf3); Convert to expander.
4296 (*divdf3): New pattern.
4299 2003-09-04 Jan Hubicka <jh@suse.cz>
4301 * toplev.c (wrapup_global_declarations): Fix final pass in
4304 2003-09-04 Mark Mitchell <mark@codesourcery.com>
4306 * doc/extend.texi: Document removal of cast-as-lvalue extension in
4309 2003-09-04 Nicolas Roche <roche@act-europe.fr>
4311 * gcc.c (process_command): Fix typo.
4313 2003-09-03 David O'Brien <obrien@FreeBSD.org>
4316 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
4317 (PTRDIFF_TYPE): Likewise.
4318 (WCHAR_TYPE_SIZE): Likewise.
4320 2003-09-03 DJ Delorie <dj@redhat.com>
4322 * targhooks.c: New file.
4323 * targhooks.h: New file.
4324 * Makefile.in: Add targhooks.o support.
4325 (function.o): Depend on$(TARGET_H).
4327 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
4328 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
4329 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
4330 (expand_builtin_saveregs): Convert to
4331 calls.expand_builtin_saveregs hook.
4332 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
4333 here, instead of ...
4334 (get_parm_info) ... here.
4335 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
4337 (finish_function): Handle calls.promote_prototypes hook here too.
4338 * c-typeck.c (convert_arguments): Convert to
4339 calls.promote_prototypes hook.
4340 (c_convert_parm_for_inlining): Likewise.
4341 * calls.c (initialize_argument_information): Convert to
4342 calls.promote_function_args hook.
4343 (expand_call): Convert to calls.struct_value_rtx,
4344 calls.strict_argument_naming,
4345 calls.pretend_outgoing_varargs_named, and
4346 calls.promote_function_return hooks. Pass fndecl to
4347 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
4348 hooks, so they can use that.
4349 (emit_library_call_value_1): Likewise.
4350 * combine.c (setup_incoming_promotions): Convert to
4351 calls.promote_function_args hook.
4352 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
4353 * expr.c (expand_assignment): Pass call to aggregate_value_p.
4354 (expand_expr): Likewise.
4355 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
4356 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
4357 RETURN_IN_MEMORY macro defaults.
4358 * final.c (profile_function): Convert to calls.struct_value_rtx
4360 * function.c (aggregate_value_p): Accept function type tree as
4361 second parameter; try to deduce fntype from it. Convert to
4362 calls.return_in_memory hook.
4363 (assign_parms): Convert to calls.setup_incoming_varargs,
4364 calls.strict_argument_naming, calls.promote_function_args,
4365 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
4367 (expand_function_start): Likewise. Convert to
4368 calls.struct_value_rtx hook.
4369 (expand_function_end): Convert to calls.promote_function_return hook.
4370 (allocate_struct_function): Pass fndecl to aggregate_value_p.
4371 * hard-reg-set.h: Update comments to new hook names.
4372 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
4373 * reg-stack.c (stack_result): Likewise.
4374 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
4375 * stmt.c (expand_value_return): Convert to
4376 calls.promote_function_return hook.
4377 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
4378 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
4379 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
4380 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
4381 TARGET_STRICT_ARGUMENT_NAMING,
4382 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
4383 * target.h: Likewise.
4384 * tree.h (aggregate_value_p): Also takes a tree to deduce function
4385 attributes from (for target hooks).
4386 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
4387 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
4388 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
4389 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
4390 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
4393 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
4394 to aggregate_value_p.
4395 * config/arm/arm.c (arm_init_cumulative_args,
4396 arm_output_mi_thunk): Likewise.
4397 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
4399 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
4400 mips_can_use_return_insn): Likewise.
4401 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
4402 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
4403 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
4405 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
4406 function to aggregate_value_p.
4407 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
4410 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
4411 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
4412 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
4413 (sh_handle_renesas_attribute, sh_promote_prototypes,
4414 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
4415 sh_setup_incoming_varargs, sh_strict_argument_naming,
4416 sh_pretend_outgoing_varargs_named): New decls.
4417 (targetm): Add new hooks.
4418 (calc_live_regs): Save MACL and MACH if the function has the
4420 (sh_expand_prologue): Support renesas attribute.
4421 (sh_builtin_saveregs): Make static.
4422 (sh_build_va_list): Support renesas attribute.
4423 (sh_va_start): Likewise.
4424 (sh_va_arg): Likewise.
4425 (sh_promote_prototypes): New.
4426 (sh_function_arg): New, moved from sh.h. Support renesas
4428 (sh_function_arg_advance): Likewise.
4429 (sh_return_in_memory): Likewise.
4430 (sh_strict_argument_naming): Likewise.
4431 (sh_pretend_outgoing_varargs_named): Likewise.
4432 (sh_struct_value_rtx): New.
4433 (sh_attribute): Add renesas attribute.
4434 (sh_handle_renesas_attribute): New.
4435 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
4436 (sh_ms_bitfield_layout_p): Support renesas attribute also.
4437 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
4438 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
4440 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
4442 (sh_args): Add renesas_abi flag.
4443 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
4444 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
4445 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
4446 stack for the renesas abi.
4447 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
4448 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
4449 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
4450 call cookie to indicate renesas calls.
4452 2003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
4454 * gcse.c (replace_one_set): New function.
4455 (pre_insert_copy_insn): Change the order of copying
4456 to make copy propagation discover additional PRE opportunities.
4458 2003-09-03 Roger Sayle <roger@eyesopen.com>
4460 PR optimization/11700.
4461 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
4462 of a hard register is representable before trying to simplify it
4463 using subreg_hard_regno.
4465 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4467 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
4468 * configure: Regenerate.
4470 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4472 * intl.h (N_): Remove parentheses.
4474 2003-09-03 Bernardo Innocenti <bernie@develer.com>
4476 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
4477 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
4478 definition and code blocks compiled when not defined.
4479 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
4480 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
4481 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
4482 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
4484 2003-09-03 Jeff Sturm <jsturm@one-point.com>
4486 * cgraphunit.c (visited_nodes): New static variable.
4487 (record_call_1): Use walk_tree with visited_nodes.
4488 (cgraph_create_edges): Use walk_tree with visited_nodes.
4489 Setup/teardown visited_nodes hashtable.
4491 2003-09-03 Roger Sayle <roger@eyesopen.com>
4493 * toplev.c (flag_rounding_math): New global variable.
4494 (f_options): Add to the list of language independent options.
4495 * flags.h (flag_rounding_math): Prototype here.
4496 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
4497 * common.opt (frounding-math): New common command line option.
4498 * opts.c (common_handle_option): Handle OPT_frounding_math.
4499 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
4501 * doc/invoke.texi: Document this new command line option.
4503 2003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4505 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
4507 2003-09-03 Jan Hubicka <jh@suse.cz>
4509 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
4510 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
4511 * c-objc-common.c: Kill include of gt-c-objc-common.h
4512 (expand_deferred_fns, deffer_fn): Kill function.
4513 (deferred_fns): Kill variable.
4514 (finish_cdtor): Update finish_function call.
4515 (c_objc_common_finish_file): Always call cgraph code.
4516 * c-parse.c: Regenerate.
4517 * c-parse.y: Regenerate.
4518 * c-tree.h (finish_function): Update prototype.
4519 * objc-acct.c (build_module_descriptor, finish_method_def):
4520 Update call of finish_function.
4521 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
4523 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
4524 function and assemble it if needed.
4525 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
4527 (cgraph_optimize): Likewise.
4528 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
4529 even when it has no inline callees.
4530 * c-parse.in: Update calls to finish_function.
4532 2003-09-03 Nick Clifton <nickc@redhat.com>
4534 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
4535 Use #error to generate the message if TARGET_DEFAULT is not
4538 2003-09-03 Richard Sandiford <rsandifo@redhat.com>
4540 * config/mips/mips.h (MASK_UNUSED1): Remove.
4541 (MASK_XGOT, TARGET_XGOT): Define.
4542 (TARGET_SWITCHES): Add an entry for -mxgot.
4543 (ASM_SPEC): Map -mxgot to -xgot.
4544 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
4545 whether we're using a big-GOT sequences.
4546 (mips_legitimize_const_move, mips_expand_call): Likewise.
4547 (override_options): Revert 2003-01-09 change.
4548 * doc/invoke.texi: Document -mxgot.
4550 2003-09-02 Jason Merrill <jason@redhat.com>
4552 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
4553 * config/sparc/sol2.h: Not here.
4555 2003-09-02 Roger Sayle <roger@eyesopen.com>
4557 * expr.c (expand_expr): The code following both_summands performs
4558 the same task as simplify_gen_binary. Replace all gotos to
4559 both_summands with a call to simplify_gen_binary and delete the
4562 2003-09-02 Jason Merrill <jason@redhat.com>
4565 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
4567 2003-09-02 Jeff Sturm <jsturm@one-point.com>
4569 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
4570 (cgraph_optimize_function): Set current_function_decl to the
4571 fndecl we're integrating from.
4573 2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4575 * builtins.def: Break out _Complex math functions into their
4578 2003-09-02 Andreas Jaeger <aj@suse.de>
4580 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
4582 2003-09-02 Josef Zlomek <zlomekj@suse.cz>
4584 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
4585 finding the note again.
4587 2003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
4589 * config.gcc: Remove host-specific rewrites of target_alias.
4591 2003-09-01 Mark Mitchell <mark@codesourcery.com>
4593 * Makefile.in (genprogs): Fix typo.
4595 * Makefile.in (gencheck.o): Remove build commands.
4596 (dummy-conditions.o): Likewise.
4597 (read-rtl.o): Likewise.
4598 (gensupport.o): Likewise.
4599 (genconfig$(build_exeext)): Remove rule.
4600 (genconfig.o): Remove build commands.
4601 (genflags$(build_exeext)): Remove rule.
4602 (genflags.o): Remove build commands.
4603 (gencodes$(build_exeext)): Remove rule.
4604 (gencodes.o): Remove build commands.
4605 (genconstants.o): Remove build commands.
4606 (genemit$(build_exeext)): Remove rule.
4607 (genemit.o): Remove build commands.
4608 (genrecog$(build_exeext)): Remove rule.
4609 (genrecog.o): Remove build commands.
4610 (genextract$(build_exeext)): Remove rule.
4611 (genextract.o): Remove build commands.
4612 (genpeep$(build_exeext)): Remove rule.
4613 (genpeep.o): Remove build commands.
4614 (genattr$(build_exeext)): Remove rule.
4615 (genattr.o): Remove build commands.
4616 (genprognames): New variable.
4617 (genprogs): Likewise.
4618 (genobjs): Likewise.
4619 (genprogs): New rule.
4620 (genobjs): Likewise.
4621 (genattrtab.o): Remove build commands.
4622 (genautomata.o): Likewise.
4623 (genoutput$(build_exeext)): Remove rule.
4624 (genoutput.o): Remove build commands.
4625 (gengenrtl.o): Likewise.
4626 (genpreds.o): Likewise.
4627 (gengtype.o): Likewise.
4628 (genconditions.o): Likewise.
4629 (gen-protos.o): Likewise.
4631 (fix-header.o): Likewise.
4632 (scan-decls.o): Likewise.
4633 (check-g++): Combine with other check targets.
4634 (check-gcc): Likewise.
4635 (check-g77): Likewise.
4636 (check-objc): Likewise.
4638 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
4640 * config.gcc: Remove host-specific stuff which is unused here
4641 since the introduction of config.host.
4643 * doc/fragments.texi: Mention config.host.
4644 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
4645 of config.build, config.host, and config.gcc.
4647 2003-09-01 Zack Weinberg <zack@codesourcery.com>
4649 * c-decl.c (pushdecl): Don't put variables on
4650 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
4653 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
4655 * config.host: New file.
4656 * config.gcc: Remove some host-specific stuff and some
4657 logic needed only for repeated invocation.
4658 * configure.in: Use config.host.
4659 * configure: Regenerate.
4661 2003-09-01 Josef Zlomek <zlomekj@suse.cz>
4663 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
4664 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
4665 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
4666 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
4667 * tree.def (BIT_ANDTC_EXPR): Kill.
4669 2003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
4671 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
4672 * configure: Regenerate.
4674 * config.gcc: Remove references to install_headers_dir, now unused
4675 since introduction of config.build.
4676 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
4678 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
4681 * config.build: New file.
4682 * config.gcc: Remove some build-specific stuff.
4683 * configure.in: Use config.build.
4684 * configure: Regnerate.
4686 2003-08-31 Steven Bosscher <steven@gcc.gnu.org>
4687 Roger Sayle <roger@eyesopen.com>
4690 * stmt.c (expand_end_case_type): Only use jump tables for dense
4691 switch statements when optimizing for size.
4693 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
4695 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
4696 the != 0 case, which ensures pending stack adjustments are flushed.
4698 2003-08-30 Zack Weinberg <zack@codesourcery.com>
4700 * configure.frag: Delete file.
4701 * configure.in: Rename the substitution variables
4702 dep_host_xmake_file and dep_tmake_file to xmake_file and
4703 tmake_file respectively. Do not expand $srcdir in the
4704 value of these; leave that for Make. Introduce a new
4705 substitution varaible, all_lang_makefrags, which lists
4706 subdirectory Make-lang.in files; exclude these from
4707 all_lang_makefiles, which is now only for subdirectory
4708 outputs. Do not invoke configure.frag. Do not set nor
4709 AC_SUBST_FILE target_overrides, host_overrides, or
4710 language_fragments. Create build subdirectories in
4711 config.status extra commands.
4712 * configure: Regenerate.
4713 * Makefile.in: Update substitutions to match changes to
4714 configure. Use include directives instead of @-insertions
4715 to read in host, target, and language fragments.
4716 (Makefile rule): Do not invoke configure.frag. Do not copy
4717 config.status to config.run before executing it. Set
4718 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
4720 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
4722 2003-08-30 Zack Weinberg <zack@codesourcery.com>
4724 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
4725 * c-typeck.c (same_translation_unit_p): New function.
4726 (comptypes): Use it instead of flags parameter to identify
4727 structure types from different translation units.
4728 * c-decl.c (duplicate_decls): Always call comptypes with
4729 COMPTYPE_STRICT flags argument.
4730 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
4733 2003-08-30 Zack Weinberg <zack@codesourcery.com>
4735 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
4736 * c-decl.c (struct c_scope): Remove "incomplete" field.
4737 (pushdecl): Attach variables with incomplete types to
4738 the TYPE_MAIN_VARIANT of the incomplete type in question.
4739 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
4740 to complete, not at current_scope->incomplete. All such
4741 variables do need completion.
4743 2003-08-30 Richard Earnshaw <rearnsha@arm.com>
4744 Nicolas Pitre <nico@cam.org>
4746 * arm/lib1funcs.asm (RETCOND): Delete.
4747 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
4748 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
4749 (__ARM_ARCH__): Move here from ieee754-?f.S.
4750 (RET, RETc): Clean up definitions.
4751 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
4752 (FUNC_END): New macro that marks the end of any function.
4753 (ARM_FUNC_START): New macro that allows an assembler routine to be
4754 implemented in ARM code even if a Thumb-only build.
4755 Unconditionally include ieee754-?f.S.
4756 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
4757 Mark ends of functions.
4758 Split into separate conditionally-compiled units.
4759 Use RETLDM to return from routines.
4760 * arm/ieee754-sf.S: Similarly.
4761 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
4762 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
4763 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
4764 _fixsfsi and _fixunssfsi.
4766 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
4767 multiplication underflows to zero.
4768 (__adddf3): Fix bug when using VFP ordering on little-endian
4770 (__fixdfsi): Use rrx to extract the carry into a register instead of
4771 MRS instruction. Optimize later use of result.
4772 * arm/ieee754-sf.S (__fixsfsi): Likewise.
4773 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
4775 2003-08-29 Richard Henderson <rth@redhat.com>
4777 * tree-optimize.c: New file.
4778 * Makefile.in (OBJS-archive): Add tree-optimize.o.
4779 (tree-optimize.o): New.
4780 * c-decl.c (store_parm_decls): Use allocate_struct_function.
4781 (finish_function): Don't free_after_parsing or free_after_compilation.
4782 (set_save_expr_context): Move to tree-optimize.c.
4783 (c_expand_body_1): Use tree_rest_of_compilation.
4784 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
4785 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
4786 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
4787 iterate until closure.
4788 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
4789 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
4790 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
4791 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
4792 * toplev.h (tree_rest_of_compilation): Declare it.
4794 2003-08-29 Richard Henderson <rth@redhat.com>
4796 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
4797 * integrate.c (save_for_inline): Set saved_for_inline.
4798 * c-semantics.c (genrtl_scope_stmt): Check it.
4799 * toplev.c (wrapup_global_declarations): Check it.
4800 (rest_of_handle_inlining): Set and check rtl_inline_init.
4801 (rest_of_compilation): Remove out of date comment.
4803 2003-08-29 Richard Henderson <rth@redhat.com>
4805 * function.c (allocate_struct_function): New, split out of ...
4806 (prepare_function_start, init_function_start): ... here.
4807 * expr.c (init_expr): Use ggc_alloc_cleared.
4808 * stmt.c (init_stmt_for_function): Likewise.
4809 * tree.h (allocate_struct_function): Declare.
4811 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
4813 * config.gcc: Don't use negated character class in shell case
4816 2003-08-29 Richard Henderson <rth@redhat.com>
4818 * function.h (struct function): Move function_frequency and
4819 max_jumptable_ents before start of bit field members.
4821 2003-08-29 Richard Henderson <rth@redhat.com>
4823 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
4824 (fold_builtin_constant_p) ... not here.
4826 2003-08-29 Richard Henderson <rth@redhat.com>
4828 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
4829 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
4830 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
4832 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4834 * builtins.def: Fix typos.
4835 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
4836 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
4837 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
4838 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
4839 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
4841 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
4842 Use ATTR_MATHFN_FPROUNDING_ERRNO.
4844 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
4846 * config.gcc (i386-*-vsta): Fix obvious bogosity.
4848 * fixinc/inclhack.def: Remove special cases for unsupported
4849 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
4850 * fixinc/fixincl.x: Regenerate.
4852 2003-08-29 Mark Mitchell <mark@codesourcery.com>
4854 * Makefile.in (cpp.info): Just state dependencies.
4855 (gcc.info): Likewise.
4856 (gccint.info): Likewise.
4857 (gccinstall.info): Likewise.
4858 (cppinternals.info): Likewise.
4859 (cpp.dvi): Likewise.
4860 (gcc.dvi): Likewise.
4861 (gccint.dvi): Likewise.
4862 (gccinstall.dvi): Likewise.
4863 (cppinternals.dvi): Likewise.
4869 (fsf-funding.7): Likewise.
4870 ($(objdir)/%.info): New pattern rule.
4873 2003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
4875 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
4876 (restage2): Likewise.
4877 (restage3): Likewise.
4878 (restage4): Likewise.
4879 (restageprofile): Likewise.
4880 (restagefeedback): Likewise.
4881 (bubblestrap): Likewise.
4883 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
4885 * config.gcc: Narrow unsupported target match to avoid clobbering
4886 i?86-sequent-sysv4*.
4888 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4890 * builtins.c (mathfn_built_in): Handle new math builtins.
4892 2003-08-28 Per Bothner <per@bothner.com>
4894 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
4895 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
4896 (_cpp_lex_buffer): Likewise.
4897 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
4899 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
4901 * config/s390/s390.md ("*mulsi3_sign"): New insn.
4902 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
4903 ("mulsidi3"): ... this new insn.
4904 ("umulsidi3"): New insn.
4905 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
4906 mixed-mode matching constraints.
4907 ("udivmodsi4", "udivmoddisi3"): New insns.
4908 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
4910 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4912 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
4913 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
4914 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
4915 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
4916 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
4917 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
4918 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
4919 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
4920 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
4921 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
4922 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
4923 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
4924 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
4925 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
4926 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
4927 * tree.c: Assign new type_nodes.
4928 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
4929 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
4930 (float_ptr_type_node, double_ptr_type_node,
4931 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
4933 * doc/extend.texi: Document new builtins.
4935 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4937 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
4938 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
4940 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
4941 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
4942 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
4943 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
4944 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
4945 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
4946 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
4947 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
4948 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
4949 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
4951 * doc/extend.texi: Document new builtins.
4953 2003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
4955 * fixinc/mkfixinc.sh: Remove special case code for unsupported
4956 variants of i?86, powerpcle, and thumb.
4957 * fixinc/mkfixinc.sh: Remove special case code for unsupported
4958 arm and hppa variants.
4960 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4962 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
4963 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
4964 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
4965 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
4966 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
4967 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
4968 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
4969 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
4970 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
4971 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
4973 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
4974 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
4975 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
4976 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
4977 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
4978 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
4979 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
4980 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
4981 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
4982 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
4983 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
4984 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
4985 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
4986 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
4987 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
4988 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
4989 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
4990 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
4991 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
4992 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
4993 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
4994 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
4995 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
4996 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
4997 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
4998 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
4999 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
5000 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
5001 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
5002 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
5003 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
5005 * doc/extend.texi: Document new builtins.
5007 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
5009 * config/s390/s390.c (legitmate_constant_p): Use LARL on
5010 zSeries machines even in 31-bit addressing mode.
5011 (legitimate_reload_constant_p): Likewise.
5012 (legitimize_pic_address): Likewise.
5013 (legitimize_tls_address): Likewise.
5014 (s390_split_branches): Likewise.
5015 (s390_dump_pool): Likewise.
5016 (s390_mainpool_finish): Likewise.
5017 (s390_chunkify_start): Likewise.
5018 (s390_select_rtx_section): Likewise.
5019 * config/s390/s390.md ("doloop_si"): Likewise.
5020 ("pool_start_31", "pool_end_31"): Likewise.
5021 ("pool_start_64", "pool_end_64"): Likewise.
5022 ("main_base_31_small", "main_base_31_large"): Likewise.
5023 ("main_base_64"): Likewise.
5024 ("reload_base_31", "reload_base_64"): Likewise.
5025 ("*movsi_larl"): New insn.
5026 ("cjump", "icjump"): Use long branches on zSeries machines.
5028 ("call"): Use BRASL on zSeries machines.
5029 ("call_value", "call_value_tls"): Likewise.
5030 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
5032 ("*bras", "*brasl", "*basr") ... these new insns.
5033 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
5034 "bas_31_r"): Remove and replace by ...
5035 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
5036 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
5037 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
5038 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
5039 ("*return_si", "*return_di"): Remove and replace by ...
5040 ("*return"): ... this new insn.
5041 ("rotlsi3"): Allow on zSeries machines.
5043 * config/s390/s390.c (legitimize_reload_constant_p): Use
5044 LL/LH type instructions in z/Architecture mode.
5045 * config/s390/s390.md ("*movsi_lli"): Likewise.
5046 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
5047 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
5048 ("*extendqisi2"): Use LB in z/Architecture mode.
5049 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
5050 z/Architecture mode.
5051 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
5054 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
5056 ("ptr_extend"): Allow only in 64-bit mode.
5058 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
5060 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
5061 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
5063 (main): Only use standard_startfile_prefix if native.
5064 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
5066 2003-08-27 Per Bothner <pbothner@apple.com>
5068 * cpperror.c (print_location): Don't check for !pfile->buffer. That
5069 test fails following my 08-21 change, and it seems unnecessary anyway.
5070 (cpp_error): Likewise.
5072 2003-08-27 Jason Merrill <jason@redhat.com>
5074 * real.c (do_multiply): Initialize with memset.
5076 2003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5078 * gcov.c (typedef struct arc_info): New field cs_count.
5079 (accumulate_line_counts): Find cycles correctly.
5081 2003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
5083 * config/s390/s390.c (struct machine_function): Remove member
5085 (s390_optimize_prolog): Replace TEMP_REG argument with
5086 TEMP_USED and BASE_USED. Do not check get_pool_size ().
5087 (general_s_operand): Accept all immediates before reload if
5088 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
5090 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
5091 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
5092 (s390_alloc_pool): New function.
5093 (s390_new_pool): Call it.
5094 (s390_dump_pool): Add REMOTE_LABEL argument.
5095 (s390_chunkify_start): Add BASE_REG argument. Do not check
5097 (s390_chunkify_finish): Add BASE_REG argument. Adapt
5098 s390_dump_pool call.
5099 (s390_pool_count, s390_nr_constants): Remove.
5100 (s390_output_constant_pool): Remove.
5101 (s390_mainpool_start): New function.
5102 (s390_mainpool_finish): New function.
5103 (s390_mainpool_cancel): New function.
5104 (s390_reorg): Implement main literal pool handling.
5105 (s390_emit_prologue): Emit main_pool placeholder instead of
5106 literal_pool_31 / literal_pool_64 insns.
5107 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
5108 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
5109 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
5110 ("main_base_31_small", "main_base_31_large"): New insns.
5111 ("main_base_64", "main_pool"): New insns.
5112 ("literal_pool_31", "literal_pool_64"): Remove.
5114 2003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
5116 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
5118 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
5120 * fixinc/fixincl.x: Regenerate.
5122 2003-08-27 Richard Earnshaw <rearnsha@arm.com>
5124 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
5125 (L_ieee754_dp): New. Include ieee754-df.S.
5126 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
5127 and compilation in apcs-26 mode.
5128 * arm/ieee754-df.S: Likewise.
5129 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
5130 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
5132 2003-08-27 Nicolas Pitre <nico@cam.org>
5134 * arm/ieee754-sf.S: New.
5135 * arm/ieee754-df.S: New.
5137 2003-08-27 Jakub Jelinek <jakub@redhat.com>
5139 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
5140 and restore it if returning NULL.
5142 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
5144 * calls.c (initialize_argument_information): If an argument has no
5145 stack space associated with it, and BLOCK_REG_PADDING is defined,
5146 use it to decide at which end the argument should be padded.
5147 * function.c (assign_parms): Allocate BLKmode stack slots.
5148 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
5149 (mips_pad_reg_upward): Declare.
5150 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
5151 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
5152 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
5153 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
5154 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
5155 (mips_expand_call): Remove code for generating structure shifts.
5156 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
5157 types unless using the EABI.
5158 (function_arg_advance): Don't generate shift instructions.
5159 (function_arg): Don't return them. Don't short-circuit the
5160 check for double structure chunks for DFmode arguments.
5161 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
5162 (mips_expand_prologue): Remove code to emit structure shifts.
5163 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
5164 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
5165 comments to say that only structure returns are a problem.
5167 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
5169 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
5170 Fix to match produced versions.
5171 * fixinc/inclhack.def (longlong_t): New disabled test, ported
5173 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
5175 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
5176 ported from fixinc.ptx.
5178 2003-08-26 Per Bothner <pbothner@apple.com>
5180 * cpplib.h (struct cpp_token): Change type of field line to fileline.
5181 (cpp_error_with_line): Use fileline for appropriate parameter.
5182 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
5183 (struct cpp_reader): Likewise for fields line and directive_line.
5184 (_cpp_begin_message): Use fileline for appropriate parameter.
5185 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
5186 cpp_error): Use fileline for appropriate parameters and variables.
5187 (print_location): New local lin, since it is not a fileline.
5189 2003-08-26 Roger Sayle <roger@eyesopen.com>
5192 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
5193 (FLOAT_TYPE_P): Define in terms of these two new macros.
5194 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
5195 for complex floating point types.
5197 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
5199 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
5200 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
5201 s390_output_pool_entry.
5203 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
5205 * fixinc/inclhack.def (svr4_preproc_lint_on,
5206 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
5207 fixes, ported from fixinc.svr4.
5209 2003-08-26 Mark Mitchell <mark@codesourcery.com>
5211 * doc/install.texi (Prerequisites): Mention GNU make requirement.
5213 * Makefile.in (AR_FOR_TARGET): Export it.
5214 (AR_CREATE_FOR_TARGET): Likewise.
5215 (AR_FLAGS_FOR_TARGET): Likewise.
5216 (AR_EXTRACT_FOR_TARGET): Likewise.
5218 (BUILD_PREFIX): Likewise.
5219 (BUILD_PREFIX_1): Likewise.
5220 (DESTDIR): Likewise.
5221 (GCC_FOR_TARGET): Likewise.
5222 (INCLUDES): Likewise.
5223 (INSTALL_DATA): Likewise.
5224 (LIB1ASMSRC): Likewise.
5225 (LIBGCC2_CFLAGS): Likewise.
5226 (MACHMODE_H): Likewise.
5227 (NM_FOR_TARGET): Likewise.
5228 (RANLIB_FOR_TARGET): Likewise.
5229 (libsubdir): Likewise.
5230 (slibdir): Likewise.
5231 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
5233 (libgcc.a): Don't pass them here.
5234 (stmp-multilib): Or here.
5235 (install-libgcc): Or here.
5236 (install-multilib): Or here.
5237 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
5238 (stage1_build): Or here.
5240 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
5242 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
5243 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
5245 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
5247 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
5248 "*fmaddsf", "*fmsubsf"): New insns.
5250 2003-08-26 Roger Sayle <roger@eyesopen.com>
5252 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
5253 (C1*C2)/X when unsafe math optimizations are allowed.
5254 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
5255 math optimizations. Minor code clean-ups. Recursively call
5256 fold when constructing sub-expressions.
5258 2003-08-26 Roger Sayle <roger@eyesopen.com>
5260 * builtins.c (fold_builtin_bitop): New function to perform constant
5261 folding of ffs, clz, ctz, popcount and parity builtin functions
5262 and their long and long long variants (such as ffsl and ffsll).
5263 (fold_builtin): fold_builtin_bitop when appropriate.
5264 * simplify-rtx.c (simplify_unary_operation): Honor both
5265 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
5266 evaluating clz and ctz at compile-time, for operands wider
5269 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
5271 * builtins.c (build_function_call_expr): Don't set
5272 TREE_SIDE_EFFECTS here.
5273 * expr.c (emit_block_move_via_libcall): Likewise.
5274 (clear_storage_via_libcall): Likewise.
5275 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
5278 * gcse.c (is_too_expensive): New function.
5279 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
5281 2003-08-25 Zack Weinberg <zack@codesourcery.com>
5283 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
5284 commented-out logic to use DCE threads (if present), add
5285 support for POSIX threads.
5286 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
5287 #defines for -pthread. Add -lpthread to LIB_SPEC when
5288 -pthread. In both cases take -mt as a synonym for -pthread
5289 for acc compatibility.
5290 Define GTHREAD_USE_WEAK to 0.
5291 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
5292 Remove old logic for DCE threads from LIB_SPEC.
5293 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
5295 2003-08-25 Roger Sayle <roger@eyesopen.com>
5297 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
5298 return 0 for invalid argument types. Instead drop through to a
5299 call of expand_call at the bottom of function. If op is SQRT,
5300 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
5302 2003-08-25 Richard Henderson <rth@redhat.com>
5304 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
5305 result when op0 is SImode.
5307 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
5309 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
5311 * fixinc/fixincl.x: Regenerate.
5312 * fixinc/tests/base/sys/signal.h: Regenerate.
5314 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
5316 * combine.c (simplify_comparison): Re-enable widening of comparisons
5317 with non-paradoxical subregs of non-REG expressions.
5319 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
5321 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
5323 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
5325 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
5327 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5329 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
5330 * c-pretty-print.h (c_pretty_printer): Now typedef to the
5331 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
5332 (struct c_pretty_print_info): Document. Add new fields.
5333 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
5334 (pp_direct_abstract_declarator): New macro.
5335 (pp_ptr_operator): Likewise.
5336 (pp_simple_type_specifier): Likewise.
5337 (pp_expression): Likewise.
5338 (pp_parameter_list): Rename from pp_parameter_declaration.
5339 * c-pretty-print.c (pp_c_whitespace): Now a function.
5340 (pp_c_left_paren): Likewise.
5341 (pp_c_right_paren): Likewise.
5342 (pp_c_dot): Likewise.
5343 (pp_c_ampersand): Likewise.
5344 (pp_c_arrow): Likewise.
5345 (pp_c_semicolon): Likewise.
5346 (pp_c_type_cast): New function.
5347 (pp_c_space_for_pointer_operator): Likewise.
5348 (pp_c_call_argument_list): Likewise.
5349 (pp_c_cv_qualifier): Adjust prototype.
5350 (pp_c_type_qualifier_list): Likewise.
5351 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
5352 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
5353 Adjust to follow standard grammar.
5354 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
5355 REFERENCE_TYPE. Tidy.
5356 (pp_c_parameter_type_list): Adjust prototype. Tidy.
5357 (pp_c_parameter_declaration): Remove.
5358 (pp_c_abstract_declarator): Adjust prototype.
5359 (pp_c_direct_abstract_declarator): Likewise.
5360 (pp_c_type_id): Likewise.
5361 (pp_c_storage_class_specifier): Likewise.
5362 (pp_c_function_specifier): Likewise.
5363 (pp_c_declaration_specifiers): Likewise.
5364 (pp_c_direct_declarator): Likewise.
5365 (pp_c_declarator): Likewise.
5366 (pp_c_declarator): Likewise.
5367 (pp_c_declaration): Likewise.
5368 (pp_c_attributes): Likewise. Tidy.
5369 (pp_c_function_definition): Adjust prototype.
5370 (pp_c_char): Likewise.
5371 (pp_c_string_literal): Likewise.
5372 (pp_c_integer_constant): Likewise.
5373 (pp_c_character_constant): Likewise.
5374 (pp_c_bool_constant): Likewise.
5375 (pp_c_enumeration_constant): Likewise.
5376 (pp_c_floating_constant): Likewise.
5377 (pp_c_constant): Likewise.
5378 (pp_c_identifier): Likewise.
5379 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
5380 (pp_c_initializer): Adjust prototype.
5381 (pp_c_init_declarator): Likewise.
5382 (pp_c_initializer_list): Likewise.
5383 (pp_c_id_expression): Likewise.
5384 (pp_c_postfix_expression): Likewise.
5385 (pp_c_expression_list): Likewise.
5386 (pp_c_unary_expression): Likewise.
5387 (pp_c_cast_expression): Likewise.
5388 (pp_c_multiplicative_expression): Likewise.
5389 (pp_c_additive_expression): Likewise.
5390 (pp_c_shift_expression): Likewise.
5391 (pp_c_relational_expression): Likewise.
5392 (pp_c_equality_expression): Likewise.
5393 (pp_c_and_expression): Likewise.
5394 (pp_c_exclusive_or_expression): Likewise.
5395 (pp_c_inclusive_or_expression): Likewise.
5396 (pp_c_logical_and_expression): Likewise.
5397 (pp_c_logical_or_expression): Likewise.
5398 (pp_c_conditional_expression): Likewise.
5399 (pp_c_assignment_expression): Likewise.
5400 (pp_c_expression): Likewise. Tidy.
5401 (pp_c_statement): Likewise. Document.
5402 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
5404 * c-lang.c (c_initialize_diagnostics): Update.
5405 * c-common.h (strip_pointer_operator): Declare.
5406 * c-common.c (strip_pointer_operator): Define.
5408 2003-08-25 Mark Mitchell <mark@codesourcery.com>
5411 * tree.h (build_method_type_directly): Declare.
5412 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
5413 (vector_size_helper): Likewise.
5414 * tree.c (build_method_type_directly): New function.
5415 (build_method_type): Use it.
5417 2003-08-24 Richard Henderson <rth@redhat.com>
5419 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
5420 for 16-byte vector modes if sse not enabled; warn for abi change.
5421 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
5423 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
5425 * rtlanal.c (may_trap_p): Simplify an integer comparison.
5427 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
5429 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
5430 comment. Enable for DYNIX/ptx systems (when they switch to
5431 regular fixincludes).
5432 * fixinc/fixincl.x: Regenerate.
5434 2003-08-23 Jason Eckhardt <jle@rice.edu>
5436 * config/i860/t-i860: New.
5437 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
5439 2003-08-23 Jakub Jelinek <jakub@redhat.com>
5441 * c-decl.c (pushdecl): Only put decls which finish_struct will do
5442 something about onto incomplete chain.
5443 (finish_struct): If not removing type from incomplete
5446 2003-08-20 Jan Hubicka <jh@suse.cz>
5449 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
5452 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
5453 const_0_to_15_operand, const_0_to_255_operand): New predicates.
5454 * i386.h (PREDICATE_CODES): Add these.
5455 * i386.c (pinsrw and pextrw patterns): Use them.
5458 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
5461 * expr.c (convert_modes): Deal properly with integer to vector
5462 constant conversion.
5465 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
5467 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
5469 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
5470 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
5471 ("*movhi"): ... this.
5472 ("movqi", "*movqi"): Likewise.
5473 ("movqi_64"): Remove.
5474 ("*zero_extendhisi2_31"): Change predicate to s_operand.
5476 2003-08-23 Dale Johannesen <dalej@apple.com>
5477 * calls.c (emit_library_call_value_1): Fix obvious errors in
5478 arguments to emit_group_store.
5480 2003-08-23 Jason Eckhardt <jle@rice.edu>
5482 * calls.c (emit_library_call_value_1): Remove code related
5483 to LIBGCC_NEEDS_DOUBLE.
5484 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
5485 * doc/tm.texi: Likewise.
5486 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
5488 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
5490 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
5492 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
5494 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
5495 as well. Put memory references in the varargs alias set.
5496 (mips_expand_prologue): Remove varargs handling from here.
5498 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
5500 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
5501 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
5502 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
5503 for function pointer calls.
5504 * config/s390/s390.md ("*negdi2_31"): Likewise.
5506 2003-08-23 Roger Sayle <roger@eyesopen.com>
5508 * combine.c (apply_distributive_law): Correct comment.
5510 2003-08-23 Jason Eckhardt <jle@rice.edu>
5512 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
5514 2003-08-22 Jason Eckhardt <jle@rice.edu>
5516 * config/i860/i860.c (i860_build_va_list): Create the va_decl
5517 declaration. Document the va_list structure.
5518 (i860_va_start): Initialize the va_list structure.
5519 (i860_va_arg): Rewrite completely.
5520 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
5521 * config/i860/varargs.asm: Do not allocate or initialize
5522 a va_list. Return the address of the register save area.
5524 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5526 * config/iq2000/iq2000.c: Fix comment typos.
5527 * config/iq2000/iq2000.md: Likewise.
5529 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5531 * config/iq2000/iq2000.c: Follow spelling conventions.
5532 * config/iq2000/iq2000.h: Likewise.
5533 * config/mn10300/mn10300.c: Likewise.
5535 2003-08-22 Jason Eckhardt <jle@rice.edu>
5537 * config/i860/i860.c (output_move_double): Don't set latehalf
5538 to zero for CONST_INT (since it could be, e.g., -1).
5540 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
5541 (MODSI3_LIBCALL): ...with this one.
5542 (UREMSI3_LIBCALL): Replace this macro...
5543 (UMODSI3_LIBCALL): ...with this one.
5545 2003-08-22 Jason Eckhardt <jle@rice.edu>
5547 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
5548 (output_delayed_branch): Remove prototype.
5549 (single_insn_src_p): Remove prototype.
5550 * config/i860/i860.c (single_insn_src_p): Remove function.
5551 (output_delayed_branch): Remove function.
5552 (output_delay_insn): Remove function.
5553 (va_start): Remove unconditional test and dead code, re-format.
5554 Fix coding style and spelling problems in various comments.
5555 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
5556 (blockage pattern): ...and use it here.
5557 (all define_peephole patterns related to delayed branches): Remove.
5558 Fix coding style and spelling problems in various comments.
5560 2003-08-22 Jason Eckhardt <jle@rice.edu>
5562 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
5563 Remove all uses of the PARAMS macro. Remove superflous prototypes.
5564 Convert all function definitions from traditional to ISO C90 syntax.
5565 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
5566 with 'GCC'. Remove all uses of the PARAMS macro.
5567 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
5568 * config/i860/i860.md: Likewise.
5569 * config/i860/sysv4.h: Likewise.
5570 * config/i860/varargs.asm: Likewise.
5572 2003-08-22 Jason Eckhardt <jle@rice.edu>
5574 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
5576 (tdesc_section): Add prototype.
5577 Update copyright dates.
5578 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
5579 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
5580 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
5581 (targetm): Likewise.
5582 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
5583 for '%d' where necessary.
5584 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
5585 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
5586 by UNITS_PER_WORD when referencing (likewise for .floats).
5587 (I860_SVR4_VARARGS): Rename...
5588 (I860_SVR4_VA_LIST): ...to this.
5589 Call build() with 't' rather than 'field'.
5590 (i860_rtx_costs): New function.
5591 (TARGET_RTX_COSTS): Define.
5592 (i860_internal_label): New function.
5593 (TARGET_ASM_INTERNAL_LABEL): Define.
5594 (i860_file_start): New function.
5595 Update copyright dates.
5596 * config/i860/i860.h (CPP_PREDEFINES): Remove.
5597 (TARGET_CPU_CPP_BUILTINS): Define.
5598 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
5599 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
5600 (ASM_FILE_START): Remove.
5601 (ASM_FILE_START_1): Remove.
5602 (ASM_GLOBALIZE_LABEL): Remove.
5603 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
5604 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
5605 with targetm.asm_out.internal_label.
5606 Update copyright dates.
5607 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
5608 (CPP_PREDEFINES): Remove.
5609 (TARGET_OS_CPP_BUILTINS): Define.
5610 (GLOBAL_ASM_OP): Define.
5611 (ASM_FILE_START): Remove.
5612 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
5613 (TARGET_ASM_FILE_START): Define.
5614 Update copyright dates.
5616 2003-08-22 Jason Eckhardt <jle@rice.edu>
5618 * gcc/config.gcc (i860-*-sysv4*): Add target.
5619 * config/i860/i860-protos.h: New.
5620 * config/i860/i860.c: New.
5621 * config/i860/i860.h: New.
5622 * config/i860/i860.md: New.
5623 * config/i860/sysv4.h: New.
5624 * config/i860/varargs.asm: New.
5625 * config/i860/x-sysv4: New.
5627 2003-08-22 Jason Eckhardt <jle@rice.edu>
5629 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
5630 Remove all uses of PARAMS macro.
5631 Convert all function definitions to ISO C90 syntax.
5632 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
5633 * config/pa/fptr.c: Likewise.
5634 * config/pa/lib2funcs.asm: Likewise.
5635 * config/pa/long_double.h: Likewise.
5636 * config/pa/milli64.S: Likewise.
5637 * config/pa/pa-64.h: Likewise.
5638 * config/pa/pa-hpux.h: Likewise.
5639 * config/pa/pa-hpux10.h: Likewise.
5640 * config/pa/pa-hpux11.h: Likewise.
5641 * config/pa/pa-linux.h: Likewise.
5642 * config/pa/pa-modes.def: Likewise.
5643 * config/pa/pa-osf.h: Likewise.
5644 * config/pa/pa-pro-end.h: Likewise.
5645 * config/pa/pa.md: Likewise.
5646 * config/pa/pa32-linux.h: Likewise.
5647 * config/pa/pa64-linux.h: Likewise.
5648 * config/pa/pa64-hpux.h: Likewise.
5649 * config/pa/pa64-regs.h: Likewise.
5650 * config/pa/quadlib.c: Likewise.
5651 * config/pa/rtems.h: Likewise.
5652 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
5653 all uses of the PARAMS macro.
5654 * config/pa/pa.h: Likewise.
5655 * config/pa/som.h: Likewise.
5657 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
5658 Remove all uses of PARAMS macro.
5659 Convert all function definitions to ISO C90 syntax.
5660 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
5661 Remove all uses of PARAMS macro.
5662 * config/iq2000.h: Remove all uses of PARAMS macro.
5663 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
5665 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
5667 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
5668 * config/s390/s390.c (gen_consttable): Remove.
5669 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
5670 (s390_output_pool_entry): New function.
5671 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
5672 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
5673 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
5674 (UNSPECV_POOL_ENTRY): ... this new constant.
5675 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
5676 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
5677 ("*pool_entry"): ... and replace by this new insn.
5678 ("literal_pool_31"): Do not emit anchor label if pool empty.
5680 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
5681 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
5682 (s390_fixup_clobbered_return_reg): Remove.
5683 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
5684 (s390_return_addr_rtx): Always retrieve return address from save area
5685 slot. Use save_return_addr_p to force slot to be filled.
5686 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
5688 2003-08-22 Chris Demetriou <cgd@broadcom.com>
5690 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
5691 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
5692 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
5693 around SB-1 errata if TARGET_FIX_SB1 is set.
5694 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
5695 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
5697 2003-08-22 Roger Sayle <roger@eyesopen.com>
5699 * hashtable.c (ht_expand): Avoid calculating rehash for the common
5700 case that the first probe hits an empty hash table slot.
5702 2003-08-22 Mark Mitchell <mark@codesourcery.com>
5704 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
5706 2003-08-22 Mark Mitchell <mark@codesourcery.com>
5708 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
5709 (ptr_extend_plus_imm): ... this.
5710 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
5711 optimization in C++.
5712 (ia64_output_mi_thunk): Support ILP32 mode.
5714 2003-08-22 Bernardo Innocenti <bernie@develer.com>
5716 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
5718 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
5720 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5722 * config/i386/i386.c (const_int_1_operand): Simplify an
5725 2003-08-22 Alan Modra <amodra@bigpond.net.au>
5727 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
5728 * config/rs6000/ppc64-fp.c: Likewise.
5730 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5732 * cfgcleanup.c: Fix comment typos.
5733 * emit-rtl.c: Likewise.
5734 * optabs.c: Likewise.
5735 * ra-build.c: Likewise.
5736 * rtlanal.c: Likewise.
5739 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5741 * c-decl.c: Fix comment formatting.
5742 * cfgrtl.c: Likewise.
5743 * combine.c: Likewise.
5744 * convert.c: Likewise.
5745 * dominance.c: Likewise.
5746 * dwarf2out.c: Likewise.
5747 * dwarfout.c: Likewise.
5748 * expmed.c: Likewise.
5749 * fold-const.c: Likewise.
5751 * genattrtab.c: Likewise.
5752 * ggc-common.c: Likewise.
5753 * mips-tfile.c: Likewise.
5754 * regmove.c: Likewise.
5756 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
5758 * builtin-attrs.def: Fix comment formatting.
5759 * c-pretty-print.c: Likewise.
5760 * diagnostic.h: Likewise.
5761 * langhooks.h: Likewise.
5762 * recog.c: Likewise.
5763 * simplify-rtx.c: Likewise.
5764 * tree.def: Likewise.
5766 2003-08-22 Bernardo Innocenti <bernie@develer.com>
5768 * config/m68k/m68k-protos.h: Convert to ISO C90.
5769 * config/m68k/m68k.c: Likewise.
5771 2003-08-21 Bernardo Innocenti <bernie@develer.com>
5772 Paul Dale <pauli@snapgear.com>
5773 Peter Barada <peter@baradas.org>
5775 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
5778 2003-08-21 Zack Weinberg <zack@codesourcery.com>
5780 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
5781 * config.gcc (*-*-openbsd): Don't set tm_file.
5782 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
5783 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
5784 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
5785 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
5786 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
5787 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
5788 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
5789 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
5790 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
5791 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
5792 xscale-*-coff): Use explicit and complete lists of target headers
5793 to include. Move definitions to tm_defines where appropriate.
5794 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
5795 not-yet-contributed configuration.
5797 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
5798 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
5799 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
5800 * config/i386/nto.h, config/iq2000/iq2000.h,
5801 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
5802 * config/m68k/linux.h, config/m68k/m68k-aout.h
5803 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
5804 * config/m68k/netbsd.h, config/m68k/openbsd.h
5805 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
5806 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
5807 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
5808 Remove includes of other target config headers, and
5809 definitions of macros moved to tm_defines lists. Add #undefs
5810 where now necessary to prevent redefinition warnings.
5812 * config/h8300/coff.h: New file split out of...
5813 * config/h8300/elf.h: ...here.
5814 * config/m68k/hp320base.h: New file split out of...
5815 * config/m68k/hp320.h: ...here.
5816 * config/rs6000/lynxbase.h: New file split out of...
5817 * config/rs6000/lynx.h: ...here.
5819 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
5820 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
5822 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
5823 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
5824 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
5825 Remove unnecessary #ifndef.
5826 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
5827 [under IN_LIBGCC2] with config/.
5829 2003-08-21 Per Bothner <pbothner@apple.com>
5831 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
5833 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
5834 by return_at_eof check. Always call _cpp_pop_buffer at end.
5836 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
5839 * config/h8300/h8300.md (two anonymous patterns): Remove.
5841 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
5843 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
5844 * config/mips/mips.c (function_arg_pass_by_reference): Never return
5847 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
5849 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
5850 and similarly in (A | C) == D where C & ~D != 0.
5852 2003-08-20 Geoffrey Keating <geoffk@apple.com>
5855 * configure.in: When testing with_libs and with_headers, treat
5856 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
5857 * configure: Regenerate.
5859 2003-08-20 Peter Barada <peter@baradas.org>
5861 * longlong.h (umul_ppmm): Add ColdFire support.
5863 2003-08-20 Peter Barada <peter@baradas.org>
5864 Bernardo Innocenti <bernie@develer.com>
5866 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
5867 * config/m68k/m68k.h: Likewise.
5868 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
5869 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
5870 * config/m68k/linux.h: Likewise.
5871 * config/m68k/m68k.c: Likewise.
5872 * config/m68k/m68k.md: Likewise.
5873 * config/m68k/m68kelf.h: Likewise.
5874 * config/m68k/netbsd-elf.h: Likewise.
5875 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
5877 2003-08-20 Bernardo Innocenti <bernie@develer.com>
5879 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
5880 * config/m68k/m68k.md: Likewise.
5882 2003-08-20 Mark Mitchell <mark@codesourcery.com>
5886 2003-08-19 Mark Mitchell <mark@codesourcery.com>
5887 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
5888 types with precisions other than those given by native machine
5891 2003-08-20 Gunther Nikl <gni@gecko.de>
5893 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
5894 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
5895 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
5896 * config/m68k/m68k.md (anonymous define_insn): Likewise
5897 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
5898 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
5899 code selected by NO_ASM_FMOVECR
5901 2003-08-20 Gunther Nikl <gni@gecko.de>
5903 * config/m68k/m68k.c (output_move_const_into_data_reg,
5904 output_move_himode): unify MOTOROLA/MIT handling of moveq
5905 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
5908 2003-08-20 Gunther Nikl <gni@gecko.de>
5910 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
5912 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
5913 HOST_WIDE_INT_PRINT_DEC with %wd
5915 2003-08-20 Loren James Rittle <ljrittle@acm.org>
5917 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
5920 2003-08-20 Roger Sayle <roger@eyesopen.com>
5923 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
5924 operands before calling tree_int_cst_lt when performing associative
5927 2003-08-20 Jason Merrill <jason@redhat.com>
5929 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
5930 (EXPR_CHECK): Don't check for 'r' or 's' if we're
5931 checking IS_EXPR_CODE_CLASS.
5932 * calls.c (calls_function_1): Likewise.
5933 * fold-const.c (fold): Likewise.
5934 * tree.c (iterative_hash_expr): Likewise.
5935 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
5937 2003-08-20 Gunther Nikl <gni@gecko.de>
5939 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
5940 depending on MOTOROLA_BSR
5941 * config/m68k/m68k.md (anonymous define_insn): Likewise
5943 2003-08-20 Jason Merrill <jason@redhat.com>
5945 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
5946 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
5947 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
5948 * dojump.c (do_jump): Likewise.
5949 * fold-const.c (operand_equal_p, fold): Likewise.
5950 (tree_expr_nonnegative_p): Likewise.
5952 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
5953 TYPE_USER_ALIGN for FIELD_DECLs.
5955 * attribs.c (decl_attributes): Rebuild the function pointer type after
5956 changing the target type.
5957 * tree.c (get_qualified_type): Also check that the attributes match.
5959 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
5961 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
5962 * objc/config-lang.in (stagestuff): ... to here.
5964 2003-08-19 Mark Mitchell <mark@codesourcery.com>
5967 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
5968 NOP_EXPR) when necessary.
5969 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
5970 types with precisions other than those given by native machine
5973 2003-08-19 Geoffrey Keating <geoffk@apple.com>
5975 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
5976 because some macro is defined.
5978 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
5980 * config/i386/darwin.h (ASM_SPEC): New.
5981 (SUBTARGET_EXTRA_SPECS): New.
5982 * config/rs6000/darwin.h (ASM_SPEC): New.
5983 (SUBTARGET_EXTRA_SPECS): New.
5984 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
5985 a cross-compiler between two different processors on Darwin.
5986 * configure: Regenerate.
5988 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
5990 * builtins.c: Fix comment typos.
5991 * c-common.c: Likewise.
5992 * c-decl.c: Likewise.
5993 * c-pretty-print.c: Likewise.
5994 * cfgbuild.c: Likewise.
5995 * cfglayout.c: Likewise.
5996 * cfgloopanal.c: Likewise.
5997 * cgraphunit.c: Likewise.
5998 * cppfiles.c: Likewise.
5999 * dwarfout.c: Likewise.
6001 * fold-const.c: Likewise.
6003 * ggc-page.c: Likewise.
6004 * haifa-sched.c: Likewise.
6005 * pretty-print.c: Likewise.
6008 * value-prof.c: Likewise.
6010 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
6012 * c-decl.c: Follow spelling conventions.
6013 * cppfiles.c: Likewise.
6015 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
6017 * c-common.c: Fix comment formatting.
6018 * c-common.h: Likewise.
6019 * c-decl.c: Likewise.
6020 * cppinit.c: Likewise.
6021 * cpplib.h: Likewise.
6022 * emit-rtl.c: Likewise.
6023 * input.h: Likewise.
6024 * line-map.h: Likewise.
6027 * simplify-rtx.c: Likewise.
6029 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
6031 * unwind-c.c: Add libgcc-style exception.
6032 * unwind-dw2.c: Likewise.
6033 * unwind-pe.h: Likewise.
6034 * unwind-sjlj.c: Likewise.
6035 * unwind.inc: Likewise.
6037 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
6039 PR c/5582 PR c++/10538
6040 * langhooks-def.h (lhd_decl_uninit): Declare.
6041 (LANG_HOOKS_DECL_UNINIT): New macro.
6042 (LANG_HOOKS_INITIALIZER): Adjust.
6043 * langhooks.h (struct lang_hooks): Add new field
6045 * langhooks.c (lhd_decl_uninit): Define.
6046 * c-common.c (c_decl_uninit_1): New function.
6047 (c_decl_uninit): New function.
6048 (warn_init_self): Define.
6049 * c-common.h (c_decl_uninit): Declare.
6050 (warn_init_self): Declare.
6051 * c.opt: Introduce -Winit-self.
6052 * c-opts.c (c_common_handle_options): Set warn_init_self.
6053 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
6054 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
6055 * function.c (uninitialized_vars_warning): Call the language hook.
6056 * doc/invoke.texi: Document -Winit-self.
6058 2003-08-19 Chris Demetriou <cgd@broadcom.com>
6060 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
6061 to use better predicates and constraints. Define new
6062 instruction to handle "trap_if" with DI-mode arguments.
6063 (conditional_trap): FAIL if trap code is not 0.
6065 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
6067 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
6068 strstr with $pb to a strcompare with "<pic base>"
6069 (ix86_output_addr_diff_elt): Output the real pic base.
6071 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
6073 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
6074 (LANG_HOOKS_INITIALIZER): Correct.
6075 * c-lang.c: Likewise.
6077 2003-08-19 Jan Hubicka <jh@suse.cz>
6079 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
6080 (cgraph_varpool_mark_needed_node): Likewise.
6081 * cgraph.h (notice_global_symbol): Declare
6082 * varasm.c (notice_global_symbol): Break out from ...
6083 (assemble_start_function): ... here; update for variables.
6084 (assemble_variable): Use notice_global_symbol.
6086 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
6088 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
6089 expect SFmode and DFmode arguments to be passed in FPRs,
6090 regardless of the underlying type.
6092 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
6095 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
6096 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
6098 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
6101 * c-typeck.c (set_init_index): Check for negative index.
6103 2003-08-18 Bob Wilson <bob.wilson@acm.org>
6105 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
6107 * config/xtensa/crtn.asm (_init, _fini): Likewise.
6108 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
6109 __umodsi3, __modsi3): Likewise.
6110 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
6113 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
6115 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
6117 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
6119 * config/mips/mips.md: Quote C code in braces. Remove use of
6120 fake const0_rtx operands. Remove double backslashes. Use \;.
6121 Remove workarounds for bogus warnings.
6123 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
6125 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
6126 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
6127 rather than TARGET_MIPS4300.
6128 (mulsf3_internal, mulsf3_r4300): Likewise.
6130 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
6132 * config/mips/mips.md: Renumber unspecs. Clean up comments.
6134 2003-08-17 Roger Sayle <roger@eyesopen.com>
6136 * simplify-rtx.c (associative_constant_p): New function to test
6137 whether an RTX expression is an immediate constant.
6138 (simplify_associative_operation): New function to perform some
6139 reassociation optimizations of associative binary expressions.
6140 (simplify_binary_operation): Use simplify_associative_operation
6141 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
6142 Floating point expressions are only reassociated when unsafe
6143 math optimizations are permitted.
6145 2003-08-17 Andreas Jaeger <aj@suse.de>
6147 * config/alpha/alpha.md: Remove usage of PARAMS.
6149 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
6150 * config/i386/i386-interix.h: Likewise.
6151 * config/i386/winnt.c: Likewise.
6152 * config/i386/cygming.h: Likewise.
6153 * config/i386/cygwin2.c: Likewise.
6154 * config/darwin.c: Likewise.
6155 * config/darwin-c.c: Likewise.
6156 * config/darwin-protos.h: Likewise.
6157 * config/darwin.h: Likewise.
6158 * config/s390/s390-protos.h: Likewise.
6159 * config/s390/s390.c: Likewise.
6160 * config/ia64/ia64.c: Likewse
6161 * config/ia64/ia64-protos.h: Likewise.
6162 * config/ia64/ia64-c.c: Likewise.
6164 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6166 * config/sparc/sparc.c: Convert to ISO C.
6168 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
6169 * config/sparc/sparc.c: Likewise.
6171 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
6174 * stmt.c (expand_expr_stmt_value): Don't warn about any void
6177 2003-08-16 Jan Hubicka <jh@suse.cz>
6179 * i386.c (ix86_fntype_regparm): Rename from ...
6180 (ix86_function_regparm): ... this one; add fastcall and local
6182 (ix86_function_ok_for_sibcall): Update.
6183 (ix86_return_pops_args): Likewise.
6184 (init_cumulative_args): Likewise.
6185 (x86_can_output_mi_thunk): Likewise.
6186 (function_arg): Fix formating.
6187 (x86_this_parameter): Fix fastcall.
6188 (x86_output_mi_thunk): Likewise.
6190 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
6191 body as reachable; mark nested functions as needed too.
6192 (dump_cgraph): Do not output global.calls.
6193 * cgraph.h (cgraph_global_info): Kill.
6194 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
6195 (record_call_1): Speedup.
6196 (cgraph_analyze_function): Break out from ...; compute inlining
6198 (cgraph_finalize_compilation_unit): ... here.
6199 (cgraph_mark_inline): Kill computation of calls.
6200 (cgraph_decide_inlining): Do not compute most of initial values.
6202 2003-08-14 Roger Sayle <roger@eyesopen.com>
6204 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
6205 to negate if either operand is easy to negate, if we don't care
6206 about sign-dependent rounding.
6207 (negate_expr): Make the logic to negate a REAL_CST explicit.
6208 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
6209 that's easy to negate, if we don't honor sign-dependent rounding.
6210 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
6211 negate, and the symmetric A * -B as -A * B if A is easy to negate.
6212 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
6213 -C/D if B and C are cheap to negate. Add an explicit rule to
6214 optimize X/-1.0 as -X when we don't care about signaling NaNs.
6216 2003-08-14 Zack Weinberg <zack@codesourcery.com>
6218 * Makefile.in (tm_file): Rename tm_include_list.
6219 (tm_p_file): Rename tm_p_include_list.
6220 (build_xm_file): Rename build_xm_include_list.
6221 (host_xm_file): Rename host_xm_include_list.
6222 (xm_file): Rename xm_include_list.
6223 (xm_file_list): Add to be substituted.
6224 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
6226 (bt-load.o): Add missing dependency on $(TM_H).
6227 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
6228 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
6229 build_xm_file, generate both *_file_list and *_include_list
6230 values from it. (xm_file_list was formerly not being generated.)
6231 In *_include_list, prefix the names of all headers found in
6232 $(srcdir)/config with config/. In each loop, consider only
6233 the special case files that can actually appear in that list.
6234 AC_SUBST all *_file_list and all *_include_list variables; do
6235 not AC_SUBST the plain *_file variables.
6236 * configure: Regenerate.
6238 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6240 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
6242 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6244 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
6246 (attr_length_call): Include it here. Improve length estimate for
6248 (output_call): Use targetm.binds_local_p.
6250 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6252 * builtins.c (CASE_MATHFN): New helper macro.
6253 (mathfn_built_in): Simplify and sort.
6255 * protoize.c (substr): Delete, callers changed to `strstr'.
6257 2003-08-13 Zack Weinberg <zack@codesourcery.com>
6259 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
6260 * config/iq2000/xm-iq2000.h: Delete file.
6262 2003-08-13 Geoffrey Keating <geoffk@apple.com>
6264 * gengtype.c (walk_type): Process a subobject before processing
6265 the pointer that points to the subobject.
6267 2003-08-13 Per Bothner <pbothner@apple.com>
6269 * regclass.c (init_reg_modes): Make non-static.
6270 Rename to init_reg_modes_once per new naming convention.
6271 (init_regs): Don't call init_reg_modes here.
6272 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
6273 * rtl.h (init_reg_modes_once): New declaration.
6274 * toplev.c (backend_init): Call init_regs after init_emit_once.
6276 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
6278 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
6279 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
6281 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
6283 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
6284 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
6286 2003-08-13 Dale Johannesen <dalej@apple.com>
6288 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
6289 handling of decrement-and-branch farther than 32 bits.
6291 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
6293 * configure.in (make_compare_target): Move test to ...
6294 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
6295 * configure: Regenerate.
6297 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
6299 * config/mips/iris6.h: Convert to C90 prototypes.
6300 * config/mips/irix6-libc-compat.c: Likewise.
6301 * config/mips/mips-protos.h: Likewise.
6302 * config/mips/mips.c: Likewise.
6304 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
6306 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
6307 for selected machines. Comment heavily.
6308 fixinc/fixincl.x: Rebuild.
6309 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
6311 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
6313 * config/mips/mips.h: Tweak various comments.
6314 * config/mips/mips.c: Likewise.
6316 2003-08-11 James E Wilson <wilson@tuliptree.org>
6318 PR optimization/11319
6320 * alias.c (find_base_value, case REG): Return 0 not src if no base
6323 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6325 * gcse.c (gmalloc): Fix last change.
6327 2003-08-11 Roger Sayle <roger@eyesopen.com>
6329 * simplify-rtx.c (simplify_binary_operation): Replace calls to
6330 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
6331 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
6332 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
6334 2003-08-11 Roger Sayle <roger@eyesopen.com>
6336 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
6337 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
6338 typecode for an ABS_EXPR.
6340 * doc/c-tree.texi: Document ABS_EXPR.
6342 2003-08-11 Roger Sayle <roger@eyesopen.com>
6344 * fold-const.c (fold): Optimize any associative floating point
6345 operator with -funsafe-math-optimizations, not just MULT_EXPR.
6347 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
6349 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
6350 information in SHmedia case too.
6351 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
6353 (__set_fpscr): Use an access via GOT for PIC case.
6355 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
6357 * configure.in (intermodule): Make switch test more portable.
6358 * configure: Regenerate.
6360 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
6362 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
6363 (restrap): Likewise.
6365 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6367 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
6368 (grealloc): Size argument is a size_t.
6369 (gcalloc): New function. Use throughout in lieu of
6372 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
6374 * config/ia64/ia64.c (ia64_reorg): Likewise.
6375 * conflict.c (conflict_graph_new): Likewise.
6376 * fixinc/fixincl.c (run_compiles): Likewise.
6377 * genattrtab.c (optimize_attrs): Likewise.
6378 * genrecog.c (new_decision): Likewise.
6379 * haifa-sched.c (schedule_block): Likewise.
6380 * hashtable.c (ht_create): Likewise.
6382 2003-08-11 Bob Wilson <bob.wilson@acm.org>
6384 * config/xtensa/lib2funcs.S: Fix whitespace.
6385 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
6386 syntax where appropriate. Remove unnecessary backslash escapes.
6387 Reformat comments and fix some code formatting.
6388 (extendqisi2): Rearrange conditional.
6389 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
6390 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
6393 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
6395 * config/mips/mips.c: Various formatting fixes.
6396 (override_options): Resync -mtune handling with gas.
6397 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
6398 * config/mips/mips.h: More formatting fixes.
6399 (mips_abi): Move declaration.
6400 * config/mips/mips.md (exception_receiver): Add mode to
6403 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
6405 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
6407 (bdesc_1arg): Remove evsplati and evsplatfi.
6409 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
6411 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
6414 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6416 * builtins.c (expand_builtin_strcat): Optimize constant strings.
6418 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
6420 * pretty-print.c (pp_base_indent): Rename from pp_indent.
6421 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
6422 (struct c_pretty_print_info): Add more fields.
6423 (pp_c_left_paren): Move to c-pretty-print.c.
6424 (pp_c_right_paren): Likewise.
6425 (pp_c_left_brace): Likewise.
6426 (pp_c_right_brace): Likewise.
6427 (pp_c_left_bracket): Likewise.
6428 (pp_c_right_bracket): Likewise.
6429 (pp_c_declarator): Declare.
6430 (pp_c_direct_declarator): Likewise.
6431 (pp_c_specifier_qualifier_list): Likewise.
6432 (pp_c_type_id): Likewise.
6433 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
6434 (pp_c_type_qualifier_list): New.
6435 (pp_c_pointer): Likewise.
6436 (pp_c_parameter_type_list): Likewise.
6437 (pp_c_function_definition): Likewise.
6438 (pp_c_id_expression): Likewise.
6439 (pp_c_simple_type_specifier): Tidy.
6440 (pp_c_unary_expression): Likewise.
6441 (pp_c_expression): Likewise.
6442 (pp_c_pretty_printer_init): Likewise.
6443 (pp_c_specifier_qualifier_list): Rework..
6444 (pp_c_abstract_declarator): Likewise.
6445 (pp_c_postfix_expression): Likewise.
6446 (pp_c_primary_expression): Likewise.
6447 (pp_c_cast_expression): Likewise.
6448 (pp_c_direct_abstract_declarator): Likewise.
6449 (pp_c_storage_class_specifier): Likewise.
6450 (pp_c_function_specifier): Likewise.
6451 (pp_c_declaration_specifiers): Likewise.
6452 (pp_c_direct_declarator): Likewise.
6453 (pp_c_declarator): Likewise.
6454 (pp_c_declaration): Likewise.
6455 (pp_c_statement): Likewise.
6456 (pp_c_integer_constant): Rename from pp_c_integer_literal.
6457 (pp_c_character_constant): Rename from pp_c_character_literal.
6458 (pp_c_bool_constant): Rename from pp_c_bool_literal.
6459 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
6460 (pp_c_floating_constant): Rename from pp_c_real_literal.
6461 (pp_c_constant): Rename from pp_c_literal.
6462 * c-lang.c: Include diagnostic.h and c-pretty-print.h
6463 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
6464 (c_initialize_diagnostics): New.
6465 * Makefile.in (c-lang.o): Update dependency.
6467 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
6469 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
6471 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
6473 * config/mips/mips.c (mips_no_mips16_string): Remove.
6474 (override_options): Don't handle -mips16 as part of -mipsN.
6475 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
6476 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
6477 (TARGET_OPTIONS): Remove -mno-mips16.
6479 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
6481 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
6482 (coprocessor2_operand): Likewise.
6483 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
6484 (lookup_name): Remove declaration.
6485 (abort_with_insn): Remove. Replace all uses with fatal_insn.
6486 (mips16, mips_abicalls): Remove.
6487 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
6488 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
6489 (coprocessor_operand, coprocessor2_operand): Remove.
6490 (override_options): Don't set mips16 or mips_abicalls.
6491 (print_operand): Don't expect SIGN_EXTEND operands.
6492 (mips_secondary_reload_class): Likewise.
6493 (mips_output_conditional_branch): Remove disabled long-branch code.
6494 * config/mips/mips.h (call_used_regs): Remove declaration.
6495 (may_call_alloca): Likewise.
6496 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
6497 (mips_abicalls, mips16): Remove declarations.
6498 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
6499 (CC1_SPEC): Remove outdated comment.
6500 (MIPS_VERSION, MACHINE_TYPE): Remove.
6501 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6502 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
6503 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
6504 (PUSH_ROUNDING): Likewise.
6505 (ASSEMBLER_SCRATCH_REGNUM): Remove.
6506 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
6507 and mips16 with TARGET_MIPS16.
6509 2003-08-09 Per Bothner <pbothner@apple.com>
6511 * cppinit.c (cpp_read_main_file): Split out source-independent
6512 initialization to separate function ...
6513 (cpp_post_options): New function.
6514 * cppfiles.c (cpp_stack_file): Rename public name to ...
6515 (_cpp_stack_file): New internal function name.
6516 * cpplib.h: Update accordingly.
6517 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
6518 (cpp_read_main_file): Don't initialize line here.
6519 * c-opts.c (c_common_post_options): Call cpp_post_options.
6520 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
6521 * fix-header.c (read_scan_file): Call cpp_post_options.
6523 2003-08-09 Per Bothner <per@bothner.com>
6525 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
6527 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6529 * pa.c (pa_asm_output_mi_thunk): Fix typo.
6531 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
6533 PR preprocessor/11839
6534 * cppfiles.c (open_file): Handle ENOTDIR.
6536 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
6539 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
6541 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6543 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
6544 source/destination is not a register operand.
6546 2003-08-08 Richard Henderson <rth@redhat.com>
6549 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
6550 RETURN_ADDRESS_POINTER_REGNUM.
6551 (ia64_expand_prologue): Don't frob it.
6552 (ia64_output_function_epilogue): Likewise.
6553 (ia64_return_addr_rtx): New.
6554 (ia64_split_return_addr_rtx): New.
6555 * config/ia64/ia64-protos.h: Update.
6556 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
6557 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
6558 (GENERAL_REGNO_P): Don't check it.
6559 (AR_*_REGNUM): Renumber.
6560 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
6561 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
6562 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
6563 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
6564 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
6565 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
6566 (movdi_ret_addr): New.
6568 2003-08-08 Geoffrey Keating <geoffk@apple.com>
6570 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
6572 2003-08-08 Roger Sayle <roger@eyesopen.com>
6574 * tree.h (get_identifier) Define a macro form of get_identifier
6575 that calls get_identifier_with_length when the string is constant.
6576 (get_identifier_with_length): Change type of second argument to
6577 size_t in prototype.
6578 * stringpool.c (get_identifier): Undefine the macro before giving
6579 the function definition.
6580 (get_identifier_with_length): Change type of second argument to
6581 size_t in function definition.
6582 * hashtable.c (calc_hash): Change type of second argument to size_t.
6583 (ht_lookup): Change type of third argument to size_t. Reorganize
6584 to speed-up the cases where the hash table slot is empty, or the
6585 first probe matches (i.e. there isn't a collision).
6586 * hashtable.h (ht_lookup): Adjust function prototype.
6588 2003-08-08 Bernardo Innocenti <bernie@develer.com>
6592 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
6594 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
6596 * common.opt: Add debug switches.
6597 * flags.h (use_gnu_debug_info_extensions): Boolify.
6598 * opts.c (write_symbols, debug_info_level,
6599 use_gnu_debug_info_extensions): Move from toplev.c.
6600 (set_debug_level): New.
6601 (common_handle_options): Handle debug switches.
6602 (print_help): Display target options directly.
6603 * toplev.c (debug_hooks): Don't initialize.
6604 (write_symbols, debug_info_level,
6605 use_gnu_debug_info_extensions): Move to opts.c.
6606 (debug_args, display_help, decode_g_option): Remove.
6607 (process_options): Set no debug if level zero here,
6608 and no-debug-hooks. Error here if impossible debug format selected.
6609 * toplev.h (display_help, decode_g_option): Remove.
6611 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
6613 * tree.c (get_file_function_name_long): Fix size of alloca() area.
6615 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
6617 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
6618 and gcc_cv_prog_cmp_skip.
6619 * configure: Regenerate.
6621 2003-08-08 Stan Cox <scox@redhat.com>
6623 * config/iq2000: New port.
6624 * config.gcc (iq2000-*-elf): Added.
6625 * doc/install.texi (Specific): Add iq2000 description.
6627 2003-08-08 Andreas Schwab <schwab@suse.de>
6629 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
6630 and insert missing empty argument.
6631 * configure: Regenerate.
6633 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6635 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
6636 (attr_length_millicode_call): Likewise.
6637 (attr_length_call): Likewise. Revise some maximum insn lengths.
6638 (attr_length_indirect_call): Likewise.
6639 (output_call): Fix thinko that added extra nop.
6640 * pa.h (IN_NAMED_SECTION_P): Define.
6643 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
6644 __STDC_EXT__ when using C++ dialect.
6646 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
6648 * sh.c (calc_live_regs): If the return address pointer is live,
6650 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
6651 for saves / restores.
6652 (sh_expand_epilogue): If sh_media_register_for_return returns a
6653 register number, flag the instructions that restores PR_MEDIA_REG
6655 Remove dead update of offset.
6656 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
6657 we can use the result of get_hard_reg_initial_val.
6658 * sh.md (UNSPEC_RA): New constant.
6659 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
6660 (load_ra). Handle UNSPEC_RA.
6661 (sibcall_media): Use PR_MEDIA_REG.
6663 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
6664 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
6665 needs saving on SHmedia.
6667 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
6669 * config/s390/s390.md: Replace all occurrences of \\t with \t.
6671 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
6673 * local-alloc.c (combine_regs): Fix comment typo.
6675 2003-08-06 Zack Weinberg <zack@codesourcery.com>
6677 * c-decl.c (builtin_decls): Replace with first_builtin_decl
6678 and last_builtin_decl.
6679 (c_init_decl_processing): Initialize both.
6680 (c_reset_state): Iterate from first_builtin_decl to
6681 last_builtin_decl inclusive to reintroduce builtins.
6683 2003-08-06 David Mosberger <davidm@hpl.hp.com>
6685 * doc/extend.texi (Function Attributes): Document the IA-64 version
6686 of the "model" attribute.
6688 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
6689 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
6690 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
6692 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
6693 (ia64_encode_section_info): Likewise.
6694 (ia64_attribute_table): Add "model" attribute.
6695 (TARGET_ENCODE_SECTION_INFO): Define.
6696 (small_addr_symbolic_operand): New function.
6697 (got_symbolic_operand): Return 0 for a symbolref to an object
6698 in the small address area.
6699 (enum ia64_addr_area): New type.
6700 (small_ident1): New variable.
6701 (small_ident2): Likewise.
6702 (init_idents): New function.
6703 (ia64_get_addr_area): Likewise.
6704 (ia64_encode_addr_area): Likewise.
6705 (ia64_encode_section_info): Likewise.
6706 (ia64_expand_load_address): For symbolic references to objects in
6707 the small-address-area, load the address via gen_rtx_SET() (which,
6708 eventually, will expand into "addl").
6710 2003-08-06 Per Bothner <pbothner@apple.com>
6712 * line-map.h (fileline): New typedef.
6713 (struct line_map, linemap_add, linemap_lookup): Use it.
6714 * input.h (struct location_s): Comment notes that long-term we want
6715 to replace it by fileline.
6717 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
6719 Fix SHcompact exception handling:
6720 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
6721 by the prologue, return a MEM with return_address_pointer_rtx
6723 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
6724 (RETURN_ADDR_OFFSET): Don't define.
6725 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
6726 registers that are visible in compact mode. Show that SHmedia
6727 registers still exist in compact mode, even if there are not
6729 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
6730 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
6731 and DW_EH_PE_pcrel for pic data.
6732 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
6733 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
6734 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
6735 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
6736 * sh.md (movsi_media-1): New splitter.
6738 2003-08-06 Graeme Peterson <gp@qnx.com>
6740 * config/i386/nto.h: New.
6741 * config/i386/t-nto: New.
6742 * config.gcc (i[34567]86-*-nto-qnx*): New.
6744 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
6746 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
6748 2003-08-06 Alan Modra <amodra@bigpond.net.au>
6750 * calls.c (load_register_parameters): Arrange for call_fusage to
6751 report the whole register as used when shifting to the msb.
6753 2003-08-05 Roger Sayle <roger@eyesopen.com>
6755 * builtins.c (expand_builtin): When not optimizing, call the library
6756 function for all builtins that have library functions (except alloca).
6758 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
6760 * c.opt: Introduce -fworking-directory.
6761 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
6762 * c-common.h (flag_working_directory): Declare.
6763 * c-common.c (flag_working_directory): Define.
6764 * c-opts.c (c_common_handle_options): Set it.
6765 (sanitize_cpp_opts): Set...
6766 * cpplib.h (struct cpp_options): ... working_directory option.
6767 (struct cpp_callbacks): Add dir_change.
6768 * cppinit.c (read_original_filename): Call...
6769 (read_original_directory): New. Look for # 1 "directory//"
6771 (cpp_read_main_file): Call dir_change callback if working_directory
6773 * gcc.c (cpp_unique_options): Pass -g*.
6774 * c-lex.c (cb_dir_change): New.
6775 (init_c_lex): Set dir_change callback.
6776 * toplev.c (src_pwd): New static variable.
6777 (set_src_pwd, get_src_pwd): New functions.
6778 * toplev.h (get_src_pwd, set_src_pwd): Declare.
6779 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
6780 * dwarf2out.c (gen_compile_unit_die): Likewise.
6781 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
6783 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
6785 * pretty-print.h (pp_set_line_maximum_length): Make macro.
6786 (pp_set_prefix): Likewise.
6787 (pp_destroy_prefix): Likewise.
6788 (pp_remaining_character_count_for_line): Likewise.
6789 (pp_clear_output_area): Likewise.
6790 (pp_formatted_text): Likewise.
6791 (pp_last_position_in_text): Likewise.
6792 (pp_emit_prefix): Likewise.
6793 (pp_append_text): Likewise.
6794 (pp_flush): Likewise.
6795 (pp_format_text): Likewise.
6796 (pp_format_verbatim): Likewise.
6797 (pp_tree_identifier): Tidy.
6798 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
6799 (pp_base_format_verbatim): Rename from pp_format_verbatim.
6800 (pp_base_flush): Rename from pp_flush.
6801 (pp_base_set_line_maximum_length): Rename from
6802 pp_set_line_maximum_length.
6803 (pp_base_clear_output_area): Rename from pp_clear_output_area.
6804 (pp_base_set_prefix): Rename from pp_set_prefix.
6805 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
6806 (pp_base_emit_prefix): Rename from pp_emit_prefix.
6807 (pp_base_append_text): Rename from pp_append_text.
6808 (pp_base_formatted_text): Rename from pp_formatted_text.
6809 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
6810 (pp_base_remaining_character_count_for_line): Rename from
6811 pp_remaining_character_count_for_line.
6812 * diagnostic.h (diagnostic_format_decoder): Tidy.
6813 (diagnostic_flush_buffer): Likewise.
6814 * c-pretty-print.h: (pp_c_string_literal): Declare.
6815 (pp_c_real_literal): Likewise.
6816 (pp_c_integer_literal): Likewise.
6817 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
6819 (pp_c_character_literal): Tidy.
6820 (pp_c_string_literal): Make public.
6821 (pp_c_bool_literal): Likewise.
6822 (pp_c_integer_literal): Likewise.
6823 (pp_c_real_literal): Likewise.
6825 * Makefile.in (C_PRETTY_PRINT_H): New variable.
6826 (c-pretty-print.o): Update dependence.
6828 2003-08-05 Chris Demetriou <cgd@broadcom.com>
6830 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
6831 ".set nomacro" state.
6832 (fix_truncsfsi2_macro): Likewise.
6834 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
6836 * tree.h (DID_INLINE_FUNC): Remove macro.
6837 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
6838 add tree check for FUNCTION_DECL.
6839 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
6840 (struct tree_decl): Rename inlined_function_flag to
6841 declared_inline_flag.
6842 * c-common.h (c_lang_decl): Remove.
6843 (DECL_ESTIMATED_INSNS): Remove.
6844 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
6845 (DECL_DECLARED_INLINE_P): Remove.
6846 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
6847 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
6848 (finish_function): Make uninlinable a bool. Fixup call to
6849 tree_inlinable_function_p() and fix some code style issues.
6850 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
6851 * cgraph.c (dump_cgraph): Likewise.
6852 * cgraphunit.c (cgraph_decide_inlining): Likewise
6853 (cgraph_finalize_compilation_unit): Likewise.
6854 Also update call to tree_inlinable_function_p().
6855 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
6856 look at DECL_DECLARED_INLINE and reverse logic.
6857 * print-tree.c (print_node): Likewise.
6858 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
6859 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
6861 * tree-inline.c (inlinable_function_p): Split up in this function to
6862 check for basic inlining inhibiting conditions, and new
6863 limits_allow_inlining() function. Warn if inlining is impossible
6864 because the inline candidate calls alloca or uses sjlj exceptions.
6865 (limits_allow_inlining): this new function to check if the inlining
6866 limits are satisfied. Throttle from currfn_max_inline_insns, not from
6867 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
6868 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
6870 (tree_inlinable_function_p): Make a bool. Update call to
6871 inlinable_function_p
6872 (expand_call_inline): Use limits_allow_inlining() when not in
6873 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
6874 instead see if the function was declared `inline'.
6876 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
6878 * gcse.c (try_replace_reg): Fix updating of note.
6880 2003-08-04 Roger Sayle <roger@eyesopen.com>
6883 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
6884 logic in negate_expr, i.e. we don't invert (A-B) for floating
6885 point types unless flag_unsafe_math_optimizations.
6887 2003-08-04 Roger Sayle <roger@eyesopen.com>
6889 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
6890 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
6891 for floating point expressions with -ffast-math.
6892 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
6893 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
6895 2003-08-04 Roger Sayle <roger@eyesopen.com>
6897 * c-common.c (flag_noniso_default_format_attributes): Delete.
6898 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
6899 (c_attrs_initialized): Delete.
6900 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
6901 always call c_init_attributes.
6902 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
6903 set c_attrs_initialized when done.
6904 (c_common_insert_default_attributes): Delete.
6905 * c-common.h (flag_noniso_default_format_attributes): Delete.
6906 (c_coomon_insert_default_attributes): Delete prototype.
6907 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
6908 flag_noniso_default_format_attributes.
6910 * c-decl.c (c_insert_default_attributes): Delete.
6911 * c-tree.h (c_insert_default_attributes): Delete prototype.
6913 * attribs.c (decl_attributes): Don't call insert_default_attributes
6914 langhook. Update function description comment.
6915 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
6916 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
6917 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
6918 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
6920 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
6923 2003-08-04 Richard Sandiford <rsandif@redhat.com>
6925 * config/mips/mips.c (override_options): Disable -G on targets that
6926 have no .section support.
6927 (mips_select_section): Use default_select_section for such targets.
6929 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
6931 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
6932 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
6933 * fixinc/fixincl.x: Rebuild.
6934 * fixinc/tests/base/regexp.h: New test.
6936 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
6938 * c-ppoutput.c (cb_line_change): Don't skip line changing while
6939 parsing macro arguments in the top-level context.
6941 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
6943 * config.in: Remove HAVE_LSTAT.
6944 * configure, configure.in: Don't test for lstat.
6946 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6948 * opts.c (decode_options): Do language-specific initialization for
6949 the global diagnostic context.
6950 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
6951 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
6952 (LANG_HOOKS_INITIALIZER): Adjust.
6953 * langhooks.h (struct lang_hooks): Add new field
6954 initialize_diagnostics.
6955 * langhooks.c (lhd_initialize_diagnostics): Define.
6957 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6959 * pretty-print.h: Adjust macro definitions.
6960 * pretty-print.c (pp_newline): Rename to pp_base_newline.
6961 (pp_character): Rename to pp_base_character.
6962 (pp_string): Rename to pp_base_string.
6963 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
6964 (pp_newline): Likewise. Adjust.
6965 (pp_c_char): Adjust.
6967 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6969 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
6970 BUILT_IN_LLABS): Move to miscellaneous section.
6972 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
6974 PR preprocessor/11534
6975 * cppexp.c (parse_defined): Warn only if -pedantic.
6977 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
6979 * cppfiles.c (stack_file): Use file path.
6981 2003-08-02 Roger Sayle <roger@eyesopen.com>
6983 * builtin-types.def (BT_SSIZE): New primitive type.
6984 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
6985 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
6986 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
6987 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
6988 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
6989 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
6990 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
6991 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
6992 few functions that define default attributes using it.
6993 * c-common.c (c_common_insert_default_attributes): Do nothing.
6995 * doc/extend.texi: Document these "new" builtins.
6997 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
6999 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
7000 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
7001 when -mieee-fp set and -shared not set.
7002 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
7004 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
7006 * cppfiles.c (struct _cpp_file): Rename once_only_next to
7007 next_file. Remove import and pragma_once, add once_only.
7008 (find_file): Add new file structures to the all_files list.
7009 (should_stack_file): Mark #import-ed files once-only, and
7010 don't stack them if the file has already been stacked.
7011 (_cp_mark_file_once_only): Simplify.
7012 * cpphash.h (struct cpp_reader): Rename once_only_files
7013 to all_files. Rename saw_pragma_once to seen_once_only.
7014 (_cpp_mark_file_once_only): Update prototype.
7015 * cpplib.c (do_pragma_once): Update.
7017 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
7019 * cppfiles.c (ENOTDIR): Remove.
7020 (open_file_in_dir): Rename find_file_in_dir. Handle errors
7021 other than ENOENT here.
7022 (once_only_file_p): Rename should_stack_file.
7023 (find_file, open_file_failed, read_file_guts): Report errors
7024 with full path name.
7025 (read_file): Move pch handling to should_stack_file.
7026 (should_stack_file): Handle PCH and once-only issues, and
7028 (stack_file): Don't do file reads.
7030 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7032 * libgcov.c (gcov_exit): Cleanup and fix.
7033 * profile.c (compute_value_histograms): Don't try to read profiles
7034 that are not present.
7036 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7038 * builtins.def: Categorize.
7040 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
7042 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
7044 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
7046 * config.gcc: Enable posix threads by default on darwin.
7048 2003-08-01 Jakub Jelinek <jakub@redhat.com>
7050 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
7051 even if nehedges1 is 0.
7053 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
7055 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
7056 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
7057 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
7060 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
7061 * fixinc/fixincl.x: Regenerate.
7062 * fixinc/tests/base/math.h: Regenerate to match test_text change.
7064 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7066 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
7068 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7070 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
7071 for accesses to exc_ptr.
7073 2003-08-01 Geoffrey Keating <geoffk@apple.com>
7075 * doc/sourcebuild.texi (Front End Directory): Don't make references
7076 to libsubdir, it's not part of the interface to frontends.
7077 * doc/install.texi (Configuration): Help users read faster by saying
7078 that GCC's configure options are the standard autoconf ones.
7079 Mention --libdir. Update the default rules for finding the
7080 assembler. Don't use libsubdir since we haven't said what it means.
7081 (Specific): In the Solaris 7 notes, update the place to put the
7083 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
7084 * doc/cpp.texi (Search Path): Actually, the search path
7085 depends on libdir, which can relocate with cpp.
7086 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
7087 now a private interface between the Makefile and the driver.
7089 2003-08-01 Richard Henderson <rth@redhat.com>
7091 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
7093 * varasm.c (lookup_constant_def): New function.
7094 * rtl.h (lookup_constant_def): Declare it.
7095 * dwarf2out.c (loc_descriptor_from_tree): Use it.
7096 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
7098 2003-08-01 Zack Weinberg <zack@codesourcery.com>
7100 * c-decl.c (gettags, pushdecl_function_level): Delete.
7101 (last_function_parm_vars): Rename last_function_parm_others.
7102 (current_function_parm_vars): Rename current_function_parm_others.
7103 (struct c_scope): Rewrite comment explaining this data structure.
7104 Add names_last, blocks_last, parms_last fields. Rename
7105 incomplete_list to incomplete.
7106 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
7107 (poplevel): Ignore second argument. No need to nreverse
7108 anything. Restructure such that each list is processed
7109 exactly once. Use 'const location_t *locus' syntactic sugar
7110 variable where useful. Issue unused variable warnings
7111 ourselves, do not rely on function.c.
7112 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
7113 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
7114 (implicitly_declare): decl cannot be error_mark_node.
7115 (undeclared_variable): Manipulate scope structure directly.
7116 (c_make_fname_decl): Likewise.
7117 (getdecls, c_init_decl_processing): Fix comment.
7118 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
7119 for 'last' variable.
7120 (grokparms): No need to nreverse parms list.
7121 (store_parm_decls_newstyle): Set up the parms_last and
7122 names_last fields of the new scope too.
7123 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
7124 on parms to begin with; check this under ENABLE_CHECKING. Set
7126 (check_for_loop_decls): Refer directly to current_scope->tags.
7127 Use consistent quote style in diagnostics.
7128 (c_write_global_declarations): The names list is not backward.
7130 * c-common.h: Don't prototype gettags.
7131 * c-parse.in: Call poplevel with second argument 0 always.
7133 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7135 * builtins.def: Resort builtins.
7137 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7139 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
7140 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
7141 Prepend "__builtin_" onto NAME with string concatenation. Remove
7142 explicit "__builtin_" from each macro call.
7144 Reformat entire file.
7146 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7148 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
7149 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
7151 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
7153 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
7154 CCL1, or CCL2 modes with floating point operations.
7156 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
7157 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
7158 "*subdf3_cconly"): New insns.
7159 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
7161 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
7163 * Makefile.in: Refine dependencies.
7164 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
7165 * c.opt: Update help for -Wimport.
7166 * cppfiles.c: Include hashtab.h. Update comments.
7167 (stack_file): Read the file before updating dependencies.
7168 (once_only_file_p): Be smarter about marking once-only files.
7169 (_cpp_mark_file_once_only): Correct the check for existence on
7171 (open_file_failed): Use name not path, which is NULL.
7172 * cpphash.h: Don't include hashtab.h.
7173 (struct _cpp_file): Remove.
7174 (struct cpp_reader): Update.
7175 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
7176 * cpplib.h (struct cpp_options): Remove warn_import.
7177 (cpp_simplify_path): Remove.
7179 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
7182 * doc/extend.texi (Statement Expressions): Document C++ semantics.
7184 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
7186 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
7188 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7190 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
7192 * builtins.def: Likewise.
7194 2003-07-31 Jason Merrill <jason@redhat.com>
7196 * Makefile.in (bubblestrap): Don't require a previous full
7199 * expr.c (mostly_zeros_p): No longer static.
7200 * tree.h: Declare it.
7201 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
7202 unless we need to do substitutions.
7204 2003-07-31 Roger Sayle <roger@eyesopen.com>
7206 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
7207 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
7208 as pow(x,2.0) when the latter will be expanded back into x*x.
7209 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
7210 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
7211 pow can never set errno when used with an integer exponent.
7212 Always use expand_powi when exponent is -1, 0, 1 or 2.
7213 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
7214 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
7215 the pow forms of these expressions.
7217 2003-07-31 Geoffrey Keating <geoffk@apple.com>
7219 * Makefile.in (libexecdir): New.
7220 (libsubdir): Use gcc instead of gcc-lib.
7221 (libexecsubdir): New.
7222 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
7223 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
7225 (installdirs): Make libexecsubdir.
7226 (install-common): Put executables in libexecsubdir.
7227 (itoolsdir): Use libexecsubdir.
7228 (itoolsdatadir): New.
7229 (install-mkheaders): Separate data files and executables.
7230 (install-collect2): Put executables in libexecsubdir.
7231 (uninstall): Remove libexecsubdir.
7232 * mkheaders.in: Update for new arrangement of files.
7234 (libexecsubdir): New.
7235 (itoolsdir): Use libexecsubdir.
7236 (itoolsdatadir): New.
7237 * gcc.c (gcc_libexec_prefix): New.
7238 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
7239 (standard_exec_prefix_1): Use libexec.
7240 (standard_exec_prefix_2): New.
7241 (standard_libexec_prefix): New.
7242 (process_command): Update for new arrangement of files. Compute
7243 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
7245 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
7247 * inclhack.def (stdio_va_list): Avoid bogus replacement which
7248 triggers on Interix.
7249 * fixincl.x: Regenerate.
7251 2003-07-31 Jakub Jelinek <jakub@redhat.com>
7253 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
7254 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
7256 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7258 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
7260 2003-07-31 Per Bothner <pbothner@apple.com>
7262 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
7263 (add_input_filename): New function.
7264 (handle_options): Call add_input_filename directly instead of
7266 * opts.h (in_fnames, num_in_fnames): Moved here.
7267 (add_input_filename): Declare.
7268 * c-decl.c: Need to #include opts.h.
7269 * Makefile.in (c-decl.o): Also depends on opts.h.
7270 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
7271 (c_common_handle_filename): Replaced by add_input_filename.
7272 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
7274 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
7275 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
7276 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
7277 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
7279 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7281 * combine.c (try_combine): Set JUMP_LABEL for newly created
7284 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7286 * fold-const.c (fold): Fold some comparisons of bit operations.
7288 2003-07-31 Jan Hubicka <jh@suse.cz>
7290 * cgraph.c (create_edge): Fix typo.
7291 * i386.c (pic_symbolic_operand): Reorder tests.
7293 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
7295 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
7297 (Gcov Data Files): Update.
7299 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7301 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
7304 * gthr-posix.c: New file.
7305 * gthr-posix.h: Define _REENTRANT if missing.
7306 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
7308 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
7310 * config/alpha/t-osf-pthread: New file.
7312 * fixinc/inclhack.def (alpha_pthread): New fix.
7313 * fixinc/fixincl.x: Regenerate.
7314 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
7316 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
7318 Fixes PR bootstrap/9330.
7320 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7322 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
7325 * configure: Regenerate.
7327 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
7329 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
7332 2003-07-30 Roger Sayle <roger@eyesopen.com>
7334 * builtins.def: Alphabetize.
7336 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
7338 * doc/c-tree.texi: Normalize spellings of "lowercase" and
7340 * doc/cpp.texi: Likewise.
7341 * doc/md.texi: Likewise.
7342 * doc/rtl.texi: Likewise.
7343 * doc/tm.texi: Likewise.
7345 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
7347 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
7348 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
7351 2003-07-30 Chris Demetriou <cgd@broadcom.com>
7353 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
7354 macros before defining them.
7356 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
7358 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
7359 UNSPECV_BLOCKAGE): New constants.
7360 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
7361 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
7362 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
7363 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
7365 (all insns and expanders): Write output control string as brace block
7366 where appropriate. Remove \-escapes for doublequote characters.
7368 2003-07-31 Jan Hubicka <jh@suse.cz>
7370 * gcse.c (insert_store): Fix typo in previous patch.
7372 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
7374 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
7376 2003-07-30 Andi Kleen <ak@muc.de>
7378 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
7380 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7382 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
7383 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
7384 GCOV_N_VALUE_COUNTERS): New.
7385 * profile.c (compute_value_histograms): New static function.
7386 (branch_prob): Read back the value histograms.
7387 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
7388 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
7389 * value-prof.c: Add comment on reading the profile.
7390 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
7391 * doc/invoke.texi (-fprofile-values): Document behavior with
7392 -fbranch-probabilities.
7394 2003-07-30 David Edelsohn <edelsohn@gnu.org>
7396 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
7398 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
7400 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
7403 2003-07-30 Jan Hubicka <jh@suse.cz>
7405 * gcse.c (insert_store): Ignore fake edges.
7407 * c-common.c (flag_vtable_gc): Kill.
7408 * c-common.g (flag_vtable_gc): Kill.
7409 * c-opts (c_common_handle_option): Kill.
7410 * c.opt (fvtable-gc): Kill.
7411 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
7412 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
7413 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
7415 * invoke.texi (-ftable-gc): Kill documentation.
7417 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
7418 just because function body is missing.
7420 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
7422 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
7424 * unwind-sjlj.c: Fix typo in file description.
7426 2003-07-30 Alan Modra <amodra@bigpond.net.au>
7428 * calls.c (load_register_parameters): When shifting reg sized values
7429 to the msb, move the value to a reg first.
7431 2003-07-29 Geoffrey Keating <geoffk@apple.com>
7433 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
7434 * line-map.h (linemap_add): Update comments.
7435 * line-map.c (linemap_add): Update comments, interpret zero-length
7436 filename as "<stdin>".
7438 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
7440 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
7442 2003-07-29 Zack Weinberg <zack@codesourcery.com>
7444 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
7445 New static variables.
7446 (struct c_scope): Add parms and warned_forward_parm_decls
7447 fields; remove parm_order.
7448 (storedecls, storetags): Delete.
7449 (poplevel): Also clear bindings on the parms chain.
7450 (pushdecl): Handle forward declarations of parameters, and
7451 chain PARM_DECLs on the parms list, not the names list.
7452 (lookup_name_current_level): Check for PARM_DECLs on the parms
7454 (push_parm_decl): Don't update parm_order.
7455 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
7456 warning, only once per parameter list, and set TREE_ASM_WRITTEN
7457 on the decls here. Then move the forward decls to the names list.
7458 (grokparms): Set last_function_parm_vars.
7459 (get_parm_info): Don't use gettags or getdecls. No need to
7460 extract non-parms from the parms list, or reorganize the parms
7461 list. Feed nonparms back in the TREE_TYPE of the list node
7462 returned. Issue only one error per parameter list for "void"
7463 appearing more than once in said parameter list. Collapse
7464 parmlist_tags_warning into this function to avoid double scan
7466 (start_function): Set current_function_parm_vars.
7467 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
7468 directly. Get non-parms from current_function_parm_vars; no
7469 need to extract them from the parms chain. Properly bind tags
7471 (store_parm_decls_oldstyle): No need to extract non-parameters
7472 from the parms chain, nor to store them back afterward. Move
7473 declaration to top of function, restructure code reordering
7475 (store_parm_decls): No need to save and restore warn_shadow.
7476 * c-parse.in: Don't call parmlist_tags_warning nor
7477 clear_parm_order. Call mark_forward_parm_decls when forward
7478 parm decls are encountered.
7479 * c-tree.h: Prototype mark_forward_parm_decls; not
7480 clear_parm_order or parmlist_tags_warning.
7482 2003-07-29 Geoffrey Keating <geoffk@apple.com>
7484 * c-common.c (allow_pch): Remove.
7485 * c-common.h (allow_pch): Remove.
7486 (c_common_no_more_pch): Declare.
7487 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
7488 * c-pch.c: Include hosthooks.h.
7489 (c_common_valid_pch): Don't check allow_pch.
7490 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
7491 (c_common_no_more_pch): New.
7492 * ggc-common.c: Include hosthooks.h.
7493 (gt_pch_save): Call gt_pch_get_address.
7494 (gt_pch_restore): Call gt_pch_use_address.
7495 * hooks.c (hook_voidp_size_t_null): New.
7496 (hook_bool_voidp_size_t_false): New.
7497 * hooks.h (hook_voidp_size_t_null): New.
7498 (hook_bool_voidp_size_t_false): New.
7499 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
7500 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
7501 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
7502 HOST_HOOKS_GT_PCH_USE_ADDRESS.
7503 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
7505 * doc/hostconfig.texi (Host Common): Document
7506 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
7507 * Makefile.in (c-pch.o): Depend on hosthooks.h.
7508 (ggc-common.o): Likewise.
7510 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
7511 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
7512 (pch_address_space): New.
7513 (darwin_rs6000_gt_pch_get_address): New.
7514 (darwin_rs6000_gt_pch_use_address): New.
7516 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
7518 PR preprocessor/11569
7519 PR preprocessor/11649
7520 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
7521 * cppfiles.c: Completely rewritten.
7522 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
7523 struct cpp_path is now struct cpp_dir.
7524 (remove_duplicates): Don't simplify path names.
7525 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
7527 * cpphash.h: Include hashtab.h.
7528 (_cpp_file): Declare.
7529 (struct cpp_buffer): struct include_file is now struct _cpp_file,
7530 and struct cpp_path is now struct cpp_dir. Rename members.
7531 (struct cpp_reader): Similarly. New members once_only_files,
7532 file_hash, file_hash_entries, quote_ignores_source_dir,
7533 no_search_path, saw_pragma_once. Remove all_include_files and
7534 max_include_len. Make some members bool.
7535 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
7536 (_cpp_stack_file): Renamed from _cpp_read_file.
7537 (_cpp_stack_include): Renamed from _cpp_execute_include.
7538 (_cpp_init_files): Renamed from _cpp_init_includes.
7539 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
7540 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
7541 (cpp_read_next_file): Rename and move to cppfiles.c.
7542 (cpp_read_main_file): Update.
7543 * cpplib.c (run_directive): Update for renamed members.
7544 (do_include_common, _cpp_pop_buffer): Update.
7545 (do_import): Undeprecate #import.
7546 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
7547 * cpplib.h: Remove file_name_map_list.
7548 (cpp_options): Remove map_list.
7549 (cpp_dir): Rename from cpp_path. New datatype for name_map.
7550 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
7552 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
7554 * Makefile.in: Make stamp-objdir safe for parallel builds.
7556 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
7558 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
7559 (info): Depend on stmp-docobjdir.
7561 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7563 * configure: Regenerate.
7565 2003-07-29 Jan Hubicka <jh@suse.cz>
7568 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
7569 in !unit-at-a-time mode.
7571 2003-07-28 Geoffrey Keating <geoffk@apple.com>
7573 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
7576 2003-07-28 Mark Mitchell <mark@codesourcery.com>
7579 * c-common.c (shorten_compare): Take into account differences
7580 between C and C++ representation for enumeration types.
7581 * tree.h (set_min_and_max_values_for_integral_type): Declare.
7582 * stor-layout.c (set_min_and_max_values_for_integral_type): New
7583 function, broken out from ...
7584 (fixup_signed_type): ... here and ...
7585 (fixup_unsigned_type): ... here.
7587 2003-07-28 Zack Weinberg <zack@codesourcery.com>
7589 * c-decl.c: Update commentary, adjust blank lines throughout.
7590 (struct c_scope): Fix indentation. Reorder members so
7591 outer-context pointers come first, booleans last.
7592 (duplicate_decls, define_label): Use a 'locus' variable for
7593 diagnostic locations in a few more places.
7594 (warn_if_shadowing): Un-split a conditional that fits on one line.
7595 (c_init_decl_processing): No need to clear current_scope and
7596 current_function_scope.
7597 (start_decl): Merge if/else if statements with same action.
7598 (push_parm_decl): Rename old_immediate_size_expand to use
7599 save_foo convention; save/restore around entire function.
7600 (grokdeclarator): Remove unnecessary braces.
7602 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
7603 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
7605 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
7606 when warn_declaration_after_statement. Call pedwarn_c90, not
7607 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
7608 * c-common.c (warn_declaration_after_statement): Define.
7609 * c-common.h (warn_declaration_after_statement): Declare.
7610 * c.opt (Wdeclaration-after-statement): New.
7611 * c-errors.c (pedwarn_c90): New function.
7612 * c-opts.c (c_common_handle_option) <case
7613 OPT_Wdeclaration_after_statement>: New.
7614 * c-tree.h (pedwarn_c90): Declare.
7615 * doc/invoke.texi (Option Summary): Document
7616 -Wdeclaration-after-statement.
7617 (Warning Options): Ditto.
7619 2003-07-28 Jan Hubicka <jh@suse.cz>
7621 * i386.md (memory attribute) Avoid accessing uninitialized memory
7622 for ishift1 type instructions.
7624 2003-07-28 Jakub Jelinek <jakub@redhat.com>
7626 * configure.in (--enable-checking): Add fold category.
7627 (ENABLE_FOLD_CHECKING): Define if requested.
7628 * configure: Rebuilt.
7629 * config.in: Rebuilt.
7630 * doc/install.texi: Document it.
7631 * fold-const.c: Include md5.h.
7632 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
7633 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
7634 print_fold_checksum): New functions.
7636 * fold-const.c (fold): Never modify argument passed to fold, instead
7637 change a copy and return it.
7638 * convert.c (convert_to_integer): Likewise.
7640 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
7642 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
7643 cleanup of junk after #else and #endif directives. Collapse repeated
7644 clauses into for statment.
7646 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
7648 2003-07-27 Zack Weinberg <zack@codesourcery.com>
7650 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
7651 (keep_next_if_subblocks): Rename next_is_function_body.
7652 (pushlevel): Adjust commentary. Always set ->keep on the
7653 outermost level of a function. Don't set ->keep_if_subblocks.
7654 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
7655 (store_parm_decls): Adjust to match.
7656 (finish_function): Adjust to match.
7657 Call poplevel with all three arguments zero.
7659 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
7660 New functions split out of store_parm_decls.
7661 Avoid unnecessary work. Use local variables consistently.
7662 (store_parm_decls): Likewise.
7664 (finish_function): No need to set functionbody flag on call to
7666 (struct language_function): Remove scope field.
7667 (c_push_function_context, c_pop_function_context): No need to
7668 save and restore current_scope.
7670 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
7672 * doc/extend.texi (Deprecated Features): Implicit typename is
7673 gone. Default args on types is going.
7675 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
7677 * Makefile.in (ifcvt.o): Depend on target.h
7678 * ifcvt.c (target.h): Include.
7679 (if_convert): Don't call mark_loop_exit_edges if we can't
7682 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7684 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
7686 2003-07-26 Richard Henderson <rth@redhat.com>
7689 * cse.c (count_reg_usage): Handle asm_operands properly.
7691 2003-07-26 Roger Sayle <roger@eyesopen.com>
7693 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
7694 (DEF_EXT_FALLBACK_BUILTIN): Delete.
7695 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
7696 the regular DEF_EXT_LIB_BUILTIN macro.
7697 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
7698 the regular DEF_LIB_BUILTIN macro.
7699 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
7700 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
7701 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
7702 DEF_EXT_LIB_BUILTIN macro.
7704 * c-decl.c (duplicate_decls): Remove code to handle builtin
7705 functions prototyped without an argument list.
7707 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
7709 * config/i386/winnt.c: Revert 2003-07-08 change.
7710 (i386_pe_section_type_flags): Remove error_with_decl here too.
7712 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
7714 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
7715 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
7716 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
7717 (v850_handle_data_area_attribute): Likewise.
7719 2003-07-26 Geoffrey Keating <geoffk@apple.com>
7721 * varasm.c (output_constant_def_contents): Use
7722 ASM_DECLARE_CONSTANT_NAME if defined.
7723 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
7724 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
7725 objects get at least one byte to prevent assembler problems.
7726 (ASM_DECLARE_CONSTANT_NAME): New.
7728 * Makefile.in (libbackend.o): Remove options_.h.
7729 (mostlyclean): Likewise.
7731 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
7732 insert a label at the end of an function under Mach-O.
7734 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
7736 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
7738 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
7740 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
7742 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
7744 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7746 * doc/passes.texi (Passes): Mention pretty-printing and
7749 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
7751 * doc/extend.texi (Function Attributes): GNU C++ does now allow
7752 unused parameter decls.
7753 (Attribute Syntax): GNU C++ does not allow label attributes to be
7756 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7758 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
7759 (objc_declare_class): Likewise.
7760 (error_with_ivar): Likewise.
7761 (start_class): Likewise.
7762 (warn_with_method): Likewise.
7764 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
7766 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
7768 * calls.c (try_to_integrate): Don't use xxx_with_decl.
7769 (expand_call): Likewise.
7770 * dwarfout.c (output_reg_number): Likewise.
7771 * expr.c (expand_expr): Likewise.
7772 * function.c (assign_temp): Likewise.
7773 (uninitialized_vars_warning): Likewise.
7774 (setjmp_args_warning): Likewise.
7775 (expand_function_end): Likewise.
7776 * stmt.c (fixup_gotos): Likewise.
7777 (warn_about_unused_variables): Likewise.
7778 (expand_end_bindings): Likewise.
7779 * stor-layout.c (layout_decl): Likewise.
7780 (place_field): Likewise.
7781 * toplev.c (check_global_declarations): Likewise.
7782 (rest_of_handle_inlining): Likewise.
7783 (default_tree_printer): New function.
7784 (general_init): Initialize diagnostic machinery before routing
7785 signals to the ICE machinery. Set default tree printer.
7786 * toplev.h (pedwarn_with_decl): Remove declaration.
7787 (warning_with_decl): Likewise.
7788 (error_with_decl): Likewise.
7789 (pedwarn): Remove attribute for the time being.
7790 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
7791 * varasm.c (named_section): Likewise.
7792 (make_decl_rtl): Likewise.
7793 (assemble_variable): Likewise.
7794 (merge_weak): Likewise.
7795 (declare_weak): Likewise.
7797 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
7798 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
7799 (format_with_decl): Remove.
7800 (diagnostic_for_decl): Likewise.
7801 (pedwarn_with_decl): Likewise.
7802 (warning_with_decl): Likewise.
7803 (error_with_decl): Likewise.
7804 (diagnostic_initialize): Adjust.
7805 (diagnostic_count_diagnostic): Likewise.
7806 (announce_function): Likewise.
7807 (lhd_print_error_function): Likewise.
7808 (diagnostic_report_current_module): Likewise.
7809 (default_diagnostic_starter): Likewise.
7810 (diagnostic_report_diagnostic): Likewise.
7811 (default_diagnostic_finalizer): Likewise.
7812 (verbatim): Likewise.
7814 (warning): Likewise.
7815 * opts.c (common_handle_option): Likewise.
7816 * pretty-print.c: New file.
7817 * c-pretty-print.h (pp_base): Override.
7818 * c-pretty-print.c: Adjust use of macros throughout.
7819 (pp_buffer): New macro.
7820 (pp_newline): Likewise.
7821 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
7822 * Makefile.in (DIAGNOSTIC_H): New variable.
7823 (c-errors.o): Use it.
7824 (c-objc-common.o): Likewise.
7825 (c-common.o): Likewise.
7826 (c-opts.o): Likewise.
7827 (c-format.o): Likewise.
7828 (diagnostic.o): Likewise.
7830 (toplev.o): Likewise.
7831 (rtl-error.o): Likewise.
7832 (dwarf2out.o): Likewise.
7834 (pretty-print.o): New rule.
7836 2003-07-24 Roger Sayle <roger@eyesopen.com>
7838 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
7839 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
7840 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
7841 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
7842 (DEF_FRONT_END_LIB_BUILTIN): Delete.
7843 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
7844 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
7846 * builtins.c (build_string_literal): New function to construct
7847 a char* pointer to a string literal.
7848 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
7849 "rtx target" to be consistent with other expand_builtin_* functions.
7850 Change 3rd argument from "int unlocked" to "bool unlocked".
7851 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
7852 c-common.c to avoid front-end dependencies. Optimize printf("")
7853 as a no-op when the result isn't required. Handle embedded NULs
7855 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
7856 from c-common.c to avoid front-end dependencies. Likewise, optimize
7857 fprintf(fp,"") as a no-op when the result isn't required, evaluating
7858 fp for side-effects. Handle embedded NULs in format string.
7859 (expand_builtin_sprintf): Fix typo.
7860 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
7861 optimizing. Adjust calls of expand_builtin_fputs to match the API
7862 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
7863 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
7864 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
7866 * c-common.c (is_valid_printf_arglist): Delete.
7867 (c_expand_builtin): Delete.
7868 (c_expand_builtin_printf): Moved to builtins.c. Delete.
7869 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
7870 (c_expand_expr): No longer treat CALL_EXPRs specially.
7871 (CALLED_AS_BUILT_IN): Delete.
7873 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7875 PR optimization/11631
7876 * gcse.c (store_motion): Connect infinite loops to exit.
7878 2003-07-24 Jason Merrill <jason@redhat.com>
7880 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
7881 (boolean_true_node, boolean_false_node): Likewise.
7882 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
7883 * tree.c (build_common_tree_nodes): Init boolean_type_node.
7884 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
7885 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
7886 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
7887 (truthvalue_true_node): Renamed from boolean_true_node.
7888 (truthvalue_false_node): Renamed from boolean_false_node.
7889 * c-decl.c: Just set truthvalue_* to integer_*.
7890 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
7892 2003-07-24 Roger Sayle <roger@eyesopen.com>
7894 * c-decl.c (match_builtin_function_types): New subroutine of
7895 duplicate_decls to test whether a redeclaration of a builtin
7896 function is suitably close, i.e. the return type and all of
7897 the argument types have the same modes as the builtin expects.
7898 (duplicate_decls): Fuzzy type matching for builtin functions
7899 moved to match_builtin_function_types.
7901 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7903 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
7906 2003-07-24 Zack Weinberg <zack@codesourcery.com>
7908 * c-decl.c: Search-and-replace change 'binding level' to
7909 'scope' in commentary.
7910 (struct binding_level): Now struct c_scope.
7911 (current_binding_level): Now current_scope.
7912 (free_binding_level): Now scope_freelist.
7913 (current_function_level): Now current_function_scope.
7914 (global_binding_level): Now global_scope.
7915 (make_binding_level): Now make_scope.
7916 (pop_binding_level): Now pop_scope.
7918 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7920 * configure.in (libgcc_visibility): Add missing whitespace.
7922 2003-07-24 Richard Henderson <rth@redhat.com>
7924 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
7925 __gcc_personality_v0.
7927 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7929 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
7931 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
7933 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
7934 documentation missed from my 2003-07-09 patch.
7936 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
7938 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
7940 * configure: Rebuild.
7942 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
7945 * c-typeck.c (type_lists_compatible_p): Do not compare
7946 arguments if one of them is an error_mark_node
7948 2003-07-24 Alan Modra <amodra@bigpond.net.au>
7950 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
7951 if current_function_calls_eh_return.
7953 2003-07-23 Mark Mitchell <mark@codesourcery.com>
7955 * doc/c-tree.texi (OFFSET_TYPE): Update description.
7957 2003-07-23 Bob Wilson <bob.wilson@acm.org>
7959 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
7960 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
7961 __umodsi3, __modsi3): Increase frame size to 32.
7963 2003-07-23 Geoffrey Keating <geoffk@apple.com>
7965 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
7968 2003-07-23 Mark Mitchell <mark@codesourcery.com>
7970 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
7972 PR optimization/10679
7973 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
7975 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7977 PR target/11607 and PR target/11516
7978 * pa.md (extzv, extv, insv): Revert latter half of last patch.
7980 2003-07-22 Mark Mitchell <mark@codesourcery.com>
7982 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
7983 * varasam.c (output_constant): Likewise.
7985 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
7987 * alias.c: Fix comment formatting.
7988 * c-common.c: Likewise.
7989 * c-decl.c: Likewise.
7990 * c-opts.c: Likewise.
7991 * combine.c: Likewise.
7992 * cpplib.c: Likewise.
7993 * diagnostic.c: Likewise.
7994 * dojump.c: Likewise.
7995 * final.c: Likewise.
7996 * fold-const.c: Likewise.
7999 * ggc-page.c: Likewise.
8002 * mips-tfile.c: Likewise.
8003 * recog.c: Likewise.
8004 * regclass.c: Likewise.
8005 * regmove.c: Likewise.
8009 2003-07-22 Per Bothner <pbothner@apple.com>
8011 * line-map.c (add_line_map): Handle invalid LEAVE request.
8012 Fixes PR preprocessor/11361.
8014 2003-07-22 Per Bothner <pbothner@apple.com>
8016 * diagnostic.c.(diagnostic_report_current_module): Update to match
8017 2003-06-05 changes to push_srcloc and pop_srcloc.
8019 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
8021 * doc/trouble.texi: Better document two-stage name lookup.
8023 2003-07-22 Eric Christopher <echristo@redhat.com>
8025 * config/s390.c (s390_valid_pointer_mode): New.
8026 (TARGET_VALID_POINTER_MODE): Use.
8027 (s390_emit_prologue): Add tpf profiling hooks.
8028 (s390_emit_epilogue): Ditto.
8029 * config/s390.h (MASK_TPF): New.
8031 (POINTERS_EXTEND_UNSIGNED): Define.
8032 * config/s390.md (ptr_extend): New pattern.
8034 2003-07-22 Zack Weinberg <zack@codesourcery.com>
8036 * hashtable.c (approx_sqrt): Make static.
8037 * hashtable.h: Don't prototype approx_sqrt.
8038 * line-map.c (init_line_maps): Rename linemap_init.
8039 (free_line_maps): Rename linemap_free.
8040 (add_line_map): Rename linemap_add.
8041 (lookup_line): Rename linemap_lookup.
8042 (print_containing_files): Rename linemap_print_containing_files.
8043 * linemap.h: Update to match.
8045 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
8046 linemap routines to use new names.
8048 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
8050 * c-common.c (handle_packed_attribute): Don't pack a struct via a
8051 typedef. Propagate packedness from a main variant.
8053 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
8055 * Makefile.in (install-common): Add dependency on installdirs.
8057 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
8059 * c-common.c (c_common_type_for_mode): Return integer types for
8062 2003-07-22 Geoffrey Keating <geoffk@apple.com>
8064 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
8065 (finish_decl): Call maybe_apply_pragma_weak here.
8066 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
8067 TREE_PUBLIC and TREE_STATIC are decided.
8068 (start_function): Move call to maybe_apply_pragma_weak. Check that
8069 DECL_ASSEMBLER_NAME isn't set too early.
8071 * cpplex.c (_cpp_process_line_notes): Mention option name in
8074 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
8076 * combine.c (if_then_else_cond): Simplify the comparison of
8077 rtx against -1, 0, and 1.
8078 * loop.c (check_dbra_loop): Likewise.
8079 * optabs.c (emit_conditional_move): Likewise.
8080 (emit_conditional_add): Likewise.
8081 * config/i386/i386.md (*movsi_or): Likewise.
8082 (*movdi_or_rex6): Likewise.
8084 2003-07-22 Jan Hubicka <jh@suse.cz>
8086 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
8088 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
8090 * cppfiles.c (open_file_pch): Don't put unused entries in the
8091 splay tree. Remove dead code.
8093 2003-07-21 Geoffrey Keating <geoffk@apple.com>
8095 * c-common.h (num_in_fnames): Declare.
8096 (c_static_assembler_name): Move from here...
8097 * c-tree.h (c_static_assembler_name): ... to here.
8098 * c-opts.c: Don't include langhooks-def.h.
8099 (c_static_assembler_name): Move to c-decl.c.
8100 (num_in_fnames): Make externally visible.
8101 * c-decl.c: Include langhooks-def.h.
8102 (c_static_assembler_name): Move from c-opts.c.
8103 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
8104 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
8106 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
8107 when it's not needed.
8109 2003-07-21 Jakub Jelinek <jakub@redhat.com>
8111 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
8112 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
8113 (rs6000_emit_prologue): Save FPRs inline if set.
8115 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
8117 * config/ia64/ia64.md (prefetch): Support predicate.
8119 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
8121 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
8122 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
8125 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
8127 PR optimization/11536
8128 * unroll.c (loop_iterations): Do not replace a register holding
8129 the final value by its equivalent before the loop if it is not
8132 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
8134 * doc/extend.texi: Fixes to spelling, grammar, and diction.
8136 2003-07-21 Ben Elliston <bje@wasabisystems.com>
8138 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
8139 (V850 Options): Spelling fixes.
8141 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
8143 * doc/invoke.texi: Fixes to style, grammar and diction.
8145 2003-07-20 Roger Sayle <roger@eyesopen.com>
8147 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
8148 * system.h (SMALL_STACK): Poison obsolete target macro.
8149 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
8151 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
8153 * configure.in: Cache the results of testing for cmp's capabilities.
8154 * configure: Regenerate.
8156 2003-07-20 Mark Mitchell <mark@codesourcery.com>
8159 * dwarf2out.c (gen_enumeration_type_die): Remember that
8160 enumerators can be unsigned.
8162 2003-07-19 Zack Weinberg <zack@codesourcery.com>
8164 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
8165 (push_label_level, pop_label_level): Kill.
8166 (struct binding_level): Rename level_chain to outer.
8167 Add outer_function field. Change parm_flag, function_body,
8168 keep, keep_if_subblocks to 1-bit bitfields of type bool.
8169 (current_function_level): New variable.
8170 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
8171 (keep_next_level, declare_parm_level, warn_if_shadowing):
8173 (struct language_function): Kill named_labels, shadowed_labels fields.
8174 (c_init_decl_processing, start_function, c_push__function_context)
8175 (c_pop_function_context): No need to muck with named_labels nor
8178 (make_binding_level): No need to clear the structure here.
8179 (pop_binding_level): Always operate on current_binding_level.
8180 Update current_function_level if necessary.
8181 (pushlevel): Don't clear named_labels. Update current_function_level
8182 if necessary. Use "true" and "false" where appropriate.
8183 (poplevel): Diagnose labels defined but not used, or vice
8184 versa, and clear out label-meanings leaving scope, while
8185 walking down the decls list, for all binding levels.
8186 Handle LABEL_DECLs appearing in the shadowed list.
8187 pop_binding_level takes no arguments.
8188 (pushdecl_function_level): Use current_function_level.
8190 (make_label, bind_label): New static functions.
8191 (declare_label): New exported function.
8192 (lookup_label, define_label): Rewritten for new data structure.
8193 (shadow_label): Kill.
8195 * c-tree.h: Prototype declare_label; don't prototype
8196 push_label_level, pop_label_level, nor shadow_label.
8197 * c-parse.in: Remove all calls to push_label_level and
8198 pop_label_level. Use declare_label for __label__ decls.
8200 * doc/extend.texi: Clarify that __label__ can be used to
8201 declare labels with local scope in any nested block, not
8202 just statement expressions. Cross-reference nested functions
8203 section from local labels section.
8205 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8207 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
8209 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
8211 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
8213 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8215 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
8216 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
8218 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
8220 * config/s390/s390.c (legitimize_pic_address): Access local symbols
8221 relative to the GOT instead of relative to the literal pool base.
8222 (s390_output_symbolic_const): Handle new GOT-relative accesses.
8223 * config/s390/s390.md ("call"): Access local functions and PLT stubs
8224 relative to the GOT instead of relative to the literal pool base.
8225 ("call_value"): Likewise.
8226 ("call_value_tls"): Likewise.
8228 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
8229 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
8230 (s390_chunkify_finish): Likewise.
8231 (s390_chunkify_cancel): Likewise.
8232 (s390_reorg): Adapt caller.
8233 (find_base_register_in_addr,
8234 find_base_register_ref, replace_base_register_ref): Delete.
8235 (find_ltrel_base, replace_ltrel_base): New functions.
8236 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
8237 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
8238 base vs. index register usage.
8239 (struct constant_pool): Remove 'anchor'.
8240 (s390_add_anchor): Delete.
8241 (s390_dump_pool): Remove anchor handling.
8242 * config/s390/s390.md ("reload_anchor"): Remove.
8244 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
8245 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
8246 (s390_emit_prologue): Use it.
8247 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
8248 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
8249 hard-code register 14.
8250 * config/s390/s390-protos.h (s390_load_got): Declare.
8252 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
8253 Support TImode constants.
8254 * config/s390/s390.md ("consttable_ti"): New.
8255 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
8257 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
8258 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
8259 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
8260 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
8261 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
8262 New symbolic constants.
8263 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
8264 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
8265 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
8266 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
8267 symbolic UNSPEC values.
8268 * config/s390/s390.c (larl_operand, s390_short_displacement,
8269 bras_sym_operand, s390_cannot_force_const_mem,
8270 s390_delegitimize_address, s390_decompose_address,
8271 legitimize_pic_address, s390_output_symbolic_const,
8272 s390_function_profiler): Use symbolic UNSPEC values.
8274 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8276 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
8277 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
8278 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
8279 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
8280 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
8281 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
8282 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
8283 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
8284 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
8285 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
8286 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
8287 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
8288 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
8289 postreload.c prefix.c print-tree.c protoize.c ra-build.c
8290 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
8291 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
8292 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
8293 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
8294 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
8295 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
8298 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
8300 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
8301 * toplev.h (warning): Remove attribute.
8303 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
8305 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
8306 (pop_label_level): Likewise.
8307 (duplicate_decls): Likewise.
8308 (implicitly_declare): Likewise.
8309 (shadow_label): Likewise.
8310 (start_decl): Likewise.
8311 (finish_decl): Likewise.
8312 (grokdeclarator): Likewise.
8313 (get_parm_info): Likewise.
8314 (detect_field_duplicates): Likewise.
8315 (finish_struct): Likewise.
8316 (start_function): Likewise.
8317 (store_parm_decls): Likewise.
8318 (finish_function): Likewise.
8319 (c_expand_body_1): Likewise.
8320 (check_for_loop_decls): Likewise.
8321 (merge_translation_unit_decls): Likewise.
8323 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
8325 * common.opt: Document --param.
8326 * opts.c (columns, undocumented_msg): New.
8327 (print_help): Get number of columns from environment. Print
8328 --param help. Tweak newline handling.
8329 (print_param_help): New.
8330 (print_filtered_help): Better handling of duplicates. Complain
8331 about undocumented switches.
8332 (print_switch): New.
8333 (wrap_help): Improve wrapping, use COLUMNS.
8334 * opts.sh: Ignore comments in records.
8335 * params.def: Fix typos and remove trailing periods.
8336 * toplev.c (display_help): Don't dump --param help.
8337 * doc/sourcebuild.texi: Update.
8339 2003-07-18 Richard Henderson <rth@redhat.com>
8342 * optabs.c (prepare_operand): Fail gracefully instead of abort
8343 if the predicate doesn't satisfy.
8344 (gen_cond_trap): Allow prepare_operand to fail.
8346 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
8348 * c-common.c: Don't undefine GCC_DIAG_STYLE.
8349 (fname_decl): Don't use xxx_with_decl.
8350 (c_add_case_label): Likewise.
8351 (handle_section_attribute): Likewise.
8352 (handle_alias_attribute): Likewise.
8353 (handle_no_instrument_function_attribute): Likewise.
8354 (handle_no_limit_stack_attribute): Likewise.
8355 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
8356 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
8358 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8360 * Makefile.in (ifcvt.o): Add cfgloop.h.
8361 * basic-block.h (EDGE_LOOP_EXIT): New flag.
8362 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
8363 * ifcvt.c: Include cfgloop.h.
8364 (mark_loop_exit_edges): New static function.
8365 (if_convert): Call it.
8366 (find_if_header): Ignore branches out of loops.
8368 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
8370 * combine.c (simplify_comparison): Don't share rtx when converting
8371 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
8373 2003-07-18 David Edelsohn <edelsohn@gnu.org>
8375 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
8376 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
8377 (MUST_PASS_IN_STACK): Define.
8378 (BLOCK_REG_PADDING): Define.
8380 2003-07-18 Richard Henderson <rth@redhat.com>
8382 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
8383 to skip the addr_vec.
8385 2003-07-18 Alexandre Oliva <aoliva@redhat.com>
8387 * combine.c (combinable_i3pat): Don't forbid occurrences of
8388 i2dest or i1dest in inner_dest if inner_dest is a mem.
8390 2003-07-18 Jan Hubicka <jh@suse.cz>
8392 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
8394 2003-07-17 Jakub Jelinek <jakub@redhat.com>
8397 * loop.c (basic_induction_var): Check if convert_modes emitted any
8398 instructions. Remove them and return 0 if so.
8400 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
8402 PR optimization/11083
8403 * toplev.c (rest_of_handle_addresof): Rename into
8404 rest_of_handle_addressof. Delete unreachable blocks
8405 if dead edges were purged after the addressof pass.
8407 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
8409 * Makefile.in, configure, configure.in: Remove handling of
8410 lang-options.h and options_.h.
8411 * toplev.c (struct lang_opt, documented_lang_options): Remove.
8412 (display_help): Don't use documented_lang_options.
8414 2003-07-17 Zack Weinberg <zack@codesourcery.com>
8416 * c-decl.c (pushdecl_function_level): Make static, return nothing.
8417 (kept_level_p): Fold into poplevel.
8418 (undeclared_variable): Moved here from c-typeck.c. Export.
8419 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
8420 (undeclared_variable): Prototype here. Don't prototype
8421 kept_level_p nor pushdecl_function_level.
8422 * c-parse.in: Change first argument to poplevel from
8423 "kept_level_p()" to "KEEP_MAYBE".
8424 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
8426 2003-07-17 Roger Sayle <roger@eyesopen.com>
8428 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
8429 commutative operands instead of modifying the RTL in-place.
8431 2003-07-17 Mark Mitchell <mark@codesourcery.com>
8433 PR optimization/11557
8434 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
8435 unless we know which function is being called.
8437 2003-07-17 Roger Sayle <roger@eyesopen.com>
8439 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
8440 whether to reorder the operands of a commutative binary operator.
8442 2003-07-17 Roger Sayle <roger@eyesopen.com>
8444 * fold-const.c (const_binop): Avoid performing the FP operation at
8445 compile-time, if either operand is NaN and we honor signaling NaNs,
8446 or if we're dividing by zero and either flag_trapping_math is set
8447 or the desired mode doesn't support infinities.
8448 (fold_initializer): New function to fold an expression ignoring any
8449 potential run-time exceptions or traps.
8450 * tree.h (fold_initializer): Prototype here.
8451 * c-typeck.c (build_binary_op): Move to the end of the file so
8452 that intializer_stack is in scope. If constructing an initializer,
8453 i.e. when initializer_stack is not NULL, use fold_initializer to
8455 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
8456 performing FP operations at compile-time, if they would raise an
8457 exception at run-time.
8459 2003-07-17 Geoffrey Keating <geoffk@apple.com>
8462 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
8463 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
8464 (GTFILES): Add langhooks.c.
8465 (gt-langhooks.h): New.
8466 * c-common.h (c_static_assembler_name): Prototype.
8467 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
8468 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
8469 * c-opts.c: Include langhooks-def.h.
8470 (c_static_assembler_name): New.
8471 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
8473 (lhd_set_decl_assembler_name): Give static objects with context
8475 * varasm.c (var_labelno): Delete.
8476 (make_decl_rtl): Don't change the assembler name once it's set.
8478 * c-opts.c (this_input_filename): New.
8479 (finish_options): Take new parameter, name of file being compiled.
8480 Update callers. Set this_input_filename.
8481 (push_command_line_include): Use this_input_filename not
8482 main_input_filename.
8484 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
8486 * Makefile.in: Depend .pot generation on options.c.
8487 * po/exgettext: Add an extra_files variable containing additional
8490 2003-07-17 Zack Weinberg <zack@codesourcery.com>
8492 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
8493 c_write_global_declarations.
8495 * c-decl.c: Fix typos in several comments. Remove all
8496 #if 0 blocks; reindent as needed. Remove unused argument
8497 to declare_parm_level; all callers changed.
8498 * c-parse.in: Update calls to declare_parm_level. Avoid
8499 issuing a double warning in some circumstances.
8500 * c-typeck.c: Update calls to declare_parm_level.
8501 * c-tree.h: Update prototype of declare_parm_level.
8503 * c-pragma.c (apply_pragma_weak): Don't complain about a
8504 redundant #pragma weak.
8506 * objc/objc-act.c (forward_declare_categories,
8507 build_selector_reference_decl, build_class_reference_decl,
8508 build_objc_string_decl, synth_forward_declarations,
8509 build_protocol_reference): Set TREE_PUBLIC on synthetic
8510 forward decl to 0, consistent with eventual definition.
8511 Correct comments to match.
8513 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
8514 in regexp that don't form a range expression.
8515 * fixinc/fixincl.def: Regenerate.
8517 2003-07-17 Richard Henderson <rth@redhat.com>
8520 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
8521 even with !TARGET_CONST_GP.
8522 (ia64_function_ok_for_sibcall): Reject non-local functions.
8524 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
8526 * c-common.c (c_estimate_num_insns_1): Don't handle
8528 * expr.c (safe_from_p): Likewise.
8529 * gengtype.c (adjust_field_tree_exp): Likewise.
8530 * stmt.c (warn_if_unused_value): Likewise
8531 * tree.c (first_rtl_op): Likewise.
8532 * tree.def: Don't define METHOD_CALL_EXPR.
8533 * java/lang.c (java_estimate_num_insns_1): Don't handle
8536 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
8539 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
8540 and its restrictions for the SPARC64 port.
8541 Move the entry of "-mimpure-text" before that of "-mv8".
8543 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
8544 Phil Edwards <phil@jaj.com>
8546 * doc/install.texi (*-*-solaris2*): Document the step-by-step
8547 procedure to bootstrap and install.
8548 Document the preference for the legacy Sun tools in /usr/bin
8549 over the POSIX tools in /usr/xpg4/bin for the build process.
8551 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
8553 * c.opt: Document Uncodumented; use it. Document ObjC options.
8554 * opts.c (print_filtered_help): Skip undocumented switches.
8555 * opts.h (CL_UNDOCUMENTED): New.
8556 * opts.sh: Handle Undocumented.
8557 * toplev.c (documented_lang_options): Prevent its becoming empty.
8559 * lang-options.h: Remove.
8561 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
8563 * loop.c (check_ext_dependent_givs): Pass const struct loop *
8564 instead of struct loop_info * as argument. Accept BIVs with
8565 increment +/- 1 provided there is a friendly exit test against
8566 a loop-invariant value.
8567 (strength_reduce): Adapt call to check_ext_dependent_givs.
8569 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
8570 Con Bradley <con.bradley@superh.com>
8572 * sh-protos.h (sh_get_pr_initial_val): Declare.
8573 * sh.c (regno_reg_class): Make its elements type enum reg_class.
8574 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
8575 and live_regs_mask arguments. Changed all callers.
8576 (save_schedule_s): New structure.
8577 (save_schedule): New typedef.
8578 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
8579 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
8580 In interrupts handlers, also save registers that are usually
8581 partially saved, and make sure there is at least one general purpose
8582 register saved if a target register needs saving.
8583 Add casts in comparisons to avoid warnings.
8584 (sh_media_register_for_return): return -1 for interrupt handlers.
8585 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
8586 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
8587 registers used are available.
8588 Set RTX_FRAME_RELATED_P where appropriate.
8589 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
8590 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
8591 (initial_elimination_offset): Likewise.
8592 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
8593 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
8594 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
8595 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
8596 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
8597 and for target registers.
8598 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
8599 (regno_reg_class): Make its elements type enum reg_class.
8600 (CONSTRAINT_LEN): Don't use isdigit.
8601 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
8602 (FUNCTION_ARG): Add parentheses to avoid warnings.
8603 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
8604 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
8605 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
8606 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
8607 * sh.md (xordi3+1): Remove unused variable regno.
8608 (return_media): Check that tr0 is available before using it.
8610 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
8612 * c.opt: Document more options.
8614 2003-07-16 Roger Sayle <roger@eyesopen.com>
8616 * combine.c (subst): Also handle (subreg (const_double ...)) case
8617 if created by a substitution, by using the original inner mode.
8619 2003-07-16 Roger Sayle <roger@eyesopen.com>
8621 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
8622 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
8623 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
8625 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
8627 * doc/install.texi (--without-headers): New.
8629 Partial Fix PR/10129
8630 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
8631 (machopic_output_function_base_name): New; print the true pic label.
8632 (machopic_classify_ident): Pic Base is always a defined data.
8633 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
8634 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
8636 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
8637 if they are not floating point registers.
8640 * ggc.h: Add header guards.
8641 * c-decl.c (finish_struct): Sort fields if
8642 number greater than 15 and there are no
8643 anonymous structs/unions.
8644 * c-common.h: Include ggc.h.
8645 (sorted_fields_type): New struct.
8646 (field_decl_cmp): New prototype.
8647 (resort_sorted_fields): New prototype.
8648 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
8649 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
8650 as s, removing other fields.
8651 * c-typeck.c (lookup_field): Use s in lang_type.
8652 These were mostly moved from cp/class.c:
8653 * c-common.c (field_decl_cmp): New static function.
8654 (field_decl_cmp): New function.
8655 (resort_sorted_fields): New function.
8657 2003-07-16 Geoffrey Keating <geoffk@apple.com>
8659 * config/darwin.c (machopic_select_section): Use decl_readonly_section
8660 to do most of the work.
8662 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
8664 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
8665 * config/mmix/mmix.c: Convert functions to ISO C90.
8666 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
8668 (mmix_get_hard_reg_initial_val): Tweak section head comment.
8670 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
8672 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
8674 2003-07-16 Jakub Jelinek <jakub@redhat.com>
8676 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
8677 (uw_update_context_1): Use it.
8678 * config/rs6000/rs6000.c (insn_after_throw): Remove.
8679 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
8680 in parent frame if _Unwind_* called directly instead of through
8682 (rs6000_emit_eh_toc_restore): Remove.
8683 (rs6000_emit_prologue): Update stack pointer before doing any saving
8684 if current_function_calls_eh_return. Generate unwind info for $r2.
8685 (rs6000_emit_epilogue): Restore stack pointer after doing all
8686 restoring if current_function_calls_eh_return. Restore $r2.
8687 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
8688 * config/rs6000/rs6000.md (eh_return): Remove call to
8689 rs6000_emit_eh_toc_restore.
8690 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
8691 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
8693 2003-07-15 Jakub Jelinek <jakub@redhat.com>
8695 * expr.c (emit_block_move): Don't move anything if size is const 0.
8696 (clear_storage): Test against const0_rtx instead of comparing INTVAL
8699 2003-07-15 David S. Miller <davem@redhat.com>
8701 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
8702 emit nop if the last real insn is CALL_INSN.
8704 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
8706 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
8708 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
8710 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
8712 * config/i386/winnt.c (associated_type): Artificial methods are not
8713 affected by the import/export status of their class unless they are
8715 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
8717 * config/i386/winnt.c: Fix GCC copyright comment.
8719 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
8722 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
8723 not recursing on hard error.
8724 (diagnostic_for_decl): Likewise.
8725 * diagnostic.def: Rearrange.
8727 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
8729 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
8730 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
8732 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
8733 Richard Henderson <rth@redhat.com>
8735 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
8736 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
8737 (_Unwind_SetGR): Likewise.
8738 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
8739 (Unwind_SpTmp): New typedef.
8740 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
8741 (uw_update_context): Use _Unwind_GetPtr.
8742 (init_dwarf_reg_size_table): Move above uw_init_context_1.
8743 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
8744 Use _Unwind_SetSpColumn.
8745 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
8748 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
8750 * c.opt: Document more options.
8751 * toplev.c (documented_lang_options): Remove all local help strings.
8753 2003-07-15 Mark Mitchell <mark@codesourcery.com>
8756 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
8759 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
8762 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
8763 swap comparison operands if doing so would generate an
8764 unrecognizable insn.
8766 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
8768 PR optimization/11320
8769 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8770 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8771 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8772 current_sched_info->compute_jump_reg_dependencies. Record which
8773 registers are used and which registers are set by the jump.
8774 Clear deps->reg_conditional_sets after a barrier.
8775 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8776 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8777 (init_deps): Initialize reg_conditional_sets.
8778 (free_deps): Clear reg_conditional_sets.
8779 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8780 Mark registers live on entry of the fallthrough block and conditionally
8781 set as set by the jump. Mark registers live on entry of non-fallthrough
8782 blocks as used by the jump.
8783 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8784 Mark new parameters as unused.
8786 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
8788 * doc/invoke.texi: Resync MIPS -march documentation.
8790 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
8792 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
8793 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
8794 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
8795 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
8796 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
8797 (mips_issue_rate): Handle PROCESSOR_R9000.
8798 (mips_use_dfa_pipeline_interface): Likewise.
8799 * config/mips/9000.md: New file.
8800 * config/mips/mips.md: Include it.
8801 (define_attr cpu): Add r9000.
8802 (mulsi3_mult3): Use "mul" for rm9000 code.
8804 2003-07-15 Stan Cox <scox@redhat.com>
8806 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
8807 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
8808 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
8809 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
8810 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
8811 (mips_issue_rate): Handle PROCESSOR_R7000.
8812 (mips_use_dfa_pipeline_interface): Likewise.
8813 * config/mips/7000.md: New file.
8814 * config/mips/mips.md: Include it.
8815 (define_attr cpu): Add r7000.
8816 (mulsi3_mult3): Use "mul" for rm7000 code.
8818 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
8820 * config/mips/mips.md (define_attr type): Add condmove. Use it for
8821 the conditional move patterns.
8822 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
8823 Check for condmove type.
8824 (ir_vr54_arith): Add move type.
8825 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
8826 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
8828 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
8830 * c-opts.c (print_help): Remove.
8831 (c_common_handle_option): Don't handle --help.
8832 * c.opt: Document some options.
8834 * opts.c (print_filtered_help): New.
8835 (print_help): Use it.
8837 2003-07-14 Geoffrey Keating <geoffk@apple.com>
8839 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
8840 * tree.c: (build_common_tree_nodes_2): Likewise.
8841 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
8842 (V4DF_type_node): New.
8844 * c-opts.c (push_command_line_include): Don't free deferred_opts,
8846 (finish_options): Reset init_cursor.
8848 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
8850 * expr.c (expand_assignment): Remove an unused argument
8852 * expr.h: Update the prototype.
8853 * function.c: Update the callers.
8856 2003-07-14 Mark Mitchell <mark@codesourcery.com>
8859 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
8862 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
8864 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
8865 with __cplusplus, not "we must use the C++ compiler's type"
8866 * fixinc/inclhack.def (void_null): Note that Interix needs this.
8867 * fixinc/fixincl.x: Regenerate.
8869 2003-07-14 Geoffrey Keating <geoffk@apple.com>
8871 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
8872 and unseen_objects from the global data before calling
8873 __deregister_frame_info_bases.
8874 (examine_objects): Insert objects into the seen_objects list,
8876 (_Unwind_Find_FDE): Always unlock the global object lists, even if
8877 we couldn't allocate a data structure to put in it.
8879 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
8880 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
8881 (SET_TYPE_PROTOCOL_LIST): New.
8882 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
8883 (get_object_reference): Likewise.
8885 2003-07-14 Jan Hubicka <jh@suse.cz>
8887 * cfglayout.c (locator_file): Break out from ....
8888 (insn_file): ... here.
8889 (locator_line): Break out from ....
8890 (insn_line): ... here.
8891 * rtl.h (locator_file, locator_line): Declare.
8892 (final_start_function): Set proper line/file info.
8894 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
8896 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
8897 handled by pp_c_cast_expression.
8899 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
8901 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
8902 allocate 32768 bytes of stack. Use addition rather than subtraction
8903 when a single insn is enough.
8904 * config/mips/mips.md: Remove insns and splitters for subtracting
8906 (subsi3): Only accept register operands.
8907 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
8908 (subdi3_internal_3, subsi3_internal_2): Likewise.
8909 (casesi): Use expand_binop to subtract the lower bound.
8911 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
8913 * config/mips/mips.c (mips_in_small_data_p): Don't handle
8914 TARGET_MIPS16 specially.
8916 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
8918 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
8919 mips_output_aligned_bss.
8920 * config/mips/linux.h: Likewise.
8921 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
8922 * config/mips/mips.c (mips_output_aligned_bss): New function.
8924 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
8925 * config/mips/elf64.h: Likewise.
8927 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
8928 mips_declare_object_name.
8929 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
8930 * config/mips/elf64.h: As for elf.h.
8931 * config/mips/iris6.h: Likewise.
8932 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
8933 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
8934 do...while (0) block.
8935 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
8936 (mips_finish_declare_object): Declare.
8937 * config/mips/mips.c (mips_declare_object_name): New function.
8938 (mips_finish_declare_object): New function.
8940 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
8941 * config/mips/linux.h: Likewise.
8943 * config/mips/mips.c (inside_function): Delete.
8944 (file_in_function_warning, ignore_line_number): Delete.
8945 (mips_output_filename): Don't warn about changing filenames within
8947 (mips_output_lineno): Update accordingly.
8948 (mips_output_function_prologue): Don't reset the deleted variables.
8949 * config/mips/mips.h (inside_function): Delete.
8950 (file_in_function_warning, ignore_line_number): Delete.
8952 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
8953 * config/mips/elf64.h: Likewise.
8954 * config/mips/openbsd.h: Likewise.
8955 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
8956 * config/mips/linux.h: Likewise.
8957 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
8958 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
8960 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
8961 to the list of include files when using gas.
8962 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
8963 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
8964 * config/mips/elf64.h: Likewise.
8965 * config/mips/iris5.h: Likewise.
8966 * config/mips/linux.h: Likewise.
8967 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
8968 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
8969 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
8970 * config/mips/sdb.h: ...this new file.
8972 2003-07-14 Douglas Rupp <rupp@gnat.com>
8974 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
8975 argument to getcwd; use fixed buffer instead.
8977 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
8979 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
8980 * fixinc/fixinc.wrap: Delete.
8982 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
8984 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
8987 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
8989 * ggc-page.c (struct globals): Add new fields to keep track of the
8990 total allocated memory and overhead.
8991 (ggc_print_statistics): Print them.
8992 (ggc_alloc): Keep track of the total allocated memory and the
8995 * tree.c (dump_tree_statistics): Increase spacing.
8996 (enum tree_node_kind): Move to ...
8997 * tree.h (enum tree_node_kind): ... here.
8998 (tree_node_counts, tree_node_sizes): Declare.
9000 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
9002 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
9004 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
9006 PR optimization/11440
9007 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
9010 2003-07-14 Alan Modra <amodra@bigpond.net.au>
9012 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
9013 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
9014 (emit_group_load, emit_group_store): Adjust declarations.
9015 Remove most occurrences of #ifdef TREE_CODE.
9016 * expr.c (emit_group_load): Add "type" param, and use
9017 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
9018 aligned accesses if !SLOW_UNALIGNED_ACCESS.
9019 (emit_group_store): Likewise.
9020 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
9021 emit_group_load and emit_group_store calls.
9022 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
9023 BLOCK_REG_PADDING to determine whether we need endian_correction.
9024 (load_register_parameters): Localize vars. Handle shifting of
9025 small values to the correct end of regs. Adjust emit_group_load
9027 (expand_call, emit_library_call_value_1): Adjust emit_group_load
9028 and emit_group_store calls.
9029 * function.c (assign_parms): Set mem alignment for stack slots.
9030 Adjust emit_group_store call. Store values at the "wrong" end
9031 of regs to the stack. Use BLOCK_REG_PADDING.
9032 (locate_and_pad_parm): Save where_pad.
9033 (expand_function_end): Adjust emit_group_load call.
9034 * stmt.c (expand_value_return): Adjust emit_group_load call.
9035 * Makefile.in (calls.o): Depend on $(OPTABS_H).
9036 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
9037 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
9038 (MUST_PASS_IN_STACK): Define.
9039 (BLOCK_REG_PADDING): Define.
9040 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
9041 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
9042 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
9043 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
9044 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
9046 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
9048 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
9050 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9052 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
9053 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
9055 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
9058 * toplev.c: Don't cut off option names.
9060 2003-07-13 Andreas Jaeger <aj@suse.de>
9062 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
9063 to integer of different size.
9065 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
9067 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
9068 to (eq (and X 1) 0).
9070 2003-07-13 Andreas Jaeger <aj@suse.de>
9072 * config.gcc: Add pmmintrin.h for x86_64-*-*.
9074 2003-07-13 Zack Weinberg <zack@codesourcery.com>
9076 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
9077 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
9078 list. Move these all together down by cpplib.
9080 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
9081 definition of CPPCHAR_SIGNED_T.
9083 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
9084 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
9085 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
9087 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
9088 * cppinit.c (cpp_create_reader): Likewise.
9090 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
9091 * cpptrad.c: Likewise. All callers changed.
9092 * cpplib.c: All callers changed.
9093 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
9094 * hashtable.h: Define GTY(x) to nothing here too.
9096 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9098 * stor-layout.c (compute_record_mode): Remove very obsolete test
9099 that forces BLKmode for records with fields crossing word boundary.
9101 2003-07-13 Zack Weinberg <zack@codesourcery.com>
9103 * Makefile.in: Remove orphan reference to acconfig.h.
9105 2003-07-13 Andreas Jaeger <aj@suse.de>
9107 * cgraphunit.c: Convert prototypes to ISO C90.
9109 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
9111 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
9113 * fixinc/fixincl.x: Rebuild.
9115 2003-07-12 Zack Weinberg <zack@codesourcery.com>
9117 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
9118 i?86-*-*. Use correct name of cache variable.
9119 * configure: Regenerate.
9121 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
9123 * config/alpha/alpha.c: Fix comment typos.
9124 * config/alpha/alpha.md: Likewise.
9125 * config/arm/arm.c: Likewise.
9126 * config/arm/arm.md: Likewise.
9127 * config/arm/lib1funcs.asm: Likewise.
9128 * config/avr/avr.md: Likewise.
9129 * config/arm/README-interworking: Fix typos.
9131 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
9133 * c-format.c: Fix comment formatting.
9134 * c-typeck.c: Likewise.
9135 * coverage.c: Likewise.
9136 * cppcharset.c: Likewise.
9137 * cpplib.c: Likewise.
9138 * dbxout.c: Likewise.
9139 * gcov-io.h: Likewise.
9140 * toplev.c: Likewise.
9142 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
9144 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
9147 2003-07-12 Zack Weinberg <zack@codesourcery.com>
9149 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
9150 uses three-argument AC_DEFINE so no acconfig.h entries are
9152 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
9153 which contains the GAS version number as a scaled integer.
9154 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
9155 ability to check for ELF assembler.
9156 (gcc_GAS_CHECK_FEATURE): New macro.
9157 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
9158 assembler feature checks using gcc_GAS_CHECK_FEATURE.
9159 Use three-argument AC_DEFINE everywhere.
9160 * acconfig.h: Deleted.
9161 * config.in, configure: Regenerate.
9163 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
9165 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
9167 * fixinc/fixincl.x: Regenerate.
9169 * fixinc/inclhack.def (gnu_types): Improve comment.
9171 2003-07-12 Andreas Jaeger <aj@suse.de>
9173 * fp-test.c (main): Use ISO C90 prototype.
9175 * version.c: Remove unneded include of ansidecl.h.
9177 * cgraph.h: Convert prototypes to ISO C90.
9178 * cgraph.c: Likewise.
9179 * fix-header.c: Likewise.
9181 * protoize.c: Likewise.
9183 2003-07-12 Jan Hubicka <jh@suse.cz>
9185 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
9188 2003-07-12 Jan Hubicka <jh@suse.cz>
9189 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
9191 * cgraph.c (cgraph_max_uid): New global variable.
9192 (cgraph_node): Set uid field.
9193 (create_edge): Keep inline flags consistent.
9194 (dump_cgraph): Dump more info.
9195 * cgraph.h (struct cgraph_local_info): Remove inline_many and
9196 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
9197 (struct cgraph_global_info): Add insns, calls, cloned_times,
9199 (struct cgraph_node): Add uid.
9200 (struct cgraph_edge): Add inline_call.
9201 (cgraph_max_uid, cgraph_inline_p): Declare.
9202 * cgraph.c: Include params.h and fibheap.h
9203 (cgraph_mark_functions_to_inline_once): Kill.
9204 (INSNS_PER_CALL): New constant.
9205 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
9207 (cgraph_finalize_function): Do not analyze inlining.
9208 (cgraph_finalize_compilation_unit): Set inlining attributes.
9209 (cgraph_mark_functions_to_output): More consistency checks.
9210 (cgraph_optimize_function): Set current_function_decl to NULL.
9211 (cgraph_expand_function): Use new inline flags.
9212 (cgraph_postorder): Expand from cgraph_expand_functions.
9213 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
9214 (cgraph_inlined_into, cgraph_inlined_callees,
9215 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
9216 cgraph_mark_inline, cgraph_check_inline_limits,
9217 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
9218 cgraph_decide_inlining, cgraph_inline_p): New functions.
9219 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
9220 PARAM_INLINE_UNIT_GROWTH): New parameters.
9221 * tree-inline.c (struct inline_data): New field current_decl.
9222 (expand_call_inline): Avoid forward declarations; use
9223 inlinable_function_p.
9224 (optimize_inline_calls): Set id.current_decl.
9226 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
9228 * configure.in: Remove wrongly added definition of
9230 * configure: Regenerate.
9232 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9234 * rtl.def (NOTE): Do not use padding.
9236 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
9238 * doc/install.tex: Update required binutils for i?86-*-linux*
9240 2003-07-11 Richard Henderson <rth@redhat.com>
9242 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
9244 2003-07-11 Mark Mitchell <mark@codesourcery.com>
9246 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
9247 TRANSLATION_UNIT_DECL as top_level.
9249 2003-07-11 Jakub Jelinek <jakub@redhat.com>
9251 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
9252 then fall back to cmpstrM.
9253 * builtins.c (expand_builtin_memcmp): Likewise.
9254 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
9255 (s390_expand_cmpmem): ... this.
9256 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
9257 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
9258 from cmpstr* patterns. Rename call to s390_expand_cmpstr
9259 to s390_expand_cmpmem.
9260 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
9261 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
9263 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
9265 * doc/md.texi (cmpstrM): Describe as String compare insn, not
9269 2003-07-11 Loren James Rittle <ljrittle@acm.org>
9271 * config/i386/freebsd.h (SET_ASM_OP): Remove.
9272 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
9273 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
9274 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
9276 2003-07-11 Richard Henderson <rth@redhat.com>
9278 * function.c (assign_parms): Don't recombine complex args if
9279 fnargs is unchanged from orig_fnargs.
9280 (split_complex_args): Return args without complex before copying.
9281 Re-layout the modified parameters.
9283 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
9285 * regclass.c (choose_hard_reg_mode): Add third argument.
9286 Changed all callers.
9287 * rtl.h (choose_hard_reg_mode): Update declaration.
9288 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
9289 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
9291 2003-07-11 Geoffrey Keating <geoffk@apple.com>
9293 * c-decl.c (finish_decl): Handle 'used' here...
9294 * cgraphunit.c (cgraph_finalize_function): ... and here ...
9295 * c-common.c: (handle_used_attribute): ... not here.
9297 * configure.in (onstep): Support --enable-intermodule.
9298 * Makefile.in (OBJS-common): New.
9300 (OBJS-archive): New.
9301 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
9302 (OBJS-onestep): New.
9303 (libbackend.a): Support @onestep@.
9304 (libbackend.o): New.
9305 * configure: Regenerate.
9307 * c-common.h (c_reset_state): New prototype.
9308 (c_parse_file): New prototype.
9309 (finish_file): Move prototype from c-tree.h.
9310 * c-decl.c: Include <hashtab.h>.
9311 (builtin_decls): New.
9312 (current_file_decl): New.
9313 (duplicate_decls): Add extra parameter. Change all callers. Don't
9314 output duplicate common symbols.
9315 (link_hash_hash): New.
9316 (link_hash_eq): New.
9317 (poplevel): Handle popping of the top level.
9318 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
9319 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
9320 (pushdecl_top_level): Likewise.
9321 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
9322 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
9323 (finish_decl): Handle TRANSLATION_UNIT_DECL.
9324 (merge_translation_unit_decls): New.
9325 (c_write_global_declarations): New.
9326 (c_reset_state): New.
9327 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
9328 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
9329 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
9330 TRANSLATION_UNIT_DECL.
9331 (c_objc_common_finish_file): Call merge_translation_unit_decls.
9332 * c-opts.c (in_fnames): Rename from in_fname.
9333 (c_common_decode_option): Handle multiple input filenames.
9334 (c_common_post_options): Likewise.
9335 (c_common_parse_file): Likewise; also, call c_parse_file rather than
9337 * c-parse.in: Move cleanup code to c_parse_file.
9338 (free_parser_stacks): Move contents to c_parse_file.
9339 (c_parse_file): New.
9340 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
9342 (C_DECL_FILE_SCOPE): New.
9343 (finish_file): Move prototype to c-common.h.
9344 (merge_translation_unit_decls): New prototype.
9345 (comptypes): Add extra parameter to prototype.
9346 (c_write_global_declarations): New prototype.
9347 * c-typeck.c (tagged_types_tu_compatible_p): New.
9348 (function_types_compatible_p): Add extra parameter, change all callers.
9349 (type_lists_compatible_p): Likewise.
9350 (comptypes): Likewise.
9351 (struct tagged_tu_seen): New.
9352 (tagged_tu_seen_base): New.
9353 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
9354 (c_mark_addressable): Remove #if 0 code.
9355 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
9356 comment explaining why it shouldn't have to.
9357 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
9359 * cppinit.c (cpp_read_next_file): New.
9360 (cpp_read_main_file): Use it.
9361 * cpplib.c (undefine_macros): New.
9362 (cpp_undef_all): New.
9363 * cpplib.h (cpp_read_next_file): Prototype.
9364 (cpp_undef_all): Prototype.
9365 * langhooks-def.h (write_global_declarations): Remove prototype.
9366 * toplev.h (write_global_declarations): Add prototype.
9367 * tree.c (decl_type_context): Use switch statement, handle
9368 TRANSLATION_UNIT_DECL.
9369 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
9370 (TRANSLATION_UNIT_DECL): New kind of tree.
9371 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
9372 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
9373 * doc/invoke.texi: Make attempt to document new functionality.
9375 2003-05-19 Per Bothner <bothner@apple.com>
9377 * gcc.c (combine_inputs): New.
9378 (process_command): Set combine_inputs.
9379 (do_spec_1): Handle combine_inputs.
9382 2003-07-10 James E Wilson <wilson@tuliptree.org>
9384 PR optimization/9745
9385 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
9386 loop_insn_emit_before.
9387 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
9389 2003-07-10 Zack Weinberg <zack@codesourcery.com>
9391 * cppcharset.c: Fix comment.
9392 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
9393 (EILSEQ): #define to EINVAL if not already defined.
9394 (convert_using_iconv): #if out when !HAVE_ICONV.
9395 (init_iconv_desc): Handle !HAVE_ICONV here...
9396 (cpp_init_iconv): ...not here.
9398 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
9400 * common.opt: More --help messages.
9401 * opts.c (print_help): Use puts().
9402 * toplev.c (f_options): Remove help text.
9403 (display_help): Don't dump f_options.
9405 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
9407 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
9408 Move i?86-*-interix* to the don't-fix list.
9409 * fixinc/fixinc.interix: Delete with extreme prejudice.
9411 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
9414 * doc/install.texi: Document requirements for ia64-*-hpux* target.
9416 2003-07-10 Roger Sayle <roger@eyesopen.com>
9418 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
9420 2003-07-10 Zack Weinberg <zack@codesourcery.com>
9422 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
9423 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
9424 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
9425 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
9426 convert_no_conversion, convert_using_iconv): New functions.
9427 (APPLY_CONVERSION): New macro.
9428 (struct conversion, conversion_tab): New data structure.
9429 (init_iconv_desc): Check conversion_tab for a custom conversion
9430 primitive before trying to use iconv.
9431 (convert_cset): Deleted.
9432 (cpp_init_iconv): Use UTF- terminology, not UCS-.
9433 (_cpp_destroy_iconv): Update to match.
9434 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
9435 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
9436 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
9437 (_cpp_interpret_string_notranslate): New function, moved here
9440 * cpphash.h (convert_f, struct cset_converter): New types.
9441 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
9442 are now struct cset_converter, not bare iconv_t.
9444 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
9445 all callers changed.
9447 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
9449 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
9450 to opts.sh command line.
9451 * opts.sh: Write to temporary files with a move-if-change at the end.
9453 2003-07-10 Denis Chertykov <denisc@overta.ru>
9454 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9456 * combine.c (gen_binary): Handle the CLOBBER rtx and
9457 don't build a binary operation with it.
9459 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9461 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
9462 store_killed_after, store_killed_before): Keep track of the correct
9463 dependency function to use.
9465 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
9466 * toplev.c (do_compile): Don't try to open dump files before
9467 lang_dependent_init initializes dump_base_name.
9469 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9471 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
9473 * config/frv/frv.c (frv_expand_builtin): Likewise.
9474 * config/sh/sh.c (sh_media_init_builtins): Likewise.
9476 2003-07-09 Mark Mitchell <mark@codesourcery.com>
9479 * doc/invoke.texi (C++ Dialect Options): Change documentation of
9482 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
9484 * tm.texi (RETURN_ADDR_OFFSET): Document.
9486 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
9488 * gcov-io.h: Update documentation.
9489 (GCOV_UNSIGNED2STRING): New.
9490 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
9491 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
9492 GCOV_TAG_SUMMARY_LENGTH): Adjust.
9493 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
9494 GCOV_TAG_COUNTER_NUM): New.
9495 (GCOV_BLOCK_SIZE): Number of words.
9496 (gcov_var): Adjust buffer type.
9497 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
9498 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
9499 count, not byte count.
9500 (gcov_open): Adjust overread init.
9501 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
9502 gcov_write_string, gcov_write_tag, gcov_write_length,
9503 gcov_write_tag_length): Adjust.
9504 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
9505 (gcov_sync, gcov_seek): Adjust.
9506 * gcov-dump.c (print_usage): Show gcc version only.
9507 (dump_file): Use GCOV_UNSIGNED2STRING.
9508 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
9509 * gcov.c (print_version): Show gcc version only.
9510 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
9511 GCOV_TAG_*_NUM macros.
9512 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
9513 GCOV_TAG_COUNTER_LENGTH.
9514 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
9515 Use GCOV_TAG_COUNTER_NUM.
9516 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
9517 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
9519 2003-07-10 Andreas Schwab <schwab@suse.de>
9521 * gcov-dump.c (dump_file): Fix missing address operator.
9523 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
9526 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
9528 (fold_single_bit_test): If sign_bit_p() fails, assume that the
9529 bit being tested is not a sign bit.
9531 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
9533 * config/h8300/h8300.md (a peephole2): New.
9535 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
9537 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
9538 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
9539 from ld-linux.so.2 to ld.so.1.
9540 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
9541 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
9542 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
9543 nor -Wl,-rpath-link.
9544 (LIB_SPEC): Add -rpath-link if !static.
9545 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
9546 * config/mn10300/mn10300.c (mn10300_protect_label): New
9548 * config/mn10300/linux.h (PRINT_OPERAND,
9549 PRINT_OPERAND_ADDRESS): Set it during their execution.
9550 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
9551 mn10300_protect_label is set.
9552 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
9554 (LIB_SPEC, STARTFILE_SPEC): Define.
9555 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
9556 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
9557 FLOAT_BIT_ORDER_MISMATCH.
9558 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
9559 * config.gcc (am33_2.0-*-linux*): Added.
9560 * config/mn10300/linux.h: New.
9561 * config/mn10300/t-linux: New.
9563 2003-07-10 Andreas Jaeger <aj@suse.de>
9565 * fold-const.c: Properly wrap prototypes.
9567 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
9569 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
9570 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
9572 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
9573 * config/mn10300/mn10300.h: GTY-declare it.
9574 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
9575 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
9576 prototype. Use incoming RTL argument.
9577 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
9578 * config/mn10300/mn10300.md (int_label): Move C statements...
9579 (GOTaddr2picreg): ... here.
9580 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
9581 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
9582 * config/mn10300/mn10300.c (mn10300_encode_section_info):
9583 ... here. New function.
9584 (TARGET_ENCODE_SECTION_INFO): Define to it.
9585 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
9586 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
9588 (mn10300_loadPC): Define as insn splittable after reload.
9589 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
9590 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
9591 be defined in .rodata even in PIC, now that the assembler
9593 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
9594 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
9595 symbol take an underscore prefix.
9596 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
9597 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
9598 legitimize_pic_address): Declare.
9599 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
9600 the PIC register as fixed.
9601 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
9602 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
9604 (LEGITIMATE_PIC_OPERAND_P): Define.
9605 (PIC_OFFSET_TABLE_REGNUM): Define.
9606 (GOT_SYMBOL_NAME): Define.
9607 (SYMBOLIC_CONST_P): Define.
9608 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
9610 (MN10300_GLOBAL_P): Test it.
9611 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
9612 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
9613 * config/mn10300/mn10300.c (print_operand): Handle unspec.
9614 (expand_prologue): Set PIC register.
9615 (call_address_operand): Don't match SYMBOL_REFs in PIC.
9616 (legitimize_address): Call legitimize_pic_address.
9617 (legitimize_pic_address): New fn.
9618 (legitimate_pic_operand_p): New fn.
9619 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
9620 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
9621 UNSPEC_PLT): New constants.
9622 (pop_pic_reg): New insn.
9623 (movsi): Adjust non-PIC addresses.
9624 (builtin_setjmp_receiver): Restore the PIC register.
9626 (call): Adjust non-PIC addresses.
9627 (int_label, GOTaddr2picreg): New expands.
9628 (am33_loadPC): New insn.
9629 (mn10300_loadPC): New expand.
9630 (call_next_insn): New insn.
9631 (add_GOT_to_pic_reg): New expand.
9632 (symGOT2reg, symGOT2reg_i): New expands.
9633 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
9634 (sym2PIC, sym2PLT): New expands.
9636 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
9638 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
9639 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
9640 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
9641 to flag_unsafe_math_optimizations.
9642 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
9643 * config/mn10300/mn10300.c (expand_prologue): Mark
9644 FP-register-saving insns as frame-related.
9645 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
9646 * config/mn10300/mn10300.c
9647 (mn10300_get_live_callee_saved_regs): Don't search past
9648 LAST_EXTENDED_REGNUM.
9649 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
9650 * config/mn10300/mn10300.md: Remove excessive line breaks from
9651 `@' output patterns that were accounted as additional
9653 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
9654 Re-introduce changes accidentally removed in Richard Sandiford's
9656 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
9657 Re-instate am33-2 lost in merge from net GCC.
9658 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
9659 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
9660 floating-point registers.
9661 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
9662 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
9663 pessimizations that had gone in on 2000-05-08.
9664 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
9665 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
9666 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
9667 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
9669 * (movhi): Likewise.
9670 * (movsi): Likewise.
9671 * (movsf): Likewise.
9672 * (movdi): Likewise.
9673 * (movdf): Likewise.
9674 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
9675 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
9676 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
9677 (expand_prologue, expand_epilogue): Save and restore FP regs.
9678 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
9679 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
9680 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
9681 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
9682 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
9684 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
9685 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
9686 Discourage the two-argument, longer opcodes.
9687 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
9689 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
9690 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
9691 * config/mn10300/mn10300.md (cmpsf): New pattern.
9692 (branch): Test mdep.fpCC and output fbCC.
9693 * config/mn10300/mn10300.c (print_operand): Output conditions.
9694 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
9695 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
9696 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
9697 mulsf3, divsf3): Use the `F' constraint for FP values.
9698 * config/mn10300/mn10300.c (const_1f_operand): New function.
9699 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
9700 * config/mn10300/mn10300.md (sqrtsf2): New expand.
9701 (rsqrtsf2): New insn.
9702 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
9703 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
9705 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
9706 * config/mn10300/mn10300.md (abssf2, negdf2): On
9707 TARGET_AM33_2, expand to...
9708 (abssf2_am33_2, negdf2_am33_2): New insns.
9709 (addsf3, subsf3, mulsf3, divsf3): Likewise.
9710 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
9711 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
9712 movdi, movdf): Added FP regs.
9713 * invoke.texi (-mam33-2, -mno-am33-2): Document.
9714 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
9715 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
9717 (REGNO_AM33_2_FP_P): Renamed to...
9718 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
9719 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
9720 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
9721 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
9722 regs from GENERAL_REGS.
9723 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
9724 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
9725 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
9726 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
9727 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
9728 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
9730 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
9731 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
9732 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
9733 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
9734 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
9735 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
9736 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
9737 AM33/2.0 floating-point registers.
9738 (CONDITIONAL_REGISTER_USAGE): Adjust.
9739 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
9740 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
9741 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
9742 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
9743 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
9744 (MULTILIB_DIRNAMES): Likewise.
9745 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
9746 `__AM33_2__' when `-mam33-2' is given.
9747 (TARGET_AM33_2): Define.
9748 (TARGET_SWITCHES): Adjust.
9749 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
9752 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
9754 * doc/install.texi: Add missing @.
9756 2003-07-09 Bob Wilson <bob.wilson@acm.org>
9758 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
9760 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
9763 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
9765 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
9768 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
9769 "x-crtfini.o" with "crtinit.o", "crtfini.o".
9771 * fixinc/inclhack.def (limits_ifndefs): Add select test.
9772 * fixinc/fixincl.x: Rebuild.
9774 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
9775 * fixinc/fixincl.x: Rebuild.
9777 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
9779 * doc/install.texi (Configuration): Document the valgrind option
9780 to --enable-checking.
9782 2003-07-09 Jan Hubicka <jh@suse.cz>
9784 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
9786 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9788 * c-lex.c (cb_ident): Cast cstr.text to const char *.
9790 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
9792 * gcov-io.h: Update documentation.
9793 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
9795 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
9796 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
9797 (struct gcov_var): Change buffer's type. Add endian flag.
9798 (gcov_open): Remove mode in libgcov.
9799 (gcov_magic): Prototype.
9800 * gcov-io.c (from_file): New.
9801 (gcov_open): Clear endian flag.
9803 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
9805 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
9806 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
9807 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
9808 * gcov-iov.c (main): Correct cast.
9809 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
9811 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
9812 (coverage_init): Use GCOV_NOTE_SUFFIX.
9813 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
9814 Rename to gcov_version, and return flag.
9815 (gcov_exit): Use gcov_version.
9816 (__gcov_init): Use gcov_version.
9817 * Makefile.in (coverageexts): Update.
9818 * gcov.c (print_version): Remove endianness conversion.
9819 (create_file_names): Use GCOV_NOTE_SUFFIX.
9820 (read_graph_file): Use gcov_magic.
9821 (read_count_file): Likewise.
9822 * gcov-dump.c (dump_file): Remove endianness conversion, use
9825 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
9827 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
9829 * configure: Regenerated.
9830 * Makefile.in (ALL_CFLAGS): Correct its comment.
9832 2003-07-08 Mark Mitchell <mark@codesourcery.com>
9834 * fold-const.c (make_range): Do not access operand 1 for a
9835 zero-operand operator.
9837 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
9839 * toplev.c (warn_dummy, W_options): Die.
9840 (display_help): Don't print W_options.
9841 * common.opt: Add W_options help from toplev.c.
9843 2003-07-09 Andreas Jaeger <aj@suse.de>
9845 * opts.c (wrap_help): Only pass int arguments as arguments to
9846 printf's '*' modifier. Change argument of function.
9848 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
9850 * doc/invoke.texi: Fix misspelling of "@item".
9852 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
9854 * config/i386/i386.md: Remove an old comment about
9857 2003-07-09 Jan Hubicka <jh@suse.cz>
9859 * cgraph.c (cgraph_node_name): New function.
9860 (dump_cgraph): Use it.
9861 * cgraph.h (cgraph_dump_file): Declare.
9862 (cgraph_node_name): Declare.
9863 * cgraphunit.c: Include timevar.h
9864 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
9865 (cgraph_optimize_function): Use TV_INTEGRATION.
9866 (cgraph_mark_local_functions): reorganize dumps.
9867 (cgraph_mark_functions_to_inline_once): Likewise.
9868 (cgraph_optimize): Likewise; use timevar.
9869 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
9870 * toplev.c (dump_file_index): Add DFI_cgraph.
9871 (dump_file_info): Likewise.
9872 (cgraph_dump_file): New global variable.
9873 (do_compile): Open and close cgraph dump.
9874 * invoke.texi (-d): Document new flag; renumber.
9876 2003-07-08 Roger Sayle <roger@eyesopen.com>
9879 * calls.c (emit_call_1): Don't bother popping the arguments off of
9880 the stack after a noreturn function call; The adjustment is dead.
9881 (expand_call): Likewise.
9883 2003-07-08 Geoffrey Keating <geoffk@apple.com>
9885 * expr.c (MOVE_MAX_PIECES): Move from here...
9886 * defaults.h (MOVE_MAX_PIECES): ... to here.
9888 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
9890 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
9892 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9894 * genattr.c (internal_dfa_insn_code): Don't prototype.
9895 * genattrtab.c (attr_desc): Add `static_p' field.
9896 (expand_units): Make blockage range and ready cost functions
9898 (write_attr_get): Don't add extern prototypes in C file. Mark
9899 static functions as appropriate.
9900 (find_attr, make_internal_attr): Initialize static_p.
9901 * genattrtab.h (ATTR_STATIC): New macro.
9902 * genautomata.c (output_internal_reset_func): Mark output function
9904 (make_internal_dfa_insn_code_attr): Mark output function as static.
9906 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9908 * genattrtab.h: Add new macros for attr `special' flags.
9909 * genattrtab.c (attr_desc): Reorder/resize fields better.
9910 Use attr `special' macros in all calls to make_internal_attr.
9911 * genautomata.c: Likewise.
9913 2003-07-09 Jan Hubicka <jh@suse.cz>
9915 * c-common.c (c_estimate_num_insns_1): New static function.
9916 (c_estimate_num_insns): New global function.
9917 * c-common.h (DECL_NUM_STMTS): Rename to...
9918 (DECL_ESTIMATED_INSNS): ... this.
9919 (c_estimate_num_insns): Declare.
9920 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
9921 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
9922 * c-semantics.c (add_stmt): Do not account statements.
9923 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
9925 * langhooks.h (lang_hooks_for_tree_inlining): Add
9927 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
9929 (max-inline-insns): set to 300.
9930 (min-inline-insns): set to 10.
9931 * tree-inline.c (struct inline_data): Rename inlined_stmts to
9933 (INSNS_PER_STMT): Kill.
9934 (inlinable_function_p): Compute and store body size.
9935 (expand_call_inline): Likewise.
9936 (optimize_inline_calls): Likewise.
9938 2003-07-08 James E Wilson <wilson@tuliptree.org>
9941 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
9942 loop over new variable t2 instead of t.
9944 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
9947 * config/i386/winnt.c: Replace use of error(), warning() with
9948 error_with_decl(), warning_with_decl(), throughout.
9950 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
9952 * opts.c (wrap_help): Use unsigned int, not size_t.
9954 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
9956 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
9957 as .file/.loc directives are incompatible with linker relaxation.
9959 2003-07-08 Zack Weinberg <zack@codesourcery.com>
9961 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
9962 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
9963 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
9964 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
9965 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
9966 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
9967 Escape { and } characters which are not part of range expressions.
9968 * fixinc/fixincl.x: Regenerate.
9969 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
9971 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
9974 * tree-inline.c (find_alloca_call): Use
9975 walk_tree_without_duplicates, instead of walk_tree.
9976 (find_builtin_longjmp_call): Likewise.
9977 * c-objc-common.c (c_cannot_inline_fn): Likewise.
9978 * c-semantics.c (find_reachable_label): Likewise.
9980 2003-07-08 Jakub Jelinek <jakub@redhat.com>
9983 * config/i386/i386.c (ix86_check_movabs): New function.
9984 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
9985 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
9986 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
9988 2003-07-08 Chris Demetriou <cgd@broadcom.com>
9990 * Makefile.in (install-po): Cope with empty CATALOGS.
9992 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
9994 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
9995 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
9996 (SECTION_FUNCTION_TEMPLATE): Delete.
9997 * config/mips/elf.h: As for elf64.h.
9998 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
9999 * config/mips/linux.h: As for elf.h
10000 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
10001 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
10002 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
10003 of in_sdata from current_section_name and current_section_flags.
10004 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
10005 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
10006 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
10007 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
10008 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
10009 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
10010 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
10011 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
10012 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
10013 (override_options): Remove setting of MASK_GPOPT.
10014 (mips_output_external): Use mips_in_small_data_p to check whether a
10015 symbol needs an .extern directive. Don't emit such directives for
10016 TARGET_EXPLICIT_RELOCS.
10017 (mips_declare_object): Update accordingly.
10018 (mips_select_rtx_section): Call named_section rather than
10019 SMALL_DATA_SECTION.
10020 (mips_select_section): Use default_elf_section_section for everything
10021 except .text string constants.
10022 (mips_in_small_data_p): New function.
10023 (mips_encode_section_info): Remove small data handling.
10024 (mips_unique_section): Delete.
10025 (iris6_section_type_flags): New function.
10026 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
10028 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10031 * pa.md: Disparage all mtsar constraints.
10032 (extzv, extv, insv): Don't fail on length of {32|64}.
10034 2003-07-08 Zack Weinberg <zack@codesourcery.com>
10036 * system.h: Poison MAP_CHARACTER.
10037 * config/i370/i370-protos.h (mvs_map_char): Delete.
10038 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
10039 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
10040 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
10042 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
10044 * toplev.c (randomize): Correct call to time().
10046 2003-07-08 Jakub Jelinek <jakub@redhat.com>
10048 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
10049 REG_EQUIV notes as well.
10051 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
10053 * doc/md.texi: Fix the description of addmodecc.
10055 2003-07-07 Zack Weinberg <zack@codesourcery.com>
10057 * Makefile.in (top_builddir): Set to "..", not ".".
10058 (INTLLIBS, INTLDEPS): Delete.
10059 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
10060 (LIBDEPS): Add $(LIBICONV_DEP).
10061 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
10062 (INCLUDES): Replace -I../intl with @INCINTL@.
10063 ($(top_builddir)/intl/libintl.a): Delete rule.
10064 (stage2-start, stage3-start, stage4-start, stageprofile-start,
10065 stagefeedback-start): Use $$ for variable to be evaluated by
10067 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
10068 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
10069 * aclocal.m4: sinclude ../config/progtest.m4. Add
10070 contents of lcmessage.m4 from gettext distro.
10071 * configure.in: Check for wchar.h and setlocale. Set
10072 LIBICONV_DEP to the empty string and substitute it.
10073 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
10074 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
10075 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
10076 in $LIBINTL, to avoid linking it twice.
10077 * configure, config.in: Regenerate.
10079 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
10081 * fixinc/mkfixinc.sh: Remove winnt support.
10082 * fixinc/fixinc.winnt: Delete with extreme prejudice.
10084 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
10086 * Makefile.in: Update.
10087 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
10088 * c.opt: Update documentation.
10089 * common.opt: Add some help text.
10090 * opts.c: Include intl.h.
10091 (wrap_help, print_help): New.
10092 (find_opt, handle_option, common_handle_option): opt_text now
10093 contains the '-'. Use print_help to output help.
10094 * opts.h (struct cl_option): New member "help".
10095 * opts.sh: Update to handle help text output and to prepend
10097 * toplev.c (display_help): Remove some help text.
10099 2003-07-07 David Edelsohn <edelsohn@gnu.org>
10100 Fariborz Jahanian <fjahanian@apple.com>
10102 * configure.in: Test for PowerPC mfcr field support in assembler.
10103 * config.in, configure: Regenderated.
10105 * config/rs6000/power4.md: Add mfcrf reservation.
10106 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
10107 * config/rs6000/rs6000.c (mfcr_operation): Define.
10108 (print_operand): Add 'Q' case for mfcrf.
10109 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
10110 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
10111 (movcc_internal1): Emit optional field operand for mfcr and set
10112 "type" attribute appropriately.
10113 (mfcr SCC): Likewise.
10114 (movesi_from_cr_one): New.
10116 2003-07-07 Roger Sayle <roger@eyesopen.com>
10118 * config/i386/i386.md: Correct check-in of incorrect version.
10120 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10122 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
10123 adjacent stdio calls.
10124 * c-decl.c (c_print_identifier): Likewise.
10125 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
10126 * print-rtl.c (print_rtx): Likewise.
10127 * print-tree.c (print_node_brief, print_node): Likewise.
10128 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
10130 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
10131 * config.in, configure: Regenerated.
10133 2003-07-07 Roger Sayle <roger@eyesopen.com>
10136 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
10137 Changed to define_expand patterns that copy operand[1] to prevent
10138 it from being clobbered before emitting an atan2?f3_1 insn.
10139 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
10140 patterns that actually specify the behaviour of x87's FPATAN.
10142 2003-07-07 Jakub Jelinek <jakub@redhat.com>
10144 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
10145 clearing of SYMBOL_FLAG_LOCAL bit.
10146 If vcall_offset fits into signed 16-bit immediate, use
10147 one instruction for both addition and load.
10149 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
10151 * opts.c (common_handle_option): Correct handling of the
10152 -falign- switches that do and don't take an argument.
10154 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
10156 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
10158 (pushhi1_h8300hs): Likewise.
10160 2003-07-07 Andreas Jaeger <aj@suse.de>
10162 * genextract.c: Convert remaining prototypes to ISO C90.
10164 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
10165 * fold-const.c (fold_single_bit_test): Likewise.
10166 * diagnostic.c (default_diagnostic_finalizer): Likewise.
10167 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
10169 * gengtype.c (write_array): Generate ISO C90 prototypes.
10171 * genflags.c (gen_proto): Generate ISO C90 prototypes.
10173 2003-07-07 Roger Sayle <roger@eyesopen.com>
10175 PR optimization/11059
10176 * expr.c (can_store_by_pieces): Return true if length is zero.
10177 (store_by_pieces): If length is zero and endp is two, abort,
10178 othwerise, if length is zero and endp is not two, return "to".
10179 (clear_by_pieces): Do nothing if length is zero.
10180 (clear_storage): Do nothing if length is zero.
10181 (store_constructor): Simplify code when size is zero, or the
10182 target has already been cleared. This avoids emitting a
10183 blockage instruction when initializing empty structures.
10185 2003-07-07 Andreas Jaeger <aj@suse.de>
10187 * mips-tfile.c: Convert prototypes to ISO C90.
10188 * mips-tdump.c: Convert prototypes to ISO C90.
10190 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
10192 * rtl.h (emit_line_note): Take a location_t.
10193 (emit_line_note_force): Remove.
10194 (set_file_and_line_for_statement): Take a location_t.
10195 * tree.g (emit_line_note): Take a location_t.
10196 * emit-rtl.c (emit_line_note): Take a location_t.
10197 (emit_line_note_force): Remove.
10198 * function.c (init_function_start): Adjust emit_line_note call.
10199 (expand_function_end): Use force_next_line_note, not
10200 emit_line_note_force.
10201 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
10202 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
10203 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
10204 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
10205 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
10206 genrtl_continue_stmt, genrtl_switch_stmt,
10207 genrtl_asm_stmt): Likewise.
10208 * expr.c (expand_expr): Likewise.
10209 * integrate.c (expand_inline_function): Likewise.
10210 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
10211 (expand_decl_init): Adjust emit_line_note call.
10213 2003-07-07 Dale Johannesen <dalej@apple.com>
10215 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
10217 2003-07-07 Andreas Jaeger <aj@suse.de>
10219 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
10220 * config/i386/i386.c: Likewise.
10222 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
10224 * config/h8300/h8300.md: Use gen_int_mode instead of
10225 GEN_INT (trunc_int_for_mode (...)).
10227 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
10229 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
10230 2 bytes and then subtract 2 from the stack pointer.
10231 (pushhi1_h8300hs): Likewise.
10233 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
10235 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
10237 * configure: Regenerated.
10238 * Makefile.in: Remove extraneous comment.
10239 * toplev.c (randomize): Protect against potential multiple calls.
10240 * doc/invoke.texi (-frandom-seed): Document use for in coverage
10243 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10244 Eric Botcazou <ebotcazou@libertysurf.fr>
10246 PR optimization/11198
10247 * alias.c (objects_must_conflict_p): Return 1 if the types have
10248 the same alias set, not if the alias sets only conflict.
10250 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
10252 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
10253 (convert_cset): Change inbuf to type ICONV_CONST char.
10254 * Makefile.in (LIBS): Add LIBICONV.
10256 * doc/invoke.texi (-falign-functions): Document that
10257 when n is zero then a machine-dependent default is used.
10258 (-falign-labels): Document that when n is zero then a
10259 machine-dependent default is used and that -falign-labels =1
10260 is equivalent to -fno-align-labels.
10261 (-falign-loops): Likewise.
10262 (-falign-jumps): Likewise.
10264 2003-07-06 Art Haas <ahaas@airmail.net>
10266 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
10267 initializer syntax.
10269 2003-07-06 James E Wilson <wilson@tuliptree.org>
10271 PR optimization/9812
10272 * rtl.h (mem_for_const_double): Delete prototype.
10273 * varasm.c (mem_for_const_double): Delete function.
10274 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
10275 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
10276 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
10277 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
10278 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
10279 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
10280 comment about confused support for XFmode constants.
10282 2003-07-07 Jan Hubicka <jh@suse.cz>
10284 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
10286 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
10288 * config/h8300/h8300.c: Fix comment typos.
10289 * config/h8300/h8300.md: Likewise.
10290 * config/i386/athlon.md: Likewise.
10291 * config/i386/i386.c: Likewise.
10292 * config/i386/pentium.md: Likewise.
10293 * config/ia64/ia64.c: Likewise.
10294 * config/ia64/itanium1.md: Likewise.
10295 * config/ia64/itanium2.md: Likewise.
10296 * config/m32r/m32r.md: Likewise.
10297 * config/m68hc11/m68hc11.c: Likewise.
10298 * config/mcore/mcore.c: Likewise.
10299 * config/mips/sr71k.md: Likewise.
10300 * config/mips/t-iris5-as: Likewise.
10301 * config/mmix/mmix.h: Likewise.
10302 * config/ns32k/ns32k.h: Likewise.
10303 * config/ns32k/NOTES: Fix a typo.
10305 2003-07-06 Andreas Jaeger <aj@suse.de>
10307 * stmt.c: Convert remaining prototypes to ISO C90.
10308 * cfglayout.c: Likewise.
10309 * dbxout.c: Likewise.
10311 * genemit.c: Likewise.
10313 * basic-block.h: Convert prototypes to ISO C90.
10314 * c-parse.in: Likewise.
10315 * c-pragma.h: Likewise.
10316 * c-typeck.c: Likewise.
10317 * cfghooks.h: Likewise.
10318 * cfgloopanal.c: Likewise.
10319 * dbxout.h: Likewise.
10320 * debug.h: Likewise.
10321 * dwarf2asm.h: Likewise.
10322 * gcov.c: Likewise.
10323 * gengtype-lex.l: Likewise.
10324 * sched-int.h: Likewise.
10325 * timevar.c: Likewise.
10327 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
10329 * c-common.h (c_comon_handle_filename,
10330 c_common_missing_arguement): New.
10331 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
10332 LANG_HOOKS_MISSING_ARGUMENT): New.
10333 * c-opts.c (missing_arg): Rename c_common_missing_argument,
10334 update to be an appropriate langhook.
10335 (c_common_handle_option): Don't handle filenames.
10336 (c_common_handle_filename): New.
10337 * hooks.c (hook_void_constcharptr,
10338 hook_bool_constcharptr_size_t_false): New.
10339 * hooks.h (hook_void_constcharptr,
10340 hook_bool_constcharptr_size_t_false): New.
10341 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
10342 LANG_HOOKS_MISSING_ARGUMENT): New.
10343 (LANG_HOOKS_INITIALIZER): Update.
10344 * langhooks.h (struct lang_hooks): Add handle_filename and
10346 * opts.c (handle_option): Don't handle filenames here, but ...
10347 (handle_options): ... here.
10348 (common_handle_option): Don't handle missing arguments here.
10349 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
10350 LANG_HOOKS_MISSING_ARGUMENT): New.
10352 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
10354 * Makfile.in: Remove traces of mbchar.
10355 * c-parse.in (MULTIBYTE_CHARS): Remove.
10356 * config.in (MULTIBYTE_CHARS): Remove.
10357 * configure: Remove --enable-mbchar.
10358 * configure.in: Remove --enable-mbchar.
10359 * mbchar.c, mbchar.h: Remove.
10360 * system.h: Poison MULTIBYTE_CHARS.
10361 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
10362 * config/linux.h (MULTIBYTE_CHARS): Remove.
10363 * config/svr4.h (MULTIBYTE_CHARS): Remove.
10364 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
10366 2003-07-06 Andreas Jaeger <aj@suse.de>
10368 * varray.c (varray_check_failed): Fix typo.
10370 * unroll.c: Convert prototypes to ISO C90.
10371 * varasm.c: Likewise.
10372 * varray.c: Likewise.
10373 * varray.h: Likewise.
10374 * vmsdbgout.c: Likewise.
10375 * xcoffout.c: Likewise.
10376 * xcoffout.h: Likewise.
10378 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
10380 * gcov-io.h: Add a local time stamp.
10381 (struct gcov_info): Add stamp field.
10382 (gcov_truncate): New.
10383 * coverage.c (read_counts_file): Skip the stamp.
10384 (coverage_begin_output): Write the stamp.
10385 (build_gcov_info): Declare and init the stamp.
10386 (coverage_finish): Only unlink data file, if stamp is zero.
10387 * gcov-dump.c (dump_file): Dump the stamp.
10388 * gcov.c (bbg_stamp): New.
10389 (release_structures): Clear bbg_stamp.
10390 (read_graph_file): Read stamp.
10391 (read_count_file): Check stamp.
10392 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
10394 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
10396 * tree.h (default_flag_random_seed): Remove.
10397 * toplev.h (local_tick): Declare.
10398 * tree.c (flag_random_seed, default_flag_random_seed): Move to
10400 (append_random_chars): Don't call default_flag_random_seed.
10401 * toplev.c (flag_random_seed): Define here. Set local_tick.
10402 (local_tick): Define.
10403 (randomize): New, moved from tree.c.
10404 (print_switch_values): Adjust.
10405 (toplev_main): Call randomize.
10407 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
10409 * tree.h (crc32_string): Declare.
10410 * tree.c (append_random_chars): Remove.
10411 (crc32_string): New.
10412 (get_file_function_name_long): Use crc32_string here.
10414 2003-07-06 Andreas Jaeger <aj@suse.de>
10416 * gcc.c: Convert prototypes to ISO C90.
10418 * gcov-dump.c: Likewise.
10419 * gcov-iov.c: Likewise.
10420 * gcse.c: Likewise.
10421 * genattrtab.h: Likewise.
10423 * global.c: Likewise.
10424 * graph.c: Likewise.
10425 * graph.h: Likewise.
10426 * hosthooks.h: Likewise.
10427 * hooks.h: Likewise.
10428 * hooks.c: Likewise.
10429 * hashtable.h: Likewise.
10430 * hashtable.c: Likewise.
10431 * haifa-sched.c: Likewise.
10432 * integrate.h: Likewise.
10433 * integrate.c: Likewise.
10434 * input.h: Likewise.
10435 * ifcvt.c: Likewise.
10436 * jump.c: Likewise.
10437 * langhooks-def.h: Likewise. Add extern to prototypes.
10438 * langhooks.c: Likewise.
10439 * langhooks.h: Likewise.
10441 * local-alloc.c: Likewise.
10442 * loop-init.c: Likewise.
10443 * loop-unroll.c: Likewise.
10444 * loop-unswitch.c: Likewise.
10445 * loop.c: Likewise.
10446 * loop.h: Likewise. Add extern to prototypes.
10447 * machmode.h: Likewise.
10448 * main.c: Likewise.
10449 * mbchar.c: Likewise.
10450 * mbchar.h: Likewise.
10451 * mkdeps.c: Likewise.
10452 * mkdeps.h: Likewise.
10453 * optabs.c: Likewise.
10454 * optabs.h: Likewise.
10455 * output.h: Likewise.
10456 * gccspec.c: Likwise.
10457 * postreload.c: Likewise.
10458 * prefix.c: Likewise.
10459 * prefix.h: Likewise.
10460 * print-rtl.c: Likewise.
10461 * print-tree.c: Likewise.
10462 * profile.c: Likewise.
10463 * read-rtl.c: Likewise.
10464 * real.c: Likewise.
10465 * real.h: Likewise.
10466 * recog.c: Likewise.
10467 * recog.h: Likewise.
10468 * reg-stack.c: Likewise.
10469 * regclass.c: Likewise.
10470 * regmove.c: Likewise.
10471 * regrename.c: Likewise.
10472 * regs.h: Likewise.
10473 * reload.c: Likewise.
10474 * reload.h: Likewise.
10475 * reload1.c: Likewise.
10476 * reorg.c: Likewise.
10477 * resource.c: Likewise.
10478 * resource.h: Likewise.
10479 * rtl-error.c: Likewise.
10482 * rtlanal.c: Likewise.
10483 * sbitmap.c: Likewise.
10484 * sbitmap.h: Likewise.
10485 * scan-decls.c: Likewise.
10486 * scan.c: Likewise.
10487 * sched-deps.c: Likewise.
10488 * sched-ebb.c: Likewise.
10489 * sched-int.h: Likewise.
10490 * sched-rgn.c: Likewise.
10491 * sched-vis.c: Likewise.
10492 * sibcall.c: Likewise.
10493 * simplify-rtx.c: Likewise.
10494 * sreal.c: Likewise.
10495 * sreal.h: Likewise.
10496 * ssa-ccp.c: Likewise.
10497 * ssa-dce.c: Likewise.
10500 * stack.h: Likewise.
10501 * stmt.c: Likewise.
10502 * stor-layout.c: Likewise.
10503 * stringpool.c: Likewise.
10504 * target.h: Likewise.
10505 * timevar.c: Likewise.
10506 * timevar.h: Likewise.
10507 * tlink.c: Likewise.
10508 * tracer.c: Likewise.
10509 * tree-inline.c: Likewise.
10510 * tree-inline.h: Likewise.
10511 * tree.c: Likewise.
10512 * tree.h: Likewise.
10514 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
10516 * combine.c (nonzero_bits1): Fix a warning.
10518 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
10520 * config/h8300/h8300.c (compute_mov_length): Correct the
10521 length of loading CONST0_RTX (SFmode).
10523 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
10525 * toplev.c (output_clean_symbol_name): Remove.
10526 * toplev.h (output_clean_symbol_name): Remove.
10527 * config/alpha/alpha.c (unicosmk_output_module_name): Use
10528 lbasename & clean_symbol_name.
10530 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
10532 * ggc.h: Follow spelling conventions.
10533 * config/i386/i386.c: Likewise.
10534 * config/i386/winnt.c: Likewise.
10535 * config/rs6000/rs6000.c: Likewise.
10537 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
10539 * bt-load.c: Fix comment typos.
10540 * c-incpath.c: Likewise.
10542 * cfgcleanup.c: Likewise.
10543 * cfgloop.h: Likewise.
10544 * cfgloopmanip.c: Likewise.
10545 * cfgrtl.c: Likewise.
10546 * diagnostic.h: Likewise.
10547 * dwarfout.c: Likewise.
10548 * emit-rtl.c: Likewise.
10549 * et-forest.c: Likewise.
10550 * et-forest.h: Likewise.
10551 * expr.c: Likewise.
10552 * gcse.c: Likewise.
10553 * genattr.c: Likewise.
10554 * jump.c: Likewise.
10555 * langhooks.h: Likewise.
10556 * local-alloc.c: Likewise.
10557 * loop-unroll.c: Likewise.
10558 * loop-unswitch.c: Likewise.
10559 * ra-build.c: Likewise.
10560 * regclass.c: Likewise.
10561 * regmove.c: Likewise.
10562 * rtl.def: Likewise.
10563 * rtlanal.c: Likewise.
10564 * sched-ebb.c: Likewise.
10565 * sched-rgn.c: Likewise.
10566 * simplify-rtx.c: Likewise.
10568 * tracer.c: Likewise.
10569 * tree.c: Likewise.
10571 2003-07-05 Zack Weinberg <zack@codesourcery.com>
10573 * cppcharset.c: Use the correct return type for the fallback iconv
10576 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10578 Blame to Jan Hubicka <jh@suse.cz>
10579 * cfglayout.c (record_effective_endpoints): Split insns before
10580 first basic block correctly.
10582 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10584 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
10585 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
10586 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
10588 2003-07-05 Andreas Jaeger <aj@suse.de>
10590 * genattrtab.c (write_attr_get): Revert part of last patch to
10591 always write out a prototype.
10593 * genemit.c (gen_split): Readd lost unused attributes in last
10596 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10598 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
10599 different from header.
10601 2003-07-05 Andreas Schwab <schwab@suse.de>
10603 * config/m68k/m68k.c: Remove code protected by CRDS.
10604 * config/m68k/m68k.md: Likewise.
10606 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
10609 * c-opts.c (permit_fortran_options): New.
10610 (c_common_init_options): Accept fortran front end options if
10611 it looks like we might be preprocessing Fortran.
10612 (c_common_handle_option): Don't reject switch if permit_fotran_options.
10614 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10616 * genattr.c (internal_dfa_insn_code): Output prototype.
10617 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
10618 * genautomata.c: Likewise.
10619 * genconditions.c: Likewise.
10620 * genemit.c: Likewise.
10621 * genextract.c: Likewise.
10622 * gengenrtl.c: Likewise.
10623 * gengtype.c: Likewise.
10624 * genopinit.c: Likewise.
10625 * genoutput.c: Likewise.
10626 * genpeep.c: Likewise.
10627 * genrecog.c: Likewise.
10629 2003-07-04 Zack Weinberg <zack@codesourcery.com>
10631 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
10632 (struct cpp_options): Add narrow_charset, wide_charset,
10633 bytes_big_endian fields. Remove EBCDIC field.
10634 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
10636 * cpphash.h: Include <iconv.h> if we have it, otherwise
10637 provide a dummy definition of iconv_t.
10638 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
10639 (_cpp_valid_ucn): Update prototype.
10640 (_cpp_destroy_iconv): New prototype.
10642 * doc/cpp.texi: Document character set handling.
10643 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
10644 * doc/extend.texi: Delete entire section on multiline strings.
10645 Rewrite section on __FUNCTION__ etc now that these are
10648 * cppucnid.tab, cppucnid.pl: New files.
10649 * cppucnid.h: New generated file.
10650 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
10651 (iconv_open, iconv, iconv_close): Provide dummy definitions
10653 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
10654 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
10655 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
10656 cpp_interpret_string, narrow_str_to_charconst,
10657 wide_str_to_charconst): New.
10658 (ucn_valid_in_identifier): Use a binary search through the
10659 ucnranges table defined in cppucnid.h, not a long chain of if
10661 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
10662 character names are only valid in C++ and C99" to a warning.
10663 Issue the "meaning of \[uU] is different in traditional C"
10664 warning here. Take care not to let iconv see an invalid UCS
10665 value if we get a malformed UCN. Issue an error if we don't
10667 (cpp_interpret_charconst): Moved here from cpplex.c. Use
10668 cpp_interpret_string to do the heavy lifting.
10670 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
10671 narrow_charset, wide_charset fields of options structure.
10672 (cpp_destroy): Call _cpp_destroy_iconv.
10673 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
10674 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
10675 (cpp_interpret_charconst): Moved to cppcharset.c.
10676 * cpplib.c (dequote_string): Delete.
10677 (interpret_string_notranslate): New.
10678 (do_line, do_linemarker): Use interpret_string_notranslate.
10680 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
10682 * c-common.c (fname_string, combine_strings): Delete.
10683 * c-common.h (fname_string, combine_strings): Delete prototypes.
10684 * c-lex.c (ignore_escape_flag): Delete.
10685 (cb_ident): Use cpp_interpret_string, not lex_string.
10686 (get_nonpadding_token): New function.
10687 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
10688 Adjust calls to lex_string. Don't write *value twice.
10689 (lex_string): Now handles string constant concatenation.
10690 Most of the work handed off to cpp_interpret_string.
10691 Call fix_string_type here.
10692 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
10693 FUNC_NAME, throughout.
10694 (OBJC_STRING): New token type.
10695 (primary:STRING): No need to call fix_string_type here.
10696 (primary:objc_string): Make that OBJC_STRING.
10697 (objc_string nonterminal): Delete.
10698 (yylexname): Delete code to handle fake string constants.
10699 (yylexstring): Delete entirely.
10700 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
10701 to handle CPP_ATSIGN.
10703 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
10704 * c-opts.c (missing_arg, c_common_handle_option): Handle
10705 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
10706 (c_common_init): Set cpp_opts->bytes_big_endian, not
10707 cpp_opts->EBCDIC. Call cpp_init_iconv.
10708 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
10709 (TARGET_EBCDIC): Delete default definition.
10711 * objc/objc-act.c (build_objc_string_object): No need to
10712 handle string constant concatenation.
10714 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
10716 * doc/install.texi: Fix typos.
10717 * doc/invoke.texi: Likewise.
10718 * doc/tm.texi: Likewise.
10720 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
10722 * config/pa/fptr.c: Fix comment typos.
10723 * config/pa/pa-64.h: Likewise.
10724 * config/pa/pa.c: Likewise.
10725 * config/pa/pa.h: Likewise.
10726 * config/rs6000/603.md: Likewise.
10727 * config/rs6000/7xx.md: Likewise.
10728 * config/rs6000/darwin.h: Likewise.
10729 * config/rs6000/freebsd.h: Likewise.
10730 * config/rs6000/rs6000.c: Likewise.
10731 * config/rs6000/rs6000.md: Likewise.
10732 * config/rs6000/spe.h: Likewise.
10734 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
10736 * config/s390/2064.md: Change GNU CC to GCC.
10737 * config/s390/2084.md: Likewise.
10738 * config/s390/fixdfdi.h: Likewise.
10739 * config/s390/linux.h: Likewise.
10740 * config/s390/s390-modes.def: Likewise.
10741 * config/s390/s390-protos.h: Likewise.
10742 * config/s390/s390.c: Likewise.
10743 * config/s390/s390.h: Likewise.
10744 * config/s390/s390.md: Likewise.
10745 * config/s390/s390x.h: Likewise.
10747 2003-07-04 Jeff Law <law@redhat.com>
10750 * expr.c (do_store_flag): Pass in the correct result type
10751 when calling fold_single_bit_test.
10752 * fold-const.c (fold_single_bit_test): Use result_type for the
10753 result when folding a sign bit test.
10755 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
10757 * opts.c (common_handle_options): Negate sense of -falign- switches.
10759 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
10761 * Makefile.in: Replace PWD with PWD_COMMAND.
10763 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10765 * cfgloopanal.c (count_strange_loop_iterations): New static function.
10766 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
10767 Handle strange loops.
10769 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
10771 * install.texi: Even the g77 manpage is derived from
10772 the full g77 manual.
10774 2003-07-04 Zack Weinberg <zack@codesourcery.com>
10776 * ABOUT-NLS: Delete.
10777 * intl: Delete entire directory.
10778 * aclocal.m4: Include ../config/gettext.m4. Delete
10779 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
10780 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
10781 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
10782 Remove intl/Makefile from all_outputs.
10783 * configure, config.in: Regenerate.
10784 * Makefile.in: Expunge all references to intl subdirectory.
10785 Add -I../intl to INCLUDES.
10786 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
10788 2003-07-04 Roger Sayle <roger@eyesopen.com>
10790 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
10791 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
10793 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
10795 PR c++/5287, PR c++/7910, PR c++/11021
10796 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
10797 dllimport attribute if function is defined at declaration, but
10798 report error instead. Likewise for dllimport'd variable
10799 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
10800 declared within functions, Report error if dllimport or dllexport
10801 symbol is not global.
10802 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
10803 if defined after declaration or if inlined. Don't allow definition
10804 of static data members of C++ classes. Don't dllimport virtual
10806 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
10807 (i386_pe_mark_dllimport): Remove unnecessary checks.
10808 (i386_pe_encode_section_info): Warn if the dllimport attribute
10809 and symbol prefix have been instantiated and then overridden.
10811 * doc/extend.texi: Document dllimport and dllexport attributes.
10813 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
10815 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
10817 * config/kaos.h (CPP_PREDEFINES): Delete.
10818 (TARGET_OS_CPP_BUILTINS): New.
10820 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10822 * c-aux-info.c: Include toplev.h after c-tree.h.
10823 * c-common.c: Likewise.
10824 (GCC_DIAG_STYLE): Undef.
10825 * c-semantics.c (GCC_DIAG_STYLE): Define.
10826 * c-tree.h (GCC_DIAG_STYLE): Likewise.
10827 * diagnostic.h (inform): Move prototype to toplev.h.
10828 * jump.c: Include diagnostic.h before toplev.h.
10829 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
10830 (warning, error, fatal_error, pedwarn, sorry, inform,
10831 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
10833 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10835 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
10836 at all if edge is not specified.
10837 (can_copy_bbs_p, copy_bbs): New.
10838 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
10839 * cfgloop.c (get_loop_body): Comment more precisely.
10840 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
10841 (scale_bbs_frequencies): Fix comment typo.
10842 (can_duplicate_loop_p): Use can_copy_bbs_p.
10843 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
10845 2003-07-03 Devang Patel <dpatel@apple.com>
10847 * c-opts.c (c_common_parse_file): Remove extra
10848 debug_hooks->start_source_file call.
10850 2003-07-03 Roger Sayle <roger@eyesopen.com>
10852 * real.c (real_trunc, real_floor, real_ceil): New functions
10853 to implement trunc, floor and ceil respectively.
10854 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
10855 * builtins.c (integer_valued_real_p): New function to test if
10856 a floating point expression has an integer valued result.
10857 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
10858 foo(x) where foo is an integer rounding function. Similarly,
10859 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
10860 (double)(int)x when both foo and bar are integer rounding
10861 functions and we don't need to honor errno.
10862 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
10863 New functions to fold trunc, floor and ceil.
10864 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
10865 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
10866 to fold BUILT_IN_CEIL*.
10867 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
10868 the remaining integer rounding functions.
10870 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
10872 * config/sparc/sparc.c (function_arg_partial_nregs): Use
10873 SPARC_INT_ARG_MAX to determine where to split unnamed
10874 complex FP arguments.
10876 2003-07-03 Jan Hubicka <jh@suse.cz>
10878 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
10879 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
10880 (merge_blocks_move_predecessor_nojumps,
10881 merge_blocks_move_successor_nojumps): Use merge_blocks.
10882 (try_optimize_cfg): Use merge_blocks_move.
10883 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
10884 (merge_blocks_nomove): Rename to rtl_merge_blocks.
10885 (cfg_layout_create_basic_block): New.
10886 (rtl_can_merge_blocks): New.
10887 (cfg_layout_split_block): Do not alloc aux by hand.
10888 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
10890 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
10891 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
10892 * cfgloopmanip.c (loop_split_edge_with): Likewise.
10893 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
10895 * basic-block.h (basic_block_def): Add field 'rbi'.
10896 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
10897 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
10898 * cfg.c (entry_exit_blocks): Add new field.
10899 * cfglayout.c: Include alloc-pool.h;
10900 (cfg_layout_pool): New.
10901 (record_effective_endpoints, fixup_reorder_chain,
10902 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
10904 (cfg_layout_initialize_rbi): New function.
10905 (cfg_layout_initialize): Use it.
10906 (cfg_layout_finalize): Clear rbi fields.
10907 * cfglayout.h (RBI): Kill.
10908 (cfg_layout_initialize_rbi): Declare.
10909 * cfgloopmanip.c (copy_bbs): Use rbi.
10910 (record_exit_edges): Likewise.
10911 (duplicate_loop_to_header_edge): Likewise.
10912 * cfgrtl.c (cfg_layout_create_basic_block): Use
10913 cfg_layout_initialize_rbi.
10914 (cfg_layout_split_block): Use rbi.
10915 (cfg_layout_delete_block): Likewise.
10916 * loop-init.c (loop_optimizer_finalize): Likewise.
10917 * loop-unswitch.c (unswitch_loop): Likewise.
10918 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
10920 * cfgrtl.c: Update comments.
10921 (try_redirect_by_replacing_jump): New argument.
10922 (redirect_branch_edge): Break out from ...
10923 (rtl_redirect_edge_and_branch): ... this one.
10924 (update_cfg_after_block_merging): Break out from ...
10925 (rtl_merge_blocks): ... this one.
10926 (cfg_layout_split_edge): New.
10927 (cfg_layout_merge_blocks): New.
10928 (cfg_layout_can_merge_blocks_p): New.
10929 (cfg_layout_redirect_edge_and_branch): Reorganize.
10930 (cfg_layout_rtl_cfg_hooks): Fill in.
10931 (cfg_layout_delete_block): Kill barriers.
10932 * cfganal.c (can_fallthru): Deal with exit blocks
10933 * cfglayout.c (cfg_layout_function_header): New function
10934 (record_effective_endpoints): Record function header.
10935 (fixup_reorder_chain): Fixup dead jumptables; place header
10937 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
10938 * bb-reorder.c (cfg_layout_initialize): Update call.
10939 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
10940 edges in cfglayout mode.
10941 * cfglayout.c (cleanup_unconditional_jumps): Kill.
10942 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
10943 * cfglayout.h (cfg_layout_initialize): Update prototype.
10944 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
10945 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
10946 * flow.c (propagate_block): Do not crash when basic block ends
10947 by first insn in the chain.
10948 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
10950 * tracer.c (tracer): Update call of cfg_layout_initialize.
10952 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10954 * Makefile.in: Use dependency variables in lieu of explicit
10957 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
10959 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
10960 * tree.h: ...to here.
10962 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
10964 * config/s390/2064.md: Fix comment typos.
10965 * config/s390/2084.md: Likewise.
10966 * config/s390/s390.c: Likewise.
10967 * config/s390/s390.md: Likewise.
10968 * config/sh/sh.c: Likewise.
10969 * config/sh/sh.h: Likewise.
10970 * config/sh/sh.md: Likewise.
10971 * config/sparc/sparc.c: Likewise.
10972 * config/sparc/sparc.h: Likewise.
10973 * config/sparc/sparc.md: Likewise.
10974 * config/stormy16/stormy16.c: Likewise.
10975 * config/stormy16/stormy16.h: Likewise.
10976 * config/stormy16/stormy-abi: Fix a typo.
10978 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
10980 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
10982 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10984 * config/mips/mips.h (save_argv): Delete.
10986 2003-07-03 Roger Sayle <roger@eyesopen.com>
10989 * fold-const.c (extract_muldiv_1): There's nothing that can be done
10990 if the expression is a SAVE_EXPR.
10992 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
10994 * config/m32r/m32r.c: Fix comment typos.
10995 * config/m68hc11/m68hc11.c: Likewise.
10996 * config/m68hc11/m68hc11.h: Likewise.
10997 * config/m68k/m68k.c: Likewise.
10998 * config/mcore/mcore.c: Likewise.
10999 * config/mcore/mcore.h: Likewise.
11000 * config/mcore/mcore.md: Likewise.
11001 * config/mips/mips.c: Likewise.
11002 * config/mips/mips.h: Likewise.
11003 * config/mips/mips.md: Likewise.
11004 * config/mips/netbsd.h: Likewise.
11005 * config/mn10300/mn10300.c: Likewise.
11007 2003-07-03 Andreas Schwab <schwab@suse.de>
11009 * dbxout.c (pending_bincls): Move decl down inside
11010 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
11012 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
11014 * rtl.h (NOTE_DATA): Refer to whole union.
11015 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
11017 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
11019 PR optimization/11381
11020 * simplify-rtx.c (simplify_relational_operation): Check that
11021 two equal operands have no side-effects before simplifying
11024 2003-07-02 Jeff Law <law@redhat.com>
11026 * expr.c (do_store_flag): Remove special case folding for
11027 single bit tests. Instead call back into the commonized folder
11029 * fold-const.c (fold_single_bit_test): New function, mostly
11030 extracted from do_store_flag, with an additional case extracted
11032 (fold): Call fold_single_bit_test appropriately.
11033 * tree.h (fold_single_bit_test): Prototype.
11035 2003-07-02 Zack Weinberg <zack@codesourcery.com>
11037 * system.h: Include filenames.h.
11038 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
11039 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
11040 define based on HAVE_DOS_BASED_FILE_SYSTEM.
11041 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
11042 * config/i386/xm-mingw32.h: Don't define
11043 HAVE_DOS_BASED_FILE_SYSTEM,
11044 DIR_SEPARATOR, or DIR_SEPARATOR_2.
11045 * doc/hostconfig.texi: Update to match.
11047 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
11048 config/i386/cygwin.h:
11049 Use IS_ABSOLUTE_PATH throughout.
11050 * gcc.c (DIR_UP): Delete, unused.
11051 * protoize.c (IS_SAME_PATH): Define in terms of
11053 (is_abspath): Delete.
11055 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
11057 * config/i386/emmintrin.h: Fix comment typos.
11058 * config/i386/i386.c: Likewise.
11059 * config/i386/i386.h: Likewise.
11060 * config/i386/sco5.h: Likewise.
11061 * config/ia64/ia64.c: Likewise.
11062 * config/ia64/itanium2.md: Likewise.
11064 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
11066 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
11068 (emit_bincl_stab): Same.
11069 (emit_pending_bincls): Same.
11071 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
11073 * config/h8300/h8300.c (compute_mov_length): Fix the length of
11074 loading CONST0_RTX (SFmode).
11075 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
11076 'G' to CONST0_RTX (SFmode).
11077 * config/h8300/h8300.md (movsf_h8300): Change the first
11079 (movsf_h8300h): Likewise.
11081 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
11083 * c-common.h (c_common_init_options): New prototype.
11084 * c-opts.c (deferred_size): Remove.
11085 (defer_opt): Array is now pre-allocated.
11086 (c_common_init_options): Pre-allocate deferred_opts. Make
11087 lang_flags unsigned.
11088 (push_command_line_options): Free deferred_opts.
11089 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
11090 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
11091 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
11092 * langhooks.h (struct lang_hooks): New prototype for init_options.
11093 * main.c (main): Cast argv.
11094 * opts.c (handle_option, handle_options): Update prototypes.
11095 (decode_options): save_argc, save_argv are not global. Constify.
11096 * opts.h (decode_options): New prototype.
11097 * toplev.c (general_init): New protoype.
11098 (save_argv): Make static.
11099 (save_argc): Remove.
11100 (print_switch_values, general_init): Constify.
11101 (toplev_main): Save argv.
11102 * toplev.h (toplev_main): Update prototype.
11103 (save_argc, save_argv): Remove.
11105 2003-07-02 David Edelsohn <edelsohn@gnu.org>
11107 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
11108 (emit_bincl_stab): Same.
11109 (emit_pending_bincls): Same.
11111 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
11114 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
11116 2003-07-02 Andreas Schwab <schwab@suse.de>
11118 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
11120 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
11122 PR optimization/11210
11123 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
11124 about the behaviour with regard to bitfields.
11125 * fold-const (decode_field_reference): Record outermost type in
11126 case the expression is a NOP. Strip all NOPs. Set the signedness
11127 to that of the outermost type (if any) when the bitsize is equal
11128 to the size of the type.
11130 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
11132 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
11133 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
11134 (adddi3_internal_3, addsi3_internal_2): Likewise.
11136 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
11138 * config/mips/mips.c (machine_function): Add new fields:
11139 ignore_hazard_length_p and all_noreorder_p.
11140 (mips_flag_delayed_branch): New variable.
11141 (override_options): Treat '/' as an operand punctuation character.
11142 Set up mips_flag_delayed_branch.
11143 (print_operand): Handle '/'.
11144 (mips_output_function_prologue): Put the whole function in
11145 .set noreorder and .set nomacro if all_noreorder_p is true.
11146 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
11147 (mips16_optimize_gp): Remove "first insn" parameter.
11148 (mips16_lay_out_constants): New function, split out from mips_reorg.
11149 (mips_avoid_hazard, mips_avoid_hazards): New functions.
11150 (mips_reorg): For mips16 code, call mips16_lay_out_constant
11151 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
11152 do delayed-branch scheduling followed by hazard detection.
11153 (mips_adjust_insn_length): Only account for hazards if
11154 !ignore_hazard_length_p.
11155 (mips_output_load_label): Add a nop to the o32 sequence if
11156 the target suffers from load delays.
11157 (mips_output_conditional_branch): Add %/ to the end of branches.
11158 (mips_output_division): Fill the branch delay slot with %#.
11159 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
11160 instructions. End all other %* branches with %/.
11161 (ffssi2, ffsdi2): Fix lengths.
11162 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
11163 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
11164 (fix_truncsfsi2_macro): Likewise.
11165 (mov_lwl): Set hazard to "none".
11166 (ashldi3_internal): Fill the branch delay slot with %#.
11167 (ashrdi3_internal, lshrdi3_internal): Likewise.
11168 (exception_receiver): Explicitly set $28.
11169 (hazard_nop): New pattern.
11171 2003-07-02 Jan Hubicka <jh@suse.cz>
11173 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
11174 before calling tree_inlinable_function_p.
11176 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11178 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
11179 <internal/stdio_core.h> too.
11180 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
11181 <internal/wchar_core.h> too.
11182 Substitute va_list uses in inline definition.
11183 * fixinc/fixincl.x: Regenerate.
11185 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11187 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
11188 Undef before redefinition.
11189 (LABEL_AFTER_LOC): Likewise.
11190 (DEFAULT_SIGNED_CHAR): Likewise.
11191 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
11194 * config/mips/iris3.h: Remove, unused.
11195 * config/mips/iris4.h: Likewise.
11197 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
11199 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
11200 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
11201 target_cpu_default.
11203 * config/mips/iris5.h: Move explicit includes ...
11204 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
11206 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
11207 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
11210 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
11211 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
11212 target_cpu_default.
11214 * config/mips/iris6.h: Fix IRIX spelling.
11215 (MULTILIB_DEFAULTS): Undef before redefinition.
11217 * config/mips/iris6.h: Move explicit includes ...
11218 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
11220 2003-07-02 Jan Hubicka <jh@suse.cz>
11222 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
11223 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
11224 Use next_needed field instead of aux to maintain the queue.
11225 * cgraph.h (cgraph_node): Add next_needed.
11226 (cgraph_varpool_node): Add next_needed; remove aux.
11227 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
11229 2003-07-02 Jan Hubicka <jh@suse.cz>
11231 * cgraphunit.c (cgraph_finalize_function): Set finalized.
11232 (cgraph_finalize_function): Do not examine inlinablility.
11233 (cgraph_finalize_compilation_unit): Do it here.
11234 * cgraph.h (cgraph_local_info): Add finalized field.
11236 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11238 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
11239 (gt_pch_restore): Likewise.
11241 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
11243 * config/alpha/alpha.c: Fix comment typos.
11244 * config/alpha/elf.h: Likewise.
11245 * config/arm/arm.c: Likewise.
11246 * config/arm/arm.h: Likewise.
11247 * config/arm/arm.md: Likewise.
11248 * config/arm/t-arm-coff: Likewise.
11249 * config/arm/t-strongarm-pe: Likewise.
11250 * config/arm/xscale-elf.h: Likewise.
11251 * config/avr/avr.h: Likewise.
11253 2003-07-01 Jeff Law <law@redhat.com>
11255 * stmt.c (any_pending_cleanups): Remove another redundant test.
11257 2003-07-01 David Edelsohn <edelsohn@gnu.org>
11258 J"orn Rennecke <joern.rennecke@superh.com>
11260 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
11263 2003-07-01 Devang Patel <dpatel@apple.com>
11265 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
11266 (binclstatus): New.
11267 (struct dbx_file): New members - bincl_status, pending_bincl_name and
11269 (pending_bincls): New.
11270 (dbxout_init): Initialize new dbx_file members.
11271 (dbxout_start_source_file): Same.
11272 (emit_bincl_stab): New function.
11273 (emit_pending_bincls): Same.
11274 (emit_pending_bincls_if_required): Same.
11275 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
11277 (dbxout_begin_block): Emit pending BINCL stabs.
11278 (dbxout_end_block): Same.
11279 (dbxout_function_decl): Same.
11280 (dbxout_continue): Same.
11281 (dbxout_type): Same.
11282 (dbxout_class_name_qualifiers): Same.
11283 (dbxout_symbol): Same.
11284 (dbxout_symbol_location): Same.
11285 (dbxout_parms): Same.
11287 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11289 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
11290 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
11292 2003-07-01 Andreas Jaeger <aj@suse.de>
11294 * fold-const.c: Convert prototypes to ISO C90.
11295 * function.c: Likewise.
11296 * function.h: Likewise.
11298 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
11300 * doc/contrib.texi: Fix typos.
11301 * doc/invoke.texi: Likewise.
11302 * doc/passes.texi: Likewise.
11303 * doc/sourcebuild.texi: Likewise.
11304 * doc/tm.texi: Likewise.
11306 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
11308 * basic-block.h: Fix comment typos.
11309 * bb-reorder.c: Likewise.
11310 * c-format.c: Likewise.
11311 * cfgcleanup.c: Likewise.
11312 * cfghooks.h: Likewise.
11313 * cfgloop.c: Likewise.
11314 * cfgloopmanip.c: Likewise.
11315 * cfgrtl.c: Likewise.
11316 * cgraph.h: Likewise.
11317 * cgraphunit.c: Likewise.
11318 * combine.c: Likewise.
11319 * convert.c: Likewise.
11320 * dbxout.c: Likewise.
11323 * diagnostic.c: Likewise.
11324 * dwarf2out.c: Likewise.
11325 * et-forest.h: Likewise.
11326 * flow.c: Likewise.
11327 * fold-const.c: Likewise.
11328 * function.h: Likewise.
11329 * gcov-io.h: Likewise.
11330 * gcov.c: Likewise.
11331 * gcse.c: Likewise.
11332 * genautomata.c: Likewise.
11333 * ggc-common.c: Likewise.
11334 * ggc-page.c: Likewise.
11335 * loop-unroll.c: Likewise.
11336 * loop-unswitch.c: Likewise.
11337 * loop.c: Likewise.
11338 * mips-tfile.c: Likewise.
11339 * optabs.c: Likewise.
11340 * ra-build.c: Likewise.
11341 * ra-colorize.c: Likewise.
11342 * ra-rewrite.c: Likewise.
11344 * regmove.c: Likewise.
11345 * reload.c: Likewise.
11346 * rtlanal.c: Likewise.
11347 * sched-ebb.c: Likewise.
11348 * sched-int.h: Likewise.
11349 * sched-vis.c: Likewise.
11350 * sreal.c: Likewise.
11351 * ssa-ccp.c: Likewise.
11353 * toplev.c: Likewise.
11354 * tree-inline.c: Likewise.
11355 * value-prof.c: Likewise.
11356 * value-prof.h: Likewise.
11358 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
11360 * rtl.h (emit_line_note_after): Remove.
11361 (emit_note_copy_after, emit_note_copy): New.
11362 * emit-rtl.c (reorder_insns_with_line_notes): Replace
11363 emit_line_note_after with emit_note_copy_after.
11364 (emit_insn_after_with_line_notes): Likewise.
11365 (emit_line_note_after): Kill.
11366 (emit_note_copy_after): New.
11367 (emit_note_copy): New.
11368 * function.c (emit_return_into_block): Use emit_note_copy_after.
11369 (thread_prologue_and_epilogue_insns): Likewise.
11370 * integrate.c (expand_inline_function): Use emit_note_copy.
11371 (copy_insn_list): Likewise.
11372 * unroll.c (copy_loop_body): Likewise.
11373 * cfglayout.c (duplicate_insn_chain): Likewise.
11375 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
11377 * c-tree.h (define_label): Replace filename and lineno arguments
11379 * c-decl.c (poplevel): Adjust define_label call.
11380 (pop_label_level): Likewise.
11381 (define_label): Replace filename and lineno arguments with a
11383 (store_parm_decls): Use DECL_SOURCE_LOCATION.
11384 * c-parse.in (label): Adjust define_label call.
11386 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
11388 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
11389 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
11390 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
11391 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
11392 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
11394 2003-07-01 Andreas Jaeger <aj@suse.de>
11396 * final.c: Convert prototypes to ISO C90.
11397 * flow.c: Likewise.
11398 * flags.h: Likewise.
11399 * gcov-io.c: Likewise.
11400 * gcov-io.h: Likewise.
11402 See ChangeLog.9 for earlier changes.