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