1 2003-08-22 Bernardo Innocenti <bernie@develer.com>
3 * config/m68k/m68k-protos.h: Convert to ISO C90.
4 * config/m68k/m68k.c: Likewise.
6 2003-08-21 Bernardo Innocenti <bernie@develer.com>
7 Paul Dale <pauli@snapgear.com>
8 Peter Barada <peter@baradas.org>
10 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
13 2003-08-21 Zack Weinberg <zack@codesourcery.com>
15 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
16 * config.gcc (*-*-openbsd): Don't set tm_file.
17 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
18 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
19 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
20 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
21 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
22 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
23 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
24 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
25 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
26 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
27 xscale-*-coff): Use explicit and complete lists of target headers
28 to include. Move definitions to tm_defines where appropriate.
29 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
30 not-yet-contributed configuration.
32 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
33 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
34 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
35 * config/i386/nto.h, config/iq2000/iq2000.h,
36 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
37 * config/m68k/linux.h, config/m68k/m68k-aout.h
38 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
39 * config/m68k/netbsd.h, config/m68k/openbsd.h
40 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
41 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
42 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
43 Remove includes of other target config headers, and
44 definitions of macros moved to tm_defines lists. Add #undefs
45 where now necessary to prevent redefinition warnings.
47 * config/h8300/coff.h: New file split out of...
48 * config/h8300/elf.h: ...here.
49 * config/m68k/hp320base.h: New file split out of...
50 * config/m68k/hp320.h: ...here.
51 * config/rs6000/lynxbase.h: New file split out of...
52 * config/rs6000/lynx.h: ...here.
54 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
55 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
57 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
58 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
59 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
60 Remove unnecessary #ifndef.
61 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
62 [under IN_LIBGCC2] with config/.
64 2003-08-21 Per Bothner <bothner@pbothner.com>
66 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
68 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
69 by return_at_eof check. Always call _cpp_pop_buffer at end.
71 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
74 * config/h8300/h8300.md (two anonymous patterns): Remove.
76 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
78 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
79 * config/mips/mips.c (function_arg_pass_by_reference): Never return
82 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
84 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
85 and similarly in (A | C) == D where C & ~D != 0.
87 2003-08-20 Geoffrey Keating <geoffk@apple.com>
90 * configure.in: When testing with_libs and with_headers, treat
91 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
92 * configure: Regenerate.
94 2003-08-20 Peter Barada <peter@baradas.org>
96 * longlong.h (umul_ppmm): Add ColdFire support.
98 2003-08-20 Peter Barada <peter@baradas.org>
99 Bernardo Innocenti <bernie@develer.com>
101 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
102 * config/m68k/m68k.h: Likewise.
103 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
104 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
105 * config/m68k/linux.h: Likewise.
106 * config/m68k/m68k.c: Likewise.
107 * config/m68k/m68k.md: Likewise.
108 * config/m68k/m68kelf.h: Likewise.
109 * config/m68k/netbsd-elf.h: Likewise.
110 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
112 2003-08-20 Bernardo Innocenti <bernie@develer.com>
114 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
115 * config/m68k/m68k.md: Likewise.
117 2003-08-20 Mark Mitchell <mark@codesourcery.com>
121 2003-08-19 Mark Mitchell <mark@codesourcery.com>
122 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
123 types with precisions other than those given by native machine
126 2003-08-20 Gunther Nikl <gni@gecko.de>
128 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
129 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
130 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
131 * config/m68k/m68k.md (anonymous define_insn): Likewise
132 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
133 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
134 code selected by NO_ASM_FMOVECR
136 2003-08-20 Gunther Nikl <gni@gecko.de>
138 * config/m68k/m68k.c (output_move_const_into_data_reg,
139 output_move_himode): unify MOTOROLA/MIT handling of moveq
140 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
143 2003-08-20 Gunther Nikl <gni@gecko.de>
145 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
147 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
148 HOST_WIDE_INT_PRINT_DEC with %wd
150 2003-08-20 Loren James Rittle <ljrittle@acm.org>
152 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
155 2003-08-20 Roger Sayle <roger@eyesopen.com>
158 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
159 operands before calling tree_int_cst_lt when performing associative
162 2003-08-20 Jason Merrill <jason@redhat.com>
164 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
165 (EXPR_CHECK): Don't check for 'r' or 's' if we're
166 checking IS_EXPR_CODE_CLASS.
167 * calls.c (calls_function_1): Likewise.
168 * fold-const.c (fold): Likewise.
169 * tree.c (iterative_hash_expr): Likewise.
170 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
172 2003-08-20 Gunther Nikl <gni@gecko.de>
174 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
175 depending on MOTOROLA_BSR
176 * config/m68k/m68k.md (anonymous define_insn): Likewise
178 2003-08-20 Jason Merrill <jason@redhat.com>
180 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
181 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
182 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
183 * dojump.c (do_jump): Likewise.
184 * fold-const.c (operand_equal_p, fold): Likewise.
185 (tree_expr_nonnegative_p): Likewise.
187 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
188 TYPE_USER_ALIGN for FIELD_DECLs.
190 * attribs.c (decl_attributes): Rebuild the function pointer type after
191 changing the target type.
192 * tree.c (get_qualified_type): Also check that the attributes match.
194 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
196 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
197 * objc/config-lang.in (stagestuff): ... to here.
199 2003-08-19 Mark Mitchell <mark@codesourcery.com>
202 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
203 NOP_EXPR) when necessary.
204 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
205 types with precisions other than those given by native machine
208 2003-08-19 Geoffrey Keating <geoffk@apple.com>
210 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
211 because some macro is defined.
213 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
215 * config/i386/darwin.h (ASM_SPEC): New.
216 (SUBTARGET_EXTRA_SPECS): New.
217 * config/rs6000/darwin.h (ASM_SPEC): New.
218 (SUBTARGET_EXTRA_SPECS): New.
219 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
220 a cross-compiler between two different processors on Darwin.
221 * configure: Regenerate.
223 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
225 * builtins.c: Fix comment typos.
226 * c-common.c: Likewise.
227 * c-decl.c: Likewise.
228 * c-pretty-print.c: Likewise.
229 * cfgbuild.c: Likewise.
230 * cfglayout.c: Likewise.
231 * cfgloopanal.c: Likewise.
232 * cgraphunit.c: Likewise.
233 * cppfiles.c: Likewise.
234 * dwarfout.c: Likewise.
236 * fold-const.c: Likewise.
238 * ggc-page.c: Likewise.
239 * haifa-sched.c: Likewise.
240 * pretty-print.c: Likewise.
243 * value-prof.c: Likewise.
245 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
247 * c-decl.c: Follow spelling conventions.
248 * cppfiles.c: Likewise.
250 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
252 * c-common.c: Fix comment formatting.
253 * c-common.h: Likewise.
254 * c-decl.c: Likewise.
255 * cppinit.c: Likewise.
256 * cpplib.h: Likewise.
257 * emit-rtl.c: Likewise.
259 * line-map.h: Likewise.
262 * simplify-rtx.c: Likewise.
264 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
266 * unwind-c.c: Add libgcc-style exception.
267 * unwind-dw2.c: Likewise.
268 * unwind-pe.h: Likewise.
269 * unwind-sjlj.c: Likewise.
270 * unwind.inc: Likewise.
272 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
274 PR c/5582 PR c++/10538
275 * langhooks-def.h (lhd_decl_uninit): Declare.
276 (LANG_HOOKS_DECL_UNINIT): New macro.
277 (LANG_HOOKS_INITIALIZER): Adjust.
278 * langhooks.h (struct lang_hooks): Add new field
280 * langhooks.c (lhd_decl_uninit): Define.
281 * c-common.c (c_decl_uninit_1): New function.
282 (c_decl_uninit): New function.
283 (warn_init_self): Define.
284 * c-common.h (c_decl_uninit): Declare.
285 (warn_init_self): Declare.
286 * c.opt: Introduce -Winit-self.
287 * c-opts.c (c_common_handle_options): Set warn_init_self.
288 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
289 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
290 * function.c (uninitialized_vars_warning): Call the language hook.
291 * doc/invoke.texi: Document -Winit-self.
293 2003-08-19 Chris Demetriou <cgd@broadcom.com>
295 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
296 to use better predicates and constraints. Define new
297 instruction to handle "trap_if" with DI-mode arguments.
298 (conditional_trap): FAIL if trap code is not 0.
300 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
302 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
303 strstr with $pb to a strcompare with "<pic base>"
304 (ix86_output_addr_diff_elt): Output the real pic base.
306 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
308 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
309 (LANG_HOOKS_INITIALIZER): Correct.
310 * c-lang.c: Likewise.
312 2003-08-19 Jan Hubicka <jh@suse.cz>
314 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
315 (cgraph_varpool_mark_needed_node): Likewise.
316 * cgraph.h (notice_global_symbol): Declare
317 * varasm.c (notice_global_symbol): Break out from ...
318 (assemble_start_function): ... here; update for variables.
319 (assemble_variable): Use notice_global_symbol.
321 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
323 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
324 expect SFmode and DFmode arguments to be passed in FPRs,
325 regardless of the underlying type.
327 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
330 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
331 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
333 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
336 * c-typeck.c (set_init_index): Check for negative index.
338 2003-08-18 Bob Wilson <bob.wilson@acm.org>
340 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
342 * config/xtensa/crtn.asm (_init, _fini): Likewise.
343 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
344 __umodsi3, __modsi3): Likewise.
345 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
348 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
350 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
352 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
354 * config/mips/mips.md: Quote C code in braces. Remove use of
355 fake const0_rtx operands. Remove double backslashes. Use \;.
356 Remove workarounds for bogus warnings.
358 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
360 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
361 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
362 rather than TARGET_MIPS4300.
363 (mulsf3_internal, mulsf3_r4300): Likewise.
365 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
367 * config/mips/mips.md: Renumber unspecs. Clean up comments.
369 2003-08-17 Roger Sayle <roger@eyesopen.com>
371 * simplify-rtx.c (associative_constant_p): New function to test
372 whether an RTX expression is an immediate constant.
373 (simplify_associative_operation): New function to perform some
374 reassociation optimizations of associative binary expressions.
375 (simplify_binary_operation): Use simplify_associative_operation
376 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
377 Floating point expressions are only reassociated when unsafe
378 math optimizations are permitted.
380 2003-08-17 Andreas Jaeger <aj@suse.de>
382 * config/alpha/alpha.md: Remove usage of PARAMS.
384 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
385 * config/i386/i386-interix.h: Likewise.
386 * config/i386/winnt.c: Likewise.
387 * config/i386/cygming.h: Likewise.
388 * config/i386/cygwin2.c: Likewise.
389 * config/darwin.c: Likewise.
390 * config/darwin-c.c: Likewise.
391 * config/darwin-protos.h: Likewise.
392 * config/darwin.h: Likewise.
393 * config/s390/s390-protos.h: Likewise.
394 * config/s390/s390.c: Likewise.
395 * config/ia64/ia64.c: Likewse
396 * config/ia64/ia64-protos.h: Likewise.
397 * config/ia64/ia64-c.c: Likewise.
399 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
401 * config/sparc/sparc.c: Convert to ISO C.
403 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
404 * config/sparc/sparc.c: Likewise.
406 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
409 * stmt.c (expand_expr_stmt_value): Don't warn about any void
412 2003-08-16 Jan Hubicka <jh@suse.cz>
414 * i386.c (ix86_fntype_regparm): Rename from ...
415 (ix86_function_regparm): ... this one; add fastcall and local
417 (ix86_function_ok_for_sibcall): Update.
418 (ix86_return_pops_args): Likewise.
419 (init_cumulative_args): Likewise.
420 (x86_can_output_mi_thunk): Likewise.
421 (function_arg): Fix formating.
422 (x86_this_parameter): Fix fastcall.
423 (x86_output_mi_thunk): Likewise.
425 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
426 body as reachable; mark nested functions as needed too.
427 (dump_cgraph): Do not output global.calls.
428 * cgraph.h (cgraph_global_info): Kill.
429 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
430 (record_call_1): Speedup.
431 (cgraph_analyze_function): Break out from ...; compute inlining
433 (cgraph_finalize_compilation_unit): ... here.
434 (cgraph_mark_inline): Kill computation of calls.
435 (cgraph_decide_inlining): Do not compute most of initial values.
437 2003-08-14 Roger Sayle <roger@eyesopen.com>
439 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
440 to negate if either operand is easy to negate, if we don't care
441 about sign-dependent rounding.
442 (negate_expr): Make the logic to negate a REAL_CST explicit.
443 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
444 that's easy to negate, if we don't honor sign-dependent rounding.
445 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
446 negate, and the symmetric A * -B as -A * B if A is easy to negate.
447 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
448 -C/D if B and C are cheap to negate. Add an explicit rule to
449 optimize X/-1.0 as -X when we don't care about signaling NaNs.
451 2003-08-14 Zack Weinberg <zack@codesourcery.com>
453 * Makefile.in (tm_file): Rename tm_include_list.
454 (tm_p_file): Rename tm_p_include_list.
455 (build_xm_file): Rename build_xm_include_list.
456 (host_xm_file): Rename host_xm_include_list.
457 (xm_file): Rename xm_include_list.
458 (xm_file_list): Add to be substituted.
459 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
461 (bt-load.o): Add missing dependency on $(TM_H).
462 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
463 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
464 build_xm_file, generate both *_file_list and *_include_list
465 values from it. (xm_file_list was formerly not being generated.)
466 In *_include_list, prefix the names of all headers found in
467 $(srcdir)/config with config/. In each loop, consider only
468 the special case files that can actually appear in that list.
469 AC_SUBST all *_file_list and all *_include_list variables; do
470 not AC_SUBST the plain *_file variables.
471 * configure: Regenerate.
473 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
475 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
477 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
479 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
481 (attr_length_call): Include it here. Improve length estimate for
483 (output_call): Use targetm.binds_local_p.
485 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
487 * builtins.c (CASE_MATHFN): New helper macro.
488 (mathfn_built_in): Simplify and sort.
490 * protoize.c (substr): Delete, callers changed to `strstr'.
492 2003-08-13 Zack Weinberg <zack@codesourcery.com>
494 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
495 * config/iq2000/xm-iq2000.h: Delete file.
497 2003-08-13 Geoffrey Keating <geoffk@apple.com>
499 * gengtype.c (walk_type): Process a subobject before processing
500 the pointer that points to the subobject.
502 2003-08-13 Per Bothner <pbothner@apple.com>
504 * regclass.c (init_reg_modes): Make non-static.
505 Rename to init_reg_modes_once per new naming convention.
506 (init_regs): Don't call init_reg_modes here.
507 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
508 * rtl.h (init_reg_modes_once): New declaration.
509 * toplev.c (backend_init): Call init_regs after init_emit_once.
511 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
513 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
514 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
516 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
518 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
519 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
521 2003-08-13 Dale Johannesen <dalej@apple.com>
523 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
524 handling of decrement-and-branch farther than 32 bits.
526 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
528 * configure.in (make_compare_target): Move test to ...
529 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
530 * configure: Regenerate.
532 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
534 * config/mips/iris6.h: Convert to C90 prototypes.
535 * config/mips/irix6-libc-compat.c: Likewise.
536 * config/mips/mips-protos.h: Likewise.
537 * config/mips/mips.c: Likewise.
539 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
541 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
542 for selected machines. Comment heavily.
543 fixinc/fixincl.x: Rebuild.
544 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
546 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
548 * config/mips/mips.h: Tweak various comments.
549 * config/mips/mips.c: Likewise.
551 2003-08-11 James E Wilson <wilson@tuliptree.org>
553 PR optimization/11319
555 * alias.c (find_base_value, case REG): Return 0 not src if no base
558 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
560 * gcse.c (gmalloc): Fix last change.
562 2003-08-11 Roger Sayle <roger@eyesopen.com>
564 * simplify-rtx.c (simplify_binary_operation): Replace calls to
565 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
566 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
567 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
569 2003-08-11 Roger Sayle <roger@eyesopen.com>
571 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
572 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
573 typecode for an ABS_EXPR.
575 * doc/c-tree.texi: Document ABS_EXPR.
577 2003-08-11 Roger Sayle <roger@eyesopen.com>
579 * fold-const.c (fold): Optimize any associative floating point
580 operator with -funsafe-math-optimizations, not just MULT_EXPR.
582 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
584 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
585 information in SHmedia case too.
586 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
588 (__set_fpscr): Use an access via GOT for PIC case.
590 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
592 * configure.in (intermodule): Make switch test more portable.
593 * configure: Regenerate.
595 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
597 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
600 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
602 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
603 (grealloc): Size argument is a size_t.
604 (gcalloc): New function. Use throughout in lieu of
607 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
609 * config/ia64/ia64.c (ia64_reorg): Likewise.
610 * conflict.c (conflict_graph_new): Likewise.
611 * fixinc/fixincl.c (run_compiles): Likewise.
612 * genattrtab.c (optimize_attrs): Likewise.
613 * genrecog.c (new_decision): Likewise.
614 * haifa-sched.c (schedule_block): Likewise.
615 * hashtable.c (ht_create): Likewise.
617 2003-08-11 Bob Wilson <bob.wilson@acm.org>
619 * config/xtensa/lib2funcs.S: Fix whitespace.
620 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
621 syntax where appropriate. Remove unnecessary backslash escapes.
622 Reformat comments and fix some code formatting.
623 (extendqisi2): Rearrange conditional.
624 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
625 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
628 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
630 * config/mips/mips.c: Various formatting fixes.
631 (override_options): Resync -mtune handling with gas.
632 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
633 * config/mips/mips.h: More formatting fixes.
634 (mips_abi): Move declaration.
635 * config/mips/mips.md (exception_receiver): Add mode to
638 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
640 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
642 (bdesc_1arg): Remove evsplati and evsplatfi.
644 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
646 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
649 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
651 * builtins.c (expand_builtin_strcat): Optimize constant strings.
653 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
655 * pretty-print.c (pp_base_indent): Rename from pp_indent.
656 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
657 (struct c_pretty_print_info): Add more fields.
658 (pp_c_left_paren): Move to c-pretty-print.c.
659 (pp_c_right_paren): Likewise.
660 (pp_c_left_brace): Likewise.
661 (pp_c_right_brace): Likewise.
662 (pp_c_left_bracket): Likewise.
663 (pp_c_right_bracket): Likewise.
664 (pp_c_declarator): Declare.
665 (pp_c_direct_declarator): Likewise.
666 (pp_c_specifier_qualifier_list): Likewise.
667 (pp_c_type_id): Likewise.
668 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
669 (pp_c_type_qualifier_list): New.
670 (pp_c_pointer): Likewise.
671 (pp_c_parameter_type_list): Likewise.
672 (pp_c_function_definition): Likewise.
673 (pp_c_id_expression): Likewise.
674 (pp_c_simple_type_specifier): Tidy.
675 (pp_c_unary_expression): Likewise.
676 (pp_c_expression): Likewise.
677 (pp_c_pretty_printer_init): Likewise.
678 (pp_c_specifier_qualifier_list): Rework..
679 (pp_c_abstract_declarator): Likewise.
680 (pp_c_postfix_expression): Likewise.
681 (pp_c_primary_expression): Likewise.
682 (pp_c_cast_expression): Likewise.
683 (pp_c_direct_abstract_declarator): Likewise.
684 (pp_c_storage_class_specifier): Likewise.
685 (pp_c_function_specifier): Likewise.
686 (pp_c_declaration_specifiers): Likewise.
687 (pp_c_direct_declarator): Likewise.
688 (pp_c_declarator): Likewise.
689 (pp_c_declaration): Likewise.
690 (pp_c_statement): Likewise.
691 (pp_c_integer_constant): Rename from pp_c_integer_literal.
692 (pp_c_character_constant): Rename from pp_c_character_literal.
693 (pp_c_bool_constant): Rename from pp_c_bool_literal.
694 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
695 (pp_c_floating_constant): Rename from pp_c_real_literal.
696 (pp_c_constant): Rename from pp_c_literal.
697 * c-lang.c: Include diagnostic.h and c-pretty-print.h
698 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
699 (c_initialize_diagnostics): New.
700 * Makefile.in (c-lang.o): Update dependency.
702 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
704 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
706 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
708 * config/mips/mips.c (mips_no_mips16_string): Remove.
709 (override_options): Don't handle -mips16 as part of -mipsN.
710 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
711 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
712 (TARGET_OPTIONS): Remove -mno-mips16.
714 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
716 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
717 (coprocessor2_operand): Likewise.
718 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
719 (lookup_name): Remove declaration.
720 (abort_with_insn): Remove. Replace all uses with fatal_insn.
721 (mips16, mips_abicalls): Remove.
722 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
723 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
724 (coprocessor_operand, coprocessor2_operand): Remove.
725 (override_options): Don't set mips16 or mips_abicalls.
726 (print_operand): Don't expect SIGN_EXTEND operands.
727 (mips_secondary_reload_class): Likewise.
728 (mips_output_conditional_branch): Remove disabled long-branch code.
729 * config/mips/mips.h (call_used_regs): Remove declaration.
730 (may_call_alloca): Likewise.
731 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
732 (mips_abicalls, mips16): Remove declarations.
733 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
734 (CC1_SPEC): Remove outdated comment.
735 (MIPS_VERSION, MACHINE_TYPE): Remove.
736 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
737 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
738 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
739 (PUSH_ROUNDING): Likewise.
740 (ASSEMBLER_SCRATCH_REGNUM): Remove.
741 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
742 and mips16 with TARGET_MIPS16.
744 2003-08-09 Per Bothner <pbothner@apple.com>
746 * cppinit.c (cpp_read_main_file): Split out source-independent
747 initialization to separate function ...
748 (cpp_post_options): New function.
749 * cppfiles.c (cpp_stack_file): Rename public name to ...
750 (_cpp_stack_file): New internal function name.
751 * cpplib.h: Update accordingly.
752 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
753 (cpp_read_main_file): Don't initialize line here.
754 * c-opts.c (c_common_post_options): Call cpp_post_options.
755 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
756 * fix-header.c (read_scan_file): Call cpp_post_options.
758 2003-08-09 Per Bothner <per@bothner.com>
760 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
762 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
764 * pa.c (pa_asm_output_mi_thunk): Fix typo.
766 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
768 PR preprocessor/11839
769 * cppfiles.c (open_file): Handle ENOTDIR.
771 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
774 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
776 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
778 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
779 source/destination is not a register operand.
781 2003-08-08 Richard Henderson <rth@redhat.com>
784 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
785 RETURN_ADDRESS_POINTER_REGNUM.
786 (ia64_expand_prologue): Don't frob it.
787 (ia64_output_function_epilogue): Likewise.
788 (ia64_return_addr_rtx): New.
789 (ia64_split_return_addr_rtx): New.
790 * config/ia64/ia64-protos.h: Update.
791 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
792 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
793 (GENERAL_REGNO_P): Don't check it.
794 (AR_*_REGNUM): Renumber.
795 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
796 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
797 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
798 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
799 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
800 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
801 (movdi_ret_addr): New.
803 2003-08-08 Geoffrey Keating <geoffk@apple.com>
805 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
807 2003-08-08 Roger Sayle <roger@eyesopen.com>
809 * tree.h (get_identifier) Define a macro form of get_identifier
810 that calls get_identifier_with_length when the string is constant.
811 (get_identifier_with_length): Change type of second argument to
813 * stringpool.c (get_identifier): Undefine the macro before giving
814 the function definition.
815 (get_identifier_with_length): Change type of second argument to
816 size_t in function definition.
817 * hashtable.c (calc_hash): Change type of second argument to size_t.
818 (ht_lookup): Change type of third argument to size_t. Reorganize
819 to speed-up the cases where the hash table slot is empty, or the
820 first probe matches (i.e. there isn't a collision).
821 * hashtable.h (ht_lookup): Adjust function prototype.
823 2003-08-08 Bernardo Innocenti <bernie@develer.com>
827 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
829 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
831 * common.opt: Add debug switches.
832 * flags.h (use_gnu_debug_info_extensions): Boolify.
833 * opts.c (write_symbols, debug_info_level,
834 use_gnu_debug_info_extensions): Move from toplev.c.
835 (set_debug_level): New.
836 (common_handle_options): Handle debug switches.
837 (print_help): Display target options directly.
838 * toplev.c (debug_hooks): Don't initialize.
839 (write_symbols, debug_info_level,
840 use_gnu_debug_info_extensions): Move to opts.c.
841 (debug_args, display_help, decode_g_option): Remove.
842 (process_options): Set no debug if level zero here,
843 and no-debug-hooks. Error here if impossible debug format selected.
844 * toplev.h (display_help, decode_g_option): Remove.
846 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
848 * tree.c (get_file_function_name_long): Fix size of alloca() area.
850 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
852 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
853 and gcc_cv_prog_cmp_skip.
854 * configure: Regenerate.
856 2003-08-08 Stan Cox <scox@redhat.com>
858 * config/iq2000: New port.
859 * config.gcc (iq2000-*-elf): Added.
860 * doc/install.texi (Specific): Add iq2000 description.
862 2003-08-08 Andreas Schwab <schwab@suse.de>
864 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
865 and insert missing empty argument.
866 * configure: Regenerate.
868 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
870 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
871 (attr_length_millicode_call): Likewise.
872 (attr_length_call): Likewise. Revise some maximum insn lengths.
873 (attr_length_indirect_call): Likewise.
874 (output_call): Fix thinko that added extra nop.
875 * pa.h (IN_NAMED_SECTION_P): Define.
878 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
879 __STDC_EXT__ when using C++ dialect.
881 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
883 * sh.c (calc_live_regs): If the return address pointer is live,
885 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
886 for saves / restores.
887 (sh_expand_epilogue): If sh_media_register_for_return returns a
888 register number, flag the instructions that restores PR_MEDIA_REG
890 Remove dead update of offset.
891 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
892 we can use the result of get_hard_reg_initial_val.
893 * sh.md (UNSPEC_RA): New constant.
894 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
895 (load_ra). Handle UNSPEC_RA.
896 (sibcall_media): Use PR_MEDIA_REG.
898 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
899 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
900 needs saving on SHmedia.
902 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
904 * config/s390/s390.md: Replace all occurrences of \\t with \t.
906 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
908 * local-alloc.c (combine_regs): Fix comment typo.
910 2003-08-06 Zack Weinberg <zack@codesourcery.com>
912 * c-decl.c (builtin_decls): Replace with first_builtin_decl
913 and last_builtin_decl.
914 (c_init_decl_processing): Initialize both.
915 (c_reset_state): Iterate from first_builtin_decl to
916 last_builtin_decl inclusive to reintroduce builtins.
918 2003-08-06 David Mosberger <davidm@hpl.hp.com>
920 * doc/extend.texi (Function Attributes): Document the IA-64 version
921 of the "model" attribute.
923 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
924 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
925 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
927 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
928 (ia64_encode_section_info): Likewise.
929 (ia64_attribute_table): Add "model" attribute.
930 (TARGET_ENCODE_SECTION_INFO): Define.
931 (small_addr_symbolic_operand): New function.
932 (got_symbolic_operand): Return 0 for a symbolref to an object
933 in the small address area.
934 (enum ia64_addr_area): New type.
935 (small_ident1): New variable.
936 (small_ident2): Likewise.
937 (init_idents): New function.
938 (ia64_get_addr_area): Likewise.
939 (ia64_encode_addr_area): Likewise.
940 (ia64_encode_section_info): Likewise.
941 (ia64_expand_load_address): For symbolic references to objects in
942 the small-address-area, load the address via gen_rtx_SET() (which,
943 eventually, will expand into "addl").
945 2003-08-06 Per Bothner <pbothner@apple.com>
947 * line-map.h (fileline): New typedef.
948 (struct line_map, linemap_add, linemap_lookup): Use it.
949 * input.h (struct location_s): Comment notes that long-term we want
950 to replace it by fileline.
952 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
954 Fix SHcompact exception handling:
955 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
956 by the prologue, return a MEM with return_address_pointer_rtx
958 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
959 (RETURN_ADDR_OFFSET): Don't define.
960 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
961 registers that are visible in compact mode. Show that SHmedia
962 registers still exist in compact mode, even if there are not
964 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
965 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
966 and DW_EH_PE_pcrel for pic data.
967 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
968 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
969 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
970 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
971 * sh.md (movsi_media-1): New splitter.
973 2003-08-06 Graeme Peterson <gp@qnx.com>
975 * config/i386/nto.h: New.
976 * config/i386/t-nto: New.
977 * config.gcc (i[34567]86-*-nto-qnx*): New.
979 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
981 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
983 2003-08-06 Alan Modra <amodra@bigpond.net.au>
985 * calls.c (load_register_parameters): Arrange for call_fusage to
986 report the whole register as used when shifting to the msb.
988 2003-08-05 Roger Sayle <roger@eyesopen.com>
990 * builtins.c (expand_builtin): When not optimizing, call the library
991 function for all builtins that have library functions (except alloca).
993 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
995 * c.opt: Introduce -fworking-directory.
996 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
997 * c-common.h (flag_working_directory): Declare.
998 * c-common.c (flag_working_directory): Define.
999 * c-opts.c (c_common_handle_options): Set it.
1000 (sanitize_cpp_opts): Set...
1001 * cpplib.h (struct cpp_options): ... working_directory option.
1002 (struct cpp_callbacks): Add dir_change.
1003 * cppinit.c (read_original_filename): Call...
1004 (read_original_directory): New. Look for # 1 "directory//"
1006 (cpp_read_main_file): Call dir_change callback if working_directory
1008 * gcc.c (cpp_unique_options): Pass -g*.
1009 * c-lex.c (cb_dir_change): New.
1010 (init_c_lex): Set dir_change callback.
1011 * toplev.c (src_pwd): New static variable.
1012 (set_src_pwd, get_src_pwd): New functions.
1013 * toplev.h (get_src_pwd, set_src_pwd): Declare.
1014 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
1015 * dwarf2out.c (gen_compile_unit_die): Likewise.
1016 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
1018 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1020 * pretty-print.h (pp_set_line_maximum_length): Make macro.
1021 (pp_set_prefix): Likewise.
1022 (pp_destroy_prefix): Likewise.
1023 (pp_remaining_character_count_for_line): Likewise.
1024 (pp_clear_output_area): Likewise.
1025 (pp_formatted_text): Likewise.
1026 (pp_last_position_in_text): Likewise.
1027 (pp_emit_prefix): Likewise.
1028 (pp_append_text): Likewise.
1029 (pp_flush): Likewise.
1030 (pp_format_text): Likewise.
1031 (pp_format_verbatim): Likewise.
1032 (pp_tree_identifier): Tidy.
1033 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
1034 (pp_base_format_verbatim): Rename from pp_format_verbatim.
1035 (pp_base_flush): Rename from pp_flush.
1036 (pp_base_set_line_maximum_length): Rename from
1037 pp_set_line_maximum_length.
1038 (pp_base_clear_output_area): Rename from pp_clear_output_area.
1039 (pp_base_set_prefix): Rename from pp_set_prefix.
1040 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
1041 (pp_base_emit_prefix): Rename from pp_emit_prefix.
1042 (pp_base_append_text): Rename from pp_append_text.
1043 (pp_base_formatted_text): Rename from pp_formatted_text.
1044 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
1045 (pp_base_remaining_character_count_for_line): Rename from
1046 pp_remaining_character_count_for_line.
1047 * diagnostic.h (diagnostic_format_decoder): Tidy.
1048 (diagnostic_flush_buffer): Likewise.
1049 * c-pretty-print.h: (pp_c_string_literal): Declare.
1050 (pp_c_real_literal): Likewise.
1051 (pp_c_integer_literal): Likewise.
1052 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
1054 (pp_c_character_literal): Tidy.
1055 (pp_c_string_literal): Make public.
1056 (pp_c_bool_literal): Likewise.
1057 (pp_c_integer_literal): Likewise.
1058 (pp_c_real_literal): Likewise.
1060 * Makefile.in (C_PRETTY_PRINT_H): New variable.
1061 (c-pretty-print.o): Update dependence.
1063 2003-08-05 Chris Demetriou <cgd@broadcom.com>
1065 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
1066 ".set nomacro" state.
1067 (fix_truncsfsi2_macro): Likewise.
1069 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
1071 * tree.h (DID_INLINE_FUNC): Remove macro.
1072 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
1073 add tree check for FUNCTION_DECL.
1074 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
1075 (struct tree_decl): Rename inlined_function_flag to
1076 declared_inline_flag.
1077 * c-common.h (c_lang_decl): Remove.
1078 (DECL_ESTIMATED_INSNS): Remove.
1079 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
1080 (DECL_DECLARED_INLINE_P): Remove.
1081 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
1082 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
1083 (finish_function): Make uninlinable a bool. Fixup call to
1084 tree_inlinable_function_p() and fix some code style issues.
1085 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
1086 * cgraph.c (dump_cgraph): Likewise.
1087 * cgraphunit.c (cgraph_decide_inlining): Likewise
1088 (cgraph_finalize_compilation_unit): Likewise.
1089 Also update call to tree_inlinable_function_p().
1090 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
1091 look at DECL_DECLARED_INLINE and reverse logic.
1092 * print-tree.c (print_node): Likewise.
1093 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
1094 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
1096 * tree-inline.c (inlinable_function_p): Split up in this function to
1097 check for basic inlining inhibiting conditions, and new
1098 limits_allow_inlining() function. Warn if inlining is impossible
1099 because the inline candidate calls alloca or uses sjlj exceptions.
1100 (limits_allow_inlining): this new function to check if the inlining
1101 limits are satisfied. Throttle from currfn_max_inline_insns, not from
1102 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
1103 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
1105 (tree_inlinable_function_p): Make a bool. Update call to
1106 inlinable_function_p
1107 (expand_call_inline): Use limits_allow_inlining() when not in
1108 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
1109 instead see if the function was declared `inline'.
1111 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
1113 * gcse.c (try_replace_reg): Fix updating of note.
1115 2003-08-04 Roger Sayle <roger@eyesopen.com>
1118 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
1119 logic in negate_expr, i.e. we don't invert (A-B) for floating
1120 point types unless flag_unsafe_math_optimizations.
1122 2003-08-04 Roger Sayle <roger@eyesopen.com>
1124 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
1125 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
1126 for floating point expressions with -ffast-math.
1127 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
1128 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
1130 2003-08-04 Roger Sayle <roger@eyesopen.com>
1132 * c-common.c (flag_noniso_default_format_attributes): Delete.
1133 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
1134 (c_attrs_initialized): Delete.
1135 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
1136 always call c_init_attributes.
1137 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
1138 set c_attrs_initialized when done.
1139 (c_common_insert_default_attributes): Delete.
1140 * c-common.h (flag_noniso_default_format_attributes): Delete.
1141 (c_coomon_insert_default_attributes): Delete prototype.
1142 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
1143 flag_noniso_default_format_attributes.
1145 * c-decl.c (c_insert_default_attributes): Delete.
1146 * c-tree.h (c_insert_default_attributes): Delete prototype.
1148 * attribs.c (decl_attributes): Don't call insert_default_attributes
1149 langhook. Update function description comment.
1150 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
1151 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
1152 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
1153 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
1155 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
1158 2003-08-04 Richard Sandiford <rsandif@redhat.com>
1160 * config/mips/mips.c (override_options): Disable -G on targets that
1161 have no .section support.
1162 (mips_select_section): Use default_select_section for such targets.
1164 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
1166 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
1167 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
1168 * fixinc/fixincl.x: Rebuild.
1169 * fixinc/tests/base/regexp.h: New test.
1171 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
1173 * c-ppoutput.c (cb_line_change): Don't skip line changing while
1174 parsing macro arguments in the top-level context.
1176 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
1178 * config.in: Remove HAVE_LSTAT.
1179 * configure, configure.in: Don't test for lstat.
1181 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1183 * opts.c (decode_options): Do language-specific initialization for
1184 the global diagnostic context.
1185 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
1186 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
1187 (LANG_HOOKS_INITIALIZER): Adjust.
1188 * langhooks.h (struct lang_hooks): Add new field
1189 initialize_diagnostics.
1190 * langhooks.c (lhd_initialize_diagnostics): Define.
1192 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1194 * pretty-print.h: Adjust macro definitions.
1195 * pretty-print.c (pp_newline): Rename to pp_base_newline.
1196 (pp_character): Rename to pp_base_character.
1197 (pp_string): Rename to pp_base_string.
1198 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
1199 (pp_newline): Likewise. Adjust.
1200 (pp_c_char): Adjust.
1202 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1204 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
1205 BUILT_IN_LLABS): Move to miscellaneous section.
1207 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1209 PR preprocessor/11534
1210 * cppexp.c (parse_defined): Warn only if -pedantic.
1212 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1214 * cppfiles.c (stack_file): Use file path.
1216 2003-08-02 Roger Sayle <roger@eyesopen.com>
1218 * builtin-types.def (BT_SSIZE): New primitive type.
1219 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
1220 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
1221 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
1222 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
1223 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
1224 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
1225 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
1226 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
1227 few functions that define default attributes using it.
1228 * c-common.c (c_common_insert_default_attributes): Do nothing.
1230 * doc/extend.texi: Document these "new" builtins.
1232 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
1234 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
1235 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
1236 when -mieee-fp set and -shared not set.
1237 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
1239 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1241 * cppfiles.c (struct _cpp_file): Rename once_only_next to
1242 next_file. Remove import and pragma_once, add once_only.
1243 (find_file): Add new file structures to the all_files list.
1244 (should_stack_file): Mark #import-ed files once-only, and
1245 don't stack them if the file has already been stacked.
1246 (_cp_mark_file_once_only): Simplify.
1247 * cpphash.h (struct cpp_reader): Rename once_only_files
1248 to all_files. Rename saw_pragma_once to seen_once_only.
1249 (_cpp_mark_file_once_only): Update prototype.
1250 * cpplib.c (do_pragma_once): Update.
1252 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1254 * cppfiles.c (ENOTDIR): Remove.
1255 (open_file_in_dir): Rename find_file_in_dir. Handle errors
1256 other than ENOENT here.
1257 (once_only_file_p): Rename should_stack_file.
1258 (find_file, open_file_failed, read_file_guts): Report errors
1259 with full path name.
1260 (read_file): Move pch handling to should_stack_file.
1261 (should_stack_file): Handle PCH and once-only issues, and
1263 (stack_file): Don't do file reads.
1265 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1267 * libgcov.c (gcov_exit): Cleanup and fix.
1268 * profile.c (compute_value_histograms): Don't try to read profiles
1269 that are not present.
1271 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1273 * builtins.def: Categorize.
1275 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
1277 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
1279 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
1281 * config.gcc: Enable posix threads by default on darwin.
1283 2003-08-01 Jakub Jelinek <jakub@redhat.com>
1285 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
1286 even if nehedges1 is 0.
1288 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
1290 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
1291 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
1292 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
1295 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
1296 * fixinc/fixincl.x: Regenerate.
1297 * fixinc/tests/base/math.h: Regenerate to match test_text change.
1299 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1301 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
1303 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1305 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
1306 for accesses to exc_ptr.
1308 2003-08-01 Geoffrey Keating <geoffk@apple.com>
1310 * doc/sourcebuild.texi (Front End Directory): Don't make references
1311 to libsubdir, it's not part of the interface to frontends.
1312 * doc/install.texi (Configuration): Help users read faster by saying
1313 that GCC's configure options are the standard autoconf ones.
1314 Mention --libdir. Update the default rules for finding the
1315 assembler. Don't use libsubdir since we haven't said what it means.
1316 (Specific): In the Solaris 7 notes, update the place to put the
1318 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
1319 * doc/cpp.texi (Search Path): Actually, the search path
1320 depends on libdir, which can relocate with cpp.
1321 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
1322 now a private interface between the Makefile and the driver.
1324 2003-08-01 Richard Henderson <rth@redhat.com>
1326 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
1328 * varasm.c (lookup_constant_def): New function.
1329 * rtl.h (lookup_constant_def): Declare it.
1330 * dwarf2out.c (loc_descriptor_from_tree): Use it.
1331 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
1333 2003-08-01 Zack Weinberg <zack@codesourcery.com>
1335 * c-decl.c (gettags, pushdecl_function_level): Delete.
1336 (last_function_parm_vars): Rename last_function_parm_others.
1337 (current_function_parm_vars): Rename current_function_parm_others.
1338 (struct c_scope): Rewrite comment explaining this data structure.
1339 Add names_last, blocks_last, parms_last fields. Rename
1340 incomplete_list to incomplete.
1341 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
1342 (poplevel): Ignore second argument. No need to nreverse
1343 anything. Restructure such that each list is processed
1344 exactly once. Use 'const location_t *locus' syntactic sugar
1345 variable where useful. Issue unused variable warnings
1346 ourselves, do not rely on function.c.
1347 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
1348 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
1349 (implicitly_declare): decl cannot be error_mark_node.
1350 (undeclared_variable): Manipulate scope structure directly.
1351 (c_make_fname_decl): Likewise.
1352 (getdecls, c_init_decl_processing): Fix comment.
1353 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
1354 for 'last' variable.
1355 (grokparms): No need to nreverse parms list.
1356 (store_parm_decls_newstyle): Set up the parms_last and
1357 names_last fields of the new scope too.
1358 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
1359 on parms to begin with; check this under ENABLE_CHECKING. Set
1361 (check_for_loop_decls): Refer directly to current_scope->tags.
1362 Use consistent quote style in diagnostics.
1363 (c_write_global_declarations): The names list is not backward.
1365 * c-common.h: Don't prototype gettags.
1366 * c-parse.in: Call poplevel with second argument 0 always.
1368 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1370 * builtins.def: Resort builtins.
1372 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1374 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
1375 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
1376 Prepend "__builtin_" onto NAME with string concatenation. Remove
1377 explicit "__builtin_" from each macro call.
1379 Reformat entire file.
1381 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1383 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1384 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
1386 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
1388 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
1389 CCL1, or CCL2 modes with floating point operations.
1391 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
1392 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
1393 "*subdf3_cconly"): New insns.
1394 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
1396 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
1398 * Makefile.in: Refine dependencies.
1399 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
1400 * c.opt: Update help for -Wimport.
1401 * cppfiles.c: Include hashtab.h. Update comments.
1402 (stack_file): Read the file before updating dependencies.
1403 (once_only_file_p): Be smarter about marking once-only files.
1404 (_cpp_mark_file_once_only): Correct the check for existence on
1406 (open_file_failed): Use name not path, which is NULL.
1407 * cpphash.h: Don't include hashtab.h.
1408 (struct _cpp_file): Remove.
1409 (struct cpp_reader): Update.
1410 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
1411 * cpplib.h (struct cpp_options): Remove warn_import.
1412 (cpp_simplify_path): Remove.
1414 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
1417 * doc/extend.texi (Statement Expressions): Document C++ semantics.
1419 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1421 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
1423 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1425 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
1427 * builtins.def: Likewise.
1429 2003-07-31 Jason Merrill <jason@redhat.com>
1431 * Makefile.in (bubblestrap): Don't require a previous full
1434 * expr.c (mostly_zeros_p): No longer static.
1435 * tree.h: Declare it.
1436 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
1437 unless we need to do substitutions.
1439 2003-07-31 Roger Sayle <roger@eyesopen.com>
1441 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
1442 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
1443 as pow(x,2.0) when the latter will be expanded back into x*x.
1444 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
1445 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
1446 pow can never set errno when used with an integer exponent.
1447 Always use expand_powi when exponent is -1, 0, 1 or 2.
1448 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
1449 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
1450 the pow forms of these expressions.
1452 2003-07-31 Geoffrey Keating <geoffk@apple.com>
1454 * Makefile.in (libexecdir): New.
1455 (libsubdir): Use gcc instead of gcc-lib.
1456 (libexecsubdir): New.
1457 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
1458 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
1460 (installdirs): Make libexecsubdir.
1461 (install-common): Put executables in libexecsubdir.
1462 (itoolsdir): Use libexecsubdir.
1463 (itoolsdatadir): New.
1464 (install-mkheaders): Separate data files and executables.
1465 (install-collect2): Put executables in libexecsubdir.
1466 (uninstall): Remove libexecsubdir.
1467 * mkheaders.in: Update for new arrangement of files.
1469 (libexecsubdir): New.
1470 (itoolsdir): Use libexecsubdir.
1471 (itoolsdatadir): New.
1472 * gcc.c (gcc_libexec_prefix): New.
1473 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
1474 (standard_exec_prefix_1): Use libexec.
1475 (standard_exec_prefix_2): New.
1476 (standard_libexec_prefix): New.
1477 (process_command): Update for new arrangement of files. Compute
1478 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
1480 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
1482 * inclhack.def (stdio_va_list): Avoid bogus replacement which
1483 triggers on Interix.
1484 * fixincl.x: Regenerate.
1486 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1488 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
1489 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
1491 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1493 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
1495 2003-07-31 Per Bothner <pbothner@apple.com>
1497 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
1498 (add_input_filename): New function.
1499 (handle_options): Call add_input_filename directly instead of
1501 * opts.h (in_fnames, num_in_fnames): Moved here.
1502 (add_input_filename): Declare.
1503 * c-decl.c: Need to #include opts.h.
1504 * Makefile.in (c-decl.o): Also depends on opts.h.
1505 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
1506 (c_common_handle_filename): Replaced by add_input_filename.
1507 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
1509 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
1510 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1511 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
1512 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1514 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1516 * combine.c (try_combine): Set JUMP_LABEL for newly created
1519 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1521 * fold-const.c (fold): Fold some comparisons of bit operations.
1523 Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
1525 * cgraph.c (create_edge): Fix typo.
1526 * i386.c (pic_symbolic_operand): Reorder tests.
1528 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
1530 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
1532 (Gcov Data Files): Update.
1534 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1536 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
1539 * gthr-posix.c: New file.
1540 * gthr-posix.h: Define _REENTRANT if missing.
1541 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
1543 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
1545 * config/alpha/t-osf-pthread: New file.
1547 * fixinc/inclhack.def (alpha_pthread): New fix.
1548 * fixinc/fixincl.x: Regenerate.
1549 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
1551 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
1553 Fixes PR bootstrap/9330.
1555 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1557 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
1560 * configure: Regenerate.
1562 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
1564 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
1567 2003-07-30 Roger Sayle <roger@eyesopen.com>
1569 * builtins.def: Alphabetize.
1571 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1573 * doc/c-tree.texi: Normalize spellings of "lowercase" and
1575 * doc/cpp.texi: Likewise.
1576 * doc/md.texi: Likewise.
1577 * doc/rtl.texi: Likewise.
1578 * doc/tm.texi: Likewise.
1580 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1582 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
1583 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
1586 2003-07-30 Chris Demetriou <cgd@broadcom.com>
1588 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
1589 macros before defining them.
1591 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
1593 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
1594 UNSPECV_BLOCKAGE): New constants.
1595 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
1596 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
1597 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
1598 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
1600 (all insns and expanders): Write output control string as brace block
1601 where appropriate. Remove \-escapes for doublequote characters.
1603 Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
1605 * gcse.c (insert_store): Fix typo in previous patch.
1607 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
1609 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
1611 2003-07-30 Andi Kleen <ak@muc.de>
1613 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
1615 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1617 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
1618 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
1619 GCOV_N_VALUE_COUNTERS): New.
1620 * profile.c (compute_value_histograms): New static function.
1621 (branch_prob): Read back the value histograms.
1622 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
1623 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
1624 * value-prof.c: Add comment on reading the profile.
1625 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
1626 * doc/invoke.texi (-fprofile-values): Document behavior with
1627 -fbranch-probabilities.
1629 2003-07-30 David Edelsohn <edelsohn@gnu.org>
1631 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
1633 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
1635 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
1638 Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
1640 * gcse.c (insert_store): Ignore fake edges.
1642 * c-common.c (flag_vtable_gc): Kill.
1643 * c-common.g (flag_vtable_gc): Kill.
1644 * c-opts (c_common_handle_option): Kill.
1645 * c.opt (fvtable-gc): Kill.
1646 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
1647 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1648 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1650 * invoke.texi (-ftable-gc): Kill documentation.
1652 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
1653 just because function body is missing.
1655 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
1657 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
1659 * unwind-sjlj.c: Fix typo in file description.
1661 2003-07-30 Alan Modra <amodra@bigpond.net.au>
1663 * calls.c (load_register_parameters): When shifting reg sized values
1664 to the msb, move the value to a reg first.
1666 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1668 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
1669 * line-map.h (linemap_add): Update comments.
1670 * line-map.c (linemap_add): Update comments, interpret zero-length
1671 filename as "<stdin>".
1673 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
1675 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
1677 2003-07-29 Zack Weinberg <zack@codesourcery.com>
1679 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
1680 New static variables.
1681 (struct c_scope): Add parms and warned_forward_parm_decls
1682 fields; remove parm_order.
1683 (storedecls, storetags): Delete.
1684 (poplevel): Also clear bindings on the parms chain.
1685 (pushdecl): Handle forward declarations of parameters, and
1686 chain PARM_DECLs on the parms list, not the names list.
1687 (lookup_name_current_level): Check for PARM_DECLs on the parms
1689 (push_parm_decl): Don't update parm_order.
1690 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
1691 warning, only once per parameter list, and set TREE_ASM_WRITTEN
1692 on the decls here. Then move the forward decls to the names list.
1693 (grokparms): Set last_function_parm_vars.
1694 (get_parm_info): Don't use gettags or getdecls. No need to
1695 extract non-parms from the parms list, or reorganize the parms
1696 list. Feed nonparms back in the TREE_TYPE of the list node
1697 returned. Issue only one error per parameter list for "void"
1698 appearing more than once in said parameter list. Collapse
1699 parmlist_tags_warning into this function to avoid double scan
1701 (start_function): Set current_function_parm_vars.
1702 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
1703 directly. Get non-parms from current_function_parm_vars; no
1704 need to extract them from the parms chain. Properly bind tags
1706 (store_parm_decls_oldstyle): No need to extract non-parameters
1707 from the parms chain, nor to store them back afterward. Move
1708 declaration to top of function, restructure code reordering
1710 (store_parm_decls): No need to save and restore warn_shadow.
1711 * c-parse.in: Don't call parmlist_tags_warning nor
1712 clear_parm_order. Call mark_forward_parm_decls when forward
1713 parm decls are encountered.
1714 * c-tree.h: Prototype mark_forward_parm_decls; not
1715 clear_parm_order or parmlist_tags_warning.
1717 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1719 * c-common.c (allow_pch): Remove.
1720 * c-common.h (allow_pch): Remove.
1721 (c_common_no_more_pch): Declare.
1722 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
1723 * c-pch.c: Include hosthooks.h.
1724 (c_common_valid_pch): Don't check allow_pch.
1725 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
1726 (c_common_no_more_pch): New.
1727 * ggc-common.c: Include hosthooks.h.
1728 (gt_pch_save): Call gt_pch_get_address.
1729 (gt_pch_restore): Call gt_pch_use_address.
1730 * hooks.c (hook_voidp_size_t_null): New.
1731 (hook_bool_voidp_size_t_false): New.
1732 * hooks.h (hook_voidp_size_t_null): New.
1733 (hook_bool_voidp_size_t_false): New.
1734 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
1735 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
1736 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
1737 HOST_HOOKS_GT_PCH_USE_ADDRESS.
1738 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
1740 * doc/hostconfig.texi (Host Common): Document
1741 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
1742 * Makefile.in (c-pch.o): Depend on hosthooks.h.
1743 (ggc-common.o): Likewise.
1745 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
1746 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
1747 (pch_address_space): New.
1748 (darwin_rs6000_gt_pch_get_address): New.
1749 (darwin_rs6000_gt_pch_use_address): New.
1751 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
1753 PR preprocessor/11569
1754 PR preprocessor/11649
1755 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
1756 * cppfiles.c: Completely rewritten.
1757 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
1758 struct cpp_path is now struct cpp_dir.
1759 (remove_duplicates): Don't simplify path names.
1760 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
1762 * cpphash.h: Include hashtab.h.
1763 (_cpp_file): Declare.
1764 (struct cpp_buffer): struct include_file is now struct _cpp_file,
1765 and struct cpp_path is now struct cpp_dir. Rename members.
1766 (struct cpp_reader): Similarly. New members once_only_files,
1767 file_hash, file_hash_entries, quote_ignores_source_dir,
1768 no_search_path, saw_pragma_once. Remove all_include_files and
1769 max_include_len. Make some members bool.
1770 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
1771 (_cpp_stack_file): Renamed from _cpp_read_file.
1772 (_cpp_stack_include): Renamed from _cpp_execute_include.
1773 (_cpp_init_files): Renamed from _cpp_init_includes.
1774 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
1775 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
1776 (cpp_read_next_file): Rename and move to cppfiles.c.
1777 (cpp_read_main_file): Update.
1778 * cpplib.c (run_directive): Update for renamed members.
1779 (do_include_common, _cpp_pop_buffer): Update.
1780 (do_import): Undeprecate #import.
1781 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
1782 * cpplib.h: Remove file_name_map_list.
1783 (cpp_options): Remove map_list.
1784 (cpp_dir): Rename from cpp_path. New datatype for name_map.
1785 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
1787 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
1789 * Makefile.in: Make stamp-objdir safe for parallel builds.
1791 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
1793 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
1794 (info): Depend on stmp-docobjdir.
1796 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1798 * configure: Regenerate.
1800 Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
1803 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
1804 in !unit-at-a-time mode.
1806 2003-07-28 Geoffrey Keating <geoffk@apple.com>
1808 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
1811 2003-07-28 Mark Mitchell <mark@codesourcery.com>
1814 * c-common.c (shorten_compare): Take into account differences
1815 between C and C++ representation for enumeration types.
1816 * tree.h (set_min_and_max_values_for_integral_type): Declare.
1817 * stor-layout.c (set_min_and_max_values_for_integral_type): New
1818 function, broken out from ...
1819 (fixup_signed_type): ... here and ...
1820 (fixup_unsigned_type): ... here.
1822 2003-07-28 Zack Weinberg <zack@codesourcery.com>
1824 * c-decl.c: Update commentary, adjust blank lines throughout.
1825 (struct c_scope): Fix indentation. Reorder members so
1826 outer-context pointers come first, booleans last.
1827 (duplicate_decls, define_label): Use a 'locus' variable for
1828 diagnostic locations in a few more places.
1829 (warn_if_shadowing): Un-split a conditional that fits on one line.
1830 (c_init_decl_processing): No need to clear current_scope and
1831 current_function_scope.
1832 (start_decl): Merge if/else if statements with same action.
1833 (push_parm_decl): Rename old_immediate_size_expand to use
1834 save_foo convention; save/restore around entire function.
1835 (grokdeclarator): Remove unnecessary braces.
1837 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
1838 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
1840 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
1841 when warn_declaration_after_statement. Call pedwarn_c90, not
1842 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
1843 * c-common.c (warn_declaration_after_statement): Define.
1844 * c-common.h (warn_declaration_after_statement): Declare.
1845 * c.opt (Wdeclaration-after-statement): New.
1846 * c-errors.c (pedwarn_c90): New function.
1847 * c-opts.c (c_common_handle_option) <case
1848 OPT_Wdeclaration_after_statement>: New.
1849 * c-tree.h (pedwarn_c90): Declare.
1850 * doc/invoke.texi (Option Summary): Document
1851 -Wdeclaration-after-statement.
1852 (Warning Options): Ditto.
1854 Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
1856 * i386.md (memory attribute) Avoid accessing uninitialized memory
1857 for ishift1 type instructions.
1859 2003-07-28 Jakub Jelinek <jakub@redhat.com>
1861 * configure.in (--enable-checking): Add fold category.
1862 (ENABLE_FOLD_CHECKING): Define if requested.
1863 * configure: Rebuilt.
1864 * config.in: Rebuilt.
1865 * doc/install.texi: Document it.
1866 * fold-const.c: Include md5.h.
1867 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
1868 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
1869 print_fold_checksum): New functions.
1871 * fold-const.c (fold): Never modify argument passed to fold, instead
1872 change a copy and return it.
1873 * convert.c (convert_to_integer): Likewise.
1875 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
1877 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
1878 cleanup of junk after #else and #endif directives. Collapse repeated
1879 clauses into for statment.
1881 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
1883 2003-07-27 Zack Weinberg <zack@codesourcery.com>
1885 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
1886 (keep_next_if_subblocks): Rename next_is_function_body.
1887 (pushlevel): Adjust commentary. Always set ->keep on the
1888 outermost level of a function. Don't set ->keep_if_subblocks.
1889 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
1890 (store_parm_decls): Adjust to match.
1891 (finish_function): Adjust to match.
1892 Call poplevel with all three arguments zero.
1894 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
1895 New functions split out of store_parm_decls.
1896 Avoid unnecessary work. Use local variables consistently.
1897 (store_parm_decls): Likewise.
1899 (finish_function): No need to set functionbody flag on call to
1901 (struct language_function): Remove scope field.
1902 (c_push_function_context, c_pop_function_context): No need to
1903 save and restore current_scope.
1905 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
1907 * doc/extend.texi (Deprecated Features): Implicit typename is
1908 gone. Default args on types is going.
1910 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
1912 * Makefile.in (ifcvt.o): Depend on target.h
1913 * ifcvt.c (target.h): Include.
1914 (if_convert): Don't call mark_loop_exit_edges if we can't
1917 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1919 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
1921 2003-07-26 Richard Henderson <rth@redhat.com>
1924 * cse.c (count_reg_usage): Handle asm_operands properly.
1926 2003-07-26 Roger Sayle <roger@eyesopen.com>
1928 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
1929 (DEF_EXT_FALLBACK_BUILTIN): Delete.
1930 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
1931 the regular DEF_EXT_LIB_BUILTIN macro.
1932 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
1933 the regular DEF_LIB_BUILTIN macro.
1934 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
1935 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
1936 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
1937 DEF_EXT_LIB_BUILTIN macro.
1939 * c-decl.c (duplicate_decls): Remove code to handle builtin
1940 functions prototyped without an argument list.
1942 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
1944 * config/i386/winnt.c: Revert 2003-07-08 change.
1945 (i386_pe_section_type_flags): Remove error_with_decl here too.
1947 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
1949 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
1950 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
1951 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
1952 (v850_handle_data_area_attribute): Likewise.
1954 2003-07-26 Geoffrey Keating <geoffk@apple.com>
1956 * varasm.c (output_constant_def_contents): Use
1957 ASM_DECLARE_CONSTANT_NAME if defined.
1958 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
1959 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
1960 objects get at least one byte to prevent assembler problems.
1961 (ASM_DECLARE_CONSTANT_NAME): New.
1963 * Makefile.in (libbackend.o): Remove options_.h.
1964 (mostlyclean): Likewise.
1966 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
1967 insert a label at the end of an function under Mach-O.
1969 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
1971 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
1973 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
1975 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
1977 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
1979 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1981 * doc/passes.texi (Passes): Mention pretty-printing and
1984 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
1986 * doc/extend.texi (Function Attributes): GNU C++ does now allow
1987 unused parameter decls.
1988 (Attribute Syntax): GNU C++ does not allow label attributes to be
1991 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1993 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
1994 (objc_declare_class): Likewise.
1995 (error_with_ivar): Likewise.
1996 (start_class): Likewise.
1997 (warn_with_method): Likewise.
1999 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2001 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
2003 * calls.c (try_to_integrate): Don't use xxx_with_decl.
2004 (expand_call): Likewise.
2005 * dwarfout.c (output_reg_number): Likewise.
2006 * expr.c (expand_expr): Likewise.
2007 * function.c (assign_temp): Likewise.
2008 (uninitialized_vars_warning): Likewise.
2009 (setjmp_args_warning): Likewise.
2010 (expand_function_end): Likewise.
2011 * stmt.c (fixup_gotos): Likewise.
2012 (warn_about_unused_variables): Likewise.
2013 (expand_end_bindings): Likewise.
2014 * stor-layout.c (layout_decl): Likewise.
2015 (place_field): Likewise.
2016 * toplev.c (check_global_declarations): Likewise.
2017 (rest_of_handle_inlining): Likewise.
2018 (default_tree_printer): New function.
2019 (general_init): Initialize diagnostic machinery before routing
2020 signals to the ICE machinery. Set default tree printer.
2021 * toplev.h (pedwarn_with_decl): Remove declaration.
2022 (warning_with_decl): Likewise.
2023 (error_with_decl): Likewise.
2024 (pedwarn): Remove attribute for the time being.
2025 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
2026 * varasm.c (named_section): Likewise.
2027 (make_decl_rtl): Likewise.
2028 (assemble_variable): Likewise.
2029 (merge_weak): Likewise.
2030 (declare_weak): Likewise.
2032 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
2033 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
2034 (format_with_decl): Remove.
2035 (diagnostic_for_decl): Likewise.
2036 (pedwarn_with_decl): Likewise.
2037 (warning_with_decl): Likewise.
2038 (error_with_decl): Likewise.
2039 (diagnostic_initialize): Adjust.
2040 (diagnostic_count_diagnostic): Likewise.
2041 (announce_function): Likewise.
2042 (lhd_print_error_function): Likewise.
2043 (diagnostic_report_current_module): Likewise.
2044 (default_diagnostic_starter): Likewise.
2045 (diagnostic_report_diagnostic): Likewise.
2046 (default_diagnostic_finalizer): Likewise.
2047 (verbatim): Likewise.
2049 (warning): Likewise.
2050 * opts.c (common_handle_option): Likewise.
2051 * pretty-print.c: New file.
2052 * c-pretty-print.h (pp_base): Override.
2053 * c-pretty-print.c: Adjust use of macros throughout.
2054 (pp_buffer): New macro.
2055 (pp_newline): Likewise.
2056 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
2057 * Makefile.in (DIAGNOSTIC_H): New variable.
2058 (c-errors.o): Use it.
2059 (c-objc-common.o): Likewise.
2060 (c-common.o): Likewise.
2061 (c-opts.o): Likewise.
2062 (c-format.o): Likewise.
2063 (diagnostic.o): Likewise.
2065 (toplev.o): Likewise.
2066 (rtl-error.o): Likewise.
2067 (dwarf2out.o): Likewise.
2069 (pretty-print.o): New rule.
2071 2003-07-24 Roger Sayle <roger@eyesopen.com>
2073 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
2074 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
2075 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
2076 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
2077 (DEF_FRONT_END_LIB_BUILTIN): Delete.
2078 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
2079 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
2081 * builtins.c (build_string_literal): New function to construct
2082 a char* pointer to a string literal.
2083 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
2084 "rtx target" to be consistent with other expand_builtin_* functions.
2085 Change 3rd argument from "int unlocked" to "bool unlocked".
2086 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
2087 c-common.c to avoid front-end dependencies. Optimize printf("")
2088 as a no-op when the result isn't required. Handle embedded NULs
2090 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
2091 from c-common.c to avoid front-end dependencies. Likewise, optimize
2092 fprintf(fp,"") as a no-op when the result isn't required, evaluating
2093 fp for side-effects. Handle embedded NULs in format string.
2094 (expand_builtin_sprintf): Fix typo.
2095 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
2096 optimizing. Adjust calls of expand_builtin_fputs to match the API
2097 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
2098 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
2099 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
2101 * c-common.c (is_valid_printf_arglist): Delete.
2102 (c_expand_builtin): Delete.
2103 (c_expand_builtin_printf): Moved to builtins.c. Delete.
2104 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
2105 (c_expand_expr): No longer treat CALL_EXPRs specially.
2106 (CALLED_AS_BUILT_IN): Delete.
2108 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2110 PR optimization/11631
2111 * gcse.c (store_motion): Connect infinite loops to exit.
2113 2003-07-24 Jason Merrill <jason@redhat.com>
2115 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
2116 (boolean_true_node, boolean_false_node): Likewise.
2117 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
2118 * tree.c (build_common_tree_nodes): Init boolean_type_node.
2119 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
2120 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
2121 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
2122 (truthvalue_true_node): Renamed from boolean_true_node.
2123 (truthvalue_false_node): Renamed from boolean_false_node.
2124 * c-decl.c: Just set truthvalue_* to integer_*.
2125 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
2127 2003-07-24 Roger Sayle <roger@eyesopen.com>
2129 * c-decl.c (match_builtin_function_types): New subroutine of
2130 duplicate_decls to test whether a redeclaration of a builtin
2131 function is suitably close, i.e. the return type and all of
2132 the argument types have the same modes as the builtin expects.
2133 (duplicate_decls): Fuzzy type matching for builtin functions
2134 moved to match_builtin_function_types.
2136 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2138 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
2141 2003-07-24 Zack Weinberg <zack@codesourcery.com>
2143 * c-decl.c: Search-and-replace change 'binding level' to
2144 'scope' in commentary.
2145 (struct binding_level): Now struct c_scope.
2146 (current_binding_level): Now current_scope.
2147 (free_binding_level): Now scope_freelist.
2148 (current_function_level): Now current_function_scope.
2149 (global_binding_level): Now global_scope.
2150 (make_binding_level): Now make_scope.
2151 (pop_binding_level): Now pop_scope.
2153 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2155 * configure.in (libgcc_visibility): Add missing whitespace.
2157 2003-07-24 Richard Henderson <rth@redhat.com>
2159 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
2160 __gcc_personality_v0.
2162 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2164 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
2166 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
2168 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
2169 documentation missed from my 2003-07-09 patch.
2171 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
2173 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
2175 * configure: Rebuild.
2177 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
2180 * c-typeck.c (type_lists_compatible_p): Do not compare
2181 arguments if one of them is an error_mark_node
2183 2003-07-24 Alan Modra <amodra@bigpond.net.au>
2185 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
2186 if current_function_calls_eh_return.
2188 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2190 * doc/c-tree.texi (OFFSET_TYPE): Update description.
2192 2003-07-23 Bob Wilson <bob.wilson@acm.org>
2194 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
2195 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
2196 __umodsi3, __modsi3): Increase frame size to 32.
2198 2003-07-23 Geoffrey Keating <geoffk@apple.com>
2200 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
2203 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2205 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
2207 PR optimization/10679
2208 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
2210 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2212 PR target/11607 and PR target/11516
2213 * pa.md (extzv, extv, insv): Revert latter half of last patch.
2215 2003-07-22 Mark Mitchell <mark@codesourcery.com>
2217 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
2218 * varasam.c (output_constant): Likewise.
2220 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2222 * alias.c: Fix comment formatting.
2223 * c-common.c: Likewise.
2224 * c-decl.c: Likewise.
2225 * c-opts.c: Likewise.
2226 * combine.c: Likewise.
2227 * cpplib.c: Likewise.
2228 * diagnostic.c: Likewise.
2229 * dojump.c: Likewise.
2230 * final.c: Likewise.
2231 * fold-const.c: Likewise.
2234 * ggc-page.c: Likewise.
2237 * mips-tfile.c: Likewise.
2238 * recog.c: Likewise.
2239 * regclass.c: Likewise.
2240 * regmove.c: Likewise.
2244 2003-07-22 Per Bothner <pbothner@apple.com>
2246 * line-map.c (add_line_map): Handle invalid LEAVE request.
2247 Fixes PR preprocessor/11361.
2249 2003-07-22 Per Bothner <pbothner@apple.com>
2251 * diagnostic.c.(diagnostic_report_current_module): Update to match
2252 2003-06-05 changes to push_srcloc and pop_srcloc.
2254 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
2256 * doc/trouble.texi: Better document two-stage name lookup.
2258 2003-07-22 Eric Christopher <echristo@redhat.com>
2260 * config/s390.c (s390_valid_pointer_mode): New.
2261 (TARGET_VALID_POINTER_MODE): Use.
2262 (s390_emit_prologue): Add tpf profiling hooks.
2263 (s390_emit_epilogue): Ditto.
2264 * config/s390.h (MASK_TPF): New.
2266 (POINTERS_EXTEND_UNSIGNED): Define.
2267 * config/s390.md (ptr_extend): New pattern.
2269 2003-07-22 Zack Weinberg <zack@codesourcery.com>
2271 * hashtable.c (approx_sqrt): Make static.
2272 * hashtable.h: Don't prototype approx_sqrt.
2273 * line-map.c (init_line_maps): Rename linemap_init.
2274 (free_line_maps): Rename linemap_free.
2275 (add_line_map): Rename linemap_add.
2276 (lookup_line): Rename linemap_lookup.
2277 (print_containing_files): Rename linemap_print_containing_files.
2278 * linemap.h: Update to match.
2280 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
2281 linemap routines to use new names.
2283 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
2285 * c-common.c (handle_packed_attribute): Don't pack a struct via a
2286 typedef. Propagate packedness from a main variant.
2288 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
2290 * Makefile.in (install-common): Add dependency on installdirs.
2292 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
2294 * c-common.c (c_common_type_for_mode): Return integer types for
2297 2003-07-22 Geoffrey Keating <geoffk@apple.com>
2299 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
2300 (finish_decl): Call maybe_apply_pragma_weak here.
2301 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
2302 TREE_PUBLIC and TREE_STATIC are decided.
2303 (start_function): Move call to maybe_apply_pragma_weak. Check that
2304 DECL_ASSEMBLER_NAME isn't set too early.
2306 * cpplex.c (_cpp_process_line_notes): Mention option name in
2309 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2311 * combine.c (if_then_else_cond): Simplify the comparison of
2312 rtx against -1, 0, and 1.
2313 * loop.c (check_dbra_loop): Likewise.
2314 * optabs.c (emit_conditional_move): Likewise.
2315 (emit_conditional_add): Likewise.
2316 * config/i386/i386.md (*movsi_or): Likewise.
2317 (*movdi_or_rex6): Likewise.
2319 Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
2321 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
2323 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
2325 * cppfiles.c (open_file_pch): Don't put unused entries in the
2326 splay tree. Remove dead code.
2328 2003-07-21 Geoffrey Keating <geoffk@apple.com>
2330 * c-common.h (num_in_fnames): Declare.
2331 (c_static_assembler_name): Move from here...
2332 * c-tree.h (c_static_assembler_name): ... to here.
2333 * c-opts.c: Don't include langhooks-def.h.
2334 (c_static_assembler_name): Move to c-decl.c.
2335 (num_in_fnames): Make externally visible.
2336 * c-decl.c: Include langhooks-def.h.
2337 (c_static_assembler_name): Move from c-opts.c.
2338 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
2339 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
2341 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
2342 when it's not needed.
2344 2003-07-21 Jakub Jelinek <jakub@redhat.com>
2346 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
2347 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
2348 (rs6000_emit_prologue): Save FPRs inline if set.
2350 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
2352 * config/ia64/ia64.md (prefetch): Support predicate.
2354 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
2356 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
2357 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
2360 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2362 PR optimization/11536
2363 * unroll.c (loop_iterations): Do not replace a register holding
2364 the final value by its equivalent before the loop if it is not
2367 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
2369 * doc/extend.texi: Fixes to spelling, grammar, and diction.
2371 2003-07-21 Ben Elliston <bje@wasabisystems.com>
2373 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
2374 (V850 Options): Spelling fixes.
2376 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
2378 * doc/invoke.texi: Fixes to style, grammar and diction.
2380 2003-07-20 Roger Sayle <roger@eyesopen.com>
2382 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
2383 * system.h (SMALL_STACK): Poison obsolete target macro.
2384 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
2386 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
2388 * configure.in: Cache the results of testing for cmp's capabilities.
2389 * configure: Regenerate.
2391 2003-07-20 Mark Mitchell <mark@codesourcery.com>
2394 * dwarf2out.c (gen_enumeration_type_die): Remember that
2395 enumerators can be unsigned.
2397 2003-07-19 Zack Weinberg <zack@codesourcery.com>
2399 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
2400 (push_label_level, pop_label_level): Kill.
2401 (struct binding_level): Rename level_chain to outer.
2402 Add outer_function field. Change parm_flag, function_body,
2403 keep, keep_if_subblocks to 1-bit bitfields of type bool.
2404 (current_function_level): New variable.
2405 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
2406 (keep_next_level, declare_parm_level, warn_if_shadowing):
2408 (struct language_function): Kill named_labels, shadowed_labels fields.
2409 (c_init_decl_processing, start_function, c_push__function_context)
2410 (c_pop_function_context): No need to muck with named_labels nor
2413 (make_binding_level): No need to clear the structure here.
2414 (pop_binding_level): Always operate on current_binding_level.
2415 Update current_function_level if necessary.
2416 (pushlevel): Don't clear named_labels. Update current_function_level
2417 if necessary. Use "true" and "false" where appropriate.
2418 (poplevel): Diagnose labels defined but not used, or vice
2419 versa, and clear out label-meanings leaving scope, while
2420 walking down the decls list, for all binding levels.
2421 Handle LABEL_DECLs appearing in the shadowed list.
2422 pop_binding_level takes no arguments.
2423 (pushdecl_function_level): Use current_function_level.
2425 (make_label, bind_label): New static functions.
2426 (declare_label): New exported function.
2427 (lookup_label, define_label): Rewritten for new data structure.
2428 (shadow_label): Kill.
2430 * c-tree.h: Prototype declare_label; don't prototype
2431 push_label_level, pop_label_level, nor shadow_label.
2432 * c-parse.in: Remove all calls to push_label_level and
2433 pop_label_level. Use declare_label for __label__ decls.
2435 * doc/extend.texi: Clarify that __label__ can be used to
2436 declare labels with local scope in any nested block, not
2437 just statement expressions. Cross-reference nested functions
2438 section from local labels section.
2440 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2442 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
2444 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
2446 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
2448 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2450 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
2451 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
2453 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
2455 * config/s390/s390.c (legitimize_pic_address): Access local symbols
2456 relative to the GOT instead of relative to the literal pool base.
2457 (s390_output_symbolic_const): Handle new GOT-relative accesses.
2458 * config/s390/s390.md ("call"): Access local functions and PLT stubs
2459 relative to the GOT instead of relative to the literal pool base.
2460 ("call_value"): Likewise.
2461 ("call_value_tls"): Likewise.
2463 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
2464 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
2465 (s390_chunkify_finish): Likewise.
2466 (s390_chunkify_cancel): Likewise.
2467 (s390_reorg): Adapt caller.
2468 (find_base_register_in_addr,
2469 find_base_register_ref, replace_base_register_ref): Delete.
2470 (find_ltrel_base, replace_ltrel_base): New functions.
2471 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
2472 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
2473 base vs. index register usage.
2474 (struct constant_pool): Remove 'anchor'.
2475 (s390_add_anchor): Delete.
2476 (s390_dump_pool): Remove anchor handling.
2477 * config/s390/s390.md ("reload_anchor"): Remove.
2479 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
2480 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
2481 (s390_emit_prologue): Use it.
2482 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
2483 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
2484 hard-code register 14.
2485 * config/s390/s390-protos.h (s390_load_got): Declare.
2487 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
2488 Support TImode constants.
2489 * config/s390/s390.md ("consttable_ti"): New.
2490 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
2492 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
2493 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
2494 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
2495 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
2496 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
2497 New symbolic constants.
2498 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
2499 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
2500 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
2501 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
2502 symbolic UNSPEC values.
2503 * config/s390/s390.c (larl_operand, s390_short_displacement,
2504 bras_sym_operand, s390_cannot_force_const_mem,
2505 s390_delegitimize_address, s390_decompose_address,
2506 legitimize_pic_address, s390_output_symbolic_const,
2507 s390_function_profiler): Use symbolic UNSPEC values.
2509 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2511 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
2512 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
2513 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
2514 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
2515 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
2516 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
2517 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
2518 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
2519 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
2520 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
2521 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
2522 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
2523 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
2524 postreload.c prefix.c print-tree.c protoize.c ra-build.c
2525 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
2526 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
2527 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
2528 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
2529 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
2530 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
2533 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2535 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
2536 * toplev.h (warning): Remove attribute.
2538 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2540 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
2541 (pop_label_level): Likewise.
2542 (duplicate_decls): Likewise.
2543 (implicitly_declare): Likewise.
2544 (shadow_label): Likewise.
2545 (start_decl): Likewise.
2546 (finish_decl): Likewise.
2547 (grokdeclarator): Likewise.
2548 (get_parm_info): Likewise.
2549 (detect_field_duplicates): Likewise.
2550 (finish_struct): Likewise.
2551 (start_function): Likewise.
2552 (store_parm_decls): Likewise.
2553 (finish_function): Likewise.
2554 (c_expand_body_1): Likewise.
2555 (check_for_loop_decls): Likewise.
2556 (merge_translation_unit_decls): Likewise.
2558 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
2560 * common.opt: Document --param.
2561 * opts.c (columns, undocumented_msg): New.
2562 (print_help): Get number of columns from environment. Print
2563 --param help. Tweak newline handling.
2564 (print_param_help): New.
2565 (print_filtered_help): Better handling of duplicates. Complain
2566 about undocumented switches.
2567 (print_switch): New.
2568 (wrap_help): Improve wrapping, use COLUMNS.
2569 * opts.sh: Ignore comments in records.
2570 * params.def: Fix typos and remove trailing periods.
2571 * toplev.c (display_help): Don't dump --param help.
2572 * doc/sourcebuild.texi: Update.
2574 2003-07-18 Richard Henderson <rth@redhat.com>
2577 * optabs.c (prepare_operand): Fail gracefully instead of abort
2578 if the predicate doesn't satisfy.
2579 (gen_cond_trap): Allow prepare_operand to fail.
2581 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2583 * c-common.c: Don't undefine GCC_DIAG_STYLE.
2584 (fname_decl): Don't use xxx_with_decl.
2585 (c_add_case_label): Likewise.
2586 (handle_section_attribute): Likewise.
2587 (handle_alias_attribute): Likewise.
2588 (handle_no_instrument_function_attribute): Likewise.
2589 (handle_no_limit_stack_attribute): Likewise.
2590 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
2591 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
2593 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2595 * Makefile.in (ifcvt.o): Add cfgloop.h.
2596 * basic-block.h (EDGE_LOOP_EXIT): New flag.
2597 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
2598 * ifcvt.c: Include cfgloop.h.
2599 (mark_loop_exit_edges): New static function.
2600 (if_convert): Call it.
2601 (find_if_header): Ignore branches out of loops.
2603 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
2605 * combine.c (simplify_comparison): Don't share rtx when converting
2606 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
2608 2003-07-18 David Edelsohn <edelsohn@gnu.org>
2610 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
2611 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2612 (MUST_PASS_IN_STACK): Define.
2613 (BLOCK_REG_PADDING): Define.
2615 2003-07-18 Richard Henderson <rth@redhat.com>
2617 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
2618 to skip the addr_vec.
2620 Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
2622 * combine.c (combinable_i3pat): Don't forbid occurrences of
2623 i2dest or i1dest in inner_dest if inner_dest is a mem.
2625 Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
2627 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
2629 2003-07-17 Jakub Jelinek <jakub@redhat.com>
2632 * loop.c (basic_induction_var): Check if convert_modes emitted any
2633 instructions. Remove them and return 0 if so.
2635 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
2637 PR optimization/11083
2638 * toplev.c (rest_of_handle_addresof): Rename into
2639 rest_of_handle_addressof. Delete unreachable blocks
2640 if dead edges were purged after the addressof pass.
2642 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
2644 * Makefile.in, configure, configure.in: Remove handling of
2645 lang-options.h and options_.h.
2646 * toplev.c (struct lang_opt, documented_lang_options): Remove.
2647 (display_help): Don't use documented_lang_options.
2649 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2651 * c-decl.c (pushdecl_function_level): Make static, return nothing.
2652 (kept_level_p): Fold into poplevel.
2653 (undeclared_variable): Moved here from c-typeck.c. Export.
2654 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
2655 (undeclared_variable): Prototype here. Don't prototype
2656 kept_level_p nor pushdecl_function_level.
2657 * c-parse.in: Change first argument to poplevel from
2658 "kept_level_p()" to "KEEP_MAYBE".
2659 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
2661 2003-07-17 Roger Sayle <roger@eyesopen.com>
2663 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
2664 commutative operands instead of modifying the RTL in-place.
2666 2003-07-17 Mark Mitchell <mark@codesourcery.com>
2668 PR optimization/11557
2669 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
2670 unless we know which function is being called.
2672 2003-07-17 Roger Sayle <roger@eyesopen.com>
2674 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
2675 whether to reorder the operands of a commutative binary operator.
2677 2003-07-17 Roger Sayle <roger@eyesopen.com>
2679 * fold-const.c (const_binop): Avoid performing the FP operation at
2680 compile-time, if either operand is NaN and we honor signaling NaNs,
2681 or if we're dividing by zero and either flag_trapping_math is set
2682 or the desired mode doesn't support infinities.
2683 (fold_initializer): New function to fold an expression ignoring any
2684 potential run-time exceptions or traps.
2685 * tree.h (fold_initializer): Prototype here.
2686 * c-typeck.c (build_binary_op): Move to the end of the file so
2687 that intializer_stack is in scope. If constructing an initializer,
2688 i.e. when initializer_stack is not NULL, use fold_initializer to
2690 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
2691 performing FP operations at compile-time, if they would raise an
2692 exception at run-time.
2694 2003-07-17 Geoffrey Keating <geoffk@apple.com>
2697 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
2698 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
2699 (GTFILES): Add langhooks.c.
2700 (gt-langhooks.h): New.
2701 * c-common.h (c_static_assembler_name): Prototype.
2702 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2703 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2704 * c-opts.c: Include langhooks-def.h.
2705 (c_static_assembler_name): New.
2706 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
2708 (lhd_set_decl_assembler_name): Give static objects with context
2710 * varasm.c (var_labelno): Delete.
2711 (make_decl_rtl): Don't change the assembler name once it's set.
2713 * c-opts.c (this_input_filename): New.
2714 (finish_options): Take new parameter, name of file being compiled.
2715 Update callers. Set this_input_filename.
2716 (push_command_line_include): Use this_input_filename not
2717 main_input_filename.
2719 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2721 * Makefile.in: Depend .pot generation on options.c.
2722 * po/exgettext: Add an extra_files variable containing additional
2725 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2727 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
2728 c_write_global_declarations.
2730 * c-decl.c: Fix typos in several comments. Remove all
2731 #if 0 blocks; reindent as needed. Remove unused argument
2732 to declare_parm_level; all callers changed.
2733 * c-parse.in: Update calls to declare_parm_level. Avoid
2734 issuing a double warning in some circumstances.
2735 * c-typeck.c: Update calls to declare_parm_level.
2736 * c-tree.h: Update prototype of declare_parm_level.
2738 * c-pragma.c (apply_pragma_weak): Don't complain about a
2739 redundant #pragma weak.
2741 * objc/objc-act.c (forward_declare_categories,
2742 build_selector_reference_decl, build_class_reference_decl,
2743 build_objc_string_decl, synth_forward_declarations,
2744 build_protocol_reference): Set TREE_PUBLIC on synthetic
2745 forward decl to 0, consistent with eventual definition.
2746 Correct comments to match.
2748 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
2749 in regexp that don't form a range expression.
2750 * fixinc/fixincl.def: Regenerate.
2752 2003-07-17 Richard Henderson <rth@redhat.com>
2755 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
2756 even with !TARGET_CONST_GP.
2757 (ia64_function_ok_for_sibcall): Reject non-local functions.
2759 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
2761 * c-common.c (c_estimate_num_insns_1): Don't handle
2763 * expr.c (safe_from_p): Likewise.
2764 * gengtype.c (adjust_field_tree_exp): Likewise.
2765 * stmt.c (warn_if_unused_value): Likewise
2766 * tree.c (first_rtl_op): Likewise.
2767 * tree.def: Don't define METHOD_CALL_EXPR.
2768 * java/lang.c (java_estimate_num_insns_1): Don't handle
2771 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2774 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
2775 and its restrictions for the SPARC64 port.
2776 Move the entry of "-mimpure-text" before that of "-mv8".
2778 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2779 Phil Edwards <phil@jaj.com>
2781 * doc/install.texi (*-*-solaris2*): Document the step-by-step
2782 procedure to bootstrap and install.
2783 Document the preference for the legacy Sun tools in /usr/bin
2784 over the POSIX tools in /usr/xpg4/bin for the build process.
2786 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2788 * c.opt: Document Uncodumented; use it. Document ObjC options.
2789 * opts.c (print_filtered_help): Skip undocumented switches.
2790 * opts.h (CL_UNDOCUMENTED): New.
2791 * opts.sh: Handle Undocumented.
2792 * toplev.c (documented_lang_options): Prevent its becoming empty.
2794 * lang-options.h: Remove.
2796 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
2798 * loop.c (check_ext_dependent_givs): Pass const struct loop *
2799 instead of struct loop_info * as argument. Accept BIVs with
2800 increment +/- 1 provided there is a friendly exit test against
2801 a loop-invariant value.
2802 (strength_reduce): Adapt call to check_ext_dependent_givs.
2804 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2805 Con Bradley <con.bradley@superh.com>
2807 * sh-protos.h (sh_get_pr_initial_val): Declare.
2808 * sh.c (regno_reg_class): Make its elements type enum reg_class.
2809 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
2810 and live_regs_mask arguments. Changed all callers.
2811 (save_schedule_s): New structure.
2812 (save_schedule): New typedef.
2813 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
2814 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
2815 In interrupts handlers, also save registers that are usually
2816 partially saved, and make sure there is at least one general purpose
2817 register saved if a target register needs saving.
2818 Add casts in comparisons to avoid warnings.
2819 (sh_media_register_for_return): return -1 for interrupt handlers.
2820 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
2821 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
2822 registers used are available.
2823 Set RTX_FRAME_RELATED_P where appropriate.
2824 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
2825 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
2826 (initial_elimination_offset): Likewise.
2827 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
2828 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
2829 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
2830 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
2831 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
2832 and for target registers.
2833 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
2834 (regno_reg_class): Make its elements type enum reg_class.
2835 (CONSTRAINT_LEN): Don't use isdigit.
2836 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
2837 (FUNCTION_ARG): Add parentheses to avoid warnings.
2838 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
2839 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
2840 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
2841 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
2842 * sh.md (xordi3+1): Remove unused variable regno.
2843 (return_media): Check that tr0 is available before using it.
2845 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
2847 * c.opt: Document more options.
2849 2003-07-16 Roger Sayle <roger@eyesopen.com>
2851 * combine.c (subst): Also handle (subreg (const_double ...)) case
2852 if created by a substitution, by using the original inner mode.
2854 2003-07-16 Roger Sayle <roger@eyesopen.com>
2856 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
2857 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
2858 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
2860 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
2862 * doc/install.texi (--without-headers): New.
2864 Partial Fix PR/10129
2865 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
2866 (machopic_output_function_base_name): New; print the true pic label.
2867 (machopic_classify_ident): Pic Base is always a defined data.
2868 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
2869 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
2871 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
2872 if they are not floating point registers.
2875 * ggc.h: Add header guards.
2876 * c-decl.c (finish_struct): Sort fields if
2877 number greater than 15 and there are no
2878 anonymous structs/unions.
2879 * c-common.h: Include ggc.h.
2880 (sorted_fields_type): New struct.
2881 (field_decl_cmp): New prototype.
2882 (resort_sorted_fields): New prototype.
2883 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
2884 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
2885 as s, removing other fields.
2886 * c-typeck.c (lookup_field): Use s in lang_type.
2887 These were mostly moved from cp/class.c:
2888 * c-common.c (field_decl_cmp): New static function.
2889 (field_decl_cmp): New function.
2890 (resort_sorted_fields): New function.
2892 2003-07-16 Geoffrey Keating <geoffk@apple.com>
2894 * config/darwin.c (machopic_select_section): Use decl_readonly_section
2895 to do most of the work.
2897 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
2899 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
2900 * config/mmix/mmix.c: Convert functions to ISO C90.
2901 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
2903 (mmix_get_hard_reg_initial_val): Tweak section head comment.
2905 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2907 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
2909 2003-07-16 Jakub Jelinek <jakub@redhat.com>
2911 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
2912 (uw_update_context_1): Use it.
2913 * config/rs6000/rs6000.c (insn_after_throw): Remove.
2914 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
2915 in parent frame if _Unwind_* called directly instead of through
2917 (rs6000_emit_eh_toc_restore): Remove.
2918 (rs6000_emit_prologue): Update stack pointer before doing any saving
2919 if current_function_calls_eh_return. Generate unwind info for $r2.
2920 (rs6000_emit_epilogue): Restore stack pointer after doing all
2921 restoring if current_function_calls_eh_return. Restore $r2.
2922 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
2923 * config/rs6000/rs6000.md (eh_return): Remove call to
2924 rs6000_emit_eh_toc_restore.
2925 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
2926 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
2928 2003-07-15 Jakub Jelinek <jakub@redhat.com>
2930 * expr.c (emit_block_move): Don't move anything if size is const 0.
2931 (clear_storage): Test against const0_rtx instead of comparing INTVAL
2934 2003-07-15 David S. Miller <davem@redhat.com>
2936 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
2937 emit nop if the last real insn is CALL_INSN.
2939 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2941 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
2943 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
2945 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2947 * config/i386/winnt.c (associated_type): Artificial methods are not
2948 affected by the import/export status of their class unless they are
2950 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
2952 * config/i386/winnt.c: Fix GCC copyright comment.
2954 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
2957 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
2958 not recursing on hard error.
2959 (diagnostic_for_decl): Likewise.
2960 * diagnostic.def: Rearrange.
2962 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2964 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
2965 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
2967 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2968 Richard Henderson <rth@redhat.com>
2970 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
2971 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
2972 (_Unwind_SetGR): Likewise.
2973 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
2974 (Unwind_SpTmp): New typedef.
2975 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
2976 (uw_update_context): Use _Unwind_GetPtr.
2977 (init_dwarf_reg_size_table): Move above uw_init_context_1.
2978 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
2979 Use _Unwind_SetSpColumn.
2980 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
2983 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
2985 * c.opt: Document more options.
2986 * toplev.c (documented_lang_options): Remove all local help strings.
2988 2003-07-15 Mark Mitchell <mark@codesourcery.com>
2991 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
2994 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
2997 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
2998 swap comparison operands if doing so would generate an
2999 unrecognizable insn.
3001 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
3003 PR optimization/11320
3004 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
3005 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
3006 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
3007 current_sched_info->compute_jump_reg_dependencies. Record which
3008 registers are used and which registers are set by the jump.
3009 Clear deps->reg_conditional_sets after a barrier.
3010 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
3011 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
3012 (init_deps): Initialize reg_conditional_sets.
3013 (free_deps): Clear reg_conditional_sets.
3014 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
3015 Mark registers live on entry of the fallthrough block and conditionally
3016 set as set by the jump. Mark registers live on entry of non-fallthrough
3017 blocks as used by the jump.
3018 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
3019 Mark new parameters as unused.
3021 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3023 * doc/invoke.texi: Resync MIPS -march documentation.
3025 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3027 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
3028 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
3029 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
3030 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
3031 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
3032 (mips_issue_rate): Handle PROCESSOR_R9000.
3033 (mips_use_dfa_pipeline_interface): Likewise.
3034 * config/mips/9000.md: New file.
3035 * config/mips/mips.md: Include it.
3036 (define_attr cpu): Add r9000.
3037 (mulsi3_mult3): Use "mul" for rm9000 code.
3039 2003-07-15 Stan Cox <scox@redhat.com>
3041 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
3042 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
3043 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
3044 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
3045 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
3046 (mips_issue_rate): Handle PROCESSOR_R7000.
3047 (mips_use_dfa_pipeline_interface): Likewise.
3048 * config/mips/7000.md: New file.
3049 * config/mips/mips.md: Include it.
3050 (define_attr cpu): Add r7000.
3051 (mulsi3_mult3): Use "mul" for rm7000 code.
3053 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3055 * config/mips/mips.md (define_attr type): Add condmove. Use it for
3056 the conditional move patterns.
3057 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
3058 Check for condmove type.
3059 (ir_vr54_arith): Add move type.
3060 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
3061 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
3063 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
3065 * c-opts.c (print_help): Remove.
3066 (c_common_handle_option): Don't handle --help.
3067 * c.opt: Document some options.
3069 * opts.c (print_filtered_help): New.
3070 (print_help): Use it.
3072 2003-07-14 Geoffrey Keating <geoffk@apple.com>
3074 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
3075 * tree.c: (build_common_tree_nodes_2): Likewise.
3076 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
3077 (V4DF_type_node): New.
3079 * c-opts.c (push_command_line_include): Don't free deferred_opts,
3081 (finish_options): Reset init_cursor.
3083 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
3085 * expr.c (expand_assignment): Remove an unused argument
3087 * expr.h: Update the prototype.
3088 * function.c: Update the callers.
3091 2003-07-14 Mark Mitchell <mark@codesourcery.com>
3094 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
3097 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3099 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
3100 with __cplusplus, not "we must use the C++ compiler's type"
3101 * fixinc/inclhack.def (void_null): Note that Interix needs this.
3102 * fixinc/fixincl.x: Regenerate.
3104 2003-07-14 Geoffrey Keating <geoffk@apple.com>
3106 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
3107 and unseen_objects from the global data before calling
3108 __deregister_frame_info_bases.
3109 (examine_objects): Insert objects into the seen_objects list,
3111 (_Unwind_Find_FDE): Always unlock the global object lists, even if
3112 we couldn't allocate a data structure to put in it.
3114 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
3115 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
3116 (SET_TYPE_PROTOCOL_LIST): New.
3117 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
3118 (get_object_reference): Likewise.
3120 Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
3122 * cfglayout.c (locator_file): Break out from ....
3123 (insn_file): ... here.
3124 (locator_line): Break out from ....
3125 (insn_line): ... here.
3126 * rtl.h (locator_file, locator_line): Declare.
3127 (final_start_function): Set proper line/file info.
3129 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
3131 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
3132 handled by pp_c_cast_expression.
3134 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3136 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
3137 allocate 32768 bytes of stack. Use addition rather than subtraction
3138 when a single insn is enough.
3139 * config/mips/mips.md: Remove insns and splitters for subtracting
3141 (subsi3): Only accept register operands.
3142 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
3143 (subdi3_internal_3, subsi3_internal_2): Likewise.
3144 (casesi): Use expand_binop to subtract the lower bound.
3146 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3148 * config/mips/mips.c (mips_in_small_data_p): Don't handle
3149 TARGET_MIPS16 specially.
3151 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3153 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
3154 mips_output_aligned_bss.
3155 * config/mips/linux.h: Likewise.
3156 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
3157 * config/mips/mips.c (mips_output_aligned_bss): New function.
3159 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
3160 * config/mips/elf64.h: Likewise.
3162 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
3163 mips_declare_object_name.
3164 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
3165 * config/mips/elf64.h: As for elf.h.
3166 * config/mips/iris6.h: Likewise.
3167 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
3168 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
3169 do...while (0) block.
3170 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
3171 (mips_finish_declare_object): Declare.
3172 * config/mips/mips.c (mips_declare_object_name): New function.
3173 (mips_finish_declare_object): New function.
3175 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
3176 * config/mips/linux.h: Likewise.
3178 * config/mips/mips.c (inside_function): Delete.
3179 (file_in_function_warning, ignore_line_number): Delete.
3180 (mips_output_filename): Don't warn about changing filenames within
3182 (mips_output_lineno): Update accordingly.
3183 (mips_output_function_prologue): Don't reset the deleted variables.
3184 * config/mips/mips.h (inside_function): Delete.
3185 (file_in_function_warning, ignore_line_number): Delete.
3187 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
3188 * config/mips/elf64.h: Likewise.
3189 * config/mips/openbsd.h: Likewise.
3190 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
3191 * config/mips/linux.h: Likewise.
3192 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
3193 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
3195 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
3196 to the list of include files when using gas.
3197 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
3198 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
3199 * config/mips/elf64.h: Likewise.
3200 * config/mips/iris5.h: Likewise.
3201 * config/mips/linux.h: Likewise.
3202 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
3203 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
3204 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
3205 * config/mips/sdb.h: ...this new file.
3207 2003-07-14 Douglas Rupp <rupp@gnat.com>
3209 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
3210 argument to getcwd; use fixed buffer instead.
3212 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3214 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
3215 * fixinc/fixinc.wrap: Delete.
3217 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3219 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
3222 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3224 * ggc-page.c (struct globals): Add new fields to keep track of the
3225 total allocated memory and overhead.
3226 (ggc_print_statistics): Print them.
3227 (ggc_alloc): Keep track of the total allocated memory and the
3230 * tree.c (dump_tree_statistics): Increase spacing.
3231 (enum tree_node_kind): Move to ...
3232 * tree.h (enum tree_node_kind): ... here.
3233 (tree_node_counts, tree_node_sizes): Declare.
3235 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
3237 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
3239 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3241 PR optimization/11440
3242 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
3245 2003-07-14 Alan Modra <amodra@bigpond.net.au>
3247 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
3248 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
3249 (emit_group_load, emit_group_store): Adjust declarations.
3250 Remove most occurrences of #ifdef TREE_CODE.
3251 * expr.c (emit_group_load): Add "type" param, and use
3252 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
3253 aligned accesses if !SLOW_UNALIGNED_ACCESS.
3254 (emit_group_store): Likewise.
3255 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
3256 emit_group_load and emit_group_store calls.
3257 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
3258 BLOCK_REG_PADDING to determine whether we need endian_correction.
3259 (load_register_parameters): Localize vars. Handle shifting of
3260 small values to the correct end of regs. Adjust emit_group_load
3262 (expand_call, emit_library_call_value_1): Adjust emit_group_load
3263 and emit_group_store calls.
3264 * function.c (assign_parms): Set mem alignment for stack slots.
3265 Adjust emit_group_store call. Store values at the "wrong" end
3266 of regs to the stack. Use BLOCK_REG_PADDING.
3267 (locate_and_pad_parm): Save where_pad.
3268 (expand_function_end): Adjust emit_group_load call.
3269 * stmt.c (expand_value_return): Adjust emit_group_load call.
3270 * Makefile.in (calls.o): Depend on $(OPTABS_H).
3271 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
3272 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
3273 (MUST_PASS_IN_STACK): Define.
3274 (BLOCK_REG_PADDING): Define.
3275 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
3276 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
3277 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
3278 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
3279 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
3281 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
3283 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
3285 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3287 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
3288 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
3290 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3293 * toplev.c: Don't cut off option names.
3295 2003-07-13 Andreas Jaeger <aj@suse.de>
3297 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
3298 to integer of different size.
3300 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
3302 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
3303 to (eq (and X 1) 0).
3305 2003-07-13 Andreas Jaeger <aj@suse.de>
3307 * config.gcc: Add pmmintrin.h for x86_64-*-*.
3309 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3311 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
3312 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
3313 list. Move these all together down by cpplib.
3315 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
3316 definition of CPPCHAR_SIGNED_T.
3318 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
3319 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
3320 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
3322 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
3323 * cppinit.c (cpp_create_reader): Likewise.
3325 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
3326 * cpptrad.c: Likewise. All callers changed.
3327 * cpplib.c: All callers changed.
3328 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
3329 * hashtable.h: Define GTY(x) to nothing here too.
3331 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3333 * stor-layout.c (compute_record_mode): Remove very obsolete test
3334 that forces BLKmode for records with fields crossing word boundary.
3336 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3338 * Makefile.in: Remove orphan reference to acconfig.h.
3340 2003-07-13 Andreas Jaeger <aj@suse.de>
3342 * cgraphunit.c: Convert prototypes to ISO C90.
3344 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3346 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
3348 * fixinc/fixincl.x: Rebuild.
3350 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3352 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
3353 i?86-*-*. Use correct name of cache variable.
3354 * configure: Regenerate.
3356 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3358 * config/alpha/alpha.c: Fix comment typos.
3359 * config/alpha/alpha.md: Likewise.
3360 * config/arm/arm.c: Likewise.
3361 * config/arm/arm.md: Likewise.
3362 * config/arm/lib1funcs.asm: Likewise.
3363 * config/avr/avr.md: Likewise.
3364 * config/arm/README-interworking: Fix typos.
3366 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3368 * c-format.c: Fix comment formatting.
3369 * c-typeck.c: Likewise.
3370 * coverage.c: Likewise.
3371 * cppcharset.c: Likewise.
3372 * cpplib.c: Likewise.
3373 * dbxout.c: Likewise.
3374 * gcov-io.h: Likewise.
3375 * toplev.c: Likewise.
3377 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3379 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
3382 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3384 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
3385 uses three-argument AC_DEFINE so no acconfig.h entries are
3387 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
3388 which contains the GAS version number as a scaled integer.
3389 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
3390 ability to check for ELF assembler.
3391 (gcc_GAS_CHECK_FEATURE): New macro.
3392 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
3393 assembler feature checks using gcc_GAS_CHECK_FEATURE.
3394 Use three-argument AC_DEFINE everywhere.
3395 * acconfig.h: Deleted.
3396 * config.in, configure: Regenerate.
3398 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3400 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
3402 * fixinc/fixincl.x: Regenerate.
3404 * fixinc/inclhack.def (gnu_types): Improve comment.
3406 2003-07-12 Andreas Jaeger <aj@suse.de>
3408 * fp-test.c (main): Use ISO C90 prototype.
3410 * version.c: Remove unneded include of ansidecl.h.
3412 * cgraph.h: Convert prototypes to ISO C90.
3413 * cgraph.c: Likewise.
3414 * fix-header.c: Likewise.
3416 * protoize.c: Likewise.
3418 Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
3420 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
3423 Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
3424 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3426 * cgraph.c (cgraph_max_uid): New global variable.
3427 (cgraph_node): Set uid field.
3428 (create_edge): Keep inline flags consistent.
3429 (dump_cgraph): Dump more info.
3430 * cgraph.h (struct cgraph_local_info): Remove inline_many and
3431 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
3432 (struct cgraph_global_info): Add insns, calls, cloned_times,
3434 (struct cgraph_node): Add uid.
3435 (struct cgraph_edge): Add inline_call.
3436 (cgraph_max_uid, cgraph_inline_p): Declare.
3437 * cgraph.c: Include params.h and fibheap.h
3438 (cgraph_mark_functions_to_inline_once): Kill.
3439 (INSNS_PER_CALL): New constant.
3440 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
3442 (cgraph_finalize_function): Do not analyze inlining.
3443 (cgraph_finalize_compilation_unit): Set inlining attributes.
3444 (cgraph_mark_functions_to_output): More consistency checks.
3445 (cgraph_optimize_function): Set current_function_decl to NULL.
3446 (cgraph_expand_function): Use new inline flags.
3447 (cgraph_postorder): Expand from cgraph_expand_functions.
3448 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
3449 (cgraph_inlined_into, cgraph_inlined_callees,
3450 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
3451 cgraph_mark_inline, cgraph_check_inline_limits,
3452 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
3453 cgraph_decide_inlining, cgraph_inline_p): New functions.
3454 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
3455 PARAM_INLINE_UNIT_GROWTH): New parameters.
3456 * tree-inline.c (struct inline_data): New field current_decl.
3457 (expand_call_inline): Avoid forward declarations; use
3458 inlinable_function_p.
3459 (optimize_inline_calls): Set id.current_decl.
3461 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
3463 * configure.in: Remove wrongly added definition of
3465 * configure: Regenerate.
3467 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
3469 * rtl.def (NOTE): Do not use padding.
3471 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
3473 * doc/install.tex: Update required binutils for i?86-*-linux*
3475 2003-07-11 Richard Henderson <rth@redhat.com>
3477 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
3479 2003-07-11 Mark Mitchell <mark@codesourcery.com>
3481 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
3482 TRANSLATION_UNIT_DECL as top_level.
3484 2003-07-11 Jakub Jelinek <jakub@redhat.com>
3486 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
3487 then fall back to cmpstrM.
3488 * builtins.c (expand_builtin_memcmp): Likewise.
3489 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
3490 (s390_expand_cmpmem): ... this.
3491 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
3492 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
3493 from cmpstr* patterns. Rename call to s390_expand_cmpstr
3494 to s390_expand_cmpmem.
3495 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
3496 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
3498 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
3500 * doc/md.texi (cmpstrM): Describe as String compare insn, not
3504 2003-07-11 Loren James Rittle <ljrittle@acm.org>
3506 * config/i386/freebsd.h (SET_ASM_OP): Remove.
3507 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
3508 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
3509 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
3511 2003-07-11 Richard Henderson <rth@redhat.com>
3513 * function.c (assign_parms): Don't recombine complex args if
3514 fnargs is unchanged from orig_fnargs.
3515 (split_complex_args): Return args without complex before copying.
3516 Re-layout the modified parameters.
3518 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
3520 * regclass.c (choose_hard_reg_mode): Add third argument.
3521 Changed all callers.
3522 * rtl.h (choose_hard_reg_mode): Update declaration.
3523 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
3524 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
3526 2003-07-11 Geoffrey Keating <geoffk@apple.com>
3528 * c-decl.c (finish_decl): Handle 'used' here...
3529 * cgraphunit.c (cgraph_finalize_function): ... and here ...
3530 * c-common.c: (handle_used_attribute): ... not here.
3532 * configure.in (onstep): Support --enable-intermodule.
3533 * Makefile.in (OBJS-common): New.
3535 (OBJS-archive): New.
3536 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
3537 (OBJS-onestep): New.
3538 (libbackend.a): Support @onestep@.
3539 (libbackend.o): New.
3540 * configure: Regenerate.
3542 * c-common.h (c_reset_state): New prototype.
3543 (c_parse_file): New prototype.
3544 (finish_file): Move prototype from c-tree.h.
3545 * c-decl.c: Include <hashtab.h>.
3546 (builtin_decls): New.
3547 (current_file_decl): New.
3548 (duplicate_decls): Add extra parameter. Change all callers. Don't
3549 output duplicate common symbols.
3550 (link_hash_hash): New.
3551 (link_hash_eq): New.
3552 (poplevel): Handle popping of the top level.
3553 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
3554 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
3555 (pushdecl_top_level): Likewise.
3556 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
3557 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
3558 (finish_decl): Handle TRANSLATION_UNIT_DECL.
3559 (merge_translation_unit_decls): New.
3560 (c_write_global_declarations): New.
3561 (c_reset_state): New.
3562 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
3563 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
3564 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
3565 TRANSLATION_UNIT_DECL.
3566 (c_objc_common_finish_file): Call merge_translation_unit_decls.
3567 * c-opts.c (in_fnames): Rename from in_fname.
3568 (c_common_decode_option): Handle multiple input filenames.
3569 (c_common_post_options): Likewise.
3570 (c_common_parse_file): Likewise; also, call c_parse_file rather than
3572 * c-parse.in: Move cleanup code to c_parse_file.
3573 (free_parser_stacks): Move contents to c_parse_file.
3574 (c_parse_file): New.
3575 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
3577 (C_DECL_FILE_SCOPE): New.
3578 (finish_file): Move prototype to c-common.h.
3579 (merge_translation_unit_decls): New prototype.
3580 (comptypes): Add extra parameter to prototype.
3581 (c_write_global_declarations): New prototype.
3582 * c-typeck.c (tagged_types_tu_compatible_p): New.
3583 (function_types_compatible_p): Add extra parameter, change all callers.
3584 (type_lists_compatible_p): Likewise.
3585 (comptypes): Likewise.
3586 (struct tagged_tu_seen): New.
3587 (tagged_tu_seen_base): New.
3588 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
3589 (c_mark_addressable): Remove #if 0 code.
3590 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
3591 comment explaining why it shouldn't have to.
3592 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
3594 * cppinit.c (cpp_read_next_file): New.
3595 (cpp_read_main_file): Use it.
3596 * cpplib.c (undefine_macros): New.
3597 (cpp_undef_all): New.
3598 * cpplib.h (cpp_read_next_file): Prototype.
3599 (cpp_undef_all): Prototype.
3600 * langhooks-def.h (write_global_declarations): Remove prototype.
3601 * toplev.h (write_global_declarations): Add prototype.
3602 * tree.c (decl_type_context): Use switch statement, handle
3603 TRANSLATION_UNIT_DECL.
3604 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
3605 (TRANSLATION_UNIT_DECL): New kind of tree.
3606 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
3607 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
3608 * doc/invoke.texi: Make attempt to document new functionality.
3610 2003-05-19 Per Bothner <bothner@apple.com>
3612 * gcc.c (combine_inputs): New.
3613 (process_command): Set combine_inputs.
3614 (do_spec_1): Handle combine_inputs.
3617 2003-07-10 James E Wilson <wilson@tuliptree.org>
3619 PR optimization/9745
3620 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
3621 loop_insn_emit_before.
3622 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
3624 2003-07-10 Zack Weinberg <zack@codesourcery.com>
3626 * cppcharset.c: Fix comment.
3627 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
3628 (EILSEQ): #define to EINVAL if not already defined.
3629 (convert_using_iconv): #if out when !HAVE_ICONV.
3630 (init_iconv_desc): Handle !HAVE_ICONV here...
3631 (cpp_init_iconv): ...not here.
3633 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
3635 * common.opt: More --help messages.
3636 * opts.c (print_help): Use puts().
3637 * toplev.c (f_options): Remove help text.
3638 (display_help): Don't dump f_options.
3640 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
3642 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
3643 Move i?86-*-interix* to the don't-fix list.
3644 * fixinc/fixinc.interix: Delete with extreme prejudice.
3646 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
3649 * doc/install.texi: Document requirements for ia64-*-hpux* target.
3651 2003-07-10 Roger Sayle <roger@eyesopen.com>
3653 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
3655 2003-07-10 Zack Weinberg <zack@codesourcery.com>
3657 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
3658 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
3659 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
3660 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
3661 convert_no_conversion, convert_using_iconv): New functions.
3662 (APPLY_CONVERSION): New macro.
3663 (struct conversion, conversion_tab): New data structure.
3664 (init_iconv_desc): Check conversion_tab for a custom conversion
3665 primitive before trying to use iconv.
3666 (convert_cset): Deleted.
3667 (cpp_init_iconv): Use UTF- terminology, not UCS-.
3668 (_cpp_destroy_iconv): Update to match.
3669 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
3670 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
3671 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
3672 (_cpp_interpret_string_notranslate): New function, moved here
3675 * cpphash.h (convert_f, struct cset_converter): New types.
3676 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
3677 are now struct cset_converter, not bare iconv_t.
3679 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
3680 all callers changed.
3682 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
3684 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
3685 to opts.sh command line.
3686 * opts.sh: Write to temporary files with a move-if-change at the end.
3688 2003-07-10 Denis Chertykov <denisc@overta.ru>
3689 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3691 * combine.c (gen_binary): Handle the CLOBBER rtx and
3692 don't build a binary operation with it.
3694 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3696 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
3697 store_killed_after, store_killed_before): Keep track of the correct
3698 dependency function to use.
3700 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
3701 * toplev.c (do_compile): Don't try to open dump files before
3702 lang_dependent_init initializes dump_base_name.
3704 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3706 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
3708 * config/frv/frv.c (frv_expand_builtin): Likewise.
3709 * config/sh/sh.c (sh_media_init_builtins): Likewise.
3711 2003-07-09 Mark Mitchell <mark@codesourcery.com>
3714 * doc/invoke.texi (C++ Dialect Options): Change documentation of
3717 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
3719 * tm.texi (RETURN_ADDR_OFFSET): Document.
3721 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
3723 * gcov-io.h: Update documentation.
3724 (GCOV_UNSIGNED2STRING): New.
3725 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
3726 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
3727 GCOV_TAG_SUMMARY_LENGTH): Adjust.
3728 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
3729 GCOV_TAG_COUNTER_NUM): New.
3730 (GCOV_BLOCK_SIZE): Number of words.
3731 (gcov_var): Adjust buffer type.
3732 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
3733 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
3734 count, not byte count.
3735 (gcov_open): Adjust overread init.
3736 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
3737 gcov_write_string, gcov_write_tag, gcov_write_length,
3738 gcov_write_tag_length): Adjust.
3739 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
3740 (gcov_sync, gcov_seek): Adjust.
3741 * gcov-dump.c (print_usage): Show gcc version only.
3742 (dump_file): Use GCOV_UNSIGNED2STRING.
3743 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
3744 * gcov.c (print_version): Show gcc version only.
3745 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
3746 GCOV_TAG_*_NUM macros.
3747 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
3748 GCOV_TAG_COUNTER_LENGTH.
3749 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
3750 Use GCOV_TAG_COUNTER_NUM.
3751 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
3752 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
3754 2003-07-10 Andreas Schwab <schwab@suse.de>
3756 * gcov-dump.c (dump_file): Fix missing address operator.
3758 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
3761 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
3763 (fold_single_bit_test): If sign_bit_p() fails, assume that the
3764 bit being tested is not a sign bit.
3766 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
3768 * config/h8300/h8300.md (a peephole2): New.
3770 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
3772 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
3773 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
3774 from ld-linux.so.2 to ld.so.1.
3775 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
3776 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
3777 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
3778 nor -Wl,-rpath-link.
3779 (LIB_SPEC): Add -rpath-link if !static.
3780 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
3781 * config/mn10300/mn10300.c (mn10300_protect_label): New
3783 * config/mn10300/linux.h (PRINT_OPERAND,
3784 PRINT_OPERAND_ADDRESS): Set it during their execution.
3785 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
3786 mn10300_protect_label is set.
3787 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
3789 (LIB_SPEC, STARTFILE_SPEC): Define.
3790 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
3791 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
3792 FLOAT_BIT_ORDER_MISMATCH.
3793 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
3794 * config.gcc (am33_2.0-*-linux*): Added.
3795 * config/mn10300/linux.h: New.
3796 * config/mn10300/t-linux: New.
3798 2003-07-10 Andreas Jaeger <aj@suse.de>
3800 * fold-const.c: Properly wrap prototypes.
3802 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
3804 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
3805 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
3807 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
3808 * config/mn10300/mn10300.h: GTY-declare it.
3809 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
3810 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
3811 prototype. Use incoming RTL argument.
3812 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
3813 * config/mn10300/mn10300.md (int_label): Move C statements...
3814 (GOTaddr2picreg): ... here.
3815 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3816 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
3817 * config/mn10300/mn10300.c (mn10300_encode_section_info):
3818 ... here. New function.
3819 (TARGET_ENCODE_SECTION_INFO): Define to it.
3820 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
3821 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
3823 (mn10300_loadPC): Define as insn splittable after reload.
3824 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
3825 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
3826 be defined in .rodata even in PIC, now that the assembler
3828 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
3829 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
3830 symbol take an underscore prefix.
3831 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
3832 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
3833 legitimize_pic_address): Declare.
3834 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
3835 the PIC register as fixed.
3836 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
3837 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
3839 (LEGITIMATE_PIC_OPERAND_P): Define.
3840 (PIC_OFFSET_TABLE_REGNUM): Define.
3841 (GOT_SYMBOL_NAME): Define.
3842 (SYMBOLIC_CONST_P): Define.
3843 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
3845 (MN10300_GLOBAL_P): Test it.
3846 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
3847 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
3848 * config/mn10300/mn10300.c (print_operand): Handle unspec.
3849 (expand_prologue): Set PIC register.
3850 (call_address_operand): Don't match SYMBOL_REFs in PIC.
3851 (legitimize_address): Call legitimize_pic_address.
3852 (legitimize_pic_address): New fn.
3853 (legitimate_pic_operand_p): New fn.
3854 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
3855 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
3856 UNSPEC_PLT): New constants.
3857 (pop_pic_reg): New insn.
3858 (movsi): Adjust non-PIC addresses.
3859 (builtin_setjmp_receiver): Restore the PIC register.
3861 (call): Adjust non-PIC addresses.
3862 (int_label, GOTaddr2picreg): New expands.
3863 (am33_loadPC): New insn.
3864 (mn10300_loadPC): New expand.
3865 (call_next_insn): New insn.
3866 (add_GOT_to_pic_reg): New expand.
3867 (symGOT2reg, symGOT2reg_i): New expands.
3868 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
3869 (sym2PIC, sym2PLT): New expands.
3871 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
3873 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
3874 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
3875 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
3876 to flag_unsafe_math_optimizations.
3877 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
3878 * config/mn10300/mn10300.c (expand_prologue): Mark
3879 FP-register-saving insns as frame-related.
3880 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
3881 * config/mn10300/mn10300.c
3882 (mn10300_get_live_callee_saved_regs): Don't search past
3883 LAST_EXTENDED_REGNUM.
3884 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
3885 * config/mn10300/mn10300.md: Remove excessive line breaks from
3886 `@' output patterns that were accounted as additional
3888 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
3889 Re-introduce changes accidentally removed in Richard Sandiford's
3891 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
3892 Re-instate am33-2 lost in merge from net GCC.
3893 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
3894 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
3895 floating-point registers.
3896 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
3897 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
3898 pessimizations that had gone in on 2000-05-08.
3899 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
3900 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
3901 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
3902 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
3904 * (movhi): Likewise.
3905 * (movsi): Likewise.
3906 * (movsf): Likewise.
3907 * (movdi): Likewise.
3908 * (movdf): Likewise.
3909 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
3910 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
3911 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
3912 (expand_prologue, expand_epilogue): Save and restore FP regs.
3913 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
3914 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
3915 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
3916 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
3917 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
3919 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
3920 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
3921 Discourage the two-argument, longer opcodes.
3922 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
3924 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
3925 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
3926 * config/mn10300/mn10300.md (cmpsf): New pattern.
3927 (branch): Test mdep.fpCC and output fbCC.
3928 * config/mn10300/mn10300.c (print_operand): Output conditions.
3929 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
3930 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
3931 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
3932 mulsf3, divsf3): Use the `F' constraint for FP values.
3933 * config/mn10300/mn10300.c (const_1f_operand): New function.
3934 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
3935 * config/mn10300/mn10300.md (sqrtsf2): New expand.
3936 (rsqrtsf2): New insn.
3937 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
3938 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
3940 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
3941 * config/mn10300/mn10300.md (abssf2, negdf2): On
3942 TARGET_AM33_2, expand to...
3943 (abssf2_am33_2, negdf2_am33_2): New insns.
3944 (addsf3, subsf3, mulsf3, divsf3): Likewise.
3945 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
3946 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
3947 movdi, movdf): Added FP regs.
3948 * invoke.texi (-mam33-2, -mno-am33-2): Document.
3949 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
3950 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
3952 (REGNO_AM33_2_FP_P): Renamed to...
3953 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
3954 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
3955 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
3956 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
3957 regs from GENERAL_REGS.
3958 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
3959 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
3960 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
3961 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
3962 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
3963 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
3965 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
3966 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
3967 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
3968 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
3969 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
3970 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
3971 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
3972 AM33/2.0 floating-point registers.
3973 (CONDITIONAL_REGISTER_USAGE): Adjust.
3974 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
3975 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
3976 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
3977 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
3978 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
3979 (MULTILIB_DIRNAMES): Likewise.
3980 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
3981 `__AM33_2__' when `-mam33-2' is given.
3982 (TARGET_AM33_2): Define.
3983 (TARGET_SWITCHES): Adjust.
3984 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
3987 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
3989 * doc/install.texi: Add missing @.
3991 2003-07-09 Bob Wilson <bob.wilson@acm.org>
3993 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
3995 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
3998 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
4000 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
4003 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
4004 "x-crtfini.o" with "crtinit.o", "crtfini.o".
4006 * fixinc/inclhack.def (limits_ifndefs): Add select test.
4007 * fixinc/fixincl.x: Rebuild.
4009 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
4010 * fixinc/fixincl.x: Rebuild.
4012 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
4014 * doc/install.texi (Configuration): Document the valgrind option
4015 to --enable-checking.
4017 Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
4019 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
4021 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4023 * c-lex.c (cb_ident): Cast cstr.text to const char *.
4025 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
4027 * gcov-io.h: Update documentation.
4028 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
4030 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
4031 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
4032 (struct gcov_var): Change buffer's type. Add endian flag.
4033 (gcov_open): Remove mode in libgcov.
4034 (gcov_magic): Prototype.
4035 * gcov-io.c (from_file): New.
4036 (gcov_open): Clear endian flag.
4038 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
4040 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
4041 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
4042 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
4043 * gcov-iov.c (main): Correct cast.
4044 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
4046 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
4047 (coverage_init): Use GCOV_NOTE_SUFFIX.
4048 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
4049 Rename to gcov_version, and return flag.
4050 (gcov_exit): Use gcov_version.
4051 (__gcov_init): Use gcov_version.
4052 * Makefile.in (coverageexts): Update.
4053 * gcov.c (print_version): Remove endianness conversion.
4054 (create_file_names): Use GCOV_NOTE_SUFFIX.
4055 (read_graph_file): Use gcov_magic.
4056 (read_count_file): Likewise.
4057 * gcov-dump.c (dump_file): Remove endianness conversion, use
4060 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
4062 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
4064 * configure: Regenerated.
4065 * Makefile.in (ALL_CFLAGS): Correct its comment.
4067 2003-07-08 Mark Mitchell <mark@codesourcery.com>
4069 * fold-const.c (make_range): Do not access operand 1 for a
4070 zero-operand operator.
4072 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
4074 * toplev.c (warn_dummy, W_options): Die.
4075 (display_help): Don't print W_options.
4076 * common.opt: Add W_options help from toplev.c.
4078 2003-07-09 Andreas Jaeger <aj@suse.de>
4080 * opts.c (wrap_help): Only pass int arguments as arguments to
4081 printf's '*' modifier. Change argument of function.
4083 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
4085 * doc/invoke.texi: Fix misspelling of "@item".
4087 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
4089 * config/i386/i386.md: Remove an old comment about
4092 Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
4094 * cgraph.c (cgraph_node_name): New function.
4095 (dump_cgraph): Use it.
4096 * cgraph.h (cgraph_dump_file): Declare.
4097 (cgraph_node_name): Declare.
4098 * cgraphunit.c: Include timevar.h
4099 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
4100 (cgraph_optimize_function): Use TV_INTEGRATION.
4101 (cgraph_mark_local_functions): reorganize dumps.
4102 (cgraph_mark_functions_to_inline_once): Likewise.
4103 (cgraph_optimize): Likewise; use timevar.
4104 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
4105 * toplev.c (dump_file_index): Add DFI_cgraph.
4106 (dump_file_info): Likewise.
4107 (cgraph_dump_file): New global variable.
4108 (do_compile): Open and close cgraph dump.
4109 * invoke.texi (-d): Document new flag; renumber.
4111 2003-07-08 Roger Sayle <roger@eyesopen.com>
4114 * calls.c (emit_call_1): Don't bother popping the arguments off of
4115 the stack after a noreturn function call; The adjustment is dead.
4116 (expand_call): Likewise.
4118 2003-07-08 Geoffrey Keating <geoffk@apple.com>
4120 * expr.c (MOVE_MAX_PIECES): Move from here...
4121 * defaults.h (MOVE_MAX_PIECES): ... to here.
4123 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
4125 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
4127 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4129 * genattr.c (internal_dfa_insn_code): Don't prototype.
4130 * genattrtab.c (attr_desc): Add `static_p' field.
4131 (expand_units): Make blockage range and ready cost functions
4133 (write_attr_get): Don't add extern prototypes in C file. Mark
4134 static functions as appropriate.
4135 (find_attr, make_internal_attr): Initialize static_p.
4136 * genattrtab.h (ATTR_STATIC): New macro.
4137 * genautomata.c (output_internal_reset_func): Mark output function
4139 (make_internal_dfa_insn_code_attr): Mark output function as static.
4141 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4143 * genattrtab.h: Add new macros for attr `special' flags.
4144 * genattrtab.c (attr_desc): Reorder/resize fields better.
4145 Use attr `special' macros in all calls to make_internal_attr.
4146 * genautomata.c: Likewise.
4148 Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
4150 * c-common.c (c_estimate_num_insns_1): New static function.
4151 (c_estimate_num_insns): New global function.
4152 * c-common.h (DECL_NUM_STMTS): Rename to...
4153 (DECL_ESTIMATED_INSNS): ... this.
4154 (c_estimate_num_insns): Declare.
4155 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
4156 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
4157 * c-semantics.c (add_stmt): Do not account statements.
4158 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
4160 * langhooks.h (lang_hooks_for_tree_inlining): Add
4162 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
4164 (max-inline-insns): set to 300.
4165 (min-inline-insns): set to 10.
4166 * tree-inline.c (struct inline_data): Rename inlined_stmts to
4168 (INSNS_PER_STMT): Kill.
4169 (inlinable_function_p): Compute and store body size.
4170 (expand_call_inline): Likewise.
4171 (optimize_inline_calls): Likewise.
4173 2003-07-08 James E Wilson <wilson@tuliptree.org>
4176 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
4177 loop over new variable t2 instead of t.
4179 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
4182 * config/i386/winnt.c: Replace use of error(), warning() with
4183 error_with_decl(), warning_with_decl(), throughout.
4185 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
4187 * opts.c (wrap_help): Use unsigned int, not size_t.
4189 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
4191 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
4192 as .file/.loc directives are incompatible with linker relaxation.
4194 2003-07-08 Zack Weinberg <zack@codesourcery.com>
4196 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
4197 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
4198 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
4199 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
4200 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
4201 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
4202 Escape { and } characters which are not part of range expressions.
4203 * fixinc/fixincl.x: Regenerate.
4204 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
4206 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
4209 * tree-inline.c (find_alloca_call): Use
4210 walk_tree_without_duplicates, instead of walk_tree.
4211 (find_builtin_longjmp_call): Likewise.
4212 * c-objc-common.c (c_cannot_inline_fn): Likewise.
4213 * c-semantics.c (find_reachable_label): Likewise.
4215 2003-07-08 Jakub Jelinek <jakub@redhat.com>
4218 * config/i386/i386.c (ix86_check_movabs): New function.
4219 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
4220 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
4221 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
4223 2003-07-08 Chris Demetriou <cgd@broadcom.com>
4225 * Makefile.in (install-po): Cope with empty CATALOGS.
4227 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
4229 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4230 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
4231 (SECTION_FUNCTION_TEMPLATE): Delete.
4232 * config/mips/elf.h: As for elf64.h.
4233 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
4234 * config/mips/linux.h: As for elf.h
4235 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4236 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
4237 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
4238 of in_sdata from current_section_name and current_section_flags.
4239 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4240 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
4241 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
4242 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
4243 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
4244 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4245 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
4246 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
4247 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
4248 (override_options): Remove setting of MASK_GPOPT.
4249 (mips_output_external): Use mips_in_small_data_p to check whether a
4250 symbol needs an .extern directive. Don't emit such directives for
4251 TARGET_EXPLICIT_RELOCS.
4252 (mips_declare_object): Update accordingly.
4253 (mips_select_rtx_section): Call named_section rather than
4255 (mips_select_section): Use default_elf_section_section for everything
4256 except .text string constants.
4257 (mips_in_small_data_p): New function.
4258 (mips_encode_section_info): Remove small data handling.
4259 (mips_unique_section): Delete.
4260 (iris6_section_type_flags): New function.
4261 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
4263 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4266 * pa.md: Disparage all mtsar constraints.
4267 (extzv, extv, insv): Don't fail on length of {32|64}.
4269 2003-07-08 Zack Weinberg <zack@codesourcery.com>
4271 * system.h: Poison MAP_CHARACTER.
4272 * config/i370/i370-protos.h (mvs_map_char): Delete.
4273 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
4274 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
4275 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
4277 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
4279 * toplev.c (randomize): Correct call to time().
4281 2003-07-08 Jakub Jelinek <jakub@redhat.com>
4283 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
4284 REG_EQUIV notes as well.
4286 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
4288 * doc/md.texi: Fix the description of addmodecc.
4290 2003-07-07 Zack Weinberg <zack@codesourcery.com>
4292 * Makefile.in (top_builddir): Set to "..", not ".".
4293 (INTLLIBS, INTLDEPS): Delete.
4294 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
4295 (LIBDEPS): Add $(LIBICONV_DEP).
4296 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
4297 (INCLUDES): Replace -I../intl with @INCINTL@.
4298 ($(top_builddir)/intl/libintl.a): Delete rule.
4299 (stage2-start, stage3-start, stage4-start, stageprofile-start,
4300 stagefeedback-start): Use $$ for variable to be evaluated by
4302 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
4303 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
4304 * aclocal.m4: sinclude ../config/progtest.m4. Add
4305 contents of lcmessage.m4 from gettext distro.
4306 * configure.in: Check for wchar.h and setlocale. Set
4307 LIBICONV_DEP to the empty string and substitute it.
4308 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
4309 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
4310 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
4311 in $LIBINTL, to avoid linking it twice.
4312 * configure, config.in: Regenerate.
4314 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
4316 * fixinc/mkfixinc.sh: Remove winnt support.
4317 * fixinc/fixinc.winnt: Delete with extreme prejudice.
4319 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
4321 * Makefile.in: Update.
4322 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
4323 * c.opt: Update documentation.
4324 * common.opt: Add some help text.
4325 * opts.c: Include intl.h.
4326 (wrap_help, print_help): New.
4327 (find_opt, handle_option, common_handle_option): opt_text now
4328 contains the '-'. Use print_help to output help.
4329 * opts.h (struct cl_option): New member "help".
4330 * opts.sh: Update to handle help text output and to prepend
4332 * toplev.c (display_help): Remove some help text.
4334 2003-07-07 David Edelsohn <edelsohn@gnu.org>
4335 Fariborz Jahanian <fjahanian@apple.com>
4337 * configure.in: Test for PowerPC mfcr field support in assembler.
4338 * config.in, configure: Regenderated.
4340 * config/rs6000/power4.md: Add mfcrf reservation.
4341 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
4342 * config/rs6000/rs6000.c (mfcr_operation): Define.
4343 (print_operand): Add 'Q' case for mfcrf.
4344 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
4345 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
4346 (movcc_internal1): Emit optional field operand for mfcr and set
4347 "type" attribute appropriately.
4348 (mfcr SCC): Likewise.
4349 (movesi_from_cr_one): New.
4351 2003-07-07 Roger Sayle <roger@eyesopen.com>
4353 * config/i386/i386.md: Correct check-in of incorrect version.
4355 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4357 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
4358 adjacent stdio calls.
4359 * c-decl.c (c_print_identifier): Likewise.
4360 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
4361 * print-rtl.c (print_rtx): Likewise.
4362 * print-tree.c (print_node_brief, print_node): Likewise.
4363 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
4365 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
4366 * config.in, configure: Regenerated.
4368 2003-07-07 Roger Sayle <roger@eyesopen.com>
4371 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
4372 Changed to define_expand patterns that copy operand[1] to prevent
4373 it from being clobbered before emitting an atan2?f3_1 insn.
4374 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
4375 patterns that actually specify the behaviour of x87's FPATAN.
4377 2003-07-07 Jakub Jelinek <jakub@redhat.com>
4379 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
4380 clearing of SYMBOL_FLAG_LOCAL bit.
4381 If vcall_offset fits into signed 16-bit immediate, use
4382 one instruction for both addition and load.
4384 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
4386 * opts.c (common_handle_option): Correct handling of the
4387 -falign- switches that do and don't take an argument.
4389 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4391 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
4393 (pushhi1_h8300hs): Likewise.
4395 2003-07-07 Andreas Jaeger <aj@suse.de>
4397 * genextract.c: Convert remaining prototypes to ISO C90.
4399 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
4400 * fold-const.c (fold_single_bit_test): Likewise.
4401 * diagnostic.c (default_diagnostic_finalizer): Likewise.
4402 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
4404 * gengtype.c (write_array): Generate ISO C90 prototypes.
4406 * genflags.c (gen_proto): Generate ISO C90 prototypes.
4408 2003-07-07 Roger Sayle <roger@eyesopen.com>
4410 PR optimization/11059
4411 * expr.c (can_store_by_pieces): Return true if length is zero.
4412 (store_by_pieces): If length is zero and endp is two, abort,
4413 othwerise, if length is zero and endp is not two, return "to".
4414 (clear_by_pieces): Do nothing if length is zero.
4415 (clear_storage): Do nothing if length is zero.
4416 (store_constructor): Simplify code when size is zero, or the
4417 target has already been cleared. This avoids emitting a
4418 blockage instruction when initializing empty structures.
4420 2003-07-07 Andreas Jaeger <aj@suse.de>
4422 * mips-tfile.c: Convert prototypes to ISO C90.
4423 * mips-tdump.c: Convert prototypes to ISO C90.
4425 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
4427 * rtl.h (emit_line_note): Take a location_t.
4428 (emit_line_note_force): Remove.
4429 (set_file_and_line_for_statement): Take a location_t.
4430 * tree.g (emit_line_note): Take a location_t.
4431 * emit-rtl.c (emit_line_note): Take a location_t.
4432 (emit_line_note_force): Remove.
4433 * function.c (init_function_start): Adjust emit_line_note call.
4434 (expand_function_end): Use force_next_line_note, not
4435 emit_line_note_force.
4436 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
4437 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
4438 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
4439 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
4440 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
4441 genrtl_continue_stmt, genrtl_switch_stmt,
4442 genrtl_asm_stmt): Likewise.
4443 * expr.c (expand_expr): Likewise.
4444 * integrate.c (expand_inline_function): Likewise.
4445 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
4446 (expand_decl_init): Adjust emit_line_note call.
4448 2003-07-07 Dale Johannesen <dalej@apple.com>
4450 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
4452 2003-07-07 Andreas Jaeger <aj@suse.de>
4454 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
4455 * config/i386/i386.c: Likewise.
4457 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4459 * config/h8300/h8300.md: Use gen_int_mode instead of
4460 GEN_INT (trunc_int_for_mode (...)).
4462 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4464 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
4465 2 bytes and then subtract 2 from the stack pointer.
4466 (pushhi1_h8300hs): Likewise.
4468 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
4470 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
4472 * configure: Regenerated.
4473 * Makefile.in: Remove extraneous comment.
4474 * toplev.c (randomize): Protect against potential multiple calls.
4475 * doc/invoke.texi (-frandom-seed): Document use for in coverage
4478 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4479 Eric Botcazou <ebotcazou@libertysurf.fr>
4481 PR optimization/11198
4482 * alias.c (objects_must_conflict_p): Return 1 if the types have
4483 the same alias set, not if the alias sets only conflict.
4485 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
4487 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
4488 (convert_cset): Change inbuf to type ICONV_CONST char.
4489 * Makefile.in (LIBS): Add LIBICONV.
4491 * doc/invoke.texi (-falign-functions): Document that
4492 when n is zero then a machine-dependent default is used.
4493 (-falign-labels): Document that when n is zero then a
4494 machine-dependent default is used and that -falign-labels =1
4495 is equivalent to -fno-align-labels.
4496 (-falign-loops): Likewise.
4497 (-falign-jumps): Likewise.
4499 2003-07-06 Art Haas <ahaas@airmail.net>
4501 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
4504 2003-07-06 James E Wilson <wilson@tuliptree.org>
4506 PR optimization/9812
4507 * rtl.h (mem_for_const_double): Delete prototype.
4508 * varasm.c (mem_for_const_double): Delete function.
4509 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
4510 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
4511 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
4512 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
4513 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
4514 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
4515 comment about confused support for XFmode constants.
4517 Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
4519 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
4521 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
4523 * config/h8300/h8300.c: Fix comment typos.
4524 * config/h8300/h8300.md: Likewise.
4525 * config/i386/athlon.md: Likewise.
4526 * config/i386/i386.c: Likewise.
4527 * config/i386/pentium.md: Likewise.
4528 * config/ia64/ia64.c: Likewise.
4529 * config/ia64/itanium1.md: Likewise.
4530 * config/ia64/itanium2.md: Likewise.
4531 * config/m32r/m32r.md: Likewise.
4532 * config/m68hc11/m68hc11.c: Likewise.
4533 * config/mcore/mcore.c: Likewise.
4534 * config/mips/sr71k.md: Likewise.
4535 * config/mips/t-iris5-as: Likewise.
4536 * config/mmix/mmix.h: Likewise.
4537 * config/ns32k/ns32k.h: Likewise.
4538 * config/ns32k/NOTES: Fix a typo.
4540 2003-07-06 Andreas Jaeger <aj@suse.de>
4542 * stmt.c: Convert remaining prototypes to ISO C90.
4543 * cfglayout.c: Likewise.
4544 * dbxout.c: Likewise.
4546 * genemit.c: Likewise.
4548 * basic-block.h: Convert prototypes to ISO C90.
4549 * c-parse.in: Likewise.
4550 * c-pragma.h: Likewise.
4551 * c-typeck.c: Likewise.
4552 * cfghooks.h: Likewise.
4553 * cfgloopanal.c: Likewise.
4554 * dbxout.h: Likewise.
4555 * debug.h: Likewise.
4556 * dwarf2asm.h: Likewise.
4558 * gengtype-lex.l: Likewise.
4559 * sched-int.h: Likewise.
4560 * timevar.c: Likewise.
4562 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
4564 * c-common.h (c_comon_handle_filename,
4565 c_common_missing_arguement): New.
4566 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4567 LANG_HOOKS_MISSING_ARGUMENT): New.
4568 * c-opts.c (missing_arg): Rename c_common_missing_argument,
4569 update to be an appropriate langhook.
4570 (c_common_handle_option): Don't handle filenames.
4571 (c_common_handle_filename): New.
4572 * hooks.c (hook_void_constcharptr,
4573 hook_bool_constcharptr_size_t_false): New.
4574 * hooks.h (hook_void_constcharptr,
4575 hook_bool_constcharptr_size_t_false): New.
4576 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
4577 LANG_HOOKS_MISSING_ARGUMENT): New.
4578 (LANG_HOOKS_INITIALIZER): Update.
4579 * langhooks.h (struct lang_hooks): Add handle_filename and
4581 * opts.c (handle_option): Don't handle filenames here, but ...
4582 (handle_options): ... here.
4583 (common_handle_option): Don't handle missing arguments here.
4584 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4585 LANG_HOOKS_MISSING_ARGUMENT): New.
4587 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
4589 * Makfile.in: Remove traces of mbchar.
4590 * c-parse.in (MULTIBYTE_CHARS): Remove.
4591 * config.in (MULTIBYTE_CHARS): Remove.
4592 * configure: Remove --enable-mbchar.
4593 * configure.in: Remove --enable-mbchar.
4594 * mbchar.c, mbchar.h: Remove.
4595 * system.h: Poison MULTIBYTE_CHARS.
4596 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
4597 * config/linux.h (MULTIBYTE_CHARS): Remove.
4598 * config/svr4.h (MULTIBYTE_CHARS): Remove.
4599 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
4601 2003-07-06 Andreas Jaeger <aj@suse.de>
4603 * varray.c (varray_check_failed): Fix typo.
4605 * unroll.c: Convert prototypes to ISO C90.
4606 * varasm.c: Likewise.
4607 * varray.c: Likewise.
4608 * varray.h: Likewise.
4609 * vmsdbgout.c: Likewise.
4610 * xcoffout.c: Likewise.
4611 * xcoffout.h: Likewise.
4613 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4615 * gcov-io.h: Add a local time stamp.
4616 (struct gcov_info): Add stamp field.
4617 (gcov_truncate): New.
4618 * coverage.c (read_counts_file): Skip the stamp.
4619 (coverage_begin_output): Write the stamp.
4620 (build_gcov_info): Declare and init the stamp.
4621 (coverage_finish): Only unlink data file, if stamp is zero.
4622 * gcov-dump.c (dump_file): Dump the stamp.
4623 * gcov.c (bbg_stamp): New.
4624 (release_structures): Clear bbg_stamp.
4625 (read_graph_file): Read stamp.
4626 (read_count_file): Check stamp.
4627 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
4629 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4631 * tree.h (default_flag_random_seed): Remove.
4632 * toplev.h (local_tick): Declare.
4633 * tree.c (flag_random_seed, default_flag_random_seed): Move to
4635 (append_random_chars): Don't call default_flag_random_seed.
4636 * toplev.c (flag_random_seed): Define here. Set local_tick.
4637 (local_tick): Define.
4638 (randomize): New, moved from tree.c.
4639 (print_switch_values): Adjust.
4640 (toplev_main): Call randomize.
4642 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4644 * tree.h (crc32_string): Declare.
4645 * tree.c (append_random_chars): Remove.
4646 (crc32_string): New.
4647 (get_file_function_name_long): Use crc32_string here.
4649 2003-07-06 Andreas Jaeger <aj@suse.de>
4651 * gcc.c: Convert prototypes to ISO C90.
4653 * gcov-dump.c: Likewise.
4654 * gcov-iov.c: Likewise.
4656 * genattrtab.h: Likewise.
4658 * global.c: Likewise.
4659 * graph.c: Likewise.
4660 * graph.h: Likewise.
4661 * hosthooks.h: Likewise.
4662 * hooks.h: Likewise.
4663 * hooks.c: Likewise.
4664 * hashtable.h: Likewise.
4665 * hashtable.c: Likewise.
4666 * haifa-sched.c: Likewise.
4667 * integrate.h: Likewise.
4668 * integrate.c: Likewise.
4669 * input.h: Likewise.
4670 * ifcvt.c: Likewise.
4672 * langhooks-def.h: Likewise. Add extern to prototypes.
4673 * langhooks.c: Likewise.
4674 * langhooks.h: Likewise.
4676 * local-alloc.c: Likewise.
4677 * loop-init.c: Likewise.
4678 * loop-unroll.c: Likewise.
4679 * loop-unswitch.c: Likewise.
4681 * loop.h: Likewise. Add extern to prototypes.
4682 * machmode.h: Likewise.
4684 * mbchar.c: Likewise.
4685 * mbchar.h: Likewise.
4686 * mkdeps.c: Likewise.
4687 * mkdeps.h: Likewise.
4688 * optabs.c: Likewise.
4689 * optabs.h: Likewise.
4690 * output.h: Likewise.
4691 * gccspec.c: Likwise.
4692 * postreload.c: Likewise.
4693 * prefix.c: Likewise.
4694 * prefix.h: Likewise.
4695 * print-rtl.c: Likewise.
4696 * print-tree.c: Likewise.
4697 * profile.c: Likewise.
4698 * read-rtl.c: Likewise.
4701 * recog.c: Likewise.
4702 * recog.h: Likewise.
4703 * reg-stack.c: Likewise.
4704 * regclass.c: Likewise.
4705 * regmove.c: Likewise.
4706 * regrename.c: Likewise.
4708 * reload.c: Likewise.
4709 * reload.h: Likewise.
4710 * reload1.c: Likewise.
4711 * reorg.c: Likewise.
4712 * resource.c: Likewise.
4713 * resource.h: Likewise.
4714 * rtl-error.c: Likewise.
4717 * rtlanal.c: Likewise.
4718 * sbitmap.c: Likewise.
4719 * sbitmap.h: Likewise.
4720 * scan-decls.c: Likewise.
4722 * sched-deps.c: Likewise.
4723 * sched-ebb.c: Likewise.
4724 * sched-int.h: Likewise.
4725 * sched-rgn.c: Likewise.
4726 * sched-vis.c: Likewise.
4727 * sibcall.c: Likewise.
4728 * simplify-rtx.c: Likewise.
4729 * sreal.c: Likewise.
4730 * sreal.h: Likewise.
4731 * ssa-ccp.c: Likewise.
4732 * ssa-dce.c: Likewise.
4735 * stack.h: Likewise.
4737 * stor-layout.c: Likewise.
4738 * stringpool.c: Likewise.
4739 * target.h: Likewise.
4740 * timevar.c: Likewise.
4741 * timevar.h: Likewise.
4742 * tlink.c: Likewise.
4743 * tracer.c: Likewise.
4744 * tree-inline.c: Likewise.
4745 * tree-inline.h: Likewise.
4749 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4751 * combine.c (nonzero_bits1): Fix a warning.
4753 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4755 * config/h8300/h8300.c (compute_mov_length): Correct the
4756 length of loading CONST0_RTX (SFmode).
4758 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
4760 * toplev.c (output_clean_symbol_name): Remove.
4761 * toplev.h (output_clean_symbol_name): Remove.
4762 * config/alpha/alpha.c (unicosmk_output_module_name): Use
4763 lbasename & clean_symbol_name.
4765 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4767 * ggc.h: Follow spelling conventions.
4768 * config/i386/i386.c: Likewise.
4769 * config/i386/winnt.c: Likewise.
4770 * config/rs6000/rs6000.c: Likewise.
4772 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4774 * bt-load.c: Fix comment typos.
4775 * c-incpath.c: Likewise.
4777 * cfgcleanup.c: Likewise.
4778 * cfgloop.h: Likewise.
4779 * cfgloopmanip.c: Likewise.
4780 * cfgrtl.c: Likewise.
4781 * diagnostic.h: Likewise.
4782 * dwarfout.c: Likewise.
4783 * emit-rtl.c: Likewise.
4784 * et-forest.c: Likewise.
4785 * et-forest.h: Likewise.
4788 * genattr.c: Likewise.
4790 * langhooks.h: Likewise.
4791 * local-alloc.c: Likewise.
4792 * loop-unroll.c: Likewise.
4793 * loop-unswitch.c: Likewise.
4794 * ra-build.c: Likewise.
4795 * regclass.c: Likewise.
4796 * regmove.c: Likewise.
4797 * rtl.def: Likewise.
4798 * rtlanal.c: Likewise.
4799 * sched-ebb.c: Likewise.
4800 * sched-rgn.c: Likewise.
4801 * simplify-rtx.c: Likewise.
4803 * tracer.c: Likewise.
4806 2003-07-05 Zack Weinberg <zack@codesourcery.com>
4808 * cppcharset.c: Use the correct return type for the fallback iconv
4811 Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4813 Blame to Jan Hubicka <jh@suse.cz>
4814 * cfglayout.c (record_effective_endpoints): Split insns before
4815 first basic block correctly.
4817 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4819 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
4820 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
4821 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
4823 2003-07-05 Andreas Jaeger <aj@suse.de>
4825 * genattrtab.c (write_attr_get): Revert part of last patch to
4826 always write out a prototype.
4828 * genemit.c (gen_split): Readd lost unused attributes in last
4831 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4833 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
4834 different from header.
4836 2003-07-05 Andreas Schwab <schwab@suse.de>
4838 * config/m68k/m68k.c: Remove code protected by CRDS.
4839 * config/m68k/m68k.md: Likewise.
4841 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
4844 * c-opts.c (permit_fortran_options): New.
4845 (c_common_init_options): Accept fortran front end options if
4846 it looks like we might be preprocessing Fortran.
4847 (c_common_handle_option): Don't reject switch if permit_fotran_options.
4849 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4851 * genattr.c (internal_dfa_insn_code): Output prototype.
4852 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
4853 * genautomata.c: Likewise.
4854 * genconditions.c: Likewise.
4855 * genemit.c: Likewise.
4856 * genextract.c: Likewise.
4857 * gengenrtl.c: Likewise.
4858 * gengtype.c: Likewise.
4859 * genopinit.c: Likewise.
4860 * genoutput.c: Likewise.
4861 * genpeep.c: Likewise.
4862 * genrecog.c: Likewise.
4864 2003-07-04 Zack Weinberg <zack@codesourcery.com>
4866 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
4867 (struct cpp_options): Add narrow_charset, wide_charset,
4868 bytes_big_endian fields. Remove EBCDIC field.
4869 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
4871 * cpphash.h: Include <iconv.h> if we have it, otherwise
4872 provide a dummy definition of iconv_t.
4873 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
4874 (_cpp_valid_ucn): Update prototype.
4875 (_cpp_destroy_iconv): New prototype.
4877 * doc/cpp.texi: Document character set handling.
4878 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
4879 * doc/extend.texi: Delete entire section on multiline strings.
4880 Rewrite section on __FUNCTION__ etc now that these are
4883 * cppucnid.tab, cppucnid.pl: New files.
4884 * cppucnid.h: New generated file.
4885 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
4886 (iconv_open, iconv, iconv_close): Provide dummy definitions
4888 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
4889 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
4890 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
4891 cpp_interpret_string, narrow_str_to_charconst,
4892 wide_str_to_charconst): New.
4893 (ucn_valid_in_identifier): Use a binary search through the
4894 ucnranges table defined in cppucnid.h, not a long chain of if
4896 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
4897 character names are only valid in C++ and C99" to a warning.
4898 Issue the "meaning of \[uU] is different in traditional C"
4899 warning here. Take care not to let iconv see an invalid UCS
4900 value if we get a malformed UCN. Issue an error if we don't
4902 (cpp_interpret_charconst): Moved here from cpplex.c. Use
4903 cpp_interpret_string to do the heavy lifting.
4905 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
4906 narrow_charset, wide_charset fields of options structure.
4907 (cpp_destroy): Call _cpp_destroy_iconv.
4908 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
4909 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
4910 (cpp_interpret_charconst): Moved to cppcharset.c.
4911 * cpplib.c (dequote_string): Delete.
4912 (interpret_string_notranslate): New.
4913 (do_line, do_linemarker): Use interpret_string_notranslate.
4915 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
4917 * c-common.c (fname_string, combine_strings): Delete.
4918 * c-common.h (fname_string, combine_strings): Delete prototypes.
4919 * c-lex.c (ignore_escape_flag): Delete.
4920 (cb_ident): Use cpp_interpret_string, not lex_string.
4921 (get_nonpadding_token): New function.
4922 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
4923 Adjust calls to lex_string. Don't write *value twice.
4924 (lex_string): Now handles string constant concatenation.
4925 Most of the work handed off to cpp_interpret_string.
4926 Call fix_string_type here.
4927 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
4928 FUNC_NAME, throughout.
4929 (OBJC_STRING): New token type.
4930 (primary:STRING): No need to call fix_string_type here.
4931 (primary:objc_string): Make that OBJC_STRING.
4932 (objc_string nonterminal): Delete.
4933 (yylexname): Delete code to handle fake string constants.
4934 (yylexstring): Delete entirely.
4935 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
4936 to handle CPP_ATSIGN.
4938 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
4939 * c-opts.c (missing_arg, c_common_handle_option): Handle
4940 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
4941 (c_common_init): Set cpp_opts->bytes_big_endian, not
4942 cpp_opts->EBCDIC. Call cpp_init_iconv.
4943 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
4944 (TARGET_EBCDIC): Delete default definition.
4946 * objc/objc-act.c (build_objc_string_object): No need to
4947 handle string constant concatenation.
4949 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
4951 * doc/install.texi: Fix typos.
4952 * doc/invoke.texi: Likewise.
4953 * doc/tm.texi: Likewise.
4955 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
4957 * config/pa/fptr.c: Fix comment typos.
4958 * config/pa/pa-64.h: Likewise.
4959 * config/pa/pa.c: Likewise.
4960 * config/pa/pa.h: Likewise.
4961 * config/rs6000/603.md: Likewise.
4962 * config/rs6000/7xx.md: Likewise.
4963 * config/rs6000/darwin.h: Likewise.
4964 * config/rs6000/freebsd.h: Likewise.
4965 * config/rs6000/rs6000.c: Likewise.
4966 * config/rs6000/rs6000.md: Likewise.
4967 * config/rs6000/spe.h: Likewise.
4969 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
4971 * config/s390/2064.md: Change GNU CC to GCC.
4972 * config/s390/2084.md: Likewise.
4973 * config/s390/fixdfdi.h: Likewise.
4974 * config/s390/linux.h: Likewise.
4975 * config/s390/s390-modes.def: Likewise.
4976 * config/s390/s390-protos.h: Likewise.
4977 * config/s390/s390.c: Likewise.
4978 * config/s390/s390.h: Likewise.
4979 * config/s390/s390.md: Likewise.
4980 * config/s390/s390x.h: Likewise.
4982 2003-07-04 Jeff Law <law@redhat.com>
4985 * expr.c (do_store_flag): Pass in the correct result type
4986 when calling fold_single_bit_test.
4987 * fold-const.c (fold_single_bit_test): Use result_type for the
4988 result when folding a sign bit test.
4990 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
4992 * opts.c (common_handle_options): Negate sense of -falign- switches.
4994 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
4996 * Makefile.in: Replace PWD with PWD_COMMAND.
4998 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5000 * cfgloopanal.c (count_strange_loop_iterations): New static function.
5001 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
5002 Handle strange loops.
5004 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
5006 * install.texi: Even the g77 manpage is derived from
5007 the full g77 manual.
5009 2003-07-04 Zack Weinberg <zack@codesourcery.com>
5011 * ABOUT-NLS: Delete.
5012 * intl: Delete entire directory.
5013 * aclocal.m4: Include ../config/gettext.m4. Delete
5014 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
5015 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
5016 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
5017 Remove intl/Makefile from all_outputs.
5018 * configure, config.in: Regenerate.
5019 * Makefile.in: Expunge all references to intl subdirectory.
5020 Add -I../intl to INCLUDES.
5021 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
5023 2003-07-04 Roger Sayle <roger@eyesopen.com>
5025 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
5026 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
5028 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
5030 PR c++/5287, PR c++/7910, PR c++/11021
5031 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
5032 dllimport attribute if function is defined at declaration, but
5033 report error instead. Likewise for dllimport'd variable
5034 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
5035 declared within functions, Report error if dllimport or dllexport
5036 symbol is not global.
5037 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
5038 if defined after declaration or if inlined. Don't allow definition
5039 of static data members of C++ classes. Don't dllimport virtual
5041 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
5042 (i386_pe_mark_dllimport): Remove unnecessary checks.
5043 (i386_pe_encode_section_info): Warn if the dllimport attribute
5044 and symbol prefix have been instantiated and then overridden.
5046 * doc/extend.texi: Document dllimport and dllexport attributes.
5048 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
5050 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
5052 * config/kaos.h (CPP_PREDEFINES): Delete.
5053 (TARGET_OS_CPP_BUILTINS): New.
5055 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5057 * c-aux-info.c: Include toplev.h after c-tree.h.
5058 * c-common.c: Likewise.
5059 (GCC_DIAG_STYLE): Undef.
5060 * c-semantics.c (GCC_DIAG_STYLE): Define.
5061 * c-tree.h (GCC_DIAG_STYLE): Likewise.
5062 * diagnostic.h (inform): Move prototype to toplev.h.
5063 * jump.c: Include diagnostic.h before toplev.h.
5064 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
5065 (warning, error, fatal_error, pedwarn, sorry, inform,
5066 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
5068 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5070 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
5071 at all if edge is not specified.
5072 (can_copy_bbs_p, copy_bbs): New.
5073 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
5074 * cfgloop.c (get_loop_body): Comment more precisely.
5075 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
5076 (scale_bbs_frequencies): Fix comment typo.
5077 (can_duplicate_loop_p): Use can_copy_bbs_p.
5078 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
5080 2003-07-03 Devang Patel <dpatel@apple.com>
5082 * c-opts.c (c_common_parse_file): Remove extra
5083 debug_hooks->start_source_file call.
5085 2003-07-03 Roger Sayle <roger@eyesopen.com>
5087 * real.c (real_trunc, real_floor, real_ceil): New functions
5088 to implement trunc, floor and ceil respectively.
5089 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
5090 * builtins.c (integer_valued_real_p): New function to test if
5091 a floating point expression has an integer valued result.
5092 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
5093 foo(x) where foo is an integer rounding function. Similarly,
5094 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
5095 (double)(int)x when both foo and bar are integer rounding
5096 functions and we don't need to honor errno.
5097 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
5098 New functions to fold trunc, floor and ceil.
5099 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
5100 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
5101 to fold BUILT_IN_CEIL*.
5102 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
5103 the remaining integer rounding functions.
5105 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5107 * config/sparc/sparc.c (function_arg_partial_nregs): Use
5108 SPARC_INT_ARG_MAX to determine where to split unnamed
5109 complex FP arguments.
5111 Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
5113 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
5114 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
5115 (merge_blocks_move_predecessor_nojumps,
5116 merge_blocks_move_successor_nojumps): Use merge_blocks.
5117 (try_optimize_cfg): Use merge_blocks_move.
5118 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
5119 (merge_blocks_nomove): Rename to rtl_merge_blocks.
5120 (cfg_layout_create_basic_block): New.
5121 (rtl_can_merge_blocks): New.
5122 (cfg_layout_split_block): Do not alloc aux by hand.
5123 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
5125 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
5126 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
5127 * cfgloopmanip.c (loop_split_edge_with): Likewise.
5128 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
5130 * basic-block.h (basic_block_def): Add field 'rbi'.
5131 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
5132 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
5133 * cfg.c (entry_exit_blocks): Add new field.
5134 * cfglayout.c: Include alloc-pool.h;
5135 (cfg_layout_pool): New.
5136 (record_effective_endpoints, fixup_reorder_chain,
5137 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
5139 (cfg_layout_initialize_rbi): New function.
5140 (cfg_layout_initialize): Use it.
5141 (cfg_layout_finalize): Clear rbi fields.
5142 * cfglayout.h (RBI): Kill.
5143 (cfg_layout_initialize_rbi): Declare.
5144 * cfgloopmanip.c (copy_bbs): Use rbi.
5145 (record_exit_edges): Likewise.
5146 (duplicate_loop_to_header_edge): Likewise.
5147 * cfgrtl.c (cfg_layout_create_basic_block): Use
5148 cfg_layout_initialize_rbi.
5149 (cfg_layout_split_block): Use rbi.
5150 (cfg_layout_delete_block): Likewise.
5151 * loop-init.c (loop_optimizer_finalize): Likewise.
5152 * loop-unswitch.c (unswitch_loop): Likewise.
5153 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
5155 * cfgrtl.c: Update comments.
5156 (try_redirect_by_replacing_jump): New argument.
5157 (redirect_branch_edge): Break out from ...
5158 (rtl_redirect_edge_and_branch): ... this one.
5159 (update_cfg_after_block_merging): Break out from ...
5160 (rtl_merge_blocks): ... this one.
5161 (cfg_layout_split_edge): New.
5162 (cfg_layout_merge_blocks): New.
5163 (cfg_layout_can_merge_blocks_p): New.
5164 (cfg_layout_redirect_edge_and_branch): Reorganize.
5165 (cfg_layout_rtl_cfg_hooks): Fill in.
5166 (cfg_layout_delete_block): Kill barriers.
5167 * cfganal.c (can_fallthru): Deal with exit blocks
5168 * cfglayout.c (cfg_layout_function_header): New function
5169 (record_effective_endpoints): Record function header.
5170 (fixup_reorder_chain): Fixup dead jumptables; place header
5172 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
5173 * bb-reorder.c (cfg_layout_initialize): Update call.
5174 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
5175 edges in cfglayout mode.
5176 * cfglayout.c (cleanup_unconditional_jumps): Kill.
5177 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
5178 * cfglayout.h (cfg_layout_initialize): Update prototype.
5179 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
5180 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
5181 * flow.c (propagate_block): Do not crash when basic block ends
5182 by first insn in the chain.
5183 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
5185 * tracer.c (tracer): Update call of cfg_layout_initialize.
5187 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5189 * Makefile.in: Use dependency variables in lieu of explicit
5192 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
5194 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
5195 * tree.h: ...to here.
5197 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
5199 * config/s390/2064.md: Fix comment typos.
5200 * config/s390/2084.md: Likewise.
5201 * config/s390/s390.c: Likewise.
5202 * config/s390/s390.md: Likewise.
5203 * config/sh/sh.c: Likewise.
5204 * config/sh/sh.h: Likewise.
5205 * config/sh/sh.md: Likewise.
5206 * config/sparc/sparc.c: Likewise.
5207 * config/sparc/sparc.h: Likewise.
5208 * config/sparc/sparc.md: Likewise.
5209 * config/stormy16/stormy16.c: Likewise.
5210 * config/stormy16/stormy16.h: Likewise.
5211 * config/stormy16/stormy-abi: Fix a typo.
5213 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
5215 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
5217 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5219 * config/mips/mips.h (save_argv): Delete.
5221 2003-07-03 Roger Sayle <roger@eyesopen.com>
5224 * fold-const.c (extract_muldiv_1): There's nothing that can be done
5225 if the expression is a SAVE_EXPR.
5227 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
5229 * config/m32r/m32r.c: Fix comment typos.
5230 * config/m68hc11/m68hc11.c: Likewise.
5231 * config/m68hc11/m68hc11.h: Likewise.
5232 * config/m68k/m68k.c: Likewise.
5233 * config/mcore/mcore.c: Likewise.
5234 * config/mcore/mcore.h: Likewise.
5235 * config/mcore/mcore.md: Likewise.
5236 * config/mips/mips.c: Likewise.
5237 * config/mips/mips.h: Likewise.
5238 * config/mips/mips.md: Likewise.
5239 * config/mips/netbsd.h: Likewise.
5240 * config/mn10300/mn10300.c: Likewise.
5242 2003-07-03 Andreas Schwab <schwab@suse.de>
5244 * dbxout.c (pending_bincls): Move decl down inside
5245 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
5247 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
5249 * rtl.h (NOTE_DATA): Refer to whole union.
5250 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
5252 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5254 PR optimization/11381
5255 * simplify-rtx.c (simplify_relational_operation): Check that
5256 two equal operands have no side-effects before simplifying
5259 2003-07-02 Jeff Law <law@redhat.com>
5261 * expr.c (do_store_flag): Remove special case folding for
5262 single bit tests. Instead call back into the commonized folder
5264 * fold-const.c (fold_single_bit_test): New function, mostly
5265 extracted from do_store_flag, with an additional case extracted
5267 (fold): Call fold_single_bit_test appropriately.
5268 * tree.h (fold_single_bit_test): Prototype.
5270 2003-07-02 Zack Weinberg <zack@codesourcery.com>
5272 * system.h: Include filenames.h.
5273 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
5274 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
5275 define based on HAVE_DOS_BASED_FILE_SYSTEM.
5276 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
5277 * config/i386/xm-mingw32.h: Don't define
5278 HAVE_DOS_BASED_FILE_SYSTEM,
5279 DIR_SEPARATOR, or DIR_SEPARATOR_2.
5280 * doc/hostconfig.texi: Update to match.
5282 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
5283 config/i386/cygwin.h:
5284 Use IS_ABSOLUTE_PATH throughout.
5285 * gcc.c (DIR_UP): Delete, unused.
5286 * protoize.c (IS_SAME_PATH): Define in terms of
5288 (is_abspath): Delete.
5290 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
5292 * config/i386/emmintrin.h: Fix comment typos.
5293 * config/i386/i386.c: Likewise.
5294 * config/i386/i386.h: Likewise.
5295 * config/i386/sco5.h: Likewise.
5296 * config/ia64/ia64.c: Likewise.
5297 * config/ia64/itanium2.md: Likewise.
5299 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
5301 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
5303 (emit_bincl_stab): Same.
5304 (emit_pending_bincls): Same.
5306 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
5308 * config/h8300/h8300.c (compute_mov_length): Fix the length of
5309 loading CONST0_RTX (SFmode).
5310 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
5311 'G' to CONST0_RTX (SFmode).
5312 * config/h8300/h8300.md (movsf_h8300): Change the first
5314 (movsf_h8300h): Likewise.
5316 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
5318 * c-common.h (c_common_init_options): New prototype.
5319 * c-opts.c (deferred_size): Remove.
5320 (defer_opt): Array is now pre-allocated.
5321 (c_common_init_options): Pre-allocate deferred_opts. Make
5322 lang_flags unsigned.
5323 (push_command_line_options): Free deferred_opts.
5324 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
5325 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
5326 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
5327 * langhooks.h (struct lang_hooks): New prototype for init_options.
5328 * main.c (main): Cast argv.
5329 * opts.c (handle_option, handle_options): Update prototypes.
5330 (decode_options): save_argc, save_argv are not global. Constify.
5331 * opts.h (decode_options): New prototype.
5332 * toplev.c (general_init): New protoype.
5333 (save_argv): Make static.
5334 (save_argc): Remove.
5335 (print_switch_values, general_init): Constify.
5336 (toplev_main): Save argv.
5337 * toplev.h (toplev_main): Update prototype.
5338 (save_argc, save_argv): Remove.
5340 2003-07-02 David Edelsohn <edelsohn@gnu.org>
5342 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
5343 (emit_bincl_stab): Same.
5344 (emit_pending_bincls): Same.
5346 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
5349 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
5351 2003-07-02 Andreas Schwab <schwab@suse.de>
5353 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
5355 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
5357 PR optimization/11210
5358 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
5359 about the behaviour with regard to bitfields.
5360 * fold-const (decode_field_reference): Record outermost type in
5361 case the expression is a NOP. Strip all NOPs. Set the signedness
5362 to that of the outermost type (if any) when the bitsize is equal
5363 to the size of the type.
5365 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
5367 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
5368 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
5369 (adddi3_internal_3, addsi3_internal_2): Likewise.
5371 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
5373 * config/mips/mips.c (machine_function): Add new fields:
5374 ignore_hazard_length_p and all_noreorder_p.
5375 (mips_flag_delayed_branch): New variable.
5376 (override_options): Treat '/' as an operand punctuation character.
5377 Set up mips_flag_delayed_branch.
5378 (print_operand): Handle '/'.
5379 (mips_output_function_prologue): Put the whole function in
5380 .set noreorder and .set nomacro if all_noreorder_p is true.
5381 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
5382 (mips16_optimize_gp): Remove "first insn" parameter.
5383 (mips16_lay_out_constants): New function, split out from mips_reorg.
5384 (mips_avoid_hazard, mips_avoid_hazards): New functions.
5385 (mips_reorg): For mips16 code, call mips16_lay_out_constant
5386 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
5387 do delayed-branch scheduling followed by hazard detection.
5388 (mips_adjust_insn_length): Only account for hazards if
5389 !ignore_hazard_length_p.
5390 (mips_output_load_label): Add a nop to the o32 sequence if
5391 the target suffers from load delays.
5392 (mips_output_conditional_branch): Add %/ to the end of branches.
5393 (mips_output_division): Fill the branch delay slot with %#.
5394 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
5395 instructions. End all other %* branches with %/.
5396 (ffssi2, ffsdi2): Fix lengths.
5397 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
5398 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
5399 (fix_truncsfsi2_macro): Likewise.
5400 (mov_lwl): Set hazard to "none".
5401 (ashldi3_internal): Fill the branch delay slot with %#.
5402 (ashrdi3_internal, lshrdi3_internal): Likewise.
5403 (exception_receiver): Explicitly set $28.
5404 (hazard_nop): New pattern.
5406 Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
5408 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
5409 before calling tree_inlinable_function_p.
5411 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5413 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
5414 <internal/stdio_core.h> too.
5415 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
5416 <internal/wchar_core.h> too.
5417 Substitute va_list uses in inline definition.
5418 * fixinc/fixincl.x: Regenerate.
5420 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5422 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
5423 Undef before redefinition.
5424 (LABEL_AFTER_LOC): Likewise.
5425 (DEFAULT_SIGNED_CHAR): Likewise.
5426 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
5429 * config/mips/iris3.h: Remove, unused.
5430 * config/mips/iris4.h: Likewise.
5432 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
5434 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
5435 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
5438 * config/mips/iris5.h: Move explicit includes ...
5439 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
5441 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
5442 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
5445 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
5446 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
5449 * config/mips/iris6.h: Fix IRIX spelling.
5450 (MULTILIB_DEFAULTS): Undef before redefinition.
5452 * config/mips/iris6.h: Move explicit includes ...
5453 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
5455 Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
5457 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
5458 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
5459 Use next_needed field instead of aux to maintain the queue.
5460 * cgraph.h (cgraph_node): Add next_needed.
5461 (cgraph_varpool_node): Add next_needed; remove aux.
5462 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
5464 Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
5466 * cgraphunit.c (cgraph_finalize_function): Set finalized.
5467 (cgraph_finalize_function): Do not examine inlinablility.
5468 (cgraph_finalize_compilation_unit): Do it here.
5469 * cgraph.h (cgraph_local_info): Add finalized field.
5471 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5473 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
5474 (gt_pch_restore): Likewise.
5476 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5478 * config/alpha/alpha.c: Fix comment typos.
5479 * config/alpha/elf.h: Likewise.
5480 * config/arm/arm.c: Likewise.
5481 * config/arm/arm.h: Likewise.
5482 * config/arm/arm.md: Likewise.
5483 * config/arm/t-arm-coff: Likewise.
5484 * config/arm/t-strongarm-pe: Likewise.
5485 * config/arm/xscale-elf.h: Likewise.
5486 * config/avr/avr.h: Likewise.
5488 2003-07-01 Jeff Law <law@redhat.com>
5490 * stmt.c (any_pending_cleanups): Remove another redundant test.
5492 2003-07-01 David Edelsohn <edelsohn@gnu.org>
5493 J"orn Rennecke <joern.rennecke@superh.com>
5495 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
5498 2003-07-01 Devang Patel <dpatel@apple.com>
5500 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
5502 (struct dbx_file): New members - bincl_status, pending_bincl_name and
5504 (pending_bincls): New.
5505 (dbxout_init): Initialize new dbx_file members.
5506 (dbxout_start_source_file): Same.
5507 (emit_bincl_stab): New function.
5508 (emit_pending_bincls): Same.
5509 (emit_pending_bincls_if_required): Same.
5510 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
5512 (dbxout_begin_block): Emit pending BINCL stabs.
5513 (dbxout_end_block): Same.
5514 (dbxout_function_decl): Same.
5515 (dbxout_continue): Same.
5516 (dbxout_type): Same.
5517 (dbxout_class_name_qualifiers): Same.
5518 (dbxout_symbol): Same.
5519 (dbxout_symbol_location): Same.
5520 (dbxout_parms): Same.
5522 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5524 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
5525 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
5527 2003-07-01 Andreas Jaeger <aj@suse.de>
5529 * fold-const.c: Convert prototypes to ISO C90.
5530 * function.c: Likewise.
5531 * function.h: Likewise.
5533 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5535 * doc/contrib.texi: Fix typos.
5536 * doc/invoke.texi: Likewise.
5537 * doc/passes.texi: Likewise.
5538 * doc/sourcebuild.texi: Likewise.
5539 * doc/tm.texi: Likewise.
5541 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5543 * basic-block.h: Fix comment typos.
5544 * bb-reorder.c: Likewise.
5545 * c-format.c: Likewise.
5546 * cfgcleanup.c: Likewise.
5547 * cfghooks.h: Likewise.
5548 * cfgloop.c: Likewise.
5549 * cfgloopmanip.c: Likewise.
5550 * cfgrtl.c: Likewise.
5551 * cgraph.h: Likewise.
5552 * cgraphunit.c: Likewise.
5553 * combine.c: Likewise.
5554 * convert.c: Likewise.
5555 * dbxout.c: Likewise.
5558 * diagnostic.c: Likewise.
5559 * dwarf2out.c: Likewise.
5560 * et-forest.h: Likewise.
5562 * fold-const.c: Likewise.
5563 * function.h: Likewise.
5564 * gcov-io.h: Likewise.
5567 * genautomata.c: Likewise.
5568 * ggc-common.c: Likewise.
5569 * ggc-page.c: Likewise.
5570 * loop-unroll.c: Likewise.
5571 * loop-unswitch.c: Likewise.
5573 * mips-tfile.c: Likewise.
5574 * optabs.c: Likewise.
5575 * ra-build.c: Likewise.
5576 * ra-colorize.c: Likewise.
5577 * ra-rewrite.c: Likewise.
5579 * regmove.c: Likewise.
5580 * reload.c: Likewise.
5581 * rtlanal.c: Likewise.
5582 * sched-ebb.c: Likewise.
5583 * sched-int.h: Likewise.
5584 * sched-vis.c: Likewise.
5585 * sreal.c: Likewise.
5586 * ssa-ccp.c: Likewise.
5588 * toplev.c: Likewise.
5589 * tree-inline.c: Likewise.
5590 * value-prof.c: Likewise.
5591 * value-prof.h: Likewise.
5593 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
5595 * rtl.h (emit_line_note_after): Remove.
5596 (emit_note_copy_after, emit_note_copy): New.
5597 * emit-rtl.c (reorder_insns_with_line_notes): Replace
5598 emit_line_note_after with emit_note_copy_after.
5599 (emit_insn_after_with_line_notes): Likewise.
5600 (emit_line_note_after): Kill.
5601 (emit_note_copy_after): New.
5602 (emit_note_copy): New.
5603 * function.c (emit_return_into_block): Use emit_note_copy_after.
5604 (thread_prologue_and_epilogue_insns): Likewise.
5605 * integrate.c (expand_inline_function): Use emit_note_copy.
5606 (copy_insn_list): Likewise.
5607 * unroll.c (copy_loop_body): Likewise.
5608 * cfglayout.c (duplicate_insn_chain): Likewise.
5610 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
5612 * c-tree.h (define_label): Replace filename and lineno arguments
5614 * c-decl.c (poplevel): Adjust define_label call.
5615 (pop_label_level): Likewise.
5616 (define_label): Replace filename and lineno arguments with a
5618 (store_parm_decls): Use DECL_SOURCE_LOCATION.
5619 * c-parse.in (label): Adjust define_label call.
5621 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
5623 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
5624 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
5625 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
5626 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
5627 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
5629 2003-07-01 Andreas Jaeger <aj@suse.de>
5631 * final.c: Convert prototypes to ISO C90.
5633 * flags.h: Likewise.
5634 * gcov-io.c: Likewise.
5635 * gcov-io.h: Likewise.
5637 See ChangeLog.9 for earlier changes.