1 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
3 * builtin-attrs.def: Fix comment formatting.
4 * c-pretty-print.c: Likewise.
5 * diagnostic.h: Likewise.
6 * langhooks.h: Likewise.
8 * simplify-rtx.c: Likewise.
11 2003-08-22 Bernardo Innocenti <bernie@develer.com>
13 * config/m68k/m68k-protos.h: Convert to ISO C90.
14 * config/m68k/m68k.c: Likewise.
16 2003-08-21 Bernardo Innocenti <bernie@develer.com>
17 Paul Dale <pauli@snapgear.com>
18 Peter Barada <peter@baradas.org>
20 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
23 2003-08-21 Zack Weinberg <zack@codesourcery.com>
25 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
26 * config.gcc (*-*-openbsd): Don't set tm_file.
27 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
28 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
29 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
30 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
31 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
32 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
33 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
34 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
35 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
36 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
37 xscale-*-coff): Use explicit and complete lists of target headers
38 to include. Move definitions to tm_defines where appropriate.
39 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
40 not-yet-contributed configuration.
42 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
43 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
44 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
45 * config/i386/nto.h, config/iq2000/iq2000.h,
46 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
47 * config/m68k/linux.h, config/m68k/m68k-aout.h
48 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
49 * config/m68k/netbsd.h, config/m68k/openbsd.h
50 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
51 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
52 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
53 Remove includes of other target config headers, and
54 definitions of macros moved to tm_defines lists. Add #undefs
55 where now necessary to prevent redefinition warnings.
57 * config/h8300/coff.h: New file split out of...
58 * config/h8300/elf.h: ...here.
59 * config/m68k/hp320base.h: New file split out of...
60 * config/m68k/hp320.h: ...here.
61 * config/rs6000/lynxbase.h: New file split out of...
62 * config/rs6000/lynx.h: ...here.
64 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
65 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
67 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
68 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
69 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
70 Remove unnecessary #ifndef.
71 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
72 [under IN_LIBGCC2] with config/.
74 2003-08-21 Per Bothner <bothner@pbothner.com>
76 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
78 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
79 by return_at_eof check. Always call _cpp_pop_buffer at end.
81 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
84 * config/h8300/h8300.md (two anonymous patterns): Remove.
86 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
88 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
89 * config/mips/mips.c (function_arg_pass_by_reference): Never return
92 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
94 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
95 and similarly in (A | C) == D where C & ~D != 0.
97 2003-08-20 Geoffrey Keating <geoffk@apple.com>
100 * configure.in: When testing with_libs and with_headers, treat
101 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
102 * configure: Regenerate.
104 2003-08-20 Peter Barada <peter@baradas.org>
106 * longlong.h (umul_ppmm): Add ColdFire support.
108 2003-08-20 Peter Barada <peter@baradas.org>
109 Bernardo Innocenti <bernie@develer.com>
111 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
112 * config/m68k/m68k.h: Likewise.
113 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
114 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
115 * config/m68k/linux.h: Likewise.
116 * config/m68k/m68k.c: Likewise.
117 * config/m68k/m68k.md: Likewise.
118 * config/m68k/m68kelf.h: Likewise.
119 * config/m68k/netbsd-elf.h: Likewise.
120 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
122 2003-08-20 Bernardo Innocenti <bernie@develer.com>
124 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
125 * config/m68k/m68k.md: Likewise.
127 2003-08-20 Mark Mitchell <mark@codesourcery.com>
131 2003-08-19 Mark Mitchell <mark@codesourcery.com>
132 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
133 types with precisions other than those given by native machine
136 2003-08-20 Gunther Nikl <gni@gecko.de>
138 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
139 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
140 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
141 * config/m68k/m68k.md (anonymous define_insn): Likewise
142 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
143 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
144 code selected by NO_ASM_FMOVECR
146 2003-08-20 Gunther Nikl <gni@gecko.de>
148 * config/m68k/m68k.c (output_move_const_into_data_reg,
149 output_move_himode): unify MOTOROLA/MIT handling of moveq
150 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
153 2003-08-20 Gunther Nikl <gni@gecko.de>
155 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
157 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
158 HOST_WIDE_INT_PRINT_DEC with %wd
160 2003-08-20 Loren James Rittle <ljrittle@acm.org>
162 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
165 2003-08-20 Roger Sayle <roger@eyesopen.com>
168 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
169 operands before calling tree_int_cst_lt when performing associative
172 2003-08-20 Jason Merrill <jason@redhat.com>
174 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
175 (EXPR_CHECK): Don't check for 'r' or 's' if we're
176 checking IS_EXPR_CODE_CLASS.
177 * calls.c (calls_function_1): Likewise.
178 * fold-const.c (fold): Likewise.
179 * tree.c (iterative_hash_expr): Likewise.
180 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
182 2003-08-20 Gunther Nikl <gni@gecko.de>
184 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
185 depending on MOTOROLA_BSR
186 * config/m68k/m68k.md (anonymous define_insn): Likewise
188 2003-08-20 Jason Merrill <jason@redhat.com>
190 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
191 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
192 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
193 * dojump.c (do_jump): Likewise.
194 * fold-const.c (operand_equal_p, fold): Likewise.
195 (tree_expr_nonnegative_p): Likewise.
197 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
198 TYPE_USER_ALIGN for FIELD_DECLs.
200 * attribs.c (decl_attributes): Rebuild the function pointer type after
201 changing the target type.
202 * tree.c (get_qualified_type): Also check that the attributes match.
204 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
206 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
207 * objc/config-lang.in (stagestuff): ... to here.
209 2003-08-19 Mark Mitchell <mark@codesourcery.com>
212 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
213 NOP_EXPR) when necessary.
214 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
215 types with precisions other than those given by native machine
218 2003-08-19 Geoffrey Keating <geoffk@apple.com>
220 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
221 because some macro is defined.
223 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
225 * config/i386/darwin.h (ASM_SPEC): New.
226 (SUBTARGET_EXTRA_SPECS): New.
227 * config/rs6000/darwin.h (ASM_SPEC): New.
228 (SUBTARGET_EXTRA_SPECS): New.
229 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
230 a cross-compiler between two different processors on Darwin.
231 * configure: Regenerate.
233 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
235 * builtins.c: Fix comment typos.
236 * c-common.c: Likewise.
237 * c-decl.c: Likewise.
238 * c-pretty-print.c: Likewise.
239 * cfgbuild.c: Likewise.
240 * cfglayout.c: Likewise.
241 * cfgloopanal.c: Likewise.
242 * cgraphunit.c: Likewise.
243 * cppfiles.c: Likewise.
244 * dwarfout.c: Likewise.
246 * fold-const.c: Likewise.
248 * ggc-page.c: Likewise.
249 * haifa-sched.c: Likewise.
250 * pretty-print.c: Likewise.
253 * value-prof.c: Likewise.
255 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
257 * c-decl.c: Follow spelling conventions.
258 * cppfiles.c: Likewise.
260 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
262 * c-common.c: Fix comment formatting.
263 * c-common.h: Likewise.
264 * c-decl.c: Likewise.
265 * cppinit.c: Likewise.
266 * cpplib.h: Likewise.
267 * emit-rtl.c: Likewise.
269 * line-map.h: Likewise.
272 * simplify-rtx.c: Likewise.
274 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
276 * unwind-c.c: Add libgcc-style exception.
277 * unwind-dw2.c: Likewise.
278 * unwind-pe.h: Likewise.
279 * unwind-sjlj.c: Likewise.
280 * unwind.inc: Likewise.
282 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
284 PR c/5582 PR c++/10538
285 * langhooks-def.h (lhd_decl_uninit): Declare.
286 (LANG_HOOKS_DECL_UNINIT): New macro.
287 (LANG_HOOKS_INITIALIZER): Adjust.
288 * langhooks.h (struct lang_hooks): Add new field
290 * langhooks.c (lhd_decl_uninit): Define.
291 * c-common.c (c_decl_uninit_1): New function.
292 (c_decl_uninit): New function.
293 (warn_init_self): Define.
294 * c-common.h (c_decl_uninit): Declare.
295 (warn_init_self): Declare.
296 * c.opt: Introduce -Winit-self.
297 * c-opts.c (c_common_handle_options): Set warn_init_self.
298 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
299 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
300 * function.c (uninitialized_vars_warning): Call the language hook.
301 * doc/invoke.texi: Document -Winit-self.
303 2003-08-19 Chris Demetriou <cgd@broadcom.com>
305 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
306 to use better predicates and constraints. Define new
307 instruction to handle "trap_if" with DI-mode arguments.
308 (conditional_trap): FAIL if trap code is not 0.
310 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
312 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
313 strstr with $pb to a strcompare with "<pic base>"
314 (ix86_output_addr_diff_elt): Output the real pic base.
316 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
318 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
319 (LANG_HOOKS_INITIALIZER): Correct.
320 * c-lang.c: Likewise.
322 2003-08-19 Jan Hubicka <jh@suse.cz>
324 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
325 (cgraph_varpool_mark_needed_node): Likewise.
326 * cgraph.h (notice_global_symbol): Declare
327 * varasm.c (notice_global_symbol): Break out from ...
328 (assemble_start_function): ... here; update for variables.
329 (assemble_variable): Use notice_global_symbol.
331 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
333 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
334 expect SFmode and DFmode arguments to be passed in FPRs,
335 regardless of the underlying type.
337 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
340 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
341 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
343 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
346 * c-typeck.c (set_init_index): Check for negative index.
348 2003-08-18 Bob Wilson <bob.wilson@acm.org>
350 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
352 * config/xtensa/crtn.asm (_init, _fini): Likewise.
353 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
354 __umodsi3, __modsi3): Likewise.
355 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
358 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
360 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
362 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
364 * config/mips/mips.md: Quote C code in braces. Remove use of
365 fake const0_rtx operands. Remove double backslashes. Use \;.
366 Remove workarounds for bogus warnings.
368 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
370 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
371 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
372 rather than TARGET_MIPS4300.
373 (mulsf3_internal, mulsf3_r4300): Likewise.
375 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
377 * config/mips/mips.md: Renumber unspecs. Clean up comments.
379 2003-08-17 Roger Sayle <roger@eyesopen.com>
381 * simplify-rtx.c (associative_constant_p): New function to test
382 whether an RTX expression is an immediate constant.
383 (simplify_associative_operation): New function to perform some
384 reassociation optimizations of associative binary expressions.
385 (simplify_binary_operation): Use simplify_associative_operation
386 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
387 Floating point expressions are only reassociated when unsafe
388 math optimizations are permitted.
390 2003-08-17 Andreas Jaeger <aj@suse.de>
392 * config/alpha/alpha.md: Remove usage of PARAMS.
394 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
395 * config/i386/i386-interix.h: Likewise.
396 * config/i386/winnt.c: Likewise.
397 * config/i386/cygming.h: Likewise.
398 * config/i386/cygwin2.c: Likewise.
399 * config/darwin.c: Likewise.
400 * config/darwin-c.c: Likewise.
401 * config/darwin-protos.h: Likewise.
402 * config/darwin.h: Likewise.
403 * config/s390/s390-protos.h: Likewise.
404 * config/s390/s390.c: Likewise.
405 * config/ia64/ia64.c: Likewse
406 * config/ia64/ia64-protos.h: Likewise.
407 * config/ia64/ia64-c.c: Likewise.
409 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
411 * config/sparc/sparc.c: Convert to ISO C.
413 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
414 * config/sparc/sparc.c: Likewise.
416 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
419 * stmt.c (expand_expr_stmt_value): Don't warn about any void
422 2003-08-16 Jan Hubicka <jh@suse.cz>
424 * i386.c (ix86_fntype_regparm): Rename from ...
425 (ix86_function_regparm): ... this one; add fastcall and local
427 (ix86_function_ok_for_sibcall): Update.
428 (ix86_return_pops_args): Likewise.
429 (init_cumulative_args): Likewise.
430 (x86_can_output_mi_thunk): Likewise.
431 (function_arg): Fix formating.
432 (x86_this_parameter): Fix fastcall.
433 (x86_output_mi_thunk): Likewise.
435 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
436 body as reachable; mark nested functions as needed too.
437 (dump_cgraph): Do not output global.calls.
438 * cgraph.h (cgraph_global_info): Kill.
439 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
440 (record_call_1): Speedup.
441 (cgraph_analyze_function): Break out from ...; compute inlining
443 (cgraph_finalize_compilation_unit): ... here.
444 (cgraph_mark_inline): Kill computation of calls.
445 (cgraph_decide_inlining): Do not compute most of initial values.
447 2003-08-14 Roger Sayle <roger@eyesopen.com>
449 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
450 to negate if either operand is easy to negate, if we don't care
451 about sign-dependent rounding.
452 (negate_expr): Make the logic to negate a REAL_CST explicit.
453 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
454 that's easy to negate, if we don't honor sign-dependent rounding.
455 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
456 negate, and the symmetric A * -B as -A * B if A is easy to negate.
457 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
458 -C/D if B and C are cheap to negate. Add an explicit rule to
459 optimize X/-1.0 as -X when we don't care about signaling NaNs.
461 2003-08-14 Zack Weinberg <zack@codesourcery.com>
463 * Makefile.in (tm_file): Rename tm_include_list.
464 (tm_p_file): Rename tm_p_include_list.
465 (build_xm_file): Rename build_xm_include_list.
466 (host_xm_file): Rename host_xm_include_list.
467 (xm_file): Rename xm_include_list.
468 (xm_file_list): Add to be substituted.
469 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
471 (bt-load.o): Add missing dependency on $(TM_H).
472 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
473 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
474 build_xm_file, generate both *_file_list and *_include_list
475 values from it. (xm_file_list was formerly not being generated.)
476 In *_include_list, prefix the names of all headers found in
477 $(srcdir)/config with config/. In each loop, consider only
478 the special case files that can actually appear in that list.
479 AC_SUBST all *_file_list and all *_include_list variables; do
480 not AC_SUBST the plain *_file variables.
481 * configure: Regenerate.
483 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
485 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
487 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
489 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
491 (attr_length_call): Include it here. Improve length estimate for
493 (output_call): Use targetm.binds_local_p.
495 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
497 * builtins.c (CASE_MATHFN): New helper macro.
498 (mathfn_built_in): Simplify and sort.
500 * protoize.c (substr): Delete, callers changed to `strstr'.
502 2003-08-13 Zack Weinberg <zack@codesourcery.com>
504 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
505 * config/iq2000/xm-iq2000.h: Delete file.
507 2003-08-13 Geoffrey Keating <geoffk@apple.com>
509 * gengtype.c (walk_type): Process a subobject before processing
510 the pointer that points to the subobject.
512 2003-08-13 Per Bothner <pbothner@apple.com>
514 * regclass.c (init_reg_modes): Make non-static.
515 Rename to init_reg_modes_once per new naming convention.
516 (init_regs): Don't call init_reg_modes here.
517 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
518 * rtl.h (init_reg_modes_once): New declaration.
519 * toplev.c (backend_init): Call init_regs after init_emit_once.
521 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
523 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
524 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
526 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
528 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
529 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
531 2003-08-13 Dale Johannesen <dalej@apple.com>
533 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
534 handling of decrement-and-branch farther than 32 bits.
536 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
538 * configure.in (make_compare_target): Move test to ...
539 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
540 * configure: Regenerate.
542 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
544 * config/mips/iris6.h: Convert to C90 prototypes.
545 * config/mips/irix6-libc-compat.c: Likewise.
546 * config/mips/mips-protos.h: Likewise.
547 * config/mips/mips.c: Likewise.
549 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
551 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
552 for selected machines. Comment heavily.
553 fixinc/fixincl.x: Rebuild.
554 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
556 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
558 * config/mips/mips.h: Tweak various comments.
559 * config/mips/mips.c: Likewise.
561 2003-08-11 James E Wilson <wilson@tuliptree.org>
563 PR optimization/11319
565 * alias.c (find_base_value, case REG): Return 0 not src if no base
568 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
570 * gcse.c (gmalloc): Fix last change.
572 2003-08-11 Roger Sayle <roger@eyesopen.com>
574 * simplify-rtx.c (simplify_binary_operation): Replace calls to
575 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
576 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
577 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
579 2003-08-11 Roger Sayle <roger@eyesopen.com>
581 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
582 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
583 typecode for an ABS_EXPR.
585 * doc/c-tree.texi: Document ABS_EXPR.
587 2003-08-11 Roger Sayle <roger@eyesopen.com>
589 * fold-const.c (fold): Optimize any associative floating point
590 operator with -funsafe-math-optimizations, not just MULT_EXPR.
592 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
594 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
595 information in SHmedia case too.
596 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
598 (__set_fpscr): Use an access via GOT for PIC case.
600 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
602 * configure.in (intermodule): Make switch test more portable.
603 * configure: Regenerate.
605 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
607 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
610 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
612 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
613 (grealloc): Size argument is a size_t.
614 (gcalloc): New function. Use throughout in lieu of
617 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
619 * config/ia64/ia64.c (ia64_reorg): Likewise.
620 * conflict.c (conflict_graph_new): Likewise.
621 * fixinc/fixincl.c (run_compiles): Likewise.
622 * genattrtab.c (optimize_attrs): Likewise.
623 * genrecog.c (new_decision): Likewise.
624 * haifa-sched.c (schedule_block): Likewise.
625 * hashtable.c (ht_create): Likewise.
627 2003-08-11 Bob Wilson <bob.wilson@acm.org>
629 * config/xtensa/lib2funcs.S: Fix whitespace.
630 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
631 syntax where appropriate. Remove unnecessary backslash escapes.
632 Reformat comments and fix some code formatting.
633 (extendqisi2): Rearrange conditional.
634 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
635 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
638 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
640 * config/mips/mips.c: Various formatting fixes.
641 (override_options): Resync -mtune handling with gas.
642 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
643 * config/mips/mips.h: More formatting fixes.
644 (mips_abi): Move declaration.
645 * config/mips/mips.md (exception_receiver): Add mode to
648 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
650 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
652 (bdesc_1arg): Remove evsplati and evsplatfi.
654 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
656 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
659 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
661 * builtins.c (expand_builtin_strcat): Optimize constant strings.
663 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
665 * pretty-print.c (pp_base_indent): Rename from pp_indent.
666 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
667 (struct c_pretty_print_info): Add more fields.
668 (pp_c_left_paren): Move to c-pretty-print.c.
669 (pp_c_right_paren): Likewise.
670 (pp_c_left_brace): Likewise.
671 (pp_c_right_brace): Likewise.
672 (pp_c_left_bracket): Likewise.
673 (pp_c_right_bracket): Likewise.
674 (pp_c_declarator): Declare.
675 (pp_c_direct_declarator): Likewise.
676 (pp_c_specifier_qualifier_list): Likewise.
677 (pp_c_type_id): Likewise.
678 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
679 (pp_c_type_qualifier_list): New.
680 (pp_c_pointer): Likewise.
681 (pp_c_parameter_type_list): Likewise.
682 (pp_c_function_definition): Likewise.
683 (pp_c_id_expression): Likewise.
684 (pp_c_simple_type_specifier): Tidy.
685 (pp_c_unary_expression): Likewise.
686 (pp_c_expression): Likewise.
687 (pp_c_pretty_printer_init): Likewise.
688 (pp_c_specifier_qualifier_list): Rework..
689 (pp_c_abstract_declarator): Likewise.
690 (pp_c_postfix_expression): Likewise.
691 (pp_c_primary_expression): Likewise.
692 (pp_c_cast_expression): Likewise.
693 (pp_c_direct_abstract_declarator): Likewise.
694 (pp_c_storage_class_specifier): Likewise.
695 (pp_c_function_specifier): Likewise.
696 (pp_c_declaration_specifiers): Likewise.
697 (pp_c_direct_declarator): Likewise.
698 (pp_c_declarator): Likewise.
699 (pp_c_declaration): Likewise.
700 (pp_c_statement): Likewise.
701 (pp_c_integer_constant): Rename from pp_c_integer_literal.
702 (pp_c_character_constant): Rename from pp_c_character_literal.
703 (pp_c_bool_constant): Rename from pp_c_bool_literal.
704 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
705 (pp_c_floating_constant): Rename from pp_c_real_literal.
706 (pp_c_constant): Rename from pp_c_literal.
707 * c-lang.c: Include diagnostic.h and c-pretty-print.h
708 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
709 (c_initialize_diagnostics): New.
710 * Makefile.in (c-lang.o): Update dependency.
712 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
714 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
716 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
718 * config/mips/mips.c (mips_no_mips16_string): Remove.
719 (override_options): Don't handle -mips16 as part of -mipsN.
720 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
721 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
722 (TARGET_OPTIONS): Remove -mno-mips16.
724 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
726 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
727 (coprocessor2_operand): Likewise.
728 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
729 (lookup_name): Remove declaration.
730 (abort_with_insn): Remove. Replace all uses with fatal_insn.
731 (mips16, mips_abicalls): Remove.
732 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
733 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
734 (coprocessor_operand, coprocessor2_operand): Remove.
735 (override_options): Don't set mips16 or mips_abicalls.
736 (print_operand): Don't expect SIGN_EXTEND operands.
737 (mips_secondary_reload_class): Likewise.
738 (mips_output_conditional_branch): Remove disabled long-branch code.
739 * config/mips/mips.h (call_used_regs): Remove declaration.
740 (may_call_alloca): Likewise.
741 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
742 (mips_abicalls, mips16): Remove declarations.
743 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
744 (CC1_SPEC): Remove outdated comment.
745 (MIPS_VERSION, MACHINE_TYPE): Remove.
746 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
747 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
748 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
749 (PUSH_ROUNDING): Likewise.
750 (ASSEMBLER_SCRATCH_REGNUM): Remove.
751 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
752 and mips16 with TARGET_MIPS16.
754 2003-08-09 Per Bothner <pbothner@apple.com>
756 * cppinit.c (cpp_read_main_file): Split out source-independent
757 initialization to separate function ...
758 (cpp_post_options): New function.
759 * cppfiles.c (cpp_stack_file): Rename public name to ...
760 (_cpp_stack_file): New internal function name.
761 * cpplib.h: Update accordingly.
762 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
763 (cpp_read_main_file): Don't initialize line here.
764 * c-opts.c (c_common_post_options): Call cpp_post_options.
765 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
766 * fix-header.c (read_scan_file): Call cpp_post_options.
768 2003-08-09 Per Bothner <per@bothner.com>
770 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
772 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
774 * pa.c (pa_asm_output_mi_thunk): Fix typo.
776 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
778 PR preprocessor/11839
779 * cppfiles.c (open_file): Handle ENOTDIR.
781 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
784 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
786 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
788 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
789 source/destination is not a register operand.
791 2003-08-08 Richard Henderson <rth@redhat.com>
794 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
795 RETURN_ADDRESS_POINTER_REGNUM.
796 (ia64_expand_prologue): Don't frob it.
797 (ia64_output_function_epilogue): Likewise.
798 (ia64_return_addr_rtx): New.
799 (ia64_split_return_addr_rtx): New.
800 * config/ia64/ia64-protos.h: Update.
801 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
802 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
803 (GENERAL_REGNO_P): Don't check it.
804 (AR_*_REGNUM): Renumber.
805 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
806 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
807 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
808 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
809 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
810 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
811 (movdi_ret_addr): New.
813 2003-08-08 Geoffrey Keating <geoffk@apple.com>
815 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
817 2003-08-08 Roger Sayle <roger@eyesopen.com>
819 * tree.h (get_identifier) Define a macro form of get_identifier
820 that calls get_identifier_with_length when the string is constant.
821 (get_identifier_with_length): Change type of second argument to
823 * stringpool.c (get_identifier): Undefine the macro before giving
824 the function definition.
825 (get_identifier_with_length): Change type of second argument to
826 size_t in function definition.
827 * hashtable.c (calc_hash): Change type of second argument to size_t.
828 (ht_lookup): Change type of third argument to size_t. Reorganize
829 to speed-up the cases where the hash table slot is empty, or the
830 first probe matches (i.e. there isn't a collision).
831 * hashtable.h (ht_lookup): Adjust function prototype.
833 2003-08-08 Bernardo Innocenti <bernie@develer.com>
837 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
839 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
841 * common.opt: Add debug switches.
842 * flags.h (use_gnu_debug_info_extensions): Boolify.
843 * opts.c (write_symbols, debug_info_level,
844 use_gnu_debug_info_extensions): Move from toplev.c.
845 (set_debug_level): New.
846 (common_handle_options): Handle debug switches.
847 (print_help): Display target options directly.
848 * toplev.c (debug_hooks): Don't initialize.
849 (write_symbols, debug_info_level,
850 use_gnu_debug_info_extensions): Move to opts.c.
851 (debug_args, display_help, decode_g_option): Remove.
852 (process_options): Set no debug if level zero here,
853 and no-debug-hooks. Error here if impossible debug format selected.
854 * toplev.h (display_help, decode_g_option): Remove.
856 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
858 * tree.c (get_file_function_name_long): Fix size of alloca() area.
860 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
862 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
863 and gcc_cv_prog_cmp_skip.
864 * configure: Regenerate.
866 2003-08-08 Stan Cox <scox@redhat.com>
868 * config/iq2000: New port.
869 * config.gcc (iq2000-*-elf): Added.
870 * doc/install.texi (Specific): Add iq2000 description.
872 2003-08-08 Andreas Schwab <schwab@suse.de>
874 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
875 and insert missing empty argument.
876 * configure: Regenerate.
878 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
880 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
881 (attr_length_millicode_call): Likewise.
882 (attr_length_call): Likewise. Revise some maximum insn lengths.
883 (attr_length_indirect_call): Likewise.
884 (output_call): Fix thinko that added extra nop.
885 * pa.h (IN_NAMED_SECTION_P): Define.
888 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
889 __STDC_EXT__ when using C++ dialect.
891 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
893 * sh.c (calc_live_regs): If the return address pointer is live,
895 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
896 for saves / restores.
897 (sh_expand_epilogue): If sh_media_register_for_return returns a
898 register number, flag the instructions that restores PR_MEDIA_REG
900 Remove dead update of offset.
901 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
902 we can use the result of get_hard_reg_initial_val.
903 * sh.md (UNSPEC_RA): New constant.
904 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
905 (load_ra). Handle UNSPEC_RA.
906 (sibcall_media): Use PR_MEDIA_REG.
908 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
909 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
910 needs saving on SHmedia.
912 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
914 * config/s390/s390.md: Replace all occurrences of \\t with \t.
916 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
918 * local-alloc.c (combine_regs): Fix comment typo.
920 2003-08-06 Zack Weinberg <zack@codesourcery.com>
922 * c-decl.c (builtin_decls): Replace with first_builtin_decl
923 and last_builtin_decl.
924 (c_init_decl_processing): Initialize both.
925 (c_reset_state): Iterate from first_builtin_decl to
926 last_builtin_decl inclusive to reintroduce builtins.
928 2003-08-06 David Mosberger <davidm@hpl.hp.com>
930 * doc/extend.texi (Function Attributes): Document the IA-64 version
931 of the "model" attribute.
933 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
934 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
935 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
937 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
938 (ia64_encode_section_info): Likewise.
939 (ia64_attribute_table): Add "model" attribute.
940 (TARGET_ENCODE_SECTION_INFO): Define.
941 (small_addr_symbolic_operand): New function.
942 (got_symbolic_operand): Return 0 for a symbolref to an object
943 in the small address area.
944 (enum ia64_addr_area): New type.
945 (small_ident1): New variable.
946 (small_ident2): Likewise.
947 (init_idents): New function.
948 (ia64_get_addr_area): Likewise.
949 (ia64_encode_addr_area): Likewise.
950 (ia64_encode_section_info): Likewise.
951 (ia64_expand_load_address): For symbolic references to objects in
952 the small-address-area, load the address via gen_rtx_SET() (which,
953 eventually, will expand into "addl").
955 2003-08-06 Per Bothner <pbothner@apple.com>
957 * line-map.h (fileline): New typedef.
958 (struct line_map, linemap_add, linemap_lookup): Use it.
959 * input.h (struct location_s): Comment notes that long-term we want
960 to replace it by fileline.
962 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
964 Fix SHcompact exception handling:
965 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
966 by the prologue, return a MEM with return_address_pointer_rtx
968 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
969 (RETURN_ADDR_OFFSET): Don't define.
970 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
971 registers that are visible in compact mode. Show that SHmedia
972 registers still exist in compact mode, even if there are not
974 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
975 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
976 and DW_EH_PE_pcrel for pic data.
977 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
978 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
979 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
980 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
981 * sh.md (movsi_media-1): New splitter.
983 2003-08-06 Graeme Peterson <gp@qnx.com>
985 * config/i386/nto.h: New.
986 * config/i386/t-nto: New.
987 * config.gcc (i[34567]86-*-nto-qnx*): New.
989 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
991 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
993 2003-08-06 Alan Modra <amodra@bigpond.net.au>
995 * calls.c (load_register_parameters): Arrange for call_fusage to
996 report the whole register as used when shifting to the msb.
998 2003-08-05 Roger Sayle <roger@eyesopen.com>
1000 * builtins.c (expand_builtin): When not optimizing, call the library
1001 function for all builtins that have library functions (except alloca).
1003 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
1005 * c.opt: Introduce -fworking-directory.
1006 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
1007 * c-common.h (flag_working_directory): Declare.
1008 * c-common.c (flag_working_directory): Define.
1009 * c-opts.c (c_common_handle_options): Set it.
1010 (sanitize_cpp_opts): Set...
1011 * cpplib.h (struct cpp_options): ... working_directory option.
1012 (struct cpp_callbacks): Add dir_change.
1013 * cppinit.c (read_original_filename): Call...
1014 (read_original_directory): New. Look for # 1 "directory//"
1016 (cpp_read_main_file): Call dir_change callback if working_directory
1018 * gcc.c (cpp_unique_options): Pass -g*.
1019 * c-lex.c (cb_dir_change): New.
1020 (init_c_lex): Set dir_change callback.
1021 * toplev.c (src_pwd): New static variable.
1022 (set_src_pwd, get_src_pwd): New functions.
1023 * toplev.h (get_src_pwd, set_src_pwd): Declare.
1024 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
1025 * dwarf2out.c (gen_compile_unit_die): Likewise.
1026 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
1028 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1030 * pretty-print.h (pp_set_line_maximum_length): Make macro.
1031 (pp_set_prefix): Likewise.
1032 (pp_destroy_prefix): Likewise.
1033 (pp_remaining_character_count_for_line): Likewise.
1034 (pp_clear_output_area): Likewise.
1035 (pp_formatted_text): Likewise.
1036 (pp_last_position_in_text): Likewise.
1037 (pp_emit_prefix): Likewise.
1038 (pp_append_text): Likewise.
1039 (pp_flush): Likewise.
1040 (pp_format_text): Likewise.
1041 (pp_format_verbatim): Likewise.
1042 (pp_tree_identifier): Tidy.
1043 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
1044 (pp_base_format_verbatim): Rename from pp_format_verbatim.
1045 (pp_base_flush): Rename from pp_flush.
1046 (pp_base_set_line_maximum_length): Rename from
1047 pp_set_line_maximum_length.
1048 (pp_base_clear_output_area): Rename from pp_clear_output_area.
1049 (pp_base_set_prefix): Rename from pp_set_prefix.
1050 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
1051 (pp_base_emit_prefix): Rename from pp_emit_prefix.
1052 (pp_base_append_text): Rename from pp_append_text.
1053 (pp_base_formatted_text): Rename from pp_formatted_text.
1054 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
1055 (pp_base_remaining_character_count_for_line): Rename from
1056 pp_remaining_character_count_for_line.
1057 * diagnostic.h (diagnostic_format_decoder): Tidy.
1058 (diagnostic_flush_buffer): Likewise.
1059 * c-pretty-print.h: (pp_c_string_literal): Declare.
1060 (pp_c_real_literal): Likewise.
1061 (pp_c_integer_literal): Likewise.
1062 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
1064 (pp_c_character_literal): Tidy.
1065 (pp_c_string_literal): Make public.
1066 (pp_c_bool_literal): Likewise.
1067 (pp_c_integer_literal): Likewise.
1068 (pp_c_real_literal): Likewise.
1070 * Makefile.in (C_PRETTY_PRINT_H): New variable.
1071 (c-pretty-print.o): Update dependence.
1073 2003-08-05 Chris Demetriou <cgd@broadcom.com>
1075 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
1076 ".set nomacro" state.
1077 (fix_truncsfsi2_macro): Likewise.
1079 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
1081 * tree.h (DID_INLINE_FUNC): Remove macro.
1082 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
1083 add tree check for FUNCTION_DECL.
1084 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
1085 (struct tree_decl): Rename inlined_function_flag to
1086 declared_inline_flag.
1087 * c-common.h (c_lang_decl): Remove.
1088 (DECL_ESTIMATED_INSNS): Remove.
1089 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
1090 (DECL_DECLARED_INLINE_P): Remove.
1091 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
1092 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
1093 (finish_function): Make uninlinable a bool. Fixup call to
1094 tree_inlinable_function_p() and fix some code style issues.
1095 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
1096 * cgraph.c (dump_cgraph): Likewise.
1097 * cgraphunit.c (cgraph_decide_inlining): Likewise
1098 (cgraph_finalize_compilation_unit): Likewise.
1099 Also update call to tree_inlinable_function_p().
1100 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
1101 look at DECL_DECLARED_INLINE and reverse logic.
1102 * print-tree.c (print_node): Likewise.
1103 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
1104 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
1106 * tree-inline.c (inlinable_function_p): Split up in this function to
1107 check for basic inlining inhibiting conditions, and new
1108 limits_allow_inlining() function. Warn if inlining is impossible
1109 because the inline candidate calls alloca or uses sjlj exceptions.
1110 (limits_allow_inlining): this new function to check if the inlining
1111 limits are satisfied. Throttle from currfn_max_inline_insns, not from
1112 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
1113 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
1115 (tree_inlinable_function_p): Make a bool. Update call to
1116 inlinable_function_p
1117 (expand_call_inline): Use limits_allow_inlining() when not in
1118 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
1119 instead see if the function was declared `inline'.
1121 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
1123 * gcse.c (try_replace_reg): Fix updating of note.
1125 2003-08-04 Roger Sayle <roger@eyesopen.com>
1128 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
1129 logic in negate_expr, i.e. we don't invert (A-B) for floating
1130 point types unless flag_unsafe_math_optimizations.
1132 2003-08-04 Roger Sayle <roger@eyesopen.com>
1134 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
1135 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
1136 for floating point expressions with -ffast-math.
1137 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
1138 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
1140 2003-08-04 Roger Sayle <roger@eyesopen.com>
1142 * c-common.c (flag_noniso_default_format_attributes): Delete.
1143 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
1144 (c_attrs_initialized): Delete.
1145 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
1146 always call c_init_attributes.
1147 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
1148 set c_attrs_initialized when done.
1149 (c_common_insert_default_attributes): Delete.
1150 * c-common.h (flag_noniso_default_format_attributes): Delete.
1151 (c_coomon_insert_default_attributes): Delete prototype.
1152 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
1153 flag_noniso_default_format_attributes.
1155 * c-decl.c (c_insert_default_attributes): Delete.
1156 * c-tree.h (c_insert_default_attributes): Delete prototype.
1158 * attribs.c (decl_attributes): Don't call insert_default_attributes
1159 langhook. Update function description comment.
1160 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
1161 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
1162 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
1163 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
1165 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
1168 2003-08-04 Richard Sandiford <rsandif@redhat.com>
1170 * config/mips/mips.c (override_options): Disable -G on targets that
1171 have no .section support.
1172 (mips_select_section): Use default_select_section for such targets.
1174 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
1176 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
1177 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
1178 * fixinc/fixincl.x: Rebuild.
1179 * fixinc/tests/base/regexp.h: New test.
1181 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
1183 * c-ppoutput.c (cb_line_change): Don't skip line changing while
1184 parsing macro arguments in the top-level context.
1186 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
1188 * config.in: Remove HAVE_LSTAT.
1189 * configure, configure.in: Don't test for lstat.
1191 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1193 * opts.c (decode_options): Do language-specific initialization for
1194 the global diagnostic context.
1195 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
1196 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
1197 (LANG_HOOKS_INITIALIZER): Adjust.
1198 * langhooks.h (struct lang_hooks): Add new field
1199 initialize_diagnostics.
1200 * langhooks.c (lhd_initialize_diagnostics): Define.
1202 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1204 * pretty-print.h: Adjust macro definitions.
1205 * pretty-print.c (pp_newline): Rename to pp_base_newline.
1206 (pp_character): Rename to pp_base_character.
1207 (pp_string): Rename to pp_base_string.
1208 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
1209 (pp_newline): Likewise. Adjust.
1210 (pp_c_char): Adjust.
1212 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1214 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
1215 BUILT_IN_LLABS): Move to miscellaneous section.
1217 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1219 PR preprocessor/11534
1220 * cppexp.c (parse_defined): Warn only if -pedantic.
1222 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1224 * cppfiles.c (stack_file): Use file path.
1226 2003-08-02 Roger Sayle <roger@eyesopen.com>
1228 * builtin-types.def (BT_SSIZE): New primitive type.
1229 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
1230 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
1231 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
1232 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
1233 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
1234 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
1235 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
1236 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
1237 few functions that define default attributes using it.
1238 * c-common.c (c_common_insert_default_attributes): Do nothing.
1240 * doc/extend.texi: Document these "new" builtins.
1242 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
1244 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
1245 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
1246 when -mieee-fp set and -shared not set.
1247 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
1249 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1251 * cppfiles.c (struct _cpp_file): Rename once_only_next to
1252 next_file. Remove import and pragma_once, add once_only.
1253 (find_file): Add new file structures to the all_files list.
1254 (should_stack_file): Mark #import-ed files once-only, and
1255 don't stack them if the file has already been stacked.
1256 (_cp_mark_file_once_only): Simplify.
1257 * cpphash.h (struct cpp_reader): Rename once_only_files
1258 to all_files. Rename saw_pragma_once to seen_once_only.
1259 (_cpp_mark_file_once_only): Update prototype.
1260 * cpplib.c (do_pragma_once): Update.
1262 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1264 * cppfiles.c (ENOTDIR): Remove.
1265 (open_file_in_dir): Rename find_file_in_dir. Handle errors
1266 other than ENOENT here.
1267 (once_only_file_p): Rename should_stack_file.
1268 (find_file, open_file_failed, read_file_guts): Report errors
1269 with full path name.
1270 (read_file): Move pch handling to should_stack_file.
1271 (should_stack_file): Handle PCH and once-only issues, and
1273 (stack_file): Don't do file reads.
1275 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1277 * libgcov.c (gcov_exit): Cleanup and fix.
1278 * profile.c (compute_value_histograms): Don't try to read profiles
1279 that are not present.
1281 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1283 * builtins.def: Categorize.
1285 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
1287 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
1289 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
1291 * config.gcc: Enable posix threads by default on darwin.
1293 2003-08-01 Jakub Jelinek <jakub@redhat.com>
1295 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
1296 even if nehedges1 is 0.
1298 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
1300 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
1301 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
1302 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
1305 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
1306 * fixinc/fixincl.x: Regenerate.
1307 * fixinc/tests/base/math.h: Regenerate to match test_text change.
1309 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1311 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
1313 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1315 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
1316 for accesses to exc_ptr.
1318 2003-08-01 Geoffrey Keating <geoffk@apple.com>
1320 * doc/sourcebuild.texi (Front End Directory): Don't make references
1321 to libsubdir, it's not part of the interface to frontends.
1322 * doc/install.texi (Configuration): Help users read faster by saying
1323 that GCC's configure options are the standard autoconf ones.
1324 Mention --libdir. Update the default rules for finding the
1325 assembler. Don't use libsubdir since we haven't said what it means.
1326 (Specific): In the Solaris 7 notes, update the place to put the
1328 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
1329 * doc/cpp.texi (Search Path): Actually, the search path
1330 depends on libdir, which can relocate with cpp.
1331 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
1332 now a private interface between the Makefile and the driver.
1334 2003-08-01 Richard Henderson <rth@redhat.com>
1336 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
1338 * varasm.c (lookup_constant_def): New function.
1339 * rtl.h (lookup_constant_def): Declare it.
1340 * dwarf2out.c (loc_descriptor_from_tree): Use it.
1341 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
1343 2003-08-01 Zack Weinberg <zack@codesourcery.com>
1345 * c-decl.c (gettags, pushdecl_function_level): Delete.
1346 (last_function_parm_vars): Rename last_function_parm_others.
1347 (current_function_parm_vars): Rename current_function_parm_others.
1348 (struct c_scope): Rewrite comment explaining this data structure.
1349 Add names_last, blocks_last, parms_last fields. Rename
1350 incomplete_list to incomplete.
1351 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
1352 (poplevel): Ignore second argument. No need to nreverse
1353 anything. Restructure such that each list is processed
1354 exactly once. Use 'const location_t *locus' syntactic sugar
1355 variable where useful. Issue unused variable warnings
1356 ourselves, do not rely on function.c.
1357 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
1358 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
1359 (implicitly_declare): decl cannot be error_mark_node.
1360 (undeclared_variable): Manipulate scope structure directly.
1361 (c_make_fname_decl): Likewise.
1362 (getdecls, c_init_decl_processing): Fix comment.
1363 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
1364 for 'last' variable.
1365 (grokparms): No need to nreverse parms list.
1366 (store_parm_decls_newstyle): Set up the parms_last and
1367 names_last fields of the new scope too.
1368 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
1369 on parms to begin with; check this under ENABLE_CHECKING. Set
1371 (check_for_loop_decls): Refer directly to current_scope->tags.
1372 Use consistent quote style in diagnostics.
1373 (c_write_global_declarations): The names list is not backward.
1375 * c-common.h: Don't prototype gettags.
1376 * c-parse.in: Call poplevel with second argument 0 always.
1378 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1380 * builtins.def: Resort builtins.
1382 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1384 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
1385 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
1386 Prepend "__builtin_" onto NAME with string concatenation. Remove
1387 explicit "__builtin_" from each macro call.
1389 Reformat entire file.
1391 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1393 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1394 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
1396 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
1398 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
1399 CCL1, or CCL2 modes with floating point operations.
1401 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
1402 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
1403 "*subdf3_cconly"): New insns.
1404 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
1406 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
1408 * Makefile.in: Refine dependencies.
1409 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
1410 * c.opt: Update help for -Wimport.
1411 * cppfiles.c: Include hashtab.h. Update comments.
1412 (stack_file): Read the file before updating dependencies.
1413 (once_only_file_p): Be smarter about marking once-only files.
1414 (_cpp_mark_file_once_only): Correct the check for existence on
1416 (open_file_failed): Use name not path, which is NULL.
1417 * cpphash.h: Don't include hashtab.h.
1418 (struct _cpp_file): Remove.
1419 (struct cpp_reader): Update.
1420 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
1421 * cpplib.h (struct cpp_options): Remove warn_import.
1422 (cpp_simplify_path): Remove.
1424 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
1427 * doc/extend.texi (Statement Expressions): Document C++ semantics.
1429 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1431 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
1433 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1435 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
1437 * builtins.def: Likewise.
1439 2003-07-31 Jason Merrill <jason@redhat.com>
1441 * Makefile.in (bubblestrap): Don't require a previous full
1444 * expr.c (mostly_zeros_p): No longer static.
1445 * tree.h: Declare it.
1446 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
1447 unless we need to do substitutions.
1449 2003-07-31 Roger Sayle <roger@eyesopen.com>
1451 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
1452 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
1453 as pow(x,2.0) when the latter will be expanded back into x*x.
1454 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
1455 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
1456 pow can never set errno when used with an integer exponent.
1457 Always use expand_powi when exponent is -1, 0, 1 or 2.
1458 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
1459 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
1460 the pow forms of these expressions.
1462 2003-07-31 Geoffrey Keating <geoffk@apple.com>
1464 * Makefile.in (libexecdir): New.
1465 (libsubdir): Use gcc instead of gcc-lib.
1466 (libexecsubdir): New.
1467 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
1468 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
1470 (installdirs): Make libexecsubdir.
1471 (install-common): Put executables in libexecsubdir.
1472 (itoolsdir): Use libexecsubdir.
1473 (itoolsdatadir): New.
1474 (install-mkheaders): Separate data files and executables.
1475 (install-collect2): Put executables in libexecsubdir.
1476 (uninstall): Remove libexecsubdir.
1477 * mkheaders.in: Update for new arrangement of files.
1479 (libexecsubdir): New.
1480 (itoolsdir): Use libexecsubdir.
1481 (itoolsdatadir): New.
1482 * gcc.c (gcc_libexec_prefix): New.
1483 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
1484 (standard_exec_prefix_1): Use libexec.
1485 (standard_exec_prefix_2): New.
1486 (standard_libexec_prefix): New.
1487 (process_command): Update for new arrangement of files. Compute
1488 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
1490 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
1492 * inclhack.def (stdio_va_list): Avoid bogus replacement which
1493 triggers on Interix.
1494 * fixincl.x: Regenerate.
1496 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1498 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
1499 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
1501 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1503 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
1505 2003-07-31 Per Bothner <pbothner@apple.com>
1507 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
1508 (add_input_filename): New function.
1509 (handle_options): Call add_input_filename directly instead of
1511 * opts.h (in_fnames, num_in_fnames): Moved here.
1512 (add_input_filename): Declare.
1513 * c-decl.c: Need to #include opts.h.
1514 * Makefile.in (c-decl.o): Also depends on opts.h.
1515 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
1516 (c_common_handle_filename): Replaced by add_input_filename.
1517 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
1519 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
1520 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1521 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
1522 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1524 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1526 * combine.c (try_combine): Set JUMP_LABEL for newly created
1529 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1531 * fold-const.c (fold): Fold some comparisons of bit operations.
1533 Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
1535 * cgraph.c (create_edge): Fix typo.
1536 * i386.c (pic_symbolic_operand): Reorder tests.
1538 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
1540 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
1542 (Gcov Data Files): Update.
1544 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1546 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
1549 * gthr-posix.c: New file.
1550 * gthr-posix.h: Define _REENTRANT if missing.
1551 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
1553 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
1555 * config/alpha/t-osf-pthread: New file.
1557 * fixinc/inclhack.def (alpha_pthread): New fix.
1558 * fixinc/fixincl.x: Regenerate.
1559 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
1561 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
1563 Fixes PR bootstrap/9330.
1565 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1567 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
1570 * configure: Regenerate.
1572 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
1574 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
1577 2003-07-30 Roger Sayle <roger@eyesopen.com>
1579 * builtins.def: Alphabetize.
1581 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1583 * doc/c-tree.texi: Normalize spellings of "lowercase" and
1585 * doc/cpp.texi: Likewise.
1586 * doc/md.texi: Likewise.
1587 * doc/rtl.texi: Likewise.
1588 * doc/tm.texi: Likewise.
1590 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1592 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
1593 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
1596 2003-07-30 Chris Demetriou <cgd@broadcom.com>
1598 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
1599 macros before defining them.
1601 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
1603 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
1604 UNSPECV_BLOCKAGE): New constants.
1605 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
1606 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
1607 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
1608 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
1610 (all insns and expanders): Write output control string as brace block
1611 where appropriate. Remove \-escapes for doublequote characters.
1613 Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
1615 * gcse.c (insert_store): Fix typo in previous patch.
1617 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
1619 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
1621 2003-07-30 Andi Kleen <ak@muc.de>
1623 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
1625 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1627 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
1628 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
1629 GCOV_N_VALUE_COUNTERS): New.
1630 * profile.c (compute_value_histograms): New static function.
1631 (branch_prob): Read back the value histograms.
1632 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
1633 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
1634 * value-prof.c: Add comment on reading the profile.
1635 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
1636 * doc/invoke.texi (-fprofile-values): Document behavior with
1637 -fbranch-probabilities.
1639 2003-07-30 David Edelsohn <edelsohn@gnu.org>
1641 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
1643 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
1645 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
1648 Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
1650 * gcse.c (insert_store): Ignore fake edges.
1652 * c-common.c (flag_vtable_gc): Kill.
1653 * c-common.g (flag_vtable_gc): Kill.
1654 * c-opts (c_common_handle_option): Kill.
1655 * c.opt (fvtable-gc): Kill.
1656 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
1657 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1658 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1660 * invoke.texi (-ftable-gc): Kill documentation.
1662 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
1663 just because function body is missing.
1665 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
1667 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
1669 * unwind-sjlj.c: Fix typo in file description.
1671 2003-07-30 Alan Modra <amodra@bigpond.net.au>
1673 * calls.c (load_register_parameters): When shifting reg sized values
1674 to the msb, move the value to a reg first.
1676 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1678 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
1679 * line-map.h (linemap_add): Update comments.
1680 * line-map.c (linemap_add): Update comments, interpret zero-length
1681 filename as "<stdin>".
1683 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
1685 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
1687 2003-07-29 Zack Weinberg <zack@codesourcery.com>
1689 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
1690 New static variables.
1691 (struct c_scope): Add parms and warned_forward_parm_decls
1692 fields; remove parm_order.
1693 (storedecls, storetags): Delete.
1694 (poplevel): Also clear bindings on the parms chain.
1695 (pushdecl): Handle forward declarations of parameters, and
1696 chain PARM_DECLs on the parms list, not the names list.
1697 (lookup_name_current_level): Check for PARM_DECLs on the parms
1699 (push_parm_decl): Don't update parm_order.
1700 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
1701 warning, only once per parameter list, and set TREE_ASM_WRITTEN
1702 on the decls here. Then move the forward decls to the names list.
1703 (grokparms): Set last_function_parm_vars.
1704 (get_parm_info): Don't use gettags or getdecls. No need to
1705 extract non-parms from the parms list, or reorganize the parms
1706 list. Feed nonparms back in the TREE_TYPE of the list node
1707 returned. Issue only one error per parameter list for "void"
1708 appearing more than once in said parameter list. Collapse
1709 parmlist_tags_warning into this function to avoid double scan
1711 (start_function): Set current_function_parm_vars.
1712 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
1713 directly. Get non-parms from current_function_parm_vars; no
1714 need to extract them from the parms chain. Properly bind tags
1716 (store_parm_decls_oldstyle): No need to extract non-parameters
1717 from the parms chain, nor to store them back afterward. Move
1718 declaration to top of function, restructure code reordering
1720 (store_parm_decls): No need to save and restore warn_shadow.
1721 * c-parse.in: Don't call parmlist_tags_warning nor
1722 clear_parm_order. Call mark_forward_parm_decls when forward
1723 parm decls are encountered.
1724 * c-tree.h: Prototype mark_forward_parm_decls; not
1725 clear_parm_order or parmlist_tags_warning.
1727 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1729 * c-common.c (allow_pch): Remove.
1730 * c-common.h (allow_pch): Remove.
1731 (c_common_no_more_pch): Declare.
1732 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
1733 * c-pch.c: Include hosthooks.h.
1734 (c_common_valid_pch): Don't check allow_pch.
1735 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
1736 (c_common_no_more_pch): New.
1737 * ggc-common.c: Include hosthooks.h.
1738 (gt_pch_save): Call gt_pch_get_address.
1739 (gt_pch_restore): Call gt_pch_use_address.
1740 * hooks.c (hook_voidp_size_t_null): New.
1741 (hook_bool_voidp_size_t_false): New.
1742 * hooks.h (hook_voidp_size_t_null): New.
1743 (hook_bool_voidp_size_t_false): New.
1744 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
1745 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
1746 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
1747 HOST_HOOKS_GT_PCH_USE_ADDRESS.
1748 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
1750 * doc/hostconfig.texi (Host Common): Document
1751 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
1752 * Makefile.in (c-pch.o): Depend on hosthooks.h.
1753 (ggc-common.o): Likewise.
1755 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
1756 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
1757 (pch_address_space): New.
1758 (darwin_rs6000_gt_pch_get_address): New.
1759 (darwin_rs6000_gt_pch_use_address): New.
1761 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
1763 PR preprocessor/11569
1764 PR preprocessor/11649
1765 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
1766 * cppfiles.c: Completely rewritten.
1767 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
1768 struct cpp_path is now struct cpp_dir.
1769 (remove_duplicates): Don't simplify path names.
1770 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
1772 * cpphash.h: Include hashtab.h.
1773 (_cpp_file): Declare.
1774 (struct cpp_buffer): struct include_file is now struct _cpp_file,
1775 and struct cpp_path is now struct cpp_dir. Rename members.
1776 (struct cpp_reader): Similarly. New members once_only_files,
1777 file_hash, file_hash_entries, quote_ignores_source_dir,
1778 no_search_path, saw_pragma_once. Remove all_include_files and
1779 max_include_len. Make some members bool.
1780 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
1781 (_cpp_stack_file): Renamed from _cpp_read_file.
1782 (_cpp_stack_include): Renamed from _cpp_execute_include.
1783 (_cpp_init_files): Renamed from _cpp_init_includes.
1784 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
1785 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
1786 (cpp_read_next_file): Rename and move to cppfiles.c.
1787 (cpp_read_main_file): Update.
1788 * cpplib.c (run_directive): Update for renamed members.
1789 (do_include_common, _cpp_pop_buffer): Update.
1790 (do_import): Undeprecate #import.
1791 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
1792 * cpplib.h: Remove file_name_map_list.
1793 (cpp_options): Remove map_list.
1794 (cpp_dir): Rename from cpp_path. New datatype for name_map.
1795 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
1797 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
1799 * Makefile.in: Make stamp-objdir safe for parallel builds.
1801 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
1803 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
1804 (info): Depend on stmp-docobjdir.
1806 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1808 * configure: Regenerate.
1810 Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
1813 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
1814 in !unit-at-a-time mode.
1816 2003-07-28 Geoffrey Keating <geoffk@apple.com>
1818 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
1821 2003-07-28 Mark Mitchell <mark@codesourcery.com>
1824 * c-common.c (shorten_compare): Take into account differences
1825 between C and C++ representation for enumeration types.
1826 * tree.h (set_min_and_max_values_for_integral_type): Declare.
1827 * stor-layout.c (set_min_and_max_values_for_integral_type): New
1828 function, broken out from ...
1829 (fixup_signed_type): ... here and ...
1830 (fixup_unsigned_type): ... here.
1832 2003-07-28 Zack Weinberg <zack@codesourcery.com>
1834 * c-decl.c: Update commentary, adjust blank lines throughout.
1835 (struct c_scope): Fix indentation. Reorder members so
1836 outer-context pointers come first, booleans last.
1837 (duplicate_decls, define_label): Use a 'locus' variable for
1838 diagnostic locations in a few more places.
1839 (warn_if_shadowing): Un-split a conditional that fits on one line.
1840 (c_init_decl_processing): No need to clear current_scope and
1841 current_function_scope.
1842 (start_decl): Merge if/else if statements with same action.
1843 (push_parm_decl): Rename old_immediate_size_expand to use
1844 save_foo convention; save/restore around entire function.
1845 (grokdeclarator): Remove unnecessary braces.
1847 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
1848 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
1850 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
1851 when warn_declaration_after_statement. Call pedwarn_c90, not
1852 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
1853 * c-common.c (warn_declaration_after_statement): Define.
1854 * c-common.h (warn_declaration_after_statement): Declare.
1855 * c.opt (Wdeclaration-after-statement): New.
1856 * c-errors.c (pedwarn_c90): New function.
1857 * c-opts.c (c_common_handle_option) <case
1858 OPT_Wdeclaration_after_statement>: New.
1859 * c-tree.h (pedwarn_c90): Declare.
1860 * doc/invoke.texi (Option Summary): Document
1861 -Wdeclaration-after-statement.
1862 (Warning Options): Ditto.
1864 Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
1866 * i386.md (memory attribute) Avoid accessing uninitialized memory
1867 for ishift1 type instructions.
1869 2003-07-28 Jakub Jelinek <jakub@redhat.com>
1871 * configure.in (--enable-checking): Add fold category.
1872 (ENABLE_FOLD_CHECKING): Define if requested.
1873 * configure: Rebuilt.
1874 * config.in: Rebuilt.
1875 * doc/install.texi: Document it.
1876 * fold-const.c: Include md5.h.
1877 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
1878 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
1879 print_fold_checksum): New functions.
1881 * fold-const.c (fold): Never modify argument passed to fold, instead
1882 change a copy and return it.
1883 * convert.c (convert_to_integer): Likewise.
1885 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
1887 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
1888 cleanup of junk after #else and #endif directives. Collapse repeated
1889 clauses into for statment.
1891 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
1893 2003-07-27 Zack Weinberg <zack@codesourcery.com>
1895 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
1896 (keep_next_if_subblocks): Rename next_is_function_body.
1897 (pushlevel): Adjust commentary. Always set ->keep on the
1898 outermost level of a function. Don't set ->keep_if_subblocks.
1899 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
1900 (store_parm_decls): Adjust to match.
1901 (finish_function): Adjust to match.
1902 Call poplevel with all three arguments zero.
1904 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
1905 New functions split out of store_parm_decls.
1906 Avoid unnecessary work. Use local variables consistently.
1907 (store_parm_decls): Likewise.
1909 (finish_function): No need to set functionbody flag on call to
1911 (struct language_function): Remove scope field.
1912 (c_push_function_context, c_pop_function_context): No need to
1913 save and restore current_scope.
1915 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
1917 * doc/extend.texi (Deprecated Features): Implicit typename is
1918 gone. Default args on types is going.
1920 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
1922 * Makefile.in (ifcvt.o): Depend on target.h
1923 * ifcvt.c (target.h): Include.
1924 (if_convert): Don't call mark_loop_exit_edges if we can't
1927 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1929 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
1931 2003-07-26 Richard Henderson <rth@redhat.com>
1934 * cse.c (count_reg_usage): Handle asm_operands properly.
1936 2003-07-26 Roger Sayle <roger@eyesopen.com>
1938 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
1939 (DEF_EXT_FALLBACK_BUILTIN): Delete.
1940 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
1941 the regular DEF_EXT_LIB_BUILTIN macro.
1942 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
1943 the regular DEF_LIB_BUILTIN macro.
1944 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
1945 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
1946 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
1947 DEF_EXT_LIB_BUILTIN macro.
1949 * c-decl.c (duplicate_decls): Remove code to handle builtin
1950 functions prototyped without an argument list.
1952 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
1954 * config/i386/winnt.c: Revert 2003-07-08 change.
1955 (i386_pe_section_type_flags): Remove error_with_decl here too.
1957 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
1959 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
1960 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
1961 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
1962 (v850_handle_data_area_attribute): Likewise.
1964 2003-07-26 Geoffrey Keating <geoffk@apple.com>
1966 * varasm.c (output_constant_def_contents): Use
1967 ASM_DECLARE_CONSTANT_NAME if defined.
1968 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
1969 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
1970 objects get at least one byte to prevent assembler problems.
1971 (ASM_DECLARE_CONSTANT_NAME): New.
1973 * Makefile.in (libbackend.o): Remove options_.h.
1974 (mostlyclean): Likewise.
1976 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
1977 insert a label at the end of an function under Mach-O.
1979 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
1981 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
1983 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
1985 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
1987 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
1989 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1991 * doc/passes.texi (Passes): Mention pretty-printing and
1994 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
1996 * doc/extend.texi (Function Attributes): GNU C++ does now allow
1997 unused parameter decls.
1998 (Attribute Syntax): GNU C++ does not allow label attributes to be
2001 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2003 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
2004 (objc_declare_class): Likewise.
2005 (error_with_ivar): Likewise.
2006 (start_class): Likewise.
2007 (warn_with_method): Likewise.
2009 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2011 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
2013 * calls.c (try_to_integrate): Don't use xxx_with_decl.
2014 (expand_call): Likewise.
2015 * dwarfout.c (output_reg_number): Likewise.
2016 * expr.c (expand_expr): Likewise.
2017 * function.c (assign_temp): Likewise.
2018 (uninitialized_vars_warning): Likewise.
2019 (setjmp_args_warning): Likewise.
2020 (expand_function_end): Likewise.
2021 * stmt.c (fixup_gotos): Likewise.
2022 (warn_about_unused_variables): Likewise.
2023 (expand_end_bindings): Likewise.
2024 * stor-layout.c (layout_decl): Likewise.
2025 (place_field): Likewise.
2026 * toplev.c (check_global_declarations): Likewise.
2027 (rest_of_handle_inlining): Likewise.
2028 (default_tree_printer): New function.
2029 (general_init): Initialize diagnostic machinery before routing
2030 signals to the ICE machinery. Set default tree printer.
2031 * toplev.h (pedwarn_with_decl): Remove declaration.
2032 (warning_with_decl): Likewise.
2033 (error_with_decl): Likewise.
2034 (pedwarn): Remove attribute for the time being.
2035 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
2036 * varasm.c (named_section): Likewise.
2037 (make_decl_rtl): Likewise.
2038 (assemble_variable): Likewise.
2039 (merge_weak): Likewise.
2040 (declare_weak): Likewise.
2042 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
2043 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
2044 (format_with_decl): Remove.
2045 (diagnostic_for_decl): Likewise.
2046 (pedwarn_with_decl): Likewise.
2047 (warning_with_decl): Likewise.
2048 (error_with_decl): Likewise.
2049 (diagnostic_initialize): Adjust.
2050 (diagnostic_count_diagnostic): Likewise.
2051 (announce_function): Likewise.
2052 (lhd_print_error_function): Likewise.
2053 (diagnostic_report_current_module): Likewise.
2054 (default_diagnostic_starter): Likewise.
2055 (diagnostic_report_diagnostic): Likewise.
2056 (default_diagnostic_finalizer): Likewise.
2057 (verbatim): Likewise.
2059 (warning): Likewise.
2060 * opts.c (common_handle_option): Likewise.
2061 * pretty-print.c: New file.
2062 * c-pretty-print.h (pp_base): Override.
2063 * c-pretty-print.c: Adjust use of macros throughout.
2064 (pp_buffer): New macro.
2065 (pp_newline): Likewise.
2066 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
2067 * Makefile.in (DIAGNOSTIC_H): New variable.
2068 (c-errors.o): Use it.
2069 (c-objc-common.o): Likewise.
2070 (c-common.o): Likewise.
2071 (c-opts.o): Likewise.
2072 (c-format.o): Likewise.
2073 (diagnostic.o): Likewise.
2075 (toplev.o): Likewise.
2076 (rtl-error.o): Likewise.
2077 (dwarf2out.o): Likewise.
2079 (pretty-print.o): New rule.
2081 2003-07-24 Roger Sayle <roger@eyesopen.com>
2083 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
2084 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
2085 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
2086 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
2087 (DEF_FRONT_END_LIB_BUILTIN): Delete.
2088 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
2089 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
2091 * builtins.c (build_string_literal): New function to construct
2092 a char* pointer to a string literal.
2093 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
2094 "rtx target" to be consistent with other expand_builtin_* functions.
2095 Change 3rd argument from "int unlocked" to "bool unlocked".
2096 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
2097 c-common.c to avoid front-end dependencies. Optimize printf("")
2098 as a no-op when the result isn't required. Handle embedded NULs
2100 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
2101 from c-common.c to avoid front-end dependencies. Likewise, optimize
2102 fprintf(fp,"") as a no-op when the result isn't required, evaluating
2103 fp for side-effects. Handle embedded NULs in format string.
2104 (expand_builtin_sprintf): Fix typo.
2105 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
2106 optimizing. Adjust calls of expand_builtin_fputs to match the API
2107 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
2108 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
2109 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
2111 * c-common.c (is_valid_printf_arglist): Delete.
2112 (c_expand_builtin): Delete.
2113 (c_expand_builtin_printf): Moved to builtins.c. Delete.
2114 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
2115 (c_expand_expr): No longer treat CALL_EXPRs specially.
2116 (CALLED_AS_BUILT_IN): Delete.
2118 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2120 PR optimization/11631
2121 * gcse.c (store_motion): Connect infinite loops to exit.
2123 2003-07-24 Jason Merrill <jason@redhat.com>
2125 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
2126 (boolean_true_node, boolean_false_node): Likewise.
2127 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
2128 * tree.c (build_common_tree_nodes): Init boolean_type_node.
2129 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
2130 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
2131 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
2132 (truthvalue_true_node): Renamed from boolean_true_node.
2133 (truthvalue_false_node): Renamed from boolean_false_node.
2134 * c-decl.c: Just set truthvalue_* to integer_*.
2135 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
2137 2003-07-24 Roger Sayle <roger@eyesopen.com>
2139 * c-decl.c (match_builtin_function_types): New subroutine of
2140 duplicate_decls to test whether a redeclaration of a builtin
2141 function is suitably close, i.e. the return type and all of
2142 the argument types have the same modes as the builtin expects.
2143 (duplicate_decls): Fuzzy type matching for builtin functions
2144 moved to match_builtin_function_types.
2146 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2148 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
2151 2003-07-24 Zack Weinberg <zack@codesourcery.com>
2153 * c-decl.c: Search-and-replace change 'binding level' to
2154 'scope' in commentary.
2155 (struct binding_level): Now struct c_scope.
2156 (current_binding_level): Now current_scope.
2157 (free_binding_level): Now scope_freelist.
2158 (current_function_level): Now current_function_scope.
2159 (global_binding_level): Now global_scope.
2160 (make_binding_level): Now make_scope.
2161 (pop_binding_level): Now pop_scope.
2163 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2165 * configure.in (libgcc_visibility): Add missing whitespace.
2167 2003-07-24 Richard Henderson <rth@redhat.com>
2169 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
2170 __gcc_personality_v0.
2172 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2174 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
2176 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
2178 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
2179 documentation missed from my 2003-07-09 patch.
2181 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
2183 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
2185 * configure: Rebuild.
2187 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
2190 * c-typeck.c (type_lists_compatible_p): Do not compare
2191 arguments if one of them is an error_mark_node
2193 2003-07-24 Alan Modra <amodra@bigpond.net.au>
2195 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
2196 if current_function_calls_eh_return.
2198 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2200 * doc/c-tree.texi (OFFSET_TYPE): Update description.
2202 2003-07-23 Bob Wilson <bob.wilson@acm.org>
2204 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
2205 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
2206 __umodsi3, __modsi3): Increase frame size to 32.
2208 2003-07-23 Geoffrey Keating <geoffk@apple.com>
2210 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
2213 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2215 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
2217 PR optimization/10679
2218 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
2220 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2222 PR target/11607 and PR target/11516
2223 * pa.md (extzv, extv, insv): Revert latter half of last patch.
2225 2003-07-22 Mark Mitchell <mark@codesourcery.com>
2227 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
2228 * varasam.c (output_constant): Likewise.
2230 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2232 * alias.c: Fix comment formatting.
2233 * c-common.c: Likewise.
2234 * c-decl.c: Likewise.
2235 * c-opts.c: Likewise.
2236 * combine.c: Likewise.
2237 * cpplib.c: Likewise.
2238 * diagnostic.c: Likewise.
2239 * dojump.c: Likewise.
2240 * final.c: Likewise.
2241 * fold-const.c: Likewise.
2244 * ggc-page.c: Likewise.
2247 * mips-tfile.c: Likewise.
2248 * recog.c: Likewise.
2249 * regclass.c: Likewise.
2250 * regmove.c: Likewise.
2254 2003-07-22 Per Bothner <pbothner@apple.com>
2256 * line-map.c (add_line_map): Handle invalid LEAVE request.
2257 Fixes PR preprocessor/11361.
2259 2003-07-22 Per Bothner <pbothner@apple.com>
2261 * diagnostic.c.(diagnostic_report_current_module): Update to match
2262 2003-06-05 changes to push_srcloc and pop_srcloc.
2264 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
2266 * doc/trouble.texi: Better document two-stage name lookup.
2268 2003-07-22 Eric Christopher <echristo@redhat.com>
2270 * config/s390.c (s390_valid_pointer_mode): New.
2271 (TARGET_VALID_POINTER_MODE): Use.
2272 (s390_emit_prologue): Add tpf profiling hooks.
2273 (s390_emit_epilogue): Ditto.
2274 * config/s390.h (MASK_TPF): New.
2276 (POINTERS_EXTEND_UNSIGNED): Define.
2277 * config/s390.md (ptr_extend): New pattern.
2279 2003-07-22 Zack Weinberg <zack@codesourcery.com>
2281 * hashtable.c (approx_sqrt): Make static.
2282 * hashtable.h: Don't prototype approx_sqrt.
2283 * line-map.c (init_line_maps): Rename linemap_init.
2284 (free_line_maps): Rename linemap_free.
2285 (add_line_map): Rename linemap_add.
2286 (lookup_line): Rename linemap_lookup.
2287 (print_containing_files): Rename linemap_print_containing_files.
2288 * linemap.h: Update to match.
2290 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
2291 linemap routines to use new names.
2293 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
2295 * c-common.c (handle_packed_attribute): Don't pack a struct via a
2296 typedef. Propagate packedness from a main variant.
2298 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
2300 * Makefile.in (install-common): Add dependency on installdirs.
2302 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
2304 * c-common.c (c_common_type_for_mode): Return integer types for
2307 2003-07-22 Geoffrey Keating <geoffk@apple.com>
2309 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
2310 (finish_decl): Call maybe_apply_pragma_weak here.
2311 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
2312 TREE_PUBLIC and TREE_STATIC are decided.
2313 (start_function): Move call to maybe_apply_pragma_weak. Check that
2314 DECL_ASSEMBLER_NAME isn't set too early.
2316 * cpplex.c (_cpp_process_line_notes): Mention option name in
2319 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2321 * combine.c (if_then_else_cond): Simplify the comparison of
2322 rtx against -1, 0, and 1.
2323 * loop.c (check_dbra_loop): Likewise.
2324 * optabs.c (emit_conditional_move): Likewise.
2325 (emit_conditional_add): Likewise.
2326 * config/i386/i386.md (*movsi_or): Likewise.
2327 (*movdi_or_rex6): Likewise.
2329 Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
2331 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
2333 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
2335 * cppfiles.c (open_file_pch): Don't put unused entries in the
2336 splay tree. Remove dead code.
2338 2003-07-21 Geoffrey Keating <geoffk@apple.com>
2340 * c-common.h (num_in_fnames): Declare.
2341 (c_static_assembler_name): Move from here...
2342 * c-tree.h (c_static_assembler_name): ... to here.
2343 * c-opts.c: Don't include langhooks-def.h.
2344 (c_static_assembler_name): Move to c-decl.c.
2345 (num_in_fnames): Make externally visible.
2346 * c-decl.c: Include langhooks-def.h.
2347 (c_static_assembler_name): Move from c-opts.c.
2348 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
2349 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
2351 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
2352 when it's not needed.
2354 2003-07-21 Jakub Jelinek <jakub@redhat.com>
2356 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
2357 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
2358 (rs6000_emit_prologue): Save FPRs inline if set.
2360 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
2362 * config/ia64/ia64.md (prefetch): Support predicate.
2364 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
2366 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
2367 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
2370 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2372 PR optimization/11536
2373 * unroll.c (loop_iterations): Do not replace a register holding
2374 the final value by its equivalent before the loop if it is not
2377 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
2379 * doc/extend.texi: Fixes to spelling, grammar, and diction.
2381 2003-07-21 Ben Elliston <bje@wasabisystems.com>
2383 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
2384 (V850 Options): Spelling fixes.
2386 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
2388 * doc/invoke.texi: Fixes to style, grammar and diction.
2390 2003-07-20 Roger Sayle <roger@eyesopen.com>
2392 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
2393 * system.h (SMALL_STACK): Poison obsolete target macro.
2394 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
2396 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
2398 * configure.in: Cache the results of testing for cmp's capabilities.
2399 * configure: Regenerate.
2401 2003-07-20 Mark Mitchell <mark@codesourcery.com>
2404 * dwarf2out.c (gen_enumeration_type_die): Remember that
2405 enumerators can be unsigned.
2407 2003-07-19 Zack Weinberg <zack@codesourcery.com>
2409 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
2410 (push_label_level, pop_label_level): Kill.
2411 (struct binding_level): Rename level_chain to outer.
2412 Add outer_function field. Change parm_flag, function_body,
2413 keep, keep_if_subblocks to 1-bit bitfields of type bool.
2414 (current_function_level): New variable.
2415 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
2416 (keep_next_level, declare_parm_level, warn_if_shadowing):
2418 (struct language_function): Kill named_labels, shadowed_labels fields.
2419 (c_init_decl_processing, start_function, c_push__function_context)
2420 (c_pop_function_context): No need to muck with named_labels nor
2423 (make_binding_level): No need to clear the structure here.
2424 (pop_binding_level): Always operate on current_binding_level.
2425 Update current_function_level if necessary.
2426 (pushlevel): Don't clear named_labels. Update current_function_level
2427 if necessary. Use "true" and "false" where appropriate.
2428 (poplevel): Diagnose labels defined but not used, or vice
2429 versa, and clear out label-meanings leaving scope, while
2430 walking down the decls list, for all binding levels.
2431 Handle LABEL_DECLs appearing in the shadowed list.
2432 pop_binding_level takes no arguments.
2433 (pushdecl_function_level): Use current_function_level.
2435 (make_label, bind_label): New static functions.
2436 (declare_label): New exported function.
2437 (lookup_label, define_label): Rewritten for new data structure.
2438 (shadow_label): Kill.
2440 * c-tree.h: Prototype declare_label; don't prototype
2441 push_label_level, pop_label_level, nor shadow_label.
2442 * c-parse.in: Remove all calls to push_label_level and
2443 pop_label_level. Use declare_label for __label__ decls.
2445 * doc/extend.texi: Clarify that __label__ can be used to
2446 declare labels with local scope in any nested block, not
2447 just statement expressions. Cross-reference nested functions
2448 section from local labels section.
2450 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2452 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
2454 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
2456 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
2458 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2460 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
2461 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
2463 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
2465 * config/s390/s390.c (legitimize_pic_address): Access local symbols
2466 relative to the GOT instead of relative to the literal pool base.
2467 (s390_output_symbolic_const): Handle new GOT-relative accesses.
2468 * config/s390/s390.md ("call"): Access local functions and PLT stubs
2469 relative to the GOT instead of relative to the literal pool base.
2470 ("call_value"): Likewise.
2471 ("call_value_tls"): Likewise.
2473 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
2474 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
2475 (s390_chunkify_finish): Likewise.
2476 (s390_chunkify_cancel): Likewise.
2477 (s390_reorg): Adapt caller.
2478 (find_base_register_in_addr,
2479 find_base_register_ref, replace_base_register_ref): Delete.
2480 (find_ltrel_base, replace_ltrel_base): New functions.
2481 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
2482 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
2483 base vs. index register usage.
2484 (struct constant_pool): Remove 'anchor'.
2485 (s390_add_anchor): Delete.
2486 (s390_dump_pool): Remove anchor handling.
2487 * config/s390/s390.md ("reload_anchor"): Remove.
2489 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
2490 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
2491 (s390_emit_prologue): Use it.
2492 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
2493 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
2494 hard-code register 14.
2495 * config/s390/s390-protos.h (s390_load_got): Declare.
2497 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
2498 Support TImode constants.
2499 * config/s390/s390.md ("consttable_ti"): New.
2500 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
2502 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
2503 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
2504 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
2505 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
2506 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
2507 New symbolic constants.
2508 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
2509 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
2510 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
2511 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
2512 symbolic UNSPEC values.
2513 * config/s390/s390.c (larl_operand, s390_short_displacement,
2514 bras_sym_operand, s390_cannot_force_const_mem,
2515 s390_delegitimize_address, s390_decompose_address,
2516 legitimize_pic_address, s390_output_symbolic_const,
2517 s390_function_profiler): Use symbolic UNSPEC values.
2519 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2521 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
2522 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
2523 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
2524 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
2525 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
2526 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
2527 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
2528 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
2529 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
2530 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
2531 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
2532 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
2533 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
2534 postreload.c prefix.c print-tree.c protoize.c ra-build.c
2535 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
2536 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
2537 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
2538 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
2539 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
2540 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
2543 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2545 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
2546 * toplev.h (warning): Remove attribute.
2548 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2550 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
2551 (pop_label_level): Likewise.
2552 (duplicate_decls): Likewise.
2553 (implicitly_declare): Likewise.
2554 (shadow_label): Likewise.
2555 (start_decl): Likewise.
2556 (finish_decl): Likewise.
2557 (grokdeclarator): Likewise.
2558 (get_parm_info): Likewise.
2559 (detect_field_duplicates): Likewise.
2560 (finish_struct): Likewise.
2561 (start_function): Likewise.
2562 (store_parm_decls): Likewise.
2563 (finish_function): Likewise.
2564 (c_expand_body_1): Likewise.
2565 (check_for_loop_decls): Likewise.
2566 (merge_translation_unit_decls): Likewise.
2568 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
2570 * common.opt: Document --param.
2571 * opts.c (columns, undocumented_msg): New.
2572 (print_help): Get number of columns from environment. Print
2573 --param help. Tweak newline handling.
2574 (print_param_help): New.
2575 (print_filtered_help): Better handling of duplicates. Complain
2576 about undocumented switches.
2577 (print_switch): New.
2578 (wrap_help): Improve wrapping, use COLUMNS.
2579 * opts.sh: Ignore comments in records.
2580 * params.def: Fix typos and remove trailing periods.
2581 * toplev.c (display_help): Don't dump --param help.
2582 * doc/sourcebuild.texi: Update.
2584 2003-07-18 Richard Henderson <rth@redhat.com>
2587 * optabs.c (prepare_operand): Fail gracefully instead of abort
2588 if the predicate doesn't satisfy.
2589 (gen_cond_trap): Allow prepare_operand to fail.
2591 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2593 * c-common.c: Don't undefine GCC_DIAG_STYLE.
2594 (fname_decl): Don't use xxx_with_decl.
2595 (c_add_case_label): Likewise.
2596 (handle_section_attribute): Likewise.
2597 (handle_alias_attribute): Likewise.
2598 (handle_no_instrument_function_attribute): Likewise.
2599 (handle_no_limit_stack_attribute): Likewise.
2600 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
2601 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
2603 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2605 * Makefile.in (ifcvt.o): Add cfgloop.h.
2606 * basic-block.h (EDGE_LOOP_EXIT): New flag.
2607 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
2608 * ifcvt.c: Include cfgloop.h.
2609 (mark_loop_exit_edges): New static function.
2610 (if_convert): Call it.
2611 (find_if_header): Ignore branches out of loops.
2613 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
2615 * combine.c (simplify_comparison): Don't share rtx when converting
2616 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
2618 2003-07-18 David Edelsohn <edelsohn@gnu.org>
2620 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
2621 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2622 (MUST_PASS_IN_STACK): Define.
2623 (BLOCK_REG_PADDING): Define.
2625 2003-07-18 Richard Henderson <rth@redhat.com>
2627 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
2628 to skip the addr_vec.
2630 Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
2632 * combine.c (combinable_i3pat): Don't forbid occurrences of
2633 i2dest or i1dest in inner_dest if inner_dest is a mem.
2635 Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
2637 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
2639 2003-07-17 Jakub Jelinek <jakub@redhat.com>
2642 * loop.c (basic_induction_var): Check if convert_modes emitted any
2643 instructions. Remove them and return 0 if so.
2645 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
2647 PR optimization/11083
2648 * toplev.c (rest_of_handle_addresof): Rename into
2649 rest_of_handle_addressof. Delete unreachable blocks
2650 if dead edges were purged after the addressof pass.
2652 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
2654 * Makefile.in, configure, configure.in: Remove handling of
2655 lang-options.h and options_.h.
2656 * toplev.c (struct lang_opt, documented_lang_options): Remove.
2657 (display_help): Don't use documented_lang_options.
2659 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2661 * c-decl.c (pushdecl_function_level): Make static, return nothing.
2662 (kept_level_p): Fold into poplevel.
2663 (undeclared_variable): Moved here from c-typeck.c. Export.
2664 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
2665 (undeclared_variable): Prototype here. Don't prototype
2666 kept_level_p nor pushdecl_function_level.
2667 * c-parse.in: Change first argument to poplevel from
2668 "kept_level_p()" to "KEEP_MAYBE".
2669 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
2671 2003-07-17 Roger Sayle <roger@eyesopen.com>
2673 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
2674 commutative operands instead of modifying the RTL in-place.
2676 2003-07-17 Mark Mitchell <mark@codesourcery.com>
2678 PR optimization/11557
2679 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
2680 unless we know which function is being called.
2682 2003-07-17 Roger Sayle <roger@eyesopen.com>
2684 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
2685 whether to reorder the operands of a commutative binary operator.
2687 2003-07-17 Roger Sayle <roger@eyesopen.com>
2689 * fold-const.c (const_binop): Avoid performing the FP operation at
2690 compile-time, if either operand is NaN and we honor signaling NaNs,
2691 or if we're dividing by zero and either flag_trapping_math is set
2692 or the desired mode doesn't support infinities.
2693 (fold_initializer): New function to fold an expression ignoring any
2694 potential run-time exceptions or traps.
2695 * tree.h (fold_initializer): Prototype here.
2696 * c-typeck.c (build_binary_op): Move to the end of the file so
2697 that intializer_stack is in scope. If constructing an initializer,
2698 i.e. when initializer_stack is not NULL, use fold_initializer to
2700 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
2701 performing FP operations at compile-time, if they would raise an
2702 exception at run-time.
2704 2003-07-17 Geoffrey Keating <geoffk@apple.com>
2707 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
2708 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
2709 (GTFILES): Add langhooks.c.
2710 (gt-langhooks.h): New.
2711 * c-common.h (c_static_assembler_name): Prototype.
2712 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2713 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2714 * c-opts.c: Include langhooks-def.h.
2715 (c_static_assembler_name): New.
2716 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
2718 (lhd_set_decl_assembler_name): Give static objects with context
2720 * varasm.c (var_labelno): Delete.
2721 (make_decl_rtl): Don't change the assembler name once it's set.
2723 * c-opts.c (this_input_filename): New.
2724 (finish_options): Take new parameter, name of file being compiled.
2725 Update callers. Set this_input_filename.
2726 (push_command_line_include): Use this_input_filename not
2727 main_input_filename.
2729 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2731 * Makefile.in: Depend .pot generation on options.c.
2732 * po/exgettext: Add an extra_files variable containing additional
2735 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2737 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
2738 c_write_global_declarations.
2740 * c-decl.c: Fix typos in several comments. Remove all
2741 #if 0 blocks; reindent as needed. Remove unused argument
2742 to declare_parm_level; all callers changed.
2743 * c-parse.in: Update calls to declare_parm_level. Avoid
2744 issuing a double warning in some circumstances.
2745 * c-typeck.c: Update calls to declare_parm_level.
2746 * c-tree.h: Update prototype of declare_parm_level.
2748 * c-pragma.c (apply_pragma_weak): Don't complain about a
2749 redundant #pragma weak.
2751 * objc/objc-act.c (forward_declare_categories,
2752 build_selector_reference_decl, build_class_reference_decl,
2753 build_objc_string_decl, synth_forward_declarations,
2754 build_protocol_reference): Set TREE_PUBLIC on synthetic
2755 forward decl to 0, consistent with eventual definition.
2756 Correct comments to match.
2758 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
2759 in regexp that don't form a range expression.
2760 * fixinc/fixincl.def: Regenerate.
2762 2003-07-17 Richard Henderson <rth@redhat.com>
2765 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
2766 even with !TARGET_CONST_GP.
2767 (ia64_function_ok_for_sibcall): Reject non-local functions.
2769 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
2771 * c-common.c (c_estimate_num_insns_1): Don't handle
2773 * expr.c (safe_from_p): Likewise.
2774 * gengtype.c (adjust_field_tree_exp): Likewise.
2775 * stmt.c (warn_if_unused_value): Likewise
2776 * tree.c (first_rtl_op): Likewise.
2777 * tree.def: Don't define METHOD_CALL_EXPR.
2778 * java/lang.c (java_estimate_num_insns_1): Don't handle
2781 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2784 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
2785 and its restrictions for the SPARC64 port.
2786 Move the entry of "-mimpure-text" before that of "-mv8".
2788 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2789 Phil Edwards <phil@jaj.com>
2791 * doc/install.texi (*-*-solaris2*): Document the step-by-step
2792 procedure to bootstrap and install.
2793 Document the preference for the legacy Sun tools in /usr/bin
2794 over the POSIX tools in /usr/xpg4/bin for the build process.
2796 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2798 * c.opt: Document Uncodumented; use it. Document ObjC options.
2799 * opts.c (print_filtered_help): Skip undocumented switches.
2800 * opts.h (CL_UNDOCUMENTED): New.
2801 * opts.sh: Handle Undocumented.
2802 * toplev.c (documented_lang_options): Prevent its becoming empty.
2804 * lang-options.h: Remove.
2806 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
2808 * loop.c (check_ext_dependent_givs): Pass const struct loop *
2809 instead of struct loop_info * as argument. Accept BIVs with
2810 increment +/- 1 provided there is a friendly exit test against
2811 a loop-invariant value.
2812 (strength_reduce): Adapt call to check_ext_dependent_givs.
2814 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2815 Con Bradley <con.bradley@superh.com>
2817 * sh-protos.h (sh_get_pr_initial_val): Declare.
2818 * sh.c (regno_reg_class): Make its elements type enum reg_class.
2819 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
2820 and live_regs_mask arguments. Changed all callers.
2821 (save_schedule_s): New structure.
2822 (save_schedule): New typedef.
2823 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
2824 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
2825 In interrupts handlers, also save registers that are usually
2826 partially saved, and make sure there is at least one general purpose
2827 register saved if a target register needs saving.
2828 Add casts in comparisons to avoid warnings.
2829 (sh_media_register_for_return): return -1 for interrupt handlers.
2830 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
2831 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
2832 registers used are available.
2833 Set RTX_FRAME_RELATED_P where appropriate.
2834 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
2835 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
2836 (initial_elimination_offset): Likewise.
2837 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
2838 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
2839 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
2840 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
2841 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
2842 and for target registers.
2843 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
2844 (regno_reg_class): Make its elements type enum reg_class.
2845 (CONSTRAINT_LEN): Don't use isdigit.
2846 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
2847 (FUNCTION_ARG): Add parentheses to avoid warnings.
2848 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
2849 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
2850 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
2851 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
2852 * sh.md (xordi3+1): Remove unused variable regno.
2853 (return_media): Check that tr0 is available before using it.
2855 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
2857 * c.opt: Document more options.
2859 2003-07-16 Roger Sayle <roger@eyesopen.com>
2861 * combine.c (subst): Also handle (subreg (const_double ...)) case
2862 if created by a substitution, by using the original inner mode.
2864 2003-07-16 Roger Sayle <roger@eyesopen.com>
2866 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
2867 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
2868 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
2870 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
2872 * doc/install.texi (--without-headers): New.
2874 Partial Fix PR/10129
2875 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
2876 (machopic_output_function_base_name): New; print the true pic label.
2877 (machopic_classify_ident): Pic Base is always a defined data.
2878 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
2879 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
2881 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
2882 if they are not floating point registers.
2885 * ggc.h: Add header guards.
2886 * c-decl.c (finish_struct): Sort fields if
2887 number greater than 15 and there are no
2888 anonymous structs/unions.
2889 * c-common.h: Include ggc.h.
2890 (sorted_fields_type): New struct.
2891 (field_decl_cmp): New prototype.
2892 (resort_sorted_fields): New prototype.
2893 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
2894 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
2895 as s, removing other fields.
2896 * c-typeck.c (lookup_field): Use s in lang_type.
2897 These were mostly moved from cp/class.c:
2898 * c-common.c (field_decl_cmp): New static function.
2899 (field_decl_cmp): New function.
2900 (resort_sorted_fields): New function.
2902 2003-07-16 Geoffrey Keating <geoffk@apple.com>
2904 * config/darwin.c (machopic_select_section): Use decl_readonly_section
2905 to do most of the work.
2907 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
2909 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
2910 * config/mmix/mmix.c: Convert functions to ISO C90.
2911 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
2913 (mmix_get_hard_reg_initial_val): Tweak section head comment.
2915 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2917 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
2919 2003-07-16 Jakub Jelinek <jakub@redhat.com>
2921 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
2922 (uw_update_context_1): Use it.
2923 * config/rs6000/rs6000.c (insn_after_throw): Remove.
2924 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
2925 in parent frame if _Unwind_* called directly instead of through
2927 (rs6000_emit_eh_toc_restore): Remove.
2928 (rs6000_emit_prologue): Update stack pointer before doing any saving
2929 if current_function_calls_eh_return. Generate unwind info for $r2.
2930 (rs6000_emit_epilogue): Restore stack pointer after doing all
2931 restoring if current_function_calls_eh_return. Restore $r2.
2932 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
2933 * config/rs6000/rs6000.md (eh_return): Remove call to
2934 rs6000_emit_eh_toc_restore.
2935 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
2936 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
2938 2003-07-15 Jakub Jelinek <jakub@redhat.com>
2940 * expr.c (emit_block_move): Don't move anything if size is const 0.
2941 (clear_storage): Test against const0_rtx instead of comparing INTVAL
2944 2003-07-15 David S. Miller <davem@redhat.com>
2946 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
2947 emit nop if the last real insn is CALL_INSN.
2949 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2951 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
2953 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
2955 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2957 * config/i386/winnt.c (associated_type): Artificial methods are not
2958 affected by the import/export status of their class unless they are
2960 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
2962 * config/i386/winnt.c: Fix GCC copyright comment.
2964 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
2967 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
2968 not recursing on hard error.
2969 (diagnostic_for_decl): Likewise.
2970 * diagnostic.def: Rearrange.
2972 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2974 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
2975 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
2977 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2978 Richard Henderson <rth@redhat.com>
2980 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
2981 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
2982 (_Unwind_SetGR): Likewise.
2983 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
2984 (Unwind_SpTmp): New typedef.
2985 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
2986 (uw_update_context): Use _Unwind_GetPtr.
2987 (init_dwarf_reg_size_table): Move above uw_init_context_1.
2988 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
2989 Use _Unwind_SetSpColumn.
2990 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
2993 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
2995 * c.opt: Document more options.
2996 * toplev.c (documented_lang_options): Remove all local help strings.
2998 2003-07-15 Mark Mitchell <mark@codesourcery.com>
3001 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
3004 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
3007 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
3008 swap comparison operands if doing so would generate an
3009 unrecognizable insn.
3011 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
3013 PR optimization/11320
3014 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
3015 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
3016 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
3017 current_sched_info->compute_jump_reg_dependencies. Record which
3018 registers are used and which registers are set by the jump.
3019 Clear deps->reg_conditional_sets after a barrier.
3020 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
3021 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
3022 (init_deps): Initialize reg_conditional_sets.
3023 (free_deps): Clear reg_conditional_sets.
3024 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
3025 Mark registers live on entry of the fallthrough block and conditionally
3026 set as set by the jump. Mark registers live on entry of non-fallthrough
3027 blocks as used by the jump.
3028 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
3029 Mark new parameters as unused.
3031 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3033 * doc/invoke.texi: Resync MIPS -march documentation.
3035 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3037 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
3038 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
3039 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
3040 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
3041 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
3042 (mips_issue_rate): Handle PROCESSOR_R9000.
3043 (mips_use_dfa_pipeline_interface): Likewise.
3044 * config/mips/9000.md: New file.
3045 * config/mips/mips.md: Include it.
3046 (define_attr cpu): Add r9000.
3047 (mulsi3_mult3): Use "mul" for rm9000 code.
3049 2003-07-15 Stan Cox <scox@redhat.com>
3051 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
3052 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
3053 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
3054 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
3055 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
3056 (mips_issue_rate): Handle PROCESSOR_R7000.
3057 (mips_use_dfa_pipeline_interface): Likewise.
3058 * config/mips/7000.md: New file.
3059 * config/mips/mips.md: Include it.
3060 (define_attr cpu): Add r7000.
3061 (mulsi3_mult3): Use "mul" for rm7000 code.
3063 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3065 * config/mips/mips.md (define_attr type): Add condmove. Use it for
3066 the conditional move patterns.
3067 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
3068 Check for condmove type.
3069 (ir_vr54_arith): Add move type.
3070 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
3071 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
3073 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
3075 * c-opts.c (print_help): Remove.
3076 (c_common_handle_option): Don't handle --help.
3077 * c.opt: Document some options.
3079 * opts.c (print_filtered_help): New.
3080 (print_help): Use it.
3082 2003-07-14 Geoffrey Keating <geoffk@apple.com>
3084 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
3085 * tree.c: (build_common_tree_nodes_2): Likewise.
3086 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
3087 (V4DF_type_node): New.
3089 * c-opts.c (push_command_line_include): Don't free deferred_opts,
3091 (finish_options): Reset init_cursor.
3093 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
3095 * expr.c (expand_assignment): Remove an unused argument
3097 * expr.h: Update the prototype.
3098 * function.c: Update the callers.
3101 2003-07-14 Mark Mitchell <mark@codesourcery.com>
3104 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
3107 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3109 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
3110 with __cplusplus, not "we must use the C++ compiler's type"
3111 * fixinc/inclhack.def (void_null): Note that Interix needs this.
3112 * fixinc/fixincl.x: Regenerate.
3114 2003-07-14 Geoffrey Keating <geoffk@apple.com>
3116 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
3117 and unseen_objects from the global data before calling
3118 __deregister_frame_info_bases.
3119 (examine_objects): Insert objects into the seen_objects list,
3121 (_Unwind_Find_FDE): Always unlock the global object lists, even if
3122 we couldn't allocate a data structure to put in it.
3124 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
3125 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
3126 (SET_TYPE_PROTOCOL_LIST): New.
3127 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
3128 (get_object_reference): Likewise.
3130 Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
3132 * cfglayout.c (locator_file): Break out from ....
3133 (insn_file): ... here.
3134 (locator_line): Break out from ....
3135 (insn_line): ... here.
3136 * rtl.h (locator_file, locator_line): Declare.
3137 (final_start_function): Set proper line/file info.
3139 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
3141 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
3142 handled by pp_c_cast_expression.
3144 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3146 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
3147 allocate 32768 bytes of stack. Use addition rather than subtraction
3148 when a single insn is enough.
3149 * config/mips/mips.md: Remove insns and splitters for subtracting
3151 (subsi3): Only accept register operands.
3152 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
3153 (subdi3_internal_3, subsi3_internal_2): Likewise.
3154 (casesi): Use expand_binop to subtract the lower bound.
3156 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3158 * config/mips/mips.c (mips_in_small_data_p): Don't handle
3159 TARGET_MIPS16 specially.
3161 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3163 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
3164 mips_output_aligned_bss.
3165 * config/mips/linux.h: Likewise.
3166 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
3167 * config/mips/mips.c (mips_output_aligned_bss): New function.
3169 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
3170 * config/mips/elf64.h: Likewise.
3172 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
3173 mips_declare_object_name.
3174 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
3175 * config/mips/elf64.h: As for elf.h.
3176 * config/mips/iris6.h: Likewise.
3177 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
3178 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
3179 do...while (0) block.
3180 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
3181 (mips_finish_declare_object): Declare.
3182 * config/mips/mips.c (mips_declare_object_name): New function.
3183 (mips_finish_declare_object): New function.
3185 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
3186 * config/mips/linux.h: Likewise.
3188 * config/mips/mips.c (inside_function): Delete.
3189 (file_in_function_warning, ignore_line_number): Delete.
3190 (mips_output_filename): Don't warn about changing filenames within
3192 (mips_output_lineno): Update accordingly.
3193 (mips_output_function_prologue): Don't reset the deleted variables.
3194 * config/mips/mips.h (inside_function): Delete.
3195 (file_in_function_warning, ignore_line_number): Delete.
3197 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
3198 * config/mips/elf64.h: Likewise.
3199 * config/mips/openbsd.h: Likewise.
3200 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
3201 * config/mips/linux.h: Likewise.
3202 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
3203 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
3205 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
3206 to the list of include files when using gas.
3207 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
3208 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
3209 * config/mips/elf64.h: Likewise.
3210 * config/mips/iris5.h: Likewise.
3211 * config/mips/linux.h: Likewise.
3212 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
3213 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
3214 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
3215 * config/mips/sdb.h: ...this new file.
3217 2003-07-14 Douglas Rupp <rupp@gnat.com>
3219 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
3220 argument to getcwd; use fixed buffer instead.
3222 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3224 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
3225 * fixinc/fixinc.wrap: Delete.
3227 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3229 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
3232 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3234 * ggc-page.c (struct globals): Add new fields to keep track of the
3235 total allocated memory and overhead.
3236 (ggc_print_statistics): Print them.
3237 (ggc_alloc): Keep track of the total allocated memory and the
3240 * tree.c (dump_tree_statistics): Increase spacing.
3241 (enum tree_node_kind): Move to ...
3242 * tree.h (enum tree_node_kind): ... here.
3243 (tree_node_counts, tree_node_sizes): Declare.
3245 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
3247 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
3249 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3251 PR optimization/11440
3252 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
3255 2003-07-14 Alan Modra <amodra@bigpond.net.au>
3257 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
3258 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
3259 (emit_group_load, emit_group_store): Adjust declarations.
3260 Remove most occurrences of #ifdef TREE_CODE.
3261 * expr.c (emit_group_load): Add "type" param, and use
3262 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
3263 aligned accesses if !SLOW_UNALIGNED_ACCESS.
3264 (emit_group_store): Likewise.
3265 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
3266 emit_group_load and emit_group_store calls.
3267 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
3268 BLOCK_REG_PADDING to determine whether we need endian_correction.
3269 (load_register_parameters): Localize vars. Handle shifting of
3270 small values to the correct end of regs. Adjust emit_group_load
3272 (expand_call, emit_library_call_value_1): Adjust emit_group_load
3273 and emit_group_store calls.
3274 * function.c (assign_parms): Set mem alignment for stack slots.
3275 Adjust emit_group_store call. Store values at the "wrong" end
3276 of regs to the stack. Use BLOCK_REG_PADDING.
3277 (locate_and_pad_parm): Save where_pad.
3278 (expand_function_end): Adjust emit_group_load call.
3279 * stmt.c (expand_value_return): Adjust emit_group_load call.
3280 * Makefile.in (calls.o): Depend on $(OPTABS_H).
3281 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
3282 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
3283 (MUST_PASS_IN_STACK): Define.
3284 (BLOCK_REG_PADDING): Define.
3285 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
3286 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
3287 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
3288 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
3289 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
3291 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
3293 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
3295 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3297 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
3298 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
3300 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3303 * toplev.c: Don't cut off option names.
3305 2003-07-13 Andreas Jaeger <aj@suse.de>
3307 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
3308 to integer of different size.
3310 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
3312 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
3313 to (eq (and X 1) 0).
3315 2003-07-13 Andreas Jaeger <aj@suse.de>
3317 * config.gcc: Add pmmintrin.h for x86_64-*-*.
3319 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3321 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
3322 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
3323 list. Move these all together down by cpplib.
3325 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
3326 definition of CPPCHAR_SIGNED_T.
3328 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
3329 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
3330 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
3332 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
3333 * cppinit.c (cpp_create_reader): Likewise.
3335 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
3336 * cpptrad.c: Likewise. All callers changed.
3337 * cpplib.c: All callers changed.
3338 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
3339 * hashtable.h: Define GTY(x) to nothing here too.
3341 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3343 * stor-layout.c (compute_record_mode): Remove very obsolete test
3344 that forces BLKmode for records with fields crossing word boundary.
3346 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3348 * Makefile.in: Remove orphan reference to acconfig.h.
3350 2003-07-13 Andreas Jaeger <aj@suse.de>
3352 * cgraphunit.c: Convert prototypes to ISO C90.
3354 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3356 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
3358 * fixinc/fixincl.x: Rebuild.
3360 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3362 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
3363 i?86-*-*. Use correct name of cache variable.
3364 * configure: Regenerate.
3366 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3368 * config/alpha/alpha.c: Fix comment typos.
3369 * config/alpha/alpha.md: Likewise.
3370 * config/arm/arm.c: Likewise.
3371 * config/arm/arm.md: Likewise.
3372 * config/arm/lib1funcs.asm: Likewise.
3373 * config/avr/avr.md: Likewise.
3374 * config/arm/README-interworking: Fix typos.
3376 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3378 * c-format.c: Fix comment formatting.
3379 * c-typeck.c: Likewise.
3380 * coverage.c: Likewise.
3381 * cppcharset.c: Likewise.
3382 * cpplib.c: Likewise.
3383 * dbxout.c: Likewise.
3384 * gcov-io.h: Likewise.
3385 * toplev.c: Likewise.
3387 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3389 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
3392 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3394 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
3395 uses three-argument AC_DEFINE so no acconfig.h entries are
3397 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
3398 which contains the GAS version number as a scaled integer.
3399 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
3400 ability to check for ELF assembler.
3401 (gcc_GAS_CHECK_FEATURE): New macro.
3402 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
3403 assembler feature checks using gcc_GAS_CHECK_FEATURE.
3404 Use three-argument AC_DEFINE everywhere.
3405 * acconfig.h: Deleted.
3406 * config.in, configure: Regenerate.
3408 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3410 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
3412 * fixinc/fixincl.x: Regenerate.
3414 * fixinc/inclhack.def (gnu_types): Improve comment.
3416 2003-07-12 Andreas Jaeger <aj@suse.de>
3418 * fp-test.c (main): Use ISO C90 prototype.
3420 * version.c: Remove unneded include of ansidecl.h.
3422 * cgraph.h: Convert prototypes to ISO C90.
3423 * cgraph.c: Likewise.
3424 * fix-header.c: Likewise.
3426 * protoize.c: Likewise.
3428 Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
3430 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
3433 Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
3434 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3436 * cgraph.c (cgraph_max_uid): New global variable.
3437 (cgraph_node): Set uid field.
3438 (create_edge): Keep inline flags consistent.
3439 (dump_cgraph): Dump more info.
3440 * cgraph.h (struct cgraph_local_info): Remove inline_many and
3441 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
3442 (struct cgraph_global_info): Add insns, calls, cloned_times,
3444 (struct cgraph_node): Add uid.
3445 (struct cgraph_edge): Add inline_call.
3446 (cgraph_max_uid, cgraph_inline_p): Declare.
3447 * cgraph.c: Include params.h and fibheap.h
3448 (cgraph_mark_functions_to_inline_once): Kill.
3449 (INSNS_PER_CALL): New constant.
3450 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
3452 (cgraph_finalize_function): Do not analyze inlining.
3453 (cgraph_finalize_compilation_unit): Set inlining attributes.
3454 (cgraph_mark_functions_to_output): More consistency checks.
3455 (cgraph_optimize_function): Set current_function_decl to NULL.
3456 (cgraph_expand_function): Use new inline flags.
3457 (cgraph_postorder): Expand from cgraph_expand_functions.
3458 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
3459 (cgraph_inlined_into, cgraph_inlined_callees,
3460 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
3461 cgraph_mark_inline, cgraph_check_inline_limits,
3462 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
3463 cgraph_decide_inlining, cgraph_inline_p): New functions.
3464 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
3465 PARAM_INLINE_UNIT_GROWTH): New parameters.
3466 * tree-inline.c (struct inline_data): New field current_decl.
3467 (expand_call_inline): Avoid forward declarations; use
3468 inlinable_function_p.
3469 (optimize_inline_calls): Set id.current_decl.
3471 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
3473 * configure.in: Remove wrongly added definition of
3475 * configure: Regenerate.
3477 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
3479 * rtl.def (NOTE): Do not use padding.
3481 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
3483 * doc/install.tex: Update required binutils for i?86-*-linux*
3485 2003-07-11 Richard Henderson <rth@redhat.com>
3487 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
3489 2003-07-11 Mark Mitchell <mark@codesourcery.com>
3491 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
3492 TRANSLATION_UNIT_DECL as top_level.
3494 2003-07-11 Jakub Jelinek <jakub@redhat.com>
3496 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
3497 then fall back to cmpstrM.
3498 * builtins.c (expand_builtin_memcmp): Likewise.
3499 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
3500 (s390_expand_cmpmem): ... this.
3501 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
3502 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
3503 from cmpstr* patterns. Rename call to s390_expand_cmpstr
3504 to s390_expand_cmpmem.
3505 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
3506 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
3508 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
3510 * doc/md.texi (cmpstrM): Describe as String compare insn, not
3514 2003-07-11 Loren James Rittle <ljrittle@acm.org>
3516 * config/i386/freebsd.h (SET_ASM_OP): Remove.
3517 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
3518 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
3519 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
3521 2003-07-11 Richard Henderson <rth@redhat.com>
3523 * function.c (assign_parms): Don't recombine complex args if
3524 fnargs is unchanged from orig_fnargs.
3525 (split_complex_args): Return args without complex before copying.
3526 Re-layout the modified parameters.
3528 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
3530 * regclass.c (choose_hard_reg_mode): Add third argument.
3531 Changed all callers.
3532 * rtl.h (choose_hard_reg_mode): Update declaration.
3533 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
3534 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
3536 2003-07-11 Geoffrey Keating <geoffk@apple.com>
3538 * c-decl.c (finish_decl): Handle 'used' here...
3539 * cgraphunit.c (cgraph_finalize_function): ... and here ...
3540 * c-common.c: (handle_used_attribute): ... not here.
3542 * configure.in (onstep): Support --enable-intermodule.
3543 * Makefile.in (OBJS-common): New.
3545 (OBJS-archive): New.
3546 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
3547 (OBJS-onestep): New.
3548 (libbackend.a): Support @onestep@.
3549 (libbackend.o): New.
3550 * configure: Regenerate.
3552 * c-common.h (c_reset_state): New prototype.
3553 (c_parse_file): New prototype.
3554 (finish_file): Move prototype from c-tree.h.
3555 * c-decl.c: Include <hashtab.h>.
3556 (builtin_decls): New.
3557 (current_file_decl): New.
3558 (duplicate_decls): Add extra parameter. Change all callers. Don't
3559 output duplicate common symbols.
3560 (link_hash_hash): New.
3561 (link_hash_eq): New.
3562 (poplevel): Handle popping of the top level.
3563 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
3564 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
3565 (pushdecl_top_level): Likewise.
3566 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
3567 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
3568 (finish_decl): Handle TRANSLATION_UNIT_DECL.
3569 (merge_translation_unit_decls): New.
3570 (c_write_global_declarations): New.
3571 (c_reset_state): New.
3572 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
3573 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
3574 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
3575 TRANSLATION_UNIT_DECL.
3576 (c_objc_common_finish_file): Call merge_translation_unit_decls.
3577 * c-opts.c (in_fnames): Rename from in_fname.
3578 (c_common_decode_option): Handle multiple input filenames.
3579 (c_common_post_options): Likewise.
3580 (c_common_parse_file): Likewise; also, call c_parse_file rather than
3582 * c-parse.in: Move cleanup code to c_parse_file.
3583 (free_parser_stacks): Move contents to c_parse_file.
3584 (c_parse_file): New.
3585 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
3587 (C_DECL_FILE_SCOPE): New.
3588 (finish_file): Move prototype to c-common.h.
3589 (merge_translation_unit_decls): New prototype.
3590 (comptypes): Add extra parameter to prototype.
3591 (c_write_global_declarations): New prototype.
3592 * c-typeck.c (tagged_types_tu_compatible_p): New.
3593 (function_types_compatible_p): Add extra parameter, change all callers.
3594 (type_lists_compatible_p): Likewise.
3595 (comptypes): Likewise.
3596 (struct tagged_tu_seen): New.
3597 (tagged_tu_seen_base): New.
3598 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
3599 (c_mark_addressable): Remove #if 0 code.
3600 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
3601 comment explaining why it shouldn't have to.
3602 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
3604 * cppinit.c (cpp_read_next_file): New.
3605 (cpp_read_main_file): Use it.
3606 * cpplib.c (undefine_macros): New.
3607 (cpp_undef_all): New.
3608 * cpplib.h (cpp_read_next_file): Prototype.
3609 (cpp_undef_all): Prototype.
3610 * langhooks-def.h (write_global_declarations): Remove prototype.
3611 * toplev.h (write_global_declarations): Add prototype.
3612 * tree.c (decl_type_context): Use switch statement, handle
3613 TRANSLATION_UNIT_DECL.
3614 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
3615 (TRANSLATION_UNIT_DECL): New kind of tree.
3616 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
3617 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
3618 * doc/invoke.texi: Make attempt to document new functionality.
3620 2003-05-19 Per Bothner <bothner@apple.com>
3622 * gcc.c (combine_inputs): New.
3623 (process_command): Set combine_inputs.
3624 (do_spec_1): Handle combine_inputs.
3627 2003-07-10 James E Wilson <wilson@tuliptree.org>
3629 PR optimization/9745
3630 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
3631 loop_insn_emit_before.
3632 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
3634 2003-07-10 Zack Weinberg <zack@codesourcery.com>
3636 * cppcharset.c: Fix comment.
3637 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
3638 (EILSEQ): #define to EINVAL if not already defined.
3639 (convert_using_iconv): #if out when !HAVE_ICONV.
3640 (init_iconv_desc): Handle !HAVE_ICONV here...
3641 (cpp_init_iconv): ...not here.
3643 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
3645 * common.opt: More --help messages.
3646 * opts.c (print_help): Use puts().
3647 * toplev.c (f_options): Remove help text.
3648 (display_help): Don't dump f_options.
3650 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
3652 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
3653 Move i?86-*-interix* to the don't-fix list.
3654 * fixinc/fixinc.interix: Delete with extreme prejudice.
3656 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
3659 * doc/install.texi: Document requirements for ia64-*-hpux* target.
3661 2003-07-10 Roger Sayle <roger@eyesopen.com>
3663 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
3665 2003-07-10 Zack Weinberg <zack@codesourcery.com>
3667 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
3668 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
3669 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
3670 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
3671 convert_no_conversion, convert_using_iconv): New functions.
3672 (APPLY_CONVERSION): New macro.
3673 (struct conversion, conversion_tab): New data structure.
3674 (init_iconv_desc): Check conversion_tab for a custom conversion
3675 primitive before trying to use iconv.
3676 (convert_cset): Deleted.
3677 (cpp_init_iconv): Use UTF- terminology, not UCS-.
3678 (_cpp_destroy_iconv): Update to match.
3679 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
3680 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
3681 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
3682 (_cpp_interpret_string_notranslate): New function, moved here
3685 * cpphash.h (convert_f, struct cset_converter): New types.
3686 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
3687 are now struct cset_converter, not bare iconv_t.
3689 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
3690 all callers changed.
3692 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
3694 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
3695 to opts.sh command line.
3696 * opts.sh: Write to temporary files with a move-if-change at the end.
3698 2003-07-10 Denis Chertykov <denisc@overta.ru>
3699 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3701 * combine.c (gen_binary): Handle the CLOBBER rtx and
3702 don't build a binary operation with it.
3704 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3706 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
3707 store_killed_after, store_killed_before): Keep track of the correct
3708 dependency function to use.
3710 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
3711 * toplev.c (do_compile): Don't try to open dump files before
3712 lang_dependent_init initializes dump_base_name.
3714 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3716 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
3718 * config/frv/frv.c (frv_expand_builtin): Likewise.
3719 * config/sh/sh.c (sh_media_init_builtins): Likewise.
3721 2003-07-09 Mark Mitchell <mark@codesourcery.com>
3724 * doc/invoke.texi (C++ Dialect Options): Change documentation of
3727 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
3729 * tm.texi (RETURN_ADDR_OFFSET): Document.
3731 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
3733 * gcov-io.h: Update documentation.
3734 (GCOV_UNSIGNED2STRING): New.
3735 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
3736 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
3737 GCOV_TAG_SUMMARY_LENGTH): Adjust.
3738 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
3739 GCOV_TAG_COUNTER_NUM): New.
3740 (GCOV_BLOCK_SIZE): Number of words.
3741 (gcov_var): Adjust buffer type.
3742 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
3743 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
3744 count, not byte count.
3745 (gcov_open): Adjust overread init.
3746 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
3747 gcov_write_string, gcov_write_tag, gcov_write_length,
3748 gcov_write_tag_length): Adjust.
3749 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
3750 (gcov_sync, gcov_seek): Adjust.
3751 * gcov-dump.c (print_usage): Show gcc version only.
3752 (dump_file): Use GCOV_UNSIGNED2STRING.
3753 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
3754 * gcov.c (print_version): Show gcc version only.
3755 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
3756 GCOV_TAG_*_NUM macros.
3757 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
3758 GCOV_TAG_COUNTER_LENGTH.
3759 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
3760 Use GCOV_TAG_COUNTER_NUM.
3761 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
3762 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
3764 2003-07-10 Andreas Schwab <schwab@suse.de>
3766 * gcov-dump.c (dump_file): Fix missing address operator.
3768 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
3771 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
3773 (fold_single_bit_test): If sign_bit_p() fails, assume that the
3774 bit being tested is not a sign bit.
3776 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
3778 * config/h8300/h8300.md (a peephole2): New.
3780 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
3782 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
3783 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
3784 from ld-linux.so.2 to ld.so.1.
3785 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
3786 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
3787 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
3788 nor -Wl,-rpath-link.
3789 (LIB_SPEC): Add -rpath-link if !static.
3790 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
3791 * config/mn10300/mn10300.c (mn10300_protect_label): New
3793 * config/mn10300/linux.h (PRINT_OPERAND,
3794 PRINT_OPERAND_ADDRESS): Set it during their execution.
3795 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
3796 mn10300_protect_label is set.
3797 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
3799 (LIB_SPEC, STARTFILE_SPEC): Define.
3800 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
3801 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
3802 FLOAT_BIT_ORDER_MISMATCH.
3803 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
3804 * config.gcc (am33_2.0-*-linux*): Added.
3805 * config/mn10300/linux.h: New.
3806 * config/mn10300/t-linux: New.
3808 2003-07-10 Andreas Jaeger <aj@suse.de>
3810 * fold-const.c: Properly wrap prototypes.
3812 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
3814 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
3815 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
3817 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
3818 * config/mn10300/mn10300.h: GTY-declare it.
3819 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
3820 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
3821 prototype. Use incoming RTL argument.
3822 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
3823 * config/mn10300/mn10300.md (int_label): Move C statements...
3824 (GOTaddr2picreg): ... here.
3825 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3826 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
3827 * config/mn10300/mn10300.c (mn10300_encode_section_info):
3828 ... here. New function.
3829 (TARGET_ENCODE_SECTION_INFO): Define to it.
3830 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
3831 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
3833 (mn10300_loadPC): Define as insn splittable after reload.
3834 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
3835 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
3836 be defined in .rodata even in PIC, now that the assembler
3838 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
3839 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
3840 symbol take an underscore prefix.
3841 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
3842 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
3843 legitimize_pic_address): Declare.
3844 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
3845 the PIC register as fixed.
3846 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
3847 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
3849 (LEGITIMATE_PIC_OPERAND_P): Define.
3850 (PIC_OFFSET_TABLE_REGNUM): Define.
3851 (GOT_SYMBOL_NAME): Define.
3852 (SYMBOLIC_CONST_P): Define.
3853 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
3855 (MN10300_GLOBAL_P): Test it.
3856 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
3857 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
3858 * config/mn10300/mn10300.c (print_operand): Handle unspec.
3859 (expand_prologue): Set PIC register.
3860 (call_address_operand): Don't match SYMBOL_REFs in PIC.
3861 (legitimize_address): Call legitimize_pic_address.
3862 (legitimize_pic_address): New fn.
3863 (legitimate_pic_operand_p): New fn.
3864 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
3865 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
3866 UNSPEC_PLT): New constants.
3867 (pop_pic_reg): New insn.
3868 (movsi): Adjust non-PIC addresses.
3869 (builtin_setjmp_receiver): Restore the PIC register.
3871 (call): Adjust non-PIC addresses.
3872 (int_label, GOTaddr2picreg): New expands.
3873 (am33_loadPC): New insn.
3874 (mn10300_loadPC): New expand.
3875 (call_next_insn): New insn.
3876 (add_GOT_to_pic_reg): New expand.
3877 (symGOT2reg, symGOT2reg_i): New expands.
3878 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
3879 (sym2PIC, sym2PLT): New expands.
3881 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
3883 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
3884 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
3885 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
3886 to flag_unsafe_math_optimizations.
3887 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
3888 * config/mn10300/mn10300.c (expand_prologue): Mark
3889 FP-register-saving insns as frame-related.
3890 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
3891 * config/mn10300/mn10300.c
3892 (mn10300_get_live_callee_saved_regs): Don't search past
3893 LAST_EXTENDED_REGNUM.
3894 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
3895 * config/mn10300/mn10300.md: Remove excessive line breaks from
3896 `@' output patterns that were accounted as additional
3898 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
3899 Re-introduce changes accidentally removed in Richard Sandiford's
3901 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
3902 Re-instate am33-2 lost in merge from net GCC.
3903 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
3904 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
3905 floating-point registers.
3906 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
3907 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
3908 pessimizations that had gone in on 2000-05-08.
3909 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
3910 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
3911 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
3912 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
3914 * (movhi): Likewise.
3915 * (movsi): Likewise.
3916 * (movsf): Likewise.
3917 * (movdi): Likewise.
3918 * (movdf): Likewise.
3919 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
3920 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
3921 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
3922 (expand_prologue, expand_epilogue): Save and restore FP regs.
3923 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
3924 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
3925 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
3926 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
3927 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
3929 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
3930 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
3931 Discourage the two-argument, longer opcodes.
3932 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
3934 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
3935 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
3936 * config/mn10300/mn10300.md (cmpsf): New pattern.
3937 (branch): Test mdep.fpCC and output fbCC.
3938 * config/mn10300/mn10300.c (print_operand): Output conditions.
3939 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
3940 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
3941 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
3942 mulsf3, divsf3): Use the `F' constraint for FP values.
3943 * config/mn10300/mn10300.c (const_1f_operand): New function.
3944 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
3945 * config/mn10300/mn10300.md (sqrtsf2): New expand.
3946 (rsqrtsf2): New insn.
3947 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
3948 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
3950 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
3951 * config/mn10300/mn10300.md (abssf2, negdf2): On
3952 TARGET_AM33_2, expand to...
3953 (abssf2_am33_2, negdf2_am33_2): New insns.
3954 (addsf3, subsf3, mulsf3, divsf3): Likewise.
3955 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
3956 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
3957 movdi, movdf): Added FP regs.
3958 * invoke.texi (-mam33-2, -mno-am33-2): Document.
3959 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
3960 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
3962 (REGNO_AM33_2_FP_P): Renamed to...
3963 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
3964 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
3965 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
3966 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
3967 regs from GENERAL_REGS.
3968 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
3969 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
3970 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
3971 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
3972 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
3973 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
3975 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
3976 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
3977 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
3978 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
3979 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
3980 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
3981 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
3982 AM33/2.0 floating-point registers.
3983 (CONDITIONAL_REGISTER_USAGE): Adjust.
3984 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
3985 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
3986 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
3987 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
3988 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
3989 (MULTILIB_DIRNAMES): Likewise.
3990 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
3991 `__AM33_2__' when `-mam33-2' is given.
3992 (TARGET_AM33_2): Define.
3993 (TARGET_SWITCHES): Adjust.
3994 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
3997 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
3999 * doc/install.texi: Add missing @.
4001 2003-07-09 Bob Wilson <bob.wilson@acm.org>
4003 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
4005 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
4008 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
4010 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
4013 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
4014 "x-crtfini.o" with "crtinit.o", "crtfini.o".
4016 * fixinc/inclhack.def (limits_ifndefs): Add select test.
4017 * fixinc/fixincl.x: Rebuild.
4019 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
4020 * fixinc/fixincl.x: Rebuild.
4022 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
4024 * doc/install.texi (Configuration): Document the valgrind option
4025 to --enable-checking.
4027 Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
4029 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
4031 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4033 * c-lex.c (cb_ident): Cast cstr.text to const char *.
4035 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
4037 * gcov-io.h: Update documentation.
4038 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
4040 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
4041 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
4042 (struct gcov_var): Change buffer's type. Add endian flag.
4043 (gcov_open): Remove mode in libgcov.
4044 (gcov_magic): Prototype.
4045 * gcov-io.c (from_file): New.
4046 (gcov_open): Clear endian flag.
4048 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
4050 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
4051 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
4052 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
4053 * gcov-iov.c (main): Correct cast.
4054 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
4056 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
4057 (coverage_init): Use GCOV_NOTE_SUFFIX.
4058 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
4059 Rename to gcov_version, and return flag.
4060 (gcov_exit): Use gcov_version.
4061 (__gcov_init): Use gcov_version.
4062 * Makefile.in (coverageexts): Update.
4063 * gcov.c (print_version): Remove endianness conversion.
4064 (create_file_names): Use GCOV_NOTE_SUFFIX.
4065 (read_graph_file): Use gcov_magic.
4066 (read_count_file): Likewise.
4067 * gcov-dump.c (dump_file): Remove endianness conversion, use
4070 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
4072 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
4074 * configure: Regenerated.
4075 * Makefile.in (ALL_CFLAGS): Correct its comment.
4077 2003-07-08 Mark Mitchell <mark@codesourcery.com>
4079 * fold-const.c (make_range): Do not access operand 1 for a
4080 zero-operand operator.
4082 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
4084 * toplev.c (warn_dummy, W_options): Die.
4085 (display_help): Don't print W_options.
4086 * common.opt: Add W_options help from toplev.c.
4088 2003-07-09 Andreas Jaeger <aj@suse.de>
4090 * opts.c (wrap_help): Only pass int arguments as arguments to
4091 printf's '*' modifier. Change argument of function.
4093 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
4095 * doc/invoke.texi: Fix misspelling of "@item".
4097 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
4099 * config/i386/i386.md: Remove an old comment about
4102 Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
4104 * cgraph.c (cgraph_node_name): New function.
4105 (dump_cgraph): Use it.
4106 * cgraph.h (cgraph_dump_file): Declare.
4107 (cgraph_node_name): Declare.
4108 * cgraphunit.c: Include timevar.h
4109 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
4110 (cgraph_optimize_function): Use TV_INTEGRATION.
4111 (cgraph_mark_local_functions): reorganize dumps.
4112 (cgraph_mark_functions_to_inline_once): Likewise.
4113 (cgraph_optimize): Likewise; use timevar.
4114 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
4115 * toplev.c (dump_file_index): Add DFI_cgraph.
4116 (dump_file_info): Likewise.
4117 (cgraph_dump_file): New global variable.
4118 (do_compile): Open and close cgraph dump.
4119 * invoke.texi (-d): Document new flag; renumber.
4121 2003-07-08 Roger Sayle <roger@eyesopen.com>
4124 * calls.c (emit_call_1): Don't bother popping the arguments off of
4125 the stack after a noreturn function call; The adjustment is dead.
4126 (expand_call): Likewise.
4128 2003-07-08 Geoffrey Keating <geoffk@apple.com>
4130 * expr.c (MOVE_MAX_PIECES): Move from here...
4131 * defaults.h (MOVE_MAX_PIECES): ... to here.
4133 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
4135 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
4137 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4139 * genattr.c (internal_dfa_insn_code): Don't prototype.
4140 * genattrtab.c (attr_desc): Add `static_p' field.
4141 (expand_units): Make blockage range and ready cost functions
4143 (write_attr_get): Don't add extern prototypes in C file. Mark
4144 static functions as appropriate.
4145 (find_attr, make_internal_attr): Initialize static_p.
4146 * genattrtab.h (ATTR_STATIC): New macro.
4147 * genautomata.c (output_internal_reset_func): Mark output function
4149 (make_internal_dfa_insn_code_attr): Mark output function as static.
4151 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4153 * genattrtab.h: Add new macros for attr `special' flags.
4154 * genattrtab.c (attr_desc): Reorder/resize fields better.
4155 Use attr `special' macros in all calls to make_internal_attr.
4156 * genautomata.c: Likewise.
4158 Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
4160 * c-common.c (c_estimate_num_insns_1): New static function.
4161 (c_estimate_num_insns): New global function.
4162 * c-common.h (DECL_NUM_STMTS): Rename to...
4163 (DECL_ESTIMATED_INSNS): ... this.
4164 (c_estimate_num_insns): Declare.
4165 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
4166 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
4167 * c-semantics.c (add_stmt): Do not account statements.
4168 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
4170 * langhooks.h (lang_hooks_for_tree_inlining): Add
4172 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
4174 (max-inline-insns): set to 300.
4175 (min-inline-insns): set to 10.
4176 * tree-inline.c (struct inline_data): Rename inlined_stmts to
4178 (INSNS_PER_STMT): Kill.
4179 (inlinable_function_p): Compute and store body size.
4180 (expand_call_inline): Likewise.
4181 (optimize_inline_calls): Likewise.
4183 2003-07-08 James E Wilson <wilson@tuliptree.org>
4186 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
4187 loop over new variable t2 instead of t.
4189 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
4192 * config/i386/winnt.c: Replace use of error(), warning() with
4193 error_with_decl(), warning_with_decl(), throughout.
4195 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
4197 * opts.c (wrap_help): Use unsigned int, not size_t.
4199 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
4201 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
4202 as .file/.loc directives are incompatible with linker relaxation.
4204 2003-07-08 Zack Weinberg <zack@codesourcery.com>
4206 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
4207 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
4208 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
4209 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
4210 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
4211 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
4212 Escape { and } characters which are not part of range expressions.
4213 * fixinc/fixincl.x: Regenerate.
4214 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
4216 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
4219 * tree-inline.c (find_alloca_call): Use
4220 walk_tree_without_duplicates, instead of walk_tree.
4221 (find_builtin_longjmp_call): Likewise.
4222 * c-objc-common.c (c_cannot_inline_fn): Likewise.
4223 * c-semantics.c (find_reachable_label): Likewise.
4225 2003-07-08 Jakub Jelinek <jakub@redhat.com>
4228 * config/i386/i386.c (ix86_check_movabs): New function.
4229 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
4230 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
4231 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
4233 2003-07-08 Chris Demetriou <cgd@broadcom.com>
4235 * Makefile.in (install-po): Cope with empty CATALOGS.
4237 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
4239 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4240 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
4241 (SECTION_FUNCTION_TEMPLATE): Delete.
4242 * config/mips/elf.h: As for elf64.h.
4243 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
4244 * config/mips/linux.h: As for elf.h
4245 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4246 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
4247 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
4248 of in_sdata from current_section_name and current_section_flags.
4249 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4250 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
4251 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
4252 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
4253 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
4254 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4255 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
4256 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
4257 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
4258 (override_options): Remove setting of MASK_GPOPT.
4259 (mips_output_external): Use mips_in_small_data_p to check whether a
4260 symbol needs an .extern directive. Don't emit such directives for
4261 TARGET_EXPLICIT_RELOCS.
4262 (mips_declare_object): Update accordingly.
4263 (mips_select_rtx_section): Call named_section rather than
4265 (mips_select_section): Use default_elf_section_section for everything
4266 except .text string constants.
4267 (mips_in_small_data_p): New function.
4268 (mips_encode_section_info): Remove small data handling.
4269 (mips_unique_section): Delete.
4270 (iris6_section_type_flags): New function.
4271 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
4273 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4276 * pa.md: Disparage all mtsar constraints.
4277 (extzv, extv, insv): Don't fail on length of {32|64}.
4279 2003-07-08 Zack Weinberg <zack@codesourcery.com>
4281 * system.h: Poison MAP_CHARACTER.
4282 * config/i370/i370-protos.h (mvs_map_char): Delete.
4283 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
4284 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
4285 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
4287 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
4289 * toplev.c (randomize): Correct call to time().
4291 2003-07-08 Jakub Jelinek <jakub@redhat.com>
4293 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
4294 REG_EQUIV notes as well.
4296 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
4298 * doc/md.texi: Fix the description of addmodecc.
4300 2003-07-07 Zack Weinberg <zack@codesourcery.com>
4302 * Makefile.in (top_builddir): Set to "..", not ".".
4303 (INTLLIBS, INTLDEPS): Delete.
4304 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
4305 (LIBDEPS): Add $(LIBICONV_DEP).
4306 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
4307 (INCLUDES): Replace -I../intl with @INCINTL@.
4308 ($(top_builddir)/intl/libintl.a): Delete rule.
4309 (stage2-start, stage3-start, stage4-start, stageprofile-start,
4310 stagefeedback-start): Use $$ for variable to be evaluated by
4312 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
4313 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
4314 * aclocal.m4: sinclude ../config/progtest.m4. Add
4315 contents of lcmessage.m4 from gettext distro.
4316 * configure.in: Check for wchar.h and setlocale. Set
4317 LIBICONV_DEP to the empty string and substitute it.
4318 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
4319 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
4320 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
4321 in $LIBINTL, to avoid linking it twice.
4322 * configure, config.in: Regenerate.
4324 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
4326 * fixinc/mkfixinc.sh: Remove winnt support.
4327 * fixinc/fixinc.winnt: Delete with extreme prejudice.
4329 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
4331 * Makefile.in: Update.
4332 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
4333 * c.opt: Update documentation.
4334 * common.opt: Add some help text.
4335 * opts.c: Include intl.h.
4336 (wrap_help, print_help): New.
4337 (find_opt, handle_option, common_handle_option): opt_text now
4338 contains the '-'. Use print_help to output help.
4339 * opts.h (struct cl_option): New member "help".
4340 * opts.sh: Update to handle help text output and to prepend
4342 * toplev.c (display_help): Remove some help text.
4344 2003-07-07 David Edelsohn <edelsohn@gnu.org>
4345 Fariborz Jahanian <fjahanian@apple.com>
4347 * configure.in: Test for PowerPC mfcr field support in assembler.
4348 * config.in, configure: Regenderated.
4350 * config/rs6000/power4.md: Add mfcrf reservation.
4351 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
4352 * config/rs6000/rs6000.c (mfcr_operation): Define.
4353 (print_operand): Add 'Q' case for mfcrf.
4354 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
4355 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
4356 (movcc_internal1): Emit optional field operand for mfcr and set
4357 "type" attribute appropriately.
4358 (mfcr SCC): Likewise.
4359 (movesi_from_cr_one): New.
4361 2003-07-07 Roger Sayle <roger@eyesopen.com>
4363 * config/i386/i386.md: Correct check-in of incorrect version.
4365 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4367 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
4368 adjacent stdio calls.
4369 * c-decl.c (c_print_identifier): Likewise.
4370 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
4371 * print-rtl.c (print_rtx): Likewise.
4372 * print-tree.c (print_node_brief, print_node): Likewise.
4373 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
4375 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
4376 * config.in, configure: Regenerated.
4378 2003-07-07 Roger Sayle <roger@eyesopen.com>
4381 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
4382 Changed to define_expand patterns that copy operand[1] to prevent
4383 it from being clobbered before emitting an atan2?f3_1 insn.
4384 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
4385 patterns that actually specify the behaviour of x87's FPATAN.
4387 2003-07-07 Jakub Jelinek <jakub@redhat.com>
4389 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
4390 clearing of SYMBOL_FLAG_LOCAL bit.
4391 If vcall_offset fits into signed 16-bit immediate, use
4392 one instruction for both addition and load.
4394 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
4396 * opts.c (common_handle_option): Correct handling of the
4397 -falign- switches that do and don't take an argument.
4399 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4401 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
4403 (pushhi1_h8300hs): Likewise.
4405 2003-07-07 Andreas Jaeger <aj@suse.de>
4407 * genextract.c: Convert remaining prototypes to ISO C90.
4409 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
4410 * fold-const.c (fold_single_bit_test): Likewise.
4411 * diagnostic.c (default_diagnostic_finalizer): Likewise.
4412 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
4414 * gengtype.c (write_array): Generate ISO C90 prototypes.
4416 * genflags.c (gen_proto): Generate ISO C90 prototypes.
4418 2003-07-07 Roger Sayle <roger@eyesopen.com>
4420 PR optimization/11059
4421 * expr.c (can_store_by_pieces): Return true if length is zero.
4422 (store_by_pieces): If length is zero and endp is two, abort,
4423 othwerise, if length is zero and endp is not two, return "to".
4424 (clear_by_pieces): Do nothing if length is zero.
4425 (clear_storage): Do nothing if length is zero.
4426 (store_constructor): Simplify code when size is zero, or the
4427 target has already been cleared. This avoids emitting a
4428 blockage instruction when initializing empty structures.
4430 2003-07-07 Andreas Jaeger <aj@suse.de>
4432 * mips-tfile.c: Convert prototypes to ISO C90.
4433 * mips-tdump.c: Convert prototypes to ISO C90.
4435 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
4437 * rtl.h (emit_line_note): Take a location_t.
4438 (emit_line_note_force): Remove.
4439 (set_file_and_line_for_statement): Take a location_t.
4440 * tree.g (emit_line_note): Take a location_t.
4441 * emit-rtl.c (emit_line_note): Take a location_t.
4442 (emit_line_note_force): Remove.
4443 * function.c (init_function_start): Adjust emit_line_note call.
4444 (expand_function_end): Use force_next_line_note, not
4445 emit_line_note_force.
4446 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
4447 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
4448 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
4449 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
4450 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
4451 genrtl_continue_stmt, genrtl_switch_stmt,
4452 genrtl_asm_stmt): Likewise.
4453 * expr.c (expand_expr): Likewise.
4454 * integrate.c (expand_inline_function): Likewise.
4455 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
4456 (expand_decl_init): Adjust emit_line_note call.
4458 2003-07-07 Dale Johannesen <dalej@apple.com>
4460 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
4462 2003-07-07 Andreas Jaeger <aj@suse.de>
4464 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
4465 * config/i386/i386.c: Likewise.
4467 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4469 * config/h8300/h8300.md: Use gen_int_mode instead of
4470 GEN_INT (trunc_int_for_mode (...)).
4472 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4474 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
4475 2 bytes and then subtract 2 from the stack pointer.
4476 (pushhi1_h8300hs): Likewise.
4478 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
4480 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
4482 * configure: Regenerated.
4483 * Makefile.in: Remove extraneous comment.
4484 * toplev.c (randomize): Protect against potential multiple calls.
4485 * doc/invoke.texi (-frandom-seed): Document use for in coverage
4488 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4489 Eric Botcazou <ebotcazou@libertysurf.fr>
4491 PR optimization/11198
4492 * alias.c (objects_must_conflict_p): Return 1 if the types have
4493 the same alias set, not if the alias sets only conflict.
4495 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
4497 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
4498 (convert_cset): Change inbuf to type ICONV_CONST char.
4499 * Makefile.in (LIBS): Add LIBICONV.
4501 * doc/invoke.texi (-falign-functions): Document that
4502 when n is zero then a machine-dependent default is used.
4503 (-falign-labels): Document that when n is zero then a
4504 machine-dependent default is used and that -falign-labels =1
4505 is equivalent to -fno-align-labels.
4506 (-falign-loops): Likewise.
4507 (-falign-jumps): Likewise.
4509 2003-07-06 Art Haas <ahaas@airmail.net>
4511 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
4514 2003-07-06 James E Wilson <wilson@tuliptree.org>
4516 PR optimization/9812
4517 * rtl.h (mem_for_const_double): Delete prototype.
4518 * varasm.c (mem_for_const_double): Delete function.
4519 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
4520 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
4521 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
4522 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
4523 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
4524 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
4525 comment about confused support for XFmode constants.
4527 Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
4529 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
4531 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
4533 * config/h8300/h8300.c: Fix comment typos.
4534 * config/h8300/h8300.md: Likewise.
4535 * config/i386/athlon.md: Likewise.
4536 * config/i386/i386.c: Likewise.
4537 * config/i386/pentium.md: Likewise.
4538 * config/ia64/ia64.c: Likewise.
4539 * config/ia64/itanium1.md: Likewise.
4540 * config/ia64/itanium2.md: Likewise.
4541 * config/m32r/m32r.md: Likewise.
4542 * config/m68hc11/m68hc11.c: Likewise.
4543 * config/mcore/mcore.c: Likewise.
4544 * config/mips/sr71k.md: Likewise.
4545 * config/mips/t-iris5-as: Likewise.
4546 * config/mmix/mmix.h: Likewise.
4547 * config/ns32k/ns32k.h: Likewise.
4548 * config/ns32k/NOTES: Fix a typo.
4550 2003-07-06 Andreas Jaeger <aj@suse.de>
4552 * stmt.c: Convert remaining prototypes to ISO C90.
4553 * cfglayout.c: Likewise.
4554 * dbxout.c: Likewise.
4556 * genemit.c: Likewise.
4558 * basic-block.h: Convert prototypes to ISO C90.
4559 * c-parse.in: Likewise.
4560 * c-pragma.h: Likewise.
4561 * c-typeck.c: Likewise.
4562 * cfghooks.h: Likewise.
4563 * cfgloopanal.c: Likewise.
4564 * dbxout.h: Likewise.
4565 * debug.h: Likewise.
4566 * dwarf2asm.h: Likewise.
4568 * gengtype-lex.l: Likewise.
4569 * sched-int.h: Likewise.
4570 * timevar.c: Likewise.
4572 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
4574 * c-common.h (c_comon_handle_filename,
4575 c_common_missing_arguement): New.
4576 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4577 LANG_HOOKS_MISSING_ARGUMENT): New.
4578 * c-opts.c (missing_arg): Rename c_common_missing_argument,
4579 update to be an appropriate langhook.
4580 (c_common_handle_option): Don't handle filenames.
4581 (c_common_handle_filename): New.
4582 * hooks.c (hook_void_constcharptr,
4583 hook_bool_constcharptr_size_t_false): New.
4584 * hooks.h (hook_void_constcharptr,
4585 hook_bool_constcharptr_size_t_false): New.
4586 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
4587 LANG_HOOKS_MISSING_ARGUMENT): New.
4588 (LANG_HOOKS_INITIALIZER): Update.
4589 * langhooks.h (struct lang_hooks): Add handle_filename and
4591 * opts.c (handle_option): Don't handle filenames here, but ...
4592 (handle_options): ... here.
4593 (common_handle_option): Don't handle missing arguments here.
4594 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4595 LANG_HOOKS_MISSING_ARGUMENT): New.
4597 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
4599 * Makfile.in: Remove traces of mbchar.
4600 * c-parse.in (MULTIBYTE_CHARS): Remove.
4601 * config.in (MULTIBYTE_CHARS): Remove.
4602 * configure: Remove --enable-mbchar.
4603 * configure.in: Remove --enable-mbchar.
4604 * mbchar.c, mbchar.h: Remove.
4605 * system.h: Poison MULTIBYTE_CHARS.
4606 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
4607 * config/linux.h (MULTIBYTE_CHARS): Remove.
4608 * config/svr4.h (MULTIBYTE_CHARS): Remove.
4609 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
4611 2003-07-06 Andreas Jaeger <aj@suse.de>
4613 * varray.c (varray_check_failed): Fix typo.
4615 * unroll.c: Convert prototypes to ISO C90.
4616 * varasm.c: Likewise.
4617 * varray.c: Likewise.
4618 * varray.h: Likewise.
4619 * vmsdbgout.c: Likewise.
4620 * xcoffout.c: Likewise.
4621 * xcoffout.h: Likewise.
4623 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4625 * gcov-io.h: Add a local time stamp.
4626 (struct gcov_info): Add stamp field.
4627 (gcov_truncate): New.
4628 * coverage.c (read_counts_file): Skip the stamp.
4629 (coverage_begin_output): Write the stamp.
4630 (build_gcov_info): Declare and init the stamp.
4631 (coverage_finish): Only unlink data file, if stamp is zero.
4632 * gcov-dump.c (dump_file): Dump the stamp.
4633 * gcov.c (bbg_stamp): New.
4634 (release_structures): Clear bbg_stamp.
4635 (read_graph_file): Read stamp.
4636 (read_count_file): Check stamp.
4637 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
4639 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4641 * tree.h (default_flag_random_seed): Remove.
4642 * toplev.h (local_tick): Declare.
4643 * tree.c (flag_random_seed, default_flag_random_seed): Move to
4645 (append_random_chars): Don't call default_flag_random_seed.
4646 * toplev.c (flag_random_seed): Define here. Set local_tick.
4647 (local_tick): Define.
4648 (randomize): New, moved from tree.c.
4649 (print_switch_values): Adjust.
4650 (toplev_main): Call randomize.
4652 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4654 * tree.h (crc32_string): Declare.
4655 * tree.c (append_random_chars): Remove.
4656 (crc32_string): New.
4657 (get_file_function_name_long): Use crc32_string here.
4659 2003-07-06 Andreas Jaeger <aj@suse.de>
4661 * gcc.c: Convert prototypes to ISO C90.
4663 * gcov-dump.c: Likewise.
4664 * gcov-iov.c: Likewise.
4666 * genattrtab.h: Likewise.
4668 * global.c: Likewise.
4669 * graph.c: Likewise.
4670 * graph.h: Likewise.
4671 * hosthooks.h: Likewise.
4672 * hooks.h: Likewise.
4673 * hooks.c: Likewise.
4674 * hashtable.h: Likewise.
4675 * hashtable.c: Likewise.
4676 * haifa-sched.c: Likewise.
4677 * integrate.h: Likewise.
4678 * integrate.c: Likewise.
4679 * input.h: Likewise.
4680 * ifcvt.c: Likewise.
4682 * langhooks-def.h: Likewise. Add extern to prototypes.
4683 * langhooks.c: Likewise.
4684 * langhooks.h: Likewise.
4686 * local-alloc.c: Likewise.
4687 * loop-init.c: Likewise.
4688 * loop-unroll.c: Likewise.
4689 * loop-unswitch.c: Likewise.
4691 * loop.h: Likewise. Add extern to prototypes.
4692 * machmode.h: Likewise.
4694 * mbchar.c: Likewise.
4695 * mbchar.h: Likewise.
4696 * mkdeps.c: Likewise.
4697 * mkdeps.h: Likewise.
4698 * optabs.c: Likewise.
4699 * optabs.h: Likewise.
4700 * output.h: Likewise.
4701 * gccspec.c: Likwise.
4702 * postreload.c: Likewise.
4703 * prefix.c: Likewise.
4704 * prefix.h: Likewise.
4705 * print-rtl.c: Likewise.
4706 * print-tree.c: Likewise.
4707 * profile.c: Likewise.
4708 * read-rtl.c: Likewise.
4711 * recog.c: Likewise.
4712 * recog.h: Likewise.
4713 * reg-stack.c: Likewise.
4714 * regclass.c: Likewise.
4715 * regmove.c: Likewise.
4716 * regrename.c: Likewise.
4718 * reload.c: Likewise.
4719 * reload.h: Likewise.
4720 * reload1.c: Likewise.
4721 * reorg.c: Likewise.
4722 * resource.c: Likewise.
4723 * resource.h: Likewise.
4724 * rtl-error.c: Likewise.
4727 * rtlanal.c: Likewise.
4728 * sbitmap.c: Likewise.
4729 * sbitmap.h: Likewise.
4730 * scan-decls.c: Likewise.
4732 * sched-deps.c: Likewise.
4733 * sched-ebb.c: Likewise.
4734 * sched-int.h: Likewise.
4735 * sched-rgn.c: Likewise.
4736 * sched-vis.c: Likewise.
4737 * sibcall.c: Likewise.
4738 * simplify-rtx.c: Likewise.
4739 * sreal.c: Likewise.
4740 * sreal.h: Likewise.
4741 * ssa-ccp.c: Likewise.
4742 * ssa-dce.c: Likewise.
4745 * stack.h: Likewise.
4747 * stor-layout.c: Likewise.
4748 * stringpool.c: Likewise.
4749 * target.h: Likewise.
4750 * timevar.c: Likewise.
4751 * timevar.h: Likewise.
4752 * tlink.c: Likewise.
4753 * tracer.c: Likewise.
4754 * tree-inline.c: Likewise.
4755 * tree-inline.h: Likewise.
4759 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4761 * combine.c (nonzero_bits1): Fix a warning.
4763 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4765 * config/h8300/h8300.c (compute_mov_length): Correct the
4766 length of loading CONST0_RTX (SFmode).
4768 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
4770 * toplev.c (output_clean_symbol_name): Remove.
4771 * toplev.h (output_clean_symbol_name): Remove.
4772 * config/alpha/alpha.c (unicosmk_output_module_name): Use
4773 lbasename & clean_symbol_name.
4775 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4777 * ggc.h: Follow spelling conventions.
4778 * config/i386/i386.c: Likewise.
4779 * config/i386/winnt.c: Likewise.
4780 * config/rs6000/rs6000.c: Likewise.
4782 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4784 * bt-load.c: Fix comment typos.
4785 * c-incpath.c: Likewise.
4787 * cfgcleanup.c: Likewise.
4788 * cfgloop.h: Likewise.
4789 * cfgloopmanip.c: Likewise.
4790 * cfgrtl.c: Likewise.
4791 * diagnostic.h: Likewise.
4792 * dwarfout.c: Likewise.
4793 * emit-rtl.c: Likewise.
4794 * et-forest.c: Likewise.
4795 * et-forest.h: Likewise.
4798 * genattr.c: Likewise.
4800 * langhooks.h: Likewise.
4801 * local-alloc.c: Likewise.
4802 * loop-unroll.c: Likewise.
4803 * loop-unswitch.c: Likewise.
4804 * ra-build.c: Likewise.
4805 * regclass.c: Likewise.
4806 * regmove.c: Likewise.
4807 * rtl.def: Likewise.
4808 * rtlanal.c: Likewise.
4809 * sched-ebb.c: Likewise.
4810 * sched-rgn.c: Likewise.
4811 * simplify-rtx.c: Likewise.
4813 * tracer.c: Likewise.
4816 2003-07-05 Zack Weinberg <zack@codesourcery.com>
4818 * cppcharset.c: Use the correct return type for the fallback iconv
4821 Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4823 Blame to Jan Hubicka <jh@suse.cz>
4824 * cfglayout.c (record_effective_endpoints): Split insns before
4825 first basic block correctly.
4827 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4829 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
4830 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
4831 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
4833 2003-07-05 Andreas Jaeger <aj@suse.de>
4835 * genattrtab.c (write_attr_get): Revert part of last patch to
4836 always write out a prototype.
4838 * genemit.c (gen_split): Readd lost unused attributes in last
4841 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4843 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
4844 different from header.
4846 2003-07-05 Andreas Schwab <schwab@suse.de>
4848 * config/m68k/m68k.c: Remove code protected by CRDS.
4849 * config/m68k/m68k.md: Likewise.
4851 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
4854 * c-opts.c (permit_fortran_options): New.
4855 (c_common_init_options): Accept fortran front end options if
4856 it looks like we might be preprocessing Fortran.
4857 (c_common_handle_option): Don't reject switch if permit_fotran_options.
4859 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4861 * genattr.c (internal_dfa_insn_code): Output prototype.
4862 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
4863 * genautomata.c: Likewise.
4864 * genconditions.c: Likewise.
4865 * genemit.c: Likewise.
4866 * genextract.c: Likewise.
4867 * gengenrtl.c: Likewise.
4868 * gengtype.c: Likewise.
4869 * genopinit.c: Likewise.
4870 * genoutput.c: Likewise.
4871 * genpeep.c: Likewise.
4872 * genrecog.c: Likewise.
4874 2003-07-04 Zack Weinberg <zack@codesourcery.com>
4876 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
4877 (struct cpp_options): Add narrow_charset, wide_charset,
4878 bytes_big_endian fields. Remove EBCDIC field.
4879 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
4881 * cpphash.h: Include <iconv.h> if we have it, otherwise
4882 provide a dummy definition of iconv_t.
4883 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
4884 (_cpp_valid_ucn): Update prototype.
4885 (_cpp_destroy_iconv): New prototype.
4887 * doc/cpp.texi: Document character set handling.
4888 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
4889 * doc/extend.texi: Delete entire section on multiline strings.
4890 Rewrite section on __FUNCTION__ etc now that these are
4893 * cppucnid.tab, cppucnid.pl: New files.
4894 * cppucnid.h: New generated file.
4895 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
4896 (iconv_open, iconv, iconv_close): Provide dummy definitions
4898 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
4899 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
4900 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
4901 cpp_interpret_string, narrow_str_to_charconst,
4902 wide_str_to_charconst): New.
4903 (ucn_valid_in_identifier): Use a binary search through the
4904 ucnranges table defined in cppucnid.h, not a long chain of if
4906 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
4907 character names are only valid in C++ and C99" to a warning.
4908 Issue the "meaning of \[uU] is different in traditional C"
4909 warning here. Take care not to let iconv see an invalid UCS
4910 value if we get a malformed UCN. Issue an error if we don't
4912 (cpp_interpret_charconst): Moved here from cpplex.c. Use
4913 cpp_interpret_string to do the heavy lifting.
4915 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
4916 narrow_charset, wide_charset fields of options structure.
4917 (cpp_destroy): Call _cpp_destroy_iconv.
4918 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
4919 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
4920 (cpp_interpret_charconst): Moved to cppcharset.c.
4921 * cpplib.c (dequote_string): Delete.
4922 (interpret_string_notranslate): New.
4923 (do_line, do_linemarker): Use interpret_string_notranslate.
4925 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
4927 * c-common.c (fname_string, combine_strings): Delete.
4928 * c-common.h (fname_string, combine_strings): Delete prototypes.
4929 * c-lex.c (ignore_escape_flag): Delete.
4930 (cb_ident): Use cpp_interpret_string, not lex_string.
4931 (get_nonpadding_token): New function.
4932 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
4933 Adjust calls to lex_string. Don't write *value twice.
4934 (lex_string): Now handles string constant concatenation.
4935 Most of the work handed off to cpp_interpret_string.
4936 Call fix_string_type here.
4937 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
4938 FUNC_NAME, throughout.
4939 (OBJC_STRING): New token type.
4940 (primary:STRING): No need to call fix_string_type here.
4941 (primary:objc_string): Make that OBJC_STRING.
4942 (objc_string nonterminal): Delete.
4943 (yylexname): Delete code to handle fake string constants.
4944 (yylexstring): Delete entirely.
4945 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
4946 to handle CPP_ATSIGN.
4948 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
4949 * c-opts.c (missing_arg, c_common_handle_option): Handle
4950 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
4951 (c_common_init): Set cpp_opts->bytes_big_endian, not
4952 cpp_opts->EBCDIC. Call cpp_init_iconv.
4953 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
4954 (TARGET_EBCDIC): Delete default definition.
4956 * objc/objc-act.c (build_objc_string_object): No need to
4957 handle string constant concatenation.
4959 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
4961 * doc/install.texi: Fix typos.
4962 * doc/invoke.texi: Likewise.
4963 * doc/tm.texi: Likewise.
4965 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
4967 * config/pa/fptr.c: Fix comment typos.
4968 * config/pa/pa-64.h: Likewise.
4969 * config/pa/pa.c: Likewise.
4970 * config/pa/pa.h: Likewise.
4971 * config/rs6000/603.md: Likewise.
4972 * config/rs6000/7xx.md: Likewise.
4973 * config/rs6000/darwin.h: Likewise.
4974 * config/rs6000/freebsd.h: Likewise.
4975 * config/rs6000/rs6000.c: Likewise.
4976 * config/rs6000/rs6000.md: Likewise.
4977 * config/rs6000/spe.h: Likewise.
4979 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
4981 * config/s390/2064.md: Change GNU CC to GCC.
4982 * config/s390/2084.md: Likewise.
4983 * config/s390/fixdfdi.h: Likewise.
4984 * config/s390/linux.h: Likewise.
4985 * config/s390/s390-modes.def: Likewise.
4986 * config/s390/s390-protos.h: Likewise.
4987 * config/s390/s390.c: Likewise.
4988 * config/s390/s390.h: Likewise.
4989 * config/s390/s390.md: Likewise.
4990 * config/s390/s390x.h: Likewise.
4992 2003-07-04 Jeff Law <law@redhat.com>
4995 * expr.c (do_store_flag): Pass in the correct result type
4996 when calling fold_single_bit_test.
4997 * fold-const.c (fold_single_bit_test): Use result_type for the
4998 result when folding a sign bit test.
5000 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
5002 * opts.c (common_handle_options): Negate sense of -falign- switches.
5004 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
5006 * Makefile.in: Replace PWD with PWD_COMMAND.
5008 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5010 * cfgloopanal.c (count_strange_loop_iterations): New static function.
5011 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
5012 Handle strange loops.
5014 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
5016 * install.texi: Even the g77 manpage is derived from
5017 the full g77 manual.
5019 2003-07-04 Zack Weinberg <zack@codesourcery.com>
5021 * ABOUT-NLS: Delete.
5022 * intl: Delete entire directory.
5023 * aclocal.m4: Include ../config/gettext.m4. Delete
5024 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
5025 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
5026 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
5027 Remove intl/Makefile from all_outputs.
5028 * configure, config.in: Regenerate.
5029 * Makefile.in: Expunge all references to intl subdirectory.
5030 Add -I../intl to INCLUDES.
5031 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
5033 2003-07-04 Roger Sayle <roger@eyesopen.com>
5035 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
5036 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
5038 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
5040 PR c++/5287, PR c++/7910, PR c++/11021
5041 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
5042 dllimport attribute if function is defined at declaration, but
5043 report error instead. Likewise for dllimport'd variable
5044 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
5045 declared within functions, Report error if dllimport or dllexport
5046 symbol is not global.
5047 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
5048 if defined after declaration or if inlined. Don't allow definition
5049 of static data members of C++ classes. Don't dllimport virtual
5051 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
5052 (i386_pe_mark_dllimport): Remove unnecessary checks.
5053 (i386_pe_encode_section_info): Warn if the dllimport attribute
5054 and symbol prefix have been instantiated and then overridden.
5056 * doc/extend.texi: Document dllimport and dllexport attributes.
5058 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
5060 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
5062 * config/kaos.h (CPP_PREDEFINES): Delete.
5063 (TARGET_OS_CPP_BUILTINS): New.
5065 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5067 * c-aux-info.c: Include toplev.h after c-tree.h.
5068 * c-common.c: Likewise.
5069 (GCC_DIAG_STYLE): Undef.
5070 * c-semantics.c (GCC_DIAG_STYLE): Define.
5071 * c-tree.h (GCC_DIAG_STYLE): Likewise.
5072 * diagnostic.h (inform): Move prototype to toplev.h.
5073 * jump.c: Include diagnostic.h before toplev.h.
5074 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
5075 (warning, error, fatal_error, pedwarn, sorry, inform,
5076 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
5078 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5080 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
5081 at all if edge is not specified.
5082 (can_copy_bbs_p, copy_bbs): New.
5083 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
5084 * cfgloop.c (get_loop_body): Comment more precisely.
5085 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
5086 (scale_bbs_frequencies): Fix comment typo.
5087 (can_duplicate_loop_p): Use can_copy_bbs_p.
5088 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
5090 2003-07-03 Devang Patel <dpatel@apple.com>
5092 * c-opts.c (c_common_parse_file): Remove extra
5093 debug_hooks->start_source_file call.
5095 2003-07-03 Roger Sayle <roger@eyesopen.com>
5097 * real.c (real_trunc, real_floor, real_ceil): New functions
5098 to implement trunc, floor and ceil respectively.
5099 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
5100 * builtins.c (integer_valued_real_p): New function to test if
5101 a floating point expression has an integer valued result.
5102 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
5103 foo(x) where foo is an integer rounding function. Similarly,
5104 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
5105 (double)(int)x when both foo and bar are integer rounding
5106 functions and we don't need to honor errno.
5107 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
5108 New functions to fold trunc, floor and ceil.
5109 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
5110 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
5111 to fold BUILT_IN_CEIL*.
5112 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
5113 the remaining integer rounding functions.
5115 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5117 * config/sparc/sparc.c (function_arg_partial_nregs): Use
5118 SPARC_INT_ARG_MAX to determine where to split unnamed
5119 complex FP arguments.
5121 Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
5123 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
5124 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
5125 (merge_blocks_move_predecessor_nojumps,
5126 merge_blocks_move_successor_nojumps): Use merge_blocks.
5127 (try_optimize_cfg): Use merge_blocks_move.
5128 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
5129 (merge_blocks_nomove): Rename to rtl_merge_blocks.
5130 (cfg_layout_create_basic_block): New.
5131 (rtl_can_merge_blocks): New.
5132 (cfg_layout_split_block): Do not alloc aux by hand.
5133 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
5135 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
5136 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
5137 * cfgloopmanip.c (loop_split_edge_with): Likewise.
5138 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
5140 * basic-block.h (basic_block_def): Add field 'rbi'.
5141 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
5142 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
5143 * cfg.c (entry_exit_blocks): Add new field.
5144 * cfglayout.c: Include alloc-pool.h;
5145 (cfg_layout_pool): New.
5146 (record_effective_endpoints, fixup_reorder_chain,
5147 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
5149 (cfg_layout_initialize_rbi): New function.
5150 (cfg_layout_initialize): Use it.
5151 (cfg_layout_finalize): Clear rbi fields.
5152 * cfglayout.h (RBI): Kill.
5153 (cfg_layout_initialize_rbi): Declare.
5154 * cfgloopmanip.c (copy_bbs): Use rbi.
5155 (record_exit_edges): Likewise.
5156 (duplicate_loop_to_header_edge): Likewise.
5157 * cfgrtl.c (cfg_layout_create_basic_block): Use
5158 cfg_layout_initialize_rbi.
5159 (cfg_layout_split_block): Use rbi.
5160 (cfg_layout_delete_block): Likewise.
5161 * loop-init.c (loop_optimizer_finalize): Likewise.
5162 * loop-unswitch.c (unswitch_loop): Likewise.
5163 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
5165 * cfgrtl.c: Update comments.
5166 (try_redirect_by_replacing_jump): New argument.
5167 (redirect_branch_edge): Break out from ...
5168 (rtl_redirect_edge_and_branch): ... this one.
5169 (update_cfg_after_block_merging): Break out from ...
5170 (rtl_merge_blocks): ... this one.
5171 (cfg_layout_split_edge): New.
5172 (cfg_layout_merge_blocks): New.
5173 (cfg_layout_can_merge_blocks_p): New.
5174 (cfg_layout_redirect_edge_and_branch): Reorganize.
5175 (cfg_layout_rtl_cfg_hooks): Fill in.
5176 (cfg_layout_delete_block): Kill barriers.
5177 * cfganal.c (can_fallthru): Deal with exit blocks
5178 * cfglayout.c (cfg_layout_function_header): New function
5179 (record_effective_endpoints): Record function header.
5180 (fixup_reorder_chain): Fixup dead jumptables; place header
5182 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
5183 * bb-reorder.c (cfg_layout_initialize): Update call.
5184 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
5185 edges in cfglayout mode.
5186 * cfglayout.c (cleanup_unconditional_jumps): Kill.
5187 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
5188 * cfglayout.h (cfg_layout_initialize): Update prototype.
5189 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
5190 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
5191 * flow.c (propagate_block): Do not crash when basic block ends
5192 by first insn in the chain.
5193 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
5195 * tracer.c (tracer): Update call of cfg_layout_initialize.
5197 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5199 * Makefile.in: Use dependency variables in lieu of explicit
5202 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
5204 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
5205 * tree.h: ...to here.
5207 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
5209 * config/s390/2064.md: Fix comment typos.
5210 * config/s390/2084.md: Likewise.
5211 * config/s390/s390.c: Likewise.
5212 * config/s390/s390.md: Likewise.
5213 * config/sh/sh.c: Likewise.
5214 * config/sh/sh.h: Likewise.
5215 * config/sh/sh.md: Likewise.
5216 * config/sparc/sparc.c: Likewise.
5217 * config/sparc/sparc.h: Likewise.
5218 * config/sparc/sparc.md: Likewise.
5219 * config/stormy16/stormy16.c: Likewise.
5220 * config/stormy16/stormy16.h: Likewise.
5221 * config/stormy16/stormy-abi: Fix a typo.
5223 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
5225 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
5227 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5229 * config/mips/mips.h (save_argv): Delete.
5231 2003-07-03 Roger Sayle <roger@eyesopen.com>
5234 * fold-const.c (extract_muldiv_1): There's nothing that can be done
5235 if the expression is a SAVE_EXPR.
5237 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
5239 * config/m32r/m32r.c: Fix comment typos.
5240 * config/m68hc11/m68hc11.c: Likewise.
5241 * config/m68hc11/m68hc11.h: Likewise.
5242 * config/m68k/m68k.c: Likewise.
5243 * config/mcore/mcore.c: Likewise.
5244 * config/mcore/mcore.h: Likewise.
5245 * config/mcore/mcore.md: Likewise.
5246 * config/mips/mips.c: Likewise.
5247 * config/mips/mips.h: Likewise.
5248 * config/mips/mips.md: Likewise.
5249 * config/mips/netbsd.h: Likewise.
5250 * config/mn10300/mn10300.c: Likewise.
5252 2003-07-03 Andreas Schwab <schwab@suse.de>
5254 * dbxout.c (pending_bincls): Move decl down inside
5255 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
5257 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
5259 * rtl.h (NOTE_DATA): Refer to whole union.
5260 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
5262 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5264 PR optimization/11381
5265 * simplify-rtx.c (simplify_relational_operation): Check that
5266 two equal operands have no side-effects before simplifying
5269 2003-07-02 Jeff Law <law@redhat.com>
5271 * expr.c (do_store_flag): Remove special case folding for
5272 single bit tests. Instead call back into the commonized folder
5274 * fold-const.c (fold_single_bit_test): New function, mostly
5275 extracted from do_store_flag, with an additional case extracted
5277 (fold): Call fold_single_bit_test appropriately.
5278 * tree.h (fold_single_bit_test): Prototype.
5280 2003-07-02 Zack Weinberg <zack@codesourcery.com>
5282 * system.h: Include filenames.h.
5283 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
5284 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
5285 define based on HAVE_DOS_BASED_FILE_SYSTEM.
5286 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
5287 * config/i386/xm-mingw32.h: Don't define
5288 HAVE_DOS_BASED_FILE_SYSTEM,
5289 DIR_SEPARATOR, or DIR_SEPARATOR_2.
5290 * doc/hostconfig.texi: Update to match.
5292 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
5293 config/i386/cygwin.h:
5294 Use IS_ABSOLUTE_PATH throughout.
5295 * gcc.c (DIR_UP): Delete, unused.
5296 * protoize.c (IS_SAME_PATH): Define in terms of
5298 (is_abspath): Delete.
5300 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
5302 * config/i386/emmintrin.h: Fix comment typos.
5303 * config/i386/i386.c: Likewise.
5304 * config/i386/i386.h: Likewise.
5305 * config/i386/sco5.h: Likewise.
5306 * config/ia64/ia64.c: Likewise.
5307 * config/ia64/itanium2.md: Likewise.
5309 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
5311 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
5313 (emit_bincl_stab): Same.
5314 (emit_pending_bincls): Same.
5316 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
5318 * config/h8300/h8300.c (compute_mov_length): Fix the length of
5319 loading CONST0_RTX (SFmode).
5320 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
5321 'G' to CONST0_RTX (SFmode).
5322 * config/h8300/h8300.md (movsf_h8300): Change the first
5324 (movsf_h8300h): Likewise.
5326 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
5328 * c-common.h (c_common_init_options): New prototype.
5329 * c-opts.c (deferred_size): Remove.
5330 (defer_opt): Array is now pre-allocated.
5331 (c_common_init_options): Pre-allocate deferred_opts. Make
5332 lang_flags unsigned.
5333 (push_command_line_options): Free deferred_opts.
5334 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
5335 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
5336 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
5337 * langhooks.h (struct lang_hooks): New prototype for init_options.
5338 * main.c (main): Cast argv.
5339 * opts.c (handle_option, handle_options): Update prototypes.
5340 (decode_options): save_argc, save_argv are not global. Constify.
5341 * opts.h (decode_options): New prototype.
5342 * toplev.c (general_init): New protoype.
5343 (save_argv): Make static.
5344 (save_argc): Remove.
5345 (print_switch_values, general_init): Constify.
5346 (toplev_main): Save argv.
5347 * toplev.h (toplev_main): Update prototype.
5348 (save_argc, save_argv): Remove.
5350 2003-07-02 David Edelsohn <edelsohn@gnu.org>
5352 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
5353 (emit_bincl_stab): Same.
5354 (emit_pending_bincls): Same.
5356 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
5359 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
5361 2003-07-02 Andreas Schwab <schwab@suse.de>
5363 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
5365 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
5367 PR optimization/11210
5368 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
5369 about the behaviour with regard to bitfields.
5370 * fold-const (decode_field_reference): Record outermost type in
5371 case the expression is a NOP. Strip all NOPs. Set the signedness
5372 to that of the outermost type (if any) when the bitsize is equal
5373 to the size of the type.
5375 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
5377 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
5378 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
5379 (adddi3_internal_3, addsi3_internal_2): Likewise.
5381 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
5383 * config/mips/mips.c (machine_function): Add new fields:
5384 ignore_hazard_length_p and all_noreorder_p.
5385 (mips_flag_delayed_branch): New variable.
5386 (override_options): Treat '/' as an operand punctuation character.
5387 Set up mips_flag_delayed_branch.
5388 (print_operand): Handle '/'.
5389 (mips_output_function_prologue): Put the whole function in
5390 .set noreorder and .set nomacro if all_noreorder_p is true.
5391 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
5392 (mips16_optimize_gp): Remove "first insn" parameter.
5393 (mips16_lay_out_constants): New function, split out from mips_reorg.
5394 (mips_avoid_hazard, mips_avoid_hazards): New functions.
5395 (mips_reorg): For mips16 code, call mips16_lay_out_constant
5396 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
5397 do delayed-branch scheduling followed by hazard detection.
5398 (mips_adjust_insn_length): Only account for hazards if
5399 !ignore_hazard_length_p.
5400 (mips_output_load_label): Add a nop to the o32 sequence if
5401 the target suffers from load delays.
5402 (mips_output_conditional_branch): Add %/ to the end of branches.
5403 (mips_output_division): Fill the branch delay slot with %#.
5404 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
5405 instructions. End all other %* branches with %/.
5406 (ffssi2, ffsdi2): Fix lengths.
5407 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
5408 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
5409 (fix_truncsfsi2_macro): Likewise.
5410 (mov_lwl): Set hazard to "none".
5411 (ashldi3_internal): Fill the branch delay slot with %#.
5412 (ashrdi3_internal, lshrdi3_internal): Likewise.
5413 (exception_receiver): Explicitly set $28.
5414 (hazard_nop): New pattern.
5416 Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
5418 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
5419 before calling tree_inlinable_function_p.
5421 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5423 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
5424 <internal/stdio_core.h> too.
5425 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
5426 <internal/wchar_core.h> too.
5427 Substitute va_list uses in inline definition.
5428 * fixinc/fixincl.x: Regenerate.
5430 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5432 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
5433 Undef before redefinition.
5434 (LABEL_AFTER_LOC): Likewise.
5435 (DEFAULT_SIGNED_CHAR): Likewise.
5436 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
5439 * config/mips/iris3.h: Remove, unused.
5440 * config/mips/iris4.h: Likewise.
5442 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
5444 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
5445 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
5448 * config/mips/iris5.h: Move explicit includes ...
5449 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
5451 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
5452 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
5455 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
5456 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
5459 * config/mips/iris6.h: Fix IRIX spelling.
5460 (MULTILIB_DEFAULTS): Undef before redefinition.
5462 * config/mips/iris6.h: Move explicit includes ...
5463 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
5465 Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
5467 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
5468 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
5469 Use next_needed field instead of aux to maintain the queue.
5470 * cgraph.h (cgraph_node): Add next_needed.
5471 (cgraph_varpool_node): Add next_needed; remove aux.
5472 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
5474 Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
5476 * cgraphunit.c (cgraph_finalize_function): Set finalized.
5477 (cgraph_finalize_function): Do not examine inlinablility.
5478 (cgraph_finalize_compilation_unit): Do it here.
5479 * cgraph.h (cgraph_local_info): Add finalized field.
5481 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5483 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
5484 (gt_pch_restore): Likewise.
5486 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5488 * config/alpha/alpha.c: Fix comment typos.
5489 * config/alpha/elf.h: Likewise.
5490 * config/arm/arm.c: Likewise.
5491 * config/arm/arm.h: Likewise.
5492 * config/arm/arm.md: Likewise.
5493 * config/arm/t-arm-coff: Likewise.
5494 * config/arm/t-strongarm-pe: Likewise.
5495 * config/arm/xscale-elf.h: Likewise.
5496 * config/avr/avr.h: Likewise.
5498 2003-07-01 Jeff Law <law@redhat.com>
5500 * stmt.c (any_pending_cleanups): Remove another redundant test.
5502 2003-07-01 David Edelsohn <edelsohn@gnu.org>
5503 J"orn Rennecke <joern.rennecke@superh.com>
5505 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
5508 2003-07-01 Devang Patel <dpatel@apple.com>
5510 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
5512 (struct dbx_file): New members - bincl_status, pending_bincl_name and
5514 (pending_bincls): New.
5515 (dbxout_init): Initialize new dbx_file members.
5516 (dbxout_start_source_file): Same.
5517 (emit_bincl_stab): New function.
5518 (emit_pending_bincls): Same.
5519 (emit_pending_bincls_if_required): Same.
5520 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
5522 (dbxout_begin_block): Emit pending BINCL stabs.
5523 (dbxout_end_block): Same.
5524 (dbxout_function_decl): Same.
5525 (dbxout_continue): Same.
5526 (dbxout_type): Same.
5527 (dbxout_class_name_qualifiers): Same.
5528 (dbxout_symbol): Same.
5529 (dbxout_symbol_location): Same.
5530 (dbxout_parms): Same.
5532 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5534 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
5535 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
5537 2003-07-01 Andreas Jaeger <aj@suse.de>
5539 * fold-const.c: Convert prototypes to ISO C90.
5540 * function.c: Likewise.
5541 * function.h: Likewise.
5543 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5545 * doc/contrib.texi: Fix typos.
5546 * doc/invoke.texi: Likewise.
5547 * doc/passes.texi: Likewise.
5548 * doc/sourcebuild.texi: Likewise.
5549 * doc/tm.texi: Likewise.
5551 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5553 * basic-block.h: Fix comment typos.
5554 * bb-reorder.c: Likewise.
5555 * c-format.c: Likewise.
5556 * cfgcleanup.c: Likewise.
5557 * cfghooks.h: Likewise.
5558 * cfgloop.c: Likewise.
5559 * cfgloopmanip.c: Likewise.
5560 * cfgrtl.c: Likewise.
5561 * cgraph.h: Likewise.
5562 * cgraphunit.c: Likewise.
5563 * combine.c: Likewise.
5564 * convert.c: Likewise.
5565 * dbxout.c: Likewise.
5568 * diagnostic.c: Likewise.
5569 * dwarf2out.c: Likewise.
5570 * et-forest.h: Likewise.
5572 * fold-const.c: Likewise.
5573 * function.h: Likewise.
5574 * gcov-io.h: Likewise.
5577 * genautomata.c: Likewise.
5578 * ggc-common.c: Likewise.
5579 * ggc-page.c: Likewise.
5580 * loop-unroll.c: Likewise.
5581 * loop-unswitch.c: Likewise.
5583 * mips-tfile.c: Likewise.
5584 * optabs.c: Likewise.
5585 * ra-build.c: Likewise.
5586 * ra-colorize.c: Likewise.
5587 * ra-rewrite.c: Likewise.
5589 * regmove.c: Likewise.
5590 * reload.c: Likewise.
5591 * rtlanal.c: Likewise.
5592 * sched-ebb.c: Likewise.
5593 * sched-int.h: Likewise.
5594 * sched-vis.c: Likewise.
5595 * sreal.c: Likewise.
5596 * ssa-ccp.c: Likewise.
5598 * toplev.c: Likewise.
5599 * tree-inline.c: Likewise.
5600 * value-prof.c: Likewise.
5601 * value-prof.h: Likewise.
5603 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
5605 * rtl.h (emit_line_note_after): Remove.
5606 (emit_note_copy_after, emit_note_copy): New.
5607 * emit-rtl.c (reorder_insns_with_line_notes): Replace
5608 emit_line_note_after with emit_note_copy_after.
5609 (emit_insn_after_with_line_notes): Likewise.
5610 (emit_line_note_after): Kill.
5611 (emit_note_copy_after): New.
5612 (emit_note_copy): New.
5613 * function.c (emit_return_into_block): Use emit_note_copy_after.
5614 (thread_prologue_and_epilogue_insns): Likewise.
5615 * integrate.c (expand_inline_function): Use emit_note_copy.
5616 (copy_insn_list): Likewise.
5617 * unroll.c (copy_loop_body): Likewise.
5618 * cfglayout.c (duplicate_insn_chain): Likewise.
5620 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
5622 * c-tree.h (define_label): Replace filename and lineno arguments
5624 * c-decl.c (poplevel): Adjust define_label call.
5625 (pop_label_level): Likewise.
5626 (define_label): Replace filename and lineno arguments with a
5628 (store_parm_decls): Use DECL_SOURCE_LOCATION.
5629 * c-parse.in (label): Adjust define_label call.
5631 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
5633 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
5634 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
5635 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
5636 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
5637 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
5639 2003-07-01 Andreas Jaeger <aj@suse.de>
5641 * final.c: Convert prototypes to ISO C90.
5643 * flags.h: Likewise.
5644 * gcov-io.c: Likewise.
5645 * gcov-io.h: Likewise.
5647 See ChangeLog.9 for earlier changes.