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