1 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
3 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
4 and similarly in (A | C) == D where C & ~D != 0.
6 2003-08-20 Geoffrey Keating <geoffk@apple.com>
9 * configure.in: When testing with_libs and with_headers, treat
10 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
11 * configure: Regenerate.
13 2003-08-20 Peter Barada <peter@baradas.org>
15 * longlong.h (umul_ppmm): Add ColdFire support.
17 2003-08-20 Peter Barada <peter@baradas.org>
18 Bernardo Innocenti <bernie@develer.com>
20 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
21 * config/m68k/m68k.h: Likewise.
22 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
23 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
24 * config/m68k/linux.h: Likewise.
25 * config/m68k/m68k.c: Likewise.
26 * config/m68k/m68k.md: Likewise.
27 * config/m68k/m68kelf.h: Likewise.
28 * config/m68k/netbsd-elf.h: Likewise.
29 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
31 2003-08-20 Bernardo Innocenti <bernie@develer.com>
33 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
34 * config/m68k/m68k.md: Likewise.
36 2003-08-20 Mark Mitchell <mark@codesourcery.com>
40 2003-08-19 Mark Mitchell <mark@codesourcery.com>
41 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
42 types with precisions other than those given by native machine
45 2003-08-20 Gunther Nikl <gni@gecko.de>
47 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
48 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
49 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
50 * config/m68k/m68k.md (anonymous define_insn): Likewise
51 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
52 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
53 code selected by NO_ASM_FMOVECR
55 2003-08-20 Gunther Nikl <gni@gecko.de>
57 * config/m68k/m68k.c (output_move_const_into_data_reg,
58 output_move_himode): unify MOTOROLA/MIT handling of moveq
59 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
62 2003-08-20 Gunther Nikl <gni@gecko.de>
64 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
66 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
67 HOST_WIDE_INT_PRINT_DEC with %wd
69 2003-08-20 Loren James Rittle <ljrittle@acm.org>
71 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
74 2003-08-20 Roger Sayle <roger@eyesopen.com>
77 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
78 operands before calling tree_int_cst_lt when performing associative
81 2003-08-20 Jason Merrill <jason@redhat.com>
83 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
84 (EXPR_CHECK): Don't check for 'r' or 's' if we're
85 checking IS_EXPR_CODE_CLASS.
86 * calls.c (calls_function_1): Likewise.
87 * fold-const.c (fold): Likewise.
88 * tree.c (iterative_hash_expr): Likewise.
89 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
91 2003-08-20 Gunther Nikl <gni@gecko.de>
93 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
94 depending on MOTOROLA_BSR
95 * config/m68k/m68k.md (anonymous define_insn): Likewise
97 2003-08-20 Jason Merrill <jason@redhat.com>
99 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
100 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
101 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
102 * dojump.c (do_jump): Likewise.
103 * fold-const.c (operand_equal_p, fold): Likewise.
104 (tree_expr_nonnegative_p): Likewise.
106 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
107 TYPE_USER_ALIGN for FIELD_DECLs.
109 * attribs.c (decl_attributes): Rebuild the function pointer type after
110 changing the target type.
111 * tree.c (get_qualified_type): Also check that the attributes match.
113 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
115 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
116 * objc/config-lang.in (stagestuff): ... to here.
118 2003-08-19 Mark Mitchell <mark@codesourcery.com>
121 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
122 NOP_EXPR) when necessary.
123 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
124 types with precisions other than those given by native machine
127 2003-08-19 Geoffrey Keating <geoffk@apple.com>
129 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
130 because some macro is defined.
132 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
134 * config/i386/darwin.h (ASM_SPEC): New.
135 (SUBTARGET_EXTRA_SPECS): New.
136 * config/rs6000/darwin.h (ASM_SPEC): New.
137 (SUBTARGET_EXTRA_SPECS): New.
138 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
139 a cross-compiler between two different processors on Darwin.
140 * configure: Regenerate.
142 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
144 * builtins.c: Fix comment typos.
145 * c-common.c: Likewise.
146 * c-decl.c: Likewise.
147 * c-pretty-print.c: Likewise.
148 * cfgbuild.c: Likewise.
149 * cfglayout.c: Likewise.
150 * cfgloopanal.c: Likewise.
151 * cgraphunit.c: Likewise.
152 * cppfiles.c: Likewise.
153 * dwarfout.c: Likewise.
155 * fold-const.c: Likewise.
157 * ggc-page.c: Likewise.
158 * haifa-sched.c: Likewise.
159 * pretty-print.c: Likewise.
162 * value-prof.c: Likewise.
164 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
166 * c-decl.c: Follow spelling conventions.
167 * cppfiles.c: Likewise.
169 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
171 * c-common.c: Fix comment formatting.
172 * c-common.h: Likewise.
173 * c-decl.c: Likewise.
174 * cppinit.c: Likewise.
175 * cpplib.h: Likewise.
176 * emit-rtl.c: Likewise.
178 * line-map.h: Likewise.
181 * simplify-rtx.c: Likewise.
183 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
185 * unwind-c.c: Add libgcc-style exception.
186 * unwind-dw2.c: Likewise.
187 * unwind-pe.h: Likewise.
188 * unwind-sjlj.c: Likewise.
189 * unwind.inc: Likewise.
191 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
193 PR c/5582 PR c++/10538
194 * langhooks-def.h (lhd_decl_uninit): Declare.
195 (LANG_HOOKS_DECL_UNINIT): New macro.
196 (LANG_HOOKS_INITIALIZER): Adjust.
197 * langhooks.h (struct lang_hooks): Add new field
199 * langhooks.c (lhd_decl_uninit): Define.
200 * c-common.c (c_decl_uninit_1): New function.
201 (c_decl_uninit): New function.
202 (warn_init_self): Define.
203 * c-common.h (c_decl_uninit): Declare.
204 (warn_init_self): Declare.
205 * c.opt: Introduce -Winit-self.
206 * c-opts.c (c_common_handle_options): Set warn_init_self.
207 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
208 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
209 * function.c (uninitialized_vars_warning): Call the language hook.
210 * doc/invoke.texi: Document -Winit-self.
212 2003-08-19 Chris Demetriou <cgd@broadcom.com>
214 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
215 to use better predicates and constraints. Define new
216 instruction to handle "trap_if" with DI-mode arguments.
217 (conditional_trap): FAIL if trap code is not 0.
219 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
221 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
222 strstr with $pb to a strcompare with "<pic base>"
223 (ix86_output_addr_diff_elt): Output the real pic base.
225 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
227 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
228 (LANG_HOOKS_INITIALIZER): Correct.
229 * c-lang.c: Likewise.
231 2003-08-19 Jan Hubicka <jh@suse.cz>
233 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
234 (cgraph_varpool_mark_needed_node): Likewise.
235 * cgraph.h (notice_global_symbol): Declare
236 * varasm.c (notice_global_symbol): Break out from ...
237 (assemble_start_function): ... here; update for variables.
238 (assemble_variable): Use notice_global_symbol.
240 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
242 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
243 expect SFmode and DFmode arguments to be passed in FPRs,
244 regardless of the underlying type.
246 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
249 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
250 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
252 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
255 * c-typeck.c (set_init_index): Check for negative index.
257 2003-08-18 Bob Wilson <bob.wilson@acm.org>
259 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
261 * config/xtensa/crtn.asm (_init, _fini): Likewise.
262 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
263 __umodsi3, __modsi3): Likewise.
264 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
267 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
269 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
271 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
273 * config/mips/mips.md: Quote C code in braces. Remove use of
274 fake const0_rtx operands. Remove double backslashes. Use \;.
275 Remove workarounds for bogus warnings.
277 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
279 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
280 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
281 rather than TARGET_MIPS4300.
282 (mulsf3_internal, mulsf3_r4300): Likewise.
284 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
286 * config/mips/mips.md: Renumber unspecs. Clean up comments.
288 2003-08-17 Roger Sayle <roger@eyesopen.com>
290 * simplify-rtx.c (associative_constant_p): New function to test
291 whether an RTX expression is an immediate constant.
292 (simplify_associative_operation): New function to perform some
293 reassociation optimizations of associative binary expressions.
294 (simplify_binary_operation): Use simplify_associative_operation
295 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
296 Floating point expressions are only reassociated when unsafe
297 math optimizations are permitted.
299 2003-08-17 Andreas Jaeger <aj@suse.de>
301 * config/alpha/alpha.md: Remove usage of PARAMS.
303 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
304 * config/i386/i386-interix.h: Likewise.
305 * config/i386/winnt.c: Likewise.
306 * config/i386/cygming.h: Likewise.
307 * config/i386/cygwin2.c: Likewise.
308 * config/darwin.c: Likewise.
309 * config/darwin-c.c: Likewise.
310 * config/darwin-protos.h: Likewise.
311 * config/darwin.h: Likewise.
312 * config/s390/s390-protos.h: Likewise.
313 * config/s390/s390.c: Likewise.
314 * config/ia64/ia64.c: Likewse
315 * config/ia64/ia64-protos.h: Likewise.
316 * config/ia64/ia64-c.c: Likewise.
318 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
320 * config/sparc/sparc.c: Convert to ISO C.
322 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
323 * config/sparc/sparc.c: Likewise.
325 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
328 * stmt.c (expand_expr_stmt_value): Don't warn about any void
331 2003-08-16 Jan Hubicka <jh@suse.cz>
333 * i386.c (ix86_fntype_regparm): Rename from ...
334 (ix86_function_regparm): ... this one; add fastcall and local
336 (ix86_function_ok_for_sibcall): Update.
337 (ix86_return_pops_args): Likewise.
338 (init_cumulative_args): Likewise.
339 (x86_can_output_mi_thunk): Likewise.
340 (function_arg): Fix formating.
341 (x86_this_parameter): Fix fastcall.
342 (x86_output_mi_thunk): Likewise.
344 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
345 body as reachable; mark nested functions as needed too.
346 (dump_cgraph): Do not output global.calls.
347 * cgraph.h (cgraph_global_info): Kill.
348 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
349 (record_call_1): Speedup.
350 (cgraph_analyze_function): Break out from ...; compute inlining
352 (cgraph_finalize_compilation_unit): ... here.
353 (cgraph_mark_inline): Kill computation of calls.
354 (cgraph_decide_inlining): Do not compute most of initial values.
356 2003-08-14 Roger Sayle <roger@eyesopen.com>
358 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
359 to negate if either operand is easy to negate, if we don't care
360 about sign-dependent rounding.
361 (negate_expr): Make the logic to negate a REAL_CST explicit.
362 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
363 that's easy to negate, if we don't honor sign-dependent rounding.
364 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
365 negate, and the symmetric A * -B as -A * B if A is easy to negate.
366 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
367 -C/D if B and C are cheap to negate. Add an explicit rule to
368 optimize X/-1.0 as -X when we don't care about signaling NaNs.
370 2003-08-14 Zack Weinberg <zack@codesourcery.com>
372 * Makefile.in (tm_file): Rename tm_include_list.
373 (tm_p_file): Rename tm_p_include_list.
374 (build_xm_file): Rename build_xm_include_list.
375 (host_xm_file): Rename host_xm_include_list.
376 (xm_file): Rename xm_include_list.
377 (xm_file_list): Add to be substituted.
378 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
380 (bt-load.o): Add missing dependency on $(TM_H).
381 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
382 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
383 build_xm_file, generate both *_file_list and *_include_list
384 values from it. (xm_file_list was formerly not being generated.)
385 In *_include_list, prefix the names of all headers found in
386 $(srcdir)/config with config/. In each loop, consider only
387 the special case files that can actually appear in that list.
388 AC_SUBST all *_file_list and all *_include_list variables; do
389 not AC_SUBST the plain *_file variables.
390 * configure: Regenerate.
392 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
394 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
396 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
398 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
400 (attr_length_call): Include it here. Improve length estimate for
402 (output_call): Use targetm.binds_local_p.
404 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
406 * builtins.c (CASE_MATHFN): New helper macro.
407 (mathfn_built_in): Simplify and sort.
409 * protoize.c (substr): Delete, callers changed to `strstr'.
411 2003-08-13 Zack Weinberg <zack@codesourcery.com>
413 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
414 * config/iq2000/xm-iq2000.h: Delete file.
416 2003-08-13 Geoffrey Keating <geoffk@apple.com>
418 * gengtype.c (walk_type): Process a subobject before processing
419 the pointer that points to the subobject.
421 2003-08-13 Per Bothner <pbothner@apple.com>
423 * regclass.c (init_reg_modes): Make non-static.
424 Rename to init_reg_modes_once per new naming convention.
425 (init_regs): Don't call init_reg_modes here.
426 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
427 * rtl.h (init_reg_modes_once): New declaration.
428 * toplev.c (backend_init): Call init_regs after init_emit_once.
430 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
432 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
433 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
435 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
437 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
438 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
440 2003-08-13 Dale Johannesen <dalej@apple.com>
442 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
443 handling of decrement-and-branch farther than 32 bits.
445 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
447 * configure.in (make_compare_target): Move test to ...
448 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
449 * configure: Regenerate.
451 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
453 * config/mips/iris6.h: Convert to C90 prototypes.
454 * config/mips/irix6-libc-compat.c: Likewise.
455 * config/mips/mips-protos.h: Likewise.
456 * config/mips/mips.c: Likewise.
458 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
460 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
461 for selected machines. Comment heavily.
462 fixinc/fixincl.x: Rebuild.
463 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
465 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
467 * config/mips/mips.h: Tweak various comments.
468 * config/mips/mips.c: Likewise.
470 2003-08-11 James E Wilson <wilson@tuliptree.org>
472 PR optimization/11319
474 * alias.c (find_base_value, case REG): Return 0 not src if no base
477 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
479 * gcse.c (gmalloc): Fix last change.
481 2003-08-11 Roger Sayle <roger@eyesopen.com>
483 * simplify-rtx.c (simplify_binary_operation): Replace calls to
484 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
485 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
486 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
488 2003-08-11 Roger Sayle <roger@eyesopen.com>
490 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
491 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
492 typecode for an ABS_EXPR.
494 * doc/c-tree.texi: Document ABS_EXPR.
496 2003-08-11 Roger Sayle <roger@eyesopen.com>
498 * fold-const.c (fold): Optimize any associative floating point
499 operator with -funsafe-math-optimizations, not just MULT_EXPR.
501 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
503 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
504 information in SHmedia case too.
505 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
507 (__set_fpscr): Use an access via GOT for PIC case.
509 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
511 * configure.in (intermodule): Make switch test more portable.
512 * configure: Regenerate.
514 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
516 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
519 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
521 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
522 (grealloc): Size argument is a size_t.
523 (gcalloc): New function. Use throughout in lieu of
526 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
528 * config/ia64/ia64.c (ia64_reorg): Likewise.
529 * conflict.c (conflict_graph_new): Likewise.
530 * fixinc/fixincl.c (run_compiles): Likewise.
531 * genattrtab.c (optimize_attrs): Likewise.
532 * genrecog.c (new_decision): Likewise.
533 * haifa-sched.c (schedule_block): Likewise.
534 * hashtable.c (ht_create): Likewise.
536 2003-08-11 Bob Wilson <bob.wilson@acm.org>
538 * config/xtensa/lib2funcs.S: Fix whitespace.
539 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
540 syntax where appropriate. Remove unnecessary backslash escapes.
541 Reformat comments and fix some code formatting.
542 (extendqisi2): Rearrange conditional.
543 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
544 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
547 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
549 * config/mips/mips.c: Various formatting fixes.
550 (override_options): Resync -mtune handling with gas.
551 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
552 * config/mips/mips.h: More formatting fixes.
553 (mips_abi): Move declaration.
554 * config/mips/mips.md (exception_receiver): Add mode to
557 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
559 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
561 (bdesc_1arg): Remove evsplati and evsplatfi.
563 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
565 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
568 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
570 * builtins.c (expand_builtin_strcat): Optimize constant strings.
572 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
574 * pretty-print.c (pp_base_indent): Rename from pp_indent.
575 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
576 (struct c_pretty_print_info): Add more fields.
577 (pp_c_left_paren): Move to c-pretty-print.c.
578 (pp_c_right_paren): Likewise.
579 (pp_c_left_brace): Likewise.
580 (pp_c_right_brace): Likewise.
581 (pp_c_left_bracket): Likewise.
582 (pp_c_right_bracket): Likewise.
583 (pp_c_declarator): Declare.
584 (pp_c_direct_declarator): Likewise.
585 (pp_c_specifier_qualifier_list): Likewise.
586 (pp_c_type_id): Likewise.
587 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
588 (pp_c_type_qualifier_list): New.
589 (pp_c_pointer): Likewise.
590 (pp_c_parameter_type_list): Likewise.
591 (pp_c_function_definition): Likewise.
592 (pp_c_id_expression): Likewise.
593 (pp_c_simple_type_specifier): Tidy.
594 (pp_c_unary_expression): Likewise.
595 (pp_c_expression): Likewise.
596 (pp_c_pretty_printer_init): Likewise.
597 (pp_c_specifier_qualifier_list): Rework..
598 (pp_c_abstract_declarator): Likewise.
599 (pp_c_postfix_expression): Likewise.
600 (pp_c_primary_expression): Likewise.
601 (pp_c_cast_expression): Likewise.
602 (pp_c_direct_abstract_declarator): Likewise.
603 (pp_c_storage_class_specifier): Likewise.
604 (pp_c_function_specifier): Likewise.
605 (pp_c_declaration_specifiers): Likewise.
606 (pp_c_direct_declarator): Likewise.
607 (pp_c_declarator): Likewise.
608 (pp_c_declaration): Likewise.
609 (pp_c_statement): Likewise.
610 (pp_c_integer_constant): Rename from pp_c_integer_literal.
611 (pp_c_character_constant): Rename from pp_c_character_literal.
612 (pp_c_bool_constant): Rename from pp_c_bool_literal.
613 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
614 (pp_c_floating_constant): Rename from pp_c_real_literal.
615 (pp_c_constant): Rename from pp_c_literal.
616 * c-lang.c: Include diagnostic.h and c-pretty-print.h
617 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
618 (c_initialize_diagnostics): New.
619 * Makefile.in (c-lang.o): Update dependency.
621 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
623 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
625 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
627 * config/mips/mips.c (mips_no_mips16_string): Remove.
628 (override_options): Don't handle -mips16 as part of -mipsN.
629 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
630 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
631 (TARGET_OPTIONS): Remove -mno-mips16.
633 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
635 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
636 (coprocessor2_operand): Likewise.
637 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
638 (lookup_name): Remove declaration.
639 (abort_with_insn): Remove. Replace all uses with fatal_insn.
640 (mips16, mips_abicalls): Remove.
641 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
642 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
643 (coprocessor_operand, coprocessor2_operand): Remove.
644 (override_options): Don't set mips16 or mips_abicalls.
645 (print_operand): Don't expect SIGN_EXTEND operands.
646 (mips_secondary_reload_class): Likewise.
647 (mips_output_conditional_branch): Remove disabled long-branch code.
648 * config/mips/mips.h (call_used_regs): Remove declaration.
649 (may_call_alloca): Likewise.
650 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
651 (mips_abicalls, mips16): Remove declarations.
652 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
653 (CC1_SPEC): Remove outdated comment.
654 (MIPS_VERSION, MACHINE_TYPE): Remove.
655 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
656 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
657 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
658 (PUSH_ROUNDING): Likewise.
659 (ASSEMBLER_SCRATCH_REGNUM): Remove.
660 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
661 and mips16 with TARGET_MIPS16.
663 2003-08-09 Per Bothner <pbothner@apple.com>
665 * cppinit.c (cpp_read_main_file): Split out source-independent
666 initialization to separate function ...
667 (cpp_post_options): New function.
668 * cppfiles.c (cpp_stack_file): Rename public name to ...
669 (_cpp_stack_file): New internal function name.
670 * cpplib.h: Update accordingly.
671 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
672 (cpp_read_main_file): Don't initialize line here.
673 * c-opts.c (c_common_post_options): Call cpp_post_options.
674 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
675 * fix-header.c (read_scan_file): Call cpp_post_options.
677 2003-08-09 Per Bothner <per@bothner.com>
679 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
681 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
683 * pa.c (pa_asm_output_mi_thunk): Fix typo.
685 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
687 PR preprocessor/11839
688 * cppfiles.c (open_file): Handle ENOTDIR.
690 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
693 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
695 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
697 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
698 source/destination is not a register operand.
700 2003-08-08 Richard Henderson <rth@redhat.com>
703 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
704 RETURN_ADDRESS_POINTER_REGNUM.
705 (ia64_expand_prologue): Don't frob it.
706 (ia64_output_function_epilogue): Likewise.
707 (ia64_return_addr_rtx): New.
708 (ia64_split_return_addr_rtx): New.
709 * config/ia64/ia64-protos.h: Update.
710 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
711 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
712 (GENERAL_REGNO_P): Don't check it.
713 (AR_*_REGNUM): Renumber.
714 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
715 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
716 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
717 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
718 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
719 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
720 (movdi_ret_addr): New.
722 2003-08-08 Geoffrey Keating <geoffk@apple.com>
724 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
726 2003-08-08 Roger Sayle <roger@eyesopen.com>
728 * tree.h (get_identifier) Define a macro form of get_identifier
729 that calls get_identifier_with_length when the string is constant.
730 (get_identifier_with_length): Change type of second argument to
732 * stringpool.c (get_identifier): Undefine the macro before giving
733 the function definition.
734 (get_identifier_with_length): Change type of second argument to
735 size_t in function definition.
736 * hashtable.c (calc_hash): Change type of second argument to size_t.
737 (ht_lookup): Change type of third argument to size_t. Reorganize
738 to speed-up the cases where the hash table slot is empty, or the
739 first probe matches (i.e. there isn't a collision).
740 * hashtable.h (ht_lookup): Adjust function prototype.
742 2003-08-08 Bernardo Innocenti <bernie@develer.com>
746 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
748 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
750 * common.opt: Add debug switches.
751 * flags.h (use_gnu_debug_info_extensions): Boolify.
752 * opts.c (write_symbols, debug_info_level,
753 use_gnu_debug_info_extensions): Move from toplev.c.
754 (set_debug_level): New.
755 (common_handle_options): Handle debug switches.
756 (print_help): Display target options directly.
757 * toplev.c (debug_hooks): Don't initialize.
758 (write_symbols, debug_info_level,
759 use_gnu_debug_info_extensions): Move to opts.c.
760 (debug_args, display_help, decode_g_option): Remove.
761 (process_options): Set no debug if level zero here,
762 and no-debug-hooks. Error here if impossible debug format selected.
763 * toplev.h (display_help, decode_g_option): Remove.
765 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
767 * tree.c (get_file_function_name_long): Fix size of alloca() area.
769 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
771 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
772 and gcc_cv_prog_cmp_skip.
773 * configure: Regenerate.
775 2003-08-08 Stan Cox <scox@redhat.com>
777 * config/iq2000: New port.
778 * config.gcc (iq2000-*-elf): Added.
779 * doc/install.texi (Specific): Add iq2000 description.
781 2003-08-08 Andreas Schwab <schwab@suse.de>
783 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
784 and insert missing empty argument.
785 * configure: Regenerate.
787 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
789 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
790 (attr_length_millicode_call): Likewise.
791 (attr_length_call): Likewise. Revise some maximum insn lengths.
792 (attr_length_indirect_call): Likewise.
793 (output_call): Fix thinko that added extra nop.
794 * pa.h (IN_NAMED_SECTION_P): Define.
797 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
798 __STDC_EXT__ when using C++ dialect.
800 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
802 * sh.c (calc_live_regs): If the return address pointer is live,
804 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
805 for saves / restores.
806 (sh_expand_epilogue): If sh_media_register_for_return returns a
807 register number, flag the instructions that restores PR_MEDIA_REG
809 Remove dead update of offset.
810 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
811 we can use the result of get_hard_reg_initial_val.
812 * sh.md (UNSPEC_RA): New constant.
813 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
814 (load_ra). Handle UNSPEC_RA.
815 (sibcall_media): Use PR_MEDIA_REG.
817 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
818 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
819 needs saving on SHmedia.
821 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
823 * config/s390/s390.md: Replace all occurrences of \\t with \t.
825 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
827 * local-alloc.c (combine_regs): Fix comment typo.
829 2003-08-06 Zack Weinberg <zack@codesourcery.com>
831 * c-decl.c (builtin_decls): Replace with first_builtin_decl
832 and last_builtin_decl.
833 (c_init_decl_processing): Initialize both.
834 (c_reset_state): Iterate from first_builtin_decl to
835 last_builtin_decl inclusive to reintroduce builtins.
837 2003-08-06 David Mosberger <davidm@hpl.hp.com>
839 * doc/extend.texi (Function Attributes): Document the IA-64 version
840 of the "model" attribute.
842 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
843 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
844 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
846 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
847 (ia64_encode_section_info): Likewise.
848 (ia64_attribute_table): Add "model" attribute.
849 (TARGET_ENCODE_SECTION_INFO): Define.
850 (small_addr_symbolic_operand): New function.
851 (got_symbolic_operand): Return 0 for a symbolref to an object
852 in the small address area.
853 (enum ia64_addr_area): New type.
854 (small_ident1): New variable.
855 (small_ident2): Likewise.
856 (init_idents): New function.
857 (ia64_get_addr_area): Likewise.
858 (ia64_encode_addr_area): Likewise.
859 (ia64_encode_section_info): Likewise.
860 (ia64_expand_load_address): For symbolic references to objects in
861 the small-address-area, load the address via gen_rtx_SET() (which,
862 eventually, will expand into "addl").
864 2003-08-06 Per Bothner <pbothner@apple.com>
866 * line-map.h (fileline): New typedef.
867 (struct line_map, linemap_add, linemap_lookup): Use it.
868 * input.h (struct location_s): Comment notes that long-term we want
869 to replace it by fileline.
871 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
873 Fix SHcompact exception handling:
874 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
875 by the prologue, return a MEM with return_address_pointer_rtx
877 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
878 (RETURN_ADDR_OFFSET): Don't define.
879 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
880 registers that are visible in compact mode. Show that SHmedia
881 registers still exist in compact mode, even if there are not
883 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
884 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
885 and DW_EH_PE_pcrel for pic data.
886 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
887 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
888 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
889 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
890 * sh.md (movsi_media-1): New splitter.
892 2003-08-06 Graeme Peterson <gp@qnx.com>
894 * config/i386/nto.h: New.
895 * config/i386/t-nto: New.
896 * config.gcc (i[34567]86-*-nto-qnx*): New.
898 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
900 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
902 2003-08-06 Alan Modra <amodra@bigpond.net.au>
904 * calls.c (load_register_parameters): Arrange for call_fusage to
905 report the whole register as used when shifting to the msb.
907 2003-08-05 Roger Sayle <roger@eyesopen.com>
909 * builtins.c (expand_builtin): When not optimizing, call the library
910 function for all builtins that have library functions (except alloca).
912 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
914 * c.opt: Introduce -fworking-directory.
915 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
916 * c-common.h (flag_working_directory): Declare.
917 * c-common.c (flag_working_directory): Define.
918 * c-opts.c (c_common_handle_options): Set it.
919 (sanitize_cpp_opts): Set...
920 * cpplib.h (struct cpp_options): ... working_directory option.
921 (struct cpp_callbacks): Add dir_change.
922 * cppinit.c (read_original_filename): Call...
923 (read_original_directory): New. Look for # 1 "directory//"
925 (cpp_read_main_file): Call dir_change callback if working_directory
927 * gcc.c (cpp_unique_options): Pass -g*.
928 * c-lex.c (cb_dir_change): New.
929 (init_c_lex): Set dir_change callback.
930 * toplev.c (src_pwd): New static variable.
931 (set_src_pwd, get_src_pwd): New functions.
932 * toplev.h (get_src_pwd, set_src_pwd): Declare.
933 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
934 * dwarf2out.c (gen_compile_unit_die): Likewise.
935 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
937 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
939 * pretty-print.h (pp_set_line_maximum_length): Make macro.
940 (pp_set_prefix): Likewise.
941 (pp_destroy_prefix): Likewise.
942 (pp_remaining_character_count_for_line): Likewise.
943 (pp_clear_output_area): Likewise.
944 (pp_formatted_text): Likewise.
945 (pp_last_position_in_text): Likewise.
946 (pp_emit_prefix): Likewise.
947 (pp_append_text): Likewise.
948 (pp_flush): Likewise.
949 (pp_format_text): Likewise.
950 (pp_format_verbatim): Likewise.
951 (pp_tree_identifier): Tidy.
952 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
953 (pp_base_format_verbatim): Rename from pp_format_verbatim.
954 (pp_base_flush): Rename from pp_flush.
955 (pp_base_set_line_maximum_length): Rename from
956 pp_set_line_maximum_length.
957 (pp_base_clear_output_area): Rename from pp_clear_output_area.
958 (pp_base_set_prefix): Rename from pp_set_prefix.
959 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
960 (pp_base_emit_prefix): Rename from pp_emit_prefix.
961 (pp_base_append_text): Rename from pp_append_text.
962 (pp_base_formatted_text): Rename from pp_formatted_text.
963 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
964 (pp_base_remaining_character_count_for_line): Rename from
965 pp_remaining_character_count_for_line.
966 * diagnostic.h (diagnostic_format_decoder): Tidy.
967 (diagnostic_flush_buffer): Likewise.
968 * c-pretty-print.h: (pp_c_string_literal): Declare.
969 (pp_c_real_literal): Likewise.
970 (pp_c_integer_literal): Likewise.
971 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
973 (pp_c_character_literal): Tidy.
974 (pp_c_string_literal): Make public.
975 (pp_c_bool_literal): Likewise.
976 (pp_c_integer_literal): Likewise.
977 (pp_c_real_literal): Likewise.
979 * Makefile.in (C_PRETTY_PRINT_H): New variable.
980 (c-pretty-print.o): Update dependence.
982 2003-08-05 Chris Demetriou <cgd@broadcom.com>
984 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
985 ".set nomacro" state.
986 (fix_truncsfsi2_macro): Likewise.
988 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
990 * tree.h (DID_INLINE_FUNC): Remove macro.
991 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
992 add tree check for FUNCTION_DECL.
993 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
994 (struct tree_decl): Rename inlined_function_flag to
995 declared_inline_flag.
996 * c-common.h (c_lang_decl): Remove.
997 (DECL_ESTIMATED_INSNS): Remove.
998 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
999 (DECL_DECLARED_INLINE_P): Remove.
1000 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
1001 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
1002 (finish_function): Make uninlinable a bool. Fixup call to
1003 tree_inlinable_function_p() and fix some code style issues.
1004 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
1005 * cgraph.c (dump_cgraph): Likewise.
1006 * cgraphunit.c (cgraph_decide_inlining): Likewise
1007 (cgraph_finalize_compilation_unit): Likewise.
1008 Also update call to tree_inlinable_function_p().
1009 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
1010 look at DECL_DECLARED_INLINE and reverse logic.
1011 * print-tree.c (print_node): Likewise.
1012 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
1013 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
1015 * tree-inline.c (inlinable_function_p): Split up in this function to
1016 check for basic inlining inhibiting conditions, and new
1017 limits_allow_inlining() function. Warn if inlining is impossible
1018 because the inline candidate calls alloca or uses sjlj exceptions.
1019 (limits_allow_inlining): this new function to check if the inlining
1020 limits are satisfied. Throttle from currfn_max_inline_insns, not from
1021 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
1022 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
1024 (tree_inlinable_function_p): Make a bool. Update call to
1025 inlinable_function_p
1026 (expand_call_inline): Use limits_allow_inlining() when not in
1027 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
1028 instead see if the function was declared `inline'.
1030 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
1032 * gcse.c (try_replace_reg): Fix updating of note.
1034 2003-08-04 Roger Sayle <roger@eyesopen.com>
1037 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
1038 logic in negate_expr, i.e. we don't invert (A-B) for floating
1039 point types unless flag_unsafe_math_optimizations.
1041 2003-08-04 Roger Sayle <roger@eyesopen.com>
1043 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
1044 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
1045 for floating point expressions with -ffast-math.
1046 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
1047 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
1049 2003-08-04 Roger Sayle <roger@eyesopen.com>
1051 * c-common.c (flag_noniso_default_format_attributes): Delete.
1052 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
1053 (c_attrs_initialized): Delete.
1054 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
1055 always call c_init_attributes.
1056 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
1057 set c_attrs_initialized when done.
1058 (c_common_insert_default_attributes): Delete.
1059 * c-common.h (flag_noniso_default_format_attributes): Delete.
1060 (c_coomon_insert_default_attributes): Delete prototype.
1061 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
1062 flag_noniso_default_format_attributes.
1064 * c-decl.c (c_insert_default_attributes): Delete.
1065 * c-tree.h (c_insert_default_attributes): Delete prototype.
1067 * attribs.c (decl_attributes): Don't call insert_default_attributes
1068 langhook. Update function description comment.
1069 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
1070 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
1071 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
1072 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
1074 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
1077 2003-08-04 Richard Sandiford <rsandif@redhat.com>
1079 * config/mips/mips.c (override_options): Disable -G on targets that
1080 have no .section support.
1081 (mips_select_section): Use default_select_section for such targets.
1083 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
1085 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
1086 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
1087 * fixinc/fixincl.x: Rebuild.
1088 * fixinc/tests/base/regexp.h: New test.
1090 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
1092 * c-ppoutput.c (cb_line_change): Don't skip line changing while
1093 parsing macro arguments in the top-level context.
1095 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
1097 * config.in: Remove HAVE_LSTAT.
1098 * configure, configure.in: Don't test for lstat.
1100 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1102 * opts.c (decode_options): Do language-specific initialization for
1103 the global diagnostic context.
1104 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
1105 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
1106 (LANG_HOOKS_INITIALIZER): Adjust.
1107 * langhooks.h (struct lang_hooks): Add new field
1108 initialize_diagnostics.
1109 * langhooks.c (lhd_initialize_diagnostics): Define.
1111 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1113 * pretty-print.h: Adjust macro definitions.
1114 * pretty-print.c (pp_newline): Rename to pp_base_newline.
1115 (pp_character): Rename to pp_base_character.
1116 (pp_string): Rename to pp_base_string.
1117 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
1118 (pp_newline): Likewise. Adjust.
1119 (pp_c_char): Adjust.
1121 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1123 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
1124 BUILT_IN_LLABS): Move to miscellaneous section.
1126 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1128 PR preprocessor/11534
1129 * cppexp.c (parse_defined): Warn only if -pedantic.
1131 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
1133 * cppfiles.c (stack_file): Use file path.
1135 2003-08-02 Roger Sayle <roger@eyesopen.com>
1137 * builtin-types.def (BT_SSIZE): New primitive type.
1138 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
1139 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
1140 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
1141 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
1142 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
1143 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
1144 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
1145 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
1146 few functions that define default attributes using it.
1147 * c-common.c (c_common_insert_default_attributes): Do nothing.
1149 * doc/extend.texi: Document these "new" builtins.
1151 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
1153 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
1154 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
1155 when -mieee-fp set and -shared not set.
1156 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
1158 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1160 * cppfiles.c (struct _cpp_file): Rename once_only_next to
1161 next_file. Remove import and pragma_once, add once_only.
1162 (find_file): Add new file structures to the all_files list.
1163 (should_stack_file): Mark #import-ed files once-only, and
1164 don't stack them if the file has already been stacked.
1165 (_cp_mark_file_once_only): Simplify.
1166 * cpphash.h (struct cpp_reader): Rename once_only_files
1167 to all_files. Rename saw_pragma_once to seen_once_only.
1168 (_cpp_mark_file_once_only): Update prototype.
1169 * cpplib.c (do_pragma_once): Update.
1171 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
1173 * cppfiles.c (ENOTDIR): Remove.
1174 (open_file_in_dir): Rename find_file_in_dir. Handle errors
1175 other than ENOENT here.
1176 (once_only_file_p): Rename should_stack_file.
1177 (find_file, open_file_failed, read_file_guts): Report errors
1178 with full path name.
1179 (read_file): Move pch handling to should_stack_file.
1180 (should_stack_file): Handle PCH and once-only issues, and
1182 (stack_file): Don't do file reads.
1184 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1186 * libgcov.c (gcov_exit): Cleanup and fix.
1187 * profile.c (compute_value_histograms): Don't try to read profiles
1188 that are not present.
1190 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1192 * builtins.def: Categorize.
1194 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
1196 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
1198 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
1200 * config.gcc: Enable posix threads by default on darwin.
1202 2003-08-01 Jakub Jelinek <jakub@redhat.com>
1204 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
1205 even if nehedges1 is 0.
1207 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
1209 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
1210 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
1211 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
1214 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
1215 * fixinc/fixincl.x: Regenerate.
1216 * fixinc/tests/base/math.h: Regenerate to match test_text change.
1218 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1220 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
1222 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1224 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
1225 for accesses to exc_ptr.
1227 2003-08-01 Geoffrey Keating <geoffk@apple.com>
1229 * doc/sourcebuild.texi (Front End Directory): Don't make references
1230 to libsubdir, it's not part of the interface to frontends.
1231 * doc/install.texi (Configuration): Help users read faster by saying
1232 that GCC's configure options are the standard autoconf ones.
1233 Mention --libdir. Update the default rules for finding the
1234 assembler. Don't use libsubdir since we haven't said what it means.
1235 (Specific): In the Solaris 7 notes, update the place to put the
1237 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
1238 * doc/cpp.texi (Search Path): Actually, the search path
1239 depends on libdir, which can relocate with cpp.
1240 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
1241 now a private interface between the Makefile and the driver.
1243 2003-08-01 Richard Henderson <rth@redhat.com>
1245 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
1247 * varasm.c (lookup_constant_def): New function.
1248 * rtl.h (lookup_constant_def): Declare it.
1249 * dwarf2out.c (loc_descriptor_from_tree): Use it.
1250 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
1252 2003-08-01 Zack Weinberg <zack@codesourcery.com>
1254 * c-decl.c (gettags, pushdecl_function_level): Delete.
1255 (last_function_parm_vars): Rename last_function_parm_others.
1256 (current_function_parm_vars): Rename current_function_parm_others.
1257 (struct c_scope): Rewrite comment explaining this data structure.
1258 Add names_last, blocks_last, parms_last fields. Rename
1259 incomplete_list to incomplete.
1260 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
1261 (poplevel): Ignore second argument. No need to nreverse
1262 anything. Restructure such that each list is processed
1263 exactly once. Use 'const location_t *locus' syntactic sugar
1264 variable where useful. Issue unused variable warnings
1265 ourselves, do not rely on function.c.
1266 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
1267 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
1268 (implicitly_declare): decl cannot be error_mark_node.
1269 (undeclared_variable): Manipulate scope structure directly.
1270 (c_make_fname_decl): Likewise.
1271 (getdecls, c_init_decl_processing): Fix comment.
1272 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
1273 for 'last' variable.
1274 (grokparms): No need to nreverse parms list.
1275 (store_parm_decls_newstyle): Set up the parms_last and
1276 names_last fields of the new scope too.
1277 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
1278 on parms to begin with; check this under ENABLE_CHECKING. Set
1280 (check_for_loop_decls): Refer directly to current_scope->tags.
1281 Use consistent quote style in diagnostics.
1282 (c_write_global_declarations): The names list is not backward.
1284 * c-common.h: Don't prototype gettags.
1285 * c-parse.in: Call poplevel with second argument 0 always.
1287 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1289 * builtins.def: Resort builtins.
1291 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1293 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
1294 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
1295 Prepend "__builtin_" onto NAME with string concatenation. Remove
1296 explicit "__builtin_" from each macro call.
1298 Reformat entire file.
1300 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1302 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1303 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
1305 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
1307 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
1308 CCL1, or CCL2 modes with floating point operations.
1310 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
1311 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
1312 "*subdf3_cconly"): New insns.
1313 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
1315 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
1317 * Makefile.in: Refine dependencies.
1318 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
1319 * c.opt: Update help for -Wimport.
1320 * cppfiles.c: Include hashtab.h. Update comments.
1321 (stack_file): Read the file before updating dependencies.
1322 (once_only_file_p): Be smarter about marking once-only files.
1323 (_cpp_mark_file_once_only): Correct the check for existence on
1325 (open_file_failed): Use name not path, which is NULL.
1326 * cpphash.h: Don't include hashtab.h.
1327 (struct _cpp_file): Remove.
1328 (struct cpp_reader): Update.
1329 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
1330 * cpplib.h (struct cpp_options): Remove warn_import.
1331 (cpp_simplify_path): Remove.
1333 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
1336 * doc/extend.texi (Statement Expressions): Document C++ semantics.
1338 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
1340 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
1342 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1344 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
1346 * builtins.def: Likewise.
1348 2003-07-31 Jason Merrill <jason@redhat.com>
1350 * Makefile.in (bubblestrap): Don't require a previous full
1353 * expr.c (mostly_zeros_p): No longer static.
1354 * tree.h: Declare it.
1355 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
1356 unless we need to do substitutions.
1358 2003-07-31 Roger Sayle <roger@eyesopen.com>
1360 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
1361 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
1362 as pow(x,2.0) when the latter will be expanded back into x*x.
1363 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
1364 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
1365 pow can never set errno when used with an integer exponent.
1366 Always use expand_powi when exponent is -1, 0, 1 or 2.
1367 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
1368 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
1369 the pow forms of these expressions.
1371 2003-07-31 Geoffrey Keating <geoffk@apple.com>
1373 * Makefile.in (libexecdir): New.
1374 (libsubdir): Use gcc instead of gcc-lib.
1375 (libexecsubdir): New.
1376 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
1377 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
1379 (installdirs): Make libexecsubdir.
1380 (install-common): Put executables in libexecsubdir.
1381 (itoolsdir): Use libexecsubdir.
1382 (itoolsdatadir): New.
1383 (install-mkheaders): Separate data files and executables.
1384 (install-collect2): Put executables in libexecsubdir.
1385 (uninstall): Remove libexecsubdir.
1386 * mkheaders.in: Update for new arrangement of files.
1388 (libexecsubdir): New.
1389 (itoolsdir): Use libexecsubdir.
1390 (itoolsdatadir): New.
1391 * gcc.c (gcc_libexec_prefix): New.
1392 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
1393 (standard_exec_prefix_1): Use libexec.
1394 (standard_exec_prefix_2): New.
1395 (standard_libexec_prefix): New.
1396 (process_command): Update for new arrangement of files. Compute
1397 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
1399 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
1401 * inclhack.def (stdio_va_list): Avoid bogus replacement which
1402 triggers on Interix.
1403 * fixincl.x: Regenerate.
1405 2003-07-31 Jakub Jelinek <jakub@redhat.com>
1407 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
1408 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
1410 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1412 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
1414 2003-07-31 Per Bothner <pbothner@apple.com>
1416 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
1417 (add_input_filename): New function.
1418 (handle_options): Call add_input_filename directly instead of
1420 * opts.h (in_fnames, num_in_fnames): Moved here.
1421 (add_input_filename): Declare.
1422 * c-decl.c: Need to #include opts.h.
1423 * Makefile.in (c-decl.o): Also depends on opts.h.
1424 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
1425 (c_common_handle_filename): Replaced by add_input_filename.
1426 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
1428 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
1429 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1430 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
1431 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
1433 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1435 * combine.c (try_combine): Set JUMP_LABEL for newly created
1438 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1440 * fold-const.c (fold): Fold some comparisons of bit operations.
1442 Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
1444 * cgraph.c (create_edge): Fix typo.
1445 * i386.c (pic_symbolic_operand): Reorder tests.
1447 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
1449 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
1451 (Gcov Data Files): Update.
1453 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1455 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
1458 * gthr-posix.c: New file.
1459 * gthr-posix.h: Define _REENTRANT if missing.
1460 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
1462 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
1464 * config/alpha/t-osf-pthread: New file.
1466 * fixinc/inclhack.def (alpha_pthread): New fix.
1467 * fixinc/fixincl.x: Regenerate.
1468 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
1470 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
1472 Fixes PR bootstrap/9330.
1474 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1476 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
1479 * configure: Regenerate.
1481 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
1483 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
1486 2003-07-30 Roger Sayle <roger@eyesopen.com>
1488 * builtins.def: Alphabetize.
1490 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1492 * doc/c-tree.texi: Normalize spellings of "lowercase" and
1494 * doc/cpp.texi: Likewise.
1495 * doc/md.texi: Likewise.
1496 * doc/rtl.texi: Likewise.
1497 * doc/tm.texi: Likewise.
1499 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
1501 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
1502 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
1505 2003-07-30 Chris Demetriou <cgd@broadcom.com>
1507 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
1508 macros before defining them.
1510 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
1512 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
1513 UNSPECV_BLOCKAGE): New constants.
1514 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
1515 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
1516 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
1517 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
1519 (all insns and expanders): Write output control string as brace block
1520 where appropriate. Remove \-escapes for doublequote characters.
1522 Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
1524 * gcse.c (insert_store): Fix typo in previous patch.
1526 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
1528 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
1530 2003-07-30 Andi Kleen <ak@muc.de>
1532 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
1534 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1536 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
1537 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
1538 GCOV_N_VALUE_COUNTERS): New.
1539 * profile.c (compute_value_histograms): New static function.
1540 (branch_prob): Read back the value histograms.
1541 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
1542 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
1543 * value-prof.c: Add comment on reading the profile.
1544 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
1545 * doc/invoke.texi (-fprofile-values): Document behavior with
1546 -fbranch-probabilities.
1548 2003-07-30 David Edelsohn <edelsohn@gnu.org>
1550 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
1552 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
1554 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
1557 Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
1559 * gcse.c (insert_store): Ignore fake edges.
1561 * c-common.c (flag_vtable_gc): Kill.
1562 * c-common.g (flag_vtable_gc): Kill.
1563 * c-opts (c_common_handle_option): Kill.
1564 * c.opt (fvtable-gc): Kill.
1565 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
1566 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1567 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
1569 * invoke.texi (-ftable-gc): Kill documentation.
1571 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
1572 just because function body is missing.
1574 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
1576 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
1578 * unwind-sjlj.c: Fix typo in file description.
1580 2003-07-30 Alan Modra <amodra@bigpond.net.au>
1582 * calls.c (load_register_parameters): When shifting reg sized values
1583 to the msb, move the value to a reg first.
1585 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1587 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
1588 * line-map.h (linemap_add): Update comments.
1589 * line-map.c (linemap_add): Update comments, interpret zero-length
1590 filename as "<stdin>".
1592 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
1594 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
1596 2003-07-29 Zack Weinberg <zack@codesourcery.com>
1598 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
1599 New static variables.
1600 (struct c_scope): Add parms and warned_forward_parm_decls
1601 fields; remove parm_order.
1602 (storedecls, storetags): Delete.
1603 (poplevel): Also clear bindings on the parms chain.
1604 (pushdecl): Handle forward declarations of parameters, and
1605 chain PARM_DECLs on the parms list, not the names list.
1606 (lookup_name_current_level): Check for PARM_DECLs on the parms
1608 (push_parm_decl): Don't update parm_order.
1609 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
1610 warning, only once per parameter list, and set TREE_ASM_WRITTEN
1611 on the decls here. Then move the forward decls to the names list.
1612 (grokparms): Set last_function_parm_vars.
1613 (get_parm_info): Don't use gettags or getdecls. No need to
1614 extract non-parms from the parms list, or reorganize the parms
1615 list. Feed nonparms back in the TREE_TYPE of the list node
1616 returned. Issue only one error per parameter list for "void"
1617 appearing more than once in said parameter list. Collapse
1618 parmlist_tags_warning into this function to avoid double scan
1620 (start_function): Set current_function_parm_vars.
1621 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
1622 directly. Get non-parms from current_function_parm_vars; no
1623 need to extract them from the parms chain. Properly bind tags
1625 (store_parm_decls_oldstyle): No need to extract non-parameters
1626 from the parms chain, nor to store them back afterward. Move
1627 declaration to top of function, restructure code reordering
1629 (store_parm_decls): No need to save and restore warn_shadow.
1630 * c-parse.in: Don't call parmlist_tags_warning nor
1631 clear_parm_order. Call mark_forward_parm_decls when forward
1632 parm decls are encountered.
1633 * c-tree.h: Prototype mark_forward_parm_decls; not
1634 clear_parm_order or parmlist_tags_warning.
1636 2003-07-29 Geoffrey Keating <geoffk@apple.com>
1638 * c-common.c (allow_pch): Remove.
1639 * c-common.h (allow_pch): Remove.
1640 (c_common_no_more_pch): Declare.
1641 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
1642 * c-pch.c: Include hosthooks.h.
1643 (c_common_valid_pch): Don't check allow_pch.
1644 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
1645 (c_common_no_more_pch): New.
1646 * ggc-common.c: Include hosthooks.h.
1647 (gt_pch_save): Call gt_pch_get_address.
1648 (gt_pch_restore): Call gt_pch_use_address.
1649 * hooks.c (hook_voidp_size_t_null): New.
1650 (hook_bool_voidp_size_t_false): New.
1651 * hooks.h (hook_voidp_size_t_null): New.
1652 (hook_bool_voidp_size_t_false): New.
1653 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
1654 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
1655 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
1656 HOST_HOOKS_GT_PCH_USE_ADDRESS.
1657 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
1659 * doc/hostconfig.texi (Host Common): Document
1660 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
1661 * Makefile.in (c-pch.o): Depend on hosthooks.h.
1662 (ggc-common.o): Likewise.
1664 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
1665 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
1666 (pch_address_space): New.
1667 (darwin_rs6000_gt_pch_get_address): New.
1668 (darwin_rs6000_gt_pch_use_address): New.
1670 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
1672 PR preprocessor/11569
1673 PR preprocessor/11649
1674 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
1675 * cppfiles.c: Completely rewritten.
1676 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
1677 struct cpp_path is now struct cpp_dir.
1678 (remove_duplicates): Don't simplify path names.
1679 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
1681 * cpphash.h: Include hashtab.h.
1682 (_cpp_file): Declare.
1683 (struct cpp_buffer): struct include_file is now struct _cpp_file,
1684 and struct cpp_path is now struct cpp_dir. Rename members.
1685 (struct cpp_reader): Similarly. New members once_only_files,
1686 file_hash, file_hash_entries, quote_ignores_source_dir,
1687 no_search_path, saw_pragma_once. Remove all_include_files and
1688 max_include_len. Make some members bool.
1689 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
1690 (_cpp_stack_file): Renamed from _cpp_read_file.
1691 (_cpp_stack_include): Renamed from _cpp_execute_include.
1692 (_cpp_init_files): Renamed from _cpp_init_includes.
1693 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
1694 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
1695 (cpp_read_next_file): Rename and move to cppfiles.c.
1696 (cpp_read_main_file): Update.
1697 * cpplib.c (run_directive): Update for renamed members.
1698 (do_include_common, _cpp_pop_buffer): Update.
1699 (do_import): Undeprecate #import.
1700 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
1701 * cpplib.h: Remove file_name_map_list.
1702 (cpp_options): Remove map_list.
1703 (cpp_dir): Rename from cpp_path. New datatype for name_map.
1704 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
1706 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
1708 * Makefile.in: Make stamp-objdir safe for parallel builds.
1710 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
1712 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
1713 (info): Depend on stmp-docobjdir.
1715 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1717 * configure: Regenerate.
1719 Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
1722 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
1723 in !unit-at-a-time mode.
1725 2003-07-28 Geoffrey Keating <geoffk@apple.com>
1727 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
1730 2003-07-28 Mark Mitchell <mark@codesourcery.com>
1733 * c-common.c (shorten_compare): Take into account differences
1734 between C and C++ representation for enumeration types.
1735 * tree.h (set_min_and_max_values_for_integral_type): Declare.
1736 * stor-layout.c (set_min_and_max_values_for_integral_type): New
1737 function, broken out from ...
1738 (fixup_signed_type): ... here and ...
1739 (fixup_unsigned_type): ... here.
1741 2003-07-28 Zack Weinberg <zack@codesourcery.com>
1743 * c-decl.c: Update commentary, adjust blank lines throughout.
1744 (struct c_scope): Fix indentation. Reorder members so
1745 outer-context pointers come first, booleans last.
1746 (duplicate_decls, define_label): Use a 'locus' variable for
1747 diagnostic locations in a few more places.
1748 (warn_if_shadowing): Un-split a conditional that fits on one line.
1749 (c_init_decl_processing): No need to clear current_scope and
1750 current_function_scope.
1751 (start_decl): Merge if/else if statements with same action.
1752 (push_parm_decl): Rename old_immediate_size_expand to use
1753 save_foo convention; save/restore around entire function.
1754 (grokdeclarator): Remove unnecessary braces.
1756 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
1757 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
1759 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
1760 when warn_declaration_after_statement. Call pedwarn_c90, not
1761 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
1762 * c-common.c (warn_declaration_after_statement): Define.
1763 * c-common.h (warn_declaration_after_statement): Declare.
1764 * c.opt (Wdeclaration-after-statement): New.
1765 * c-errors.c (pedwarn_c90): New function.
1766 * c-opts.c (c_common_handle_option) <case
1767 OPT_Wdeclaration_after_statement>: New.
1768 * c-tree.h (pedwarn_c90): Declare.
1769 * doc/invoke.texi (Option Summary): Document
1770 -Wdeclaration-after-statement.
1771 (Warning Options): Ditto.
1773 Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
1775 * i386.md (memory attribute) Avoid accessing uninitialized memory
1776 for ishift1 type instructions.
1778 2003-07-28 Jakub Jelinek <jakub@redhat.com>
1780 * configure.in (--enable-checking): Add fold category.
1781 (ENABLE_FOLD_CHECKING): Define if requested.
1782 * configure: Rebuilt.
1783 * config.in: Rebuilt.
1784 * doc/install.texi: Document it.
1785 * fold-const.c: Include md5.h.
1786 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
1787 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
1788 print_fold_checksum): New functions.
1790 * fold-const.c (fold): Never modify argument passed to fold, instead
1791 change a copy and return it.
1792 * convert.c (convert_to_integer): Likewise.
1794 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
1796 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
1797 cleanup of junk after #else and #endif directives. Collapse repeated
1798 clauses into for statment.
1800 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
1802 2003-07-27 Zack Weinberg <zack@codesourcery.com>
1804 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
1805 (keep_next_if_subblocks): Rename next_is_function_body.
1806 (pushlevel): Adjust commentary. Always set ->keep on the
1807 outermost level of a function. Don't set ->keep_if_subblocks.
1808 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
1809 (store_parm_decls): Adjust to match.
1810 (finish_function): Adjust to match.
1811 Call poplevel with all three arguments zero.
1813 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
1814 New functions split out of store_parm_decls.
1815 Avoid unnecessary work. Use local variables consistently.
1816 (store_parm_decls): Likewise.
1818 (finish_function): No need to set functionbody flag on call to
1820 (struct language_function): Remove scope field.
1821 (c_push_function_context, c_pop_function_context): No need to
1822 save and restore current_scope.
1824 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
1826 * doc/extend.texi (Deprecated Features): Implicit typename is
1827 gone. Default args on types is going.
1829 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
1831 * Makefile.in (ifcvt.o): Depend on target.h
1832 * ifcvt.c (target.h): Include.
1833 (if_convert): Don't call mark_loop_exit_edges if we can't
1836 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1838 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
1840 2003-07-26 Richard Henderson <rth@redhat.com>
1843 * cse.c (count_reg_usage): Handle asm_operands properly.
1845 2003-07-26 Roger Sayle <roger@eyesopen.com>
1847 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
1848 (DEF_EXT_FALLBACK_BUILTIN): Delete.
1849 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
1850 the regular DEF_EXT_LIB_BUILTIN macro.
1851 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
1852 the regular DEF_LIB_BUILTIN macro.
1853 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
1854 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
1855 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
1856 DEF_EXT_LIB_BUILTIN macro.
1858 * c-decl.c (duplicate_decls): Remove code to handle builtin
1859 functions prototyped without an argument list.
1861 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
1863 * config/i386/winnt.c: Revert 2003-07-08 change.
1864 (i386_pe_section_type_flags): Remove error_with_decl here too.
1866 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
1868 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
1869 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
1870 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
1871 (v850_handle_data_area_attribute): Likewise.
1873 2003-07-26 Geoffrey Keating <geoffk@apple.com>
1875 * varasm.c (output_constant_def_contents): Use
1876 ASM_DECLARE_CONSTANT_NAME if defined.
1877 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
1878 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
1879 objects get at least one byte to prevent assembler problems.
1880 (ASM_DECLARE_CONSTANT_NAME): New.
1882 * Makefile.in (libbackend.o): Remove options_.h.
1883 (mostlyclean): Likewise.
1885 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
1886 insert a label at the end of an function under Mach-O.
1888 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
1890 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
1892 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
1894 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
1896 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
1898 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1900 * doc/passes.texi (Passes): Mention pretty-printing and
1903 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
1905 * doc/extend.texi (Function Attributes): GNU C++ does now allow
1906 unused parameter decls.
1907 (Attribute Syntax): GNU C++ does not allow label attributes to be
1910 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1912 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
1913 (objc_declare_class): Likewise.
1914 (error_with_ivar): Likewise.
1915 (start_class): Likewise.
1916 (warn_with_method): Likewise.
1918 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1920 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
1922 * calls.c (try_to_integrate): Don't use xxx_with_decl.
1923 (expand_call): Likewise.
1924 * dwarfout.c (output_reg_number): Likewise.
1925 * expr.c (expand_expr): Likewise.
1926 * function.c (assign_temp): Likewise.
1927 (uninitialized_vars_warning): Likewise.
1928 (setjmp_args_warning): Likewise.
1929 (expand_function_end): Likewise.
1930 * stmt.c (fixup_gotos): Likewise.
1931 (warn_about_unused_variables): Likewise.
1932 (expand_end_bindings): Likewise.
1933 * stor-layout.c (layout_decl): Likewise.
1934 (place_field): Likewise.
1935 * toplev.c (check_global_declarations): Likewise.
1936 (rest_of_handle_inlining): Likewise.
1937 (default_tree_printer): New function.
1938 (general_init): Initialize diagnostic machinery before routing
1939 signals to the ICE machinery. Set default tree printer.
1940 * toplev.h (pedwarn_with_decl): Remove declaration.
1941 (warning_with_decl): Likewise.
1942 (error_with_decl): Likewise.
1943 (pedwarn): Remove attribute for the time being.
1944 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
1945 * varasm.c (named_section): Likewise.
1946 (make_decl_rtl): Likewise.
1947 (assemble_variable): Likewise.
1948 (merge_weak): Likewise.
1949 (declare_weak): Likewise.
1951 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
1952 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
1953 (format_with_decl): Remove.
1954 (diagnostic_for_decl): Likewise.
1955 (pedwarn_with_decl): Likewise.
1956 (warning_with_decl): Likewise.
1957 (error_with_decl): Likewise.
1958 (diagnostic_initialize): Adjust.
1959 (diagnostic_count_diagnostic): Likewise.
1960 (announce_function): Likewise.
1961 (lhd_print_error_function): Likewise.
1962 (diagnostic_report_current_module): Likewise.
1963 (default_diagnostic_starter): Likewise.
1964 (diagnostic_report_diagnostic): Likewise.
1965 (default_diagnostic_finalizer): Likewise.
1966 (verbatim): Likewise.
1968 (warning): Likewise.
1969 * opts.c (common_handle_option): Likewise.
1970 * pretty-print.c: New file.
1971 * c-pretty-print.h (pp_base): Override.
1972 * c-pretty-print.c: Adjust use of macros throughout.
1973 (pp_buffer): New macro.
1974 (pp_newline): Likewise.
1975 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
1976 * Makefile.in (DIAGNOSTIC_H): New variable.
1977 (c-errors.o): Use it.
1978 (c-objc-common.o): Likewise.
1979 (c-common.o): Likewise.
1980 (c-opts.o): Likewise.
1981 (c-format.o): Likewise.
1982 (diagnostic.o): Likewise.
1984 (toplev.o): Likewise.
1985 (rtl-error.o): Likewise.
1986 (dwarf2out.o): Likewise.
1988 (pretty-print.o): New rule.
1990 2003-07-24 Roger Sayle <roger@eyesopen.com>
1992 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
1993 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
1994 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
1995 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
1996 (DEF_FRONT_END_LIB_BUILTIN): Delete.
1997 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
1998 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
2000 * builtins.c (build_string_literal): New function to construct
2001 a char* pointer to a string literal.
2002 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
2003 "rtx target" to be consistent with other expand_builtin_* functions.
2004 Change 3rd argument from "int unlocked" to "bool unlocked".
2005 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
2006 c-common.c to avoid front-end dependencies. Optimize printf("")
2007 as a no-op when the result isn't required. Handle embedded NULs
2009 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
2010 from c-common.c to avoid front-end dependencies. Likewise, optimize
2011 fprintf(fp,"") as a no-op when the result isn't required, evaluating
2012 fp for side-effects. Handle embedded NULs in format string.
2013 (expand_builtin_sprintf): Fix typo.
2014 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
2015 optimizing. Adjust calls of expand_builtin_fputs to match the API
2016 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
2017 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
2018 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
2020 * c-common.c (is_valid_printf_arglist): Delete.
2021 (c_expand_builtin): Delete.
2022 (c_expand_builtin_printf): Moved to builtins.c. Delete.
2023 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
2024 (c_expand_expr): No longer treat CALL_EXPRs specially.
2025 (CALLED_AS_BUILT_IN): Delete.
2027 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2029 PR optimization/11631
2030 * gcse.c (store_motion): Connect infinite loops to exit.
2032 2003-07-24 Jason Merrill <jason@redhat.com>
2034 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
2035 (boolean_true_node, boolean_false_node): Likewise.
2036 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
2037 * tree.c (build_common_tree_nodes): Init boolean_type_node.
2038 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
2039 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
2040 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
2041 (truthvalue_true_node): Renamed from boolean_true_node.
2042 (truthvalue_false_node): Renamed from boolean_false_node.
2043 * c-decl.c: Just set truthvalue_* to integer_*.
2044 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
2046 2003-07-24 Roger Sayle <roger@eyesopen.com>
2048 * c-decl.c (match_builtin_function_types): New subroutine of
2049 duplicate_decls to test whether a redeclaration of a builtin
2050 function is suitably close, i.e. the return type and all of
2051 the argument types have the same modes as the builtin expects.
2052 (duplicate_decls): Fuzzy type matching for builtin functions
2053 moved to match_builtin_function_types.
2055 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2057 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
2060 2003-07-24 Zack Weinberg <zack@codesourcery.com>
2062 * c-decl.c: Search-and-replace change 'binding level' to
2063 'scope' in commentary.
2064 (struct binding_level): Now struct c_scope.
2065 (current_binding_level): Now current_scope.
2066 (free_binding_level): Now scope_freelist.
2067 (current_function_level): Now current_function_scope.
2068 (global_binding_level): Now global_scope.
2069 (make_binding_level): Now make_scope.
2070 (pop_binding_level): Now pop_scope.
2072 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2074 * configure.in (libgcc_visibility): Add missing whitespace.
2076 2003-07-24 Richard Henderson <rth@redhat.com>
2078 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
2079 __gcc_personality_v0.
2081 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2083 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
2085 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
2087 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
2088 documentation missed from my 2003-07-09 patch.
2090 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
2092 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
2094 * configure: Rebuild.
2096 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
2099 * c-typeck.c (type_lists_compatible_p): Do not compare
2100 arguments if one of them is an error_mark_node
2102 2003-07-24 Alan Modra <amodra@bigpond.net.au>
2104 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
2105 if current_function_calls_eh_return.
2107 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2109 * doc/c-tree.texi (OFFSET_TYPE): Update description.
2111 2003-07-23 Bob Wilson <bob.wilson@acm.org>
2113 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
2114 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
2115 __umodsi3, __modsi3): Increase frame size to 32.
2117 2003-07-23 Geoffrey Keating <geoffk@apple.com>
2119 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
2122 2003-07-23 Mark Mitchell <mark@codesourcery.com>
2124 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
2126 PR optimization/10679
2127 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
2129 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2131 PR target/11607 and PR target/11516
2132 * pa.md (extzv, extv, insv): Revert latter half of last patch.
2134 2003-07-22 Mark Mitchell <mark@codesourcery.com>
2136 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
2137 * varasam.c (output_constant): Likewise.
2139 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2141 * alias.c: Fix comment formatting.
2142 * c-common.c: Likewise.
2143 * c-decl.c: Likewise.
2144 * c-opts.c: Likewise.
2145 * combine.c: Likewise.
2146 * cpplib.c: Likewise.
2147 * diagnostic.c: Likewise.
2148 * dojump.c: Likewise.
2149 * final.c: Likewise.
2150 * fold-const.c: Likewise.
2153 * ggc-page.c: Likewise.
2156 * mips-tfile.c: Likewise.
2157 * recog.c: Likewise.
2158 * regclass.c: Likewise.
2159 * regmove.c: Likewise.
2163 2003-07-22 Per Bothner <pbothner@apple.com>
2165 * line-map.c (add_line_map): Handle invalid LEAVE request.
2166 Fixes PR preprocessor/11361.
2168 2003-07-22 Per Bothner <pbothner@apple.com>
2170 * diagnostic.c.(diagnostic_report_current_module): Update to match
2171 2003-06-05 changes to push_srcloc and pop_srcloc.
2173 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
2175 * doc/trouble.texi: Better document two-stage name lookup.
2177 2003-07-22 Eric Christopher <echristo@redhat.com>
2179 * config/s390.c (s390_valid_pointer_mode): New.
2180 (TARGET_VALID_POINTER_MODE): Use.
2181 (s390_emit_prologue): Add tpf profiling hooks.
2182 (s390_emit_epilogue): Ditto.
2183 * config/s390.h (MASK_TPF): New.
2185 (POINTERS_EXTEND_UNSIGNED): Define.
2186 * config/s390.md (ptr_extend): New pattern.
2188 2003-07-22 Zack Weinberg <zack@codesourcery.com>
2190 * hashtable.c (approx_sqrt): Make static.
2191 * hashtable.h: Don't prototype approx_sqrt.
2192 * line-map.c (init_line_maps): Rename linemap_init.
2193 (free_line_maps): Rename linemap_free.
2194 (add_line_map): Rename linemap_add.
2195 (lookup_line): Rename linemap_lookup.
2196 (print_containing_files): Rename linemap_print_containing_files.
2197 * linemap.h: Update to match.
2199 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
2200 linemap routines to use new names.
2202 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
2204 * c-common.c (handle_packed_attribute): Don't pack a struct via a
2205 typedef. Propagate packedness from a main variant.
2207 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
2209 * Makefile.in (install-common): Add dependency on installdirs.
2211 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
2213 * c-common.c (c_common_type_for_mode): Return integer types for
2216 2003-07-22 Geoffrey Keating <geoffk@apple.com>
2218 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
2219 (finish_decl): Call maybe_apply_pragma_weak here.
2220 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
2221 TREE_PUBLIC and TREE_STATIC are decided.
2222 (start_function): Move call to maybe_apply_pragma_weak. Check that
2223 DECL_ASSEMBLER_NAME isn't set too early.
2225 * cpplex.c (_cpp_process_line_notes): Mention option name in
2228 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
2230 * combine.c (if_then_else_cond): Simplify the comparison of
2231 rtx against -1, 0, and 1.
2232 * loop.c (check_dbra_loop): Likewise.
2233 * optabs.c (emit_conditional_move): Likewise.
2234 (emit_conditional_add): Likewise.
2235 * config/i386/i386.md (*movsi_or): Likewise.
2236 (*movdi_or_rex6): Likewise.
2238 Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
2240 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
2242 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
2244 * cppfiles.c (open_file_pch): Don't put unused entries in the
2245 splay tree. Remove dead code.
2247 2003-07-21 Geoffrey Keating <geoffk@apple.com>
2249 * c-common.h (num_in_fnames): Declare.
2250 (c_static_assembler_name): Move from here...
2251 * c-tree.h (c_static_assembler_name): ... to here.
2252 * c-opts.c: Don't include langhooks-def.h.
2253 (c_static_assembler_name): Move to c-decl.c.
2254 (num_in_fnames): Make externally visible.
2255 * c-decl.c: Include langhooks-def.h.
2256 (c_static_assembler_name): Move from c-opts.c.
2257 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
2258 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
2260 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
2261 when it's not needed.
2263 2003-07-21 Jakub Jelinek <jakub@redhat.com>
2265 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
2266 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
2267 (rs6000_emit_prologue): Save FPRs inline if set.
2269 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
2271 * config/ia64/ia64.md (prefetch): Support predicate.
2273 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
2275 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
2276 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
2279 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2281 PR optimization/11536
2282 * unroll.c (loop_iterations): Do not replace a register holding
2283 the final value by its equivalent before the loop if it is not
2286 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
2288 * doc/extend.texi: Fixes to spelling, grammar, and diction.
2290 2003-07-21 Ben Elliston <bje@wasabisystems.com>
2292 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
2293 (V850 Options): Spelling fixes.
2295 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
2297 * doc/invoke.texi: Fixes to style, grammar and diction.
2299 2003-07-20 Roger Sayle <roger@eyesopen.com>
2301 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
2302 * system.h (SMALL_STACK): Poison obsolete target macro.
2303 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
2305 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
2307 * configure.in: Cache the results of testing for cmp's capabilities.
2308 * configure: Regenerate.
2310 2003-07-20 Mark Mitchell <mark@codesourcery.com>
2313 * dwarf2out.c (gen_enumeration_type_die): Remember that
2314 enumerators can be unsigned.
2316 2003-07-19 Zack Weinberg <zack@codesourcery.com>
2318 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
2319 (push_label_level, pop_label_level): Kill.
2320 (struct binding_level): Rename level_chain to outer.
2321 Add outer_function field. Change parm_flag, function_body,
2322 keep, keep_if_subblocks to 1-bit bitfields of type bool.
2323 (current_function_level): New variable.
2324 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
2325 (keep_next_level, declare_parm_level, warn_if_shadowing):
2327 (struct language_function): Kill named_labels, shadowed_labels fields.
2328 (c_init_decl_processing, start_function, c_push__function_context)
2329 (c_pop_function_context): No need to muck with named_labels nor
2332 (make_binding_level): No need to clear the structure here.
2333 (pop_binding_level): Always operate on current_binding_level.
2334 Update current_function_level if necessary.
2335 (pushlevel): Don't clear named_labels. Update current_function_level
2336 if necessary. Use "true" and "false" where appropriate.
2337 (poplevel): Diagnose labels defined but not used, or vice
2338 versa, and clear out label-meanings leaving scope, while
2339 walking down the decls list, for all binding levels.
2340 Handle LABEL_DECLs appearing in the shadowed list.
2341 pop_binding_level takes no arguments.
2342 (pushdecl_function_level): Use current_function_level.
2344 (make_label, bind_label): New static functions.
2345 (declare_label): New exported function.
2346 (lookup_label, define_label): Rewritten for new data structure.
2347 (shadow_label): Kill.
2349 * c-tree.h: Prototype declare_label; don't prototype
2350 push_label_level, pop_label_level, nor shadow_label.
2351 * c-parse.in: Remove all calls to push_label_level and
2352 pop_label_level. Use declare_label for __label__ decls.
2354 * doc/extend.texi: Clarify that __label__ can be used to
2355 declare labels with local scope in any nested block, not
2356 just statement expressions. Cross-reference nested functions
2357 section from local labels section.
2359 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2361 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
2363 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
2365 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
2367 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2369 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
2370 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
2372 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
2374 * config/s390/s390.c (legitimize_pic_address): Access local symbols
2375 relative to the GOT instead of relative to the literal pool base.
2376 (s390_output_symbolic_const): Handle new GOT-relative accesses.
2377 * config/s390/s390.md ("call"): Access local functions and PLT stubs
2378 relative to the GOT instead of relative to the literal pool base.
2379 ("call_value"): Likewise.
2380 ("call_value_tls"): Likewise.
2382 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
2383 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
2384 (s390_chunkify_finish): Likewise.
2385 (s390_chunkify_cancel): Likewise.
2386 (s390_reorg): Adapt caller.
2387 (find_base_register_in_addr,
2388 find_base_register_ref, replace_base_register_ref): Delete.
2389 (find_ltrel_base, replace_ltrel_base): New functions.
2390 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
2391 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
2392 base vs. index register usage.
2393 (struct constant_pool): Remove 'anchor'.
2394 (s390_add_anchor): Delete.
2395 (s390_dump_pool): Remove anchor handling.
2396 * config/s390/s390.md ("reload_anchor"): Remove.
2398 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
2399 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
2400 (s390_emit_prologue): Use it.
2401 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
2402 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
2403 hard-code register 14.
2404 * config/s390/s390-protos.h (s390_load_got): Declare.
2406 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
2407 Support TImode constants.
2408 * config/s390/s390.md ("consttable_ti"): New.
2409 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
2411 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
2412 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
2413 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
2414 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
2415 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
2416 New symbolic constants.
2417 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
2418 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
2419 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
2420 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
2421 symbolic UNSPEC values.
2422 * config/s390/s390.c (larl_operand, s390_short_displacement,
2423 bras_sym_operand, s390_cannot_force_const_mem,
2424 s390_delegitimize_address, s390_decompose_address,
2425 legitimize_pic_address, s390_output_symbolic_const,
2426 s390_function_profiler): Use symbolic UNSPEC values.
2428 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2430 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
2431 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
2432 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
2433 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
2434 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
2435 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
2436 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
2437 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
2438 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
2439 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
2440 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
2441 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
2442 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
2443 postreload.c prefix.c print-tree.c protoize.c ra-build.c
2444 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
2445 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
2446 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
2447 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
2448 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
2449 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
2452 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2454 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
2455 * toplev.h (warning): Remove attribute.
2457 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2459 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
2460 (pop_label_level): Likewise.
2461 (duplicate_decls): Likewise.
2462 (implicitly_declare): Likewise.
2463 (shadow_label): Likewise.
2464 (start_decl): Likewise.
2465 (finish_decl): Likewise.
2466 (grokdeclarator): Likewise.
2467 (get_parm_info): Likewise.
2468 (detect_field_duplicates): Likewise.
2469 (finish_struct): Likewise.
2470 (start_function): Likewise.
2471 (store_parm_decls): Likewise.
2472 (finish_function): Likewise.
2473 (c_expand_body_1): Likewise.
2474 (check_for_loop_decls): Likewise.
2475 (merge_translation_unit_decls): Likewise.
2477 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
2479 * common.opt: Document --param.
2480 * opts.c (columns, undocumented_msg): New.
2481 (print_help): Get number of columns from environment. Print
2482 --param help. Tweak newline handling.
2483 (print_param_help): New.
2484 (print_filtered_help): Better handling of duplicates. Complain
2485 about undocumented switches.
2486 (print_switch): New.
2487 (wrap_help): Improve wrapping, use COLUMNS.
2488 * opts.sh: Ignore comments in records.
2489 * params.def: Fix typos and remove trailing periods.
2490 * toplev.c (display_help): Don't dump --param help.
2491 * doc/sourcebuild.texi: Update.
2493 2003-07-18 Richard Henderson <rth@redhat.com>
2496 * optabs.c (prepare_operand): Fail gracefully instead of abort
2497 if the predicate doesn't satisfy.
2498 (gen_cond_trap): Allow prepare_operand to fail.
2500 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2502 * c-common.c: Don't undefine GCC_DIAG_STYLE.
2503 (fname_decl): Don't use xxx_with_decl.
2504 (c_add_case_label): Likewise.
2505 (handle_section_attribute): Likewise.
2506 (handle_alias_attribute): Likewise.
2507 (handle_no_instrument_function_attribute): Likewise.
2508 (handle_no_limit_stack_attribute): Likewise.
2509 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
2510 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
2512 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2514 * Makefile.in (ifcvt.o): Add cfgloop.h.
2515 * basic-block.h (EDGE_LOOP_EXIT): New flag.
2516 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
2517 * ifcvt.c: Include cfgloop.h.
2518 (mark_loop_exit_edges): New static function.
2519 (if_convert): Call it.
2520 (find_if_header): Ignore branches out of loops.
2522 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
2524 * combine.c (simplify_comparison): Don't share rtx when converting
2525 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
2527 2003-07-18 David Edelsohn <edelsohn@gnu.org>
2529 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
2530 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2531 (MUST_PASS_IN_STACK): Define.
2532 (BLOCK_REG_PADDING): Define.
2534 2003-07-18 Richard Henderson <rth@redhat.com>
2536 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
2537 to skip the addr_vec.
2539 Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
2541 * combine.c (combinable_i3pat): Don't forbid occurrences of
2542 i2dest or i1dest in inner_dest if inner_dest is a mem.
2544 Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
2546 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
2548 2003-07-17 Jakub Jelinek <jakub@redhat.com>
2551 * loop.c (basic_induction_var): Check if convert_modes emitted any
2552 instructions. Remove them and return 0 if so.
2554 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
2556 PR optimization/11083
2557 * toplev.c (rest_of_handle_addresof): Rename into
2558 rest_of_handle_addressof. Delete unreachable blocks
2559 if dead edges were purged after the addressof pass.
2561 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
2563 * Makefile.in, configure, configure.in: Remove handling of
2564 lang-options.h and options_.h.
2565 * toplev.c (struct lang_opt, documented_lang_options): Remove.
2566 (display_help): Don't use documented_lang_options.
2568 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2570 * c-decl.c (pushdecl_function_level): Make static, return nothing.
2571 (kept_level_p): Fold into poplevel.
2572 (undeclared_variable): Moved here from c-typeck.c. Export.
2573 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
2574 (undeclared_variable): Prototype here. Don't prototype
2575 kept_level_p nor pushdecl_function_level.
2576 * c-parse.in: Change first argument to poplevel from
2577 "kept_level_p()" to "KEEP_MAYBE".
2578 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
2580 2003-07-17 Roger Sayle <roger@eyesopen.com>
2582 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
2583 commutative operands instead of modifying the RTL in-place.
2585 2003-07-17 Mark Mitchell <mark@codesourcery.com>
2587 PR optimization/11557
2588 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
2589 unless we know which function is being called.
2591 2003-07-17 Roger Sayle <roger@eyesopen.com>
2593 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
2594 whether to reorder the operands of a commutative binary operator.
2596 2003-07-17 Roger Sayle <roger@eyesopen.com>
2598 * fold-const.c (const_binop): Avoid performing the FP operation at
2599 compile-time, if either operand is NaN and we honor signaling NaNs,
2600 or if we're dividing by zero and either flag_trapping_math is set
2601 or the desired mode doesn't support infinities.
2602 (fold_initializer): New function to fold an expression ignoring any
2603 potential run-time exceptions or traps.
2604 * tree.h (fold_initializer): Prototype here.
2605 * c-typeck.c (build_binary_op): Move to the end of the file so
2606 that intializer_stack is in scope. If constructing an initializer,
2607 i.e. when initializer_stack is not NULL, use fold_initializer to
2609 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
2610 performing FP operations at compile-time, if they would raise an
2611 exception at run-time.
2613 2003-07-17 Geoffrey Keating <geoffk@apple.com>
2616 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
2617 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
2618 (GTFILES): Add langhooks.c.
2619 (gt-langhooks.h): New.
2620 * c-common.h (c_static_assembler_name): Prototype.
2621 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2622 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
2623 * c-opts.c: Include langhooks-def.h.
2624 (c_static_assembler_name): New.
2625 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
2627 (lhd_set_decl_assembler_name): Give static objects with context
2629 * varasm.c (var_labelno): Delete.
2630 (make_decl_rtl): Don't change the assembler name once it's set.
2632 * c-opts.c (this_input_filename): New.
2633 (finish_options): Take new parameter, name of file being compiled.
2634 Update callers. Set this_input_filename.
2635 (push_command_line_include): Use this_input_filename not
2636 main_input_filename.
2638 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2640 * Makefile.in: Depend .pot generation on options.c.
2641 * po/exgettext: Add an extra_files variable containing additional
2644 2003-07-17 Zack Weinberg <zack@codesourcery.com>
2646 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
2647 c_write_global_declarations.
2649 * c-decl.c: Fix typos in several comments. Remove all
2650 #if 0 blocks; reindent as needed. Remove unused argument
2651 to declare_parm_level; all callers changed.
2652 * c-parse.in: Update calls to declare_parm_level. Avoid
2653 issuing a double warning in some circumstances.
2654 * c-typeck.c: Update calls to declare_parm_level.
2655 * c-tree.h: Update prototype of declare_parm_level.
2657 * c-pragma.c (apply_pragma_weak): Don't complain about a
2658 redundant #pragma weak.
2660 * objc/objc-act.c (forward_declare_categories,
2661 build_selector_reference_decl, build_class_reference_decl,
2662 build_objc_string_decl, synth_forward_declarations,
2663 build_protocol_reference): Set TREE_PUBLIC on synthetic
2664 forward decl to 0, consistent with eventual definition.
2665 Correct comments to match.
2667 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
2668 in regexp that don't form a range expression.
2669 * fixinc/fixincl.def: Regenerate.
2671 2003-07-17 Richard Henderson <rth@redhat.com>
2674 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
2675 even with !TARGET_CONST_GP.
2676 (ia64_function_ok_for_sibcall): Reject non-local functions.
2678 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
2680 * c-common.c (c_estimate_num_insns_1): Don't handle
2682 * expr.c (safe_from_p): Likewise.
2683 * gengtype.c (adjust_field_tree_exp): Likewise.
2684 * stmt.c (warn_if_unused_value): Likewise
2685 * tree.c (first_rtl_op): Likewise.
2686 * tree.def: Don't define METHOD_CALL_EXPR.
2687 * java/lang.c (java_estimate_num_insns_1): Don't handle
2690 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2693 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
2694 and its restrictions for the SPARC64 port.
2695 Move the entry of "-mimpure-text" before that of "-mv8".
2697 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
2698 Phil Edwards <phil@jaj.com>
2700 * doc/install.texi (*-*-solaris2*): Document the step-by-step
2701 procedure to bootstrap and install.
2702 Document the preference for the legacy Sun tools in /usr/bin
2703 over the POSIX tools in /usr/xpg4/bin for the build process.
2705 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
2707 * c.opt: Document Uncodumented; use it. Document ObjC options.
2708 * opts.c (print_filtered_help): Skip undocumented switches.
2709 * opts.h (CL_UNDOCUMENTED): New.
2710 * opts.sh: Handle Undocumented.
2711 * toplev.c (documented_lang_options): Prevent its becoming empty.
2713 * lang-options.h: Remove.
2715 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
2717 * loop.c (check_ext_dependent_givs): Pass const struct loop *
2718 instead of struct loop_info * as argument. Accept BIVs with
2719 increment +/- 1 provided there is a friendly exit test against
2720 a loop-invariant value.
2721 (strength_reduce): Adapt call to check_ext_dependent_givs.
2723 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2724 Con Bradley <con.bradley@superh.com>
2726 * sh-protos.h (sh_get_pr_initial_val): Declare.
2727 * sh.c (regno_reg_class): Make its elements type enum reg_class.
2728 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
2729 and live_regs_mask arguments. Changed all callers.
2730 (save_schedule_s): New structure.
2731 (save_schedule): New typedef.
2732 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
2733 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
2734 In interrupts handlers, also save registers that are usually
2735 partially saved, and make sure there is at least one general purpose
2736 register saved if a target register needs saving.
2737 Add casts in comparisons to avoid warnings.
2738 (sh_media_register_for_return): return -1 for interrupt handlers.
2739 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
2740 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
2741 registers used are available.
2742 Set RTX_FRAME_RELATED_P where appropriate.
2743 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
2744 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
2745 (initial_elimination_offset): Likewise.
2746 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
2747 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
2748 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
2749 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
2750 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
2751 and for target registers.
2752 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
2753 (regno_reg_class): Make its elements type enum reg_class.
2754 (CONSTRAINT_LEN): Don't use isdigit.
2755 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
2756 (FUNCTION_ARG): Add parentheses to avoid warnings.
2757 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
2758 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
2759 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
2760 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
2761 * sh.md (xordi3+1): Remove unused variable regno.
2762 (return_media): Check that tr0 is available before using it.
2764 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
2766 * c.opt: Document more options.
2768 2003-07-16 Roger Sayle <roger@eyesopen.com>
2770 * combine.c (subst): Also handle (subreg (const_double ...)) case
2771 if created by a substitution, by using the original inner mode.
2773 2003-07-16 Roger Sayle <roger@eyesopen.com>
2775 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
2776 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
2777 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
2779 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
2781 * doc/install.texi (--without-headers): New.
2783 Partial Fix PR/10129
2784 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
2785 (machopic_output_function_base_name): New; print the true pic label.
2786 (machopic_classify_ident): Pic Base is always a defined data.
2787 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
2788 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
2790 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
2791 if they are not floating point registers.
2794 * ggc.h: Add header guards.
2795 * c-decl.c (finish_struct): Sort fields if
2796 number greater than 15 and there are no
2797 anonymous structs/unions.
2798 * c-common.h: Include ggc.h.
2799 (sorted_fields_type): New struct.
2800 (field_decl_cmp): New prototype.
2801 (resort_sorted_fields): New prototype.
2802 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
2803 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
2804 as s, removing other fields.
2805 * c-typeck.c (lookup_field): Use s in lang_type.
2806 These were mostly moved from cp/class.c:
2807 * c-common.c (field_decl_cmp): New static function.
2808 (field_decl_cmp): New function.
2809 (resort_sorted_fields): New function.
2811 2003-07-16 Geoffrey Keating <geoffk@apple.com>
2813 * config/darwin.c (machopic_select_section): Use decl_readonly_section
2814 to do most of the work.
2816 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
2818 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
2819 * config/mmix/mmix.c: Convert functions to ISO C90.
2820 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
2822 (mmix_get_hard_reg_initial_val): Tweak section head comment.
2824 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2826 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
2828 2003-07-16 Jakub Jelinek <jakub@redhat.com>
2830 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
2831 (uw_update_context_1): Use it.
2832 * config/rs6000/rs6000.c (insn_after_throw): Remove.
2833 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
2834 in parent frame if _Unwind_* called directly instead of through
2836 (rs6000_emit_eh_toc_restore): Remove.
2837 (rs6000_emit_prologue): Update stack pointer before doing any saving
2838 if current_function_calls_eh_return. Generate unwind info for $r2.
2839 (rs6000_emit_epilogue): Restore stack pointer after doing all
2840 restoring if current_function_calls_eh_return. Restore $r2.
2841 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
2842 * config/rs6000/rs6000.md (eh_return): Remove call to
2843 rs6000_emit_eh_toc_restore.
2844 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
2845 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
2847 2003-07-15 Jakub Jelinek <jakub@redhat.com>
2849 * expr.c (emit_block_move): Don't move anything if size is const 0.
2850 (clear_storage): Test against const0_rtx instead of comparing INTVAL
2853 2003-07-15 David S. Miller <davem@redhat.com>
2855 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
2856 emit nop if the last real insn is CALL_INSN.
2858 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2860 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
2862 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
2864 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2866 * config/i386/winnt.c (associated_type): Artificial methods are not
2867 affected by the import/export status of their class unless they are
2869 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
2871 * config/i386/winnt.c: Fix GCC copyright comment.
2873 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
2876 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
2877 not recursing on hard error.
2878 (diagnostic_for_decl): Likewise.
2879 * diagnostic.def: Rearrange.
2881 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2883 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
2884 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
2886 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2887 Richard Henderson <rth@redhat.com>
2889 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
2890 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
2891 (_Unwind_SetGR): Likewise.
2892 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
2893 (Unwind_SpTmp): New typedef.
2894 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
2895 (uw_update_context): Use _Unwind_GetPtr.
2896 (init_dwarf_reg_size_table): Move above uw_init_context_1.
2897 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
2898 Use _Unwind_SetSpColumn.
2899 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
2902 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
2904 * c.opt: Document more options.
2905 * toplev.c (documented_lang_options): Remove all local help strings.
2907 2003-07-15 Mark Mitchell <mark@codesourcery.com>
2910 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
2913 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
2916 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
2917 swap comparison operands if doing so would generate an
2918 unrecognizable insn.
2920 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
2922 PR optimization/11320
2923 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
2924 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
2925 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
2926 current_sched_info->compute_jump_reg_dependencies. Record which
2927 registers are used and which registers are set by the jump.
2928 Clear deps->reg_conditional_sets after a barrier.
2929 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
2930 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
2931 (init_deps): Initialize reg_conditional_sets.
2932 (free_deps): Clear reg_conditional_sets.
2933 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
2934 Mark registers live on entry of the fallthrough block and conditionally
2935 set as set by the jump. Mark registers live on entry of non-fallthrough
2936 blocks as used by the jump.
2937 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
2938 Mark new parameters as unused.
2940 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2942 * doc/invoke.texi: Resync MIPS -march documentation.
2944 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2946 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
2947 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
2948 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
2949 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
2950 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
2951 (mips_issue_rate): Handle PROCESSOR_R9000.
2952 (mips_use_dfa_pipeline_interface): Likewise.
2953 * config/mips/9000.md: New file.
2954 * config/mips/mips.md: Include it.
2955 (define_attr cpu): Add r9000.
2956 (mulsi3_mult3): Use "mul" for rm9000 code.
2958 2003-07-15 Stan Cox <scox@redhat.com>
2960 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
2961 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
2962 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
2963 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
2964 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
2965 (mips_issue_rate): Handle PROCESSOR_R7000.
2966 (mips_use_dfa_pipeline_interface): Likewise.
2967 * config/mips/7000.md: New file.
2968 * config/mips/mips.md: Include it.
2969 (define_attr cpu): Add r7000.
2970 (mulsi3_mult3): Use "mul" for rm7000 code.
2972 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2974 * config/mips/mips.md (define_attr type): Add condmove. Use it for
2975 the conditional move patterns.
2976 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
2977 Check for condmove type.
2978 (ir_vr54_arith): Add move type.
2979 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
2980 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
2982 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
2984 * c-opts.c (print_help): Remove.
2985 (c_common_handle_option): Don't handle --help.
2986 * c.opt: Document some options.
2988 * opts.c (print_filtered_help): New.
2989 (print_help): Use it.
2991 2003-07-14 Geoffrey Keating <geoffk@apple.com>
2993 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
2994 * tree.c: (build_common_tree_nodes_2): Likewise.
2995 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
2996 (V4DF_type_node): New.
2998 * c-opts.c (push_command_line_include): Don't free deferred_opts,
3000 (finish_options): Reset init_cursor.
3002 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
3004 * expr.c (expand_assignment): Remove an unused argument
3006 * expr.h: Update the prototype.
3007 * function.c: Update the callers.
3010 2003-07-14 Mark Mitchell <mark@codesourcery.com>
3013 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
3016 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3018 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
3019 with __cplusplus, not "we must use the C++ compiler's type"
3020 * fixinc/inclhack.def (void_null): Note that Interix needs this.
3021 * fixinc/fixincl.x: Regenerate.
3023 2003-07-14 Geoffrey Keating <geoffk@apple.com>
3025 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
3026 and unseen_objects from the global data before calling
3027 __deregister_frame_info_bases.
3028 (examine_objects): Insert objects into the seen_objects list,
3030 (_Unwind_Find_FDE): Always unlock the global object lists, even if
3031 we couldn't allocate a data structure to put in it.
3033 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
3034 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
3035 (SET_TYPE_PROTOCOL_LIST): New.
3036 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
3037 (get_object_reference): Likewise.
3039 Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
3041 * cfglayout.c (locator_file): Break out from ....
3042 (insn_file): ... here.
3043 (locator_line): Break out from ....
3044 (insn_line): ... here.
3045 * rtl.h (locator_file, locator_line): Declare.
3046 (final_start_function): Set proper line/file info.
3048 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
3050 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
3051 handled by pp_c_cast_expression.
3053 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3055 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
3056 allocate 32768 bytes of stack. Use addition rather than subtraction
3057 when a single insn is enough.
3058 * config/mips/mips.md: Remove insns and splitters for subtracting
3060 (subsi3): Only accept register operands.
3061 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
3062 (subdi3_internal_3, subsi3_internal_2): Likewise.
3063 (casesi): Use expand_binop to subtract the lower bound.
3065 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3067 * config/mips/mips.c (mips_in_small_data_p): Don't handle
3068 TARGET_MIPS16 specially.
3070 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
3072 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
3073 mips_output_aligned_bss.
3074 * config/mips/linux.h: Likewise.
3075 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
3076 * config/mips/mips.c (mips_output_aligned_bss): New function.
3078 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
3079 * config/mips/elf64.h: Likewise.
3081 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
3082 mips_declare_object_name.
3083 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
3084 * config/mips/elf64.h: As for elf.h.
3085 * config/mips/iris6.h: Likewise.
3086 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
3087 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
3088 do...while (0) block.
3089 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
3090 (mips_finish_declare_object): Declare.
3091 * config/mips/mips.c (mips_declare_object_name): New function.
3092 (mips_finish_declare_object): New function.
3094 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
3095 * config/mips/linux.h: Likewise.
3097 * config/mips/mips.c (inside_function): Delete.
3098 (file_in_function_warning, ignore_line_number): Delete.
3099 (mips_output_filename): Don't warn about changing filenames within
3101 (mips_output_lineno): Update accordingly.
3102 (mips_output_function_prologue): Don't reset the deleted variables.
3103 * config/mips/mips.h (inside_function): Delete.
3104 (file_in_function_warning, ignore_line_number): Delete.
3106 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
3107 * config/mips/elf64.h: Likewise.
3108 * config/mips/openbsd.h: Likewise.
3109 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
3110 * config/mips/linux.h: Likewise.
3111 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
3112 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
3114 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
3115 to the list of include files when using gas.
3116 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
3117 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
3118 * config/mips/elf64.h: Likewise.
3119 * config/mips/iris5.h: Likewise.
3120 * config/mips/linux.h: Likewise.
3121 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
3122 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
3123 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
3124 * config/mips/sdb.h: ...this new file.
3126 2003-07-14 Douglas Rupp <rupp@gnat.com>
3128 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
3129 argument to getcwd; use fixed buffer instead.
3131 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
3133 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
3134 * fixinc/fixinc.wrap: Delete.
3136 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3138 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
3141 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
3143 * ggc-page.c (struct globals): Add new fields to keep track of the
3144 total allocated memory and overhead.
3145 (ggc_print_statistics): Print them.
3146 (ggc_alloc): Keep track of the total allocated memory and the
3149 * tree.c (dump_tree_statistics): Increase spacing.
3150 (enum tree_node_kind): Move to ...
3151 * tree.h (enum tree_node_kind): ... here.
3152 (tree_node_counts, tree_node_sizes): Declare.
3154 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
3156 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
3158 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3160 PR optimization/11440
3161 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
3164 2003-07-14 Alan Modra <amodra@bigpond.net.au>
3166 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
3167 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
3168 (emit_group_load, emit_group_store): Adjust declarations.
3169 Remove most occurrences of #ifdef TREE_CODE.
3170 * expr.c (emit_group_load): Add "type" param, and use
3171 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
3172 aligned accesses if !SLOW_UNALIGNED_ACCESS.
3173 (emit_group_store): Likewise.
3174 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
3175 emit_group_load and emit_group_store calls.
3176 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
3177 BLOCK_REG_PADDING to determine whether we need endian_correction.
3178 (load_register_parameters): Localize vars. Handle shifting of
3179 small values to the correct end of regs. Adjust emit_group_load
3181 (expand_call, emit_library_call_value_1): Adjust emit_group_load
3182 and emit_group_store calls.
3183 * function.c (assign_parms): Set mem alignment for stack slots.
3184 Adjust emit_group_store call. Store values at the "wrong" end
3185 of regs to the stack. Use BLOCK_REG_PADDING.
3186 (locate_and_pad_parm): Save where_pad.
3187 (expand_function_end): Adjust emit_group_load call.
3188 * stmt.c (expand_value_return): Adjust emit_group_load call.
3189 * Makefile.in (calls.o): Depend on $(OPTABS_H).
3190 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
3191 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
3192 (MUST_PASS_IN_STACK): Define.
3193 (BLOCK_REG_PADDING): Define.
3194 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
3195 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
3196 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
3197 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
3198 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
3200 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
3202 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
3204 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3206 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
3207 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
3209 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3212 * toplev.c: Don't cut off option names.
3214 2003-07-13 Andreas Jaeger <aj@suse.de>
3216 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
3217 to integer of different size.
3219 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
3221 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
3222 to (eq (and X 1) 0).
3224 2003-07-13 Andreas Jaeger <aj@suse.de>
3226 * config.gcc: Add pmmintrin.h for x86_64-*-*.
3228 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3230 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
3231 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
3232 list. Move these all together down by cpplib.
3234 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
3235 definition of CPPCHAR_SIGNED_T.
3237 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
3238 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
3239 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
3241 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
3242 * cppinit.c (cpp_create_reader): Likewise.
3244 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
3245 * cpptrad.c: Likewise. All callers changed.
3246 * cpplib.c: All callers changed.
3247 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
3248 * hashtable.h: Define GTY(x) to nothing here too.
3250 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3252 * stor-layout.c (compute_record_mode): Remove very obsolete test
3253 that forces BLKmode for records with fields crossing word boundary.
3255 2003-07-13 Zack Weinberg <zack@codesourcery.com>
3257 * Makefile.in: Remove orphan reference to acconfig.h.
3259 2003-07-13 Andreas Jaeger <aj@suse.de>
3261 * cgraphunit.c: Convert prototypes to ISO C90.
3263 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
3265 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
3267 * fixinc/fixincl.x: Rebuild.
3269 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3271 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
3272 i?86-*-*. Use correct name of cache variable.
3273 * configure: Regenerate.
3275 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3277 * config/alpha/alpha.c: Fix comment typos.
3278 * config/alpha/alpha.md: Likewise.
3279 * config/arm/arm.c: Likewise.
3280 * config/arm/arm.md: Likewise.
3281 * config/arm/lib1funcs.asm: Likewise.
3282 * config/avr/avr.md: Likewise.
3283 * config/arm/README-interworking: Fix typos.
3285 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
3287 * c-format.c: Fix comment formatting.
3288 * c-typeck.c: Likewise.
3289 * coverage.c: Likewise.
3290 * cppcharset.c: Likewise.
3291 * cpplib.c: Likewise.
3292 * dbxout.c: Likewise.
3293 * gcov-io.h: Likewise.
3294 * toplev.c: Likewise.
3296 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3298 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
3301 2003-07-12 Zack Weinberg <zack@codesourcery.com>
3303 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
3304 uses three-argument AC_DEFINE so no acconfig.h entries are
3306 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
3307 which contains the GAS version number as a scaled integer.
3308 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
3309 ability to check for ELF assembler.
3310 (gcc_GAS_CHECK_FEATURE): New macro.
3311 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
3312 assembler feature checks using gcc_GAS_CHECK_FEATURE.
3313 Use three-argument AC_DEFINE everywhere.
3314 * acconfig.h: Deleted.
3315 * config.in, configure: Regenerate.
3317 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
3319 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
3321 * fixinc/fixincl.x: Regenerate.
3323 * fixinc/inclhack.def (gnu_types): Improve comment.
3325 2003-07-12 Andreas Jaeger <aj@suse.de>
3327 * fp-test.c (main): Use ISO C90 prototype.
3329 * version.c: Remove unneded include of ansidecl.h.
3331 * cgraph.h: Convert prototypes to ISO C90.
3332 * cgraph.c: Likewise.
3333 * fix-header.c: Likewise.
3335 * protoize.c: Likewise.
3337 Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
3339 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
3342 Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
3343 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3345 * cgraph.c (cgraph_max_uid): New global variable.
3346 (cgraph_node): Set uid field.
3347 (create_edge): Keep inline flags consistent.
3348 (dump_cgraph): Dump more info.
3349 * cgraph.h (struct cgraph_local_info): Remove inline_many and
3350 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
3351 (struct cgraph_global_info): Add insns, calls, cloned_times,
3353 (struct cgraph_node): Add uid.
3354 (struct cgraph_edge): Add inline_call.
3355 (cgraph_max_uid, cgraph_inline_p): Declare.
3356 * cgraph.c: Include params.h and fibheap.h
3357 (cgraph_mark_functions_to_inline_once): Kill.
3358 (INSNS_PER_CALL): New constant.
3359 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
3361 (cgraph_finalize_function): Do not analyze inlining.
3362 (cgraph_finalize_compilation_unit): Set inlining attributes.
3363 (cgraph_mark_functions_to_output): More consistency checks.
3364 (cgraph_optimize_function): Set current_function_decl to NULL.
3365 (cgraph_expand_function): Use new inline flags.
3366 (cgraph_postorder): Expand from cgraph_expand_functions.
3367 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
3368 (cgraph_inlined_into, cgraph_inlined_callees,
3369 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
3370 cgraph_mark_inline, cgraph_check_inline_limits,
3371 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
3372 cgraph_decide_inlining, cgraph_inline_p): New functions.
3373 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
3374 PARAM_INLINE_UNIT_GROWTH): New parameters.
3375 * tree-inline.c (struct inline_data): New field current_decl.
3376 (expand_call_inline): Avoid forward declarations; use
3377 inlinable_function_p.
3378 (optimize_inline_calls): Set id.current_decl.
3380 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
3382 * configure.in: Remove wrongly added definition of
3384 * configure: Regenerate.
3386 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
3388 * rtl.def (NOTE): Do not use padding.
3390 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
3392 * doc/install.tex: Update required binutils for i?86-*-linux*
3394 2003-07-11 Richard Henderson <rth@redhat.com>
3396 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
3398 2003-07-11 Mark Mitchell <mark@codesourcery.com>
3400 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
3401 TRANSLATION_UNIT_DECL as top_level.
3403 2003-07-11 Jakub Jelinek <jakub@redhat.com>
3405 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
3406 then fall back to cmpstrM.
3407 * builtins.c (expand_builtin_memcmp): Likewise.
3408 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
3409 (s390_expand_cmpmem): ... this.
3410 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
3411 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
3412 from cmpstr* patterns. Rename call to s390_expand_cmpstr
3413 to s390_expand_cmpmem.
3414 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
3415 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
3417 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
3419 * doc/md.texi (cmpstrM): Describe as String compare insn, not
3423 2003-07-11 Loren James Rittle <ljrittle@acm.org>
3425 * config/i386/freebsd.h (SET_ASM_OP): Remove.
3426 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
3427 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
3428 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
3430 2003-07-11 Richard Henderson <rth@redhat.com>
3432 * function.c (assign_parms): Don't recombine complex args if
3433 fnargs is unchanged from orig_fnargs.
3434 (split_complex_args): Return args without complex before copying.
3435 Re-layout the modified parameters.
3437 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
3439 * regclass.c (choose_hard_reg_mode): Add third argument.
3440 Changed all callers.
3441 * rtl.h (choose_hard_reg_mode): Update declaration.
3442 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
3443 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
3445 2003-07-11 Geoffrey Keating <geoffk@apple.com>
3447 * c-decl.c (finish_decl): Handle 'used' here...
3448 * cgraphunit.c (cgraph_finalize_function): ... and here ...
3449 * c-common.c: (handle_used_attribute): ... not here.
3451 * configure.in (onstep): Support --enable-intermodule.
3452 * Makefile.in (OBJS-common): New.
3454 (OBJS-archive): New.
3455 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
3456 (OBJS-onestep): New.
3457 (libbackend.a): Support @onestep@.
3458 (libbackend.o): New.
3459 * configure: Regenerate.
3461 * c-common.h (c_reset_state): New prototype.
3462 (c_parse_file): New prototype.
3463 (finish_file): Move prototype from c-tree.h.
3464 * c-decl.c: Include <hashtab.h>.
3465 (builtin_decls): New.
3466 (current_file_decl): New.
3467 (duplicate_decls): Add extra parameter. Change all callers. Don't
3468 output duplicate common symbols.
3469 (link_hash_hash): New.
3470 (link_hash_eq): New.
3471 (poplevel): Handle popping of the top level.
3472 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
3473 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
3474 (pushdecl_top_level): Likewise.
3475 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
3476 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
3477 (finish_decl): Handle TRANSLATION_UNIT_DECL.
3478 (merge_translation_unit_decls): New.
3479 (c_write_global_declarations): New.
3480 (c_reset_state): New.
3481 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
3482 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
3483 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
3484 TRANSLATION_UNIT_DECL.
3485 (c_objc_common_finish_file): Call merge_translation_unit_decls.
3486 * c-opts.c (in_fnames): Rename from in_fname.
3487 (c_common_decode_option): Handle multiple input filenames.
3488 (c_common_post_options): Likewise.
3489 (c_common_parse_file): Likewise; also, call c_parse_file rather than
3491 * c-parse.in: Move cleanup code to c_parse_file.
3492 (free_parser_stacks): Move contents to c_parse_file.
3493 (c_parse_file): New.
3494 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
3496 (C_DECL_FILE_SCOPE): New.
3497 (finish_file): Move prototype to c-common.h.
3498 (merge_translation_unit_decls): New prototype.
3499 (comptypes): Add extra parameter to prototype.
3500 (c_write_global_declarations): New prototype.
3501 * c-typeck.c (tagged_types_tu_compatible_p): New.
3502 (function_types_compatible_p): Add extra parameter, change all callers.
3503 (type_lists_compatible_p): Likewise.
3504 (comptypes): Likewise.
3505 (struct tagged_tu_seen): New.
3506 (tagged_tu_seen_base): New.
3507 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
3508 (c_mark_addressable): Remove #if 0 code.
3509 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
3510 comment explaining why it shouldn't have to.
3511 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
3513 * cppinit.c (cpp_read_next_file): New.
3514 (cpp_read_main_file): Use it.
3515 * cpplib.c (undefine_macros): New.
3516 (cpp_undef_all): New.
3517 * cpplib.h (cpp_read_next_file): Prototype.
3518 (cpp_undef_all): Prototype.
3519 * langhooks-def.h (write_global_declarations): Remove prototype.
3520 * toplev.h (write_global_declarations): Add prototype.
3521 * tree.c (decl_type_context): Use switch statement, handle
3522 TRANSLATION_UNIT_DECL.
3523 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
3524 (TRANSLATION_UNIT_DECL): New kind of tree.
3525 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
3526 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
3527 * doc/invoke.texi: Make attempt to document new functionality.
3529 2003-05-19 Per Bothner <bothner@apple.com>
3531 * gcc.c (combine_inputs): New.
3532 (process_command): Set combine_inputs.
3533 (do_spec_1): Handle combine_inputs.
3536 2003-07-10 James E Wilson <wilson@tuliptree.org>
3538 PR optimization/9745
3539 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
3540 loop_insn_emit_before.
3541 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
3543 2003-07-10 Zack Weinberg <zack@codesourcery.com>
3545 * cppcharset.c: Fix comment.
3546 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
3547 (EILSEQ): #define to EINVAL if not already defined.
3548 (convert_using_iconv): #if out when !HAVE_ICONV.
3549 (init_iconv_desc): Handle !HAVE_ICONV here...
3550 (cpp_init_iconv): ...not here.
3552 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
3554 * common.opt: More --help messages.
3555 * opts.c (print_help): Use puts().
3556 * toplev.c (f_options): Remove help text.
3557 (display_help): Don't dump f_options.
3559 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
3561 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
3562 Move i?86-*-interix* to the don't-fix list.
3563 * fixinc/fixinc.interix: Delete with extreme prejudice.
3565 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
3568 * doc/install.texi: Document requirements for ia64-*-hpux* target.
3570 2003-07-10 Roger Sayle <roger@eyesopen.com>
3572 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
3574 2003-07-10 Zack Weinberg <zack@codesourcery.com>
3576 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
3577 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
3578 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
3579 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
3580 convert_no_conversion, convert_using_iconv): New functions.
3581 (APPLY_CONVERSION): New macro.
3582 (struct conversion, conversion_tab): New data structure.
3583 (init_iconv_desc): Check conversion_tab for a custom conversion
3584 primitive before trying to use iconv.
3585 (convert_cset): Deleted.
3586 (cpp_init_iconv): Use UTF- terminology, not UCS-.
3587 (_cpp_destroy_iconv): Update to match.
3588 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
3589 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
3590 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
3591 (_cpp_interpret_string_notranslate): New function, moved here
3594 * cpphash.h (convert_f, struct cset_converter): New types.
3595 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
3596 are now struct cset_converter, not bare iconv_t.
3598 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
3599 all callers changed.
3601 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
3603 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
3604 to opts.sh command line.
3605 * opts.sh: Write to temporary files with a move-if-change at the end.
3607 2003-07-10 Denis Chertykov <denisc@overta.ru>
3608 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3610 * combine.c (gen_binary): Handle the CLOBBER rtx and
3611 don't build a binary operation with it.
3613 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3615 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
3616 store_killed_after, store_killed_before): Keep track of the correct
3617 dependency function to use.
3619 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
3620 * toplev.c (do_compile): Don't try to open dump files before
3621 lang_dependent_init initializes dump_base_name.
3623 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3625 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
3627 * config/frv/frv.c (frv_expand_builtin): Likewise.
3628 * config/sh/sh.c (sh_media_init_builtins): Likewise.
3630 2003-07-09 Mark Mitchell <mark@codesourcery.com>
3633 * doc/invoke.texi (C++ Dialect Options): Change documentation of
3636 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
3638 * tm.texi (RETURN_ADDR_OFFSET): Document.
3640 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
3642 * gcov-io.h: Update documentation.
3643 (GCOV_UNSIGNED2STRING): New.
3644 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
3645 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
3646 GCOV_TAG_SUMMARY_LENGTH): Adjust.
3647 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
3648 GCOV_TAG_COUNTER_NUM): New.
3649 (GCOV_BLOCK_SIZE): Number of words.
3650 (gcov_var): Adjust buffer type.
3651 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
3652 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
3653 count, not byte count.
3654 (gcov_open): Adjust overread init.
3655 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
3656 gcov_write_string, gcov_write_tag, gcov_write_length,
3657 gcov_write_tag_length): Adjust.
3658 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
3659 (gcov_sync, gcov_seek): Adjust.
3660 * gcov-dump.c (print_usage): Show gcc version only.
3661 (dump_file): Use GCOV_UNSIGNED2STRING.
3662 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
3663 * gcov.c (print_version): Show gcc version only.
3664 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
3665 GCOV_TAG_*_NUM macros.
3666 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
3667 GCOV_TAG_COUNTER_LENGTH.
3668 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
3669 Use GCOV_TAG_COUNTER_NUM.
3670 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
3671 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
3673 2003-07-10 Andreas Schwab <schwab@suse.de>
3675 * gcov-dump.c (dump_file): Fix missing address operator.
3677 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
3680 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
3682 (fold_single_bit_test): If sign_bit_p() fails, assume that the
3683 bit being tested is not a sign bit.
3685 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
3687 * config/h8300/h8300.md (a peephole2): New.
3689 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
3691 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
3692 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
3693 from ld-linux.so.2 to ld.so.1.
3694 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
3695 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
3696 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
3697 nor -Wl,-rpath-link.
3698 (LIB_SPEC): Add -rpath-link if !static.
3699 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
3700 * config/mn10300/mn10300.c (mn10300_protect_label): New
3702 * config/mn10300/linux.h (PRINT_OPERAND,
3703 PRINT_OPERAND_ADDRESS): Set it during their execution.
3704 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
3705 mn10300_protect_label is set.
3706 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
3708 (LIB_SPEC, STARTFILE_SPEC): Define.
3709 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
3710 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
3711 FLOAT_BIT_ORDER_MISMATCH.
3712 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
3713 * config.gcc (am33_2.0-*-linux*): Added.
3714 * config/mn10300/linux.h: New.
3715 * config/mn10300/t-linux: New.
3717 2003-07-10 Andreas Jaeger <aj@suse.de>
3719 * fold-const.c: Properly wrap prototypes.
3721 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
3723 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
3724 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
3726 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
3727 * config/mn10300/mn10300.h: GTY-declare it.
3728 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
3729 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
3730 prototype. Use incoming RTL argument.
3731 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
3732 * config/mn10300/mn10300.md (int_label): Move C statements...
3733 (GOTaddr2picreg): ... here.
3734 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3735 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
3736 * config/mn10300/mn10300.c (mn10300_encode_section_info):
3737 ... here. New function.
3738 (TARGET_ENCODE_SECTION_INFO): Define to it.
3739 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
3740 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
3742 (mn10300_loadPC): Define as insn splittable after reload.
3743 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
3744 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
3745 be defined in .rodata even in PIC, now that the assembler
3747 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
3748 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
3749 symbol take an underscore prefix.
3750 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
3751 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
3752 legitimize_pic_address): Declare.
3753 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
3754 the PIC register as fixed.
3755 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
3756 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
3758 (LEGITIMATE_PIC_OPERAND_P): Define.
3759 (PIC_OFFSET_TABLE_REGNUM): Define.
3760 (GOT_SYMBOL_NAME): Define.
3761 (SYMBOLIC_CONST_P): Define.
3762 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
3764 (MN10300_GLOBAL_P): Test it.
3765 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
3766 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
3767 * config/mn10300/mn10300.c (print_operand): Handle unspec.
3768 (expand_prologue): Set PIC register.
3769 (call_address_operand): Don't match SYMBOL_REFs in PIC.
3770 (legitimize_address): Call legitimize_pic_address.
3771 (legitimize_pic_address): New fn.
3772 (legitimate_pic_operand_p): New fn.
3773 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
3774 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
3775 UNSPEC_PLT): New constants.
3776 (pop_pic_reg): New insn.
3777 (movsi): Adjust non-PIC addresses.
3778 (builtin_setjmp_receiver): Restore the PIC register.
3780 (call): Adjust non-PIC addresses.
3781 (int_label, GOTaddr2picreg): New expands.
3782 (am33_loadPC): New insn.
3783 (mn10300_loadPC): New expand.
3784 (call_next_insn): New insn.
3785 (add_GOT_to_pic_reg): New expand.
3786 (symGOT2reg, symGOT2reg_i): New expands.
3787 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
3788 (sym2PIC, sym2PLT): New expands.
3790 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
3792 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
3793 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
3794 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
3795 to flag_unsafe_math_optimizations.
3796 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
3797 * config/mn10300/mn10300.c (expand_prologue): Mark
3798 FP-register-saving insns as frame-related.
3799 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
3800 * config/mn10300/mn10300.c
3801 (mn10300_get_live_callee_saved_regs): Don't search past
3802 LAST_EXTENDED_REGNUM.
3803 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
3804 * config/mn10300/mn10300.md: Remove excessive line breaks from
3805 `@' output patterns that were accounted as additional
3807 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
3808 Re-introduce changes accidentally removed in Richard Sandiford's
3810 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
3811 Re-instate am33-2 lost in merge from net GCC.
3812 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
3813 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
3814 floating-point registers.
3815 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
3816 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
3817 pessimizations that had gone in on 2000-05-08.
3818 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
3819 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
3820 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
3821 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
3823 * (movhi): Likewise.
3824 * (movsi): Likewise.
3825 * (movsf): Likewise.
3826 * (movdi): Likewise.
3827 * (movdf): Likewise.
3828 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
3829 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
3830 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
3831 (expand_prologue, expand_epilogue): Save and restore FP regs.
3832 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
3833 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
3834 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
3835 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
3836 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
3838 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
3839 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
3840 Discourage the two-argument, longer opcodes.
3841 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
3843 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
3844 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
3845 * config/mn10300/mn10300.md (cmpsf): New pattern.
3846 (branch): Test mdep.fpCC and output fbCC.
3847 * config/mn10300/mn10300.c (print_operand): Output conditions.
3848 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
3849 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
3850 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
3851 mulsf3, divsf3): Use the `F' constraint for FP values.
3852 * config/mn10300/mn10300.c (const_1f_operand): New function.
3853 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
3854 * config/mn10300/mn10300.md (sqrtsf2): New expand.
3855 (rsqrtsf2): New insn.
3856 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
3857 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
3859 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
3860 * config/mn10300/mn10300.md (abssf2, negdf2): On
3861 TARGET_AM33_2, expand to...
3862 (abssf2_am33_2, negdf2_am33_2): New insns.
3863 (addsf3, subsf3, mulsf3, divsf3): Likewise.
3864 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
3865 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
3866 movdi, movdf): Added FP regs.
3867 * invoke.texi (-mam33-2, -mno-am33-2): Document.
3868 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
3869 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
3871 (REGNO_AM33_2_FP_P): Renamed to...
3872 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
3873 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
3874 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
3875 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
3876 regs from GENERAL_REGS.
3877 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
3878 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
3879 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
3880 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
3881 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
3882 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
3884 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
3885 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
3886 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
3887 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
3888 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
3889 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
3890 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
3891 AM33/2.0 floating-point registers.
3892 (CONDITIONAL_REGISTER_USAGE): Adjust.
3893 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
3894 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
3895 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
3896 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
3897 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
3898 (MULTILIB_DIRNAMES): Likewise.
3899 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
3900 `__AM33_2__' when `-mam33-2' is given.
3901 (TARGET_AM33_2): Define.
3902 (TARGET_SWITCHES): Adjust.
3903 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
3906 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
3908 * doc/install.texi: Add missing @.
3910 2003-07-09 Bob Wilson <bob.wilson@acm.org>
3912 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
3914 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
3917 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
3919 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
3922 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
3923 "x-crtfini.o" with "crtinit.o", "crtfini.o".
3925 * fixinc/inclhack.def (limits_ifndefs): Add select test.
3926 * fixinc/fixincl.x: Rebuild.
3928 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
3929 * fixinc/fixincl.x: Rebuild.
3931 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
3933 * doc/install.texi (Configuration): Document the valgrind option
3934 to --enable-checking.
3936 Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
3938 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
3940 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3942 * c-lex.c (cb_ident): Cast cstr.text to const char *.
3944 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
3946 * gcov-io.h: Update documentation.
3947 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
3949 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
3950 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
3951 (struct gcov_var): Change buffer's type. Add endian flag.
3952 (gcov_open): Remove mode in libgcov.
3953 (gcov_magic): Prototype.
3954 * gcov-io.c (from_file): New.
3955 (gcov_open): Clear endian flag.
3957 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
3959 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
3960 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
3961 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
3962 * gcov-iov.c (main): Correct cast.
3963 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
3965 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
3966 (coverage_init): Use GCOV_NOTE_SUFFIX.
3967 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
3968 Rename to gcov_version, and return flag.
3969 (gcov_exit): Use gcov_version.
3970 (__gcov_init): Use gcov_version.
3971 * Makefile.in (coverageexts): Update.
3972 * gcov.c (print_version): Remove endianness conversion.
3973 (create_file_names): Use GCOV_NOTE_SUFFIX.
3974 (read_graph_file): Use gcov_magic.
3975 (read_count_file): Likewise.
3976 * gcov-dump.c (dump_file): Remove endianness conversion, use
3979 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
3981 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
3983 * configure: Regenerated.
3984 * Makefile.in (ALL_CFLAGS): Correct its comment.
3986 2003-07-08 Mark Mitchell <mark@codesourcery.com>
3988 * fold-const.c (make_range): Do not access operand 1 for a
3989 zero-operand operator.
3991 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
3993 * toplev.c (warn_dummy, W_options): Die.
3994 (display_help): Don't print W_options.
3995 * common.opt: Add W_options help from toplev.c.
3997 2003-07-09 Andreas Jaeger <aj@suse.de>
3999 * opts.c (wrap_help): Only pass int arguments as arguments to
4000 printf's '*' modifier. Change argument of function.
4002 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
4004 * doc/invoke.texi: Fix misspelling of "@item".
4006 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
4008 * config/i386/i386.md: Remove an old comment about
4011 Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
4013 * cgraph.c (cgraph_node_name): New function.
4014 (dump_cgraph): Use it.
4015 * cgraph.h (cgraph_dump_file): Declare.
4016 (cgraph_node_name): Declare.
4017 * cgraphunit.c: Include timevar.h
4018 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
4019 (cgraph_optimize_function): Use TV_INTEGRATION.
4020 (cgraph_mark_local_functions): reorganize dumps.
4021 (cgraph_mark_functions_to_inline_once): Likewise.
4022 (cgraph_optimize): Likewise; use timevar.
4023 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
4024 * toplev.c (dump_file_index): Add DFI_cgraph.
4025 (dump_file_info): Likewise.
4026 (cgraph_dump_file): New global variable.
4027 (do_compile): Open and close cgraph dump.
4028 * invoke.texi (-d): Document new flag; renumber.
4030 2003-07-08 Roger Sayle <roger@eyesopen.com>
4033 * calls.c (emit_call_1): Don't bother popping the arguments off of
4034 the stack after a noreturn function call; The adjustment is dead.
4035 (expand_call): Likewise.
4037 2003-07-08 Geoffrey Keating <geoffk@apple.com>
4039 * expr.c (MOVE_MAX_PIECES): Move from here...
4040 * defaults.h (MOVE_MAX_PIECES): ... to here.
4042 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
4044 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
4046 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4048 * genattr.c (internal_dfa_insn_code): Don't prototype.
4049 * genattrtab.c (attr_desc): Add `static_p' field.
4050 (expand_units): Make blockage range and ready cost functions
4052 (write_attr_get): Don't add extern prototypes in C file. Mark
4053 static functions as appropriate.
4054 (find_attr, make_internal_attr): Initialize static_p.
4055 * genattrtab.h (ATTR_STATIC): New macro.
4056 * genautomata.c (output_internal_reset_func): Mark output function
4058 (make_internal_dfa_insn_code_attr): Mark output function as static.
4060 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4062 * genattrtab.h: Add new macros for attr `special' flags.
4063 * genattrtab.c (attr_desc): Reorder/resize fields better.
4064 Use attr `special' macros in all calls to make_internal_attr.
4065 * genautomata.c: Likewise.
4067 Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
4069 * c-common.c (c_estimate_num_insns_1): New static function.
4070 (c_estimate_num_insns): New global function.
4071 * c-common.h (DECL_NUM_STMTS): Rename to...
4072 (DECL_ESTIMATED_INSNS): ... this.
4073 (c_estimate_num_insns): Declare.
4074 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
4075 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
4076 * c-semantics.c (add_stmt): Do not account statements.
4077 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
4079 * langhooks.h (lang_hooks_for_tree_inlining): Add
4081 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
4083 (max-inline-insns): set to 300.
4084 (min-inline-insns): set to 10.
4085 * tree-inline.c (struct inline_data): Rename inlined_stmts to
4087 (INSNS_PER_STMT): Kill.
4088 (inlinable_function_p): Compute and store body size.
4089 (expand_call_inline): Likewise.
4090 (optimize_inline_calls): Likewise.
4092 2003-07-08 James E Wilson <wilson@tuliptree.org>
4095 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
4096 loop over new variable t2 instead of t.
4098 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
4101 * config/i386/winnt.c: Replace use of error(), warning() with
4102 error_with_decl(), warning_with_decl(), throughout.
4104 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
4106 * opts.c (wrap_help): Use unsigned int, not size_t.
4108 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
4110 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
4111 as .file/.loc directives are incompatible with linker relaxation.
4113 2003-07-08 Zack Weinberg <zack@codesourcery.com>
4115 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
4116 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
4117 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
4118 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
4119 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
4120 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
4121 Escape { and } characters which are not part of range expressions.
4122 * fixinc/fixincl.x: Regenerate.
4123 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
4125 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
4128 * tree-inline.c (find_alloca_call): Use
4129 walk_tree_without_duplicates, instead of walk_tree.
4130 (find_builtin_longjmp_call): Likewise.
4131 * c-objc-common.c (c_cannot_inline_fn): Likewise.
4132 * c-semantics.c (find_reachable_label): Likewise.
4134 2003-07-08 Jakub Jelinek <jakub@redhat.com>
4137 * config/i386/i386.c (ix86_check_movabs): New function.
4138 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
4139 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
4140 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
4142 2003-07-08 Chris Demetriou <cgd@broadcom.com>
4144 * Makefile.in (install-po): Cope with empty CATALOGS.
4146 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
4148 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4149 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
4150 (SECTION_FUNCTION_TEMPLATE): Delete.
4151 * config/mips/elf.h: As for elf64.h.
4152 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
4153 * config/mips/linux.h: As for elf.h
4154 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4155 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
4156 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
4157 of in_sdata from current_section_name and current_section_flags.
4158 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
4159 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
4160 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
4161 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
4162 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
4163 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4164 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
4165 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
4166 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
4167 (override_options): Remove setting of MASK_GPOPT.
4168 (mips_output_external): Use mips_in_small_data_p to check whether a
4169 symbol needs an .extern directive. Don't emit such directives for
4170 TARGET_EXPLICIT_RELOCS.
4171 (mips_declare_object): Update accordingly.
4172 (mips_select_rtx_section): Call named_section rather than
4174 (mips_select_section): Use default_elf_section_section for everything
4175 except .text string constants.
4176 (mips_in_small_data_p): New function.
4177 (mips_encode_section_info): Remove small data handling.
4178 (mips_unique_section): Delete.
4179 (iris6_section_type_flags): New function.
4180 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
4182 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4185 * pa.md: Disparage all mtsar constraints.
4186 (extzv, extv, insv): Don't fail on length of {32|64}.
4188 2003-07-08 Zack Weinberg <zack@codesourcery.com>
4190 * system.h: Poison MAP_CHARACTER.
4191 * config/i370/i370-protos.h (mvs_map_char): Delete.
4192 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
4193 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
4194 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
4196 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
4198 * toplev.c (randomize): Correct call to time().
4200 2003-07-08 Jakub Jelinek <jakub@redhat.com>
4202 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
4203 REG_EQUIV notes as well.
4205 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
4207 * doc/md.texi: Fix the description of addmodecc.
4209 2003-07-07 Zack Weinberg <zack@codesourcery.com>
4211 * Makefile.in (top_builddir): Set to "..", not ".".
4212 (INTLLIBS, INTLDEPS): Delete.
4213 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
4214 (LIBDEPS): Add $(LIBICONV_DEP).
4215 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
4216 (INCLUDES): Replace -I../intl with @INCINTL@.
4217 ($(top_builddir)/intl/libintl.a): Delete rule.
4218 (stage2-start, stage3-start, stage4-start, stageprofile-start,
4219 stagefeedback-start): Use $$ for variable to be evaluated by
4221 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
4222 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
4223 * aclocal.m4: sinclude ../config/progtest.m4. Add
4224 contents of lcmessage.m4 from gettext distro.
4225 * configure.in: Check for wchar.h and setlocale. Set
4226 LIBICONV_DEP to the empty string and substitute it.
4227 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
4228 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
4229 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
4230 in $LIBINTL, to avoid linking it twice.
4231 * configure, config.in: Regenerate.
4233 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
4235 * fixinc/mkfixinc.sh: Remove winnt support.
4236 * fixinc/fixinc.winnt: Delete with extreme prejudice.
4238 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
4240 * Makefile.in: Update.
4241 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
4242 * c.opt: Update documentation.
4243 * common.opt: Add some help text.
4244 * opts.c: Include intl.h.
4245 (wrap_help, print_help): New.
4246 (find_opt, handle_option, common_handle_option): opt_text now
4247 contains the '-'. Use print_help to output help.
4248 * opts.h (struct cl_option): New member "help".
4249 * opts.sh: Update to handle help text output and to prepend
4251 * toplev.c (display_help): Remove some help text.
4253 2003-07-07 David Edelsohn <edelsohn@gnu.org>
4254 Fariborz Jahanian <fjahanian@apple.com>
4256 * configure.in: Test for PowerPC mfcr field support in assembler.
4257 * config.in, configure: Regenderated.
4259 * config/rs6000/power4.md: Add mfcrf reservation.
4260 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
4261 * config/rs6000/rs6000.c (mfcr_operation): Define.
4262 (print_operand): Add 'Q' case for mfcrf.
4263 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
4264 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
4265 (movcc_internal1): Emit optional field operand for mfcr and set
4266 "type" attribute appropriately.
4267 (mfcr SCC): Likewise.
4268 (movesi_from_cr_one): New.
4270 2003-07-07 Roger Sayle <roger@eyesopen.com>
4272 * config/i386/i386.md: Correct check-in of incorrect version.
4274 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4276 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
4277 adjacent stdio calls.
4278 * c-decl.c (c_print_identifier): Likewise.
4279 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
4280 * print-rtl.c (print_rtx): Likewise.
4281 * print-tree.c (print_node_brief, print_node): Likewise.
4282 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
4284 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
4285 * config.in, configure: Regenerated.
4287 2003-07-07 Roger Sayle <roger@eyesopen.com>
4290 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
4291 Changed to define_expand patterns that copy operand[1] to prevent
4292 it from being clobbered before emitting an atan2?f3_1 insn.
4293 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
4294 patterns that actually specify the behaviour of x87's FPATAN.
4296 2003-07-07 Jakub Jelinek <jakub@redhat.com>
4298 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
4299 clearing of SYMBOL_FLAG_LOCAL bit.
4300 If vcall_offset fits into signed 16-bit immediate, use
4301 one instruction for both addition and load.
4303 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
4305 * opts.c (common_handle_option): Correct handling of the
4306 -falign- switches that do and don't take an argument.
4308 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4310 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
4312 (pushhi1_h8300hs): Likewise.
4314 2003-07-07 Andreas Jaeger <aj@suse.de>
4316 * genextract.c: Convert remaining prototypes to ISO C90.
4318 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
4319 * fold-const.c (fold_single_bit_test): Likewise.
4320 * diagnostic.c (default_diagnostic_finalizer): Likewise.
4321 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
4323 * gengtype.c (write_array): Generate ISO C90 prototypes.
4325 * genflags.c (gen_proto): Generate ISO C90 prototypes.
4327 2003-07-07 Roger Sayle <roger@eyesopen.com>
4329 PR optimization/11059
4330 * expr.c (can_store_by_pieces): Return true if length is zero.
4331 (store_by_pieces): If length is zero and endp is two, abort,
4332 othwerise, if length is zero and endp is not two, return "to".
4333 (clear_by_pieces): Do nothing if length is zero.
4334 (clear_storage): Do nothing if length is zero.
4335 (store_constructor): Simplify code when size is zero, or the
4336 target has already been cleared. This avoids emitting a
4337 blockage instruction when initializing empty structures.
4339 2003-07-07 Andreas Jaeger <aj@suse.de>
4341 * mips-tfile.c: Convert prototypes to ISO C90.
4342 * mips-tdump.c: Convert prototypes to ISO C90.
4344 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
4346 * rtl.h (emit_line_note): Take a location_t.
4347 (emit_line_note_force): Remove.
4348 (set_file_and_line_for_statement): Take a location_t.
4349 * tree.g (emit_line_note): Take a location_t.
4350 * emit-rtl.c (emit_line_note): Take a location_t.
4351 (emit_line_note_force): Remove.
4352 * function.c (init_function_start): Adjust emit_line_note call.
4353 (expand_function_end): Use force_next_line_note, not
4354 emit_line_note_force.
4355 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
4356 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
4357 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
4358 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
4359 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
4360 genrtl_continue_stmt, genrtl_switch_stmt,
4361 genrtl_asm_stmt): Likewise.
4362 * expr.c (expand_expr): Likewise.
4363 * integrate.c (expand_inline_function): Likewise.
4364 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
4365 (expand_decl_init): Adjust emit_line_note call.
4367 2003-07-07 Dale Johannesen <dalej@apple.com>
4369 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
4371 2003-07-07 Andreas Jaeger <aj@suse.de>
4373 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
4374 * config/i386/i386.c: Likewise.
4376 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4378 * config/h8300/h8300.md: Use gen_int_mode instead of
4379 GEN_INT (trunc_int_for_mode (...)).
4381 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
4383 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
4384 2 bytes and then subtract 2 from the stack pointer.
4385 (pushhi1_h8300hs): Likewise.
4387 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
4389 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
4391 * configure: Regenerated.
4392 * Makefile.in: Remove extraneous comment.
4393 * toplev.c (randomize): Protect against potential multiple calls.
4394 * doc/invoke.texi (-frandom-seed): Document use for in coverage
4397 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4398 Eric Botcazou <ebotcazou@libertysurf.fr>
4400 PR optimization/11198
4401 * alias.c (objects_must_conflict_p): Return 1 if the types have
4402 the same alias set, not if the alias sets only conflict.
4404 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
4406 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
4407 (convert_cset): Change inbuf to type ICONV_CONST char.
4408 * Makefile.in (LIBS): Add LIBICONV.
4410 * doc/invoke.texi (-falign-functions): Document that
4411 when n is zero then a machine-dependent default is used.
4412 (-falign-labels): Document that when n is zero then a
4413 machine-dependent default is used and that -falign-labels =1
4414 is equivalent to -fno-align-labels.
4415 (-falign-loops): Likewise.
4416 (-falign-jumps): Likewise.
4418 2003-07-06 Art Haas <ahaas@airmail.net>
4420 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
4423 2003-07-06 James E Wilson <wilson@tuliptree.org>
4425 PR optimization/9812
4426 * rtl.h (mem_for_const_double): Delete prototype.
4427 * varasm.c (mem_for_const_double): Delete function.
4428 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
4429 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
4430 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
4431 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
4432 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
4433 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
4434 comment about confused support for XFmode constants.
4436 Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
4438 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
4440 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
4442 * config/h8300/h8300.c: Fix comment typos.
4443 * config/h8300/h8300.md: Likewise.
4444 * config/i386/athlon.md: Likewise.
4445 * config/i386/i386.c: Likewise.
4446 * config/i386/pentium.md: Likewise.
4447 * config/ia64/ia64.c: Likewise.
4448 * config/ia64/itanium1.md: Likewise.
4449 * config/ia64/itanium2.md: Likewise.
4450 * config/m32r/m32r.md: Likewise.
4451 * config/m68hc11/m68hc11.c: Likewise.
4452 * config/mcore/mcore.c: Likewise.
4453 * config/mips/sr71k.md: Likewise.
4454 * config/mips/t-iris5-as: Likewise.
4455 * config/mmix/mmix.h: Likewise.
4456 * config/ns32k/ns32k.h: Likewise.
4457 * config/ns32k/NOTES: Fix a typo.
4459 2003-07-06 Andreas Jaeger <aj@suse.de>
4461 * stmt.c: Convert remaining prototypes to ISO C90.
4462 * cfglayout.c: Likewise.
4463 * dbxout.c: Likewise.
4465 * genemit.c: Likewise.
4467 * basic-block.h: Convert prototypes to ISO C90.
4468 * c-parse.in: Likewise.
4469 * c-pragma.h: Likewise.
4470 * c-typeck.c: Likewise.
4471 * cfghooks.h: Likewise.
4472 * cfgloopanal.c: Likewise.
4473 * dbxout.h: Likewise.
4474 * debug.h: Likewise.
4475 * dwarf2asm.h: Likewise.
4477 * gengtype-lex.l: Likewise.
4478 * sched-int.h: Likewise.
4479 * timevar.c: Likewise.
4481 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
4483 * c-common.h (c_comon_handle_filename,
4484 c_common_missing_arguement): New.
4485 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4486 LANG_HOOKS_MISSING_ARGUMENT): New.
4487 * c-opts.c (missing_arg): Rename c_common_missing_argument,
4488 update to be an appropriate langhook.
4489 (c_common_handle_option): Don't handle filenames.
4490 (c_common_handle_filename): New.
4491 * hooks.c (hook_void_constcharptr,
4492 hook_bool_constcharptr_size_t_false): New.
4493 * hooks.h (hook_void_constcharptr,
4494 hook_bool_constcharptr_size_t_false): New.
4495 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
4496 LANG_HOOKS_MISSING_ARGUMENT): New.
4497 (LANG_HOOKS_INITIALIZER): Update.
4498 * langhooks.h (struct lang_hooks): Add handle_filename and
4500 * opts.c (handle_option): Don't handle filenames here, but ...
4501 (handle_options): ... here.
4502 (common_handle_option): Don't handle missing arguments here.
4503 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
4504 LANG_HOOKS_MISSING_ARGUMENT): New.
4506 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
4508 * Makfile.in: Remove traces of mbchar.
4509 * c-parse.in (MULTIBYTE_CHARS): Remove.
4510 * config.in (MULTIBYTE_CHARS): Remove.
4511 * configure: Remove --enable-mbchar.
4512 * configure.in: Remove --enable-mbchar.
4513 * mbchar.c, mbchar.h: Remove.
4514 * system.h: Poison MULTIBYTE_CHARS.
4515 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
4516 * config/linux.h (MULTIBYTE_CHARS): Remove.
4517 * config/svr4.h (MULTIBYTE_CHARS): Remove.
4518 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
4520 2003-07-06 Andreas Jaeger <aj@suse.de>
4522 * varray.c (varray_check_failed): Fix typo.
4524 * unroll.c: Convert prototypes to ISO C90.
4525 * varasm.c: Likewise.
4526 * varray.c: Likewise.
4527 * varray.h: Likewise.
4528 * vmsdbgout.c: Likewise.
4529 * xcoffout.c: Likewise.
4530 * xcoffout.h: Likewise.
4532 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4534 * gcov-io.h: Add a local time stamp.
4535 (struct gcov_info): Add stamp field.
4536 (gcov_truncate): New.
4537 * coverage.c (read_counts_file): Skip the stamp.
4538 (coverage_begin_output): Write the stamp.
4539 (build_gcov_info): Declare and init the stamp.
4540 (coverage_finish): Only unlink data file, if stamp is zero.
4541 * gcov-dump.c (dump_file): Dump the stamp.
4542 * gcov.c (bbg_stamp): New.
4543 (release_structures): Clear bbg_stamp.
4544 (read_graph_file): Read stamp.
4545 (read_count_file): Check stamp.
4546 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
4548 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4550 * tree.h (default_flag_random_seed): Remove.
4551 * toplev.h (local_tick): Declare.
4552 * tree.c (flag_random_seed, default_flag_random_seed): Move to
4554 (append_random_chars): Don't call default_flag_random_seed.
4555 * toplev.c (flag_random_seed): Define here. Set local_tick.
4556 (local_tick): Define.
4557 (randomize): New, moved from tree.c.
4558 (print_switch_values): Adjust.
4559 (toplev_main): Call randomize.
4561 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
4563 * tree.h (crc32_string): Declare.
4564 * tree.c (append_random_chars): Remove.
4565 (crc32_string): New.
4566 (get_file_function_name_long): Use crc32_string here.
4568 2003-07-06 Andreas Jaeger <aj@suse.de>
4570 * gcc.c: Convert prototypes to ISO C90.
4572 * gcov-dump.c: Likewise.
4573 * gcov-iov.c: Likewise.
4575 * genattrtab.h: Likewise.
4577 * global.c: Likewise.
4578 * graph.c: Likewise.
4579 * graph.h: Likewise.
4580 * hosthooks.h: Likewise.
4581 * hooks.h: Likewise.
4582 * hooks.c: Likewise.
4583 * hashtable.h: Likewise.
4584 * hashtable.c: Likewise.
4585 * haifa-sched.c: Likewise.
4586 * integrate.h: Likewise.
4587 * integrate.c: Likewise.
4588 * input.h: Likewise.
4589 * ifcvt.c: Likewise.
4591 * langhooks-def.h: Likewise. Add extern to prototypes.
4592 * langhooks.c: Likewise.
4593 * langhooks.h: Likewise.
4595 * local-alloc.c: Likewise.
4596 * loop-init.c: Likewise.
4597 * loop-unroll.c: Likewise.
4598 * loop-unswitch.c: Likewise.
4600 * loop.h: Likewise. Add extern to prototypes.
4601 * machmode.h: Likewise.
4603 * mbchar.c: Likewise.
4604 * mbchar.h: Likewise.
4605 * mkdeps.c: Likewise.
4606 * mkdeps.h: Likewise.
4607 * optabs.c: Likewise.
4608 * optabs.h: Likewise.
4609 * output.h: Likewise.
4610 * gccspec.c: Likwise.
4611 * postreload.c: Likewise.
4612 * prefix.c: Likewise.
4613 * prefix.h: Likewise.
4614 * print-rtl.c: Likewise.
4615 * print-tree.c: Likewise.
4616 * profile.c: Likewise.
4617 * read-rtl.c: Likewise.
4620 * recog.c: Likewise.
4621 * recog.h: Likewise.
4622 * reg-stack.c: Likewise.
4623 * regclass.c: Likewise.
4624 * regmove.c: Likewise.
4625 * regrename.c: Likewise.
4627 * reload.c: Likewise.
4628 * reload.h: Likewise.
4629 * reload1.c: Likewise.
4630 * reorg.c: Likewise.
4631 * resource.c: Likewise.
4632 * resource.h: Likewise.
4633 * rtl-error.c: Likewise.
4636 * rtlanal.c: Likewise.
4637 * sbitmap.c: Likewise.
4638 * sbitmap.h: Likewise.
4639 * scan-decls.c: Likewise.
4641 * sched-deps.c: Likewise.
4642 * sched-ebb.c: Likewise.
4643 * sched-int.h: Likewise.
4644 * sched-rgn.c: Likewise.
4645 * sched-vis.c: Likewise.
4646 * sibcall.c: Likewise.
4647 * simplify-rtx.c: Likewise.
4648 * sreal.c: Likewise.
4649 * sreal.h: Likewise.
4650 * ssa-ccp.c: Likewise.
4651 * ssa-dce.c: Likewise.
4654 * stack.h: Likewise.
4656 * stor-layout.c: Likewise.
4657 * stringpool.c: Likewise.
4658 * target.h: Likewise.
4659 * timevar.c: Likewise.
4660 * timevar.h: Likewise.
4661 * tlink.c: Likewise.
4662 * tracer.c: Likewise.
4663 * tree-inline.c: Likewise.
4664 * tree-inline.h: Likewise.
4668 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4670 * combine.c (nonzero_bits1): Fix a warning.
4672 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4674 * config/h8300/h8300.c (compute_mov_length): Correct the
4675 length of loading CONST0_RTX (SFmode).
4677 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
4679 * toplev.c (output_clean_symbol_name): Remove.
4680 * toplev.h (output_clean_symbol_name): Remove.
4681 * config/alpha/alpha.c (unicosmk_output_module_name): Use
4682 lbasename & clean_symbol_name.
4684 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4686 * ggc.h: Follow spelling conventions.
4687 * config/i386/i386.c: Likewise.
4688 * config/i386/winnt.c: Likewise.
4689 * config/rs6000/rs6000.c: Likewise.
4691 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
4693 * bt-load.c: Fix comment typos.
4694 * c-incpath.c: Likewise.
4696 * cfgcleanup.c: Likewise.
4697 * cfgloop.h: Likewise.
4698 * cfgloopmanip.c: Likewise.
4699 * cfgrtl.c: Likewise.
4700 * diagnostic.h: Likewise.
4701 * dwarfout.c: Likewise.
4702 * emit-rtl.c: Likewise.
4703 * et-forest.c: Likewise.
4704 * et-forest.h: Likewise.
4707 * genattr.c: Likewise.
4709 * langhooks.h: Likewise.
4710 * local-alloc.c: Likewise.
4711 * loop-unroll.c: Likewise.
4712 * loop-unswitch.c: Likewise.
4713 * ra-build.c: Likewise.
4714 * regclass.c: Likewise.
4715 * regmove.c: Likewise.
4716 * rtl.def: Likewise.
4717 * rtlanal.c: Likewise.
4718 * sched-ebb.c: Likewise.
4719 * sched-rgn.c: Likewise.
4720 * simplify-rtx.c: Likewise.
4722 * tracer.c: Likewise.
4725 2003-07-05 Zack Weinberg <zack@codesourcery.com>
4727 * cppcharset.c: Use the correct return type for the fallback iconv
4730 Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4732 Blame to Jan Hubicka <jh@suse.cz>
4733 * cfglayout.c (record_effective_endpoints): Split insns before
4734 first basic block correctly.
4736 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4738 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
4739 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
4740 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
4742 2003-07-05 Andreas Jaeger <aj@suse.de>
4744 * genattrtab.c (write_attr_get): Revert part of last patch to
4745 always write out a prototype.
4747 * genemit.c (gen_split): Readd lost unused attributes in last
4750 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4752 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
4753 different from header.
4755 2003-07-05 Andreas Schwab <schwab@suse.de>
4757 * config/m68k/m68k.c: Remove code protected by CRDS.
4758 * config/m68k/m68k.md: Likewise.
4760 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
4763 * c-opts.c (permit_fortran_options): New.
4764 (c_common_init_options): Accept fortran front end options if
4765 it looks like we might be preprocessing Fortran.
4766 (c_common_handle_option): Don't reject switch if permit_fotran_options.
4768 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4770 * genattr.c (internal_dfa_insn_code): Output prototype.
4771 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
4772 * genautomata.c: Likewise.
4773 * genconditions.c: Likewise.
4774 * genemit.c: Likewise.
4775 * genextract.c: Likewise.
4776 * gengenrtl.c: Likewise.
4777 * gengtype.c: Likewise.
4778 * genopinit.c: Likewise.
4779 * genoutput.c: Likewise.
4780 * genpeep.c: Likewise.
4781 * genrecog.c: Likewise.
4783 2003-07-04 Zack Weinberg <zack@codesourcery.com>
4785 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
4786 (struct cpp_options): Add narrow_charset, wide_charset,
4787 bytes_big_endian fields. Remove EBCDIC field.
4788 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
4790 * cpphash.h: Include <iconv.h> if we have it, otherwise
4791 provide a dummy definition of iconv_t.
4792 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
4793 (_cpp_valid_ucn): Update prototype.
4794 (_cpp_destroy_iconv): New prototype.
4796 * doc/cpp.texi: Document character set handling.
4797 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
4798 * doc/extend.texi: Delete entire section on multiline strings.
4799 Rewrite section on __FUNCTION__ etc now that these are
4802 * cppucnid.tab, cppucnid.pl: New files.
4803 * cppucnid.h: New generated file.
4804 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
4805 (iconv_open, iconv, iconv_close): Provide dummy definitions
4807 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
4808 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
4809 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
4810 cpp_interpret_string, narrow_str_to_charconst,
4811 wide_str_to_charconst): New.
4812 (ucn_valid_in_identifier): Use a binary search through the
4813 ucnranges table defined in cppucnid.h, not a long chain of if
4815 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
4816 character names are only valid in C++ and C99" to a warning.
4817 Issue the "meaning of \[uU] is different in traditional C"
4818 warning here. Take care not to let iconv see an invalid UCS
4819 value if we get a malformed UCN. Issue an error if we don't
4821 (cpp_interpret_charconst): Moved here from cpplex.c. Use
4822 cpp_interpret_string to do the heavy lifting.
4824 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
4825 narrow_charset, wide_charset fields of options structure.
4826 (cpp_destroy): Call _cpp_destroy_iconv.
4827 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
4828 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
4829 (cpp_interpret_charconst): Moved to cppcharset.c.
4830 * cpplib.c (dequote_string): Delete.
4831 (interpret_string_notranslate): New.
4832 (do_line, do_linemarker): Use interpret_string_notranslate.
4834 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
4836 * c-common.c (fname_string, combine_strings): Delete.
4837 * c-common.h (fname_string, combine_strings): Delete prototypes.
4838 * c-lex.c (ignore_escape_flag): Delete.
4839 (cb_ident): Use cpp_interpret_string, not lex_string.
4840 (get_nonpadding_token): New function.
4841 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
4842 Adjust calls to lex_string. Don't write *value twice.
4843 (lex_string): Now handles string constant concatenation.
4844 Most of the work handed off to cpp_interpret_string.
4845 Call fix_string_type here.
4846 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
4847 FUNC_NAME, throughout.
4848 (OBJC_STRING): New token type.
4849 (primary:STRING): No need to call fix_string_type here.
4850 (primary:objc_string): Make that OBJC_STRING.
4851 (objc_string nonterminal): Delete.
4852 (yylexname): Delete code to handle fake string constants.
4853 (yylexstring): Delete entirely.
4854 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
4855 to handle CPP_ATSIGN.
4857 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
4858 * c-opts.c (missing_arg, c_common_handle_option): Handle
4859 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
4860 (c_common_init): Set cpp_opts->bytes_big_endian, not
4861 cpp_opts->EBCDIC. Call cpp_init_iconv.
4862 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
4863 (TARGET_EBCDIC): Delete default definition.
4865 * objc/objc-act.c (build_objc_string_object): No need to
4866 handle string constant concatenation.
4868 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
4870 * doc/install.texi: Fix typos.
4871 * doc/invoke.texi: Likewise.
4872 * doc/tm.texi: Likewise.
4874 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
4876 * config/pa/fptr.c: Fix comment typos.
4877 * config/pa/pa-64.h: Likewise.
4878 * config/pa/pa.c: Likewise.
4879 * config/pa/pa.h: Likewise.
4880 * config/rs6000/603.md: Likewise.
4881 * config/rs6000/7xx.md: Likewise.
4882 * config/rs6000/darwin.h: Likewise.
4883 * config/rs6000/freebsd.h: Likewise.
4884 * config/rs6000/rs6000.c: Likewise.
4885 * config/rs6000/rs6000.md: Likewise.
4886 * config/rs6000/spe.h: Likewise.
4888 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
4890 * config/s390/2064.md: Change GNU CC to GCC.
4891 * config/s390/2084.md: Likewise.
4892 * config/s390/fixdfdi.h: Likewise.
4893 * config/s390/linux.h: Likewise.
4894 * config/s390/s390-modes.def: Likewise.
4895 * config/s390/s390-protos.h: Likewise.
4896 * config/s390/s390.c: Likewise.
4897 * config/s390/s390.h: Likewise.
4898 * config/s390/s390.md: Likewise.
4899 * config/s390/s390x.h: Likewise.
4901 2003-07-04 Jeff Law <law@redhat.com>
4904 * expr.c (do_store_flag): Pass in the correct result type
4905 when calling fold_single_bit_test.
4906 * fold-const.c (fold_single_bit_test): Use result_type for the
4907 result when folding a sign bit test.
4909 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
4911 * opts.c (common_handle_options): Negate sense of -falign- switches.
4913 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
4915 * Makefile.in: Replace PWD with PWD_COMMAND.
4917 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4919 * cfgloopanal.c (count_strange_loop_iterations): New static function.
4920 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
4921 Handle strange loops.
4923 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
4925 * install.texi: Even the g77 manpage is derived from
4926 the full g77 manual.
4928 2003-07-04 Zack Weinberg <zack@codesourcery.com>
4930 * ABOUT-NLS: Delete.
4931 * intl: Delete entire directory.
4932 * aclocal.m4: Include ../config/gettext.m4. Delete
4933 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
4934 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
4935 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
4936 Remove intl/Makefile from all_outputs.
4937 * configure, config.in: Regenerate.
4938 * Makefile.in: Expunge all references to intl subdirectory.
4939 Add -I../intl to INCLUDES.
4940 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
4942 2003-07-04 Roger Sayle <roger@eyesopen.com>
4944 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
4945 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
4947 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
4949 PR c++/5287, PR c++/7910, PR c++/11021
4950 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
4951 dllimport attribute if function is defined at declaration, but
4952 report error instead. Likewise for dllimport'd variable
4953 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
4954 declared within functions, Report error if dllimport or dllexport
4955 symbol is not global.
4956 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
4957 if defined after declaration or if inlined. Don't allow definition
4958 of static data members of C++ classes. Don't dllimport virtual
4960 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
4961 (i386_pe_mark_dllimport): Remove unnecessary checks.
4962 (i386_pe_encode_section_info): Warn if the dllimport attribute
4963 and symbol prefix have been instantiated and then overridden.
4965 * doc/extend.texi: Document dllimport and dllexport attributes.
4967 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
4969 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
4971 * config/kaos.h (CPP_PREDEFINES): Delete.
4972 (TARGET_OS_CPP_BUILTINS): New.
4974 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4976 * c-aux-info.c: Include toplev.h after c-tree.h.
4977 * c-common.c: Likewise.
4978 (GCC_DIAG_STYLE): Undef.
4979 * c-semantics.c (GCC_DIAG_STYLE): Define.
4980 * c-tree.h (GCC_DIAG_STYLE): Likewise.
4981 * diagnostic.h (inform): Move prototype to toplev.h.
4982 * jump.c: Include diagnostic.h before toplev.h.
4983 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
4984 (warning, error, fatal_error, pedwarn, sorry, inform,
4985 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
4987 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4989 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
4990 at all if edge is not specified.
4991 (can_copy_bbs_p, copy_bbs): New.
4992 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
4993 * cfgloop.c (get_loop_body): Comment more precisely.
4994 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
4995 (scale_bbs_frequencies): Fix comment typo.
4996 (can_duplicate_loop_p): Use can_copy_bbs_p.
4997 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
4999 2003-07-03 Devang Patel <dpatel@apple.com>
5001 * c-opts.c (c_common_parse_file): Remove extra
5002 debug_hooks->start_source_file call.
5004 2003-07-03 Roger Sayle <roger@eyesopen.com>
5006 * real.c (real_trunc, real_floor, real_ceil): New functions
5007 to implement trunc, floor and ceil respectively.
5008 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
5009 * builtins.c (integer_valued_real_p): New function to test if
5010 a floating point expression has an integer valued result.
5011 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
5012 foo(x) where foo is an integer rounding function. Similarly,
5013 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
5014 (double)(int)x when both foo and bar are integer rounding
5015 functions and we don't need to honor errno.
5016 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
5017 New functions to fold trunc, floor and ceil.
5018 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
5019 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
5020 to fold BUILT_IN_CEIL*.
5021 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
5022 the remaining integer rounding functions.
5024 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5026 * config/sparc/sparc.c (function_arg_partial_nregs): Use
5027 SPARC_INT_ARG_MAX to determine where to split unnamed
5028 complex FP arguments.
5030 Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
5032 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
5033 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
5034 (merge_blocks_move_predecessor_nojumps,
5035 merge_blocks_move_successor_nojumps): Use merge_blocks.
5036 (try_optimize_cfg): Use merge_blocks_move.
5037 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
5038 (merge_blocks_nomove): Rename to rtl_merge_blocks.
5039 (cfg_layout_create_basic_block): New.
5040 (rtl_can_merge_blocks): New.
5041 (cfg_layout_split_block): Do not alloc aux by hand.
5042 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
5044 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
5045 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
5046 * cfgloopmanip.c (loop_split_edge_with): Likewise.
5047 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
5049 * basic-block.h (basic_block_def): Add field 'rbi'.
5050 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
5051 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
5052 * cfg.c (entry_exit_blocks): Add new field.
5053 * cfglayout.c: Include alloc-pool.h;
5054 (cfg_layout_pool): New.
5055 (record_effective_endpoints, fixup_reorder_chain,
5056 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
5058 (cfg_layout_initialize_rbi): New function.
5059 (cfg_layout_initialize): Use it.
5060 (cfg_layout_finalize): Clear rbi fields.
5061 * cfglayout.h (RBI): Kill.
5062 (cfg_layout_initialize_rbi): Declare.
5063 * cfgloopmanip.c (copy_bbs): Use rbi.
5064 (record_exit_edges): Likewise.
5065 (duplicate_loop_to_header_edge): Likewise.
5066 * cfgrtl.c (cfg_layout_create_basic_block): Use
5067 cfg_layout_initialize_rbi.
5068 (cfg_layout_split_block): Use rbi.
5069 (cfg_layout_delete_block): Likewise.
5070 * loop-init.c (loop_optimizer_finalize): Likewise.
5071 * loop-unswitch.c (unswitch_loop): Likewise.
5072 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
5074 * cfgrtl.c: Update comments.
5075 (try_redirect_by_replacing_jump): New argument.
5076 (redirect_branch_edge): Break out from ...
5077 (rtl_redirect_edge_and_branch): ... this one.
5078 (update_cfg_after_block_merging): Break out from ...
5079 (rtl_merge_blocks): ... this one.
5080 (cfg_layout_split_edge): New.
5081 (cfg_layout_merge_blocks): New.
5082 (cfg_layout_can_merge_blocks_p): New.
5083 (cfg_layout_redirect_edge_and_branch): Reorganize.
5084 (cfg_layout_rtl_cfg_hooks): Fill in.
5085 (cfg_layout_delete_block): Kill barriers.
5086 * cfganal.c (can_fallthru): Deal with exit blocks
5087 * cfglayout.c (cfg_layout_function_header): New function
5088 (record_effective_endpoints): Record function header.
5089 (fixup_reorder_chain): Fixup dead jumptables; place header
5091 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
5092 * bb-reorder.c (cfg_layout_initialize): Update call.
5093 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
5094 edges in cfglayout mode.
5095 * cfglayout.c (cleanup_unconditional_jumps): Kill.
5096 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
5097 * cfglayout.h (cfg_layout_initialize): Update prototype.
5098 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
5099 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
5100 * flow.c (propagate_block): Do not crash when basic block ends
5101 by first insn in the chain.
5102 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
5104 * tracer.c (tracer): Update call of cfg_layout_initialize.
5106 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5108 * Makefile.in: Use dependency variables in lieu of explicit
5111 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
5113 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
5114 * tree.h: ...to here.
5116 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
5118 * config/s390/2064.md: Fix comment typos.
5119 * config/s390/2084.md: Likewise.
5120 * config/s390/s390.c: Likewise.
5121 * config/s390/s390.md: Likewise.
5122 * config/sh/sh.c: Likewise.
5123 * config/sh/sh.h: Likewise.
5124 * config/sh/sh.md: Likewise.
5125 * config/sparc/sparc.c: Likewise.
5126 * config/sparc/sparc.h: Likewise.
5127 * config/sparc/sparc.md: Likewise.
5128 * config/stormy16/stormy16.c: Likewise.
5129 * config/stormy16/stormy16.h: Likewise.
5130 * config/stormy16/stormy-abi: Fix a typo.
5132 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
5134 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
5136 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5138 * config/mips/mips.h (save_argv): Delete.
5140 2003-07-03 Roger Sayle <roger@eyesopen.com>
5143 * fold-const.c (extract_muldiv_1): There's nothing that can be done
5144 if the expression is a SAVE_EXPR.
5146 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
5148 * config/m32r/m32r.c: Fix comment typos.
5149 * config/m68hc11/m68hc11.c: Likewise.
5150 * config/m68hc11/m68hc11.h: Likewise.
5151 * config/m68k/m68k.c: Likewise.
5152 * config/mcore/mcore.c: Likewise.
5153 * config/mcore/mcore.h: Likewise.
5154 * config/mcore/mcore.md: Likewise.
5155 * config/mips/mips.c: Likewise.
5156 * config/mips/mips.h: Likewise.
5157 * config/mips/mips.md: Likewise.
5158 * config/mips/netbsd.h: Likewise.
5159 * config/mn10300/mn10300.c: Likewise.
5161 2003-07-03 Andreas Schwab <schwab@suse.de>
5163 * dbxout.c (pending_bincls): Move decl down inside
5164 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
5166 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
5168 * rtl.h (NOTE_DATA): Refer to whole union.
5169 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
5171 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
5173 PR optimization/11381
5174 * simplify-rtx.c (simplify_relational_operation): Check that
5175 two equal operands have no side-effects before simplifying
5178 2003-07-02 Jeff Law <law@redhat.com>
5180 * expr.c (do_store_flag): Remove special case folding for
5181 single bit tests. Instead call back into the commonized folder
5183 * fold-const.c (fold_single_bit_test): New function, mostly
5184 extracted from do_store_flag, with an additional case extracted
5186 (fold): Call fold_single_bit_test appropriately.
5187 * tree.h (fold_single_bit_test): Prototype.
5189 2003-07-02 Zack Weinberg <zack@codesourcery.com>
5191 * system.h: Include filenames.h.
5192 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
5193 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
5194 define based on HAVE_DOS_BASED_FILE_SYSTEM.
5195 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
5196 * config/i386/xm-mingw32.h: Don't define
5197 HAVE_DOS_BASED_FILE_SYSTEM,
5198 DIR_SEPARATOR, or DIR_SEPARATOR_2.
5199 * doc/hostconfig.texi: Update to match.
5201 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
5202 config/i386/cygwin.h:
5203 Use IS_ABSOLUTE_PATH throughout.
5204 * gcc.c (DIR_UP): Delete, unused.
5205 * protoize.c (IS_SAME_PATH): Define in terms of
5207 (is_abspath): Delete.
5209 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
5211 * config/i386/emmintrin.h: Fix comment typos.
5212 * config/i386/i386.c: Likewise.
5213 * config/i386/i386.h: Likewise.
5214 * config/i386/sco5.h: Likewise.
5215 * config/ia64/ia64.c: Likewise.
5216 * config/ia64/itanium2.md: Likewise.
5218 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
5220 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
5222 (emit_bincl_stab): Same.
5223 (emit_pending_bincls): Same.
5225 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
5227 * config/h8300/h8300.c (compute_mov_length): Fix the length of
5228 loading CONST0_RTX (SFmode).
5229 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
5230 'G' to CONST0_RTX (SFmode).
5231 * config/h8300/h8300.md (movsf_h8300): Change the first
5233 (movsf_h8300h): Likewise.
5235 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
5237 * c-common.h (c_common_init_options): New prototype.
5238 * c-opts.c (deferred_size): Remove.
5239 (defer_opt): Array is now pre-allocated.
5240 (c_common_init_options): Pre-allocate deferred_opts. Make
5241 lang_flags unsigned.
5242 (push_command_line_options): Free deferred_opts.
5243 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
5244 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
5245 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
5246 * langhooks.h (struct lang_hooks): New prototype for init_options.
5247 * main.c (main): Cast argv.
5248 * opts.c (handle_option, handle_options): Update prototypes.
5249 (decode_options): save_argc, save_argv are not global. Constify.
5250 * opts.h (decode_options): New prototype.
5251 * toplev.c (general_init): New protoype.
5252 (save_argv): Make static.
5253 (save_argc): Remove.
5254 (print_switch_values, general_init): Constify.
5255 (toplev_main): Save argv.
5256 * toplev.h (toplev_main): Update prototype.
5257 (save_argc, save_argv): Remove.
5259 2003-07-02 David Edelsohn <edelsohn@gnu.org>
5261 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
5262 (emit_bincl_stab): Same.
5263 (emit_pending_bincls): Same.
5265 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
5268 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
5270 2003-07-02 Andreas Schwab <schwab@suse.de>
5272 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
5274 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
5276 PR optimization/11210
5277 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
5278 about the behaviour with regard to bitfields.
5279 * fold-const (decode_field_reference): Record outermost type in
5280 case the expression is a NOP. Strip all NOPs. Set the signedness
5281 to that of the outermost type (if any) when the bitsize is equal
5282 to the size of the type.
5284 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
5286 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
5287 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
5288 (adddi3_internal_3, addsi3_internal_2): Likewise.
5290 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
5292 * config/mips/mips.c (machine_function): Add new fields:
5293 ignore_hazard_length_p and all_noreorder_p.
5294 (mips_flag_delayed_branch): New variable.
5295 (override_options): Treat '/' as an operand punctuation character.
5296 Set up mips_flag_delayed_branch.
5297 (print_operand): Handle '/'.
5298 (mips_output_function_prologue): Put the whole function in
5299 .set noreorder and .set nomacro if all_noreorder_p is true.
5300 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
5301 (mips16_optimize_gp): Remove "first insn" parameter.
5302 (mips16_lay_out_constants): New function, split out from mips_reorg.
5303 (mips_avoid_hazard, mips_avoid_hazards): New functions.
5304 (mips_reorg): For mips16 code, call mips16_lay_out_constant
5305 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
5306 do delayed-branch scheduling followed by hazard detection.
5307 (mips_adjust_insn_length): Only account for hazards if
5308 !ignore_hazard_length_p.
5309 (mips_output_load_label): Add a nop to the o32 sequence if
5310 the target suffers from load delays.
5311 (mips_output_conditional_branch): Add %/ to the end of branches.
5312 (mips_output_division): Fill the branch delay slot with %#.
5313 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
5314 instructions. End all other %* branches with %/.
5315 (ffssi2, ffsdi2): Fix lengths.
5316 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
5317 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
5318 (fix_truncsfsi2_macro): Likewise.
5319 (mov_lwl): Set hazard to "none".
5320 (ashldi3_internal): Fill the branch delay slot with %#.
5321 (ashrdi3_internal, lshrdi3_internal): Likewise.
5322 (exception_receiver): Explicitly set $28.
5323 (hazard_nop): New pattern.
5325 Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
5327 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
5328 before calling tree_inlinable_function_p.
5330 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5332 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
5333 <internal/stdio_core.h> too.
5334 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
5335 <internal/wchar_core.h> too.
5336 Substitute va_list uses in inline definition.
5337 * fixinc/fixincl.x: Regenerate.
5339 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5341 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
5342 Undef before redefinition.
5343 (LABEL_AFTER_LOC): Likewise.
5344 (DEFAULT_SIGNED_CHAR): Likewise.
5345 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
5348 * config/mips/iris3.h: Remove, unused.
5349 * config/mips/iris4.h: Likewise.
5351 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
5353 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
5354 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
5357 * config/mips/iris5.h: Move explicit includes ...
5358 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
5360 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
5361 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
5364 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
5365 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
5368 * config/mips/iris6.h: Fix IRIX spelling.
5369 (MULTILIB_DEFAULTS): Undef before redefinition.
5371 * config/mips/iris6.h: Move explicit includes ...
5372 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
5374 Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
5376 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
5377 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
5378 Use next_needed field instead of aux to maintain the queue.
5379 * cgraph.h (cgraph_node): Add next_needed.
5380 (cgraph_varpool_node): Add next_needed; remove aux.
5381 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
5383 Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
5385 * cgraphunit.c (cgraph_finalize_function): Set finalized.
5386 (cgraph_finalize_function): Do not examine inlinablility.
5387 (cgraph_finalize_compilation_unit): Do it here.
5388 * cgraph.h (cgraph_local_info): Add finalized field.
5390 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5392 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
5393 (gt_pch_restore): Likewise.
5395 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5397 * config/alpha/alpha.c: Fix comment typos.
5398 * config/alpha/elf.h: Likewise.
5399 * config/arm/arm.c: Likewise.
5400 * config/arm/arm.h: Likewise.
5401 * config/arm/arm.md: Likewise.
5402 * config/arm/t-arm-coff: Likewise.
5403 * config/arm/t-strongarm-pe: Likewise.
5404 * config/arm/xscale-elf.h: Likewise.
5405 * config/avr/avr.h: Likewise.
5407 2003-07-01 Jeff Law <law@redhat.com>
5409 * stmt.c (any_pending_cleanups): Remove another redundant test.
5411 2003-07-01 David Edelsohn <edelsohn@gnu.org>
5412 J"orn Rennecke <joern.rennecke@superh.com>
5414 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
5417 2003-07-01 Devang Patel <dpatel@apple.com>
5419 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
5421 (struct dbx_file): New members - bincl_status, pending_bincl_name and
5423 (pending_bincls): New.
5424 (dbxout_init): Initialize new dbx_file members.
5425 (dbxout_start_source_file): Same.
5426 (emit_bincl_stab): New function.
5427 (emit_pending_bincls): Same.
5428 (emit_pending_bincls_if_required): Same.
5429 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
5431 (dbxout_begin_block): Emit pending BINCL stabs.
5432 (dbxout_end_block): Same.
5433 (dbxout_function_decl): Same.
5434 (dbxout_continue): Same.
5435 (dbxout_type): Same.
5436 (dbxout_class_name_qualifiers): Same.
5437 (dbxout_symbol): Same.
5438 (dbxout_symbol_location): Same.
5439 (dbxout_parms): Same.
5441 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5443 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
5444 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
5446 2003-07-01 Andreas Jaeger <aj@suse.de>
5448 * fold-const.c: Convert prototypes to ISO C90.
5449 * function.c: Likewise.
5450 * function.h: Likewise.
5452 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5454 * doc/contrib.texi: Fix typos.
5455 * doc/invoke.texi: Likewise.
5456 * doc/passes.texi: Likewise.
5457 * doc/sourcebuild.texi: Likewise.
5458 * doc/tm.texi: Likewise.
5460 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
5462 * basic-block.h: Fix comment typos.
5463 * bb-reorder.c: Likewise.
5464 * c-format.c: Likewise.
5465 * cfgcleanup.c: Likewise.
5466 * cfghooks.h: Likewise.
5467 * cfgloop.c: Likewise.
5468 * cfgloopmanip.c: Likewise.
5469 * cfgrtl.c: Likewise.
5470 * cgraph.h: Likewise.
5471 * cgraphunit.c: Likewise.
5472 * combine.c: Likewise.
5473 * convert.c: Likewise.
5474 * dbxout.c: Likewise.
5477 * diagnostic.c: Likewise.
5478 * dwarf2out.c: Likewise.
5479 * et-forest.h: Likewise.
5481 * fold-const.c: Likewise.
5482 * function.h: Likewise.
5483 * gcov-io.h: Likewise.
5486 * genautomata.c: Likewise.
5487 * ggc-common.c: Likewise.
5488 * ggc-page.c: Likewise.
5489 * loop-unroll.c: Likewise.
5490 * loop-unswitch.c: Likewise.
5492 * mips-tfile.c: Likewise.
5493 * optabs.c: Likewise.
5494 * ra-build.c: Likewise.
5495 * ra-colorize.c: Likewise.
5496 * ra-rewrite.c: Likewise.
5498 * regmove.c: Likewise.
5499 * reload.c: Likewise.
5500 * rtlanal.c: Likewise.
5501 * sched-ebb.c: Likewise.
5502 * sched-int.h: Likewise.
5503 * sched-vis.c: Likewise.
5504 * sreal.c: Likewise.
5505 * ssa-ccp.c: Likewise.
5507 * toplev.c: Likewise.
5508 * tree-inline.c: Likewise.
5509 * value-prof.c: Likewise.
5510 * value-prof.h: Likewise.
5512 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
5514 * rtl.h (emit_line_note_after): Remove.
5515 (emit_note_copy_after, emit_note_copy): New.
5516 * emit-rtl.c (reorder_insns_with_line_notes): Replace
5517 emit_line_note_after with emit_note_copy_after.
5518 (emit_insn_after_with_line_notes): Likewise.
5519 (emit_line_note_after): Kill.
5520 (emit_note_copy_after): New.
5521 (emit_note_copy): New.
5522 * function.c (emit_return_into_block): Use emit_note_copy_after.
5523 (thread_prologue_and_epilogue_insns): Likewise.
5524 * integrate.c (expand_inline_function): Use emit_note_copy.
5525 (copy_insn_list): Likewise.
5526 * unroll.c (copy_loop_body): Likewise.
5527 * cfglayout.c (duplicate_insn_chain): Likewise.
5529 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
5531 * c-tree.h (define_label): Replace filename and lineno arguments
5533 * c-decl.c (poplevel): Adjust define_label call.
5534 (pop_label_level): Likewise.
5535 (define_label): Replace filename and lineno arguments with a
5537 (store_parm_decls): Use DECL_SOURCE_LOCATION.
5538 * c-parse.in (label): Adjust define_label call.
5540 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
5542 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
5543 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
5544 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
5545 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
5546 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
5548 2003-07-01 Andreas Jaeger <aj@suse.de>
5550 * final.c: Convert prototypes to ISO C90.
5552 * flags.h: Likewise.
5553 * gcov-io.c: Likewise.
5554 * gcov-io.h: Likewise.
5556 See ChangeLog.9 for earlier changes.