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