1 2003-08-20 Gunther Nikl <gni@gecko.de>
3 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
5 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
6 HOST_WIDE_INT_PRINT_DEC with %wd
8 2003-08-20 Loren James Rittle <ljrittle@acm.org>
10 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
13 2003-08-20 Roger Sayle <roger@eyesopen.com>
16 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
17 operands before calling tree_int_cst_lt when performing associative
20 2003-08-20 Jason Merrill <jason@redhat.com>
22 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
23 (EXPR_CHECK): Don't check for 'r' or 's' if we're
24 checking IS_EXPR_CODE_CLASS.
25 * calls.c (calls_function_1): Likewise.
26 * fold-const.c (fold): Likewise.
27 * tree.c (iterative_hash_expr): Likewise.
28 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
30 2003-08-20 Gunther Nikl <gni@gecko.de>
32 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
33 depending on MOTOROLA_BSR
34 * config/m68k/m68k.md (anonymous define_insn): Likewise
36 2003-08-20 Jason Merrill <jason@redhat.com>
38 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
39 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
40 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
41 * dojump.c (do_jump): Likewise.
42 * fold-const.c (operand_equal_p, fold): Likewise.
43 (tree_expr_nonnegative_p): Likewise.
45 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
46 TYPE_USER_ALIGN for FIELD_DECLs.
48 * attribs.c (decl_attributes): Rebuild the function pointer type after
49 changing the target type.
50 * tree.c (get_qualified_type): Also check that the attributes match.
52 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
54 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
55 * objc/config-lang.in (stagestuff): ... to here.
57 2003-08-19 Mark Mitchell <mark@codesourcery.com>
60 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
61 NOP_EXPR) when necessary.
62 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
63 types with precisions other than those given by native machine
66 2003-08-19 Geoffrey Keating <geoffk@apple.com>
68 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
69 because some macro is defined.
71 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
73 * config/i386/darwin.h (ASM_SPEC): New.
74 (SUBTARGET_EXTRA_SPECS): New.
75 * config/rs6000/darwin.h (ASM_SPEC): New.
76 (SUBTARGET_EXTRA_SPECS): New.
77 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
78 a cross-compiler between two different processors on Darwin.
79 * configure: Regenerate.
81 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
83 * builtins.c: Fix comment typos.
84 * c-common.c: Likewise.
86 * c-pretty-print.c: Likewise.
87 * cfgbuild.c: Likewise.
88 * cfglayout.c: Likewise.
89 * cfgloopanal.c: Likewise.
90 * cgraphunit.c: Likewise.
91 * cppfiles.c: Likewise.
92 * dwarfout.c: Likewise.
94 * fold-const.c: Likewise.
96 * ggc-page.c: Likewise.
97 * haifa-sched.c: Likewise.
98 * pretty-print.c: Likewise.
101 * value-prof.c: Likewise.
103 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
105 * c-decl.c: Follow spelling conventions.
106 * cppfiles.c: Likewise.
108 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
110 * c-common.c: Fix comment formatting.
111 * c-common.h: Likewise.
112 * c-decl.c: Likewise.
113 * cppinit.c: Likewise.
114 * cpplib.h: Likewise.
115 * emit-rtl.c: Likewise.
117 * line-map.h: Likewise.
120 * simplify-rtx.c: Likewise.
122 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
124 * unwind-c.c: Add libgcc-style exception.
125 * unwind-dw2.c: Likewise.
126 * unwind-pe.h: Likewise.
127 * unwind-sjlj.c: Likewise.
128 * unwind.inc: Likewise.
130 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
132 PR c/5582 PR c++/10538
133 * langhooks-def.h (lhd_decl_uninit): Declare.
134 (LANG_HOOKS_DECL_UNINIT): New macro.
135 (LANG_HOOKS_INITIALIZER): Adjust.
136 * langhooks.h (struct lang_hooks): Add new field
138 * langhooks.c (lhd_decl_uninit): Define.
139 * c-common.c (c_decl_uninit_1): New function.
140 (c_decl_uninit): New function.
141 (warn_init_self): Define.
142 * c-common.h (c_decl_uninit): Declare.
143 (warn_init_self): Declare.
144 * c.opt: Introduce -Winit-self.
145 * c-opts.c (c_common_handle_options): Set warn_init_self.
146 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
147 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
148 * function.c (uninitialized_vars_warning): Call the language hook.
149 * doc/invoke.texi: Document -Winit-self.
151 2003-08-19 Chris Demetriou <cgd@broadcom.com>
153 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
154 to use better predicates and constraints. Define new
155 instruction to handle "trap_if" with DI-mode arguments.
156 (conditional_trap): FAIL if trap code is not 0.
158 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
160 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
161 strstr with $pb to a strcompare with "<pic base>"
162 (ix86_output_addr_diff_elt): Output the real pic base.
164 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
166 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
167 (LANG_HOOKS_INITIALIZER): Correct.
168 * c-lang.c: Likewise.
170 2003-08-19 Jan Hubicka <jh@suse.cz>
172 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
173 (cgraph_varpool_mark_needed_node): Likewise.
174 * cgraph.h (notice_global_symbol): Declare
175 * varasm.c (notice_global_symbol): Break out from ...
176 (assemble_start_function): ... here; update for variables.
177 (assemble_variable): Use notice_global_symbol.
179 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
181 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
182 expect SFmode and DFmode arguments to be passed in FPRs,
183 regardless of the underlying type.
185 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
188 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
189 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
191 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
194 * c-typeck.c (set_init_index): Check for negative index.
196 2003-08-18 Bob Wilson <bob.wilson@acm.org>
198 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
200 * config/xtensa/crtn.asm (_init, _fini): Likewise.
201 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
202 __umodsi3, __modsi3): Likewise.
203 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
206 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
208 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
210 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
212 * config/mips/mips.md: Quote C code in braces. Remove use of
213 fake const0_rtx operands. Remove double backslashes. Use \;.
214 Remove workarounds for bogus warnings.
216 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
218 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
219 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
220 rather than TARGET_MIPS4300.
221 (mulsf3_internal, mulsf3_r4300): Likewise.
223 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
225 * config/mips/mips.md: Renumber unspecs. Clean up comments.
227 2003-08-17 Roger Sayle <roger@eyesopen.com>
229 * simplify-rtx.c (associative_constant_p): New function to test
230 whether an RTX expression is an immediate constant.
231 (simplify_associative_operation): New function to perform some
232 reassociation optimizations of associative binary expressions.
233 (simplify_binary_operation): Use simplify_associative_operation
234 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
235 Floating point expressions are only reassociated when unsafe
236 math optimizations are permitted.
238 2003-08-17 Andreas Jaeger <aj@suse.de>
240 * config/alpha/alpha.md: Remove usage of PARAMS.
242 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
243 * config/i386/i386-interix.h: Likewise.
244 * config/i386/winnt.c: Likewise.
245 * config/i386/cygming.h: Likewise.
246 * config/i386/cygwin2.c: Likewise.
247 * config/darwin.c: Likewise.
248 * config/darwin-c.c: Likewise.
249 * config/darwin-protos.h: Likewise.
250 * config/darwin.h: Likewise.
251 * config/s390/s390-protos.h: Likewise.
252 * config/s390/s390.c: Likewise.
253 * config/ia64/ia64.c: Likewse
254 * config/ia64/ia64-protos.h: Likewise.
255 * config/ia64/ia64-c.c: Likewise.
257 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
259 * config/sparc/sparc.c: Convert to ISO C.
261 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
262 * config/sparc/sparc.c: Likewise.
264 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
267 * stmt.c (expand_expr_stmt_value): Don't warn about any void
270 2003-08-16 Jan Hubicka <jh@suse.cz>
272 * i386.c (ix86_fntype_regparm): Rename from ...
273 (ix86_function_regparm): ... this one; add fastcall and local
275 (ix86_function_ok_for_sibcall): Update.
276 (ix86_return_pops_args): Likewise.
277 (init_cumulative_args): Likewise.
278 (x86_can_output_mi_thunk): Likewise.
279 (function_arg): Fix formating.
280 (x86_this_parameter): Fix fastcall.
281 (x86_output_mi_thunk): Likewise.
283 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
284 body as reachable; mark nested functions as needed too.
285 (dump_cgraph): Do not output global.calls.
286 * cgraph.h (cgraph_global_info): Kill.
287 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
288 (record_call_1): Speedup.
289 (cgraph_analyze_function): Break out from ...; compute inlining
291 (cgraph_finalize_compilation_unit): ... here.
292 (cgraph_mark_inline): Kill computation of calls.
293 (cgraph_decide_inlining): Do not compute most of initial values.
295 2003-08-14 Roger Sayle <roger@eyesopen.com>
297 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
298 to negate if either operand is easy to negate, if we don't care
299 about sign-dependent rounding.
300 (negate_expr): Make the logic to negate a REAL_CST explicit.
301 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
302 that's easy to negate, if we don't honor sign-dependent rounding.
303 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
304 negate, and the symmetric A * -B as -A * B if A is easy to negate.
305 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
306 -C/D if B and C are cheap to negate. Add an explicit rule to
307 optimize X/-1.0 as -X when we don't care about signaling NaNs.
309 2003-08-14 Zack Weinberg <zack@codesourcery.com>
311 * Makefile.in (tm_file): Rename tm_include_list.
312 (tm_p_file): Rename tm_p_include_list.
313 (build_xm_file): Rename build_xm_include_list.
314 (host_xm_file): Rename host_xm_include_list.
315 (xm_file): Rename xm_include_list.
316 (xm_file_list): Add to be substituted.
317 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
319 (bt-load.o): Add missing dependency on $(TM_H).
320 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
321 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
322 build_xm_file, generate both *_file_list and *_include_list
323 values from it. (xm_file_list was formerly not being generated.)
324 In *_include_list, prefix the names of all headers found in
325 $(srcdir)/config with config/. In each loop, consider only
326 the special case files that can actually appear in that list.
327 AC_SUBST all *_file_list and all *_include_list variables; do
328 not AC_SUBST the plain *_file variables.
329 * configure: Regenerate.
331 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
333 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
335 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
337 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
339 (attr_length_call): Include it here. Improve length estimate for
341 (output_call): Use targetm.binds_local_p.
343 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
345 * builtins.c (CASE_MATHFN): New helper macro.
346 (mathfn_built_in): Simplify and sort.
348 * protoize.c (substr): Delete, callers changed to `strstr'.
350 2003-08-13 Zack Weinberg <zack@codesourcery.com>
352 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
353 * config/iq2000/xm-iq2000.h: Delete file.
355 2003-08-13 Geoffrey Keating <geoffk@apple.com>
357 * gengtype.c (walk_type): Process a subobject before processing
358 the pointer that points to the subobject.
360 2003-08-13 Per Bothner <pbothner@apple.com>
362 * regclass.c (init_reg_modes): Make non-static.
363 Rename to init_reg_modes_once per new naming convention.
364 (init_regs): Don't call init_reg_modes here.
365 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
366 * rtl.h (init_reg_modes_once): New declaration.
367 * toplev.c (backend_init): Call init_regs after init_emit_once.
369 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
371 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
372 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
374 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
376 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
377 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
379 2003-08-13 Dale Johannesen <dalej@apple.com>
381 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
382 handling of decrement-and-branch farther than 32 bits.
384 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
386 * configure.in (make_compare_target): Move test to ...
387 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
388 * configure: Regenerate.
390 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
392 * config/mips/iris6.h: Convert to C90 prototypes.
393 * config/mips/irix6-libc-compat.c: Likewise.
394 * config/mips/mips-protos.h: Likewise.
395 * config/mips/mips.c: Likewise.
397 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
399 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
400 for selected machines. Comment heavily.
401 fixinc/fixincl.x: Rebuild.
402 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
404 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
406 * config/mips/mips.h: Tweak various comments.
407 * config/mips/mips.c: Likewise.
409 2003-08-11 James E Wilson <wilson@tuliptree.org>
411 PR optimization/11319
413 * alias.c (find_base_value, case REG): Return 0 not src if no base
416 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
418 * gcse.c (gmalloc): Fix last change.
420 2003-08-11 Roger Sayle <roger@eyesopen.com>
422 * simplify-rtx.c (simplify_binary_operation): Replace calls to
423 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
424 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
425 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
427 2003-08-11 Roger Sayle <roger@eyesopen.com>
429 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
430 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
431 typecode for an ABS_EXPR.
433 * doc/c-tree.texi: Document ABS_EXPR.
435 2003-08-11 Roger Sayle <roger@eyesopen.com>
437 * fold-const.c (fold): Optimize any associative floating point
438 operator with -funsafe-math-optimizations, not just MULT_EXPR.
440 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
442 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
443 information in SHmedia case too.
444 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
446 (__set_fpscr): Use an access via GOT for PIC case.
448 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
450 * configure.in (intermodule): Make switch test more portable.
451 * configure: Regenerate.
453 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
455 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
458 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
460 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
461 (grealloc): Size argument is a size_t.
462 (gcalloc): New function. Use throughout in lieu of
465 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
467 * config/ia64/ia64.c (ia64_reorg): Likewise.
468 * conflict.c (conflict_graph_new): Likewise.
469 * fixinc/fixincl.c (run_compiles): Likewise.
470 * genattrtab.c (optimize_attrs): Likewise.
471 * genrecog.c (new_decision): Likewise.
472 * haifa-sched.c (schedule_block): Likewise.
473 * hashtable.c (ht_create): Likewise.
475 2003-08-11 Bob Wilson <bob.wilson@acm.org>
477 * config/xtensa/lib2funcs.S: Fix whitespace.
478 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
479 syntax where appropriate. Remove unnecessary backslash escapes.
480 Reformat comments and fix some code formatting.
481 (extendqisi2): Rearrange conditional.
482 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
483 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
486 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
488 * config/mips/mips.c: Various formatting fixes.
489 (override_options): Resync -mtune handling with gas.
490 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
491 * config/mips/mips.h: More formatting fixes.
492 (mips_abi): Move declaration.
493 * config/mips/mips.md (exception_receiver): Add mode to
496 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
498 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
500 (bdesc_1arg): Remove evsplati and evsplatfi.
502 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
504 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
507 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
509 * builtins.c (expand_builtin_strcat): Optimize constant strings.
511 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
513 * pretty-print.c (pp_base_indent): Rename from pp_indent.
514 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
515 (struct c_pretty_print_info): Add more fields.
516 (pp_c_left_paren): Move to c-pretty-print.c.
517 (pp_c_right_paren): Likewise.
518 (pp_c_left_brace): Likewise.
519 (pp_c_right_brace): Likewise.
520 (pp_c_left_bracket): Likewise.
521 (pp_c_right_bracket): Likewise.
522 (pp_c_declarator): Declare.
523 (pp_c_direct_declarator): Likewise.
524 (pp_c_specifier_qualifier_list): Likewise.
525 (pp_c_type_id): Likewise.
526 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
527 (pp_c_type_qualifier_list): New.
528 (pp_c_pointer): Likewise.
529 (pp_c_parameter_type_list): Likewise.
530 (pp_c_function_definition): Likewise.
531 (pp_c_id_expression): Likewise.
532 (pp_c_simple_type_specifier): Tidy.
533 (pp_c_unary_expression): Likewise.
534 (pp_c_expression): Likewise.
535 (pp_c_pretty_printer_init): Likewise.
536 (pp_c_specifier_qualifier_list): Rework..
537 (pp_c_abstract_declarator): Likewise.
538 (pp_c_postfix_expression): Likewise.
539 (pp_c_primary_expression): Likewise.
540 (pp_c_cast_expression): Likewise.
541 (pp_c_direct_abstract_declarator): Likewise.
542 (pp_c_storage_class_specifier): Likewise.
543 (pp_c_function_specifier): Likewise.
544 (pp_c_declaration_specifiers): Likewise.
545 (pp_c_direct_declarator): Likewise.
546 (pp_c_declarator): Likewise.
547 (pp_c_declaration): Likewise.
548 (pp_c_statement): Likewise.
549 (pp_c_integer_constant): Rename from pp_c_integer_literal.
550 (pp_c_character_constant): Rename from pp_c_character_literal.
551 (pp_c_bool_constant): Rename from pp_c_bool_literal.
552 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
553 (pp_c_floating_constant): Rename from pp_c_real_literal.
554 (pp_c_constant): Rename from pp_c_literal.
555 * c-lang.c: Include diagnostic.h and c-pretty-print.h
556 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
557 (c_initialize_diagnostics): New.
558 * Makefile.in (c-lang.o): Update dependency.
560 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
562 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
564 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
566 * config/mips/mips.c (mips_no_mips16_string): Remove.
567 (override_options): Don't handle -mips16 as part of -mipsN.
568 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
569 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
570 (TARGET_OPTIONS): Remove -mno-mips16.
572 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
574 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
575 (coprocessor2_operand): Likewise.
576 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
577 (lookup_name): Remove declaration.
578 (abort_with_insn): Remove. Replace all uses with fatal_insn.
579 (mips16, mips_abicalls): Remove.
580 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
581 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
582 (coprocessor_operand, coprocessor2_operand): Remove.
583 (override_options): Don't set mips16 or mips_abicalls.
584 (print_operand): Don't expect SIGN_EXTEND operands.
585 (mips_secondary_reload_class): Likewise.
586 (mips_output_conditional_branch): Remove disabled long-branch code.
587 * config/mips/mips.h (call_used_regs): Remove declaration.
588 (may_call_alloca): Likewise.
589 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
590 (mips_abicalls, mips16): Remove declarations.
591 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
592 (CC1_SPEC): Remove outdated comment.
593 (MIPS_VERSION, MACHINE_TYPE): Remove.
594 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
595 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
596 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
597 (PUSH_ROUNDING): Likewise.
598 (ASSEMBLER_SCRATCH_REGNUM): Remove.
599 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
600 and mips16 with TARGET_MIPS16.
602 2003-08-09 Per Bothner <pbothner@apple.com>
604 * cppinit.c (cpp_read_main_file): Split out source-independent
605 initialization to separate function ...
606 (cpp_post_options): New function.
607 * cppfiles.c (cpp_stack_file): Rename public name to ...
608 (_cpp_stack_file): New internal function name.
609 * cpplib.h: Update accordingly.
610 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
611 (cpp_read_main_file): Don't initialize line here.
612 * c-opts.c (c_common_post_options): Call cpp_post_options.
613 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
614 * fix-header.c (read_scan_file): Call cpp_post_options.
616 2003-08-09 Per Bothner <per@bothner.com>
618 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
620 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
622 * pa.c (pa_asm_output_mi_thunk): Fix typo.
624 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
626 PR preprocessor/11839
627 * cppfiles.c (open_file): Handle ENOTDIR.
629 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
632 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
634 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
636 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
637 source/destination is not a register operand.
639 2003-08-08 Richard Henderson <rth@redhat.com>
642 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
643 RETURN_ADDRESS_POINTER_REGNUM.
644 (ia64_expand_prologue): Don't frob it.
645 (ia64_output_function_epilogue): Likewise.
646 (ia64_return_addr_rtx): New.
647 (ia64_split_return_addr_rtx): New.
648 * config/ia64/ia64-protos.h: Update.
649 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
650 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
651 (GENERAL_REGNO_P): Don't check it.
652 (AR_*_REGNUM): Renumber.
653 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
654 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
655 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
656 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
657 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
658 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
659 (movdi_ret_addr): New.
661 2003-08-08 Geoffrey Keating <geoffk@apple.com>
663 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
665 2003-08-08 Roger Sayle <roger@eyesopen.com>
667 * tree.h (get_identifier) Define a macro form of get_identifier
668 that calls get_identifier_with_length when the string is constant.
669 (get_identifier_with_length): Change type of second argument to
671 * stringpool.c (get_identifier): Undefine the macro before giving
672 the function definition.
673 (get_identifier_with_length): Change type of second argument to
674 size_t in function definition.
675 * hashtable.c (calc_hash): Change type of second argument to size_t.
676 (ht_lookup): Change type of third argument to size_t. Reorganize
677 to speed-up the cases where the hash table slot is empty, or the
678 first probe matches (i.e. there isn't a collision).
679 * hashtable.h (ht_lookup): Adjust function prototype.
681 2003-08-08 Bernardo Innocenti <bernie@develer.com>
685 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
687 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
689 * common.opt: Add debug switches.
690 * flags.h (use_gnu_debug_info_extensions): Boolify.
691 * opts.c (write_symbols, debug_info_level,
692 use_gnu_debug_info_extensions): Move from toplev.c.
693 (set_debug_level): New.
694 (common_handle_options): Handle debug switches.
695 (print_help): Display target options directly.
696 * toplev.c (debug_hooks): Don't initialize.
697 (write_symbols, debug_info_level,
698 use_gnu_debug_info_extensions): Move to opts.c.
699 (debug_args, display_help, decode_g_option): Remove.
700 (process_options): Set no debug if level zero here,
701 and no-debug-hooks. Error here if impossible debug format selected.
702 * toplev.h (display_help, decode_g_option): Remove.
704 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
706 * tree.c (get_file_function_name_long): Fix size of alloca() area.
708 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
710 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
711 and gcc_cv_prog_cmp_skip.
712 * configure: Regenerate.
714 2003-08-08 Stan Cox <scox@redhat.com>
716 * config/iq2000: New port.
717 * config.gcc (iq2000-*-elf): Added.
718 * doc/install.texi (Specific): Add iq2000 description.
720 2003-08-08 Andreas Schwab <schwab@suse.de>
722 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
723 and insert missing empty argument.
724 * configure: Regenerate.
726 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
728 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
729 (attr_length_millicode_call): Likewise.
730 (attr_length_call): Likewise. Revise some maximum insn lengths.
731 (attr_length_indirect_call): Likewise.
732 (output_call): Fix thinko that added extra nop.
733 * pa.h (IN_NAMED_SECTION_P): Define.
736 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
737 __STDC_EXT__ when using C++ dialect.
739 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
741 * sh.c (calc_live_regs): If the return address pointer is live,
743 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
744 for saves / restores.
745 (sh_expand_epilogue): If sh_media_register_for_return returns a
746 register number, flag the instructions that restores PR_MEDIA_REG
748 Remove dead update of offset.
749 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
750 we can use the result of get_hard_reg_initial_val.
751 * sh.md (UNSPEC_RA): New constant.
752 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
753 (load_ra). Handle UNSPEC_RA.
754 (sibcall_media): Use PR_MEDIA_REG.
756 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
757 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
758 needs saving on SHmedia.
760 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
762 * config/s390/s390.md: Replace all occurrences of \\t with \t.
764 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
766 * local-alloc.c (combine_regs): Fix comment typo.
768 2003-08-06 Zack Weinberg <zack@codesourcery.com>
770 * c-decl.c (builtin_decls): Replace with first_builtin_decl
771 and last_builtin_decl.
772 (c_init_decl_processing): Initialize both.
773 (c_reset_state): Iterate from first_builtin_decl to
774 last_builtin_decl inclusive to reintroduce builtins.
776 2003-08-06 David Mosberger <davidm@hpl.hp.com>
778 * doc/extend.texi (Function Attributes): Document the IA-64 version
779 of the "model" attribute.
781 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
782 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
783 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
785 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
786 (ia64_encode_section_info): Likewise.
787 (ia64_attribute_table): Add "model" attribute.
788 (TARGET_ENCODE_SECTION_INFO): Define.
789 (small_addr_symbolic_operand): New function.
790 (got_symbolic_operand): Return 0 for a symbolref to an object
791 in the small address area.
792 (enum ia64_addr_area): New type.
793 (small_ident1): New variable.
794 (small_ident2): Likewise.
795 (init_idents): New function.
796 (ia64_get_addr_area): Likewise.
797 (ia64_encode_addr_area): Likewise.
798 (ia64_encode_section_info): Likewise.
799 (ia64_expand_load_address): For symbolic references to objects in
800 the small-address-area, load the address via gen_rtx_SET() (which,
801 eventually, will expand into "addl").
803 2003-08-06 Per Bothner <pbothner@apple.com>
805 * line-map.h (fileline): New typedef.
806 (struct line_map, linemap_add, linemap_lookup): Use it.
807 * input.h (struct location_s): Comment notes that long-term we want
808 to replace it by fileline.
810 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
812 Fix SHcompact exception handling:
813 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
814 by the prologue, return a MEM with return_address_pointer_rtx
816 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
817 (RETURN_ADDR_OFFSET): Don't define.
818 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
819 registers that are visible in compact mode. Show that SHmedia
820 registers still exist in compact mode, even if there are not
822 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
823 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
824 and DW_EH_PE_pcrel for pic data.
825 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
826 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
827 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
828 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
829 * sh.md (movsi_media-1): New splitter.
831 2003-08-06 Graeme Peterson <gp@qnx.com>
833 * config/i386/nto.h: New.
834 * config/i386/t-nto: New.
835 * config.gcc (i[34567]86-*-nto-qnx*): New.
837 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
839 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
841 2003-08-06 Alan Modra <amodra@bigpond.net.au>
843 * calls.c (load_register_parameters): Arrange for call_fusage to
844 report the whole register as used when shifting to the msb.
846 2003-08-05 Roger Sayle <roger@eyesopen.com>
848 * builtins.c (expand_builtin): When not optimizing, call the library
849 function for all builtins that have library functions (except alloca).
851 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
853 * c.opt: Introduce -fworking-directory.
854 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
855 * c-common.h (flag_working_directory): Declare.
856 * c-common.c (flag_working_directory): Define.
857 * c-opts.c (c_common_handle_options): Set it.
858 (sanitize_cpp_opts): Set...
859 * cpplib.h (struct cpp_options): ... working_directory option.
860 (struct cpp_callbacks): Add dir_change.
861 * cppinit.c (read_original_filename): Call...
862 (read_original_directory): New. Look for # 1 "directory//"
864 (cpp_read_main_file): Call dir_change callback if working_directory
866 * gcc.c (cpp_unique_options): Pass -g*.
867 * c-lex.c (cb_dir_change): New.
868 (init_c_lex): Set dir_change callback.
869 * toplev.c (src_pwd): New static variable.
870 (set_src_pwd, get_src_pwd): New functions.
871 * toplev.h (get_src_pwd, set_src_pwd): Declare.
872 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
873 * dwarf2out.c (gen_compile_unit_die): Likewise.
874 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
876 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
878 * pretty-print.h (pp_set_line_maximum_length): Make macro.
879 (pp_set_prefix): Likewise.
880 (pp_destroy_prefix): Likewise.
881 (pp_remaining_character_count_for_line): Likewise.
882 (pp_clear_output_area): Likewise.
883 (pp_formatted_text): Likewise.
884 (pp_last_position_in_text): Likewise.
885 (pp_emit_prefix): Likewise.
886 (pp_append_text): Likewise.
887 (pp_flush): Likewise.
888 (pp_format_text): Likewise.
889 (pp_format_verbatim): Likewise.
890 (pp_tree_identifier): Tidy.
891 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
892 (pp_base_format_verbatim): Rename from pp_format_verbatim.
893 (pp_base_flush): Rename from pp_flush.
894 (pp_base_set_line_maximum_length): Rename from
895 pp_set_line_maximum_length.
896 (pp_base_clear_output_area): Rename from pp_clear_output_area.
897 (pp_base_set_prefix): Rename from pp_set_prefix.
898 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
899 (pp_base_emit_prefix): Rename from pp_emit_prefix.
900 (pp_base_append_text): Rename from pp_append_text.
901 (pp_base_formatted_text): Rename from pp_formatted_text.
902 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
903 (pp_base_remaining_character_count_for_line): Rename from
904 pp_remaining_character_count_for_line.
905 * diagnostic.h (diagnostic_format_decoder): Tidy.
906 (diagnostic_flush_buffer): Likewise.
907 * c-pretty-print.h: (pp_c_string_literal): Declare.
908 (pp_c_real_literal): Likewise.
909 (pp_c_integer_literal): Likewise.
910 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
912 (pp_c_character_literal): Tidy.
913 (pp_c_string_literal): Make public.
914 (pp_c_bool_literal): Likewise.
915 (pp_c_integer_literal): Likewise.
916 (pp_c_real_literal): Likewise.
918 * Makefile.in (C_PRETTY_PRINT_H): New variable.
919 (c-pretty-print.o): Update dependence.
921 2003-08-05 Chris Demetriou <cgd@broadcom.com>
923 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
924 ".set nomacro" state.
925 (fix_truncsfsi2_macro): Likewise.
927 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
929 * tree.h (DID_INLINE_FUNC): Remove macro.
930 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
931 add tree check for FUNCTION_DECL.
932 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
933 (struct tree_decl): Rename inlined_function_flag to
934 declared_inline_flag.
935 * c-common.h (c_lang_decl): Remove.
936 (DECL_ESTIMATED_INSNS): Remove.
937 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
938 (DECL_DECLARED_INLINE_P): Remove.
939 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
940 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
941 (finish_function): Make uninlinable a bool. Fixup call to
942 tree_inlinable_function_p() and fix some code style issues.
943 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
944 * cgraph.c (dump_cgraph): Likewise.
945 * cgraphunit.c (cgraph_decide_inlining): Likewise
946 (cgraph_finalize_compilation_unit): Likewise.
947 Also update call to tree_inlinable_function_p().
948 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
949 look at DECL_DECLARED_INLINE and reverse logic.
950 * print-tree.c (print_node): Likewise.
951 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
952 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
954 * tree-inline.c (inlinable_function_p): Split up in this function to
955 check for basic inlining inhibiting conditions, and new
956 limits_allow_inlining() function. Warn if inlining is impossible
957 because the inline candidate calls alloca or uses sjlj exceptions.
958 (limits_allow_inlining): this new function to check if the inlining
959 limits are satisfied. Throttle from currfn_max_inline_insns, not from
960 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
961 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
963 (tree_inlinable_function_p): Make a bool. Update call to
965 (expand_call_inline): Use limits_allow_inlining() when not in
966 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
967 instead see if the function was declared `inline'.
969 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
971 * gcse.c (try_replace_reg): Fix updating of note.
973 2003-08-04 Roger Sayle <roger@eyesopen.com>
976 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
977 logic in negate_expr, i.e. we don't invert (A-B) for floating
978 point types unless flag_unsafe_math_optimizations.
980 2003-08-04 Roger Sayle <roger@eyesopen.com>
982 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
983 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
984 for floating point expressions with -ffast-math.
985 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
986 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
988 2003-08-04 Roger Sayle <roger@eyesopen.com>
990 * c-common.c (flag_noniso_default_format_attributes): Delete.
991 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
992 (c_attrs_initialized): Delete.
993 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
994 always call c_init_attributes.
995 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
996 set c_attrs_initialized when done.
997 (c_common_insert_default_attributes): Delete.
998 * c-common.h (flag_noniso_default_format_attributes): Delete.
999 (c_coomon_insert_default_attributes): Delete prototype.
1000 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
1001 flag_noniso_default_format_attributes.
1003 * c-decl.c (c_insert_default_attributes): Delete.
1004 * c-tree.h (c_insert_default_attributes): Delete prototype.
1006 * attribs.c (decl_attributes): Don't call insert_default_attributes
1007 langhook. Update function description comment.
1008 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
1009 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
1010 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
1011 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
1013 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
1016 2003-08-04 Richard Sandiford <rsandif@redhat.com>
1018 * config/mips/mips.c (override_options): Disable -G on targets that
1019 have no .section support.
1020 (mips_select_section): Use default_select_section for such targets.
1022 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
1024 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
1025 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
1026 * fixinc/fixincl.x: Rebuild.
1027 * fixinc/tests/base/regexp.h: New test.
1029 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
1031 * c-ppoutput.c (cb_line_change): Don't skip line changing while
1032 parsing macro arguments in the top-level context.
1034 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
1036 * config.in: Remove HAVE_LSTAT.
1037 * configure, configure.in: Don't test for lstat.
1039 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1041 * opts.c (decode_options): Do language-specific initialization for
1042 the global diagnostic context.
1043 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
1044 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
1045 (LANG_HOOKS_INITIALIZER): Adjust.
1046 * langhooks.h (struct lang_hooks): Add new field
1047 initialize_diagnostics.
1048 * langhooks.c (lhd_initialize_diagnostics): Define.
1050 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1052 * pretty-print.h: Adjust macro definitions.
1053 * pretty-print.c (pp_newline): Rename to pp_base_newline.
1054 (pp_character): Rename to pp_base_character.
1055 (pp_string): Rename to pp_base_string.
1056 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
1057 (pp_newline): Likewise. Adjust.
1058 (pp_c_char): Adjust.
1060 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1062 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
1063 BUILT_IN_LLABS): Move to miscellaneous section.
1065 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1067 PR preprocessor/11534
1068 * cppexp.c (parse_defined): Warn only if -pedantic.
1070 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1072 * cppfiles.c (stack_file): Use file path.
1074 2003-08-02 Roger Sayle <roger@eyesopen.com>
1076 * builtin-types.def (BT_SSIZE): New primitive type.
1077 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
1078 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
1079 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
1080 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
1081 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
1082 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
1083 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
1084 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
1085 few functions that define default attributes using it.
1086 * c-common.c (c_common_insert_default_attributes): Do nothing.
1088 * doc/extend.texi: Document these "new" builtins.
1090 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
1092 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
1093 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
1094 when -mieee-fp set and -shared not set.
1095 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
1097 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1099 * cppfiles.c (struct _cpp_file): Rename once_only_next to
1100 next_file. Remove import and pragma_once, add once_only.
1101 (find_file): Add new file structures to the all_files list.
1102 (should_stack_file): Mark #import-ed files once-only, and
1103 don't stack them if the file has already been stacked.
1104 (_cp_mark_file_once_only): Simplify.
1105 * cpphash.h (struct cpp_reader): Rename once_only_files
1106 to all_files. Rename saw_pragma_once to seen_once_only.
1107 (_cpp_mark_file_once_only): Update prototype.
1108 * cpplib.c (do_pragma_once): Update.
1110 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1112 * cppfiles.c (ENOTDIR): Remove.
1113 (open_file_in_dir): Rename find_file_in_dir. Handle errors
1114 other than ENOENT here.
1115 (once_only_file_p): Rename should_stack_file.
1116 (find_file, open_file_failed, read_file_guts): Report errors
1117 with full path name.
1118 (read_file): Move pch handling to should_stack_file.
1119 (should_stack_file): Handle PCH and once-only issues, and
1121 (stack_file): Don't do file reads.
1123 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1125 * libgcov.c (gcov_exit): Cleanup and fix.
1126 * profile.c (compute_value_histograms): Don't try to read profiles
1127 that are not present.
1129 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1131 * builtins.def: Categorize.
1133 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
1135 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
1137 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
1139 * config.gcc: Enable posix threads by default on darwin.
1141 2003-08-01 Jakub Jelinek <jakub@redhat.com>
1143 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
1144 even if nehedges1 is 0.
1146 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
1148 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
1149 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
1150 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
1153 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
1154 * fixinc/fixincl.x: Regenerate.
1155 * fixinc/tests/base/math.h: Regenerate to match test_text change.
1157 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1159 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
1161 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1163 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
1164 for accesses to exc_ptr.
1166 2003-08-01 Geoffrey Keating <geoffk@apple.com>
1168 * doc/sourcebuild.texi (Front End Directory): Don't make references
1169 to libsubdir, it's not part of the interface to frontends.
1170 * doc/install.texi (Configuration): Help users read faster by saying
1171 that GCC's configure options are the standard autoconf ones.
1172 Mention --libdir. Update the default rules for finding the
1173 assembler. Don't use libsubdir since we haven't said what it means.
1174 (Specific): In the Solaris 7 notes, update the place to put the
1176 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
1177 * doc/cpp.texi (Search Path): Actually, the search path
1178 depends on libdir, which can relocate with cpp.
1179 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
1180 now a private interface between the Makefile and the driver.
1182 2003-08-01 Richard Henderson <rth@redhat.com>
1184 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
1186 * varasm.c (lookup_constant_def): New function.
1187 * rtl.h (lookup_constant_def): Declare it.
1188 * dwarf2out.c (loc_descriptor_from_tree): Use it.
1189 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
1191 2003-08-01 Zack Weinberg <zack@codesourcery.com>
1193 * c-decl.c (gettags, pushdecl_function_level): Delete.
1194 (last_function_parm_vars): Rename last_function_parm_others.
1195 (current_function_parm_vars): Rename current_function_parm_others.
1196 (struct c_scope): Rewrite comment explaining this data structure.
1197 Add names_last, blocks_last, parms_last fields. Rename
1198 incomplete_list to incomplete.
1199 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
1200 (poplevel): Ignore second argument. No need to nreverse
1201 anything. Restructure such that each list is processed
1202 exactly once. Use 'const location_t *locus' syntactic sugar
1203 variable where useful. Issue unused variable warnings
1204 ourselves, do not rely on function.c.
1205 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
1206 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
1207 (implicitly_declare): decl cannot be error_mark_node.
1208 (undeclared_variable): Manipulate scope structure directly.
1209 (c_make_fname_decl): Likewise.
1210 (getdecls, c_init_decl_processing): Fix comment.
1211 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
1212 for 'last' variable.
1213 (grokparms): No need to nreverse parms list.
1214 (store_parm_decls_newstyle): Set up the parms_last and
1215 names_last fields of the new scope too.
1216 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
1217 on parms to begin with; check this under ENABLE_CHECKING. Set
1219 (check_for_loop_decls): Refer directly to current_scope->tags.
1220 Use consistent quote style in diagnostics.
1221 (c_write_global_declarations): The names list is not backward.
1223 * c-common.h: Don't prototype gettags.
1224 * c-parse.in: Call poplevel with second argument 0 always.
1226 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1228 * builtins.def: Resort builtins.
1230 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1232 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
1233 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
1234 Prepend "__builtin_" onto NAME with string concatenation. Remove
1235 explicit "__builtin_" from each macro call.
1237 Reformat entire file.
1239 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1241 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1242 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
1244 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
1246 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
1247 CCL1, or CCL2 modes with floating point operations.
1249 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
1250 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
1251 "*subdf3_cconly"): New insns.
1252 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
1254 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
1256 * Makefile.in: Refine dependencies.
1257 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
1258 * c.opt: Update help for -Wimport.
1259 * cppfiles.c: Include hashtab.h. Update comments.
1260 (stack_file): Read the file before updating dependencies.
1261 (once_only_file_p): Be smarter about marking once-only files.
1262 (_cpp_mark_file_once_only): Correct the check for existence on
1264 (open_file_failed): Use name not path, which is NULL.
1265 * cpphash.h: Don't include hashtab.h.
1266 (struct _cpp_file): Remove.
1267 (struct cpp_reader): Update.
1268 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
1269 * cpplib.h (struct cpp_options): Remove warn_import.
1270 (cpp_simplify_path): Remove.
1272 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
1275 * doc/extend.texi (Statement Expressions): Document C++ semantics.
1277 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1279 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
1281 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1283 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
1285 * builtins.def: Likewise.
1287 2003-07-31 Jason Merrill <jason@redhat.com>
1289 * Makefile.in (bubblestrap): Don't require a previous full
1292 * expr.c (mostly_zeros_p): No longer static.
1293 * tree.h: Declare it.
1294 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
1295 unless we need to do substitutions.
1297 2003-07-31 Roger Sayle <roger@eyesopen.com>
1299 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
1300 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
1301 as pow(x,2.0) when the latter will be expanded back into x*x.
1302 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
1303 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
1304 pow can never set errno when used with an integer exponent.
1305 Always use expand_powi when exponent is -1, 0, 1 or 2.
1306 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
1307 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
1308 the pow forms of these expressions.
1310 2003-07-31 Geoffrey Keating <geoffk@apple.com>
1312 * Makefile.in (libexecdir): New.
1313 (libsubdir): Use gcc instead of gcc-lib.
1314 (libexecsubdir): New.
1315 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
1316 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
1318 (installdirs): Make libexecsubdir.
1319 (install-common): Put executables in libexecsubdir.
1320 (itoolsdir): Use libexecsubdir.
1321 (itoolsdatadir): New.
1322 (install-mkheaders): Separate data files and executables.
1323 (install-collect2): Put executables in libexecsubdir.
1324 (uninstall): Remove libexecsubdir.
1325 * mkheaders.in: Update for new arrangement of files.
1327 (libexecsubdir): New.
1328 (itoolsdir): Use libexecsubdir.
1329 (itoolsdatadir): New.
1330 * gcc.c (gcc_libexec_prefix): New.
1331 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
1332 (standard_exec_prefix_1): Use libexec.
1333 (standard_exec_prefix_2): New.
1334 (standard_libexec_prefix): New.
1335 (process_command): Update for new arrangement of files. Compute
1336 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
1338 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
1340 * inclhack.def (stdio_va_list): Avoid bogus replacement which
1341 triggers on Interix.
1342 * fixincl.x: Regenerate.
1344 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1346 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
1347 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
1349 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1351 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
1353 2003-07-31 Per Bothner <pbothner@apple.com>
1355 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
1356 (add_input_filename): New function.
1357 (handle_options): Call add_input_filename directly instead of
1359 * opts.h (in_fnames, num_in_fnames): Moved here.
1360 (add_input_filename): Declare.
1361 * c-decl.c: Need to #include opts.h.
1362 * Makefile.in (c-decl.o): Also depends on opts.h.
1363 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
1364 (c_common_handle_filename): Replaced by add_input_filename.
1365 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
1367 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
1368 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1369 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
1370 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1372 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1374 * combine.c (try_combine): Set JUMP_LABEL for newly created
1377 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1379 * fold-const.c (fold): Fold some comparisons of bit operations.
1381 Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
1383 * cgraph.c (create_edge): Fix typo.
1384 * i386.c (pic_symbolic_operand): Reorder tests.
1386 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
1388 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
1390 (Gcov Data Files): Update.
1392 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1394 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
1397 * gthr-posix.c: New file.
1398 * gthr-posix.h: Define _REENTRANT if missing.
1399 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
1401 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
1403 * config/alpha/t-osf-pthread: New file.
1405 * fixinc/inclhack.def (alpha_pthread): New fix.
1406 * fixinc/fixincl.x: Regenerate.
1407 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
1409 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
1411 Fixes PR bootstrap/9330.
1413 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1415 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
1418 * configure: Regenerate.
1420 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
1422 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
1425 2003-07-30 Roger Sayle <roger@eyesopen.com>
1427 * builtins.def: Alphabetize.
1429 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1431 * doc/c-tree.texi: Normalize spellings of "lowercase" and
1433 * doc/cpp.texi: Likewise.
1434 * doc/md.texi: Likewise.
1435 * doc/rtl.texi: Likewise.
1436 * doc/tm.texi: Likewise.
1438 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1440 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
1441 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
1444 2003-07-30 Chris Demetriou <cgd@broadcom.com>
1446 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
1447 macros before defining them.
1449 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
1451 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
1452 UNSPECV_BLOCKAGE): New constants.
1453 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
1454 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
1455 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
1456 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
1458 (all insns and expanders): Write output control string as brace block
1459 where appropriate. Remove \-escapes for doublequote characters.
1461 Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
1463 * gcse.c (insert_store): Fix typo in previous patch.
1465 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
1467 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
1469 2003-07-30 Andi Kleen <ak@muc.de>
1471 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
1473 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1475 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
1476 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
1477 GCOV_N_VALUE_COUNTERS): New.
1478 * profile.c (compute_value_histograms): New static function.
1479 (branch_prob): Read back the value histograms.
1480 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
1481 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
1482 * value-prof.c: Add comment on reading the profile.
1483 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
1484 * doc/invoke.texi (-fprofile-values): Document behavior with
1485 -fbranch-probabilities.
1487 2003-07-30 David Edelsohn <edelsohn@gnu.org>
1489 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
1491 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
1493 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
1496 Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
1498 * gcse.c (insert_store): Ignore fake edges.
1500 * c-common.c (flag_vtable_gc): Kill.
1501 * c-common.g (flag_vtable_gc): Kill.
1502 * c-opts (c_common_handle_option): Kill.
1503 * c.opt (fvtable-gc): Kill.
1504 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
1505 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1506 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1508 * invoke.texi (-ftable-gc): Kill documentation.
1510 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
1511 just because function body is missing.
1513 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
1515 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
1517 * unwind-sjlj.c: Fix typo in file description.
1519 2003-07-30 Alan Modra <amodra@bigpond.net.au>
1521 * calls.c (load_register_parameters): When shifting reg sized values
1522 to the msb, move the value to a reg first.
1524 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1526 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
1527 * line-map.h (linemap_add): Update comments.
1528 * line-map.c (linemap_add): Update comments, interpret zero-length
1529 filename as "<stdin>".
1531 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
1533 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
1535 2003-07-29 Zack Weinberg <zack@codesourcery.com>
1537 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
1538 New static variables.
1539 (struct c_scope): Add parms and warned_forward_parm_decls
1540 fields; remove parm_order.
1541 (storedecls, storetags): Delete.
1542 (poplevel): Also clear bindings on the parms chain.
1543 (pushdecl): Handle forward declarations of parameters, and
1544 chain PARM_DECLs on the parms list, not the names list.
1545 (lookup_name_current_level): Check for PARM_DECLs on the parms
1547 (push_parm_decl): Don't update parm_order.
1548 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
1549 warning, only once per parameter list, and set TREE_ASM_WRITTEN
1550 on the decls here. Then move the forward decls to the names list.
1551 (grokparms): Set last_function_parm_vars.
1552 (get_parm_info): Don't use gettags or getdecls. No need to
1553 extract non-parms from the parms list, or reorganize the parms
1554 list. Feed nonparms back in the TREE_TYPE of the list node
1555 returned. Issue only one error per parameter list for "void"
1556 appearing more than once in said parameter list. Collapse
1557 parmlist_tags_warning into this function to avoid double scan
1559 (start_function): Set current_function_parm_vars.
1560 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
1561 directly. Get non-parms from current_function_parm_vars; no
1562 need to extract them from the parms chain. Properly bind tags
1564 (store_parm_decls_oldstyle): No need to extract non-parameters
1565 from the parms chain, nor to store them back afterward. Move
1566 declaration to top of function, restructure code reordering
1568 (store_parm_decls): No need to save and restore warn_shadow.
1569 * c-parse.in: Don't call parmlist_tags_warning nor
1570 clear_parm_order. Call mark_forward_parm_decls when forward
1571 parm decls are encountered.
1572 * c-tree.h: Prototype mark_forward_parm_decls; not
1573 clear_parm_order or parmlist_tags_warning.
1575 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1577 * c-common.c (allow_pch): Remove.
1578 * c-common.h (allow_pch): Remove.
1579 (c_common_no_more_pch): Declare.
1580 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
1581 * c-pch.c: Include hosthooks.h.
1582 (c_common_valid_pch): Don't check allow_pch.
1583 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
1584 (c_common_no_more_pch): New.
1585 * ggc-common.c: Include hosthooks.h.
1586 (gt_pch_save): Call gt_pch_get_address.
1587 (gt_pch_restore): Call gt_pch_use_address.
1588 * hooks.c (hook_voidp_size_t_null): New.
1589 (hook_bool_voidp_size_t_false): New.
1590 * hooks.h (hook_voidp_size_t_null): New.
1591 (hook_bool_voidp_size_t_false): New.
1592 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
1593 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
1594 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
1595 HOST_HOOKS_GT_PCH_USE_ADDRESS.
1596 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
1598 * doc/hostconfig.texi (Host Common): Document
1599 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
1600 * Makefile.in (c-pch.o): Depend on hosthooks.h.
1601 (ggc-common.o): Likewise.
1603 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
1604 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
1605 (pch_address_space): New.
1606 (darwin_rs6000_gt_pch_get_address): New.
1607 (darwin_rs6000_gt_pch_use_address): New.
1609 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
1611 PR preprocessor/11569
1612 PR preprocessor/11649
1613 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
1614 * cppfiles.c: Completely rewritten.
1615 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
1616 struct cpp_path is now struct cpp_dir.
1617 (remove_duplicates): Don't simplify path names.
1618 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
1620 * cpphash.h: Include hashtab.h.
1621 (_cpp_file): Declare.
1622 (struct cpp_buffer): struct include_file is now struct _cpp_file,
1623 and struct cpp_path is now struct cpp_dir. Rename members.
1624 (struct cpp_reader): Similarly. New members once_only_files,
1625 file_hash, file_hash_entries, quote_ignores_source_dir,
1626 no_search_path, saw_pragma_once. Remove all_include_files and
1627 max_include_len. Make some members bool.
1628 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
1629 (_cpp_stack_file): Renamed from _cpp_read_file.
1630 (_cpp_stack_include): Renamed from _cpp_execute_include.
1631 (_cpp_init_files): Renamed from _cpp_init_includes.
1632 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
1633 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
1634 (cpp_read_next_file): Rename and move to cppfiles.c.
1635 (cpp_read_main_file): Update.
1636 * cpplib.c (run_directive): Update for renamed members.
1637 (do_include_common, _cpp_pop_buffer): Update.
1638 (do_import): Undeprecate #import.
1639 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
1640 * cpplib.h: Remove file_name_map_list.
1641 (cpp_options): Remove map_list.
1642 (cpp_dir): Rename from cpp_path. New datatype for name_map.
1643 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
1645 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
1647 * Makefile.in: Make stamp-objdir safe for parallel builds.
1649 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
1651 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
1652 (info): Depend on stmp-docobjdir.
1654 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1656 * configure: Regenerate.
1658 Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
1661 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
1662 in !unit-at-a-time mode.
1664 2003-07-28 Geoffrey Keating <geoffk@apple.com>
1666 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
1669 2003-07-28 Mark Mitchell <mark@codesourcery.com>
1672 * c-common.c (shorten_compare): Take into account differences
1673 between C and C++ representation for enumeration types.
1674 * tree.h (set_min_and_max_values_for_integral_type): Declare.
1675 * stor-layout.c (set_min_and_max_values_for_integral_type): New
1676 function, broken out from ...
1677 (fixup_signed_type): ... here and ...
1678 (fixup_unsigned_type): ... here.
1680 2003-07-28 Zack Weinberg <zack@codesourcery.com>
1682 * c-decl.c: Update commentary, adjust blank lines throughout.
1683 (struct c_scope): Fix indentation. Reorder members so
1684 outer-context pointers come first, booleans last.
1685 (duplicate_decls, define_label): Use a 'locus' variable for
1686 diagnostic locations in a few more places.
1687 (warn_if_shadowing): Un-split a conditional that fits on one line.
1688 (c_init_decl_processing): No need to clear current_scope and
1689 current_function_scope.
1690 (start_decl): Merge if/else if statements with same action.
1691 (push_parm_decl): Rename old_immediate_size_expand to use
1692 save_foo convention; save/restore around entire function.
1693 (grokdeclarator): Remove unnecessary braces.
1695 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
1696 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
1698 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
1699 when warn_declaration_after_statement. Call pedwarn_c90, not
1700 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
1701 * c-common.c (warn_declaration_after_statement): Define.
1702 * c-common.h (warn_declaration_after_statement): Declare.
1703 * c.opt (Wdeclaration-after-statement): New.
1704 * c-errors.c (pedwarn_c90): New function.
1705 * c-opts.c (c_common_handle_option) <case
1706 OPT_Wdeclaration_after_statement>: New.
1707 * c-tree.h (pedwarn_c90): Declare.
1708 * doc/invoke.texi (Option Summary): Document
1709 -Wdeclaration-after-statement.
1710 (Warning Options): Ditto.
1712 Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
1714 * i386.md (memory attribute) Avoid accessing uninitialized memory
1715 for ishift1 type instructions.
1717 2003-07-28 Jakub Jelinek <jakub@redhat.com>
1719 * configure.in (--enable-checking): Add fold category.
1720 (ENABLE_FOLD_CHECKING): Define if requested.
1721 * configure: Rebuilt.
1722 * config.in: Rebuilt.
1723 * doc/install.texi: Document it.
1724 * fold-const.c: Include md5.h.
1725 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
1726 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
1727 print_fold_checksum): New functions.
1729 * fold-const.c (fold): Never modify argument passed to fold, instead
1730 change a copy and return it.
1731 * convert.c (convert_to_integer): Likewise.
1733 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
1735 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
1736 cleanup of junk after #else and #endif directives. Collapse repeated
1737 clauses into for statment.
1739 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
1741 2003-07-27 Zack Weinberg <zack@codesourcery.com>
1743 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
1744 (keep_next_if_subblocks): Rename next_is_function_body.
1745 (pushlevel): Adjust commentary. Always set ->keep on the
1746 outermost level of a function. Don't set ->keep_if_subblocks.
1747 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
1748 (store_parm_decls): Adjust to match.
1749 (finish_function): Adjust to match.
1750 Call poplevel with all three arguments zero.
1752 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
1753 New functions split out of store_parm_decls.
1754 Avoid unnecessary work. Use local variables consistently.
1755 (store_parm_decls): Likewise.
1757 (finish_function): No need to set functionbody flag on call to
1759 (struct language_function): Remove scope field.
1760 (c_push_function_context, c_pop_function_context): No need to
1761 save and restore current_scope.
1763 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
1765 * doc/extend.texi (Deprecated Features): Implicit typename is
1766 gone. Default args on types is going.
1768 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
1770 * Makefile.in (ifcvt.o): Depend on target.h
1771 * ifcvt.c (target.h): Include.
1772 (if_convert): Don't call mark_loop_exit_edges if we can't
1775 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1777 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
1779 2003-07-26 Richard Henderson <rth@redhat.com>
1782 * cse.c (count_reg_usage): Handle asm_operands properly.
1784 2003-07-26 Roger Sayle <roger@eyesopen.com>
1786 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
1787 (DEF_EXT_FALLBACK_BUILTIN): Delete.
1788 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
1789 the regular DEF_EXT_LIB_BUILTIN macro.
1790 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
1791 the regular DEF_LIB_BUILTIN macro.
1792 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
1793 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
1794 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
1795 DEF_EXT_LIB_BUILTIN macro.
1797 * c-decl.c (duplicate_decls): Remove code to handle builtin
1798 functions prototyped without an argument list.
1800 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
1802 * config/i386/winnt.c: Revert 2003-07-08 change.
1803 (i386_pe_section_type_flags): Remove error_with_decl here too.
1805 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
1807 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
1808 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
1809 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
1810 (v850_handle_data_area_attribute): Likewise.
1812 2003-07-26 Geoffrey Keating <geoffk@apple.com>
1814 * varasm.c (output_constant_def_contents): Use
1815 ASM_DECLARE_CONSTANT_NAME if defined.
1816 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
1817 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
1818 objects get at least one byte to prevent assembler problems.
1819 (ASM_DECLARE_CONSTANT_NAME): New.
1821 * Makefile.in (libbackend.o): Remove options_.h.
1822 (mostlyclean): Likewise.
1824 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
1825 insert a label at the end of an function under Mach-O.
1827 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
1829 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
1831 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
1833 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
1835 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
1837 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1839 * doc/passes.texi (Passes): Mention pretty-printing and
1842 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
1844 * doc/extend.texi (Function Attributes): GNU C++ does now allow
1845 unused parameter decls.
1846 (Attribute Syntax): GNU C++ does not allow label attributes to be
1849 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1851 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
1852 (objc_declare_class): Likewise.
1853 (error_with_ivar): Likewise.
1854 (start_class): Likewise.
1855 (warn_with_method): Likewise.
1857 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1859 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
1861 * calls.c (try_to_integrate): Don't use xxx_with_decl.
1862 (expand_call): Likewise.
1863 * dwarfout.c (output_reg_number): Likewise.
1864 * expr.c (expand_expr): Likewise.
1865 * function.c (assign_temp): Likewise.
1866 (uninitialized_vars_warning): Likewise.
1867 (setjmp_args_warning): Likewise.
1868 (expand_function_end): Likewise.
1869 * stmt.c (fixup_gotos): Likewise.
1870 (warn_about_unused_variables): Likewise.
1871 (expand_end_bindings): Likewise.
1872 * stor-layout.c (layout_decl): Likewise.
1873 (place_field): Likewise.
1874 * toplev.c (check_global_declarations): Likewise.
1875 (rest_of_handle_inlining): Likewise.
1876 (default_tree_printer): New function.
1877 (general_init): Initialize diagnostic machinery before routing
1878 signals to the ICE machinery. Set default tree printer.
1879 * toplev.h (pedwarn_with_decl): Remove declaration.
1880 (warning_with_decl): Likewise.
1881 (error_with_decl): Likewise.
1882 (pedwarn): Remove attribute for the time being.
1883 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
1884 * varasm.c (named_section): Likewise.
1885 (make_decl_rtl): Likewise.
1886 (assemble_variable): Likewise.
1887 (merge_weak): Likewise.
1888 (declare_weak): Likewise.
1890 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
1891 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
1892 (format_with_decl): Remove.
1893 (diagnostic_for_decl): Likewise.
1894 (pedwarn_with_decl): Likewise.
1895 (warning_with_decl): Likewise.
1896 (error_with_decl): Likewise.
1897 (diagnostic_initialize): Adjust.
1898 (diagnostic_count_diagnostic): Likewise.
1899 (announce_function): Likewise.
1900 (lhd_print_error_function): Likewise.
1901 (diagnostic_report_current_module): Likewise.
1902 (default_diagnostic_starter): Likewise.
1903 (diagnostic_report_diagnostic): Likewise.
1904 (default_diagnostic_finalizer): Likewise.
1905 (verbatim): Likewise.
1907 (warning): Likewise.
1908 * opts.c (common_handle_option): Likewise.
1909 * pretty-print.c: New file.
1910 * c-pretty-print.h (pp_base): Override.
1911 * c-pretty-print.c: Adjust use of macros throughout.
1912 (pp_buffer): New macro.
1913 (pp_newline): Likewise.
1914 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
1915 * Makefile.in (DIAGNOSTIC_H): New variable.
1916 (c-errors.o): Use it.
1917 (c-objc-common.o): Likewise.
1918 (c-common.o): Likewise.
1919 (c-opts.o): Likewise.
1920 (c-format.o): Likewise.
1921 (diagnostic.o): Likewise.
1923 (toplev.o): Likewise.
1924 (rtl-error.o): Likewise.
1925 (dwarf2out.o): Likewise.
1927 (pretty-print.o): New rule.
1929 2003-07-24 Roger Sayle <roger@eyesopen.com>
1931 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
1932 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
1933 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
1934 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
1935 (DEF_FRONT_END_LIB_BUILTIN): Delete.
1936 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
1937 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
1939 * builtins.c (build_string_literal): New function to construct
1940 a char* pointer to a string literal.
1941 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
1942 "rtx target" to be consistent with other expand_builtin_* functions.
1943 Change 3rd argument from "int unlocked" to "bool unlocked".
1944 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
1945 c-common.c to avoid front-end dependencies. Optimize printf("")
1946 as a no-op when the result isn't required. Handle embedded NULs
1948 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
1949 from c-common.c to avoid front-end dependencies. Likewise, optimize
1950 fprintf(fp,"") as a no-op when the result isn't required, evaluating
1951 fp for side-effects. Handle embedded NULs in format string.
1952 (expand_builtin_sprintf): Fix typo.
1953 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
1954 optimizing. Adjust calls of expand_builtin_fputs to match the API
1955 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
1956 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
1957 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
1959 * c-common.c (is_valid_printf_arglist): Delete.
1960 (c_expand_builtin): Delete.
1961 (c_expand_builtin_printf): Moved to builtins.c. Delete.
1962 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
1963 (c_expand_expr): No longer treat CALL_EXPRs specially.
1964 (CALLED_AS_BUILT_IN): Delete.
1966 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1968 PR optimization/11631
1969 * gcse.c (store_motion): Connect infinite loops to exit.
1971 2003-07-24 Jason Merrill <jason@redhat.com>
1973 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
1974 (boolean_true_node, boolean_false_node): Likewise.
1975 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
1976 * tree.c (build_common_tree_nodes): Init boolean_type_node.
1977 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
1978 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
1979 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
1980 (truthvalue_true_node): Renamed from boolean_true_node.
1981 (truthvalue_false_node): Renamed from boolean_false_node.
1982 * c-decl.c: Just set truthvalue_* to integer_*.
1983 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
1985 2003-07-24 Roger Sayle <roger@eyesopen.com>
1987 * c-decl.c (match_builtin_function_types): New subroutine of
1988 duplicate_decls to test whether a redeclaration of a builtin
1989 function is suitably close, i.e. the return type and all of
1990 the argument types have the same modes as the builtin expects.
1991 (duplicate_decls): Fuzzy type matching for builtin functions
1992 moved to match_builtin_function_types.
1994 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1996 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
1999 2003-07-24 Zack Weinberg <zack@codesourcery.com>
2001 * c-decl.c: Search-and-replace change 'binding level' to
2002 'scope' in commentary.
2003 (struct binding_level): Now struct c_scope.
2004 (current_binding_level): Now current_scope.
2005 (free_binding_level): Now scope_freelist.
2006 (current_function_level): Now current_function_scope.
2007 (global_binding_level): Now global_scope.
2008 (make_binding_level): Now make_scope.
2009 (pop_binding_level): Now pop_scope.
2011 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2013 * configure.in (libgcc_visibility): Add missing whitespace.
2015 2003-07-24 Richard Henderson <rth@redhat.com>
2017 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
2018 __gcc_personality_v0.
2020 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2022 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
2024 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
2026 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
2027 documentation missed from my 2003-07-09 patch.
2029 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
2031 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
2033 * configure: Rebuild.
2035 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
2038 * c-typeck.c (type_lists_compatible_p): Do not compare
2039 arguments if one of them is an error_mark_node
2041 2003-07-24 Alan Modra <amodra@bigpond.net.au>
2043 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
2044 if current_function_calls_eh_return.
2046 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2048 * doc/c-tree.texi (OFFSET_TYPE): Update description.
2050 2003-07-23 Bob Wilson <bob.wilson@acm.org>
2052 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
2053 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
2054 __umodsi3, __modsi3): Increase frame size to 32.
2056 2003-07-23 Geoffrey Keating <geoffk@apple.com>
2058 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
2061 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2063 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
2065 PR optimization/10679
2066 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
2068 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2070 PR target/11607 and PR target/11516
2071 * pa.md (extzv, extv, insv): Revert latter half of last patch.
2073 2003-07-22 Mark Mitchell <mark@codesourcery.com>
2075 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
2076 * varasam.c (output_constant): Likewise.
2078 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2080 * alias.c: Fix comment formatting.
2081 * c-common.c: Likewise.
2082 * c-decl.c: Likewise.
2083 * c-opts.c: Likewise.
2084 * combine.c: Likewise.
2085 * cpplib.c: Likewise.
2086 * diagnostic.c: Likewise.
2087 * dojump.c: Likewise.
2088 * final.c: Likewise.
2089 * fold-const.c: Likewise.
2092 * ggc-page.c: Likewise.
2095 * mips-tfile.c: Likewise.
2096 * recog.c: Likewise.
2097 * regclass.c: Likewise.
2098 * regmove.c: Likewise.
2102 2003-07-22 Per Bothner <pbothner@apple.com>
2104 * line-map.c (add_line_map): Handle invalid LEAVE request.
2105 Fixes PR preprocessor/11361.
2107 2003-07-22 Per Bothner <pbothner@apple.com>
2109 * diagnostic.c.(diagnostic_report_current_module): Update to match
2110 2003-06-05 changes to push_srcloc and pop_srcloc.
2112 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
2114 * doc/trouble.texi: Better document two-stage name lookup.
2116 2003-07-22 Eric Christopher <echristo@redhat.com>
2118 * config/s390.c (s390_valid_pointer_mode): New.
2119 (TARGET_VALID_POINTER_MODE): Use.
2120 (s390_emit_prologue): Add tpf profiling hooks.
2121 (s390_emit_epilogue): Ditto.
2122 * config/s390.h (MASK_TPF): New.
2124 (POINTERS_EXTEND_UNSIGNED): Define.
2125 * config/s390.md (ptr_extend): New pattern.
2127 2003-07-22 Zack Weinberg <zack@codesourcery.com>
2129 * hashtable.c (approx_sqrt): Make static.
2130 * hashtable.h: Don't prototype approx_sqrt.
2131 * line-map.c (init_line_maps): Rename linemap_init.
2132 (free_line_maps): Rename linemap_free.
2133 (add_line_map): Rename linemap_add.
2134 (lookup_line): Rename linemap_lookup.
2135 (print_containing_files): Rename linemap_print_containing_files.
2136 * linemap.h: Update to match.
2138 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
2139 linemap routines to use new names.
2141 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
2143 * c-common.c (handle_packed_attribute): Don't pack a struct via a
2144 typedef. Propagate packedness from a main variant.
2146 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
2148 * Makefile.in (install-common): Add dependency on installdirs.
2150 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
2152 * c-common.c (c_common_type_for_mode): Return integer types for
2155 2003-07-22 Geoffrey Keating <geoffk@apple.com>
2157 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
2158 (finish_decl): Call maybe_apply_pragma_weak here.
2159 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
2160 TREE_PUBLIC and TREE_STATIC are decided.
2161 (start_function): Move call to maybe_apply_pragma_weak. Check that
2162 DECL_ASSEMBLER_NAME isn't set too early.
2164 * cpplex.c (_cpp_process_line_notes): Mention option name in
2167 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2169 * combine.c (if_then_else_cond): Simplify the comparison of
2170 rtx against -1, 0, and 1.
2171 * loop.c (check_dbra_loop): Likewise.
2172 * optabs.c (emit_conditional_move): Likewise.
2173 (emit_conditional_add): Likewise.
2174 * config/i386/i386.md (*movsi_or): Likewise.
2175 (*movdi_or_rex6): Likewise.
2177 Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
2179 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
2181 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
2183 * cppfiles.c (open_file_pch): Don't put unused entries in the
2184 splay tree. Remove dead code.
2186 2003-07-21 Geoffrey Keating <geoffk@apple.com>
2188 * c-common.h (num_in_fnames): Declare.
2189 (c_static_assembler_name): Move from here...
2190 * c-tree.h (c_static_assembler_name): ... to here.
2191 * c-opts.c: Don't include langhooks-def.h.
2192 (c_static_assembler_name): Move to c-decl.c.
2193 (num_in_fnames): Make externally visible.
2194 * c-decl.c: Include langhooks-def.h.
2195 (c_static_assembler_name): Move from c-opts.c.
2196 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
2197 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
2199 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
2200 when it's not needed.
2202 2003-07-21 Jakub Jelinek <jakub@redhat.com>
2204 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
2205 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
2206 (rs6000_emit_prologue): Save FPRs inline if set.
2208 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
2210 * config/ia64/ia64.md (prefetch): Support predicate.
2212 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
2214 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
2215 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
2218 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2220 PR optimization/11536
2221 * unroll.c (loop_iterations): Do not replace a register holding
2222 the final value by its equivalent before the loop if it is not
2225 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
2227 * doc/extend.texi: Fixes to spelling, grammar, and diction.
2229 2003-07-21 Ben Elliston <bje@wasabisystems.com>
2231 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
2232 (V850 Options): Spelling fixes.
2234 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
2236 * doc/invoke.texi: Fixes to style, grammar and diction.
2238 2003-07-20 Roger Sayle <roger@eyesopen.com>
2240 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
2241 * system.h (SMALL_STACK): Poison obsolete target macro.
2242 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
2244 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
2246 * configure.in: Cache the results of testing for cmp's capabilities.
2247 * configure: Regenerate.
2249 2003-07-20 Mark Mitchell <mark@codesourcery.com>
2252 * dwarf2out.c (gen_enumeration_type_die): Remember that
2253 enumerators can be unsigned.
2255 2003-07-19 Zack Weinberg <zack@codesourcery.com>
2257 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
2258 (push_label_level, pop_label_level): Kill.
2259 (struct binding_level): Rename level_chain to outer.
2260 Add outer_function field. Change parm_flag, function_body,
2261 keep, keep_if_subblocks to 1-bit bitfields of type bool.
2262 (current_function_level): New variable.
2263 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
2264 (keep_next_level, declare_parm_level, warn_if_shadowing):
2266 (struct language_function): Kill named_labels, shadowed_labels fields.
2267 (c_init_decl_processing, start_function, c_push__function_context)
2268 (c_pop_function_context): No need to muck with named_labels nor
2271 (make_binding_level): No need to clear the structure here.
2272 (pop_binding_level): Always operate on current_binding_level.
2273 Update current_function_level if necessary.
2274 (pushlevel): Don't clear named_labels. Update current_function_level
2275 if necessary. Use "true" and "false" where appropriate.
2276 (poplevel): Diagnose labels defined but not used, or vice
2277 versa, and clear out label-meanings leaving scope, while
2278 walking down the decls list, for all binding levels.
2279 Handle LABEL_DECLs appearing in the shadowed list.
2280 pop_binding_level takes no arguments.
2281 (pushdecl_function_level): Use current_function_level.
2283 (make_label, bind_label): New static functions.
2284 (declare_label): New exported function.
2285 (lookup_label, define_label): Rewritten for new data structure.
2286 (shadow_label): Kill.
2288 * c-tree.h: Prototype declare_label; don't prototype
2289 push_label_level, pop_label_level, nor shadow_label.
2290 * c-parse.in: Remove all calls to push_label_level and
2291 pop_label_level. Use declare_label for __label__ decls.
2293 * doc/extend.texi: Clarify that __label__ can be used to
2294 declare labels with local scope in any nested block, not
2295 just statement expressions. Cross-reference nested functions
2296 section from local labels section.
2298 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2300 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
2302 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
2304 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
2306 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2308 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
2309 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
2311 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
2313 * config/s390/s390.c (legitimize_pic_address): Access local symbols
2314 relative to the GOT instead of relative to the literal pool base.
2315 (s390_output_symbolic_const): Handle new GOT-relative accesses.
2316 * config/s390/s390.md ("call"): Access local functions and PLT stubs
2317 relative to the GOT instead of relative to the literal pool base.
2318 ("call_value"): Likewise.
2319 ("call_value_tls"): Likewise.
2321 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
2322 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
2323 (s390_chunkify_finish): Likewise.
2324 (s390_chunkify_cancel): Likewise.
2325 (s390_reorg): Adapt caller.
2326 (find_base_register_in_addr,
2327 find_base_register_ref, replace_base_register_ref): Delete.
2328 (find_ltrel_base, replace_ltrel_base): New functions.
2329 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
2330 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
2331 base vs. index register usage.
2332 (struct constant_pool): Remove 'anchor'.
2333 (s390_add_anchor): Delete.
2334 (s390_dump_pool): Remove anchor handling.
2335 * config/s390/s390.md ("reload_anchor"): Remove.
2337 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
2338 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
2339 (s390_emit_prologue): Use it.
2340 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
2341 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
2342 hard-code register 14.
2343 * config/s390/s390-protos.h (s390_load_got): Declare.
2345 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
2346 Support TImode constants.
2347 * config/s390/s390.md ("consttable_ti"): New.
2348 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
2350 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
2351 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
2352 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
2353 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
2354 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
2355 New symbolic constants.
2356 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
2357 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
2358 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
2359 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
2360 symbolic UNSPEC values.
2361 * config/s390/s390.c (larl_operand, s390_short_displacement,
2362 bras_sym_operand, s390_cannot_force_const_mem,
2363 s390_delegitimize_address, s390_decompose_address,
2364 legitimize_pic_address, s390_output_symbolic_const,
2365 s390_function_profiler): Use symbolic UNSPEC values.
2367 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2369 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
2370 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
2371 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
2372 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
2373 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
2374 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
2375 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
2376 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
2377 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
2378 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
2379 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
2380 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
2381 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
2382 postreload.c prefix.c print-tree.c protoize.c ra-build.c
2383 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
2384 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
2385 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
2386 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
2387 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
2388 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
2391 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2393 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
2394 * toplev.h (warning): Remove attribute.
2396 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2398 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
2399 (pop_label_level): Likewise.
2400 (duplicate_decls): Likewise.
2401 (implicitly_declare): Likewise.
2402 (shadow_label): Likewise.
2403 (start_decl): Likewise.
2404 (finish_decl): Likewise.
2405 (grokdeclarator): Likewise.
2406 (get_parm_info): Likewise.
2407 (detect_field_duplicates): Likewise.
2408 (finish_struct): Likewise.
2409 (start_function): Likewise.
2410 (store_parm_decls): Likewise.
2411 (finish_function): Likewise.
2412 (c_expand_body_1): Likewise.
2413 (check_for_loop_decls): Likewise.
2414 (merge_translation_unit_decls): Likewise.
2416 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
2418 * common.opt: Document --param.
2419 * opts.c (columns, undocumented_msg): New.
2420 (print_help): Get number of columns from environment. Print
2421 --param help. Tweak newline handling.
2422 (print_param_help): New.
2423 (print_filtered_help): Better handling of duplicates. Complain
2424 about undocumented switches.
2425 (print_switch): New.
2426 (wrap_help): Improve wrapping, use COLUMNS.
2427 * opts.sh: Ignore comments in records.
2428 * params.def: Fix typos and remove trailing periods.
2429 * toplev.c (display_help): Don't dump --param help.
2430 * doc/sourcebuild.texi: Update.
2432 2003-07-18 Richard Henderson <rth@redhat.com>
2435 * optabs.c (prepare_operand): Fail gracefully instead of abort
2436 if the predicate doesn't satisfy.
2437 (gen_cond_trap): Allow prepare_operand to fail.
2439 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2441 * c-common.c: Don't undefine GCC_DIAG_STYLE.
2442 (fname_decl): Don't use xxx_with_decl.
2443 (c_add_case_label): Likewise.
2444 (handle_section_attribute): Likewise.
2445 (handle_alias_attribute): Likewise.
2446 (handle_no_instrument_function_attribute): Likewise.
2447 (handle_no_limit_stack_attribute): Likewise.
2448 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
2449 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
2451 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2453 * Makefile.in (ifcvt.o): Add cfgloop.h.
2454 * basic-block.h (EDGE_LOOP_EXIT): New flag.
2455 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
2456 * ifcvt.c: Include cfgloop.h.
2457 (mark_loop_exit_edges): New static function.
2458 (if_convert): Call it.
2459 (find_if_header): Ignore branches out of loops.
2461 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
2463 * combine.c (simplify_comparison): Don't share rtx when converting
2464 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
2466 2003-07-18 David Edelsohn <edelsohn@gnu.org>
2468 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
2469 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2470 (MUST_PASS_IN_STACK): Define.
2471 (BLOCK_REG_PADDING): Define.
2473 2003-07-18 Richard Henderson <rth@redhat.com>
2475 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
2476 to skip the addr_vec.
2478 Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
2480 * combine.c (combinable_i3pat): Don't forbid occurrences of
2481 i2dest or i1dest in inner_dest if inner_dest is a mem.
2483 Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
2485 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
2487 2003-07-17 Jakub Jelinek <jakub@redhat.com>
2490 * loop.c (basic_induction_var): Check if convert_modes emitted any
2491 instructions. Remove them and return 0 if so.
2493 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
2495 PR optimization/11083
2496 * toplev.c (rest_of_handle_addresof): Rename into
2497 rest_of_handle_addressof. Delete unreachable blocks
2498 if dead edges were purged after the addressof pass.
2500 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
2502 * Makefile.in, configure, configure.in: Remove handling of
2503 lang-options.h and options_.h.
2504 * toplev.c (struct lang_opt, documented_lang_options): Remove.
2505 (display_help): Don't use documented_lang_options.
2507 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2509 * c-decl.c (pushdecl_function_level): Make static, return nothing.
2510 (kept_level_p): Fold into poplevel.
2511 (undeclared_variable): Moved here from c-typeck.c. Export.
2512 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
2513 (undeclared_variable): Prototype here. Don't prototype
2514 kept_level_p nor pushdecl_function_level.
2515 * c-parse.in: Change first argument to poplevel from
2516 "kept_level_p()" to "KEEP_MAYBE".
2517 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
2519 2003-07-17 Roger Sayle <roger@eyesopen.com>
2521 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
2522 commutative operands instead of modifying the RTL in-place.
2524 2003-07-17 Mark Mitchell <mark@codesourcery.com>
2526 PR optimization/11557
2527 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
2528 unless we know which function is being called.
2530 2003-07-17 Roger Sayle <roger@eyesopen.com>
2532 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
2533 whether to reorder the operands of a commutative binary operator.
2535 2003-07-17 Roger Sayle <roger@eyesopen.com>
2537 * fold-const.c (const_binop): Avoid performing the FP operation at
2538 compile-time, if either operand is NaN and we honor signaling NaNs,
2539 or if we're dividing by zero and either flag_trapping_math is set
2540 or the desired mode doesn't support infinities.
2541 (fold_initializer): New function to fold an expression ignoring any
2542 potential run-time exceptions or traps.
2543 * tree.h (fold_initializer): Prototype here.
2544 * c-typeck.c (build_binary_op): Move to the end of the file so
2545 that intializer_stack is in scope. If constructing an initializer,
2546 i.e. when initializer_stack is not NULL, use fold_initializer to
2548 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
2549 performing FP operations at compile-time, if they would raise an
2550 exception at run-time.
2552 2003-07-17 Geoffrey Keating <geoffk@apple.com>
2555 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
2556 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
2557 (GTFILES): Add langhooks.c.
2558 (gt-langhooks.h): New.
2559 * c-common.h (c_static_assembler_name): Prototype.
2560 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2561 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2562 * c-opts.c: Include langhooks-def.h.
2563 (c_static_assembler_name): New.
2564 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
2566 (lhd_set_decl_assembler_name): Give static objects with context
2568 * varasm.c (var_labelno): Delete.
2569 (make_decl_rtl): Don't change the assembler name once it's set.
2571 * c-opts.c (this_input_filename): New.
2572 (finish_options): Take new parameter, name of file being compiled.
2573 Update callers. Set this_input_filename.
2574 (push_command_line_include): Use this_input_filename not
2575 main_input_filename.
2577 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2579 * Makefile.in: Depend .pot generation on options.c.
2580 * po/exgettext: Add an extra_files variable containing additional
2583 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2585 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
2586 c_write_global_declarations.
2588 * c-decl.c: Fix typos in several comments. Remove all
2589 #if 0 blocks; reindent as needed. Remove unused argument
2590 to declare_parm_level; all callers changed.
2591 * c-parse.in: Update calls to declare_parm_level. Avoid
2592 issuing a double warning in some circumstances.
2593 * c-typeck.c: Update calls to declare_parm_level.
2594 * c-tree.h: Update prototype of declare_parm_level.
2596 * c-pragma.c (apply_pragma_weak): Don't complain about a
2597 redundant #pragma weak.
2599 * objc/objc-act.c (forward_declare_categories,
2600 build_selector_reference_decl, build_class_reference_decl,
2601 build_objc_string_decl, synth_forward_declarations,
2602 build_protocol_reference): Set TREE_PUBLIC on synthetic
2603 forward decl to 0, consistent with eventual definition.
2604 Correct comments to match.
2606 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
2607 in regexp that don't form a range expression.
2608 * fixinc/fixincl.def: Regenerate.
2610 2003-07-17 Richard Henderson <rth@redhat.com>
2613 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
2614 even with !TARGET_CONST_GP.
2615 (ia64_function_ok_for_sibcall): Reject non-local functions.
2617 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
2619 * c-common.c (c_estimate_num_insns_1): Don't handle
2621 * expr.c (safe_from_p): Likewise.
2622 * gengtype.c (adjust_field_tree_exp): Likewise.
2623 * stmt.c (warn_if_unused_value): Likewise
2624 * tree.c (first_rtl_op): Likewise.
2625 * tree.def: Don't define METHOD_CALL_EXPR.
2626 * java/lang.c (java_estimate_num_insns_1): Don't handle
2629 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2632 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
2633 and its restrictions for the SPARC64 port.
2634 Move the entry of "-mimpure-text" before that of "-mv8".
2636 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2637 Phil Edwards <phil@jaj.com>
2639 * doc/install.texi (*-*-solaris2*): Document the step-by-step
2640 procedure to bootstrap and install.
2641 Document the preference for the legacy Sun tools in /usr/bin
2642 over the POSIX tools in /usr/xpg4/bin for the build process.
2644 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2646 * c.opt: Document Uncodumented; use it. Document ObjC options.
2647 * opts.c (print_filtered_help): Skip undocumented switches.
2648 * opts.h (CL_UNDOCUMENTED): New.
2649 * opts.sh: Handle Undocumented.
2650 * toplev.c (documented_lang_options): Prevent its becoming empty.
2652 * lang-options.h: Remove.
2654 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
2656 * loop.c (check_ext_dependent_givs): Pass const struct loop *
2657 instead of struct loop_info * as argument. Accept BIVs with
2658 increment +/- 1 provided there is a friendly exit test against
2659 a loop-invariant value.
2660 (strength_reduce): Adapt call to check_ext_dependent_givs.
2662 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2663 Con Bradley <con.bradley@superh.com>
2665 * sh-protos.h (sh_get_pr_initial_val): Declare.
2666 * sh.c (regno_reg_class): Make its elements type enum reg_class.
2667 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
2668 and live_regs_mask arguments. Changed all callers.
2669 (save_schedule_s): New structure.
2670 (save_schedule): New typedef.
2671 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
2672 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
2673 In interrupts handlers, also save registers that are usually
2674 partially saved, and make sure there is at least one general purpose
2675 register saved if a target register needs saving.
2676 Add casts in comparisons to avoid warnings.
2677 (sh_media_register_for_return): return -1 for interrupt handlers.
2678 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
2679 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
2680 registers used are available.
2681 Set RTX_FRAME_RELATED_P where appropriate.
2682 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
2683 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
2684 (initial_elimination_offset): Likewise.
2685 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
2686 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
2687 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
2688 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
2689 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
2690 and for target registers.
2691 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
2692 (regno_reg_class): Make its elements type enum reg_class.
2693 (CONSTRAINT_LEN): Don't use isdigit.
2694 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
2695 (FUNCTION_ARG): Add parentheses to avoid warnings.
2696 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
2697 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
2698 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
2699 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
2700 * sh.md (xordi3+1): Remove unused variable regno.
2701 (return_media): Check that tr0 is available before using it.
2703 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
2705 * c.opt: Document more options.
2707 2003-07-16 Roger Sayle <roger@eyesopen.com>
2709 * combine.c (subst): Also handle (subreg (const_double ...)) case
2710 if created by a substitution, by using the original inner mode.
2712 2003-07-16 Roger Sayle <roger@eyesopen.com>
2714 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
2715 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
2716 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
2718 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
2720 * doc/install.texi (--without-headers): New.
2722 Partial Fix PR/10129
2723 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
2724 (machopic_output_function_base_name): New; print the true pic label.
2725 (machopic_classify_ident): Pic Base is always a defined data.
2726 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
2727 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
2729 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
2730 if they are not floating point registers.
2733 * ggc.h: Add header guards.
2734 * c-decl.c (finish_struct): Sort fields if
2735 number greater than 15 and there are no
2736 anonymous structs/unions.
2737 * c-common.h: Include ggc.h.
2738 (sorted_fields_type): New struct.
2739 (field_decl_cmp): New prototype.
2740 (resort_sorted_fields): New prototype.
2741 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
2742 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
2743 as s, removing other fields.
2744 * c-typeck.c (lookup_field): Use s in lang_type.
2745 These were mostly moved from cp/class.c:
2746 * c-common.c (field_decl_cmp): New static function.
2747 (field_decl_cmp): New function.
2748 (resort_sorted_fields): New function.
2750 2003-07-16 Geoffrey Keating <geoffk@apple.com>
2752 * config/darwin.c (machopic_select_section): Use decl_readonly_section
2753 to do most of the work.
2755 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
2757 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
2758 * config/mmix/mmix.c: Convert functions to ISO C90.
2759 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
2761 (mmix_get_hard_reg_initial_val): Tweak section head comment.
2763 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2765 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
2767 2003-07-16 Jakub Jelinek <jakub@redhat.com>
2769 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
2770 (uw_update_context_1): Use it.
2771 * config/rs6000/rs6000.c (insn_after_throw): Remove.
2772 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
2773 in parent frame if _Unwind_* called directly instead of through
2775 (rs6000_emit_eh_toc_restore): Remove.
2776 (rs6000_emit_prologue): Update stack pointer before doing any saving
2777 if current_function_calls_eh_return. Generate unwind info for $r2.
2778 (rs6000_emit_epilogue): Restore stack pointer after doing all
2779 restoring if current_function_calls_eh_return. Restore $r2.
2780 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
2781 * config/rs6000/rs6000.md (eh_return): Remove call to
2782 rs6000_emit_eh_toc_restore.
2783 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
2784 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
2786 2003-07-15 Jakub Jelinek <jakub@redhat.com>
2788 * expr.c (emit_block_move): Don't move anything if size is const 0.
2789 (clear_storage): Test against const0_rtx instead of comparing INTVAL
2792 2003-07-15 David S. Miller <davem@redhat.com>
2794 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
2795 emit nop if the last real insn is CALL_INSN.
2797 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2799 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
2801 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
2803 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2805 * config/i386/winnt.c (associated_type): Artificial methods are not
2806 affected by the import/export status of their class unless they are
2808 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
2810 * config/i386/winnt.c: Fix GCC copyright comment.
2812 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
2815 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
2816 not recursing on hard error.
2817 (diagnostic_for_decl): Likewise.
2818 * diagnostic.def: Rearrange.
2820 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2822 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
2823 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
2825 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2826 Richard Henderson <rth@redhat.com>
2828 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
2829 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
2830 (_Unwind_SetGR): Likewise.
2831 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
2832 (Unwind_SpTmp): New typedef.
2833 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
2834 (uw_update_context): Use _Unwind_GetPtr.
2835 (init_dwarf_reg_size_table): Move above uw_init_context_1.
2836 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
2837 Use _Unwind_SetSpColumn.
2838 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
2841 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
2843 * c.opt: Document more options.
2844 * toplev.c (documented_lang_options): Remove all local help strings.
2846 2003-07-15 Mark Mitchell <mark@codesourcery.com>
2849 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
2852 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
2855 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
2856 swap comparison operands if doing so would generate an
2857 unrecognizable insn.
2859 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
2861 PR optimization/11320
2862 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
2863 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
2864 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
2865 current_sched_info->compute_jump_reg_dependencies. Record which
2866 registers are used and which registers are set by the jump.
2867 Clear deps->reg_conditional_sets after a barrier.
2868 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
2869 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
2870 (init_deps): Initialize reg_conditional_sets.
2871 (free_deps): Clear reg_conditional_sets.
2872 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
2873 Mark registers live on entry of the fallthrough block and conditionally
2874 set as set by the jump. Mark registers live on entry of non-fallthrough
2875 blocks as used by the jump.
2876 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
2877 Mark new parameters as unused.
2879 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2881 * doc/invoke.texi: Resync MIPS -march documentation.
2883 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2885 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
2886 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
2887 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
2888 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
2889 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
2890 (mips_issue_rate): Handle PROCESSOR_R9000.
2891 (mips_use_dfa_pipeline_interface): Likewise.
2892 * config/mips/9000.md: New file.
2893 * config/mips/mips.md: Include it.
2894 (define_attr cpu): Add r9000.
2895 (mulsi3_mult3): Use "mul" for rm9000 code.
2897 2003-07-15 Stan Cox <scox@redhat.com>
2899 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
2900 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
2901 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
2902 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
2903 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
2904 (mips_issue_rate): Handle PROCESSOR_R7000.
2905 (mips_use_dfa_pipeline_interface): Likewise.
2906 * config/mips/7000.md: New file.
2907 * config/mips/mips.md: Include it.
2908 (define_attr cpu): Add r7000.
2909 (mulsi3_mult3): Use "mul" for rm7000 code.
2911 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2913 * config/mips/mips.md (define_attr type): Add condmove. Use it for
2914 the conditional move patterns.
2915 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
2916 Check for condmove type.
2917 (ir_vr54_arith): Add move type.
2918 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
2919 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
2921 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
2923 * c-opts.c (print_help): Remove.
2924 (c_common_handle_option): Don't handle --help.
2925 * c.opt: Document some options.
2927 * opts.c (print_filtered_help): New.
2928 (print_help): Use it.
2930 2003-07-14 Geoffrey Keating <geoffk@apple.com>
2932 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
2933 * tree.c: (build_common_tree_nodes_2): Likewise.
2934 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
2935 (V4DF_type_node): New.
2937 * c-opts.c (push_command_line_include): Don't free deferred_opts,
2939 (finish_options): Reset init_cursor.
2941 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
2943 * expr.c (expand_assignment): Remove an unused argument
2945 * expr.h: Update the prototype.
2946 * function.c: Update the callers.
2949 2003-07-14 Mark Mitchell <mark@codesourcery.com>
2952 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
2955 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
2957 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
2958 with __cplusplus, not "we must use the C++ compiler's type"
2959 * fixinc/inclhack.def (void_null): Note that Interix needs this.
2960 * fixinc/fixincl.x: Regenerate.
2962 2003-07-14 Geoffrey Keating <geoffk@apple.com>
2964 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
2965 and unseen_objects from the global data before calling
2966 __deregister_frame_info_bases.
2967 (examine_objects): Insert objects into the seen_objects list,
2969 (_Unwind_Find_FDE): Always unlock the global object lists, even if
2970 we couldn't allocate a data structure to put in it.
2972 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
2973 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
2974 (SET_TYPE_PROTOCOL_LIST): New.
2975 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
2976 (get_object_reference): Likewise.
2978 Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
2980 * cfglayout.c (locator_file): Break out from ....
2981 (insn_file): ... here.
2982 (locator_line): Break out from ....
2983 (insn_line): ... here.
2984 * rtl.h (locator_file, locator_line): Declare.
2985 (final_start_function): Set proper line/file info.
2987 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
2989 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
2990 handled by pp_c_cast_expression.
2992 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
2994 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
2995 allocate 32768 bytes of stack. Use addition rather than subtraction
2996 when a single insn is enough.
2997 * config/mips/mips.md: Remove insns and splitters for subtracting
2999 (subsi3): Only accept register operands.
3000 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
3001 (subdi3_internal_3, subsi3_internal_2): Likewise.
3002 (casesi): Use expand_binop to subtract the lower bound.
3004 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3006 * config/mips/mips.c (mips_in_small_data_p): Don't handle
3007 TARGET_MIPS16 specially.
3009 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3011 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
3012 mips_output_aligned_bss.
3013 * config/mips/linux.h: Likewise.
3014 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
3015 * config/mips/mips.c (mips_output_aligned_bss): New function.
3017 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
3018 * config/mips/elf64.h: Likewise.
3020 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
3021 mips_declare_object_name.
3022 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
3023 * config/mips/elf64.h: As for elf.h.
3024 * config/mips/iris6.h: Likewise.
3025 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
3026 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
3027 do...while (0) block.
3028 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
3029 (mips_finish_declare_object): Declare.
3030 * config/mips/mips.c (mips_declare_object_name): New function.
3031 (mips_finish_declare_object): New function.
3033 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
3034 * config/mips/linux.h: Likewise.
3036 * config/mips/mips.c (inside_function): Delete.
3037 (file_in_function_warning, ignore_line_number): Delete.
3038 (mips_output_filename): Don't warn about changing filenames within
3040 (mips_output_lineno): Update accordingly.
3041 (mips_output_function_prologue): Don't reset the deleted variables.
3042 * config/mips/mips.h (inside_function): Delete.
3043 (file_in_function_warning, ignore_line_number): Delete.
3045 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
3046 * config/mips/elf64.h: Likewise.
3047 * config/mips/openbsd.h: Likewise.
3048 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
3049 * config/mips/linux.h: Likewise.
3050 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
3051 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
3053 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
3054 to the list of include files when using gas.
3055 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
3056 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
3057 * config/mips/elf64.h: Likewise.
3058 * config/mips/iris5.h: Likewise.
3059 * config/mips/linux.h: Likewise.
3060 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
3061 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
3062 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
3063 * config/mips/sdb.h: ...this new file.
3065 2003-07-14 Douglas Rupp <rupp@gnat.com>
3067 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
3068 argument to getcwd; use fixed buffer instead.
3070 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3072 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
3073 * fixinc/fixinc.wrap: Delete.
3075 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3077 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
3080 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3082 * ggc-page.c (struct globals): Add new fields to keep track of the
3083 total allocated memory and overhead.
3084 (ggc_print_statistics): Print them.
3085 (ggc_alloc): Keep track of the total allocated memory and the
3088 * tree.c (dump_tree_statistics): Increase spacing.
3089 (enum tree_node_kind): Move to ...
3090 * tree.h (enum tree_node_kind): ... here.
3091 (tree_node_counts, tree_node_sizes): Declare.
3093 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
3095 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
3097 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3099 PR optimization/11440
3100 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
3103 2003-07-14 Alan Modra <amodra@bigpond.net.au>
3105 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
3106 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
3107 (emit_group_load, emit_group_store): Adjust declarations.
3108 Remove most occurrences of #ifdef TREE_CODE.
3109 * expr.c (emit_group_load): Add "type" param, and use
3110 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
3111 aligned accesses if !SLOW_UNALIGNED_ACCESS.
3112 (emit_group_store): Likewise.
3113 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
3114 emit_group_load and emit_group_store calls.
3115 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
3116 BLOCK_REG_PADDING to determine whether we need endian_correction.
3117 (load_register_parameters): Localize vars. Handle shifting of
3118 small values to the correct end of regs. Adjust emit_group_load
3120 (expand_call, emit_library_call_value_1): Adjust emit_group_load
3121 and emit_group_store calls.
3122 * function.c (assign_parms): Set mem alignment for stack slots.
3123 Adjust emit_group_store call. Store values at the "wrong" end
3124 of regs to the stack. Use BLOCK_REG_PADDING.
3125 (locate_and_pad_parm): Save where_pad.
3126 (expand_function_end): Adjust emit_group_load call.
3127 * stmt.c (expand_value_return): Adjust emit_group_load call.
3128 * Makefile.in (calls.o): Depend on $(OPTABS_H).
3129 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
3130 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
3131 (MUST_PASS_IN_STACK): Define.
3132 (BLOCK_REG_PADDING): Define.
3133 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
3134 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
3135 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
3136 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
3137 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
3139 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
3141 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
3143 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3145 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
3146 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
3148 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3151 * toplev.c: Don't cut off option names.
3153 2003-07-13 Andreas Jaeger <aj@suse.de>
3155 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
3156 to integer of different size.
3158 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
3160 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
3161 to (eq (and X 1) 0).
3163 2003-07-13 Andreas Jaeger <aj@suse.de>
3165 * config.gcc: Add pmmintrin.h for x86_64-*-*.
3167 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3169 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
3170 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
3171 list. Move these all together down by cpplib.
3173 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
3174 definition of CPPCHAR_SIGNED_T.
3176 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
3177 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
3178 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
3180 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
3181 * cppinit.c (cpp_create_reader): Likewise.
3183 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
3184 * cpptrad.c: Likewise. All callers changed.
3185 * cpplib.c: All callers changed.
3186 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
3187 * hashtable.h: Define GTY(x) to nothing here too.
3189 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3191 * stor-layout.c (compute_record_mode): Remove very obsolete test
3192 that forces BLKmode for records with fields crossing word boundary.
3194 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3196 * Makefile.in: Remove orphan reference to acconfig.h.
3198 2003-07-13 Andreas Jaeger <aj@suse.de>
3200 * cgraphunit.c: Convert prototypes to ISO C90.
3202 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3204 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
3206 * fixinc/fixincl.x: Rebuild.
3208 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3210 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
3211 i?86-*-*. Use correct name of cache variable.
3212 * configure: Regenerate.
3214 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3216 * config/alpha/alpha.c: Fix comment typos.
3217 * config/alpha/alpha.md: Likewise.
3218 * config/arm/arm.c: Likewise.
3219 * config/arm/arm.md: Likewise.
3220 * config/arm/lib1funcs.asm: Likewise.
3221 * config/avr/avr.md: Likewise.
3222 * config/arm/README-interworking: Fix typos.
3224 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3226 * c-format.c: Fix comment formatting.
3227 * c-typeck.c: Likewise.
3228 * coverage.c: Likewise.
3229 * cppcharset.c: Likewise.
3230 * cpplib.c: Likewise.
3231 * dbxout.c: Likewise.
3232 * gcov-io.h: Likewise.
3233 * toplev.c: Likewise.
3235 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3237 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
3240 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3242 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
3243 uses three-argument AC_DEFINE so no acconfig.h entries are
3245 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
3246 which contains the GAS version number as a scaled integer.
3247 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
3248 ability to check for ELF assembler.
3249 (gcc_GAS_CHECK_FEATURE): New macro.
3250 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
3251 assembler feature checks using gcc_GAS_CHECK_FEATURE.
3252 Use three-argument AC_DEFINE everywhere.
3253 * acconfig.h: Deleted.
3254 * config.in, configure: Regenerate.
3256 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3258 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
3260 * fixinc/fixincl.x: Regenerate.
3262 * fixinc/inclhack.def (gnu_types): Improve comment.
3264 2003-07-12 Andreas Jaeger <aj@suse.de>
3266 * fp-test.c (main): Use ISO C90 prototype.
3268 * version.c: Remove unneded include of ansidecl.h.
3270 * cgraph.h: Convert prototypes to ISO C90.
3271 * cgraph.c: Likewise.
3272 * fix-header.c: Likewise.
3274 * protoize.c: Likewise.
3276 Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
3278 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
3281 Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
3282 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3284 * cgraph.c (cgraph_max_uid): New global variable.
3285 (cgraph_node): Set uid field.
3286 (create_edge): Keep inline flags consistent.
3287 (dump_cgraph): Dump more info.
3288 * cgraph.h (struct cgraph_local_info): Remove inline_many and
3289 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
3290 (struct cgraph_global_info): Add insns, calls, cloned_times,
3292 (struct cgraph_node): Add uid.
3293 (struct cgraph_edge): Add inline_call.
3294 (cgraph_max_uid, cgraph_inline_p): Declare.
3295 * cgraph.c: Include params.h and fibheap.h
3296 (cgraph_mark_functions_to_inline_once): Kill.
3297 (INSNS_PER_CALL): New constant.
3298 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
3300 (cgraph_finalize_function): Do not analyze inlining.
3301 (cgraph_finalize_compilation_unit): Set inlining attributes.
3302 (cgraph_mark_functions_to_output): More consistency checks.
3303 (cgraph_optimize_function): Set current_function_decl to NULL.
3304 (cgraph_expand_function): Use new inline flags.
3305 (cgraph_postorder): Expand from cgraph_expand_functions.
3306 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
3307 (cgraph_inlined_into, cgraph_inlined_callees,
3308 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
3309 cgraph_mark_inline, cgraph_check_inline_limits,
3310 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
3311 cgraph_decide_inlining, cgraph_inline_p): New functions.
3312 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
3313 PARAM_INLINE_UNIT_GROWTH): New parameters.
3314 * tree-inline.c (struct inline_data): New field current_decl.
3315 (expand_call_inline): Avoid forward declarations; use
3316 inlinable_function_p.
3317 (optimize_inline_calls): Set id.current_decl.
3319 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
3321 * configure.in: Remove wrongly added definition of
3323 * configure: Regenerate.
3325 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
3327 * rtl.def (NOTE): Do not use padding.
3329 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
3331 * doc/install.tex: Update required binutils for i?86-*-linux*
3333 2003-07-11 Richard Henderson <rth@redhat.com>
3335 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
3337 2003-07-11 Mark Mitchell <mark@codesourcery.com>
3339 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
3340 TRANSLATION_UNIT_DECL as top_level.
3342 2003-07-11 Jakub Jelinek <jakub@redhat.com>
3344 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
3345 then fall back to cmpstrM.
3346 * builtins.c (expand_builtin_memcmp): Likewise.
3347 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
3348 (s390_expand_cmpmem): ... this.
3349 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
3350 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
3351 from cmpstr* patterns. Rename call to s390_expand_cmpstr
3352 to s390_expand_cmpmem.
3353 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
3354 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
3356 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
3358 * doc/md.texi (cmpstrM): Describe as String compare insn, not
3362 2003-07-11 Loren James Rittle <ljrittle@acm.org>
3364 * config/i386/freebsd.h (SET_ASM_OP): Remove.
3365 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
3366 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
3367 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
3369 2003-07-11 Richard Henderson <rth@redhat.com>
3371 * function.c (assign_parms): Don't recombine complex args if
3372 fnargs is unchanged from orig_fnargs.
3373 (split_complex_args): Return args without complex before copying.
3374 Re-layout the modified parameters.
3376 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
3378 * regclass.c (choose_hard_reg_mode): Add third argument.
3379 Changed all callers.
3380 * rtl.h (choose_hard_reg_mode): Update declaration.
3381 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
3382 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
3384 2003-07-11 Geoffrey Keating <geoffk@apple.com>
3386 * c-decl.c (finish_decl): Handle 'used' here...
3387 * cgraphunit.c (cgraph_finalize_function): ... and here ...
3388 * c-common.c: (handle_used_attribute): ... not here.
3390 * configure.in (onstep): Support --enable-intermodule.
3391 * Makefile.in (OBJS-common): New.
3393 (OBJS-archive): New.
3394 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
3395 (OBJS-onestep): New.
3396 (libbackend.a): Support @onestep@.
3397 (libbackend.o): New.
3398 * configure: Regenerate.
3400 * c-common.h (c_reset_state): New prototype.
3401 (c_parse_file): New prototype.
3402 (finish_file): Move prototype from c-tree.h.
3403 * c-decl.c: Include <hashtab.h>.
3404 (builtin_decls): New.
3405 (current_file_decl): New.
3406 (duplicate_decls): Add extra parameter. Change all callers. Don't
3407 output duplicate common symbols.
3408 (link_hash_hash): New.
3409 (link_hash_eq): New.
3410 (poplevel): Handle popping of the top level.
3411 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
3412 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
3413 (pushdecl_top_level): Likewise.
3414 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
3415 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
3416 (finish_decl): Handle TRANSLATION_UNIT_DECL.
3417 (merge_translation_unit_decls): New.
3418 (c_write_global_declarations): New.
3419 (c_reset_state): New.
3420 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
3421 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
3422 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
3423 TRANSLATION_UNIT_DECL.
3424 (c_objc_common_finish_file): Call merge_translation_unit_decls.
3425 * c-opts.c (in_fnames): Rename from in_fname.
3426 (c_common_decode_option): Handle multiple input filenames.
3427 (c_common_post_options): Likewise.
3428 (c_common_parse_file): Likewise; also, call c_parse_file rather than
3430 * c-parse.in: Move cleanup code to c_parse_file.
3431 (free_parser_stacks): Move contents to c_parse_file.
3432 (c_parse_file): New.
3433 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT