1 2003-08-21 Bernardo Innocenti <bernie@develer.com>
2 Paul Dale <pauli@snapgear.com>
3 Peter Barada <peter@baradas.org>
5 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
8 2003-08-21 Zack Weinberg <zack@codesourcery.com>
10 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
11 * config.gcc (*-*-openbsd): Don't set tm_file.
12 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
13 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
14 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
15 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
16 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
17 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
18 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
19 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
20 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
21 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
22 xscale-*-coff): Use explicit and complete lists of target headers
23 to include. Move definitions to tm_defines where appropriate.
24 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
25 not-yet-contributed configuration.
27 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
28 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
29 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
30 * config/i386/nto.h, config/iq2000/iq2000.h,
31 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
32 * config/m68k/linux.h, config/m68k/m68k-aout.h
33 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
34 * config/m68k/netbsd.h, config/m68k/openbsd.h
35 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
36 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
37 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
38 Remove includes of other target config headers, and
39 definitions of macros moved to tm_defines lists. Add #undefs
40 where now necessary to prevent redefinition warnings.
42 * config/h8300/coff.h: New file split out of...
43 * config/h8300/elf.h: ...here.
44 * config/m68k/hp320base.h: New file split out of...
45 * config/m68k/hp320.h: ...here.
46 * config/rs6000/lynxbase.h: New file split out of...
47 * config/rs6000/lynx.h: ...here.
49 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
50 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
52 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
53 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
54 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
55 Remove unnecessary #ifndef.
56 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
57 [under IN_LIBGCC2] with config/.
59 2003-08-21 Per Bothner <bothner@pbothner.com>
61 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
63 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
64 by return_at_eof check. Always call _cpp_pop_buffer at end.
66 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
69 * config/h8300/h8300.md (two anonymous patterns): Remove.
71 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
73 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
74 * config/mips/mips.c (function_arg_pass_by_reference): Never return
77 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
79 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
80 and similarly in (A | C) == D where C & ~D != 0.
82 2003-08-20 Geoffrey Keating <geoffk@apple.com>
85 * configure.in: When testing with_libs and with_headers, treat
86 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
87 * configure: Regenerate.
89 2003-08-20 Peter Barada <peter@baradas.org>
91 * longlong.h (umul_ppmm): Add ColdFire support.
93 2003-08-20 Peter Barada <peter@baradas.org>
94 Bernardo Innocenti <bernie@develer.com>
96 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
97 * config/m68k/m68k.h: Likewise.
98 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
99 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
100 * config/m68k/linux.h: Likewise.
101 * config/m68k/m68k.c: Likewise.
102 * config/m68k/m68k.md: Likewise.
103 * config/m68k/m68kelf.h: Likewise.
104 * config/m68k/netbsd-elf.h: Likewise.
105 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
107 2003-08-20 Bernardo Innocenti <bernie@develer.com>
109 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
110 * config/m68k/m68k.md: Likewise.
112 2003-08-20 Mark Mitchell <mark@codesourcery.com>
116 2003-08-19 Mark Mitchell <mark@codesourcery.com>
117 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
118 types with precisions other than those given by native machine
121 2003-08-20 Gunther Nikl <gni@gecko.de>
123 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
124 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
125 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
126 * config/m68k/m68k.md (anonymous define_insn): Likewise
127 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
128 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
129 code selected by NO_ASM_FMOVECR
131 2003-08-20 Gunther Nikl <gni@gecko.de>
133 * config/m68k/m68k.c (output_move_const_into_data_reg,
134 output_move_himode): unify MOTOROLA/MIT handling of moveq
135 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
138 2003-08-20 Gunther Nikl <gni@gecko.de>
140 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
142 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
143 HOST_WIDE_INT_PRINT_DEC with %wd
145 2003-08-20 Loren James Rittle <ljrittle@acm.org>
147 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
150 2003-08-20 Roger Sayle <roger@eyesopen.com>
153 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
154 operands before calling tree_int_cst_lt when performing associative
157 2003-08-20 Jason Merrill <jason@redhat.com>
159 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
160 (EXPR_CHECK): Don't check for 'r' or 's' if we're
161 checking IS_EXPR_CODE_CLASS.
162 * calls.c (calls_function_1): Likewise.
163 * fold-const.c (fold): Likewise.
164 * tree.c (iterative_hash_expr): Likewise.
165 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
167 2003-08-20 Gunther Nikl <gni@gecko.de>
169 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
170 depending on MOTOROLA_BSR
171 * config/m68k/m68k.md (anonymous define_insn): Likewise
173 2003-08-20 Jason Merrill <jason@redhat.com>
175 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
176 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
177 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
178 * dojump.c (do_jump): Likewise.
179 * fold-const.c (operand_equal_p, fold): Likewise.
180 (tree_expr_nonnegative_p): Likewise.
182 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
183 TYPE_USER_ALIGN for FIELD_DECLs.
185 * attribs.c (decl_attributes): Rebuild the function pointer type after
186 changing the target type.
187 * tree.c (get_qualified_type): Also check that the attributes match.
189 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
191 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
192 * objc/config-lang.in (stagestuff): ... to here.
194 2003-08-19 Mark Mitchell <mark@codesourcery.com>
197 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
198 NOP_EXPR) when necessary.
199 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
200 types with precisions other than those given by native machine
203 2003-08-19 Geoffrey Keating <geoffk@apple.com>
205 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
206 because some macro is defined.
208 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
210 * config/i386/darwin.h (ASM_SPEC): New.
211 (SUBTARGET_EXTRA_SPECS): New.
212 * config/rs6000/darwin.h (ASM_SPEC): New.
213 (SUBTARGET_EXTRA_SPECS): New.
214 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
215 a cross-compiler between two different processors on Darwin.
216 * configure: Regenerate.
218 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
220 * builtins.c: Fix comment typos.
221 * c-common.c: Likewise.
222 * c-decl.c: Likewise.
223 * c-pretty-print.c: Likewise.
224 * cfgbuild.c: Likewise.
225 * cfglayout.c: Likewise.
226 * cfgloopanal.c: Likewise.
227 * cgraphunit.c: Likewise.
228 * cppfiles.c: Likewise.
229 * dwarfout.c: Likewise.
231 * fold-const.c: Likewise.
233 * ggc-page.c: Likewise.
234 * haifa-sched.c: Likewise.
235 * pretty-print.c: Likewise.
238 * value-prof.c: Likewise.
240 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
242 * c-decl.c: Follow spelling conventions.
243 * cppfiles.c: Likewise.
245 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
247 * c-common.c: Fix comment formatting.
248 * c-common.h: Likewise.
249 * c-decl.c: Likewise.
250 * cppinit.c: Likewise.
251 * cpplib.h: Likewise.
252 * emit-rtl.c: Likewise.
254 * line-map.h: Likewise.
257 * simplify-rtx.c: Likewise.
259 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
261 * unwind-c.c: Add libgcc-style exception.
262 * unwind-dw2.c: Likewise.
263 * unwind-pe.h: Likewise.
264 * unwind-sjlj.c: Likewise.
265 * unwind.inc: Likewise.
267 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
269 PR c/5582 PR c++/10538
270 * langhooks-def.h (lhd_decl_uninit): Declare.
271 (LANG_HOOKS_DECL_UNINIT): New macro.
272 (LANG_HOOKS_INITIALIZER): Adjust.
273 * langhooks.h (struct lang_hooks): Add new field
275 * langhooks.c (lhd_decl_uninit): Define.
276 * c-common.c (c_decl_uninit_1): New function.
277 (c_decl_uninit): New function.
278 (warn_init_self): Define.
279 * c-common.h (c_decl_uninit): Declare.
280 (warn_init_self): Declare.
281 * c.opt: Introduce -Winit-self.
282 * c-opts.c (c_common_handle_options): Set warn_init_self.
283 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
284 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
285 * function.c (uninitialized_vars_warning): Call the language hook.
286 * doc/invoke.texi: Document -Winit-self.
288 2003-08-19 Chris Demetriou <cgd@broadcom.com>
290 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
291 to use better predicates and constraints. Define new
292 instruction to handle "trap_if" with DI-mode arguments.
293 (conditional_trap): FAIL if trap code is not 0.
295 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
297 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
298 strstr with $pb to a strcompare with "<pic base>"
299 (ix86_output_addr_diff_elt): Output the real pic base.
301 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
303 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
304 (LANG_HOOKS_INITIALIZER): Correct.
305 * c-lang.c: Likewise.
307 2003-08-19 Jan Hubicka <jh@suse.cz>
309 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
310 (cgraph_varpool_mark_needed_node): Likewise.
311 * cgraph.h (notice_global_symbol): Declare
312 * varasm.c (notice_global_symbol): Break out from ...
313 (assemble_start_function): ... here; update for variables.
314 (assemble_variable): Use notice_global_symbol.
316 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
318 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
319 expect SFmode and DFmode arguments to be passed in FPRs,
320 regardless of the underlying type.
322 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
325 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
326 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
328 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
331 * c-typeck.c (set_init_index): Check for negative index.
333 2003-08-18 Bob Wilson <bob.wilson@acm.org>
335 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
337 * config/xtensa/crtn.asm (_init, _fini): Likewise.
338 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
339 __umodsi3, __modsi3): Likewise.
340 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
343 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
345 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
347 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
349 * config/mips/mips.md: Quote C code in braces. Remove use of
350 fake const0_rtx operands. Remove double backslashes. Use \;.
351 Remove workarounds for bogus warnings.
353 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
355 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
356 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
357 rather than TARGET_MIPS4300.
358 (mulsf3_internal, mulsf3_r4300): Likewise.
360 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
362 * config/mips/mips.md: Renumber unspecs. Clean up comments.
364 2003-08-17 Roger Sayle <roger@eyesopen.com>
366 * simplify-rtx.c (associative_constant_p): New function to test
367 whether an RTX expression is an immediate constant.
368 (simplify_associative_operation): New function to perform some
369 reassociation optimizations of associative binary expressions.
370 (simplify_binary_operation): Use simplify_associative_operation
371 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
372 Floating point expressions are only reassociated when unsafe
373 math optimizations are permitted.
375 2003-08-17 Andreas Jaeger <aj@suse.de>
377 * config/alpha/alpha.md: Remove usage of PARAMS.
379 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
380 * config/i386/i386-interix.h: Likewise.
381 * config/i386/winnt.c: Likewise.
382 * config/i386/cygming.h: Likewise.
383 * config/i386/cygwin2.c: Likewise.
384 * config/darwin.c: Likewise.
385 * config/darwin-c.c: Likewise.
386 * config/darwin-protos.h: Likewise.
387 * config/darwin.h: Likewise.
388 * config/s390/s390-protos.h: Likewise.
389 * config/s390/s390.c: Likewise.
390 * config/ia64/ia64.c: Likewse
391 * config/ia64/ia64-protos.h: Likewise.
392 * config/ia64/ia64-c.c: Likewise.
394 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
396 * config/sparc/sparc.c: Convert to ISO C.
398 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
399 * config/sparc/sparc.c: Likewise.
401 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
404 * stmt.c (expand_expr_stmt_value): Don't warn about any void
407 2003-08-16 Jan Hubicka <jh@suse.cz>
409 * i386.c (ix86_fntype_regparm): Rename from ...
410 (ix86_function_regparm): ... this one; add fastcall and local
412 (ix86_function_ok_for_sibcall): Update.
413 (ix86_return_pops_args): Likewise.
414 (init_cumulative_args): Likewise.
415 (x86_can_output_mi_thunk): Likewise.
416 (function_arg): Fix formating.
417 (x86_this_parameter): Fix fastcall.
418 (x86_output_mi_thunk): Likewise.
420 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
421 body as reachable; mark nested functions as needed too.
422 (dump_cgraph): Do not output global.calls.
423 * cgraph.h (cgraph_global_info): Kill.
424 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
425 (record_call_1): Speedup.
426 (cgraph_analyze_function): Break out from ...; compute inlining
428 (cgraph_finalize_compilation_unit): ... here.
429 (cgraph_mark_inline): Kill computation of calls.
430 (cgraph_decide_inlining): Do not compute most of initial values.
432 2003-08-14 Roger Sayle <roger@eyesopen.com>
434 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
435 to negate if either operand is easy to negate, if we don't care
436 about sign-dependent rounding.
437 (negate_expr): Make the logic to negate a REAL_CST explicit.
438 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
439 that's easy to negate, if we don't honor sign-dependent rounding.
440 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
441 negate, and the symmetric A * -B as -A * B if A is easy to negate.
442 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
443 -C/D if B and C are cheap to negate. Add an explicit rule to
444 optimize X/-1.0 as -X when we don't care about signaling NaNs.
446 2003-08-14 Zack Weinberg <zack@codesourcery.com>
448 * Makefile.in (tm_file): Rename tm_include_list.
449 (tm_p_file): Rename tm_p_include_list.
450 (build_xm_file): Rename build_xm_include_list.
451 (host_xm_file): Rename host_xm_include_list.
452 (xm_file): Rename xm_include_list.
453 (xm_file_list): Add to be substituted.
454 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
456 (bt-load.o): Add missing dependency on $(TM_H).
457 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
458 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
459 build_xm_file, generate both *_file_list and *_include_list
460 values from it. (xm_file_list was formerly not being generated.)
461 In *_include_list, prefix the names of all headers found in
462 $(srcdir)/config with config/. In each loop, consider only
463 the special case files that can actually appear in that list.
464 AC_SUBST all *_file_list and all *_include_list variables; do
465 not AC_SUBST the plain *_file variables.
466 * configure: Regenerate.
468 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
470 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
472 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
474 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
476 (attr_length_call): Include it here. Improve length estimate for
478 (output_call): Use targetm.binds_local_p.
480 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
482 * builtins.c (CASE_MATHFN): New helper macro.
483 (mathfn_built_in): Simplify and sort.
485 * protoize.c (substr): Delete, callers changed to `strstr'.
487 2003-08-13 Zack Weinberg <zack@codesourcery.com>
489 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
490 * config/iq2000/xm-iq2000.h: Delete file.
492 2003-08-13 Geoffrey Keating <geoffk@apple.com>
494 * gengtype.c (walk_type): Process a subobject before processing
495 the pointer that points to the subobject.
497 2003-08-13 Per Bothner <pbothner@apple.com>
499 * regclass.c (init_reg_modes): Make non-static.
500 Rename to init_reg_modes_once per new naming convention.
501 (init_regs): Don't call init_reg_modes here.
502 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
503 * rtl.h (init_reg_modes_once): New declaration.
504 * toplev.c (backend_init): Call init_regs after init_emit_once.
506 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
508 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
509 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
511 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
513 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
514 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
516 2003-08-13 Dale Johannesen <dalej@apple.com>
518 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
519 handling of decrement-and-branch farther than 32 bits.
521 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
523 * configure.in (make_compare_target): Move test to ...
524 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
525 * configure: Regenerate.
527 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
529 * config/mips/iris6.h: Convert to C90 prototypes.
530 * config/mips/irix6-libc-compat.c: Likewise.
531 * config/mips/mips-protos.h: Likewise.
532 * config/mips/mips.c: Likewise.
534 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
536 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
537 for selected machines. Comment heavily.
538 fixinc/fixincl.x: Rebuild.
539 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
541 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
543 * config/mips/mips.h: Tweak various comments.
544 * config/mips/mips.c: Likewise.
546 2003-08-11 James E Wilson <wilson@tuliptree.org>
548 PR optimization/11319
550 * alias.c (find_base_value, case REG): Return 0 not src if no base
553 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
555 * gcse.c (gmalloc): Fix last change.
557 2003-08-11 Roger Sayle <roger@eyesopen.com>
559 * simplify-rtx.c (simplify_binary_operation): Replace calls to
560 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
561 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
562 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
564 2003-08-11 Roger Sayle <roger@eyesopen.com>
566 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
567 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
568 typecode for an ABS_EXPR.
570 * doc/c-tree.texi: Document ABS_EXPR.
572 2003-08-11 Roger Sayle <roger@eyesopen.com>
574 * fold-const.c (fold): Optimize any associative floating point
575 operator with -funsafe-math-optimizations, not just MULT_EXPR.
577 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
579 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
580 information in SHmedia case too.
581 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
583 (__set_fpscr): Use an access via GOT for PIC case.
585 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
587 * configure.in (intermodule): Make switch test more portable.
588 * configure: Regenerate.
590 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
592 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
595 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
597 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
598 (grealloc): Size argument is a size_t.
599 (gcalloc): New function. Use throughout in lieu of
602 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
604 * config/ia64/ia64.c (ia64_reorg): Likewise.
605 * conflict.c (conflict_graph_new): Likewise.
606 * fixinc/fixincl.c (run_compiles): Likewise.
607 * genattrtab.c (optimize_attrs): Likewise.
608 * genrecog.c (new_decision): Likewise.
609 * haifa-sched.c (schedule_block): Likewise.
610 * hashtable.c (ht_create): Likewise.
612 2003-08-11 Bob Wilson <bob.wilson@acm.org>
614 * config/xtensa/lib2funcs.S: Fix whitespace.
615 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
616 syntax where appropriate. Remove unnecessary backslash escapes.
617 Reformat comments and fix some code formatting.
618 (extendqisi2): Rearrange conditional.
619 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
620 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
623 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
625 * config/mips/mips.c: Various formatting fixes.
626 (override_options): Resync -mtune handling with gas.
627 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
628 * config/mips/mips.h: More formatting fixes.
629 (mips_abi): Move declaration.
630 * config/mips/mips.md (exception_receiver): Add mode to
633 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
635 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
637 (bdesc_1arg): Remove evsplati and evsplatfi.
639 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
641 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
644 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
646 * builtins.c (expand_builtin_strcat): Optimize constant strings.
648 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
650 * pretty-print.c (pp_base_indent): Rename from pp_indent.
651 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
652 (struct c_pretty_print_info): Add more fields.
653 (pp_c_left_paren): Move to c-pretty-print.c.
654 (pp_c_right_paren): Likewise.
655 (pp_c_left_brace): Likewise.
656 (pp_c_right_brace): Likewise.
657 (pp_c_left_bracket): Likewise.
658 (pp_c_right_bracket): Likewise.
659 (pp_c_declarator): Declare.
660 (pp_c_direct_declarator): Likewise.
661 (pp_c_specifier_qualifier_list): Likewise.
662 (pp_c_type_id): Likewise.
663 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
664 (pp_c_type_qualifier_list): New.
665 (pp_c_pointer): Likewise.
666 (pp_c_parameter_type_list): Likewise.
667 (pp_c_function_definition): Likewise.
668 (pp_c_id_expression): Likewise.
669 (pp_c_simple_type_specifier): Tidy.
670 (pp_c_unary_expression): Likewise.
671 (pp_c_expression): Likewise.
672 (pp_c_pretty_printer_init): Likewise.
673 (pp_c_specifier_qualifier_list): Rework..
674 (pp_c_abstract_declarator): Likewise.
675 (pp_c_postfix_expression): Likewise.
676 (pp_c_primary_expression): Likewise.
677 (pp_c_cast_expression): Likewise.
678 (pp_c_direct_abstract_declarator): Likewise.
679 (pp_c_storage_class_specifier): Likewise.
680 (pp_c_function_specifier): Likewise.
681 (pp_c_declaration_specifiers): Likewise.
682 (pp_c_direct_declarator): Likewise.
683 (pp_c_declarator): Likewise.
684 (pp_c_declaration): Likewise.
685 (pp_c_statement): Likewise.
686 (pp_c_integer_constant): Rename from pp_c_integer_literal.
687 (pp_c_character_constant): Rename from pp_c_character_literal.
688 (pp_c_bool_constant): Rename from pp_c_bool_literal.
689 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
690 (pp_c_floating_constant): Rename from pp_c_real_literal.
691 (pp_c_constant): Rename from pp_c_literal.
692 * c-lang.c: Include diagnostic.h and c-pretty-print.h
693 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
694 (c_initialize_diagnostics): New.
695 * Makefile.in (c-lang.o): Update dependency.
697 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
699 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
701 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
703 * config/mips/mips.c (mips_no_mips16_string): Remove.
704 (override_options): Don't handle -mips16 as part of -mipsN.
705 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
706 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
707 (TARGET_OPTIONS): Remove -mno-mips16.
709 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
711 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
712 (coprocessor2_operand): Likewise.
713 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
714 (lookup_name): Remove declaration.
715 (abort_with_insn): Remove. Replace all uses with fatal_insn.
716 (mips16, mips_abicalls): Remove.
717 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
718 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
719 (coprocessor_operand, coprocessor2_operand): Remove.
720 (override_options): Don't set mips16 or mips_abicalls.
721 (print_operand): Don't expect SIGN_EXTEND operands.
722 (mips_secondary_reload_class): Likewise.
723 (mips_output_conditional_branch): Remove disabled long-branch code.
724 * config/mips/mips.h (call_used_regs): Remove declaration.
725 (may_call_alloca): Likewise.
726 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
727 (mips_abicalls, mips16): Remove declarations.
728 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
729 (CC1_SPEC): Remove outdated comment.
730 (MIPS_VERSION, MACHINE_TYPE): Remove.
731 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
732 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
733 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
734 (PUSH_ROUNDING): Likewise.
735 (ASSEMBLER_SCRATCH_REGNUM): Remove.
736 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
737 and mips16 with TARGET_MIPS16.
739 2003-08-09 Per Bothner <pbothner@apple.com>
741 * cppinit.c (cpp_read_main_file): Split out source-independent
742 initialization to separate function ...
743 (cpp_post_options): New function.
744 * cppfiles.c (cpp_stack_file): Rename public name to ...
745 (_cpp_stack_file): New internal function name.
746 * cpplib.h: Update accordingly.
747 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
748 (cpp_read_main_file): Don't initialize line here.
749 * c-opts.c (c_common_post_options): Call cpp_post_options.
750 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
751 * fix-header.c (read_scan_file): Call cpp_post_options.
753 2003-08-09 Per Bothner <per@bothner.com>
755 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
757 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
759 * pa.c (pa_asm_output_mi_thunk): Fix typo.
761 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
763 PR preprocessor/11839
764 * cppfiles.c (open_file): Handle ENOTDIR.
766 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
769 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
771 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
773 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
774 source/destination is not a register operand.
776 2003-08-08 Richard Henderson <rth@redhat.com>
779 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
780 RETURN_ADDRESS_POINTER_REGNUM.
781 (ia64_expand_prologue): Don't frob it.
782 (ia64_output_function_epilogue): Likewise.
783 (ia64_return_addr_rtx): New.
784 (ia64_split_return_addr_rtx): New.
785 * config/ia64/ia64-protos.h: Update.
786 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
787 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
788 (GENERAL_REGNO_P): Don't check it.
789 (AR_*_REGNUM): Renumber.
790 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
791 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
792 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
793 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
794 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
795 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
796 (movdi_ret_addr): New.
798 2003-08-08 Geoffrey Keating <geoffk@apple.com>
800 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
802 2003-08-08 Roger Sayle <roger@eyesopen.com>
804 * tree.h (get_identifier) Define a macro form of get_identifier
805 that calls get_identifier_with_length when the string is constant.
806 (get_identifier_with_length): Change type of second argument to
808 * stringpool.c (get_identifier): Undefine the macro before giving
809 the function definition.
810 (get_identifier_with_length): Change type of second argument to
811 size_t in function definition.
812 * hashtable.c (calc_hash): Change type of second argument to size_t.
813 (ht_lookup): Change type of third argument to size_t. Reorganize
814 to speed-up the cases where the hash table slot is empty, or the
815 first probe matches (i.e. there isn't a collision).
816 * hashtable.h (ht_lookup): Adjust function prototype.
818 2003-08-08 Bernardo Innocenti <bernie@develer.com>
822 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
824 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
826 * common.opt: Add debug switches.
827 * flags.h (use_gnu_debug_info_extensions): Boolify.
828 * opts.c (write_symbols, debug_info_level,
829 use_gnu_debug_info_extensions): Move from toplev.c.
830 (set_debug_level): New.
831 (common_handle_options): Handle debug switches.
832 (print_help): Display target options directly.
833 * toplev.c (debug_hooks): Don't initialize.
834 (write_symbols, debug_info_level,
835 use_gnu_debug_info_extensions): Move to opts.c.
836 (debug_args, display_help, decode_g_option): Remove.
837 (process_options): Set no debug if level zero here,
838 and no-debug-hooks. Error here if impossible debug format selected.
839 * toplev.h (display_help, decode_g_option): Remove.
841 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
843 * tree.c (get_file_function_name_long): Fix size of alloca() area.
845 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
847 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
848 and gcc_cv_prog_cmp_skip.
849 * configure: Regenerate.
851 2003-08-08 Stan Cox <scox@redhat.com>
853 * config/iq2000: New port.
854 * config.gcc (iq2000-*-elf): Added.
855 * doc/install.texi (Specific): Add iq2000 description.
857 2003-08-08 Andreas Schwab <schwab@suse.de>
859 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
860 and insert missing empty argument.
861 * configure: Regenerate.
863 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
865 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
866 (attr_length_millicode_call): Likewise.
867 (attr_length_call): Likewise. Revise some maximum insn lengths.
868 (attr_length_indirect_call): Likewise.
869 (output_call): Fix thinko that added extra nop.
870 * pa.h (IN_NAMED_SECTION_P): Define.
873 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
874 __STDC_EXT__ when using C++ dialect.
876 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
878 * sh.c (calc_live_regs): If the return address pointer is live,
880 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
881 for saves / restores.
882 (sh_expand_epilogue): If sh_media_register_for_return returns a
883 register number, flag the instructions that restores PR_MEDIA_REG
885 Remove dead update of offset.
886 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
887 we can use the result of get_hard_reg_initial_val.
888 * sh.md (UNSPEC_RA): New constant.
889 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
890 (load_ra). Handle UNSPEC_RA.
891 (sibcall_media): Use PR_MEDIA_REG.
893 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
894 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
895 needs saving on SHmedia.
897 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
899 * config/s390/s390.md: Replace all occurrences of \\t with \t.
901 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
903 * local-alloc.c (combine_regs): Fix comment typo.
905 2003-08-06 Zack Weinberg <zack@codesourcery.com>
907 * c-decl.c (builtin_decls): Replace with first_builtin_decl
908 and last_builtin_decl.
909 (c_init_decl_processing): Initialize both.
910 (c_reset_state): Iterate from first_builtin_decl to
911 last_builtin_decl inclusive to reintroduce builtins.
913 2003-08-06 David Mosberger <davidm@hpl.hp.com>
915 * doc/extend.texi (Function Attributes): Document the IA-64 version
916 of the "model" attribute.
918 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
919 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
920 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
922 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
923 (ia64_encode_section_info): Likewise.
924 (ia64_attribute_table): Add "model" attribute.
925 (TARGET_ENCODE_SECTION_INFO): Define.
926 (small_addr_symbolic_operand): New function.
927 (got_symbolic_operand): Return 0 for a symbolref to an object
928 in the small address area.
929 (enum ia64_addr_area): New type.
930 (small_ident1): New variable.
931 (small_ident2): Likewise.
932 (init_idents): New function.
933 (ia64_get_addr_area): Likewise.
934 (ia64_encode_addr_area): Likewise.
935 (ia64_encode_section_info): Likewise.
936 (ia64_expand_load_address): For symbolic references to objects in
937 the small-address-area, load the address via gen_rtx_SET() (which,
938 eventually, will expand into "addl").
940 2003-08-06 Per Bothner <pbothner@apple.com>
942 * line-map.h (fileline): New typedef.
943 (struct line_map, linemap_add, linemap_lookup): Use it.
944 * input.h (struct location_s): Comment notes that long-term we want
945 to replace it by fileline.
947 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
949 Fix SHcompact exception handling:
950 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
951 by the prologue, return a MEM with return_address_pointer_rtx
953 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
954 (RETURN_ADDR_OFFSET): Don't define.
955 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
956 registers that are visible in compact mode. Show that SHmedia
957 registers still exist in compact mode, even if there are not
959 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
960 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
961 and DW_EH_PE_pcrel for pic data.
962 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
963 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
964 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
965 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
966 * sh.md (movsi_media-1): New splitter.
968 2003-08-06 Graeme Peterson <gp@qnx.com>
970 * config/i386/nto.h: New.
971 * config/i386/t-nto: New.
972 * config.gcc (i[34567]86-*-nto-qnx*): New.
974 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
976 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
978 2003-08-06 Alan Modra <amodra@bigpond.net.au>
980 * calls.c (load_register_parameters): Arrange for call_fusage to
981 report the whole register as used when shifting to the msb.
983 2003-08-05 Roger Sayle <roger@eyesopen.com>
985 * builtins.c (expand_builtin): When not optimizing, call the library
986 function for all builtins that have library functions (except alloca).
988 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
990 * c.opt: Introduce -fworking-directory.
991 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
992 * c-common.h (flag_working_directory): Declare.
993 * c-common.c (flag_working_directory): Define.
994 * c-opts.c (c_common_handle_options): Set it.
995 (sanitize_cpp_opts): Set...
996 * cpplib.h (struct cpp_options): ... working_directory option.
997 (struct cpp_callbacks): Add dir_change.
998 * cppinit.c (read_original_filename): Call...
999 (read_original_directory): New. Look for # 1 "directory//"
1001 (cpp_read_main_file): Call dir_change callback if working_directory
1003 * gcc.c (cpp_unique_options): Pass -g*.
1004 * c-lex.c (cb_dir_change): New.
1005 (init_c_lex): Set dir_change callback.
1006 * toplev.c (src_pwd): New static variable.
1007 (set_src_pwd, get_src_pwd): New functions.
1008 * toplev.h (get_src_pwd, set_src_pwd): Declare.
1009 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
1010 * dwarf2out.c (gen_compile_unit_die): Likewise.
1011 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
1013 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
1015 * pretty-print.h (pp_set_line_maximum_length): Make macro.
1016 (pp_set_prefix): Likewise.
1017 (pp_destroy_prefix): Likewise.
1018 (pp_remaining_character_count_for_line): Likewise.
1019 (pp_clear_output_area): Likewise.
1020 (pp_formatted_text): Likewise.
1021 (pp_last_position_in_text): Likewise.
1022 (pp_emit_prefix): Likewise.
1023 (pp_append_text): Likewise.
1024 (pp_flush): Likewise.
1025 (pp_format_text): Likewise.
1026 (pp_format_verbatim): Likewise.
1027 (pp_tree_identifier): Tidy.
1028 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
1029 (pp_base_format_verbatim): Rename from pp_format_verbatim.
1030 (pp_base_flush): Rename from pp_flush.
1031 (pp_base_set_line_maximum_length): Rename from
1032 pp_set_line_maximum_length.
1033 (pp_base_clear_output_area): Rename from pp_clear_output_area.
1034 (pp_base_set_prefix): Rename from pp_set_prefix.
1035 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
1036 (pp_base_emit_prefix): Rename from pp_emit_prefix.
1037 (pp_base_append_text): Rename from pp_append_text.
1038 (pp_base_formatted_text): Rename from pp_formatted_text.
1039 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
1040 (pp_base_remaining_character_count_for_line): Rename from
1041 pp_remaining_character_count_for_line.
1042 * diagnostic.h (diagnostic_format_decoder): Tidy.
1043 (diagnostic_flush_buffer): Likewise.
1044 * c-pretty-print.h: (pp_c_string_literal): Declare.
1045 (pp_c_real_literal): Likewise.
1046 (pp_c_integer_literal): Likewise.
1047 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
1049 (pp_c_character_literal): Tidy.
1050 (pp_c_string_literal): Make public.
1051 (pp_c_bool_literal): Likewise.
1052 (pp_c_integer_literal): Likewise.
1053 (pp_c_real_literal): Likewise.
1055 * Makefile.in (C_PRETTY_PRINT_H): New variable.
1056 (c-pretty-print.o): Update dependence.
1058 2003-08-05 Chris Demetriou <cgd@broadcom.com>
1060 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
1061 ".set nomacro" state.
1062 (fix_truncsfsi2_macro): Likewise.
1064 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
1066 * tree.h (DID_INLINE_FUNC): Remove macro.
1067 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
1068 add tree check for FUNCTION_DECL.
1069 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
1070 (struct tree_decl): Rename inlined_function_flag to
1071 declared_inline_flag.
1072 * c-common.h (c_lang_decl): Remove.
1073 (DECL_ESTIMATED_INSNS): Remove.
1074 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
1075 (DECL_DECLARED_INLINE_P): Remove.
1076 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
1077 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
1078 (finish_function): Make uninlinable a bool. Fixup call to
1079 tree_inlinable_function_p() and fix some code style issues.
1080 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
1081 * cgraph.c (dump_cgraph): Likewise.
1082 * cgraphunit.c (cgraph_decide_inlining): Likewise
1083 (cgraph_finalize_compilation_unit): Likewise.
1084 Also update call to tree_inlinable_function_p().
1085 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
1086 look at DECL_DECLARED_INLINE and reverse logic.
1087 * print-tree.c (print_node): Likewise.
1088 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
1089 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
1091 * tree-inline.c (inlinable_function_p): Split up in this function to
1092 check for basic inlining inhibiting conditions, and new
1093 limits_allow_inlining() function. Warn if inlining is impossible
1094 because the inline candidate calls alloca or uses sjlj exceptions.
1095 (limits_allow_inlining): this new function to check if the inlining
1096 limits are satisfied. Throttle from currfn_max_inline_insns, not from
1097 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
1098 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
1100 (tree_inlinable_function_p): Make a bool. Update call to
1101 inlinable_function_p
1102 (expand_call_inline): Use limits_allow_inlining() when not in
1103 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
1104 instead see if the function was declared `inline'.
1106 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
1108 * gcse.c (try_replace_reg): Fix updating of note.
1110 2003-08-04 Roger Sayle <roger@eyesopen.com>
1113 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
1114 logic in negate_expr, i.e. we don't invert (A-B) for floating
1115 point types unless flag_unsafe_math_optimizations.
1117 2003-08-04 Roger Sayle <roger@eyesopen.com>
1119 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
1120 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
1121 for floating point expressions with -ffast-math.
1122 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
1123 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
1125 2003-08-04 Roger Sayle <roger@eyesopen.com>
1127 * c-common.c (flag_noniso_default_format_attributes): Delete.
1128 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
1129 (c_attrs_initialized): Delete.
1130 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
1131 always call c_init_attributes.
1132 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
1133 set c_attrs_initialized when done.
1134 (c_common_insert_default_attributes): Delete.
1135 * c-common.h (flag_noniso_default_format_attributes): Delete.
1136 (c_coomon_insert_default_attributes): Delete prototype.
1137 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
1138 flag_noniso_default_format_attributes.
1140 * c-decl.c (c_insert_default_attributes): Delete.
1141 * c-tree.h (c_insert_default_attributes): Delete prototype.
1143 * attribs.c (decl_attributes): Don't call insert_default_attributes
1144 langhook. Update function description comment.
1145 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
1146 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
1147 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
1148 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
1150 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
1153 2003-08-04 Richard Sandiford <rsandif@redhat.com>
1155 * config/mips/mips.c (override_options): Disable -G on targets that
1156 have no .section support.
1157 (mips_select_section): Use default_select_section for such targets.
1159 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
1161 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
1162 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
1163 * fixinc/fixincl.x: Rebuild.
1164 * fixinc/tests/base/regexp.h: New test.
1166 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
1168 * c-ppoutput.c (cb_line_change): Don't skip line changing while
1169 parsing macro arguments in the top-level context.
1171 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
1173 * config.in: Remove HAVE_LSTAT.
1174 * configure, configure.in: Don't test for lstat.
1176 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1178 * opts.c (decode_options): Do language-specific initialization for
1179 the global diagnostic context.
1180 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
1181 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
1182 (LANG_HOOKS_INITIALIZER): Adjust.
1183 * langhooks.h (struct lang_hooks): Add new field
1184 initialize_diagnostics.
1185 * langhooks.c (lhd_initialize_diagnostics): Define.
1187 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1189 * pretty-print.h: Adjust macro definitions.
1190 * pretty-print.c (pp_newline): Rename to pp_base_newline.
1191 (pp_character): Rename to pp_base_character.
1192 (pp_string): Rename to pp_base_string.
1193 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
1194 (pp_newline): Likewise. Adjust.
1195 (pp_c_char): Adjust.
1197 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1199 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
1200 BUILT_IN_LLABS): Move to miscellaneous section.
1202 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1204 PR preprocessor/11534
1205 * cppexp.c (parse_defined): Warn only if -pedantic.
1207 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1209 * cppfiles.c (stack_file): Use file path.
1211 2003-08-02 Roger Sayle <roger@eyesopen.com>
1213 * builtin-types.def (BT_SSIZE): New primitive type.
1214 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
1215 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
1216 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
1217 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
1218 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
1219 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
1220 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
1221 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
1222 few functions that define default attributes using it.
1223 * c-common.c (c_common_insert_default_attributes): Do nothing.
1225 * doc/extend.texi: Document these "new" builtins.
1227 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
1229 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
1230 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
1231 when -mieee-fp set and -shared not set.
1232 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
1234 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1236 * cppfiles.c (struct _cpp_file): Rename once_only_next to
1237 next_file. Remove import and pragma_once, add once_only.
1238 (find_file): Add new file structures to the all_files list.
1239 (should_stack_file): Mark #import-ed files once-only, and
1240 don't stack them if the file has already been stacked.
1241 (_cp_mark_file_once_only): Simplify.
1242 * cpphash.h (struct cpp_reader): Rename once_only_files
1243 to all_files. Rename saw_pragma_once to seen_once_only.
1244 (_cpp_mark_file_once_only): Update prototype.
1245 * cpplib.c (do_pragma_once): Update.
1247 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1249 * cppfiles.c (ENOTDIR): Remove.
1250 (open_file_in_dir): Rename find_file_in_dir. Handle errors
1251 other than ENOENT here.
1252 (once_only_file_p): Rename should_stack_file.
1253 (find_file, open_file_failed, read_file_guts): Report errors
1254 with full path name.
1255 (read_file): Move pch handling to should_stack_file.
1256 (should_stack_file): Handle PCH and once-only issues, and
1258 (stack_file): Don't do file reads.
1260 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1262 * libgcov.c (gcov_exit): Cleanup and fix.
1263 * profile.c (compute_value_histograms): Don't try to read profiles
1264 that are not present.
1266 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1268 * builtins.def: Categorize.
1270 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
1272 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
1274 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
1276 * config.gcc: Enable posix threads by default on darwin.
1278 2003-08-01 Jakub Jelinek <jakub@redhat.com>
1280 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
1281 even if nehedges1 is 0.
1283 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
1285 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
1286 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
1287 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
1290 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
1291 * fixinc/fixincl.x: Regenerate.
1292 * fixinc/tests/base/math.h: Regenerate to match test_text change.
1294 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1296 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
1298 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1300 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
1301 for accesses to exc_ptr.
1303 2003-08-01 Geoffrey Keating <geoffk@apple.com>
1305 * doc/sourcebuild.texi (Front End Directory): Don't make references
1306 to libsubdir, it's not part of the interface to frontends.
1307 * doc/install.texi (Configuration): Help users read faster by saying
1308 that GCC's configure options are the standard autoconf ones.
1309 Mention --libdir. Update the default rules for finding the
1310 assembler. Don't use libsubdir since we haven't said what it means.
1311 (Specific): In the Solaris 7 notes, update the place to put the
1313 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
1314 * doc/cpp.texi (Search Path): Actually, the search path
1315 depends on libdir, which can relocate with cpp.
1316 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
1317 now a private interface between the Makefile and the driver.
1319 2003-08-01 Richard Henderson <rth@redhat.com>
1321 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
1323 * varasm.c (lookup_constant_def): New function.
1324 * rtl.h (lookup_constant_def): Declare it.
1325 * dwarf2out.c (loc_descriptor_from_tree): Use it.
1326 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
1328 2003-08-01 Zack Weinberg <zack@codesourcery.com>
1330 * c-decl.c (gettags, pushdecl_function_level): Delete.
1331 (last_function_parm_vars): Rename last_function_parm_others.
1332 (current_function_parm_vars): Rename current_function_parm_others.
1333 (struct c_scope): Rewrite comment explaining this data structure.
1334 Add names_last, blocks_last, parms_last fields. Rename
1335 incomplete_list to incomplete.
1336 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
1337 (poplevel): Ignore second argument. No need to nreverse
1338 anything. Restructure such that each list is processed
1339 exactly once. Use 'const location_t *locus' syntactic sugar
1340 variable where useful. Issue unused variable warnings
1341 ourselves, do not rely on function.c.
1342 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
1343 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
1344 (implicitly_declare): decl cannot be error_mark_node.
1345 (undeclared_variable): Manipulate scope structure directly.
1346 (c_make_fname_decl): Likewise.
1347 (getdecls, c_init_decl_processing): Fix comment.
1348 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
1349 for 'last' variable.
1350 (grokparms): No need to nreverse parms list.
1351 (store_parm_decls_newstyle): Set up the parms_last and
1352 names_last fields of the new scope too.
1353 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
1354 on parms to begin with; check this under ENABLE_CHECKING. Set
1356 (check_for_loop_decls): Refer directly to current_scope->tags.
1357 Use consistent quote style in diagnostics.
1358 (c_write_global_declarations): The names list is not backward.
1360 * c-common.h: Don't prototype gettags.
1361 * c-parse.in: Call poplevel with second argument 0 always.
1363 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1365 * builtins.def: Resort builtins.
1367 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1369 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
1370 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
1371 Prepend "__builtin_" onto NAME with string concatenation. Remove
1372 explicit "__builtin_" from each macro call.
1374 Reformat entire file.
1376 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1378 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1379 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
1381 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
1383 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
1384 CCL1, or CCL2 modes with floating point operations.
1386 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
1387 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
1388 "*subdf3_cconly"): New insns.
1389 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
1391 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
1393 * Makefile.in: Refine dependencies.
1394 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
1395 * c.opt: Update help for -Wimport.
1396 * cppfiles.c: Include hashtab.h. Update comments.
1397 (stack_file): Read the file before updating dependencies.
1398 (once_only_file_p): Be smarter about marking once-only files.
1399 (_cpp_mark_file_once_only): Correct the check for existence on
1401 (open_file_failed): Use name not path, which is NULL.
1402 * cpphash.h: Don't include hashtab.h.
1403 (struct _cpp_file): Remove.
1404 (struct cpp_reader): Update.
1405 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
1406 * cpplib.h (struct cpp_options): Remove warn_import.
1407 (cpp_simplify_path): Remove.
1409 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
1412 * doc/extend.texi (Statement Expressions): Document C++ semantics.
1414 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1416 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
1418 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1420 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
1422 * builtins.def: Likewise.
1424 2003-07-31 Jason Merrill <jason@redhat.com>
1426 * Makefile.in (bubblestrap): Don't require a previous full
1429 * expr.c (mostly_zeros_p): No longer static.
1430 * tree.h: Declare it.
1431 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
1432 unless we need to do substitutions.
1434 2003-07-31 Roger Sayle <roger@eyesopen.com>
1436 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
1437 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
1438 as pow(x,2.0) when the latter will be expanded back into x*x.
1439 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
1440 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
1441 pow can never set errno when used with an integer exponent.
1442 Always use expand_powi when exponent is -1, 0, 1 or 2.
1443 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
1444 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
1445 the pow forms of these expressions.
1447 2003-07-31 Geoffrey Keating <geoffk@apple.com>
1449 * Makefile.in (libexecdir): New.
1450 (libsubdir): Use gcc instead of gcc-lib.
1451 (libexecsubdir): New.
1452 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
1453 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
1455 (installdirs): Make libexecsubdir.
1456 (install-common): Put executables in libexecsubdir.
1457 (itoolsdir): Use libexecsubdir.
1458 (itoolsdatadir): New.
1459 (install-mkheaders): Separate data files and executables.
1460 (install-collect2): Put executables in libexecsubdir.
1461 (uninstall): Remove libexecsubdir.
1462 * mkheaders.in: Update for new arrangement of files.
1464 (libexecsubdir): New.
1465 (itoolsdir): Use libexecsubdir.
1466 (itoolsdatadir): New.
1467 * gcc.c (gcc_libexec_prefix): New.
1468 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
1469 (standard_exec_prefix_1): Use libexec.
1470 (standard_exec_prefix_2): New.
1471 (standard_libexec_prefix): New.
1472 (process_command): Update for new arrangement of files. Compute
1473 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
1475 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
1477 * inclhack.def (stdio_va_list): Avoid bogus replacement which
1478 triggers on Interix.
1479 * fixincl.x: Regenerate.
1481 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1483 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
1484 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
1486 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1488 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
1490 2003-07-31 Per Bothner <pbothner@apple.com>
1492 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
1493 (add_input_filename): New function.
1494 (handle_options): Call add_input_filename directly instead of
1496 * opts.h (in_fnames, num_in_fnames): Moved here.
1497 (add_input_filename): Declare.
1498 * c-decl.c: Need to #include opts.h.
1499 * Makefile.in (c-decl.o): Also depends on opts.h.
1500 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
1501 (c_common_handle_filename): Replaced by add_input_filename.
1502 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
1504 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
1505 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1506 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
1507 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1509 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1511 * combine.c (try_combine): Set JUMP_LABEL for newly created
1514 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1516 * fold-const.c (fold): Fold some comparisons of bit operations.
1518 Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
1520 * cgraph.c (create_edge): Fix typo.
1521 * i386.c (pic_symbolic_operand): Reorder tests.
1523 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
1525 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
1527 (Gcov Data Files): Update.
1529 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1531 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
1534 * gthr-posix.c: New file.
1535 * gthr-posix.h: Define _REENTRANT if missing.
1536 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
1538 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
1540 * config/alpha/t-osf-pthread: New file.
1542 * fixinc/inclhack.def (alpha_pthread): New fix.
1543 * fixinc/fixincl.x: Regenerate.
1544 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
1546 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
1548 Fixes PR bootstrap/9330.
1550 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1552 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
1555 * configure: Regenerate.
1557 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
1559 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
1562 2003-07-30 Roger Sayle <roger@eyesopen.com>
1564 * builtins.def: Alphabetize.
1566 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1568 * doc/c-tree.texi: Normalize spellings of "lowercase" and
1570 * doc/cpp.texi: Likewise.
1571 * doc/md.texi: Likewise.
1572 * doc/rtl.texi: Likewise.
1573 * doc/tm.texi: Likewise.
1575 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1577 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
1578 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
1581 2003-07-30 Chris Demetriou <cgd@broadcom.com>
1583 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
1584 macros before defining them.
1586 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
1588 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
1589 UNSPECV_BLOCKAGE): New constants.
1590 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
1591 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
1592 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
1593 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
1595 (all insns and expanders): Write output control string as brace block
1596 where appropriate. Remove \-escapes for doublequote characters.
1598 Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
1600 * gcse.c (insert_store): Fix typo in previous patch.
1602 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
1604 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
1606 2003-07-30 Andi Kleen <ak@muc.de>
1608 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
1610 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1612 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
1613 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
1614 GCOV_N_VALUE_COUNTERS): New.
1615 * profile.c (compute_value_histograms): New static function.
1616 (branch_prob): Read back the value histograms.
1617 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
1618 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
1619 * value-prof.c: Add comment on reading the profile.
1620 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
1621 * doc/invoke.texi (-fprofile-values): Document behavior with
1622 -fbranch-probabilities.
1624 2003-07-30 David Edelsohn <edelsohn@gnu.org>
1626 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
1628 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
1630 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
1633 Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
1635 * gcse.c (insert_store): Ignore fake edges.
1637 * c-common.c (flag_vtable_gc): Kill.
1638 * c-common.g (flag_vtable_gc): Kill.
1639 * c-opts (c_common_handle_option): Kill.
1640 * c.opt (fvtable-gc): Kill.
1641 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
1642 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1643 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1645 * invoke.texi (-ftable-gc): Kill documentation.
1647 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
1648 just because function body is missing.
1650 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
1652 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
1654 * unwind-sjlj.c: Fix typo in file description.
1656 2003-07-30 Alan Modra <amodra@bigpond.net.au>
1658 * calls.c (load_register_parameters): When shifting reg sized values
1659 to the msb, move the value to a reg first.
1661 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1663 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
1664 * line-map.h (linemap_add): Update comments.
1665 * line-map.c (linemap_add): Update comments, interpret zero-length
1666 filename as "<stdin>".
1668 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
1670 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
1672 2003-07-29 Zack Weinberg <zack@codesourcery.com>
1674 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
1675 New static variables.
1676 (struct c_scope): Add parms and warned_forward_parm_decls
1677 fields; remove parm_order.
1678 (storedecls, storetags): Delete.
1679 (poplevel): Also clear bindings on the parms chain.
1680 (pushdecl): Handle forward declarations of parameters, and
1681 chain PARM_DECLs on the parms list, not the names list.
1682 (lookup_name_current_level): Check for PARM_DECLs on the parms
1684 (push_parm_decl): Don't update parm_order.
1685 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
1686 warning, only once per parameter list, and set TREE_ASM_WRITTEN
1687 on the decls here. Then move the forward decls to the names list.
1688 (grokparms): Set last_function_parm_vars.
1689 (get_parm_info): Don't use gettags or getdecls. No need to
1690 extract non-parms from the parms list, or reorganize the parms
1691 list. Feed nonparms back in the TREE_TYPE of the list node
1692 returned. Issue only one error per parameter list for "void"
1693 appearing more than once in said parameter list. Collapse
1694 parmlist_tags_warning into this function to avoid double scan
1696 (start_function): Set current_function_parm_vars.
1697 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
1698 directly. Get non-parms from current_function_parm_vars; no
1699 need to extract them from the parms chain. Properly bind tags
1701 (store_parm_decls_oldstyle): No need to extract non-parameters
1702 from the parms chain, nor to store them back afterward. Move
1703 declaration to top of function, restructure code reordering
1705 (store_parm_decls): No need to save and restore warn_shadow.
1706 * c-parse.in: Don't call parmlist_tags_warning nor
1707 clear_parm_order. Call mark_forward_parm_decls when forward
1708 parm decls are encountered.
1709 * c-tree.h: Prototype mark_forward_parm_decls; not
1710 clear_parm_order or parmlist_tags_warning.
1712 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1714 * c-common.c (allow_pch): Remove.
1715 * c-common.h (allow_pch): Remove.
1716 (c_common_no_more_pch): Declare.
1717 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
1718 * c-pch.c: Include hosthooks.h.
1719 (c_common_valid_pch): Don't check allow_pch.
1720 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
1721 (c_common_no_more_pch): New.
1722 * ggc-common.c: Include hosthooks.h.
1723 (gt_pch_save): Call gt_pch_get_address.
1724 (gt_pch_restore): Call gt_pch_use_address.
1725 * hooks.c (hook_voidp_size_t_null): New.
1726 (hook_bool_voidp_size_t_false): New.
1727 * hooks.h (hook_voidp_size_t_null): New.
1728 (hook_bool_voidp_size_t_false): New.
1729 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
1730 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
1731 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
1732 HOST_HOOKS_GT_PCH_USE_ADDRESS.
1733 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
1735 * doc/hostconfig.texi (Host Common): Document
1736 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
1737 * Makefile.in (c-pch.o): Depend on hosthooks.h.
1738 (ggc-common.o): Likewise.
1740 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
1741 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
1742 (pch_address_space): New.
1743 (darwin_rs6000_gt_pch_get_address): New.
1744 (darwin_rs6000_gt_pch_use_address): New.
1746 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
1748 PR preprocessor/11569
1749 PR preprocessor/11649
1750 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
1751 * cppfiles.c: Completely rewritten.
1752 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
1753 struct cpp_path is now struct cpp_dir.
1754 (remove_duplicates): Don't simplify path names.
1755 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
1757 * cpphash.h: Include hashtab.h.
1758 (_cpp_file): Declare.
1759 (struct cpp_buffer): struct include_file is now struct _cpp_file,
1760 and struct cpp_path is now struct cpp_dir. Rename members.
1761 (struct cpp_reader): Similarly. New members once_only_files,
1762 file_hash, file_hash_entries, quote_ignores_source_dir,
1763 no_search_path, saw_pragma_once. Remove all_include_files and
1764 max_include_len. Make some members bool.
1765 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
1766 (_cpp_stack_file): Renamed from _cpp_read_file.
1767 (_cpp_stack_include): Renamed from _cpp_execute_include.
1768 (_cpp_init_files): Renamed from _cpp_init_includes.
1769 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
1770 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
1771 (cpp_read_next_file): Rename and move to cppfiles.c.
1772 (cpp_read_main_file): Update.
1773 * cpplib.c (run_directive): Update for renamed members.
1774 (do_include_common, _cpp_pop_buffer): Update.
1775 (do_import): Undeprecate #import.
1776 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
1777 * cpplib.h: Remove file_name_map_list.
1778 (cpp_options): Remove map_list.
1779 (cpp_dir): Rename from cpp_path. New datatype for name_map.
1780 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
1782 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
1784 * Makefile.in: Make stamp-objdir safe for parallel builds.
1786 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
1788 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
1789 (info): Depend on stmp-docobjdir.
1791 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1793 * configure: Regenerate.
1795 Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
1798 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
1799 in !unit-at-a-time mode.
1801 2003-07-28 Geoffrey Keating <geoffk@apple.com>
1803 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
1806 2003-07-28 Mark Mitchell <mark@codesourcery.com>
1809 * c-common.c (shorten_compare): Take into account differences
1810 between C and C++ representation for enumeration types.
1811 * tree.h (set_min_and_max_values_for_integral_type): Declare.
1812 * stor-layout.c (set_min_and_max_values_for_integral_type): New
1813 function, broken out from ...
1814 (fixup_signed_type): ... here and ...
1815 (fixup_unsigned_type): ... here.
1817 2003-07-28 Zack Weinberg <zack@codesourcery.com>
1819 * c-decl.c: Update commentary, adjust blank lines throughout.
1820 (struct c_scope): Fix indentation. Reorder members so
1821 outer-context pointers come first, booleans last.
1822 (duplicate_decls, define_label): Use a 'locus' variable for
1823 diagnostic locations in a few more places.
1824 (warn_if_shadowing): Un-split a conditional that fits on one line.
1825 (c_init_decl_processing): No need to clear current_scope and
1826 current_function_scope.
1827 (start_decl): Merge if/else if statements with same action.
1828 (push_parm_decl): Rename old_immediate_size_expand to use
1829 save_foo convention; save/restore around entire function.
1830 (grokdeclarator): Remove unnecessary braces.
1832 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
1833 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
1835 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
1836 when warn_declaration_after_statement. Call pedwarn_c90, not
1837 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
1838 * c-common.c (warn_declaration_after_statement): Define.
1839 * c-common.h (warn_declaration_after_statement): Declare.
1840 * c.opt (Wdeclaration-after-statement): New.
1841 * c-errors.c (pedwarn_c90): New function.
1842 * c-opts.c (c_common_handle_option) <case
1843 OPT_Wdeclaration_after_statement>: New.
1844 * c-tree.h (pedwarn_c90): Declare.
1845 * doc/invoke.texi (Option Summary): Document
1846 -Wdeclaration-after-statement.
1847 (Warning Options): Ditto.
1849 Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
1851 * i386.md (memory attribute) Avoid accessing uninitialized memory
1852 for ishift1 type instructions.
1854 2003-07-28 Jakub Jelinek <jakub@redhat.com>
1856 * configure.in (--enable-checking): Add fold category.
1857 (ENABLE_FOLD_CHECKING): Define if requested.
1858 * configure: Rebuilt.
1859 * config.in: Rebuilt.
1860 * doc/install.texi: Document it.
1861 * fold-const.c: Include md5.h.
1862 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
1863 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
1864 print_fold_checksum): New functions.
1866 * fold-const.c (fold): Never modify argument passed to fold, instead
1867 change a copy and return it.
1868 * convert.c (convert_to_integer): Likewise.
1870 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
1872 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
1873 cleanup of junk after #else and #endif directives. Collapse repeated
1874 clauses into for statment.
1876 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
1878 2003-07-27 Zack Weinberg <zack@codesourcery.com>
1880 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
1881 (keep_next_if_subblocks): Rename next_is_function_body.
1882 (pushlevel): Adjust commentary. Always set ->keep on the
1883 outermost level of a function. Don't set ->keep_if_subblocks.
1884 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
1885 (store_parm_decls): Adjust to match.
1886 (finish_function): Adjust to match.
1887 Call poplevel with all three arguments zero.
1889 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
1890 New functions split out of store_parm_decls.
1891 Avoid unnecessary work. Use local variables consistently.
1892 (store_parm_decls): Likewise.
1894 (finish_function): No need to set functionbody flag on call to
1896 (struct language_function): Remove scope field.
1897 (c_push_function_context, c_pop_function_context): No need to
1898 save and restore current_scope.
1900 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
1902 * doc/extend.texi (Deprecated Features): Implicit typename is
1903 gone. Default args on types is going.
1905 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
1907 * Makefile.in (ifcvt.o): Depend on target.h
1908 * ifcvt.c (target.h): Include.
1909 (if_convert): Don't call mark_loop_exit_edges if we can't
1912 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1914 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
1916 2003-07-26 Richard Henderson <rth@redhat.com>
1919 * cse.c (count_reg_usage): Handle asm_operands properly.
1921 2003-07-26 Roger Sayle <roger@eyesopen.com>
1923 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
1924 (DEF_EXT_FALLBACK_BUILTIN): Delete.
1925 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
1926 the regular DEF_EXT_LIB_BUILTIN macro.
1927 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
1928 the regular DEF_LIB_BUILTIN macro.
1929 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
1930 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
1931 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
1932 DEF_EXT_LIB_BUILTIN macro.
1934 * c-decl.c (duplicate_decls): Remove code to handle builtin
1935 functions prototyped without an argument list.
1937 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
1939 * config/i386/winnt.c: Revert 2003-07-08 change.
1940 (i386_pe_section_type_flags): Remove error_with_decl here too.
1942 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
1944 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
1945 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
1946 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
1947 (v850_handle_data_area_attribute): Likewise.
1949 2003-07-26 Geoffrey Keating <geoffk@apple.com>
1951 * varasm.c (output_constant_def_contents): Use
1952 ASM_DECLARE_CONSTANT_NAME if defined.
1953 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
1954 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
1955 objects get at least one byte to prevent assembler problems.
1956 (ASM_DECLARE_CONSTANT_NAME): New.
1958 * Makefile.in (libbackend.o): Remove options_.h.
1959 (mostlyclean): Likewise.
1961 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
1962 insert a label at the end of an function under Mach-O.
1964 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
1966 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
1968 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
1970 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
1972 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
1974 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1976 * doc/passes.texi (Passes): Mention pretty-printing and
1979 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
1981 * doc/extend.texi (Function Attributes): GNU C++ does now allow
1982 unused parameter decls.
1983 (Attribute Syntax): GNU C++ does not allow label attributes to be
1986 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1988 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
1989 (objc_declare_class): Likewise.
1990 (error_with_ivar): Likewise.
1991 (start_class): Likewise.
1992 (warn_with_method): Likewise.
1994 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1996 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
1998 * calls.c (try_to_integrate): Don't use xxx_with_decl.
1999 (expand_call): Likewise.
2000 * dwarfout.c (output_reg_number): Likewise.
2001 * expr.c (expand_expr): Likewise.
2002 * function.c (assign_temp): Likewise.
2003 (uninitialized_vars_warning): Likewise.
2004 (setjmp_args_warning): Likewise.
2005 (expand_function_end): Likewise.
2006 * stmt.c (fixup_gotos): Likewise.
2007 (warn_about_unused_variables): Likewise.
2008 (expand_end_bindings): Likewise.
2009 * stor-layout.c (layout_decl): Likewise.
2010 (place_field): Likewise.
2011 * toplev.c (check_global_declarations): Likewise.
2012 (rest_of_handle_inlining): Likewise.
2013 (default_tree_printer): New function.
2014 (general_init): Initialize diagnostic machinery before routing
2015 signals to the ICE machinery. Set default tree printer.
2016 * toplev.h (pedwarn_with_decl): Remove declaration.
2017 (warning_with_decl): Likewise.
2018 (error_with_decl): Likewise.
2019 (pedwarn): Remove attribute for the time being.
2020 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
2021 * varasm.c (named_section): Likewise.
2022 (make_decl_rtl): Likewise.
2023 (assemble_variable): Likewise.
2024 (merge_weak): Likewise.
2025 (declare_weak): Likewise.
2027 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
2028 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
2029 (format_with_decl): Remove.
2030 (diagnostic_for_decl): Likewise.
2031 (pedwarn_with_decl): Likewise.
2032 (warning_with_decl): Likewise.
2033 (error_with_decl): Likewise.
2034 (diagnostic_initialize): Adjust.
2035 (diagnostic_count_diagnostic): Likewise.
2036 (announce_function): Likewise.
2037 (lhd_print_error_function): Likewise.
2038 (diagnostic_report_current_module): Likewise.
2039 (default_diagnostic_starter): Likewise.
2040 (diagnostic_report_diagnostic): Likewise.
2041 (default_diagnostic_finalizer): Likewise.
2042 (verbatim): Likewise.
2044 (warning): Likewise.
2045 * opts.c (common_handle_option): Likewise.
2046 * pretty-print.c: New file.
2047 * c-pretty-print.h (pp_base): Override.
2048 * c-pretty-print.c: Adjust use of macros throughout.
2049 (pp_buffer): New macro.
2050 (pp_newline): Likewise.
2051 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
2052 * Makefile.in (DIAGNOSTIC_H): New variable.
2053 (c-errors.o): Use it.
2054 (c-objc-common.o): Likewise.
2055 (c-common.o): Likewise.
2056 (c-opts.o): Likewise.
2057 (c-format.o): Likewise.
2058 (diagnostic.o): Likewise.
2060 (toplev.o): Likewise.
2061 (rtl-error.o): Likewise.
2062 (dwarf2out.o): Likewise.
2064 (pretty-print.o): New rule.
2066 2003-07-24 Roger Sayle <roger@eyesopen.com>
2068 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
2069 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
2070 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
2071 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
2072 (DEF_FRONT_END_LIB_BUILTIN): Delete.
2073 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
2074 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
2076 * builtins.c (build_string_literal): New function to construct
2077 a char* pointer to a string literal.
2078 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
2079 "rtx target" to be consistent with other expand_builtin_* functions.
2080 Change 3rd argument from "int unlocked" to "bool unlocked".
2081 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
2082 c-common.c to avoid front-end dependencies. Optimize printf("")
2083 as a no-op when the result isn't required. Handle embedded NULs
2085 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
2086 from c-common.c to avoid front-end dependencies. Likewise, optimize
2087 fprintf(fp,"") as a no-op when the result isn't required, evaluating
2088 fp for side-effects. Handle embedded NULs in format string.
2089 (expand_builtin_sprintf): Fix typo.
2090 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
2091 optimizing. Adjust calls of expand_builtin_fputs to match the API
2092 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
2093 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
2094 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
2096 * c-common.c (is_valid_printf_arglist): Delete.
2097 (c_expand_builtin): Delete.
2098 (c_expand_builtin_printf): Moved to builtins.c. Delete.
2099 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
2100 (c_expand_expr): No longer treat CALL_EXPRs specially.
2101 (CALLED_AS_BUILT_IN): Delete.
2103 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2105 PR optimization/11631
2106 * gcse.c (store_motion): Connect infinite loops to exit.
2108 2003-07-24 Jason Merrill <jason@redhat.com>
2110 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
2111 (boolean_true_node, boolean_false_node): Likewise.
2112 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
2113 * tree.c (build_common_tree_nodes): Init boolean_type_node.
2114 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
2115 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
2116 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
2117 (truthvalue_true_node): Renamed from boolean_true_node.
2118 (truthvalue_false_node): Renamed from boolean_false_node.
2119 * c-decl.c: Just set truthvalue_* to integer_*.
2120 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
2122 2003-07-24 Roger Sayle <roger@eyesopen.com>
2124 * c-decl.c (match_builtin_function_types): New subroutine of
2125 duplicate_decls to test whether a redeclaration of a builtin
2126 function is suitably close, i.e. the return type and all of
2127 the argument types have the same modes as the builtin expects.
2128 (duplicate_decls): Fuzzy type matching for builtin functions
2129 moved to match_builtin_function_types.
2131 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2133 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
2136 2003-07-24 Zack Weinberg <zack@codesourcery.com>
2138 * c-decl.c: Search-and-replace change 'binding level' to
2139 'scope' in commentary.
2140 (struct binding_level): Now struct c_scope.
2141 (current_binding_level): Now current_scope.
2142 (free_binding_level): Now scope_freelist.
2143 (current_function_level): Now current_function_scope.
2144 (global_binding_level): Now global_scope.
2145 (make_binding_level): Now make_scope.
2146 (pop_binding_level): Now pop_scope.
2148 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2150 * configure.in (libgcc_visibility): Add missing whitespace.
2152 2003-07-24 Richard Henderson <rth@redhat.com>
2154 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
2155 __gcc_personality_v0.
2157 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2159 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
2161 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
2163 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
2164 documentation missed from my 2003-07-09 patch.
2166 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
2168 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
2170 * configure: Rebuild.
2172 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
2175 * c-typeck.c (type_lists_compatible_p): Do not compare
2176 arguments if one of them is an error_mark_node
2178 2003-07-24 Alan Modra <amodra@bigpond.net.au>
2180 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
2181 if current_function_calls_eh_return.
2183 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2185 * doc/c-tree.texi (OFFSET_TYPE): Update description.
2187 2003-07-23 Bob Wilson <bob.wilson@acm.org>
2189 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
2190 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
2191 __umodsi3, __modsi3): Increase frame size to 32.
2193 2003-07-23 Geoffrey Keating <geoffk@apple.com>
2195 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
2198 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2200 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
2202 PR optimization/10679
2203 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
2205 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2207 PR target/11607 and PR target/11516
2208 * pa.md (extzv, extv, insv): Revert latter half of last patch.
2210 2003-07-22 Mark Mitchell <mark@codesourcery.com>
2212 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
2213 * varasam.c (output_constant): Likewise.
2215 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2217 * alias.c: Fix comment formatting.
2218 * c-common.c: Likewise.
2219 * c-decl.c: Likewise.
2220 * c-opts.c: Likewise.
2221 * combine.c: Likewise.
2222 * cpplib.c: Likewise.
2223 * diagnostic.c: Likewise.
2224 * dojump.c: Likewise.
2225 * final.c: Likewise.
2226 * fold-const.c: Likewise.
2229 * ggc-page.c: Likewise.
2232 * mips-tfile.c: Likewise.
2233 * recog.c: Likewise.
2234 * regclass.c: Likewise.
2235 * regmove.c: Likewise.
2239 2003-07-22 Per Bothner <pbothner@apple.com>
2241 * line-map.c (add_line_map): Handle invalid LEAVE request.
2242 Fixes PR preprocessor/11361.
2244 2003-07-22 Per Bothner <pbothner@apple.com>
2246 * diagnostic.c.(diagnostic_report_current_module): Update to match
2247 2003-06-05 changes to push_srcloc and pop_srcloc.
2249 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
2251 * doc/trouble.texi: Better document two-stage name lookup.
2253 2003-07-22 Eric Christopher <echristo@redhat.com>
2255 * config/s390.c (s390_valid_pointer_mode): New.
2256 (TARGET_VALID_POINTER_MODE): Use.
2257 (s390_emit_prologue): Add tpf profiling hooks.
2258 (s390_emit_epilogue): Ditto.
2259 * config/s390.h (MASK_TPF): New.
2261 (POINTERS_EXTEND_UNSIGNED): Define.
2262 * config/s390.md (ptr_extend): New pattern.
2264 2003-07-22 Zack Weinberg <zack@codesourcery.com>
2266 * hashtable.c (approx_sqrt): Make static.
2267 * hashtable.h: Don't prototype approx_sqrt.
2268 * line-map.c (init_line_maps): Rename linemap_init.
2269 (free_line_maps): Rename linemap_free.
2270 (add_line_map): Rename linemap_add.
2271 (lookup_line): Rename linemap_lookup.
2272 (print_containing_files): Rename linemap_print_containing_files.
2273 * linemap.h: Update to match.
2275 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
2276 linemap routines to use new names.
2278 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
2280 * c-common.c (handle_packed_attribute): Don't pack a struct via a
2281 typedef. Propagate packedness from a main variant.
2283 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
2285 * Makefile.in (install-common): Add dependency on installdirs.
2287 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
2289 * c-common.c (c_common_type_for_mode): Return integer types for
2292 2003-07-22 Geoffrey Keating <geoffk@apple.com>
2294 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
2295 (finish_decl): Call maybe_apply_pragma_weak here.
2296 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
2297 TREE_PUBLIC and TREE_STATIC are decided.
2298 (start_function): Move call to maybe_apply_pragma_weak. Check that
2299 DECL_ASSEMBLER_NAME isn't set too early.
2301 * cpplex.c (_cpp_process_line_notes): Mention option name in
2304 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2306 * combine.c (if_then_else_cond): Simplify the comparison of
2307 rtx against -1, 0, and 1.
2308 * loop.c (check_dbra_loop): Likewise.
2309 * optabs.c (emit_conditional_move): Likewise.
2310 (emit_conditional_add): Likewise.
2311 * config/i386/i386.md (*movsi_or): Likewise.
2312 (*movdi_or_rex6): Likewise.
2314 Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
2316 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
2318 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
2320 * cppfiles.c (open_file_pch): Don't put unused entries in the
2321 splay tree. Remove dead code.
2323 2003-07-21 Geoffrey Keating <geoffk@apple.com>
2325 * c-common.h (num_in_fnames): Declare.
2326 (c_static_assembler_name): Move from here...
2327 * c-tree.h (c_static_assembler_name): ... to here.
2328 * c-opts.c: Don't include langhooks-def.h.
2329 (c_static_assembler_name): Move to c-decl.c.
2330 (num_in_fnames): Make externally visible.
2331 * c-decl.c: Include langhooks-def.h.
2332 (c_static_assembler_name): Move from c-opts.c.
2333 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
2334 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
2336 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
2337 when it's not needed.
2339 2003-07-21 Jakub Jelinek <jakub@redhat.com>
2341 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
2342 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
2343 (rs6000_emit_prologue): Save FPRs inline if set.
2345 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
2347 * config/ia64/ia64.md (prefetch): Support predicate.
2349 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
2351 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
2352 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
2355 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2357 PR optimization/11536
2358 * unroll.c (loop_iterations): Do not replace a register holding
2359 the final value by its equivalent before the loop if it is not
2362 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
2364 * doc/extend.texi: Fixes to spelling, grammar, and diction.
2366 2003-07-21 Ben Elliston <bje@wasabisystems.com>
2368 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
2369 (V850 Options): Spelling fixes.
2371 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
2373 * doc/invoke.texi: Fixes to style, grammar and diction.
2375 2003-07-20 Roger Sayle <roger@eyesopen.com>
2377 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
2378 * system.h (SMALL_STACK): Poison obsolete target macro.
2379 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
2381 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
2383 * configure.in: Cache the results of testing for cmp's capabilities.
2384 * configure: Regenerate.
2386 2003-07-20 Mark Mitchell <mark@codesourcery.com>
2389 * dwarf2out.c (gen_enumeration_type_die): Remember that
2390 enumerators can be unsigned.
2392 2003-07-19 Zack Weinberg <zack@codesourcery.com>
2394 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
2395 (push_label_level, pop_label_level): Kill.
2396 (struct binding_level): Rename level_chain to outer.
2397 Add outer_function field. Change parm_flag, function_body,
2398 keep, keep_if_subblocks to 1-bit bitfields of type bool.
2399 (current_function_level): New variable.
2400 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
2401 (keep_next_level, declare_parm_level, warn_if_shadowing):
2403 (struct language_function): Kill named_labels, shadowed_labels fields.
2404 (c_init_decl_processing, start_function, c_push__function_context)
2405 (c_pop_function_context): No need to muck with named_labels nor
2408 (make_binding_level): No need to clear the structure here.
2409 (pop_binding_level): Always operate on current_binding_level.
2410 Update current_function_level if necessary.
2411 (pushlevel): Don't clear named_labels. Update current_function_level
2412 if necessary. Use "true" and "false" where appropriate.
2413 (poplevel): Diagnose labels defined but not used, or vice
2414 versa, and clear out label-meanings leaving scope, while
2415 walking down the decls list, for all binding levels.
2416 Handle LABEL_DECLs appearing in the shadowed list.
2417 pop_binding_level takes no arguments.
2418 (pushdecl_function_level): Use current_function_level.
2420 (make_label, bind_label): New static functions.
2421 (declare_label): New exported function.
2422 (lookup_label, define_label): Rewritten for new data structure.
2423 (shadow_label): Kill.
2425 * c-tree.h: Prototype declare_label; don't prototype
2426 push_label_level, pop_label_level, nor shadow_label.
2427 * c-parse.in: Remove all calls to push_label_level and
2428 pop_label_level. Use declare_label for __label__ decls.
2430 * doc/extend.texi: Clarify that __label__ can be used to
2431 declare labels with local scope in any nested block, not
2432 just statement expressions. Cross-reference nested functions
2433 section from local labels section.
2435 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2437 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
2439 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
2441 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
2443 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2445 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
2446 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
2448 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
2450 * config/s390/s390.c (legitimize_pic_address): Access local symbols
2451 relative to the GOT instead of relative to the literal pool base.
2452 (s390_output_symbolic_const): Handle new GOT-relative accesses.
2453 * config/s390/s390.md ("call"): Access local functions and PLT stubs
2454 relative to the GOT instead of relative to the literal pool base.
2455 ("call_value"): Likewise.
2456 ("call_value_tls"): Likewise.
2458 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
2459 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
2460 (s390_chunkify_finish): Likewise.
2461 (s390_chunkify_cancel): Likewise.
2462 (s390_reorg): Adapt caller.
2463 (find_base_register_in_addr,
2464 find_base_register_ref, replace_base_register_ref): Delete.
2465 (find_ltrel_base, replace_ltrel_base): New functions.
2466 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
2467 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
2468 base vs. index register usage.
2469 (struct constant_pool): Remove 'anchor'.
2470 (s390_add_anchor): Delete.
2471 (s390_dump_pool): Remove anchor handling.
2472 * config/s390/s390.md ("reload_anchor"): Remove.
2474 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
2475 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
2476 (s390_emit_prologue): Use it.
2477 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
2478 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
2479 hard-code register 14.
2480 * config/s390/s390-protos.h (s390_load_got): Declare.
2482 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
2483 Support TImode constants.
2484 * config/s390/s390.md ("consttable_ti"): New.
2485 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
2487 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
2488 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
2489 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
2490 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
2491 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
2492 New symbolic constants.
2493 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
2494 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
2495 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
2496 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
2497 symbolic UNSPEC values.
2498 * config/s390/s390.c (larl_operand, s390_short_displacement,
2499 bras_sym_operand, s390_cannot_force_const_mem,
2500 s390_delegitimize_address, s390_decompose_address,
2501 legitimize_pic_address, s390_output_symbolic_const,
2502 s390_function_profiler): Use symbolic UNSPEC values.
2504 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2506 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
2507 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
2508 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
2509 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
2510 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
2511 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
2512 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
2513 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
2514 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
2515 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
2516 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
2517 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
2518 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
2519 postreload.c prefix.c print-tree.c protoize.c ra-build.c
2520 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
2521 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
2522 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
2523 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
2524 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
2525 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
2528 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2530 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
2531 * toplev.h (warning): Remove attribute.
2533 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2535 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
2536 (pop_label_level): Likewise.
2537 (duplicate_decls): Likewise.
2538 (implicitly_declare): Likewise.
2539 (shadow_label): Likewise.
2540 (start_decl): Likewise.
2541 (finish_decl): Likewise.
2542 (grokdeclarator): Likewise.
2543 (get_parm_info): Likewise.
2544 (detect_field_duplicates): Likewise.
2545 (finish_struct): Likewise.
2546 (start_function): Likewise.
2547 (store_parm_decls): Likewise.
2548 (finish_function): Likewise.
2549 (c_expand_body_1): Likewise.
2550 (check_for_loop_decls): Likewise.
2551 (merge_translation_unit_decls): Likewise.
2553 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
2555 * common.opt: Document --param.
2556 * opts.c (columns, undocumented_msg): New.
2557 (print_help): Get number of columns from environment. Print
2558 --param help. Tweak newline handling.
2559 (print_param_help): New.
2560 (print_filtered_help): Better handling of duplicates. Complain
2561 about undocumented switches.
2562 (print_switch): New.
2563 (wrap_help): Improve wrapping, use COLUMNS.
2564 * opts.sh: Ignore comments in records.
2565 * params.def: Fix typos and remove trailing periods.
2566 * toplev.c (display_help): Don't dump --param help.
2567 * doc/sourcebuild.texi: Update.
2569 2003-07-18 Richard Henderson <rth@redhat.com>
2572 * optabs.c (prepare_operand): Fail gracefully instead of abort
2573 if the predicate doesn't satisfy.
2574 (gen_cond_trap): Allow prepare_operand to fail.
2576 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2578 * c-common.c: Don't undefine GCC_DIAG_STYLE.
2579 (fname_decl): Don't use xxx_with_decl.
2580 (c_add_case_label): Likewise.
2581 (handle_section_attribute): Likewise.
2582 (handle_alias_attribute): Likewise.
2583 (handle_no_instrument_function_attribute): Likewise.
2584 (handle_no_limit_stack_attribute): Likewise.
2585 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
2586 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
2588 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2590 * Makefile.in (ifcvt.o): Add cfgloop.h.
2591 * basic-block.h (EDGE_LOOP_EXIT): New flag.
2592 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
2593 * ifcvt.c: Include cfgloop.h.
2594 (mark_loop_exit_edges): New static function.
2595 (if_convert): Call it.
2596 (find_if_header): Ignore branches out of loops.
2598 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
2600 * combine.c (simplify_comparison): Don't share rtx when converting
2601 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
2603 2003-07-18 David Edelsohn <edelsohn@gnu.org>
2605 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
2606 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2607 (MUST_PASS_IN_STACK): Define.
2608 (BLOCK_REG_PADDING): Define.
2610 2003-07-18 Richard Henderson <rth@redhat.com>
2612 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
2613 to skip the addr_vec.
2615 Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
2617 * combine.c (combinable_i3pat): Don't forbid occurrences of
2618 i2dest or i1dest in inner_dest if inner_dest is a mem.
2620 Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
2622 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
2624 2003-07-17 Jakub Jelinek <jakub@redhat.com>
2627 * loop.c (basic_induction_var): Check if convert_modes emitted any
2628 instructions. Remove them and return 0 if so.
2630 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
2632 PR optimization/11083
2633 * toplev.c (rest_of_handle_addresof): Rename into
2634 rest_of_handle_addressof. Delete unreachable blocks
2635 if dead edges were purged after the addressof pass.
2637 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
2639 * Makefile.in, configure, configure.in: Remove handling of
2640 lang-options.h and options_.h.
2641 * toplev.c (struct lang_opt, documented_lang_options): Remove.
2642 (display_help): Don't use documented_lang_options.
2644 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2646 * c-decl.c (pushdecl_function_level): Make static, return nothing.
2647 (kept_level_p): Fold into poplevel.
2648 (undeclared_variable): Moved here from c-typeck.c. Export.
2649 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
2650 (undeclared_variable): Prototype here. Don't prototype
2651 kept_level_p nor pushdecl_function_level.
2652 * c-parse.in: Change first argument to poplevel from
2653 "kept_level_p()" to "KEEP_MAYBE".
2654 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
2656 2003-07-17 Roger Sayle <roger@eyesopen.com>
2658 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
2659 commutative operands instead of modifying the RTL in-place.
2661 2003-07-17 Mark Mitchell <mark@codesourcery.com>
2663 PR optimization/11557
2664 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
2665 unless we know which function is being called.
2667 2003-07-17 Roger Sayle <roger@eyesopen.com>
2669 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
2670 whether to reorder the operands of a commutative binary operator.
2672 2003-07-17 Roger Sayle <roger@eyesopen.com>
2674 * fold-const.c (const_binop): Avoid performing the FP operation at
2675 compile-time, if either operand is NaN and we honor signaling NaNs,
2676 or if we're dividing by zero and either flag_trapping_math is set
2677 or the desired mode doesn't support infinities.
2678 (fold_initializer): New function to fold an expression ignoring any
2679 potential run-time exceptions or traps.
2680 * tree.h (fold_initializer): Prototype here.
2681 * c-typeck.c (build_binary_op): Move to the end of the file so
2682 that intializer_stack is in scope. If constructing an initializer,
2683 i.e. when initializer_stack is not NULL, use fold_initializer to
2685 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
2686 performing FP operations at compile-time, if they would raise an
2687 exception at run-time.
2689 2003-07-17 Geoffrey Keating <geoffk@apple.com>
2692 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
2693 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
2694 (GTFILES): Add langhooks.c.
2695 (gt-langhooks.h): New.
2696 * c-common.h (c_static_assembler_name): Prototype.
2697 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2698 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2699 * c-opts.c: Include langhooks-def.h.
2700 (c_static_assembler_name): New.
2701 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
2703 (lhd_set_decl_assembler_name): Give static objects with context
2705 * varasm.c (var_labelno): Delete.
2706 (make_decl_rtl): Don't change the assembler name once it's set.
2708 * c-opts.c (this_input_filename): New.
2709 (finish_options): Take new parameter, name of file being compiled.
2710 Update callers. Set this_input_filename.
2711 (push_command_line_include): Use this_input_filename not
2712 main_input_filename.
2714 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2716 * Makefile.in: Depend .pot generation on options.c.
2717 * po/exgettext: Add an extra_files variable containing additional
2720 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2722 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
2723 c_write_global_declarations.
2725 * c-decl.c: Fix typos in several comments. Remove all
2726 #if 0 blocks; reindent as needed. Remove unused argument
2727 to declare_parm_level; all callers changed.
2728 * c-parse.in: Update calls to declare_parm_level. Avoid
2729 issuing a double warning in some circumstances.
2730 * c-typeck.c: Update calls to declare_parm_level.
2731 * c-tree.h: Update prototype of declare_parm_level.
2733 * c-pragma.c (apply_pragma_weak): Don't complain about a
2734 redundant #pragma weak.
2736 * objc/objc-act.c (forward_declare_categories,
2737 build_selector_reference_decl, build_class_reference_decl,
2738 build_objc_string_decl, synth_forward_declarations,
2739 build_protocol_reference): Set TREE_PUBLIC on synthetic
2740 forward decl to 0, consistent with eventual definition.
2741 Correct comments to match.
2743 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
2744 in regexp that don't form a range expression.
2745 * fixinc/fixincl.def: Regenerate.
2747 2003-07-17 Richard Henderson <rth@redhat.com>
2750 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
2751 even with !TARGET_CONST_GP.
2752 (ia64_function_ok_for_sibcall): Reject non-local functions.
2754 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
2756 * c-common.c (c_estimate_num_insns_1): Don't handle
2758 * expr.c (safe_from_p): Likewise.
2759 * gengtype.c (adjust_field_tree_exp): Likewise.
2760 * stmt.c (warn_if_unused_value): Likewise
2761 * tree.c (first_rtl_op): Likewise.
2762 * tree.def: Don't define METHOD_CALL_EXPR.
2763 * java/lang.c (java_estimate_num_insns_1): Don't handle
2766 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2769 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
2770 and its restrictions for the SPARC64 port.
2771 Move the entry of "-mimpure-text" before that of "-mv8".
2773 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2774 Phil Edwards <phil@jaj.com>
2776 * doc/install.texi (*-*-solaris2*): Document the step-by-step
2777 procedure to bootstrap and install.
2778 Document the preference for the legacy Sun tools in /usr/bin
2779 over the POSIX tools in /usr/xpg4/bin for the build process.
2781 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2783 * c.opt: Document Uncodumented; use it. Document ObjC options.
2784 * opts.c (print_filtered_help): Skip undocumented switches.
2785 * opts.h (CL_UNDOCUMENTED): New.
2786 * opts.sh: Handle Undocumented.
2787 * toplev.c (documented_lang_options): Prevent its becoming empty.
2789 * lang-options.h: Remove.
2791 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
2793 * loop.c (check_ext_dependent_givs): Pass const struct loop *
2794 instead of struct loop_info * as argument. Accept BIVs with
2795 increment +/- 1 provided there is a friendly exit test against
2796 a loop-invariant value.
2797 (strength_reduce): Adapt call to check_ext_dependent_givs.
2799 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2800 Con Bradley <con.bradley@superh.com>
2802 * sh-protos.h (sh_get_pr_initial_val): Declare.
2803 * sh.c (regno_reg_class): Make its elements type enum reg_class.
2804 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
2805 and live_regs_mask arguments. Changed all callers.
2806 (save_schedule_s): New structure.
2807 (save_schedule): New typedef.
2808 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
2809 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
2810 In interrupts handlers, also save registers that are usually
2811 partially saved, and make sure there is at least one general purpose
2812 register saved if a target register needs saving.
2813 Add casts in comparisons to avoid warnings.
2814 (sh_media_register_for_return): return -1 for interrupt handlers.
2815 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
2816 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
2817 registers used are available.
2818 Set RTX_FRAME_RELATED_P where appropriate.
2819 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
2820 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
2821 (initial_elimination_offset): Likewise.
2822 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
2823 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
2824 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
2825 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
2826 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
2827 and for target registers.
2828 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
2829 (regno_reg_class): Make its elements type enum reg_class.
2830 (CONSTRAINT_LEN): Don't use isdigit.
2831 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
2832 (FUNCTION_ARG): Add parentheses to avoid warnings.
2833 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
2834 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
2835 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
2836 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
2837 * sh.md (xordi3+1): Remove unused variable regno.
2838 (return_media): Check that tr0 is available before using it.
2840 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
2842 * c.opt: Document more options.
2844 2003-07-16 Roger Sayle <roger@eyesopen.com>
2846 * combine.c (subst): Also handle (subreg (const_double ...)) case
2847 if created by a substitution, by using the original inner mode.
2849 2003-07-16 Roger Sayle <roger@eyesopen.com>
2851 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
2852 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
2853 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
2855 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
2857 * doc/install.texi (--without-headers): New.
2859 Partial Fix PR/10129
2860 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
2861 (machopic_output_function_base_name): New; print the true pic label.
2862 (machopic_classify_ident): Pic Base is always a defined data.
2863 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
2864 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
2866 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
2867 if they are not floating point registers.
2870 * ggc.h: Add header guards.
2871 * c-decl.c (finish_struct): Sort fields if
2872 number greater than 15 and there are no
2873 anonymous structs/unions.
2874 * c-common.h: Include ggc.h.
2875 (sorted_fields_type): New struct.
2876 (field_decl_cmp): New prototype.
2877 (resort_sorted_fields): New prototype.
2878 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
2879 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
2880 as s, removing other fields.
2881 * c-typeck.c (lookup_field): Use s in lang_type.
2882 These were mostly moved from cp/class.c:
2883 * c-common.c (field_decl_cmp): New static function.
2884 (field_decl_cmp): New function.
2885 (resort_sorted_fields): New function.
2887 2003-07-16 Geoffrey Keating <geoffk@apple.com>
2889 * config/darwin.c (machopic_select_section): Use decl_readonly_section
2890 to do most of the work.
2892 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
2894 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
2895 * config/mmix/mmix.c: Convert functions to ISO C90.
2896 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
2898 (mmix_get_hard_reg_initial_val): Tweak section head comment.
2900 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2902 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
2904 2003-07-16 Jakub Jelinek <jakub@redhat.com>
2906 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
2907 (uw_update_context_1): Use it.
2908 * config/rs6000/rs6000.c (insn_after_throw): Remove.
2909 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
2910 in parent frame if _Unwind_* called directly instead of through
2912 (rs6000_emit_eh_toc_restore): Remove.
2913 (rs6000_emit_prologue): Update stack pointer before doing any saving
2914 if current_function_calls_eh_return. Generate unwind info for $r2.
2915 (rs6000_emit_epilogue): Restore stack pointer after doing all
2916 restoring if current_function_calls_eh_return. Restore $r2.
2917 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
2918 * config/rs6000/rs6000.md (eh_return): Remove call to
2919 rs6000_emit_eh_toc_restore.
2920 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
2921 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
2923 2003-07-15 Jakub Jelinek <jakub@redhat.com>
2925 * expr.c (emit_block_move): Don't move anything if size is const 0.
2926 (clear_storage): Test against const0_rtx instead of comparing INTVAL
2929 2003-07-15 David S. Miller <davem@redhat.com>
2931 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
2932 emit nop if the last real insn is CALL_INSN.
2934 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2936 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
2938 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
2940 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2942 * config/i386/winnt.c (associated_type): Artificial methods are not
2943 affected by the import/export status of their class unless they are
2945 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
2947 * config/i386/winnt.c: Fix GCC copyright comment.
2949 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
2952 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
2953 not recursing on hard error.
2954 (diagnostic_for_decl): Likewise.
2955 * diagnostic.def: Rearrange.
2957 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2959 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
2960 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
2962 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2963 Richard Henderson <rth@redhat.com>
2965 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
2966 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
2967 (_Unwind_SetGR): Likewise.
2968 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
2969 (Unwind_SpTmp): New typedef.
2970 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
2971 (uw_update_context): Use _Unwind_GetPtr.
2972 (init_dwarf_reg_size_table): Move above uw_init_context_1.
2973 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
2974 Use _Unwind_SetSpColumn.
2975 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
2978 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
2980 * c.opt: Document more options.
2981 * toplev.c (documented_lang_options): Remove all local help strings.
2983 2003-07-15 Mark Mitchell <mark@codesourcery.com>
2986 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
2989 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
2992 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
2993 swap comparison operands if doing so would generate an
2994 unrecognizable insn.
2996 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
2998 PR optimization/11320
2999 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
3000 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
3001 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
3002 current_sched_info->compute_jump_reg_dependencies. Record which
3003 registers are used and which registers are set by the jump.
3004 Clear deps->reg_conditional_sets after a barrier.
3005 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
3006 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
3007 (init_deps): Initialize reg_conditional_sets.
3008 (free_deps): Clear reg_conditional_sets.
3009 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
3010 Mark registers live on entry of the fallthrough block and conditionally
3011 set as set by the jump. Mark registers live on entry of non-fallthrough
3012 blocks as used by the jump.
3013 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
3014 Mark new parameters as unused.
3016 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3018 * doc/invoke.texi: Resync MIPS -march documentation.
3020 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3022 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
3023 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
3024 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
3025 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
3026 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
3027 (mips_issue_rate): Handle PROCESSOR_R9000.
3028 (mips_use_dfa_pipeline_interface): Likewise.
3029 * config/mips/9000.md: New file.
3030 * config/mips/mips.md: Include it.
3031 (define_attr cpu): Add r9000.
3032 (mulsi3_mult3): Use "mul" for rm9000 code.
3034 2003-07-15 Stan Cox <scox@redhat.com>
3036 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
3037 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
3038 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
3039 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
3040 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
3041 (mips_issue_rate): Handle PROCESSOR_R7000.
3042 (mips_use_dfa_pipeline_interface): Likewise.
3043 * config/mips/7000.md: New file.
3044 * config/mips/mips.md: Include it.
3045 (define_attr cpu): Add r7000.
3046 (mulsi3_mult3): Use "mul" for rm7000 code.
3048 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
3050 * config/mips/mips.md (define_attr type): Add condmove. Use it for
3051 the conditional move patterns.
3052 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
3053 Check for condmove type.
3054 (ir_vr54_arith): Add move type.
3055 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
3056 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
3058 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
3060 * c-opts.c (print_help): Remove.
3061 (c_common_handle_option): Don't handle --help.
3062 * c.opt: Document some options.
3064 * opts.c (print_filtered_help): New.
3065 (print_help): Use it.
3067 2003-07-14 Geoffrey Keating <geoffk@apple.com>
3069 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
3070 * tree.c: (build_common_tree_nodes_2): Likewise.
3071 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
3072 (V4DF_type_node): New.
3074 * c-opts.c (push_command_line_include): Don't free deferred_opts,
3076 (finish_options): Reset init_cursor.
3078 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
3080 * expr.c (expand_assignment): Remove an unused argument
3082 * expr.h: Update the prototype.
3083 * function.c: Update the callers.
3086 2003-07-14 Mark Mitchell <mark@codesourcery.com>
3089 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
3092 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3094 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
3095 with __cplusplus, not "we must use the C++ compiler's type"
3096 * fixinc/inclhack.def (void_null): Note that Interix needs this.
3097 * fixinc/fixincl.x: Regenerate.
3099 2003-07-14 Geoffrey Keating <geoffk@apple.com>
3101 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
3102 and unseen_objects from the global data before calling
3103 __deregister_frame_info_bases.
3104 (examine_objects): Insert objects into the seen_objects list,
3106 (_Unwind_Find_FDE): Always unlock the global object lists, even if
3107 we couldn't allocate a data structure to put in it.
3109 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
3110 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
3111 (SET_TYPE_PROTOCOL_LIST): New.
3112 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
3113 (get_object_reference): Likewise.
3115 Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
3117 * cfglayout.c (locator_file): Break out from ....
3118 (insn_file): ... here.
3119 (locator_line): Break out from ....
3120 (insn_line): ... here.
3121 * rtl.h (locator_file, locator_line): Declare.
3122 (final_start_function): Set proper line/file info.
3124 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
3126 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
3127 handled by pp_c_cast_expression.
3129 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3131 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
3132 allocate 32768 bytes of stack. Use addition rather than subtraction
3133 when a single insn is enough.
3134 * config/mips/mips.md: Remove insns and splitters for subtracting
3136 (subsi3): Only accept register operands.
3137 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
3138 (subdi3_internal_3, subsi3_internal_2): Likewise.
3139 (casesi): Use expand_binop to subtract the lower bound.
3141 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3143 * config/mips/mips.c (mips_in_small_data_p): Don't handle
3144 TARGET_MIPS16 specially.
3146 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3148 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
3149 mips_output_aligned_bss.
3150 * config/mips/linux.h: Likewise.
3151 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
3152 * config/mips/mips.c (mips_output_aligned_bss): New function.
3154 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
3155 * config/mips/elf64.h: Likewise.
3157 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
3158 mips_declare_object_name.
3159 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
3160 * config/mips/elf64.h: As for elf.h.
3161 * config/mips/iris6.h: Likewise.
3162 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
3163 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
3164 do...while (0) block.
3165 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
3166 (mips_finish_declare_object): Declare.
3167 * config/mips/mips.c (mips_declare_object_name): New function.
3168 (mips_finish_declare_object): New function.
3170 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
3171 * config/mips/linux.h: Likewise.
3173 * config/mips/mips.c (inside_function): Delete.
3174 (file_in_function_warning, ignore_line_number): Delete.
3175 (mips_output_filename): Don't warn about changing filenames within
3177 (mips_output_lineno): Update accordingly.
3178 (mips_output_function_prologue): Don't reset the deleted variables.
3179 * config/mips/mips.h (inside_function): Delete.
3180 (file_in_function_warning, ignore_line_number): Delete.
3182 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
3183 * config/mips/elf64.h: Likewise.
3184 * config/mips/openbsd.h: Likewise.
3185 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
3186 * config/mips/linux.h: Likewise.
3187 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
3188 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
3190 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
3191 to the list of include files when using gas.
3192 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
3193 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
3194 * config/mips/elf64.h: Likewise.
3195 * config/mips/iris5.h: Likewise.
3196 * config/mips/linux.h: Likewise.
3197 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
3198 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
3199 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
3200 * config/mips/sdb.h: ...this new file.
3202 2003-07-14 Douglas Rupp <rupp@gnat.com>
3204 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
3205 argument to getcwd; use fixed buffer instead.
3207 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3209 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
3210 * fixinc/fixinc.wrap: Delete.
3212 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3214 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
3217 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3219 * ggc-page.c (struct globals): Add new fields to keep track of the
3220 total allocated memory and overhead.
3221 (ggc_print_statistics): Print them.
3222 (ggc_alloc): Keep track of the total allocated memory and the
3225 * tree.c (dump_tree_statistics): Increase spacing.
3226 (enum tree_node_kind): Move to ...
3227 * tree.h (enum tree_node_kind): ... here.
3228 (tree_node_counts, tree_node_sizes): Declare.
3230 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
3232 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
3234 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3236 PR optimization/11440
3237 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
3240 2003-07-14 Alan Modra <amodra@bigpond.net.au>
3242 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
3243 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
3244 (emit_group_load, emit_group_store): Adjust declarations.
3245 Remove most occurrences of #ifdef TREE_CODE.
3246 * expr.c (emit_group_load): Add "type" param, and use
3247 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
3248 aligned accesses if !SLOW_UNALIGNED_ACCESS.
3249 (emit_group_store): Likewise.
3250 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
3251 emit_group_load and emit_group_store calls.
3252 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
3253 BLOCK_REG_PADDING to determine whether we need endian_correction.
3254 (load_register_parameters): Localize vars. Handle shifting of
3255 small values to the correct end of regs. Adjust emit_group_load
3257 (expand_call, emit_library_call_value_1): Adjust emit_group_load
3258 and emit_group_store calls.
3259 * function.c (assign_parms): Set mem alignment for stack slots.
3260 Adjust emit_group_store call. Store values at the "wrong" end
3261 of regs to the stack. Use BLOCK_REG_PADDING.
3262 (locate_and_pad_parm): Save where_pad.
3263 (expand_function_end): Adjust emit_group_load call.
3264 * stmt.c (expand_value_return): Adjust emit_group_load call.
3265 * Makefile.in (calls.o): Depend on $(OPTABS_H).
3266 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
3267 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
3268 (MUST_PASS_IN_STACK): Define.
3269 (BLOCK_REG_PADDING): Define.
3270 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
3271 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
3272 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
3273 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
3274 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
3276 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
3278 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
3280 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3282 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
3283 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
3285 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3288 * toplev.c: Don't cut off option names.
3290 2003-07-13 Andreas Jaeger <aj@suse.de>
3292 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
3293 to integer of different size.
3295 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
3297 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
3298 to (eq (and X 1) 0).
3300 2003-07-13 Andreas Jaeger <aj@suse.de>
3302 * config.gcc: Add pmmintrin.h for x86_64-*-*.
3304 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3306 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
3307 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
3308 list. Move these all together down by cpplib.
3310 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
3311 definition of CPPCHAR_SIGNED_T.
3313 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
3314 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
3315 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
3317 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
3318 * cppinit.c (cpp_create_reader): Likewise.
3320 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
3321 * cpptrad.c: Likewise. All callers changed.
3322 * cpplib.c: All callers changed.
3323 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
3324 * hashtable.h: Define GTY(x) to nothing here too.
3326 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3328 * stor-layout.c (compute_record_mode): Remove very obsolete test
3329 that forces BLKmode for records with fields crossing word boundary.
3331 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3333 * Makefile.in: Remove orphan reference to acconfig.h.
3335 2003-07-13 Andreas Jaeger <aj@suse.de>
3337 * cgraphunit.c: Convert prototypes to ISO C90.
3339 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3341 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
3343 * fixinc/fixincl.x: Rebuild.
3345 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3347 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
3348 i?86-*-*. Use correct name of cache variable.
3349 * configure: Regenerate.
3351 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3353 * config/alpha/alpha.c: Fix comment typos.
3354 * config/alpha/alpha.md: Likewise.
3355 * config/arm/arm.c: Likewise.
3356 * config/arm/arm.md: Likewise.
3357 * config/arm/lib1funcs.asm: Likewise.
3358 * config/avr/avr.md: Likewise.
3359 * config/arm/README-interworking: Fix typos.
3361 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3363 * c-format.c: Fix comment formatting.
3364 * c-typeck.c: Likewise.
3365 * coverage.c: Likewise.
3366 * cppcharset.c: Likewise.
3367 * cpplib.c: Likewise.
3368 * dbxout.c: Likewise.
3369 * gcov-io.h: Likewise.
3370 * toplev.c: Likewise.
3372 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3374 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
3377 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3379 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
3380 uses three-argument AC_DEFINE so no acconfig.h entries are
3382 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
3383 which contains the GAS version number as a scaled integer.
3384 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
3385 ability to check for ELF assembler.
3386 (gcc_GAS_CHECK_FEATURE): New macro.
3387 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
3388 assembler feature checks using gcc_GAS_CHECK_FEATURE.
3389 Use three-argument AC_DEFINE everywhere.
3390 * acconfig.h: Deleted.
3391 * config.in, configure: Regenerate.
3393 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3395 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
3397 * fixinc/fixincl.x: Regenerate.
3399 * fixinc/inclhack.def (gnu_types): Improve comment.
3401 2003-07-12 Andreas Jaeger <aj@suse.de>
3403 * fp-test.c (main): Use ISO C90 prototype.
3405 * version.c: Remove unneded include of ansidecl.h.
3407 * cgraph.h: Convert prototypes to ISO C90.
3408 * cgraph.c: Likewise.
3409 * fix-header.c: Likewise.
3411 * protoize.c: Likewise.
3413 Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
3415 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
3418 Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
3419 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3421 * cgraph.c (cgraph_max_uid): New global variable.
3422 (cgraph_node): Set uid field.
3423 (create_edge): Keep inline flags consistent.
3424 (dump_cgraph): Dump more info.
3425 * cgraph.h (struct cgraph_local_info): Remove inline_many and
3426 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
3427 (struct cgraph_global_info): Add insns, calls, cloned_times,
3429 (struct cgraph_node): Add uid.
3430 (struct cgraph_edge): Add inline_call.
3431 (cgraph_max_uid, cgraph_inline_p): Declare.
3432 * cgraph.c: Include params.h and fibheap.h
3433 (cgraph_mark_functions_to_inline_once): Kill.