1 2003-09-24 Nathanael Nerode <neroden@gcc.gnu.org>
3 * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
6 * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
7 the section giving $with_cpu defaults by target.
9 * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
10 arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
11 rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
12 rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
13 rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
14 i[34567]86-pc-msdosdjgpp*): Disable fixproto.
16 2003-09-24 David Edelsohn <edelsohn@gnu.org>
18 * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
19 together. Protect load string instruction with TARGET_STRING.
20 (movti_string): Collapse case 1 and 2 together.
22 2003-09-24 Nathan Sidwell <nathan@codesourcery.com>
24 * c-common.c (c_common_type_for_mode): Check for VOIDmode.
26 2003-09-24 Richard Earnshaw <rearnsha@arm.com>
28 * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
31 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
33 * config.gcc: Move use_fixproto=no from generic vxworks clause to
36 * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
37 (accidentally missed in last pass).
39 2003-09-23 Andrew Pinski <apinski@apple.com>
42 * configure: Regenerate.
44 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
46 * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
49 2003-09-23 Alexandre Oliva <aoliva@redhat.com>
51 * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
54 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
56 * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
58 * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
59 powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
60 powerpcle-*-eabi*): Disable fixproto.
62 * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
63 specific FreeBSD clauses.
64 * config.gcc: Move use_fixproto=no from generic NetBSD clause to
65 specific NetBSD clauses.
66 * config.gcc: Move use_fixproto=no from generic OpenBSD clause
67 to specific OpenBSD clauses.
69 2003-09-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
71 * pa.c (hppa_expand_prologue): Do pic register save in frame marker
72 without adding a frame note.
73 * pa.md (allocate_stack): Save pic register in new frame marker when
76 2003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
78 * cgraphunit.c (cgraph_expand_all_functions): Renamed from
79 cgraph_expand_functions.
81 2003-09-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
83 * Makefile.in (gnucompare*): Merge into ...
84 (slowcompare*): ... here.
85 (fastcompare*): New targets.
86 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
87 other "fast" cmp programs.
88 * configure: Regenerate.
90 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
92 * targhooks.c: Include output.h.
93 * Makefile.in (targhooks.o): Add output.h to dependency list.
95 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
97 * config.host: Removed superfluous newline.
99 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
101 * config.gcc: Use ${target}, not $machine.
102 * configure.in: Don't set $machine.
103 * configure: Regenerate.
105 2003-09-23 Geoffrey Keating <geoffk@apple.com>
107 * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
109 * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
110 pass zero-size arrays by reference.
111 (rs6000_va_arg): Likewise.
113 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
115 * config.gcc: Set use_fixproto=no in each specific *-gnu*
116 configuration, rather than the generic one.
118 2003-09-23 Richard Henderson <rth@redhat.com>
120 * tree-inline.c (remap_save_expr): Map new save_expr to identity
121 rather than to error_mark_node.
123 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
125 * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
127 * configure: Regenerate.
128 * config.in: Likewise.
129 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
130 HAVE_GAS_SHF_MERGE value.
131 * varasm.c (mergeable_string_section): Likewise.
132 (mergeable_constant_section): Likewise.
134 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
136 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
139 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
141 * target.h (struct gcc_target): New member external_libcall.
142 * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
143 (TARGET_ASM_OUT): Use it.
144 * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
145 * targhooks.c: Convert to ISO C 90.
146 (default_external_libcall): New function.
147 * targhooks.h (default_external_libcall): Declare.
148 * varasm.c (assemble_external_libcall): Use
149 targetm.asm_out.external_libcall instead of
150 ASM_OUTPUT_EXTERNAL_LIBCALL.
151 * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
152 (mips_output_external_libcall): Declare.
153 * config/mips/mips.c (mips_output_external_libcall): Change
155 Change to match TARGET_ASM_EXTERNAL_LIBCALL.
156 Only operate for O32 ABI.
157 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
158 instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
159 * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
160 superceded by TARGET_ASM_EXTERNAL_LIBCALL.
162 2003-09-22 Nathnael Nerode <neroden@gcc.gnu.org>
164 * config.gcc: Do per-target disabling of fixproto here in clauses,
166 * configure.in: Adjust to set STMP_FIXPROTO correctly.
167 * configure: Regenerate.
168 * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
169 config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
170 t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
171 xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
172 * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
173 t-interix, t-linux-aout: Delete files consisting only of
174 setting of STMP_FIXPROTO.
176 * config.host: Allow unknown hosts (not targets). Allow
177 ns32k-*-netbsdelf* as a host (not a target). Remove redundant
178 empty clauses. Remove useless obsolete-configuration clause.
179 Prune unsupported configuration list. Collapse identical
180 clauses for closely related systems. Rewrite comment for
181 unsupported hosts list. Reorganize a little.
183 2003-09-22 Richard Henderson <rth@redhat.com>
185 * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
188 2003-09-22 David Edelsohn <edelsohn@gnu.org>
189 Hartmut Penner <hpenner@de.ibm.com>
190 Segher Boessenkool <boessen@de.ibm.com>
192 * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
193 (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
194 (rs6000_split_altivec_in_gprs): Rename to ...
195 (rs6000_split_multireg_move): Add support for update addressing.
196 * config/rs6000/rs6000-protos.h: Same.
197 * config/rs6000/altivec.md: Same.
198 * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
200 (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
201 (movti_power): Use new splitter for multiple GPRs.
202 (movti_string): Same.
205 2003-09-22 Bob Wilson <bob.wilson@acm.org>
207 * config/xtensa/xtensa-protos.h: Convert to ISO C90.
208 * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes.
210 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
212 * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
213 (andsi3): Set attr cc to set_zn when using shifts or adds.
215 2003-09-22 Bernardo Innocenti <bernie@develer.com>
217 * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
219 2003-09-22 Bernardo Innocenti <bernie@develer.com>
221 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
222 Resurrect -mrtd option.
224 2003-09-21 Andrew Pinski <pinskia@physics.uc.edu>
227 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
228 mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
230 2003-09-22 Olivier Hainque <hainque@act-europe.fr>
233 * reg-stack.c (convert_regs_1): Purge possible dead eh edges
234 after potential deletion of trapping insn. Avoids later ICE
235 from call to fixup_abnormal_edges.
236 (convert_regs_2): Stack the current block successors before
237 processing this block, that is, before the potential deletion of
238 dead edges by convert_regs_1, because these edges have been used
239 to initialize the predecessors count.
241 2003-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
243 * real.c: Fix several nits in the head comment.
245 2003-09-21 Richard Henderson <rth@redhat.com>
247 * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
248 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
249 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
250 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
251 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
253 2003-09-21 Richard Henderson <rth@redhat.com>
255 * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
256 (TREE_FILENAME, TREE_LINENO): Likewise.
257 (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
258 (TREE_LOCUS_SET_P): New.
259 * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
260 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
261 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
262 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
263 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
265 2003-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
267 * config/vax/vax-protos.h: Convert to ISO C90.
268 * config/vax/vax.c: Convert to ISO C90.
270 2003-09-21 Graham Stott <grahams@btinternet.com>
273 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
275 2003-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
278 * reorg.c (stop_search_p): Return 1 for insns that can
281 2003-09-20 Richard Henderson <rth@redhat.com>
283 * c-format.c (gcc_diag_char_table): Add %J.
284 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
285 (check_format_types): Fix wanted_type name lookup.
286 (init_dynamic_diag_info): Setup %J.
287 * diagnostic.c (text_specifies_location): Implement %J.
288 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
289 dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
290 tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
291 config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
292 config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
294 * tree-inline.c: Include intl.h
295 (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
296 * Makefile.in (tree-inline.o): Update.
298 2003-09-20 Roger Sayle <roger@eyesopen.com>
300 * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
301 transformation of a>=0 into (unsigned)a<0x80000000.
303 2003-09-20 Andrew Pinski <apinski@apple.com>
305 * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
307 2003-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
309 * Makefile.in: Don't set (unused) DLLTOOL.
311 * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
312 Remove obsolete references to ENQUIRE.
314 2003-09-19 Nathanael Nerode <neroden@gcc.gnu.org>
316 * configure.in: Remove --with-elf, which doesn't work.
317 * configure: Regenerate.
318 * config.gcc: Remove references to $elf, which does nothing.
320 * config/i386/xm-vsta.h: Remove xm-file believed useless.
321 * config.build (i386-vsta): Remove reference to it.
322 * config.host (i386-vsta): Remove reference to it.
324 2003-09-19 Phil Edwards <phil@codesourcery.com>
326 * doc/install.texi: Document the multiple testsuite options.
328 2003-09-19 Gerald Pfeifer <gerald@pfeifer.com>
330 * doc/install.texi (Specific): Add the specific versions of GCC
331 where support for FreeBSD 1, HP-UX version 9 and older, and AIX
332 version 3 and older was discontinued.
334 2003-09-19 Joel Sherrill <joel@oarcorp.com>
336 * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
339 2003-09-19 Bernardo Innocenti <bernie@develer.com>
341 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
342 for -m68030, -m68020-60 and -m68020-40.
343 * config/m68k/m68k.h (TARGET_68030): New target flag.
344 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
345 TARGET_REGPARM): Remove.
346 * config/m68k/m68k.h: Regroup and renumber target flags.
347 * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
348 * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
349 * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
350 * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
351 * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
353 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
355 * config/m68k/t-rtems (m68k-*-rtems*): New.
356 * config.gcc: Use config/m68k/t-rtems.
358 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
360 * config/mips/t-rtems: New.
361 * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
363 2003-09-19 Kelley Cook <kelleycook@wideopenwest.com>
365 * cgraph.c: Fix typo in debugging output.
367 2003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
368 Eric Botcazou <ebotcazou@libertysurf.fr>
371 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
373 2003-09-18 Mike Stump <mrs@apple.com>
375 * c-ppoutput.c (print): Use fileline typedef for field 'line'.
376 (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
377 cb_ident, cb_def_pragma): Use fileline typedef.
378 * cpphash.h (struct cpp_reader): Likewise for field out.first_line.
380 2003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
382 * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
383 total parm size if a parm has incomplete type.
384 (gen_fastcall_suffix): Likewise.
386 2003-09-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
388 * except.c (output_function_exception_table): Adjust last change
389 to handle TYPE of INTEGER_CST.
391 2003-09-18 Mark Mitchell <mark@codesourcery.com>
394 * builtins.c (expand_builtin_apply): Use convert_memory_address
395 before returning the value.
397 * alias.c (find_base_value): Simplify use of
398 convert_memory_address.
399 (find_base_term): Likewise.
400 * builtins.c (expand_builtin_stejmp_setup): Likewise.
401 (expand_builtin_longjmp): Likewise.
402 (expand_builtin_prefetch): Likewise.
403 (get_memory_rtx): Likewise.
404 (expand_builtin_return): Likewise.
405 (expand_builtin_memcpy): Likewise.
406 (expand_builtin_strncpy): Likewise.
407 (expand_builtin_memset): Likewise.
408 (expand_builtin_va_arg): Likewise.
409 (expand_builtin_va_copy): Likewise.
410 (expand_builtin_alloca): Likewise.
411 * calls.c (expand_call): Likewise.
412 * except.c (expand_builtin_extract_return_addr): Likewise.
413 (expand_builtin_eh_return): Likewise.
414 * explow.c (convert_memory_address): Define even when
415 POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address
416 is already in the right mode.
417 * explow.c (memory_address): Simplify use of convert_memory_address.
418 (probe_stack_range): Likewise.
419 * expmed.c (make_tree): Likewise.
420 * expr.c (emit_block_move_in_libcall): Likewise.
421 (expand_assignment): Likewise.
422 (expand_expr): Likewise.
423 * function.c (assign_parms): Likewise.
424 (expand_function_end): Likewise.
425 * integrate.c (copy_rtx_and_substitute): Likewise.
426 * stmt.c (expand_computed_goto): Likewise.
428 2003-09-18 Roger Sayle <roger@eyesopen.com>
430 * simplify-rtx.c (simplify_unary_operation): Only transform
431 (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
432 is -1. RTL "not" is a bit-wise not, "~", not a logical not "!".
434 2003-09-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
437 * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
439 2003-09-18 Roger Sayle <roger@eyesopen.com>
441 * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
442 PARITY_EXPR): Delete unused tree codes.
443 * c-common.c (c_common_truthvalue_conversion): Delete references
444 to FFS_EXPR and POPCOUNT_EXPR.
445 * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
446 (pp_c_expression): Likewise.
447 * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
448 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
449 * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
450 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to
451 BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
452 and long long variants.
454 2003-09-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
456 * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
457 * c-pretty-print.c: Fix formatting.
458 (pp_c_integer_constant): Append type annotation to literals. Tidy.
459 (pp_c_type_specifier): Tidy.
460 (pp_c_compound_literal): New function.
461 (pp_c_initializer): Simplify..
462 (pp_c_initializer_list): Likewise.
463 (pp_c_brace_enclosed_initializer_list): New function.
464 (pp_c_postfix_expression): Simplify.
466 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
468 * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
469 one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
471 2003-09-17 Richard Henderson <rth@redhat.com>
473 * tree-optimize.c (tree_rest_of_compilation): Save and restore
476 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
478 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
480 2003-09-17 Richard Henderson <rth@redhat.com>
482 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
484 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
486 * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
487 * configure: Regenerate.
489 2003-09-17 Mark Mitchell <mark@codesourcery.com>
492 * dbxout.c (dbxout_init): Use a langhook to find builtin types.
493 * langhooks-def.h (lhd_return_null_tree_v): New function.
494 (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
495 (LANG_HOOKS_DECLS): Add it to the intializer.
496 * langhooks.c (lhd_return_null_tree_v): New function.
497 * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
499 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
501 * configure.in: Quote gcc_config_arguments for configargs.h.
502 * configure: Regenerated.
503 * gccbug.in: Don't shell-expand gcc_config_arguments.
505 2003-09-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
508 * c-pretty-print.c (pp_c_floating_constant): Append
509 type-annotation to floating constants.
511 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
513 * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
515 Use it for _MIPS_SIM.
516 * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
518 * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
520 * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
522 Fixes PR target/10190.
524 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
526 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
529 2003-09-17 Eric Botcazou <ebotcazou@libertysurf.fr>
531 PR optimization/11646
532 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
533 EDGE_ABNORMAL flag for EH edges.
534 * toplev.c (rest_of_handle_cse): Delete unreachable blocks
535 if dead edges were purged.
537 2003-09-16 Bernardo Innocenti <bernie@develer.com>
539 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
540 * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
541 * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
542 * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
544 2003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
546 * cfgcleanup.c (label_is_jump_target_p): Correct use of table
547 returned by tablejump_p.
549 2003-09-16 Joel Brobecker <brobecker@gnat.com>
551 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
553 2003-09-16 Roger Sayle <roger@eyesopen.com>
556 * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
557 argument to be VOIDmode, taking the mode of the comparison from
558 the operands. Only call simplify_relational_operation if we
559 know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
560 if comparison has a floating point result. Ensure that the
561 result is always of the specified mode.
562 (simplify_replace_rtx): Simplify call to simplify_gen_relational.
563 (simplify_unary_operation): Ensure the correct mode and cmp_mode
564 are always passed to simplify_gen_relational. Simplify NOT of
565 comparison operator in any mode, not just BImode.
566 (simplify_ternary_operation): Correct tests on the return value
567 of simplify_relational_operation to use const_true_rtx, not
568 const1_rtx. Abort if it ever returns a non-constant result.
570 * cfgloopanal.c (count_strange_loop_iterations): Use the function
571 simplify_relational_operation, not simplify_gen_relational, if
572 we're only interested in constant comparisons and will ignore
573 non-constant results.
575 2003-09-16 Roger Sayle <roger@eyesopen.com>
577 * fold-const.c (tree_swap_operands_p): New function to determine
578 the prefered ordering of operands.
579 (fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
580 operands to commutative, comparison or ternary operators. Replace
581 uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
582 transformation of A ? B : C into !A ? C : B.
584 2003-09-16 Jakub Jelinek <jakub@redhat.com>
586 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
587 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
588 * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
589 * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
590 * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
591 * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
592 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
593 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
595 2003-09-16 Jason Merrill <jason@redhat.com>
596 Jakub Jelinek <jakub@redhat.com>
598 * c-common.c (handle_warn_unused_result_attribute): New function.
599 (c_common_attribute_table): Add warn_unused_result.
600 (c_expand_expr): Issue warning when result of inlined function
601 with warn_unused_result attribute is ignored.
602 * calls.c (expand_call): Issue warning when result of function
603 with warn_unused_result attribute is ignored.
604 * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
605 * expr.c (expr_wfl_stack): Define.
606 (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
607 pass const0_rtx as target. Chain locations into expr_wfl_stack.
608 * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
609 bit if inlined function has warn_unused_result attribute.
610 * input.h (expr_wfl_stack): Declare.
611 * doc/extend.texi: Document warn_unused_result attribute.
613 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
615 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
617 2003-09-15 Bob Wilson <bob.wilson@acm.org>
619 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
621 (call_insn_operand): For PIC, don't allow a direct call to a
622 function in a different section than the current one.
624 2003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
626 * doc/invoke.texi (Warning Options): Add missing hyphen before
627 "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
628 Move "-Wold-style-definition" to the C-only section.
629 Fix the ordering of the warning options.
631 2003-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
632 Jeff Law <law@redhat.com>
634 * gcse.c (remove_reachable_equiv_notes): New.
635 replace_store_insn): Call it. Update antic list.
636 (store_killed_in_insn): Take REG_EQUAL notes into account.
637 (build_store_vectors, delete_store): Add parameter to
638 replace_store_insn call.
640 2003-09-15 Bob Wilson <bob.wilson@acm.org>
642 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
645 2003-09-15 Kazu Hirata <kazu@cs.umass.edu>
647 * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
648 (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
649 * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
651 * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
653 * config/rs6000/rs6000.c (function_arg_padding): Likewise.
654 * config/sparc/sparc.c (function_arg_padding): Likewise.
656 2003-09-15 Vladimir Makarov <vmakarov@redhat.com>
658 * haifa-sched.c (schedule_block): Use ready_remove_first instead
659 of choose_ready for non-dfa insn scheduling.
661 2003-09-15 Andreas Jaeger <aj@suse.de>
662 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
664 * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
665 * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
666 * c-parse.in: Warn about old-style parameter definition.
667 * c-common.c: Define warn_old_style_defintion.
668 * c-common.h: Declare it.
669 * c.opt: Add Wold-style-defintion.
671 2003-09-15 Andreas Jaeger <aj@suse.de>
673 * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
674 * config/rs6000/rs6000.c: Likewise.
676 2003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
678 PR optimization/10914
679 * expr.h (get_condition, canonicalize_condition): Declaration changed.
680 * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
681 and canonicalize_condition calls.
682 * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
683 delete_null_pointer_checks): Ditto.
684 * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
685 * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
686 * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
687 (canonicalize_condition, get_condition): Allow to return comparisons
688 of cc mode registers.
689 * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
690 cc mode registers comparison in condition.
692 2003-09-12 Mark Mitchell <mark@codesourcery.com>
694 * coverage.c (create_coverage): Do not call pushlevel/poplevel.
695 * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
697 * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
699 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
701 * combine.c (simplify_comparison): Convert
702 (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
703 (eq (and (lshiftrt X Y) 1) 0).
705 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
707 * alias.c: Follow spelling conventions.
708 * cpphash.h: Likewise.
709 * fold-const.c: Likewise.
711 2003-09-14 Alexandre Oliva <aoliva@redhat.com>
713 * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
714 * c-lex.c (cb_line_change): Skip line changing whenever
717 2003-09-14 Steven Bosscher <steven@gcc.gnu.org>
719 * ra.c: Convert to ISO C90 prototypes.
720 * ra-build.c: Likewise.
721 * ra-colorize.c: Likewise.
722 * ra-debug.c: Likewise.
723 * ra-rewrite.c: Likewise.
725 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
727 * Makefile.in (%.dvi): Remove excess $(docdir).
729 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
731 * function.c (STACK_BYTES): Move definition to head of file.
732 (assign_parms): Don't pass current_function_pretend_args_size
733 directly to SETUP_INCOMING_VARARGS. For partial register arguments,
734 round current_function_pretend_args_size up to STACK_BYTES. Skip any
735 excess before laying out the argument.
737 2003-09-14 Andreas Jaeger <aj@suse.de>
739 * objc/objc-act.c: Convert to ISO C90 prototypes.
740 * objc/objc-act.h: Likewise.
742 2003-09-14 Olaf Hering <olh@suse.de>
744 * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
746 2003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
749 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
750 as they already are done in config/m68k/m68k.h.
751 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
753 * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
754 (machopic_output_stub): Only generate pic base symbols when using pic
755 and generate them in the form L00000000$spb.
757 2003-09-13 Richard Henderson <rth@redhat.com>
759 * cgraphunit.c (cgraph_assemble_pending_functions): Export.
760 (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
763 2003-09-12 Dale Johannesen <dalej@apple.com>
765 * config/rs6000/rs6000.c: Fix typos in previous.
767 2003-09-12 Ziemowit Laski <zlaski@apple.com>
769 * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
770 when allocating pp->buffer.
772 2003-09-12 Geoffrey Keating <geoffk@apple.com>
774 * config/darwin.c (machopic_select_rtx_section): Use
775 const_data_section for things that might require relocation.
777 2003-09-12 H.J. Lu <hongjiu.lu@intel.com>
780 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
782 2003-09-12 Bob Wilson <bob.wilson@acm.org>
784 * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
785 * config/xtensa/linux.h (ASM_SPEC): Likewise.
786 * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
787 -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
788 -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
789 -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
790 -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
791 -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
792 and redefine corresponding TARGET_* macros with constants from the
793 xtensa-config.h header.
794 * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
795 for the options listed above.
797 2003-09-12 Dale Johannesen <dalej@apple.com>
799 * config/rs6000/rs6000-protos.h: Use C90 prototypes.
800 * config/rs6000/rs6000-c.c: Ditto.
801 * config/rs6000/rs6000.c: Ditto.
802 * config/rs6000/ sysv4.h: Ditto.
804 2003-09-12 Chris Lattner <sabre@nondot.org>
806 * loop.c: Move comments describing BIV's and GIV's to top of file
808 2003-09-12 Roger Sayle <roger@eyesopen.com>
811 * alias.c (write_dependence_p): Modify to take an additional constp
812 argument that controls whether the UNCHANGING_RTX_P flags are used.
813 (anti_dependence, output_dependence): Adjust write_dependence_p
814 callers to pass this additional argument, to return the same result.
815 (unchanging_anti_dependence): New variant of anti_dependence that
816 ignores the UNCHANGING_RTX_P property on memory references.
817 * rtl.h (unchaning_anti_dependence): Prototype here.
818 * flow.c (init_propagate_block): Place fake constant mem writes on
819 the mem_set_list so that dead writes to const variables are deleted.
820 (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
821 (mark_used_regs): Likewise.
823 2003-09-12 Richard Sandiford <rsandifo@redhat.com>
825 * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
826 (mcore_secondary_reload_class): Declare.
827 (mcore_output_inline_const_forced): Remove.
828 * config/mcore/mcore.md (movsi): Remove the code that forced
829 non-inlineable constants into a register if the target was r15
830 or the stack pointer. Remove constant restrictions from the main
831 define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
832 of an r <- P alternative. Remove fallback define_insn for reload.
833 (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
834 define_insn. Use mcore_output_move in the remaining define_insn.
835 Adjust condition and constraints in the way as for movsi.
836 (movdi): Always split unacceptable constants into two. Use
837 simplify_gen_subreg instead of operand_subword{,_force}.
838 * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
839 (mcore_output_move): Support HImode and QImode moves as well.
840 (mcore_m15_operand_p): New function.
841 (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
842 (mcore_secondary_reload_class): New function.
843 * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
844 terms of mcore_secondary_reload_class.
846 2003-09-11 Mike Stump <mrs@apple.com>
848 * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
850 2003-09-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
852 * builtins.c (fold_builtin_logarithm): if N can't be truncated to
853 MODE exactly, then only convert logN(N) -> 1.0 if
854 flag_unsafe_math_optimizations is set.
856 * builtins.c (builtin_dconsts_init, dconstpi, dconste,
857 init_builtin_dconsts): Delete.
858 * emit-rtl.c (dconstpi, dconste): Define.
859 (init_emit_once): Initialize dconstpi & dconste.
860 * real.h (dconstpi, dconste): Declare.
862 2003-09-11 Alexandre Oliva <aoliva@redhat.com>
865 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
866 for ultimate origin even if block is abstract.
868 2003-09-11 Roger Sayle <roger@eyesopen.com>
870 * combine.c (combine_simplify_rtx): Move several NOT and NEG
871 optimizations from here...
872 * simplify-rtx.c (simplify_unary_operation): to here. Recursively
873 simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
875 2003-09-11 Richard Henderson <rth@redhat.com>
877 * cgraphunit.c (cgraph_finalize_function): Add nested arg.
878 Tweek tests for function already generated.
879 (cgraph_expand_function): Don't double announce in !unit-at-a-time.
880 * cgraph.h (cgraph_finalize_function): Update for extra arg.
881 * c-decl.c (finish_function): Likewise.
883 2003-09-10 Joe Buck <jbuck@welsh-buck.org>
885 * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
887 2003-09-10 Jerry Quinn <jlquinn@optonline.net>
889 * real.c: Update URL to VAX floating point docs.
890 (decode_vax_d): Extract 8 exponent bits instead of 7.
892 2003-09-10 Ian Lance Taylor <ian@wasabisystems.com>
894 * combine.c (force_to_mode): Set fuller_mask based only on mask,
897 2003-09-11 Jan Hubicka <jh@suse.cz>
899 * c-objc-common.c (c_cannot_inline_tree_fn): Warn
900 on why function is not inlinable; do not check
902 (inline_forbidden_p): Move to...
903 * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
904 deal with alloca, longjmp.
905 (inline_forbidden_p): New static function.
906 (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
907 find_builtin_longjmp_call): Kill.
909 2003-09-10 Richard Henderson <rth@redhat.com>
911 * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
912 * cgraphunit.c: Update to match.
913 (record_call_1): Rearrange. Call lang hook for language nodes.
914 (cgraph_analyze_function): Don't call lower_function.
915 * langhooks.h (struct lang_hooks_for_callgraph): Replace
916 lower_function with analyze_expr.
917 * langhooks-def.h: Update to match.
918 * langhooks.c (lhd_callgraph_analyze_expr): New.
920 2003-09-10 Martin Husemann <martin@duskware.de>
923 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
924 constants greater than 63.
925 * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
926 against constants greater than 31.
927 (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
928 constants greater than 63.
930 2003-09-09 Richard Henderson <rth@redhat.com>
932 * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
933 * cgraph.h (cgraph_finalize_function): Update.
934 * c-decl.c (finish_function): Update.
936 2003-09-09 Devang Patel <dpatel@apple.com>
938 * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
939 * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
941 2003-09-09 Eric Christopher <echristo@redhat.com>
943 * configure.in: Change usage of 'head' to 'sed 1q'.
944 * configure: Regenerate.
946 2003-09-09 Richard Henderson <rth@redhat.com>
948 * except.c: Include cgraph.h.
949 (output_function_exception_table): Invoke
950 cgraph_varpool_mark_needed_node.
951 * Makefile.in (except.o): Update.
953 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
955 * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
956 and use it throughout.
958 2003-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
960 * builtins.c (real_dconstp, fold_builtin_logarithm,
961 fold_builtin_exponent): New, split out from fold_builtin. Also
962 generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
963 * emit-rtl.c (dconst3, dconst10, dconstthird): New.
964 (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
965 of hardcoded array size.
966 * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
967 (tree_expr_nonnegative_p): Likewise.
968 * real.h (dconst3, dconst10, dconstthird): New.
970 2003-09-09 Jan Hubicka <jh@suse.cz>
972 * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
974 (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
977 2003-09-09 Roger Sayle <roger@eyesopen.com>
979 * builtins.c (fold_builtin_cabs): Protect the complex argument
980 against multiple evaluation when optimizing cabs* into sqrt*.
982 2003-09-09 Jan Hubicka <jh@suse.cz>
984 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
986 2003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
988 * Makefile.in: Revert yesterday's change.
990 2003-09-08 Bernardo Innocenti <bernie@develer.com>
991 Peter Barada <peter@baradas.org>
993 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
994 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
995 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
996 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
997 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
998 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
999 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
1000 (m68k_compute_frame_layout): New function.
1001 (m68k_initial_elimination_offset): New function.
1002 (m68k_output_function_prologue): ColdFire-specific movem handling.
1003 (m68k_output_function_epilogue): Likewise.
1004 * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
1005 (ARG_POINTER_REGNUM): Add new definition.
1006 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
1007 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
1008 (CAN_ELIMINATE): Likewise.
1009 (INITIAL_ELIMINATION_OFFSET): Likewise.
1011 2003-09-08 Bernardo Innocenti <bernie@develer.com>
1013 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
1014 by removing redundant variable cfa_store_offset.
1016 2003-09-08 Mark Mitchell <mark@codesourcery.com>
1018 * langhooks-def.h (lhd_register_builtin_type): New function.
1019 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
1020 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1021 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
1022 * langhooks.c (lhd_register_builtin_type): New function.
1023 * c-common.h (c_register_builtin_type): Declare.
1024 * c-common.c (c_register_builtin_type): New function.
1025 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
1026 c_register_builtin_type.
1027 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
1028 __float80, and __float128 macros.
1029 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
1030 __float80, and __float128 types.
1032 2003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1035 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
1036 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
1037 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
1038 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
1039 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
1040 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
1041 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
1042 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
1043 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
1044 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
1045 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
1046 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
1047 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
1048 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
1049 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
1050 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
1051 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
1053 * doc/extend.texi: Document new builtins.
1055 2003-09-09 Jan Hubicka <jh@suse.cz>
1057 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
1059 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
1060 functions, check for COMDAT.
1061 (cgraph_assemble_pending_functions): Break out from...
1062 (cgraph_finalize_function): ... here; allow redefinig of extern inline
1064 (record_call_1): Record function references only in non-unit-at-a-time
1066 (cgraph_analyze_function): Reset current_function_decl.
1067 (cgraph_finalize_compilation_unit): Assemble pending functions.
1069 2003-09-08 Mark Mitchell <mark@codesourcery.com>
1071 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
1072 (libgov.a): Likewise.
1073 (libgcc_eh.a): Likewise.
1075 2003-09-08 Roger Sayle <roger@eyesopen.com>
1077 * fold-const.c (operand_equal_p): Clarify documentation.
1079 2003-09-08 Richard Henderson <rth@redhat.com>
1081 * c-decl.c (c_expand_body_1): Push and pop function context here.
1082 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
1083 nested argument instead of computing nesting ourselves.
1085 2003-09-08 Jakub Jelinek <jakub@redhat.com>
1087 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
1088 regstack if optimizing but not scheduling after reload.
1090 2003-09-08 Jakub Jelinek <jakub@redhat.com>
1092 * config/sparc/sparc.c (struct machine_function): New type.
1093 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
1094 (sparc_override_options): Initialize init_machine_status.
1095 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
1096 tie_symbolic_operand, tle_symbolic_operand): New functions.
1097 (symbolic_operand): Disallow tls_symbolic_operand.
1098 (symbolic_memory_operand): Likewise.
1099 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
1100 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
1102 (sparc_tls_symbol): New variable.
1103 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
1104 legitimize_address): New functions.
1105 (print_operand): Handle %&.
1106 (sparc_init_machine_status, get_some_local_dynamic_name,
1107 get_some_local_dynamic_name_1): New functions.
1108 (sparc_output_dwarf_dtprel): New function.
1109 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
1111 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
1112 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
1113 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
1114 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
1115 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1116 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
1117 (ASM_OUTPUT_DWARF_DTPREL): Define.
1118 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
1119 tie_symbolic_operand, tle_symbolic_operand.
1120 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
1121 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
1122 (tls_call_delay): New attribute.
1123 (in_call_delay): Use it.
1124 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
1125 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
1126 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
1127 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
1128 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
1129 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
1130 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
1131 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
1132 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
1133 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
1134 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
1135 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
1136 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
1137 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
1139 * config/sparc/sparc-protos.h (legitimate_constant_p,
1140 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
1141 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
1142 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
1143 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
1144 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
1145 * configure.in (sparc*-*-*): Add TLS check.
1146 * configure: Rebuilt.
1148 2003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1151 * config/i386/i386.c (memory_address_length): Fix computation when
1152 the base is esp or ebp.
1154 2003-09-07 Mark Mitchell <mark@codesourcery.com>
1157 * varasm.c (initializer_constant_valid_p): Correct logic for
1160 2003-09-07 Roger Sayle <roger@eyesopen.com>
1162 * expr.c (expand_operands): New function to expand an operand pair.
1163 (expand_expr): Call expand_operands whenever we need to expand both
1164 operands of a binary operator.
1165 (do_store_flag): Likewise for operands of comparison operations.
1167 2003-09-07 Roger Sayle <roger@eyesopen.com>
1169 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
1170 (-A)*B if we care about sign-dependent rounding.
1172 2003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
1174 * c-pretty-print.h (pp_c_left_brace): Declare.
1175 (pp_c_right_brace): Likewise.
1176 * c-pretty-print.c (pp_c_left_brace): Now a function
1177 (pp_c_right_brace): Likewise.
1179 2003-09-07 Jan Hubicka <jh@suse.cz>
1181 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
1183 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
1185 * diagnostic.c (warn_deprecated_use): Move to toplev.c
1187 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
1189 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
1190 * Makefile.in (langhooks.o): Depend on diagnostic.h
1192 2003-09-06 James E Wilson <wilson@tuliptree.org>
1194 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
1197 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
1199 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
1200 and use it throughout.
1202 2003-09-07 Jan Hubicka <jh@suse.cz>
1204 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
1206 * toplev.c (rest_of_decl_compilation): Do not finalize external
1209 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
1211 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
1213 2003-09-06 Jan Hubicka <jh@suse.cz>
1216 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
1219 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
1221 2003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
1223 * diagnostic.c (announce_function): Move to toplev.c.
1225 2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1227 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
1230 2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1232 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
1233 when gc checking is enabled.
1235 2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
1238 * c-decl.c (c_expand_body_1): Move return warning from here...
1239 (finish_function): ...to here.
1241 2003-09-05 Geoffrey Keating <geoffk@apple.com>
1243 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
1244 a subset of the input class.
1246 2003-09-05 Kazu Hirata <kazu@cs.umass.edu>
1248 * config/i860/i860.c: Follow spelling conventions.
1249 * config/i860/i860.h: Likewise.
1250 * config/sh/sh.h: Likewise.
1252 2003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
1254 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
1255 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
1256 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
1258 2003-09-05 Roger Sayle <roger@eyesopen.com>
1259 Richard Henderson <rth@redhat.com>
1261 PR optimization/1823
1262 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
1263 multiplication to implement division by constant integer.
1265 2003-09-05 Jan Hubicka <jh@suse.cz>
1267 * opts.c (decode_options): Enable unit-at-a-time at -O2.
1268 * params.def (max-inline-insns-single): Set to 500
1269 (max-inline-insns-auto): Set to 150
1270 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
1272 2003-09-04 Richard Henderson <rth@redhat.com>
1274 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
1275 (cgraph_mark_needed_node): Remove needed argument.
1276 * cgraph.h: Update to match.
1277 * cgraphunit.c (decide_is_function_needed): Split out from ...
1278 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
1279 if we generated the function.
1280 (record_call_1): Update for cgraph_mark_reachable_node.
1281 * varasm.c (mark_referenced): Likewise.
1282 * objc/objc-act.c (mark_referenced_methods): Likewise.
1284 2003-09-04 DJ Delorie <dj@redhat.com>
1286 * targhooks.c: Add comment explaining the migration process.
1288 2003-09-04 Eric Christopher <echristo@redhat.com>
1290 * config/frv/t-frv: Fix path for frv-abi.h.
1291 * config/frv/frv-asm.h: Fix string concatenation.
1293 2003-09-04 DJ Delorie <dj@redhat.com>
1295 * builtins.c (apply_args_size): Guard against a NULL cfun.
1296 (expand_builtin_apply_args_1): Likewise.
1297 (expand_builtin_apply): Likewise.
1298 Fixes PR bootstrap/12172.
1300 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1302 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
1303 assembler supports Sun syntax for cmov.
1304 * configure: Regenerate.
1305 * config.in: Likewise.
1306 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
1307 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
1308 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
1309 Fixes PR target/12101.
1311 2003-09-04 Matt Austern <austern@apple.com>
1313 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
1314 with verbosity 0, instead of DECL_NAME, for human-readable string.
1316 2003-09-04 Eric Christopher <echristo@redhat.com>
1318 * targhooks.c (default_return_in_memory): Allow
1321 2003-09-04 Eric Christopher <echristo@redhat.com>
1323 * targhooks.c (default_return_in_memory): Fix typo
1326 2003-09-04 Eric Christopher <echristo@redhat.com>
1328 * targhooks.c (default_return_in_memory): Fix default
1331 2003-09-04 Bernardo Innocenti <bernie@develer.com>
1333 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
1335 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
1336 enable coff-only code in m68k.c.
1338 2003-09-04 Nick Clifton <nickc@redhat.com>
1340 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
1342 * config/v850/v850.h: Accept v850e1 as a default CPU.
1343 Accept -mv850e1 as a command line option.
1344 * doc/invoke.texi: Document new -mv850e1 command line switch.
1345 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
1348 2003-09-04 Nick Clifton <nickc@redhat.com>
1350 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
1351 * config/v850/t-v850: Only produce one extra multilib - for
1353 * config/v850/t-v850e: New file: Only produce one extra
1354 multilib - for the v850.
1356 2003-09-04 Jakub Jelinek <jakub@redhat.com>
1358 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
1359 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
1360 * unwind.h (_Unwind_GetBSP): New prototype.
1361 * libgcc-std.ver: Add empty GCC_3.3.2 version.
1362 * mkmap-symver.awk: For symbol versions with no exported symbols,
1363 don't put anything into version script, just change all symbol
1364 versions which inherit from it to inherit from its ancestor.
1366 2003-09-04 Eric Christopher <echristo@redhat.com>
1368 * config/mips/mips.c (mips_expand_prologue): Convert to
1369 calls.struct_value_rtx hook.
1370 (reg_or_const_float_1_operand): New.
1371 * config/mips/mips.h: Update Comments.
1372 (mips_arg): Add reg_or_const_float_1_operand.
1373 * config/mips/mips.md (divdf3); Convert to expander.
1375 (*divdf3): New pattern.
1378 2003-09-04 Jan Hubicka <jh@suse.cz>
1380 * toplev.c (wrapup_global_declarations): Fix final pass in
1383 2003-09-04 Mark Mitchell <mark@codesourcery.com>
1385 * doc/extend.texi: Document removal of cast-as-lvalue extension in
1388 2003-09-04 Nicolas Roche <roche@act-europe.fr>
1390 * gcc.c (process_command): Fix typo.
1392 2003-09-03 David O'Brien <obrien@FreeBSD.org>
1395 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
1396 (PTRDIFF_TYPE): Likewise.
1397 (WCHAR_TYPE_SIZE): Likewise.
1399 2003-09-03 DJ Delorie <dj@redhat.com>
1401 * targhooks.c: New file.
1402 * targhooks.h: New file.
1403 * Makefile.in: Add targhooks.o support.
1404 (function.o): Depend on$(TARGET_H).
1406 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
1407 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
1408 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
1409 (expand_builtin_saveregs): Convert to
1410 calls.expand_builtin_saveregs hook.
1411 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
1412 here, instead of ...
1413 (get_parm_info) ... here.
1414 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
1416 (finish_function): Handle calls.promote_prototypes hook here too.
1417 * c-typeck.c (convert_arguments): Convert to
1418 calls.promote_prototypes hook.
1419 (c_convert_parm_for_inlining): Likewise.
1420 * calls.c (initialize_argument_information): Convert to
1421 calls.promote_function_args hook.
1422 (expand_call): Convert to calls.struct_value_rtx,
1423 calls.strict_argument_naming,
1424 calls.pretend_outgoing_varargs_named, and
1425 calls.promote_function_return hooks. Pass fndecl to
1426 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
1427 hooks, so they can use that.
1428 (emit_library_call_value_1): Likewise.
1429 * combine.c (setup_incoming_promotions): Convert to
1430 calls.promote_function_args hook.
1431 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
1432 * expr.c (expand_assignment): Pass call to aggregate_value_p.
1433 (expand_expr): Likewise.
1434 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
1435 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
1436 RETURN_IN_MEMORY macro defaults.
1437 * final.c (profile_function): Convert to calls.struct_value_rtx
1439 * function.c (aggregate_value_p): Accept function type tree as
1440 second parameter; try to deduce fntype from it. Convert to
1441 calls.return_in_memory hook.
1442 (assign_parms): Convert to calls.setup_incoming_varargs,
1443 calls.strict_argument_naming, calls.promote_function_args,
1444 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
1446 (expand_function_start): Likewise. Convert to
1447 calls.struct_value_rtx hook.
1448 (expand_function_end): Convert to calls.promote_function_return hook.
1449 (allocate_struct_function): Pass fndecl to aggregate_value_p.
1450 * hard-reg-set.h: Update comments to new hook names.
1451 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
1452 * reg-stack.c (stack_result): Likewise.
1453 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
1454 * stmt.c (expand_value_return): Convert to
1455 calls.promote_function_return hook.
1456 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
1457 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
1458 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
1459 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
1460 TARGET_STRICT_ARGUMENT_NAMING,
1461 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
1462 * target.h: Likewise.
1463 * tree.h (aggregate_value_p): Also takes a tree to deduce function
1464 attributes from (for target hooks).
1465 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
1466 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
1467 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
1468 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
1469 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
1472 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
1473 to aggregate_value_p.
1474 * config/arm/arm.c (arm_init_cumulative_args,
1475 arm_output_mi_thunk): Likewise.
1476 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
1478 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
1479 mips_can_use_return_insn): Likewise.
1480 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
1481 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
1482 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
1484 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
1485 function to aggregate_value_p.
1486 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
1489 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
1490 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
1491 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
1492 (sh_handle_renesas_attribute, sh_promote_prototypes,
1493 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
1494 sh_setup_incoming_varargs, sh_strict_argument_naming,
1495 sh_pretend_outgoing_varargs_named): New decls.
1496 (targetm): Add new hooks.
1497 (calc_live_regs): Save MACL and MACH if the function has the
1499 (sh_expand_prologue): Support renesas attribute.
1500 (sh_builtin_saveregs): Make static.
1501 (sh_build_va_list): Support renesas attribute.
1502 (sh_va_start): Likewise.
1503 (sh_va_arg): Likewise.
1504 (sh_promote_prototypes): New.
1505 (sh_function_arg): New, moved from sh.h. Support renesas
1507 (sh_function_arg_advance): Likewise.
1508 (sh_return_in_memory): Likewise.
1509 (sh_strict_argument_naming): Likewise.
1510 (sh_pretend_outgoing_varargs_named): Likewise.
1511 (sh_struct_value_rtx): New.
1512 (sh_attribute): Add renesas attribute.
1513 (sh_handle_renesas_attribute): New.
1514 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
1515 (sh_ms_bitfield_layout_p): Support renesas attribute also.
1516 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
1517 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
1519 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
1521 (sh_args): Add renesas_abi flag.
1522 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
1523 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
1524 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
1525 stack for the renesas abi.
1526 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
1527 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
1528 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
1529 call cookie to indicate renesas calls.
1531 2003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
1533 * gcse.c (replace_one_set): New function.
1534 (pre_insert_copy_insn): Change the order of copying
1535 to make copy propagation discover additional PRE opportunities.
1537 2003-09-03 Roger Sayle <roger@eyesopen.com>
1539 PR optimization/11700.
1540 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
1541 of a hard register is representable before trying to simplify it
1542 using subreg_hard_regno.
1544 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1546 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
1547 * configure: Regenerate.
1549 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1551 * intl.h (N_): Remove parentheses.
1553 2003-09-03 Bernardo Innocenti <bernie@develer.com>
1555 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
1556 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
1557 definition and code blocks compiled when not defined.
1558 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
1559 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
1560 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
1561 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
1563 2003-09-03 Jeff Sturm <jsturm@one-point.com>
1565 * cgraphunit.c (visited_nodes): New static variable.
1566 (record_call_1): Use walk_tree with visited_nodes.
1567 (cgraph_create_edges): Use walk_tree with visited_nodes.
1568 Setup/teardown visited_nodes hashtable.
1570 2003-09-03 Roger Sayle <roger@eyesopen.com>
1572 * toplev.c (flag_rounding_math): New global variable.
1573 (f_options): Add to the list of language independent options.
1574 * flags.h (flag_rounding_math): Prototype here.
1575 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
1576 * common.opt (frounding-math): New common command line option.
1577 * opts.c (common_handle_option): Handle OPT_frounding_math.
1578 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
1580 * doc/invoke.texi: Document this new command line option.
1582 2003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1584 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
1586 2003-09-03 Jan Hubicka <jh@suse.cz>
1588 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
1589 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
1590 * c-objc-common.c: Kill include of gt-c-objc-common.h
1591 (expand_deferred_fns, deffer_fn): Kill function.
1592 (deferred_fns): Kill variable.
1593 (finish_cdtor): Update finish_function call.
1594 (c_objc_common_finish_file): Always call cgraph code.
1595 * c-parse.c: Regenerate.
1596 * c-parse.y: Regenerate.
1597 * c-tree.h (finish_function): Update prototype.
1598 * objc-acct.c (build_module_descriptor, finish_method_def):
1599 Update call of finish_function.
1600 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
1602 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
1603 function and assemble it if needed.
1604 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
1606 (cgraph_optimize): Likewise.
1607 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
1608 even when it has no inline callees.
1609 * c-parse.in: Update calls to finish_function.
1611 2003-09-03 Nick Clifton <nickc@redhat.com>
1613 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
1614 Use #error to generate the message if TARGET_DEFAULT is not
1617 2003-09-03 Richard Sandiford <rsandifo@redhat.com>
1619 * config/mips/mips.h (MASK_UNUSED1): Remove.
1620 (MASK_XGOT, TARGET_XGOT): Define.
1621 (TARGET_SWITCHES): Add an entry for -mxgot.
1622 (ASM_SPEC): Map -mxgot to -xgot.
1623 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
1624 whether we're using a big-GOT sequences.
1625 (mips_legitimize_const_move, mips_expand_call): Likewise.
1626 (override_options): Revert 2003-01-09 change.
1627 * doc/invoke.texi: Document -mxgot.
1629 2003-09-02 Jason Merrill <jason@redhat.com>
1631 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
1632 * config/sparc/sol2.h: Not here.
1634 2003-09-02 Roger Sayle <roger@eyesopen.com>
1636 * expr.c (expand_expr): The code following both_summands performs
1637 the same task as simplify_gen_binary. Replace all gotos to
1638 both_summands with a call to simplify_gen_binary and delete the
1641 2003-09-02 Jason Merrill <jason@redhat.com>
1644 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
1646 2003-09-02 Jeff Sturm <jsturm@one-point.com>
1648 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
1649 (cgraph_optimize_function): Set current_function_decl to the
1650 fndecl we're integrating from.
1652 2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1654 * builtins.def: Break out _Complex math functions into their
1657 2003-09-02 Andreas Jaeger <aj@suse.de>
1659 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
1661 2003-09-02 Josef Zlomek <zlomekj@suse.cz>
1663 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
1664 finding the note again.
1666 2003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
1668 * config.gcc: Remove host-specific rewrites of target_alias.
1670 2003-09-01 Mark Mitchell <mark@codesourcery.com>
1672 * Makefile.in (genprogs): Fix typo.
1674 * Makefile.in (gencheck.o): Remove build commands.
1675 (dummy-conditions.o): Likewise.
1676 (read-rtl.o): Likewise.
1677 (gensupport.o): Likewise.
1678 (genconfig$(build_exeext)): Remove rule.
1679 (genconfig.o): Remove build commands.
1680 (genflags$(build_exeext)): Remove rule.
1681 (genflags.o): Remove build commands.
1682 (gencodes$(build_exeext)): Remove rule.
1683 (gencodes.o): Remove build commands.
1684 (genconstants.o): Remove build commands.
1685 (genemit$(build_exeext)): Remove rule.
1686 (genemit.o): Remove build commands.
1687 (genrecog$(build_exeext)): Remove rule.
1688 (genrecog.o): Remove build commands.
1689 (genextract$(build_exeext)): Remove rule.
1690 (genextract.o): Remove build commands.
1691 (genpeep$(build_exeext)): Remove rule.
1692 (genpeep.o): Remove build commands.
1693 (genattr$(build_exeext)): Remove rule.
1694 (genattr.o): Remove build commands.
1695 (genprognames): New variable.
1696 (genprogs): Likewise.
1697 (genobjs): Likewise.
1698 (genprogs): New rule.
1699 (genobjs): Likewise.
1700 (genattrtab.o): Remove build commands.
1701 (genautomata.o): Likewise.
1702 (genoutput$(build_exeext)): Remove rule.
1703 (genoutput.o): Remove build commands.
1704 (gengenrtl.o): Likewise.
1705 (genpreds.o): Likewise.
1706 (gengtype.o): Likewise.
1707 (genconditions.o): Likewise.
1708 (gen-protos.o): Likewise.
1710 (fix-header.o): Likewise.
1711 (scan-decls.o): Likewise.
1712 (check-g++): Combine with other check targets.
1713 (check-gcc): Likewise.
1714 (check-g77): Likewise.
1715 (check-objc): Likewise.
1717 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
1719 * config.gcc: Remove host-specific stuff which is unused here
1720 since the introduction of config.host.
1722 * doc/fragments.texi: Mention config.host.
1723 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
1724 of config.build, config.host, and config.gcc.
1726 2003-09-01 Zack Weinberg <zack@codesourcery.com>
1728 * c-decl.c (pushdecl): Don't put variables on
1729 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
1732 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
1734 * config.host: New file.
1735 * config.gcc: Remove some host-specific stuff and some
1736 logic needed only for repeated invocation.
1737 * configure.in: Use config.host.
1738 * configure: Regenerate.
1740 2003-09-01 Josef Zlomek <zlomekj@suse.cz>
1742 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
1743 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
1744 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
1745 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
1746 * tree.def (BIT_ANDTC_EXPR): Kill.
1748 2003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
1750 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
1751 * configure: Regenerate.
1753 * config.gcc: Remove references to install_headers_dir, now unused
1754 since introduction of config.build.
1755 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
1757 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
1760 * config.build: New file.
1761 * config.gcc: Remove some build-specific stuff.
1762 * configure.in: Use config.build.
1763 * configure: Regnerate.
1765 2003-08-31 Steven Bosscher <steven@gcc.gnu.org>
1766 Roger Sayle <roger@eyesopen.com>
1769 * stmt.c (expand_end_case_type): Only use jump tables for dense
1770 switch statements when optimizing for size.
1772 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
1774 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
1775 the != 0 case, which ensures pending stack adjustments are flushed.
1777 2003-08-30 Zack Weinberg <zack@codesourcery.com>
1779 * configure.frag: Delete file.
1780 * configure.in: Rename the substitution variables
1781 dep_host_xmake_file and dep_tmake_file to xmake_file and
1782 tmake_file respectively. Do not expand $srcdir in the
1783 value of these; leave that for Make. Introduce a new
1784 substitution varaible, all_lang_makefrags, which lists
1785 subdirectory Make-lang.in files; exclude these from
1786 all_lang_makefiles, which is now only for subdirectory
1787 outputs. Do not invoke configure.frag. Do not set nor
1788 AC_SUBST_FILE target_overrides, host_overrides, or
1789 language_fragments. Create build subdirectories in
1790 config.status extra commands.
1791 * configure: Regenerate.
1792 * Makefile.in: Update substitutions to match changes to
1793 configure. Use include directives instead of @-insertions
1794 to read in host, target, and language fragments.
1795 (Makefile rule): Do not invoke configure.frag. Do not copy
1796 config.status to config.run before executing it. Set
1797 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
1799 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
1801 2003-08-30 Zack Weinberg <zack@codesourcery.com>
1803 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
1804 * c-typeck.c (same_translation_unit_p): New function.
1805 (comptypes): Use it instead of flags parameter to identify
1806 structure types from different translation units.
1807 * c-decl.c (duplicate_decls): Always call comptypes with
1808 COMPTYPE_STRICT flags argument.
1809 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
1812 2003-08-30 Zack Weinberg <zack@codesourcery.com>
1814 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
1815 * c-decl.c (struct c_scope): Remove "incomplete" field.
1816 (pushdecl): Attach variables with incomplete types to
1817 the TYPE_MAIN_VARIANT of the incomplete type in question.
1818 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
1819 to complete, not at current_scope->incomplete. All such
1820 variables do need completion.
1822 2003-08-30 Richard Earnshaw <rearnsha@arm.com>
1823 Nicolas Pitre <nico@cam.org>
1825 * arm/lib1funcs.asm (RETCOND): Delete.
1826 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
1827 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
1828 (__ARM_ARCH__): Move here from ieee754-?f.S.
1829 (RET, RETc): Clean up definitions.
1830 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
1831 (FUNC_END): New macro that marks the end of any function.
1832 (ARM_FUNC_START): New macro that allows an assembler routine to be
1833 implemented in ARM code even if a Thumb-only build.
1834 Unconditionally include ieee754-?f.S.
1835 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
1836 Mark ends of functions.
1837 Split into separate conditionally-compiled units.
1838 Use RETLDM to return from routines.
1839 * arm/ieee754-sf.S: Similarly.
1840 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
1841 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
1842 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
1843 _fixsfsi and _fixunssfsi.
1845 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
1846 multiplication underflows to zero.
1847 (__adddf3): Fix bug when using VFP ordering on little-endian
1849 (__fixdfsi): Use rrx to extract the carry into a register instead of
1850 MRS instruction. Optimize later use of result.
1851 * arm/ieee754-sf.S (__fixsfsi): Likewise.
1852 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
1854 2003-08-29 Richard Henderson <rth@redhat.com>
1856 * tree-optimize.c: New file.
1857 * Makefile.in (OBJS-archive): Add tree-optimize.o.
1858 (tree-optimize.o): New.
1859 * c-decl.c (store_parm_decls): Use allocate_struct_function.
1860 (finish_function): Don't free_after_parsing or free_after_compilation.
1861 (set_save_expr_context): Move to tree-optimize.c.
1862 (c_expand_body_1): Use tree_rest_of_compilation.
1863 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
1864 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
1865 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
1866 iterate until closure.
1867 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
1868 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
1869 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
1870 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
1871 * toplev.h (tree_rest_of_compilation): Declare it.
1873 2003-08-29 Richard Henderson <rth@redhat.com>
1875 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
1876 * integrate.c (save_for_inline): Set saved_for_inline.
1877 * c-semantics.c (genrtl_scope_stmt): Check it.
1878 * toplev.c (wrapup_global_declarations): Check it.
1879 (rest_of_handle_inlining): Set and check rtl_inline_init.
1880 (rest_of_compilation): Remove out of date comment.
1882 2003-08-29 Richard Henderson <rth@redhat.com>
1884 * function.c (allocate_struct_function): New, split out of ...
1885 (prepare_function_start, init_function_start): ... here.
1886 * expr.c (init_expr): Use ggc_alloc_cleared.
1887 * stmt.c (init_stmt_for_function): Likewise.
1888 * tree.h (allocate_struct_function): Declare.
1890 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
1892 * config.gcc: Don't use negated character class in shell case
1895 2003-08-29 Richard Henderson <rth@redhat.com>
1897 * function.h (struct function): Move function_frequency and
1898 max_jumptable_ents before start of bit field members.
1900 2003-08-29 Richard Henderson <rth@redhat.com>
1902 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
1903 (fold_builtin_constant_p) ... not here.
1905 2003-08-29 Richard Henderson <rth@redhat.com>
1907 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
1908 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
1909 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
1911 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1913 * builtins.def: Fix typos.
1914 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
1915 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
1916 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
1917 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
1918 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
1920 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
1921 Use ATTR_MATHFN_FPROUNDING_ERRNO.
1923 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
1925 * config.gcc (i386-*-vsta): Fix obvious bogosity.
1927 * fixinc/inclhack.def: Remove special cases for unsupported
1928 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
1929 * fixinc/fixincl.x: Regenerate.
1931 2003-08-29 Mark Mitchell <mark@codesourcery.com>
1933 * Makefile.in (cpp.info): Just state dependencies.
1934 (gcc.info): Likewise.
1935 (gccint.info): Likewise.
1936 (gccinstall.info): Likewise.
1937 (cppinternals.info): Likewise.
1938 (cpp.dvi): Likewise.
1939 (gcc.dvi): Likewise.
1940 (gccint.dvi): Likewise.
1941 (gccinstall.dvi): Likewise.
1942 (cppinternals.dvi): Likewise.
1948 (fsf-funding.7): Likewise.
1949 ($(objdir)/%.info): New pattern rule.
1952 2003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
1954 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
1955 (restage2): Likewise.
1956 (restage3): Likewise.
1957 (restage4): Likewise.
1958 (restageprofile): Likewise.
1959 (restagefeedback): Likewise.
1960 (bubblestrap): Likewise.
1962 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
1964 * config.gcc: Narrow unsupported target match to avoid clobbering
1965 i?86-sequent-sysv4*.
1967 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1969 * builtins.c (mathfn_built_in): Handle new math builtins.
1971 2003-08-28 Per Bothner <per@bothner.com>
1973 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
1974 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
1975 (_cpp_lex_buffer): Likewise.
1976 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
1978 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
1980 * config/s390/s390.md ("*mulsi3_sign"): New insn.
1981 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
1982 ("mulsidi3"): ... this new insn.
1983 ("umulsidi3"): New insn.
1984 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
1985 mixed-mode matching constraints.
1986 ("udivmodsi4", "udivmoddisi3"): New insns.
1987 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
1989 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1991 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
1992 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
1993 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
1994 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
1995 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
1996 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
1997 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
1998 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
1999 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
2000 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
2001 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
2002 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
2003 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
2004 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
2005 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
2006 * tree.c: Assign new type_nodes.
2007 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
2008 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
2009 (float_ptr_type_node, double_ptr_type_node,
2010 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
2012 * doc/extend.texi: Document new builtins.
2014 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2016 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
2017 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
2019 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
2020 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
2021 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
2022 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
2023 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
2024 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
2025 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
2026 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
2027 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
2028 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
2030 * doc/extend.texi: Document new builtins.
2032 2003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
2034 * fixinc/mkfixinc.sh: Remove special case code for unsupported
2035 variants of i?86, powerpcle, and thumb.
2036 * fixinc/mkfixinc.sh: Remove special case code for unsupported
2037 arm and hppa variants.
2039 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2041 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
2042 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
2043 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
2044 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
2045 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
2046 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
2047 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
2048 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
2049 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
2050 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
2052 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
2053 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
2054 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
2055 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
2056 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
2057 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
2058 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
2059 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
2060 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
2061 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
2062 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
2063 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
2064 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
2065 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
2066 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
2067 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
2068 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
2069 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
2070 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
2071 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
2072 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
2073 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
2074 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
2075 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
2076 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
2077 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
2078 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
2079 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
2080 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
2081 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
2082 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
2084 * doc/extend.texi: Document new builtins.
2086 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2088 * config/s390/s390.c (legitmate_constant_p): Use LARL on
2089 zSeries machines even in 31-bit addressing mode.
2090 (legitimate_reload_constant_p): Likewise.
2091 (legitimize_pic_address): Likewise.
2092 (legitimize_tls_address): Likewise.
2093 (s390_split_branches): Likewise.
2094 (s390_dump_pool): Likewise.
2095 (s390_mainpool_finish): Likewise.
2096 (s390_chunkify_start): Likewise.
2097 (s390_select_rtx_section): Likewise.
2098 * config/s390/s390.md ("doloop_si"): Likewise.
2099 ("pool_start_31", "pool_end_31"): Likewise.
2100 ("pool_start_64", "pool_end_64"): Likewise.
2101 ("main_base_31_small", "main_base_31_large"): Likewise.
2102 ("main_base_64"): Likewise.
2103 ("reload_base_31", "reload_base_64"): Likewise.
2104 ("*movsi_larl"): New insn.
2105 ("cjump", "icjump"): Use long branches on zSeries machines.
2107 ("call"): Use BRASL on zSeries machines.
2108 ("call_value", "call_value_tls"): Likewise.
2109 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
2111 ("*bras", "*brasl", "*basr") ... these new insns.
2112 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
2113 "bas_31_r"): Remove and replace by ...
2114 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
2115 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
2116 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
2117 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
2118 ("*return_si", "*return_di"): Remove and replace by ...
2119 ("*return"): ... this new insn.
2120 ("rotlsi3"): Allow on zSeries machines.
2122 * config/s390/s390.c (legitimize_reload_constant_p): Use
2123 LL/LH type instructions in z/Architecture mode.
2124 * config/s390/s390.md ("*movsi_lli"): Likewise.
2125 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
2126 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
2127 ("*extendqisi2"): Use LB in z/Architecture mode.
2128 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
2129 z/Architecture mode.
2130 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
2133 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
2135 ("ptr_extend"): Allow only in 64-bit mode.
2137 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
2139 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
2140 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
2142 (main): Only use standard_startfile_prefix if native.
2143 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
2145 2003-08-27 Per Bothner <pbothner@apple.com>
2147 * cpperror.c (print_location): Don't check for !pfile->buffer. That
2148 test fails following my 08-21 change, and it seems unnecessary anyway.
2149 (cpp_error): Likewise.
2151 2003-08-27 Jason Merrill <jason@redhat.com>
2153 * real.c (do_multiply): Initialize with memset.
2155 2003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2157 * gcov.c (typedef struct arc_info): New field cs_count.
2158 (accumulate_line_counts): Find cycles correctly.
2160 2003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2162 * config/s390/s390.c (struct machine_function): Remove member
2164 (s390_optimize_prolog): Replace TEMP_REG argument with
2165 TEMP_USED and BASE_USED. Do not check get_pool_size ().
2166 (general_s_operand): Accept all immediates before reload if
2167 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
2169 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
2170 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
2171 (s390_alloc_pool): New function.
2172 (s390_new_pool): Call it.
2173 (s390_dump_pool): Add REMOTE_LABEL argument.
2174 (s390_chunkify_start): Add BASE_REG argument. Do not check
2176 (s390_chunkify_finish): Add BASE_REG argument. Adapt
2177 s390_dump_pool call.
2178 (s390_pool_count, s390_nr_constants): Remove.
2179 (s390_output_constant_pool): Remove.
2180 (s390_mainpool_start): New function.
2181 (s390_mainpool_finish): New function.
2182 (s390_mainpool_cancel): New function.
2183 (s390_reorg): Implement main literal pool handling.
2184 (s390_emit_prologue): Emit main_pool placeholder instead of
2185 literal_pool_31 / literal_pool_64 insns.
2186 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
2187 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
2188 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
2189 ("main_base_31_small", "main_base_31_large"): New insns.
2190 ("main_base_64", "main_pool"): New insns.
2191 ("literal_pool_31", "literal_pool_64"): Remove.
2193 2003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
2195 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
2197 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
2199 * fixinc/fixincl.x: Regenerate.
2201 2003-08-27 Richard Earnshaw <rearnsha@arm.com>
2203 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
2204 (L_ieee754_dp): New. Include ieee754-df.S.
2205 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
2206 and compilation in apcs-26 mode.
2207 * arm/ieee754-df.S: Likewise.
2208 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
2209 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
2211 2003-08-27 Nicolas Pitre <nico@cam.org>
2213 * arm/ieee754-sf.S: New.
2214 * arm/ieee754-df.S: New.
2216 2003-08-27 Jakub Jelinek <jakub@redhat.com>
2218 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
2219 and restore it if returning NULL.
2221 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
2223 * calls.c (initialize_argument_information): If an argument has no
2224 stack space associated with it, and BLOCK_REG_PADDING is defined,
2225 use it to decide at which end the argument should be padded.
2226 * function.c (assign_parms): Allocate BLKmode stack slots.
2227 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
2228 (mips_pad_reg_upward): Declare.
2229 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
2230 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
2231 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
2232 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
2233 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
2234 (mips_expand_call): Remove code for generating structure shifts.
2235 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
2236 types unless using the EABI.
2237 (function_arg_advance): Don't generate shift instructions.
2238 (function_arg): Don't return them. Don't short-circuit the
2239 check for double structure chunks for DFmode arguments.
2240 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
2241 (mips_expand_prologue): Remove code to emit structure shifts.
2242 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
2243 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
2244 comments to say that only structure returns are a problem.
2246 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
2248 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
2249 Fix to match produced versions.
2250 * fixinc/inclhack.def (longlong_t): New disabled test, ported
2252 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
2254 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
2255 ported from fixinc.ptx.
2257 2003-08-26 Per Bothner <pbothner@apple.com>
2259 * cpplib.h (struct cpp_token): Change type of field line to fileline.
2260 (cpp_error_with_line): Use fileline for appropriate parameter.
2261 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
2262 (struct cpp_reader): Likewise for fields line and directive_line.
2263 (_cpp_begin_message): Use fileline for appropriate parameter.
2264 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
2265 cpp_error): Use fileline for appropriate parameters and variables.
2266 (print_location): New local lin, since it is not a fileline.
2268 2003-08-26 Roger Sayle <roger@eyesopen.com>
2271 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
2272 (FLOAT_TYPE_P): Define in terms of these two new macros.
2273 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
2274 for complex floating point types.
2276 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
2278 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
2279 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
2280 s390_output_pool_entry.
2282 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
2284 * fixinc/inclhack.def (svr4_preproc_lint_on,
2285 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
2286 fixes, ported from fixinc.svr4.
2288 2003-08-26 Mark Mitchell <mark@codesourcery.com>
2290 * doc/install.texi (Prerequisites): Mention GNU make requirement.
2292 * Makefile.in (AR_FOR_TARGET): Export it.
2293 (AR_CREATE_FOR_TARGET): Likewise.
2294 (AR_FLAGS_FOR_TARGET): Likewise.
2295 (AR_EXTRACT_FOR_TARGET): Likewise.
2297 (BUILD_PREFIX): Likewise.
2298 (BUILD_PREFIX_1): Likewise.
2299 (DESTDIR): Likewise.
2300 (GCC_FOR_TARGET): Likewise.
2301 (INCLUDES): Likewise.
2302 (INSTALL_DATA): Likewise.
2303 (LIB1ASMSRC): Likewise.
2304 (LIBGCC2_CFLAGS): Likewise.
2305 (MACHMODE_H): Likewise.
2306 (NM_FOR_TARGET): Likewise.
2307 (RANLIB_FOR_TARGET): Likewise.
2308 (libsubdir): Likewise.
2309 (slibdir): Likewise.
2310 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
2312 (libgcc.a): Don't pass them here.
2313 (stmp-multilib): Or here.
2314 (install-libgcc): Or here.
2315 (install-multilib): Or here.
2316 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
2317 (stage1_build): Or here.
2319 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
2321 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
2322 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
2324 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
2326 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
2327 "*fmaddsf", "*fmsubsf"): New insns.
2329 2003-08-26 Roger Sayle <roger@eyesopen.com>
2331 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
2332 (C1*C2)/X when unsafe math optimizations are allowed.
2333 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
2334 math optimizations. Minor code clean-ups. Recursively call
2335 fold when constructing sub-expressions.
2337 2003-08-26 Roger Sayle <roger@eyesopen.com>
2339 * builtins.c (fold_builtin_bitop): New function to perform constant
2340 folding of ffs, clz, ctz, popcount and parity builtin functions
2341 and their long and long long variants (such as ffsl and ffsll).
2342 (fold_builtin): fold_builtin_bitop when appropriate.
2343 * simplify-rtx.c (simplify_unary_operation): Honor both
2344 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
2345 evaluating clz and ctz at compile-time, for operands wider
2348 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
2350 * builtins.c (build_function_call_expr): Don't set
2351 TREE_SIDE_EFFECTS here.
2352 * expr.c (emit_block_move_via_libcall): Likewise.
2353 (clear_storage_via_libcall): Likewise.
2354 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
2357 * gcse.c (is_too_expensive): New function.
2358 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
2360 2003-08-25 Zack Weinberg <zack@codesourcery.com>
2362 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
2363 commented-out logic to use DCE threads (if present), add
2364 support for POSIX threads.
2365 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
2366 #defines for -pthread. Add -lpthread to LIB_SPEC when
2367 -pthread. In both cases take -mt as a synonym for -pthread
2368 for acc compatibility.
2369 Define GTHREAD_USE_WEAK to 0.
2370 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
2371 Remove old logic for DCE threads from LIB_SPEC.
2372 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
2374 2003-08-25 Roger Sayle <roger@eyesopen.com>
2376 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
2377 return 0 for invalid argument types. Instead drop through to a
2378 call of expand_call at the bottom of function. If op is SQRT,
2379 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
2381 2003-08-25 Richard Henderson <rth@redhat.com>
2383 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
2384 result when op0 is SImode.
2386 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
2388 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
2390 * fixinc/fixincl.x: Regenerate.
2391 * fixinc/tests/base/sys/signal.h: Regenerate.
2393 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
2395 * combine.c (simplify_comparison): Re-enable widening of comparisons
2396 with non-paradoxical subregs of non-REG expressions.
2398 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
2400 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
2402 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
2404 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
2406 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2408 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
2409 * c-pretty-print.h (c_pretty_printer): Now typedef to the
2410 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
2411 (struct c_pretty_print_info): Document. Add new fields.
2412 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
2413 (pp_direct_abstract_declarator): New macro.
2414 (pp_ptr_operator): Likewise.
2415 (pp_simple_type_specifier): Likewise.
2416 (pp_expression): Likewise.
2417 (pp_parameter_list): Rename from pp_parameter_declaration.
2418 * c-pretty-print.c (pp_c_whitespace): Now a function.
2419 (pp_c_left_paren): Likewise.
2420 (pp_c_right_paren): Likewise.
2421 (pp_c_dot): Likewise.
2422 (pp_c_ampersand): Likewise.
2423 (pp_c_arrow): Likewise.
2424 (pp_c_semicolon): Likewise.
2425 (pp_c_type_cast): New function.
2426 (pp_c_space_for_pointer_operator): Likewise.
2427 (pp_c_call_argument_list): Likewise.
2428 (pp_c_cv_qualifier): Adjust prototype.
2429 (pp_c_type_qualifier_list): Likewise.
2430 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
2431 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
2432 Adjust to follow standard grammar.
2433 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
2434 REFERENCE_TYPE. Tidy.
2435 (pp_c_parameter_type_list): Adjust prototype. Tidy.
2436 (pp_c_parameter_declaration): Remove.
2437 (pp_c_abstract_declarator): Adjust prototype.
2438 (pp_c_direct_abstract_declarator): Likewise.
2439 (pp_c_type_id): Likewise.
2440 (pp_c_storage_class_specifier): Likewise.
2441 (pp_c_function_specifier): Likewise.
2442 (pp_c_declaration_specifiers): Likewise.
2443 (pp_c_direct_declarator): Likewise.
2444 (pp_c_declarator): Likewise.
2445 (pp_c_declarator): Likewise.
2446 (pp_c_declaration): Likewise.
2447 (pp_c_attributes): Likewise. Tidy.
2448 (pp_c_function_definition): Adjust prototype.
2449 (pp_c_char): Likewise.
2450 (pp_c_string_literal): Likewise.
2451 (pp_c_integer_constant): Likewise.
2452 (pp_c_character_constant): Likewise.
2453 (pp_c_bool_constant): Likewise.
2454 (pp_c_enumeration_constant): Likewise.
2455 (pp_c_floating_constant): Likewise.
2456 (pp_c_constant): Likewise.
2457 (pp_c_identifier): Likewise.
2458 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
2459 (pp_c_initializer): Adjust prototype.
2460 (pp_c_init_declarator): Likewise.
2461 (pp_c_initializer_list): Likewise.
2462 (pp_c_id_expression): Likewise.
2463 (pp_c_postfix_expression): Likewise.
2464 (pp_c_expression_list): Likewise.
2465 (pp_c_unary_expression): Likewise.
2466 (pp_c_cast_expression): Likewise.
2467 (pp_c_multiplicative_expression): Likewise.
2468 (pp_c_additive_expression): Likewise.
2469 (pp_c_shift_expression): Likewise.
2470 (pp_c_relational_expression): Likewise.
2471 (pp_c_equality_expression): Likewise.
2472 (pp_c_and_expression): Likewise.
2473 (pp_c_exclusive_or_expression): Likewise.
2474 (pp_c_inclusive_or_expression): Likewise.
2475 (pp_c_logical_and_expression): Likewise.
2476 (pp_c_logical_or_expression): Likewise.
2477 (pp_c_conditional_expression): Likewise.
2478 (pp_c_assignment_expression): Likewise.
2479 (pp_c_expression): Likewise. Tidy.
2480 (pp_c_statement): Likewise. Document.
2481 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
2483 * c-lang.c (c_initialize_diagnostics): Update.
2484 * c-common.h (strip_pointer_operator): Declare.
2485 * c-common.c (strip_pointer_operator): Define.
2487 2003-08-25 Mark Mitchell <mark@codesourcery.com>
2490 * tree.h (build_method_type_directly): Declare.
2491 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
2492 (vector_size_helper): Likewise.
2493 * tree.c (build_method_type_directly): New function.
2494 (build_method_type): Use it.
2496 2003-08-24 Richard Henderson <rth@redhat.com>
2498 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
2499 for 16-byte vector modes if sse not enabled; warn for abi change.
2500 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
2502 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
2504 * rtlanal.c (may_trap_p): Simplify an integer comparison.
2506 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
2508 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
2509 comment. Enable for DYNIX/ptx systems (when they switch to
2510 regular fixincludes).
2511 * fixinc/fixincl.x: Regenerate.
2513 2003-08-23 Jason Eckhardt <jle@rice.edu>
2515 * config/i860/t-i860: New.
2516 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
2518 2003-08-23 Jakub Jelinek <jakub@redhat.com>
2520 * c-decl.c (pushdecl): Only put decls which finish_struct will do
2521 something about onto incomplete chain.
2522 (finish_struct): If not removing type from incomplete
2525 2003-08-20 Jan Hubicka <jh@suse.cz>
2528 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
2531 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
2532 const_0_to_15_operand, const_0_to_255_operand): New predicates.
2533 * i386.h (PREDICATE_CODES): Add these.
2534 * i386.c (pinsrw and pextrw patterns): Use them.
2537 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
2540 * expr.c (convert_modes): Deal properly with integer to vector
2541 constant conversion.
2544 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
2546 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
2548 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
2549 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
2550 ("*movhi"): ... this.
2551 ("movqi", "*movqi"): Likewise.
2552 ("movqi_64"): Remove.
2553 ("*zero_extendhisi2_31"): Change predicate to s_operand.
2555 2003-08-23 Dale Johannesen <dalej@apple.com>
2556 * calls.c (emit_library_call_value_1): Fix obvious errors in
2557 arguments to emit_group_store.
2559 2003-08-23 Jason Eckhardt <jle@rice.edu>
2561 * calls.c (emit_library_call_value_1): Remove code related
2562 to LIBGCC_NEEDS_DOUBLE.
2563 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
2564 * doc/tm.texi: Likewise.
2565 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
2567 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
2569 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
2571 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
2573 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
2574 as well. Put memory references in the varargs alias set.
2575 (mips_expand_prologue): Remove varargs handling from here.
2577 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
2579 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
2580 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
2581 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
2582 for function pointer calls.
2583 * config/s390/s390.md ("*negdi2_31"): Likewise.
2585 2003-08-23 Roger Sayle <roger@eyesopen.com>
2587 * combine.c (apply_distributive_law): Correct comment.
2589 2003-08-23 Jason Eckhardt <jle@rice.edu>
2591 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
2593 2003-08-22 Jason Eckhardt <jle@rice.edu>
2595 * config/i860/i860.c (i860_build_va_list): Create the va_decl
2596 declaration. Document the va_list structure.
2597 (i860_va_start): Initialize the va_list structure.
2598 (i860_va_arg): Rewrite completely.
2599 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
2600 * config/i860/varargs.asm: Do not allocate or initialize
2601 a va_list. Return the address of the register save area.
2603 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
2605 * config/iq2000/iq2000.c: Fix comment typos.
2606 * config/iq2000/iq2000.md: Likewise.
2608 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
2610 * config/iq2000/iq2000.c: Follow spelling conventions.
2611 * config/iq2000/iq2000.h: Likewise.
2612 * config/mn10300/mn10300.c: Likewise.
2614 2003-08-22 Jason Eckhardt <jle@rice.edu>
2616 * config/i860/i860.c (output_move_double): Don't set latehalf
2617 to zero for CONST_INT (since it could be, e.g., -1).
2619 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
2620 (MODSI3_LIBCALL): ...with this one.
2621 (UREMSI3_LIBCALL): Replace this macro...
2622 (UMODSI3_LIBCALL): ...with this one.
2624 2003-08-22 Jason Eckhardt <jle@rice.edu>
2626 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
2627 (output_delayed_branch): Remove prototype.
2628 (single_insn_src_p): Remove prototype.
2629 * config/i860/i860.c (single_insn_src_p): Remove function.
2630 (output_delayed_branch): Remove function.
2631 (output_delay_insn): Remove function.
2632 (va_start): Remove unconditional test and dead code, re-format.
2633 Fix coding style and spelling problems in various comments.
2634 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
2635 (blockage pattern): ...and use it here.
2636 (all define_peephole patterns related to delayed branches): Remove.
2637 Fix coding style and spelling problems in various comments.
2639 2003-08-22 Jason Eckhardt <jle@rice.edu>
2641 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
2642 Remove all uses of the PARAMS macro. Remove superflous prototypes.
2643 Convert all function definitions from traditional to ISO C90 syntax.
2644 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
2645 with 'GCC'. Remove all uses of the PARAMS macro.
2646 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
2647 * config/i860/i860.md: Likewise.
2648 * config/i860/sysv4.h: Likewise.
2649 * config/i860/varargs.asm: Likewise.
2651 2003-08-22 Jason Eckhardt <jle@rice.edu>
2653 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
2655 (tdesc_section): Add prototype.
2656 Update copyright dates.
2657 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
2658 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
2659 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
2660 (targetm): Likewise.
2661 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
2662 for '%d' where necessary.
2663 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
2664 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
2665 by UNITS_PER_WORD when referencing (likewise for .floats).
2666 (I860_SVR4_VARARGS): Rename...
2667 (I860_SVR4_VA_LIST): ...to this.
2668 Call build() with 't' rather than 'field'.
2669 (i860_rtx_costs): New function.
2670 (TARGET_RTX_COSTS): Define.
2671 (i860_internal_label): New function.
2672 (TARGET_ASM_INTERNAL_LABEL): Define.
2673 (i860_file_start): New function.
2674 Update copyright dates.
2675 * config/i860/i860.h (CPP_PREDEFINES): Remove.
2676 (TARGET_CPU_CPP_BUILTINS): Define.
2677 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
2678 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
2679 (ASM_FILE_START): Remove.
2680 (ASM_FILE_START_1): Remove.
2681 (ASM_GLOBALIZE_LABEL): Remove.
2682 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
2683 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
2684 with targetm.asm_out.internal_label.
2685 Update copyright dates.
2686 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
2687 (CPP_PREDEFINES): Remove.
2688 (TARGET_OS_CPP_BUILTINS): Define.
2689 (GLOBAL_ASM_OP): Define.
2690 (ASM_FILE_START): Remove.
2691 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
2692 (TARGET_ASM_FILE_START): Define.
2693 Update copyright dates.
2695 2003-08-22 Jason Eckhardt <jle@rice.edu>
2697 * gcc/config.gcc (i860-*-sysv4*): Add target.
2698 * config/i860/i860-protos.h: New.
2699 * config/i860/i860.c: New.
2700 * config/i860/i860.h: New.
2701 * config/i860/i860.md: New.
2702 * config/i860/sysv4.h: New.
2703 * config/i860/varargs.asm: New.
2704 * config/i860/x-sysv4: New.
2706 2003-08-22 Jason Eckhardt <jle@rice.edu>
2708 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
2709 Remove all uses of PARAMS macro.
2710 Convert all function definitions to ISO C90 syntax.
2711 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
2712 * config/pa/fptr.c: Likewise.
2713 * config/pa/lib2funcs.asm: Likewise.
2714 * config/pa/long_double.h: Likewise.
2715 * config/pa/milli64.S: Likewise.
2716 * config/pa/pa-64.h: Likewise.
2717 * config/pa/pa-hpux.h: Likewise.
2718 * config/pa/pa-hpux10.h: Likewise.
2719 * config/pa/pa-hpux11.h: Likewise.
2720 * config/pa/pa-linux.h: Likewise.
2721 * config/pa/pa-modes.def: Likewise.
2722 * config/pa/pa-osf.h: Likewise.
2723 * config/pa/pa-pro-end.h: Likewise.
2724 * config/pa/pa.md: Likewise.
2725 * config/pa/pa32-linux.h: Likewise.
2726 * config/pa/pa64-linux.h: Likewise.
2727 * config/pa/pa64-hpux.h: Likewise.
2728 * config/pa/pa64-regs.h: Likewise.
2729 * config/pa/quadlib.c: Likewise.
2730 * config/pa/rtems.h: Likewise.
2731 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
2732 all uses of the PARAMS macro.
2733 * config/pa/pa.h: Likewise.
2734 * config/pa/som.h: Likewise.
2736 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
2737 Remove all uses of PARAMS macro.
2738 Convert all function definitions to ISO C90 syntax.
2739 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
2740 Remove all uses of PARAMS macro.
2741 * config/iq2000.h: Remove all uses of PARAMS macro.
2742 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
2744 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
2746 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
2747 * config/s390/s390.c (gen_consttable): Remove.
2748 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
2749 (s390_output_pool_entry): New function.
2750 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
2751 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
2752 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
2753 (UNSPECV_POOL_ENTRY): ... this new constant.
2754 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
2755 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
2756 ("*pool_entry"): ... and replace by this new insn.
2757 ("literal_pool_31"): Do not emit anchor label if pool empty.
2759 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
2760 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
2761 (s390_fixup_clobbered_return_reg): Remove.
2762 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
2763 (s390_return_addr_rtx): Always retrieve return address from save area
2764 slot. Use save_return_addr_p to force slot to be filled.
2765 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
2767 2003-08-22 Chris Demetriou <cgd@broadcom.com>
2769 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
2770 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
2771 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
2772 around SB-1 errata if TARGET_FIX_SB1 is set.
2773 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
2774 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
2776 2003-08-22 Roger Sayle <roger@eyesopen.com>
2778 * hashtable.c (ht_expand): Avoid calculating rehash for the common
2779 case that the first probe hits an empty hash table slot.
2781 2003-08-22 Mark Mitchell <mark@codesourcery.com>
2783 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
2785 2003-08-22 Mark Mitchell <mark@codesourcery.com>
2787 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
2788 (ptr_extend_plus_imm): ... this.
2789 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
2790 optimization in C++.
2791 (ia64_output_mi_thunk): Support ILP32 mode.
2793 2003-08-22 Bernardo Innocenti <bernie@develer.com>
2795 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
2797 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
2799 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
2801 * config/i386/i386.c (const_int_1_operand): Simplify an
2804 2003-08-22 Alan Modra <amodra@bigpond.net.au>
2806 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
2807 * config/rs6000/ppc64-fp.c: Likewise.
2809 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
2811 * cfgcleanup.c: Fix comment typos.
2812 * emit-rtl.c: Likewise.
2813 * optabs.c: Likewise.
2814 * ra-build.c: Likewise.
2815 * rtlanal.c: Likewise.
2818 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
2820 * c-decl.c: Fix comment formatting.
2821 * cfgrtl.c: Likewise.
2822 * combine.c: Likewise.
2823 * convert.c: Likewise.
2824 * dominance.c: Likewise.
2825 * dwarf2out.c: Likewise.
2826 * dwarfout.c: Likewise.
2827 * expmed.c: Likewise.
2828 * fold-const.c: Likewise.
2830 * genattrtab.c: Likewise.
2831 * ggc-common.c: Likewise.
2832 * mips-tfile.c: Likewise.
2833 * regmove.c: Likewise.
2835 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
2837 * builtin-attrs.def: Fix comment formatting.
2838 * c-pretty-print.c: Likewise.
2839 * diagnostic.h: Likewise.
2840 * langhooks.h: Likewise.
2841 * recog.c: Likewise.
2842 * simplify-rtx.c: Likewise.
2843 * tree.def: Likewise.
2845 2003-08-22 Bernardo Innocenti <bernie@develer.com>
2847 * config/m68k/m68k-protos.h: Convert to ISO C90.
2848 * config/m68k/m68k.c: Likewise.
2850 2003-08-21 Bernardo Innocenti <bernie@develer.com>
2851 Paul Dale <pauli@snapgear.com>
2852 Peter Barada <peter@baradas.org>
2854 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
2857 2003-08-21 Zack Weinberg <zack@codesourcery.com>
2859 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
2860 * config.gcc (*-*-openbsd): Don't set tm_file.
2861 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
2862 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
2863 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
2864 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
2865 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
2866 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
2867 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
2868 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
2869 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
2870 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
2871 xscale-*-coff): Use explicit and complete lists of target headers
2872 to include. Move definitions to tm_defines where appropriate.
2873 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
2874 not-yet-contributed configuration.
2876 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
2877 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
2878 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
2879 * config/i386/nto.h, config/iq2000/iq2000.h,
2880 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
2881 * config/m68k/linux.h, config/m68k/m68k-aout.h
2882 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
2883 * config/m68k/netbsd.h, config/m68k/openbsd.h
2884 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
2885 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
2886 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
2887 Remove includes of other target config headers, and
2888 definitions of macros moved to tm_defines lists. Add #undefs
2889 where now necessary to prevent redefinition warnings.
2891 * config/h8300/coff.h: New file split out of...
2892 * config/h8300/elf.h: ...here.
2893 * config/m68k/hp320base.h: New file split out of...
2894 * config/m68k/hp320.h: ...here.
2895 * config/rs6000/lynxbase.h: New file split out of...
2896 * config/rs6000/lynx.h: ...here.
2898 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
2899 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
2901 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
2902 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
2903 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
2904 Remove unnecessary #ifndef.
2905 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
2906 [under IN_LIBGCC2] with config/.
2908 2003-08-21 Per Bothner <pbothner@apple.com>
2910 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
2912 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
2913 by return_at_eof check. Always call _cpp_pop_buffer at end.
2915 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
2918 * config/h8300/h8300.md (two anonymous patterns): Remove.
2920 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
2922 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
2923 * config/mips/mips.c (function_arg_pass_by_reference): Never return
2926 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
2928 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
2929 and similarly in (A | C) == D where C & ~D != 0.
2931 2003-08-20 Geoffrey Keating <geoffk@apple.com>
2934 * configure.in: When testing with_libs and with_headers, treat
2935 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
2936 * configure: Regenerate.
2938 2003-08-20 Peter Barada <peter@baradas.org>
2940 * longlong.h (umul_ppmm): Add ColdFire support.
2942 2003-08-20 Peter Barada <peter@baradas.org>
2943 Bernardo Innocenti <bernie@develer.com>
2945 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
2946 * config/m68k/m68k.h: Likewise.
2947 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
2948 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
2949 * config/m68k/linux.h: Likewise.
2950 * config/m68k/m68k.c: Likewise.
2951 * config/m68k/m68k.md: Likewise.
2952 * config/m68k/m68kelf.h: Likewise.
2953 * config/m68k/netbsd-elf.h: Likewise.
2954 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
2956 2003-08-20 Bernardo Innocenti <bernie@develer.com>
2958 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
2959 * config/m68k/m68k.md: Likewise.
2961 2003-08-20 Mark Mitchell <mark@codesourcery.com>
2965 2003-08-19 Mark Mitchell <mark@codesourcery.com>
2966 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
2967 types with precisions other than those given by native machine
2970 2003-08-20 Gunther Nikl <gni@gecko.de>
2972 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
2973 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
2974 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
2975 * config/m68k/m68k.md (anonymous define_insn): Likewise
2976 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
2977 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
2978 code selected by NO_ASM_FMOVECR
2980 2003-08-20 Gunther Nikl <gni@gecko.de>
2982 * config/m68k/m68k.c (output_move_const_into_data_reg,
2983 output_move_himode): unify MOTOROLA/MIT handling of moveq
2984 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
2987 2003-08-20 Gunther Nikl <gni@gecko.de>
2989 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
2991 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
2992 HOST_WIDE_INT_PRINT_DEC with %wd
2994 2003-08-20 Loren James Rittle <ljrittle@acm.org>
2996 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
2999 2003-08-20 Roger Sayle <roger@eyesopen.com>
3002 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
3003 operands before calling tree_int_cst_lt when performing associative
3006 2003-08-20 Jason Merrill <jason@redhat.com>
3008 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
3009 (EXPR_CHECK): Don't check for 'r' or 's' if we're
3010 checking IS_EXPR_CODE_CLASS.
3011 * calls.c (calls_function_1): Likewise.
3012 * fold-const.c (fold): Likewise.
3013 * tree.c (iterative_hash_expr): Likewise.
3014 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
3016 2003-08-20 Gunther Nikl <gni@gecko.de>
3018 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
3019 depending on MOTOROLA_BSR
3020 * config/m68k/m68k.md (anonymous define_insn): Likewise
3022 2003-08-20 Jason Merrill <jason@redhat.com>
3024 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
3025 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
3026 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
3027 * dojump.c (do_jump): Likewise.
3028 * fold-const.c (operand_equal_p, fold): Likewise.
3029 (tree_expr_nonnegative_p): Likewise.
3031 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
3032 TYPE_USER_ALIGN for FIELD_DECLs.
3034 * attribs.c (decl_attributes): Rebuild the function pointer type after
3035 changing the target type.
3036 * tree.c (get_qualified_type): Also check that the attributes match.
3038 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
3040 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
3041 * objc/config-lang.in (stagestuff): ... to here.
3043 2003-08-19 Mark Mitchell <mark@codesourcery.com>
3046 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
3047 NOP_EXPR) when necessary.
3048 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
3049 types with precisions other than those given by native machine
3052 2003-08-19 Geoffrey Keating <geoffk@apple.com>
3054 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
3055 because some macro is defined.
3057 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
3059 * config/i386/darwin.h (ASM_SPEC): New.
3060 (SUBTARGET_EXTRA_SPECS): New.
3061 * config/rs6000/darwin.h (ASM_SPEC): New.
3062 (SUBTARGET_EXTRA_SPECS): New.
3063 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
3064 a cross-compiler between two different processors on Darwin.
3065 * configure: Regenerate.
3067 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
3069 * builtins.c: Fix comment typos.
3070 * c-common.c: Likewise.
3071 * c-decl.c: Likewise.
3072 * c-pretty-print.c: Likewise.
3073 * cfgbuild.c: Likewise.
3074 * cfglayout.c: Likewise.
3075 * cfgloopanal.c: Likewise.
3076 * cgraphunit.c: Likewise.
3077 * cppfiles.c: Likewise.
3078 * dwarfout.c: Likewise.
3080 * fold-const.c: Likewise.
3082 * ggc-page.c: Likewise.
3083 * haifa-sched.c: Likewise.
3084 * pretty-print.c: Likewise.
3087 * value-prof.c: Likewise.
3089 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
3091 * c-decl.c: Follow spelling conventions.
3092 * cppfiles.c: Likewise.
3094 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
3096 * c-common.c: Fix comment formatting.
3097 * c-common.h: Likewise.
3098 * c-decl.c: Likewise.
3099 * cppinit.c: Likewise.
3100 * cpplib.h: Likewise.
3101 * emit-rtl.c: Likewise.
3102 * input.h: Likewise.
3103 * line-map.h: Likewise.
3106 * simplify-rtx.c: Likewise.
3108 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
3110 * unwind-c.c: Add libgcc-style exception.
3111 * unwind-dw2.c: Likewise.
3112 * unwind-pe.h: Likewise.
3113 * unwind-sjlj.c: Likewise.
3114 * unwind.inc: Likewise.
3116 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
3118 PR c/5582 PR c++/10538
3119 * langhooks-def.h (lhd_decl_uninit): Declare.
3120 (LANG_HOOKS_DECL_UNINIT): New macro.
3121 (LANG_HOOKS_INITIALIZER): Adjust.
3122 * langhooks.h (struct lang_hooks): Add new field
3124 * langhooks.c (lhd_decl_uninit): Define.
3125 * c-common.c (c_decl_uninit_1): New function.
3126 (c_decl_uninit): New function.
3127 (warn_init_self): Define.
3128 * c-common.h (c_decl_uninit): Declare.
3129 (warn_init_self): Declare.
3130 * c.opt: Introduce -Winit-self.
3131 * c-opts.c (c_common_handle_options): Set warn_init_self.
3132 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
3133 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
3134 * function.c (uninitialized_vars_warning): Call the language hook.
3135 * doc/invoke.texi: Document -Winit-self.
3137 2003-08-19 Chris Demetriou <cgd@broadcom.com>
3139 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
3140 to use better predicates and constraints. Define new
3141 instruction to handle "trap_if" with DI-mode arguments.
3142 (conditional_trap): FAIL if trap code is not 0.
3144 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
3146 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
3147 strstr with $pb to a strcompare with "<pic base>"
3148 (ix86_output_addr_diff_elt): Output the real pic base.
3150 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
3152 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
3153 (LANG_HOOKS_INITIALIZER): Correct.
3154 * c-lang.c: Likewise.
3156 2003-08-19 Jan Hubicka <jh@suse.cz>
3158 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
3159 (cgraph_varpool_mark_needed_node): Likewise.
3160 * cgraph.h (notice_global_symbol): Declare
3161 * varasm.c (notice_global_symbol): Break out from ...
3162 (assemble_start_function): ... here; update for variables.
3163 (assemble_variable): Use notice_global_symbol.
3165 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
3167 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
3168 expect SFmode and DFmode arguments to be passed in FPRs,
3169 regardless of the underlying type.
3171 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
3174 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
3175 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
3177 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
3180 * c-typeck.c (set_init_index): Check for negative index.
3182 2003-08-18 Bob Wilson <bob.wilson@acm.org>
3184 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
3186 * config/xtensa/crtn.asm (_init, _fini): Likewise.
3187 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
3188 __umodsi3, __modsi3): Likewise.
3189 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
3192 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
3194 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
3196 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
3198 * config/mips/mips.md: Quote C code in braces. Remove use of
3199 fake const0_rtx operands. Remove double backslashes. Use \;.
3200 Remove workarounds for bogus warnings.
3202 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
3204 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
3205 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
3206 rather than TARGET_MIPS4300.
3207 (mulsf3_internal, mulsf3_r4300): Likewise.
3209 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
3211 * config/mips/mips.md: Renumber unspecs. Clean up comments.
3213 2003-08-17 Roger Sayle <roger@eyesopen.com>
3215 * simplify-rtx.c (associative_constant_p): New function to test
3216 whether an RTX expression is an immediate constant.
3217 (simplify_associative_operation): New function to perform some
3218 reassociation optimizations of associative binary expressions.
3219 (simplify_binary_operation): Use simplify_associative_operation
3220 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
3221 Floating point expressions are only reassociated when unsafe
3222 math optimizations are permitted.
3224 2003-08-17 Andreas Jaeger <aj@suse.de>
3226 * config/alpha/alpha.md: Remove usage of PARAMS.
3228 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
3229 * config/i386/i386-interix.h: Likewise.
3230 * config/i386/winnt.c: Likewise.
3231 * config/i386/cygming.h: Likewise.
3232 * config/i386/cygwin2.c: Likewise.
3233 * config/darwin.c: Likewise.
3234 * config/darwin-c.c: Likewise.
3235 * config/darwin-protos.h: Likewise.
3236 * config/darwin.h: Likewise.
3237 * config/s390/s390-protos.h: Likewise.
3238 * config/s390/s390.c: Likewise.
3239 * config/ia64/ia64.c: Likewse
3240 * config/ia64/ia64-protos.h: Likewise.
3241 * config/ia64/ia64-c.c: Likewise.
3243 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3245 * config/sparc/sparc.c: Convert to ISO C.
3247 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
3248 * config/sparc/sparc.c: Likewise.
3250 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
3253 * stmt.c (expand_expr_stmt_value): Don't warn about any void
3256 2003-08-16 Jan Hubicka <jh@suse.cz>
3258 * i386.c (ix86_fntype_regparm): Rename from ...
3259 (ix86_function_regparm): ... this one; add fastcall and local
3261 (ix86_function_ok_for_sibcall): Update.
3262 (ix86_return_pops_args): Likewise.
3263 (init_cumulative_args): Likewise.
3264 (x86_can_output_mi_thunk): Likewise.
3265 (function_arg): Fix formating.
3266 (x86_this_parameter): Fix fastcall.
3267 (x86_output_mi_thunk): Likewise.
3269 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
3270 body as reachable; mark nested functions as needed too.
3271 (dump_cgraph): Do not output global.calls.
3272 * cgraph.h (cgraph_global_info): Kill.
3273 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
3274 (record_call_1): Speedup.
3275 (cgraph_analyze_function): Break out from ...; compute inlining
3277 (cgraph_finalize_compilation_unit): ... here.
3278 (cgraph_mark_inline): Kill computation of calls.
3279 (cgraph_decide_inlining): Do not compute most of initial values.
3281 2003-08-14 Roger Sayle <roger@eyesopen.com>
3283 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
3284 to negate if either operand is easy to negate, if we don't care
3285 about sign-dependent rounding.
3286 (negate_expr): Make the logic to negate a REAL_CST explicit.
3287 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
3288 that's easy to negate, if we don't honor sign-dependent rounding.
3289 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
3290 negate, and the symmetric A * -B as -A * B if A is easy to negate.
3291 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
3292 -C/D if B and C are cheap to negate. Add an explicit rule to
3293 optimize X/-1.0 as -X when we don't care about signaling NaNs.
3295 2003-08-14 Zack Weinberg <zack@codesourcery.com>
3297 * Makefile.in (tm_file): Rename tm_include_list.
3298 (tm_p_file): Rename tm_p_include_list.
3299 (build_xm_file): Rename build_xm_include_list.
3300 (host_xm_file): Rename host_xm_include_list.
3301 (xm_file): Rename xm_include_list.
3302 (xm_file_list): Add to be substituted.
3303 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
3305 (bt-load.o): Add missing dependency on $(TM_H).
3306 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
3307 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
3308 build_xm_file, generate both *_file_list and *_include_list
3309 values from it. (xm_file_list was formerly not being generated.)
3310 In *_include_list, prefix the names of all headers found in
3311 $(srcdir)/config with config/. In each loop, consider only
3312 the special case files that can actually appear in that list.
3313 AC_SUBST all *_file_list and all *_include_list variables; do
3314 not AC_SUBST the plain *_file variables.
3315 * configure: Regenerate.
3317 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3319 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
3321 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3323 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
3325 (attr_length_call): Include it here. Improve length estimate for
3327 (output_call): Use targetm.binds_local_p.
3329 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3331 * builtins.c (CASE_MATHFN): New helper macro.
3332 (mathfn_built_in): Simplify and sort.
3334 * protoize.c (substr): Delete, callers changed to `strstr'.
3336 2003-08-13 Zack Weinberg <zack@codesourcery.com>
3338 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
3339 * config/iq2000/xm-iq2000.h: Delete file.
3341 2003-08-13 Geoffrey Keating <geoffk@apple.com>
3343 * gengtype.c (walk_type): Process a subobject before processing
3344 the pointer that points to the subobject.
3346 2003-08-13 Per Bothner <pbothner@apple.com>
3348 * regclass.c (init_reg_modes): Make non-static.
3349 Rename to init_reg_modes_once per new naming convention.
3350 (init_regs): Don't call init_reg_modes here.
3351 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
3352 * rtl.h (init_reg_modes_once): New declaration.
3353 * toplev.c (backend_init): Call init_regs after init_emit_once.
3355 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
3357 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
3358 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
3360 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
3362 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
3363 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
3365 2003-08-13 Dale Johannesen <dalej@apple.com>
3367 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
3368 handling of decrement-and-branch farther than 32 bits.
3370 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
3372 * configure.in (make_compare_target): Move test to ...
3373 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
3374 * configure: Regenerate.
3376 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
3378 * config/mips/iris6.h: Convert to C90 prototypes.
3379 * config/mips/irix6-libc-compat.c: Likewise.
3380 * config/mips/mips-protos.h: Likewise.
3381 * config/mips/mips.c: Likewise.
3383 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
3385 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
3386 for selected machines. Comment heavily.
3387 fixinc/fixincl.x: Rebuild.
3388 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
3390 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
3392 * config/mips/mips.h: Tweak various comments.
3393 * config/mips/mips.c: Likewise.
3395 2003-08-11 James E Wilson <wilson@tuliptree.org>
3397 PR optimization/11319
3399 * alias.c (find_base_value, case REG): Return 0 not src if no base
3402 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3404 * gcse.c (gmalloc): Fix last change.
3406 2003-08-11 Roger Sayle <roger@eyesopen.com>
3408 * simplify-rtx.c (simplify_binary_operation): Replace calls to
3409 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
3410 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
3411 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
3413 2003-08-11 Roger Sayle <roger@eyesopen.com>
3415 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
3416 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
3417 typecode for an ABS_EXPR.
3419 * doc/c-tree.texi: Document ABS_EXPR.
3421 2003-08-11 Roger Sayle <roger@eyesopen.com>
3423 * fold-const.c (fold): Optimize any associative floating point
3424 operator with -funsafe-math-optimizations, not just MULT_EXPR.
3426 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
3428 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
3429 information in SHmedia case too.
3430 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
3432 (__set_fpscr): Use an access via GOT for PIC case.
3434 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
3436 * configure.in (intermodule): Make switch test more portable.
3437 * configure: Regenerate.
3439 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
3441 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
3442 (restrap): Likewise.
3444 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3446 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
3447 (grealloc): Size argument is a size_t.
3448 (gcalloc): New function. Use throughout in lieu of
3451 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
3453 * config/ia64/ia64.c (ia64_reorg): Likewise.
3454 * conflict.c (conflict_graph_new): Likewise.
3455 * fixinc/fixincl.c (run_compiles): Likewise.
3456 * genattrtab.c (optimize_attrs): Likewise.
3457 * genrecog.c (new_decision): Likewise.
3458 * haifa-sched.c (schedule_block): Likewise.
3459 * hashtable.c (ht_create): Likewise.
3461 2003-08-11 Bob Wilson <bob.wilson@acm.org>
3463 * config/xtensa/lib2funcs.S: Fix whitespace.
3464 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
3465 syntax where appropriate. Remove unnecessary backslash escapes.
3466 Reformat comments and fix some code formatting.
3467 (extendqisi2): Rearrange conditional.
3468 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
3469 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
3472 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
3474 * config/mips/mips.c: Various formatting fixes.
3475 (override_options): Resync -mtune handling with gas.
3476 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
3477 * config/mips/mips.h: More formatting fixes.
3478 (mips_abi): Move declaration.
3479 * config/mips/mips.md (exception_receiver): Add mode to
3482 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
3484 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
3486 (bdesc_1arg): Remove evsplati and evsplatfi.
3488 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
3490 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
3493 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3495 * builtins.c (expand_builtin_strcat): Optimize constant strings.
3497 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
3499 * pretty-print.c (pp_base_indent): Rename from pp_indent.
3500 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
3501 (struct c_pretty_print_info): Add more fields.
3502 (pp_c_left_paren): Move to c-pretty-print.c.
3503 (pp_c_right_paren): Likewise.
3504 (pp_c_left_brace): Likewise.
3505 (pp_c_right_brace): Likewise.
3506 (pp_c_left_bracket): Likewise.
3507 (pp_c_right_bracket): Likewise.
3508 (pp_c_declarator): Declare.
3509 (pp_c_direct_declarator): Likewise.
3510 (pp_c_specifier_qualifier_list): Likewise.
3511 (pp_c_type_id): Likewise.
3512 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
3513 (pp_c_type_qualifier_list): New.
3514 (pp_c_pointer): Likewise.
3515 (pp_c_parameter_type_list): Likewise.
3516 (pp_c_function_definition): Likewise.
3517 (pp_c_id_expression): Likewise.
3518 (pp_c_simple_type_specifier): Tidy.
3519 (pp_c_unary_expression): Likewise.
3520 (pp_c_expression): Likewise.
3521 (pp_c_pretty_printer_init): Likewise.
3522 (pp_c_specifier_qualifier_list): Rework..
3523 (pp_c_abstract_declarator): Likewise.
3524 (pp_c_postfix_expression): Likewise.
3525 (pp_c_primary_expression): Likewise.
3526 (pp_c_cast_expression): Likewise.
3527 (pp_c_direct_abstract_declarator): Likewise.
3528 (pp_c_storage_class_specifier): Likewise.
3529 (pp_c_function_specifier): Likewise.
3530 (pp_c_declaration_specifiers): Likewise.
3531 (pp_c_direct_declarator): Likewise.
3532 (pp_c_declarator): Likewise.
3533 (pp_c_declaration): Likewise.
3534 (pp_c_statement): Likewise.
3535 (pp_c_integer_constant): Rename from pp_c_integer_literal.
3536 (pp_c_character_constant): Rename from pp_c_character_literal.
3537 (pp_c_bool_constant): Rename from pp_c_bool_literal.
3538 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
3539 (pp_c_floating_constant): Rename from pp_c_real_literal.
3540 (pp_c_constant): Rename from pp_c_literal.
3541 * c-lang.c: Include diagnostic.h and c-pretty-print.h
3542 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
3543 (c_initialize_diagnostics): New.
3544 * Makefile.in (c-lang.o): Update dependency.
3546 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
3548 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
3550 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
3552 * config/mips/mips.c (mips_no_mips16_string): Remove.
3553 (override_options): Don't handle -mips16 as part of -mipsN.
3554 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
3555 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
3556 (TARGET_OPTIONS): Remove -mno-mips16.
3558 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
3560 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
3561 (coprocessor2_operand): Likewise.
3562 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
3563 (lookup_name): Remove declaration.
3564 (abort_with_insn): Remove. Replace all uses with fatal_insn.
3565 (mips16, mips_abicalls): Remove.
3566 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
3567 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
3568 (coprocessor_operand, coprocessor2_operand): Remove.
3569 (override_options): Don't set mips16 or mips_abicalls.
3570 (print_operand): Don't expect SIGN_EXTEND operands.
3571 (mips_secondary_reload_class): Likewise.
3572 (mips_output_conditional_branch): Remove disabled long-branch code.
3573 * config/mips/mips.h (call_used_regs): Remove declaration.
3574 (may_call_alloca): Likewise.
3575 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
3576 (mips_abicalls, mips16): Remove declarations.
3577 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
3578 (CC1_SPEC): Remove outdated comment.
3579 (MIPS_VERSION, MACHINE_TYPE): Remove.
3580 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
3581 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
3582 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
3583 (PUSH_ROUNDING): Likewise.
3584 (ASSEMBLER_SCRATCH_REGNUM): Remove.
3585 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
3586 and mips16 with TARGET_MIPS16.
3588 2003-08-09 Per Bothner <pbothner@apple.com>
3590 * cppinit.c (cpp_read_main_file): Split out source-independent
3591 initialization to separate function ...
3592 (cpp_post_options): New function.
3593 * cppfiles.c (cpp_stack_file): Rename public name to ...
3594 (_cpp_stack_file): New internal function name.
3595 * cpplib.h: Update accordingly.
3596 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
3597 (cpp_read_main_file): Don't initialize line here.
3598 * c-opts.c (c_common_post_options): Call cpp_post_options.
3599 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
3600 * fix-header.c (read_scan_file): Call cpp_post_options.
3602 2003-08-09 Per Bothner <per@bothner.com>
3604 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
3606 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3608 * pa.c (pa_asm_output_mi_thunk): Fix typo.
3610 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
3612 PR preprocessor/11839
3613 * cppfiles.c (open_file): Handle ENOTDIR.
3615 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
3618 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
3620 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3622 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
3623 source/destination is not a register operand.
3625 2003-08-08 Richard Henderson <rth@redhat.com>
3628 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
3629 RETURN_ADDRESS_POINTER_REGNUM.
3630 (ia64_expand_prologue): Don't frob it.
3631 (ia64_output_function_epilogue): Likewise.
3632 (ia64_return_addr_rtx): New.
3633 (ia64_split_return_addr_rtx): New.
3634 * config/ia64/ia64-protos.h: Update.
3635 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
3636 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
3637 (GENERAL_REGNO_P): Don't check it.
3638 (AR_*_REGNUM): Renumber.
3639 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
3640 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
3641 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
3642 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
3643 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
3644 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
3645 (movdi_ret_addr): New.
3647 2003-08-08 Geoffrey Keating <geoffk@apple.com>
3649 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
3651 2003-08-08 Roger Sayle <roger@eyesopen.com>
3653 * tree.h (get_identifier) Define a macro form of get_identifier
3654 that calls get_identifier_with_length when the string is constant.
3655 (get_identifier_with_length): Change type of second argument to
3656 size_t in prototype.
3657 * stringpool.c (get_identifier): Undefine the macro before giving
3658 the function definition.
3659 (get_identifier_with_length): Change type of second argument to
3660 size_t in function definition.
3661 * hashtable.c (calc_hash): Change type of second argument to size_t.
3662 (ht_lookup): Change type of third argument to size_t. Reorganize
3663 to speed-up the cases where the hash table slot is empty, or the
3664 first probe matches (i.e. there isn't a collision).
3665 * hashtable.h (ht_lookup): Adjust function prototype.
3667 2003-08-08 Bernardo Innocenti <bernie@develer.com>
3671 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
3673 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
3675 * common.opt: Add debug switches.
3676 * flags.h (use_gnu_debug_info_extensions): Boolify.
3677 * opts.c (write_symbols, debug_info_level,
3678 use_gnu_debug_info_extensions): Move from toplev.c.
3679 (set_debug_level): New.
3680 (common_handle_options): Handle debug switches.
3681 (print_help): Display target options directly.
3682 * toplev.c (debug_hooks): Don't initialize.
3683 (write_symbols, debug_info_level,
3684 use_gnu_debug_info_extensions): Move to opts.c.
3685 (debug_args, display_help, decode_g_option): Remove.
3686 (process_options): Set no debug if level zero here,
3687 and no-debug-hooks. Error here if impossible debug format selected.
3688 * toplev.h (display_help, decode_g_option): Remove.
3690 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
3692 * tree.c (get_file_function_name_long): Fix size of alloca() area.
3694 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
3696 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
3697 and gcc_cv_prog_cmp_skip.
3698 * configure: Regenerate.
3700 2003-08-08 Stan Cox <scox@redhat.com>
3702 * config/iq2000: New port.
3703 * config.gcc (iq2000-*-elf): Added.
3704 * doc/install.texi (Specific): Add iq2000 description.
3706 2003-08-08 Andreas Schwab <schwab@suse.de>
3708 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
3709 and insert missing empty argument.
3710 * configure: Regenerate.
3712 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3714 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
3715 (attr_length_millicode_call): Likewise.
3716 (attr_length_call): Likewise. Revise some maximum insn lengths.
3717 (attr_length_indirect_call): Likewise.
3718 (output_call): Fix thinko that added extra nop.
3719 * pa.h (IN_NAMED_SECTION_P): Define.
3722 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
3723 __STDC_EXT__ when using C++ dialect.
3725 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
3727 * sh.c (calc_live_regs): If the return address pointer is live,
3729 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
3730 for saves / restores.
3731 (sh_expand_epilogue): If sh_media_register_for_return returns a
3732 register number, flag the instructions that restores PR_MEDIA_REG
3734 Remove dead update of offset.
3735 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
3736 we can use the result of get_hard_reg_initial_val.
3737 * sh.md (UNSPEC_RA): New constant.
3738 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
3739 (load_ra). Handle UNSPEC_RA.
3740 (sibcall_media): Use PR_MEDIA_REG.
3742 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
3743 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
3744 needs saving on SHmedia.
3746 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
3748 * config/s390/s390.md: Replace all occurrences of \\t with \t.
3750 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
3752 * local-alloc.c (combine_regs): Fix comment typo.
3754 2003-08-06 Zack Weinberg <zack@codesourcery.com>
3756 * c-decl.c (builtin_decls): Replace with first_builtin_decl
3757 and last_builtin_decl.
3758 (c_init_decl_processing): Initialize both.
3759 (c_reset_state): Iterate from first_builtin_decl to
3760 last_builtin_decl inclusive to reintroduce builtins.
3762 2003-08-06 David Mosberger <davidm@hpl.hp.com>
3764 * doc/extend.texi (Function Attributes): Document the IA-64 version
3765 of the "model" attribute.
3767 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
3768 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
3769 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
3771 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
3772 (ia64_encode_section_info): Likewise.
3773 (ia64_attribute_table): Add "model" attribute.
3774 (TARGET_ENCODE_SECTION_INFO): Define.
3775 (small_addr_symbolic_operand): New function.
3776 (got_symbolic_operand): Return 0 for a symbolref to an object
3777 in the small address area.
3778 (enum ia64_addr_area): New type.
3779 (small_ident1): New variable.
3780 (small_ident2): Likewise.
3781 (init_idents): New function.
3782 (ia64_get_addr_area): Likewise.
3783 (ia64_encode_addr_area): Likewise.
3784 (ia64_encode_section_info): Likewise.
3785 (ia64_expand_load_address): For symbolic references to objects in
3786 the small-address-area, load the address via gen_rtx_SET() (which,
3787 eventually, will expand into "addl").
3789 2003-08-06 Per Bothner <pbothner@apple.com>
3791 * line-map.h (fileline): New typedef.
3792 (struct line_map, linemap_add, linemap_lookup): Use it.
3793 * input.h (struct location_s): Comment notes that long-term we want
3794 to replace it by fileline.
3796 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
3798 Fix SHcompact exception handling:
3799 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
3800 by the prologue, return a MEM with return_address_pointer_rtx
3802 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
3803 (RETURN_ADDR_OFFSET): Don't define.
3804 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
3805 registers that are visible in compact mode. Show that SHmedia
3806 registers still exist in compact mode, even if there are not
3808 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
3809 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
3810 and DW_EH_PE_pcrel for pic data.
3811 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
3812 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
3813 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
3814 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
3815 * sh.md (movsi_media-1): New splitter.
3817 2003-08-06 Graeme Peterson <gp@qnx.com>
3819 * config/i386/nto.h: New.
3820 * config/i386/t-nto: New.
3821 * config.gcc (i[34567]86-*-nto-qnx*): New.
3823 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
3825 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
3827 2003-08-06 Alan Modra <amodra@bigpond.net.au>
3829 * calls.c (load_register_parameters): Arrange for call_fusage to
3830 report the whole register as used when shifting to the msb.
3832 2003-08-05 Roger Sayle <roger@eyesopen.com>
3834 * builtins.c (expand_builtin): When not optimizing, call the library
3835 function for all builtins that have library functions (except alloca).
3837 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
3839 * c.opt: Introduce -fworking-directory.
3840 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
3841 * c-common.h (flag_working_directory): Declare.
3842 * c-common.c (flag_working_directory): Define.
3843 * c-opts.c (c_common_handle_options): Set it.
3844 (sanitize_cpp_opts): Set...
3845 * cpplib.h (struct cpp_options): ... working_directory option.
3846 (struct cpp_callbacks): Add dir_change.
3847 * cppinit.c (read_original_filename): Call...
3848 (read_original_directory): New. Look for # 1 "directory//"
3850 (cpp_read_main_file): Call dir_change callback if working_directory
3852 * gcc.c (cpp_unique_options): Pass -g*.
3853 * c-lex.c (cb_dir_change): New.
3854 (init_c_lex): Set dir_change callback.
3855 * toplev.c (src_pwd): New static variable.
3856 (set_src_pwd, get_src_pwd): New functions.
3857 * toplev.h (get_src_pwd, set_src_pwd): Declare.
3858 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
3859 * dwarf2out.c (gen_compile_unit_die): Likewise.
3860 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
3862 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3864 * pretty-print.h (pp_set_line_maximum_length): Make macro.
3865 (pp_set_prefix): Likewise.
3866 (pp_destroy_prefix): Likewise.
3867 (pp_remaining_character_count_for_line): Likewise.
3868 (pp_clear_output_area): Likewise.
3869 (pp_formatted_text): Likewise.
3870 (pp_last_position_in_text): Likewise.
3871 (pp_emit_prefix): Likewise.
3872 (pp_append_text): Likewise.
3873 (pp_flush): Likewise.
3874 (pp_format_text): Likewise.
3875 (pp_format_verbatim): Likewise.
3876 (pp_tree_identifier): Tidy.
3877 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
3878 (pp_base_format_verbatim): Rename from pp_format_verbatim.
3879 (pp_base_flush): Rename from pp_flush.
3880 (pp_base_set_line_maximum_length): Rename from
3881 pp_set_line_maximum_length.
3882 (pp_base_clear_output_area): Rename from pp_clear_output_area.
3883 (pp_base_set_prefix): Rename from pp_set_prefix.
3884 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
3885 (pp_base_emit_prefix): Rename from pp_emit_prefix.
3886 (pp_base_append_text): Rename from pp_append_text.
3887 (pp_base_formatted_text): Rename from pp_formatted_text.
3888 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
3889 (pp_base_remaining_character_count_for_line): Rename from
3890 pp_remaining_character_count_for_line.
3891 * diagnostic.h (diagnostic_format_decoder): Tidy.
3892 (diagnostic_flush_buffer): Likewise.
3893 * c-pretty-print.h: (pp_c_string_literal): Declare.
3894 (pp_c_real_literal): Likewise.
3895 (pp_c_integer_literal): Likewise.
3896 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
3898 (pp_c_character_literal): Tidy.
3899 (pp_c_string_literal): Make public.
3900 (pp_c_bool_literal): Likewise.
3901 (pp_c_integer_literal): Likewise.
3902 (pp_c_real_literal): Likewise.
3904 * Makefile.in (C_PRETTY_PRINT_H): New variable.
3905 (c-pretty-print.o): Update dependence.
3907 2003-08-05 Chris Demetriou <cgd@broadcom.com>
3909 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
3910 ".set nomacro" state.
3911 (fix_truncsfsi2_macro): Likewise.
3913 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
3915 * tree.h (DID_INLINE_FUNC): Remove macro.
3916 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
3917 add tree check for FUNCTION_DECL.
3918 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
3919 (struct tree_decl): Rename inlined_function_flag to
3920 declared_inline_flag.
3921 * c-common.h (c_lang_decl): Remove.
3922 (DECL_ESTIMATED_INSNS): Remove.
3923 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
3924 (DECL_DECLARED_INLINE_P): Remove.
3925 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
3926 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
3927 (finish_function): Make uninlinable a bool. Fixup call to
3928 tree_inlinable_function_p() and fix some code style issues.
3929 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
3930 * cgraph.c (dump_cgraph): Likewise.
3931 * cgraphunit.c (cgraph_decide_inlining): Likewise
3932 (cgraph_finalize_compilation_unit): Likewise.
3933 Also update call to tree_inlinable_function_p().
3934 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
3935 look at DECL_DECLARED_INLINE and reverse logic.
3936 * print-tree.c (print_node): Likewise.
3937 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
3938 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
3940 * tree-inline.c (inlinable_function_p): Split up in this function to
3941 check for basic inlining inhibiting conditions, and new
3942 limits_allow_inlining() function. Warn if inlining is impossible
3943 because the inline candidate calls alloca or uses sjlj exceptions.
3944 (limits_allow_inlining): this new function to check if the inlining
3945 limits are satisfied. Throttle from currfn_max_inline_insns, not from
3946 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
3947 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
3949 (tree_inlinable_function_p): Make a bool. Update call to
3950 inlinable_function_p
3951 (expand_call_inline): Use limits_allow_inlining() when not in
3952 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
3953 instead see if the function was declared `inline'.
3955 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
3957 * gcse.c (try_replace_reg): Fix updating of note.
3959 2003-08-04 Roger Sayle <roger@eyesopen.com>
3962 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
3963 logic in negate_expr, i.e. we don't invert (A-B) for floating
3964 point types unless flag_unsafe_math_optimizations.
3966 2003-08-04 Roger Sayle <roger@eyesopen.com>
3968 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
3969 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
3970 for floating point expressions with -ffast-math.
3971 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
3972 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
3974 2003-08-04 Roger Sayle <roger@eyesopen.com>
3976 * c-common.c (flag_noniso_default_format_attributes): Delete.
3977 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
3978 (c_attrs_initialized): Delete.
3979 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
3980 always call c_init_attributes.
3981 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
3982 set c_attrs_initialized when done.
3983 (c_common_insert_default_attributes): Delete.
3984 * c-common.h (flag_noniso_default_format_attributes): Delete.
3985 (c_coomon_insert_default_attributes): Delete prototype.
3986 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
3987 flag_noniso_default_format_attributes.
3989 * c-decl.c (c_insert_default_attributes): Delete.
3990 * c-tree.h (c_insert_default_attributes): Delete prototype.
3992 * attribs.c (decl_attributes): Don't call insert_default_attributes
3993 langhook. Update function description comment.
3994 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
3995 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
3996 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
3997 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
3999 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
4002 2003-08-04 Richard Sandiford <rsandif@redhat.com>
4004 * config/mips/mips.c (override_options): Disable -G on targets that
4005 have no .section support.
4006 (mips_select_section): Use default_select_section for such targets.
4008 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
4010 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
4011 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
4012 * fixinc/fixincl.x: Rebuild.
4013 * fixinc/tests/base/regexp.h: New test.
4015 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
4017 * c-ppoutput.c (cb_line_change): Don't skip line changing while
4018 parsing macro arguments in the top-level context.
4020 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
4022 * config.in: Remove HAVE_LSTAT.
4023 * configure, configure.in: Don't test for lstat.
4025 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4027 * opts.c (decode_options): Do language-specific initialization for
4028 the global diagnostic context.
4029 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
4030 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
4031 (LANG_HOOKS_INITIALIZER): Adjust.
4032 * langhooks.h (struct lang_hooks): Add new field
4033 initialize_diagnostics.
4034 * langhooks.c (lhd_initialize_diagnostics): Define.
4036 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4038 * pretty-print.h: Adjust macro definitions.
4039 * pretty-print.c (pp_newline): Rename to pp_base_newline.
4040 (pp_character): Rename to pp_base_character.
4041 (pp_string): Rename to pp_base_string.
4042 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
4043 (pp_newline): Likewise. Adjust.
4044 (pp_c_char): Adjust.
4046 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4048 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
4049 BUILT_IN_LLABS): Move to miscellaneous section.
4051 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
4053 PR preprocessor/11534
4054 * cppexp.c (parse_defined): Warn only if -pedantic.
4056 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
4058 * cppfiles.c (stack_file): Use file path.
4060 2003-08-02 Roger Sayle <roger@eyesopen.com>
4062 * builtin-types.def (BT_SSIZE): New primitive type.
4063 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
4064 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
4065 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
4066 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
4067 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
4068 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
4069 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
4070 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
4071 few functions that define default attributes using it.
4072 * c-common.c (c_common_insert_default_attributes): Do nothing.
4074 * doc/extend.texi: Document these "new" builtins.
4076 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
4078 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
4079 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
4080 when -mieee-fp set and -shared not set.
4081 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
4083 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
4085 * cppfiles.c (struct _cpp_file): Rename once_only_next to
4086 next_file. Remove import and pragma_once, add once_only.
4087 (find_file): Add new file structures to the all_files list.
4088 (should_stack_file): Mark #import-ed files once-only, and
4089 don't stack them if the file has already been stacked.
4090 (_cp_mark_file_once_only): Simplify.
4091 * cpphash.h (struct cpp_reader): Rename once_only_files
4092 to all_files. Rename saw_pragma_once to seen_once_only.
4093 (_cpp_mark_file_once_only): Update prototype.
4094 * cpplib.c (do_pragma_once): Update.
4096 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
4098 * cppfiles.c (ENOTDIR): Remove.
4099 (open_file_in_dir): Rename find_file_in_dir. Handle errors
4100 other than ENOENT here.
4101 (once_only_file_p): Rename should_stack_file.
4102 (find_file, open_file_failed, read_file_guts): Report errors
4103 with full path name.
4104 (read_file): Move pch handling to should_stack_file.
4105 (should_stack_file): Handle PCH and once-only issues, and
4107 (stack_file): Don't do file reads.
4109 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4111 * libgcov.c (gcov_exit): Cleanup and fix.
4112 * profile.c (compute_value_histograms): Don't try to read profiles
4113 that are not present.
4115 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4117 * builtins.def: Categorize.
4119 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
4121 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
4123 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
4125 * config.gcc: Enable posix threads by default on darwin.
4127 2003-08-01 Jakub Jelinek <jakub@redhat.com>
4129 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
4130 even if nehedges1 is 0.
4132 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
4134 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
4135 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
4136 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
4139 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
4140 * fixinc/fixincl.x: Regenerate.
4141 * fixinc/tests/base/math.h: Regenerate to match test_text change.
4143 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4145 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
4147 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4149 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
4150 for accesses to exc_ptr.
4152 2003-08-01 Geoffrey Keating <geoffk@apple.com>
4154 * doc/sourcebuild.texi (Front End Directory): Don't make references
4155 to libsubdir, it's not part of the interface to frontends.
4156 * doc/install.texi (Configuration): Help users read faster by saying
4157 that GCC's configure options are the standard autoconf ones.
4158 Mention --libdir. Update the default rules for finding the
4159 assembler. Don't use libsubdir since we haven't said what it means.
4160 (Specific): In the Solaris 7 notes, update the place to put the
4162 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
4163 * doc/cpp.texi (Search Path): Actually, the search path
4164 depends on libdir, which can relocate with cpp.
4165 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
4166 now a private interface between the Makefile and the driver.
4168 2003-08-01 Richard Henderson <rth@redhat.com>
4170 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
4172 * varasm.c (lookup_constant_def): New function.
4173 * rtl.h (lookup_constant_def): Declare it.
4174 * dwarf2out.c (loc_descriptor_from_tree): Use it.
4175 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
4177 2003-08-01 Zack Weinberg <zack@codesourcery.com>
4179 * c-decl.c (gettags, pushdecl_function_level): Delete.
4180 (last_function_parm_vars): Rename last_function_parm_others.
4181 (current_function_parm_vars): Rename current_function_parm_others.
4182 (struct c_scope): Rewrite comment explaining this data structure.
4183 Add names_last, blocks_last, parms_last fields. Rename
4184 incomplete_list to incomplete.
4185 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
4186 (poplevel): Ignore second argument. No need to nreverse
4187 anything. Restructure such that each list is processed
4188 exactly once. Use 'const location_t *locus' syntactic sugar
4189 variable where useful. Issue unused variable warnings
4190 ourselves, do not rely on function.c.
4191 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
4192 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
4193 (implicitly_declare): decl cannot be error_mark_node.
4194 (undeclared_variable): Manipulate scope structure directly.
4195 (c_make_fname_decl): Likewise.
4196 (getdecls, c_init_decl_processing): Fix comment.
4197 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
4198 for 'last' variable.
4199 (grokparms): No need to nreverse parms list.
4200 (store_parm_decls_newstyle): Set up the parms_last and
4201 names_last fields of the new scope too.
4202 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
4203 on parms to begin with; check this under ENABLE_CHECKING. Set
4205 (check_for_loop_decls): Refer directly to current_scope->tags.
4206 Use consistent quote style in diagnostics.
4207 (c_write_global_declarations): The names list is not backward.
4209 * c-common.h: Don't prototype gettags.
4210 * c-parse.in: Call poplevel with second argument 0 always.
4212 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4214 * builtins.def: Resort builtins.
4216 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4218 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
4219 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
4220 Prepend "__builtin_" onto NAME with string concatenation. Remove
4221 explicit "__builtin_" from each macro call.
4223 Reformat entire file.
4225 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4227 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
4228 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
4230 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
4232 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
4233 CCL1, or CCL2 modes with floating point operations.
4235 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
4236 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
4237 "*subdf3_cconly"): New insns.
4238 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
4240 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
4242 * Makefile.in: Refine dependencies.
4243 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
4244 * c.opt: Update help for -Wimport.
4245 * cppfiles.c: Include hashtab.h. Update comments.
4246 (stack_file): Read the file before updating dependencies.
4247 (once_only_file_p): Be smarter about marking once-only files.
4248 (_cpp_mark_file_once_only): Correct the check for existence on
4250 (open_file_failed): Use name not path, which is NULL.
4251 * cpphash.h: Don't include hashtab.h.
4252 (struct _cpp_file): Remove.
4253 (struct cpp_reader): Update.
4254 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
4255 * cpplib.h (struct cpp_options): Remove warn_import.
4256 (cpp_simplify_path): Remove.
4258 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
4261 * doc/extend.texi (Statement Expressions): Document C++ semantics.
4263 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
4265 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
4267 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4269 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
4271 * builtins.def: Likewise.
4273 2003-07-31 Jason Merrill <jason@redhat.com>
4275 * Makefile.in (bubblestrap): Don't require a previous full
4278 * expr.c (mostly_zeros_p): No longer static.
4279 * tree.h: Declare it.
4280 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
4281 unless we need to do substitutions.
4283 2003-07-31 Roger Sayle <roger@eyesopen.com>
4285 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
4286 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
4287 as pow(x,2.0) when the latter will be expanded back into x*x.
4288 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
4289 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
4290 pow can never set errno when used with an integer exponent.
4291 Always use expand_powi when exponent is -1, 0, 1 or 2.
4292 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
4293 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
4294 the pow forms of these expressions.
4296 2003-07-31 Geoffrey Keating <geoffk@apple.com>
4298 * Makefile.in (libexecdir): New.
4299 (libsubdir): Use gcc instead of gcc-lib.
4300 (libexecsubdir): New.
4301 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
4302 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
4304 (installdirs): Make libexecsubdir.
4305 (install-common): Put executables in libexecsubdir.
4306 (itoolsdir): Use libexecsubdir.
4307 (itoolsdatadir): New.
4308 (install-mkheaders): Separate data files and executables.
4309 (install-collect2): Put executables in libexecsubdir.
4310 (uninstall): Remove libexecsubdir.
4311 * mkheaders.in: Update for new arrangement of files.
4313 (libexecsubdir): New.
4314 (itoolsdir): Use libexecsubdir.
4315 (itoolsdatadir): New.
4316 * gcc.c (gcc_libexec_prefix): New.
4317 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
4318 (standard_exec_prefix_1): Use libexec.
4319 (standard_exec_prefix_2): New.
4320 (standard_libexec_prefix): New.
4321 (process_command): Update for new arrangement of files. Compute
4322 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
4324 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
4326 * inclhack.def (stdio_va_list): Avoid bogus replacement which
4327 triggers on Interix.
4328 * fixincl.x: Regenerate.
4330 2003-07-31 Jakub Jelinek <jakub@redhat.com>
4332 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
4333 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
4335 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4337 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
4339 2003-07-31 Per Bothner <pbothner@apple.com>
4341 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
4342 (add_input_filename): New function.
4343 (handle_options): Call add_input_filename directly instead of
4345 * opts.h (in_fnames, num_in_fnames): Moved here.
4346 (add_input_filename): Declare.
4347 * c-decl.c: Need to #include opts.h.
4348 * Makefile.in (c-decl.o): Also depends on opts.h.
4349 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
4350 (c_common_handle_filename): Replaced by add_input_filename.
4351 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
4353 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
4354 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
4355 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
4356 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
4358 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4360 * combine.c (try_combine): Set JUMP_LABEL for newly created
4363 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4365 * fold-const.c (fold): Fold some comparisons of bit operations.
4367 2003-07-31 Jan Hubicka <jh@suse.cz>
4369 * cgraph.c (create_edge): Fix typo.
4370 * i386.c (pic_symbolic_operand): Reorder tests.
4372 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
4374 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
4376 (Gcov Data Files): Update.
4378 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4380 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
4383 * gthr-posix.c: New file.
4384 * gthr-posix.h: Define _REENTRANT if missing.
4385 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
4387 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
4389 * config/alpha/t-osf-pthread: New file.
4391 * fixinc/inclhack.def (alpha_pthread): New fix.
4392 * fixinc/fixincl.x: Regenerate.
4393 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
4395 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
4397 Fixes PR bootstrap/9330.
4399 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4401 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
4404 * configure: Regenerate.
4406 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
4408 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
4411 2003-07-30 Roger Sayle <roger@eyesopen.com>
4413 * builtins.def: Alphabetize.
4415 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
4417 * doc/c-tree.texi: Normalize spellings of "lowercase" and
4419 * doc/cpp.texi: Likewise.
4420 * doc/md.texi: Likewise.
4421 * doc/rtl.texi: Likewise.
4422 * doc/tm.texi: Likewise.
4424 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
4426 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
4427 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
4430 2003-07-30 Chris Demetriou <cgd@broadcom.com>
4432 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
4433 macros before defining them.
4435 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
4437 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
4438 UNSPECV_BLOCKAGE): New constants.
4439 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
4440 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
4441 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
4442 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
4444 (all insns and expanders): Write output control string as brace block
4445 where appropriate. Remove \-escapes for doublequote characters.
4447 2003-07-31 Jan Hubicka <jh@suse.cz>
4449 * gcse.c (insert_store): Fix typo in previous patch.
4451 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
4453 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
4455 2003-07-30 Andi Kleen <ak@muc.de>
4457 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
4459 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4461 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
4462 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
4463 GCOV_N_VALUE_COUNTERS): New.
4464 * profile.c (compute_value_histograms): New static function.
4465 (branch_prob): Read back the value histograms.
4466 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
4467 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
4468 * value-prof.c: Add comment on reading the profile.
4469 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
4470 * doc/invoke.texi (-fprofile-values): Document behavior with
4471 -fbranch-probabilities.
4473 2003-07-30 David Edelsohn <edelsohn@gnu.org>
4475 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
4477 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
4479 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
4482 2003-07-30 Jan Hubicka <jh@suse.cz>
4484 * gcse.c (insert_store): Ignore fake edges.
4486 * c-common.c (flag_vtable_gc): Kill.
4487 * c-common.g (flag_vtable_gc): Kill.
4488 * c-opts (c_common_handle_option): Kill.
4489 * c.opt (fvtable-gc): Kill.
4490 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
4491 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
4492 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
4494 * invoke.texi (-ftable-gc): Kill documentation.
4496 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
4497 just because function body is missing.
4499 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
4501 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
4503 * unwind-sjlj.c: Fix typo in file description.
4505 2003-07-30 Alan Modra <amodra@bigpond.net.au>
4507 * calls.c (load_register_parameters): When shifting reg sized values
4508 to the msb, move the value to a reg first.
4510 2003-07-29 Geoffrey Keating <geoffk@apple.com>
4512 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
4513 * line-map.h (linemap_add): Update comments.
4514 * line-map.c (linemap_add): Update comments, interpret zero-length
4515 filename as "<stdin>".
4517 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
4519 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
4521 2003-07-29 Zack Weinberg <zack@codesourcery.com>
4523 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
4524 New static variables.
4525 (struct c_scope): Add parms and warned_forward_parm_decls
4526 fields; remove parm_order.
4527 (storedecls, storetags): Delete.
4528 (poplevel): Also clear bindings on the parms chain.
4529 (pushdecl): Handle forward declarations of parameters, and
4530 chain PARM_DECLs on the parms list, not the names list.
4531 (lookup_name_current_level): Check for PARM_DECLs on the parms
4533 (push_parm_decl): Don't update parm_order.
4534 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
4535 warning, only once per parameter list, and set TREE_ASM_WRITTEN
4536 on the decls here. Then move the forward decls to the names list.
4537 (grokparms): Set last_function_parm_vars.
4538 (get_parm_info): Don't use gettags or getdecls. No need to
4539 extract non-parms from the parms list, or reorganize the parms
4540 list. Feed nonparms back in the TREE_TYPE of the list node
4541 returned. Issue only one error per parameter list for "void"
4542 appearing more than once in said parameter list. Collapse
4543 parmlist_tags_warning into this function to avoid double scan
4545 (start_function): Set current_function_parm_vars.
4546 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
4547 directly. Get non-parms from current_function_parm_vars; no
4548 need to extract them from the parms chain. Properly bind tags
4550 (store_parm_decls_oldstyle): No need to extract non-parameters
4551 from the parms chain, nor to store them back afterward. Move
4552 declaration to top of function, restructure code reordering
4554 (store_parm_decls): No need to save and restore warn_shadow.
4555 * c-parse.in: Don't call parmlist_tags_warning nor
4556 clear_parm_order. Call mark_forward_parm_decls when forward
4557 parm decls are encountered.
4558 * c-tree.h: Prototype mark_forward_parm_decls; not
4559 clear_parm_order or parmlist_tags_warning.
4561 2003-07-29 Geoffrey Keating <geoffk@apple.com>
4563 * c-common.c (allow_pch): Remove.
4564 * c-common.h (allow_pch): Remove.
4565 (c_common_no_more_pch): Declare.
4566 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
4567 * c-pch.c: Include hosthooks.h.
4568 (c_common_valid_pch): Don't check allow_pch.
4569 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
4570 (c_common_no_more_pch): New.
4571 * ggc-common.c: Include hosthooks.h.
4572 (gt_pch_save): Call gt_pch_get_address.
4573 (gt_pch_restore): Call gt_pch_use_address.
4574 * hooks.c (hook_voidp_size_t_null): New.
4575 (hook_bool_voidp_size_t_false): New.
4576 * hooks.h (hook_voidp_size_t_null): New.
4577 (hook_bool_voidp_size_t_false): New.
4578 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
4579 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
4580 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
4581 HOST_HOOKS_GT_PCH_USE_ADDRESS.
4582 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
4584 * doc/hostconfig.texi (Host Common): Document
4585 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
4586 * Makefile.in (c-pch.o): Depend on hosthooks.h.
4587 (ggc-common.o): Likewise.
4589 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
4590 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
4591 (pch_address_space): New.
4592 (darwin_rs6000_gt_pch_get_address): New.
4593 (darwin_rs6000_gt_pch_use_address): New.
4595 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
4597 PR preprocessor/11569
4598 PR preprocessor/11649
4599 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
4600 * cppfiles.c: Completely rewritten.
4601 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
4602 struct cpp_path is now struct cpp_dir.
4603 (remove_duplicates): Don't simplify path names.
4604 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
4606 * cpphash.h: Include hashtab.h.
4607 (_cpp_file): Declare.
4608 (struct cpp_buffer): struct include_file is now struct _cpp_file,
4609 and struct cpp_path is now struct cpp_dir. Rename members.
4610 (struct cpp_reader): Similarly. New members once_only_files,
4611 file_hash, file_hash_entries, quote_ignores_source_dir,
4612 no_search_path, saw_pragma_once. Remove all_include_files and
4613 max_include_len. Make some members bool.
4614 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
4615 (_cpp_stack_file): Renamed from _cpp_read_file.
4616 (_cpp_stack_include): Renamed from _cpp_execute_include.
4617 (_cpp_init_files): Renamed from _cpp_init_includes.
4618 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
4619 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
4620 (cpp_read_next_file): Rename and move to cppfiles.c.
4621 (cpp_read_main_file): Update.
4622 * cpplib.c (run_directive): Update for renamed members.
4623 (do_include_common, _cpp_pop_buffer): Update.
4624 (do_import): Undeprecate #import.
4625 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
4626 * cpplib.h: Remove file_name_map_list.
4627 (cpp_options): Remove map_list.
4628 (cpp_dir): Rename from cpp_path. New datatype for name_map.
4629 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
4631 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
4633 * Makefile.in: Make stamp-objdir safe for parallel builds.
4635 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
4637 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
4638 (info): Depend on stmp-docobjdir.
4640 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4642 * configure: Regenerate.
4644 2003-07-29 Jan Hubicka <jh@suse.cz>
4647 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
4648 in !unit-at-a-time mode.
4650 2003-07-28 Geoffrey Keating <geoffk@apple.com>
4652 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
4655 2003-07-28 Mark Mitchell <mark@codesourcery.com>
4658 * c-common.c (shorten_compare): Take into account differences
4659 between C and C++ representation for enumeration types.
4660 * tree.h (set_min_and_max_values_for_integral_type): Declare.
4661 * stor-layout.c (set_min_and_max_values_for_integral_type): New
4662 function, broken out from ...
4663 (fixup_signed_type): ... here and ...
4664 (fixup_unsigned_type): ... here.
4666 2003-07-28 Zack Weinberg <zack@codesourcery.com>
4668 * c-decl.c: Update commentary, adjust blank lines throughout.
4669 (struct c_scope): Fix indentation. Reorder members so
4670 outer-context pointers come first, booleans last.
4671 (duplicate_decls, define_label): Use a 'locus' variable for
4672 diagnostic locations in a few more places.
4673 (warn_if_shadowing): Un-split a conditional that fits on one line.
4674 (c_init_decl_processing): No need to clear current_scope and
4675 current_function_scope.
4676 (start_decl): Merge if/else if statements with same action.
4677 (push_parm_decl): Rename old_immediate_size_expand to use
4678 save_foo convention; save/restore around entire function.
4679 (grokdeclarator): Remove unnecessary braces.
4681 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
4682 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
4684 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
4685 when warn_declaration_after_statement. Call pedwarn_c90, not
4686 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
4687 * c-common.c (warn_declaration_after_statement): Define.
4688 * c-common.h (warn_declaration_after_statement): Declare.
4689 * c.opt (Wdeclaration-after-statement): New.
4690 * c-errors.c (pedwarn_c90): New function.
4691 * c-opts.c (c_common_handle_option) <case
4692 OPT_Wdeclaration_after_statement>: New.
4693 * c-tree.h (pedwarn_c90): Declare.
4694 * doc/invoke.texi (Option Summary): Document
4695 -Wdeclaration-after-statement.
4696 (Warning Options): Ditto.
4698 2003-07-28 Jan Hubicka <jh@suse.cz>
4700 * i386.md (memory attribute) Avoid accessing uninitialized memory
4701 for ishift1 type instructions.
4703 2003-07-28 Jakub Jelinek <jakub@redhat.com>
4705 * configure.in (--enable-checking): Add fold category.
4706 (ENABLE_FOLD_CHECKING): Define if requested.
4707 * configure: Rebuilt.
4708 * config.in: Rebuilt.
4709 * doc/install.texi: Document it.
4710 * fold-const.c: Include md5.h.
4711 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
4712 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
4713 print_fold_checksum): New functions.
4715 * fold-const.c (fold): Never modify argument passed to fold, instead
4716 change a copy and return it.
4717 * convert.c (convert_to_integer): Likewise.
4719 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
4721 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
4722 cleanup of junk after #else and #endif directives. Collapse repeated
4723 clauses into for statment.
4725 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
4727 2003-07-27 Zack Weinberg <zack@codesourcery.com>
4729 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
4730 (keep_next_if_subblocks): Rename next_is_function_body.
4731 (pushlevel): Adjust commentary. Always set ->keep on the
4732 outermost level of a function. Don't set ->keep_if_subblocks.
4733 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
4734 (store_parm_decls): Adjust to match.
4735 (finish_function): Adjust to match.
4736 Call poplevel with all three arguments zero.
4738 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
4739 New functions split out of store_parm_decls.
4740 Avoid unnecessary work. Use local variables consistently.
4741 (store_parm_decls): Likewise.
4743 (finish_function): No need to set functionbody flag on call to
4745 (struct language_function): Remove scope field.
4746 (c_push_function_context, c_pop_function_context): No need to
4747 save and restore current_scope.
4749 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
4751 * doc/extend.texi (Deprecated Features): Implicit typename is
4752 gone. Default args on types is going.
4754 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
4756 * Makefile.in (ifcvt.o): Depend on target.h
4757 * ifcvt.c (target.h): Include.
4758 (if_convert): Don't call mark_loop_exit_edges if we can't
4761 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
4763 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
4765 2003-07-26 Richard Henderson <rth@redhat.com>
4768 * cse.c (count_reg_usage): Handle asm_operands properly.
4770 2003-07-26 Roger Sayle <roger@eyesopen.com>
4772 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
4773 (DEF_EXT_FALLBACK_BUILTIN): Delete.
4774 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
4775 the regular DEF_EXT_LIB_BUILTIN macro.
4776 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
4777 the regular DEF_LIB_BUILTIN macro.
4778 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
4779 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
4780 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
4781 DEF_EXT_LIB_BUILTIN macro.
4783 * c-decl.c (duplicate_decls): Remove code to handle builtin
4784 functions prototyped without an argument list.
4786 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
4788 * config/i386/winnt.c: Revert 2003-07-08 change.
4789 (i386_pe_section_type_flags): Remove error_with_decl here too.
4791 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
4793 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
4794 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
4795 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
4796 (v850_handle_data_area_attribute): Likewise.
4798 2003-07-26 Geoffrey Keating <geoffk@apple.com>
4800 * varasm.c (output_constant_def_contents): Use
4801 ASM_DECLARE_CONSTANT_NAME if defined.
4802 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
4803 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
4804 objects get at least one byte to prevent assembler problems.
4805 (ASM_DECLARE_CONSTANT_NAME): New.
4807 * Makefile.in (libbackend.o): Remove options_.h.
4808 (mostlyclean): Likewise.
4810 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
4811 insert a label at the end of an function under Mach-O.
4813 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
4815 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
4817 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
4819 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
4821 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
4823 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4825 * doc/passes.texi (Passes): Mention pretty-printing and
4828 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
4830 * doc/extend.texi (Function Attributes): GNU C++ does now allow
4831 unused parameter decls.
4832 (Attribute Syntax): GNU C++ does not allow label attributes to be
4835 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4837 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
4838 (objc_declare_class): Likewise.
4839 (error_with_ivar): Likewise.
4840 (start_class): Likewise.
4841 (warn_with_method): Likewise.
4843 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4845 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
4847 * calls.c (try_to_integrate): Don't use xxx_with_decl.
4848 (expand_call): Likewise.
4849 * dwarfout.c (output_reg_number): Likewise.
4850 * expr.c (expand_expr): Likewise.
4851 * function.c (assign_temp): Likewise.
4852 (uninitialized_vars_warning): Likewise.
4853 (setjmp_args_warning): Likewise.
4854 (expand_function_end): Likewise.
4855 * stmt.c (fixup_gotos): Likewise.
4856 (warn_about_unused_variables): Likewise.
4857 (expand_end_bindings): Likewise.
4858 * stor-layout.c (layout_decl): Likewise.
4859 (place_field): Likewise.
4860 * toplev.c (check_global_declarations): Likewise.
4861 (rest_of_handle_inlining): Likewise.
4862 (default_tree_printer): New function.
4863 (general_init): Initialize diagnostic machinery before routing
4864 signals to the ICE machinery. Set default tree printer.
4865 * toplev.h (pedwarn_with_decl): Remove declaration.
4866 (warning_with_decl): Likewise.
4867 (error_with_decl): Likewise.
4868 (pedwarn): Remove attribute for the time being.
4869 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
4870 * varasm.c (named_section): Likewise.
4871 (make_decl_rtl): Likewise.
4872 (assemble_variable): Likewise.
4873 (merge_weak): Likewise.
4874 (declare_weak): Likewise.
4876 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
4877 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
4878 (format_with_decl): Remove.
4879 (diagnostic_for_decl): Likewise.
4880 (pedwarn_with_decl): Likewise.
4881 (warning_with_decl): Likewise.
4882 (error_with_decl): Likewise.
4883 (diagnostic_initialize): Adjust.
4884 (diagnostic_count_diagnostic): Likewise.
4885 (announce_function): Likewise.
4886 (lhd_print_error_function): Likewise.
4887 (diagnostic_report_current_module): Likewise.
4888 (default_diagnostic_starter): Likewise.
4889 (diagnostic_report_diagnostic): Likewise.
4890 (default_diagnostic_finalizer): Likewise.
4891 (verbatim): Likewise.
4893 (warning): Likewise.
4894 * opts.c (common_handle_option): Likewise.
4895 * pretty-print.c: New file.
4896 * c-pretty-print.h (pp_base): Override.
4897 * c-pretty-print.c: Adjust use of macros throughout.
4898 (pp_buffer): New macro.
4899 (pp_newline): Likewise.
4900 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
4901 * Makefile.in (DIAGNOSTIC_H): New variable.
4902 (c-errors.o): Use it.
4903 (c-objc-common.o): Likewise.
4904 (c-common.o): Likewise.
4905 (c-opts.o): Likewise.
4906 (c-format.o): Likewise.
4907 (diagnostic.o): Likewise.
4909 (toplev.o): Likewise.
4910 (rtl-error.o): Likewise.
4911 (dwarf2out.o): Likewise.
4913 (pretty-print.o): New rule.
4915 2003-07-24 Roger Sayle <roger@eyesopen.com>
4917 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
4918 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
4919 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
4920 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
4921 (DEF_FRONT_END_LIB_BUILTIN): Delete.
4922 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
4923 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
4925 * builtins.c (build_string_literal): New function to construct
4926 a char* pointer to a string literal.
4927 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
4928 "rtx target" to be consistent with other expand_builtin_* functions.
4929 Change 3rd argument from "int unlocked" to "bool unlocked".
4930 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
4931 c-common.c to avoid front-end dependencies. Optimize printf("")
4932 as a no-op when the result isn't required. Handle embedded NULs
4934 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
4935 from c-common.c to avoid front-end dependencies. Likewise, optimize
4936 fprintf(fp,"") as a no-op when the result isn't required, evaluating
4937 fp for side-effects. Handle embedded NULs in format string.
4938 (expand_builtin_sprintf): Fix typo.
4939 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
4940 optimizing. Adjust calls of expand_builtin_fputs to match the API
4941 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
4942 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
4943 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
4945 * c-common.c (is_valid_printf_arglist): Delete.
4946 (c_expand_builtin): Delete.
4947 (c_expand_builtin_printf): Moved to builtins.c. Delete.
4948 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
4949 (c_expand_expr): No longer treat CALL_EXPRs specially.
4950 (CALLED_AS_BUILT_IN): Delete.
4952 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4954 PR optimization/11631
4955 * gcse.c (store_motion): Connect infinite loops to exit.
4957 2003-07-24 Jason Merrill <jason@redhat.com>
4959 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
4960 (boolean_true_node, boolean_false_node): Likewise.
4961 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
4962 * tree.c (build_common_tree_nodes): Init boolean_type_node.
4963 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
4964 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
4965 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
4966 (truthvalue_true_node): Renamed from boolean_true_node.
4967 (truthvalue_false_node): Renamed from boolean_false_node.
4968 * c-decl.c: Just set truthvalue_* to integer_*.
4969 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
4971 2003-07-24 Roger Sayle <roger@eyesopen.com>
4973 * c-decl.c (match_builtin_function_types): New subroutine of
4974 duplicate_decls to test whether a redeclaration of a builtin
4975 function is suitably close, i.e. the return type and all of
4976 the argument types have the same modes as the builtin expects.
4977 (duplicate_decls): Fuzzy type matching for builtin functions
4978 moved to match_builtin_function_types.
4980 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4982 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
4985 2003-07-24 Zack Weinberg <zack@codesourcery.com>
4987 * c-decl.c: Search-and-replace change 'binding level' to
4988 'scope' in commentary.
4989 (struct binding_level): Now struct c_scope.
4990 (current_binding_level): Now current_scope.
4991 (free_binding_level): Now scope_freelist.
4992 (current_function_level): Now current_function_scope.
4993 (global_binding_level): Now global_scope.
4994 (make_binding_level): Now make_scope.
4995 (pop_binding_level): Now pop_scope.
4997 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4999 * configure.in (libgcc_visibility): Add missing whitespace.
5001 2003-07-24 Richard Henderson <rth@redhat.com>
5003 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
5004 __gcc_personality_v0.
5006 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5008 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
5010 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
5012 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
5013 documentation missed from my 2003-07-09 patch.
5015 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
5017 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
5019 * configure: Rebuild.
5021 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
5024 * c-typeck.c (type_lists_compatible_p): Do not compare
5025 arguments if one of them is an error_mark_node
5027 2003-07-24 Alan Modra <amodra@bigpond.net.au>
5029 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
5030 if current_function_calls_eh_return.
5032 2003-07-23 Mark Mitchell <mark@codesourcery.com>
5034 * doc/c-tree.texi (OFFSET_TYPE): Update description.
5036 2003-07-23 Bob Wilson <bob.wilson@acm.org>
5038 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
5039 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
5040 __umodsi3, __modsi3): Increase frame size to 32.
5042 2003-07-23 Geoffrey Keating <geoffk@apple.com>
5044 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
5047 2003-07-23 Mark Mitchell <mark@codesourcery.com>
5049 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
5051 PR optimization/10679
5052 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
5054 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5056 PR target/11607 and PR target/11516
5057 * pa.md (extzv, extv, insv): Revert latter half of last patch.
5059 2003-07-22 Mark Mitchell <mark@codesourcery.com>
5061 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
5062 * varasam.c (output_constant): Likewise.
5064 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
5066 * alias.c: Fix comment formatting.
5067 * c-common.c: Likewise.
5068 * c-decl.c: Likewise.
5069 * c-opts.c: Likewise.
5070 * combine.c: Likewise.
5071 * cpplib.c: Likewise.
5072 * diagnostic.c: Likewise.
5073 * dojump.c: Likewise.
5074 * final.c: Likewise.
5075 * fold-const.c: Likewise.
5078 * ggc-page.c: Likewise.
5081 * mips-tfile.c: Likewise.
5082 * recog.c: Likewise.
5083 * regclass.c: Likewise.
5084 * regmove.c: Likewise.
5088 2003-07-22 Per Bothner <pbothner@apple.com>
5090 * line-map.c (add_line_map): Handle invalid LEAVE request.
5091 Fixes PR preprocessor/11361.
5093 2003-07-22 Per Bothner <pbothner@apple.com>
5095 * diagnostic.c.(diagnostic_report_current_module): Update to match
5096 2003-06-05 changes to push_srcloc and pop_srcloc.
5098 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
5100 * doc/trouble.texi: Better document two-stage name lookup.
5102 2003-07-22 Eric Christopher <echristo@redhat.com>
5104 * config/s390.c (s390_valid_pointer_mode): New.
5105 (TARGET_VALID_POINTER_MODE): Use.
5106 (s390_emit_prologue): Add tpf profiling hooks.
5107 (s390_emit_epilogue): Ditto.
5108 * config/s390.h (MASK_TPF): New.
5110 (POINTERS_EXTEND_UNSIGNED): Define.
5111 * config/s390.md (ptr_extend): New pattern.
5113 2003-07-22 Zack Weinberg <zack@codesourcery.com>
5115 * hashtable.c (approx_sqrt): Make static.
5116 * hashtable.h: Don't prototype approx_sqrt.
5117 * line-map.c (init_line_maps): Rename linemap_init.
5118 (free_line_maps): Rename linemap_free.
5119 (add_line_map): Rename linemap_add.
5120 (lookup_line): Rename linemap_lookup.
5121 (print_containing_files): Rename linemap_print_containing_files.
5122 * linemap.h: Update to match.
5124 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
5125 linemap routines to use new names.
5127 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
5129 * c-common.c (handle_packed_attribute): Don't pack a struct via a
5130 typedef. Propagate packedness from a main variant.
5132 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
5134 * Makefile.in (install-common): Add dependency on installdirs.
5136 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
5138 * c-common.c (c_common_type_for_mode): Return integer types for
5141 2003-07-22 Geoffrey Keating <geoffk@apple.com>
5143 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
5144 (finish_decl): Call maybe_apply_pragma_weak here.
5145 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
5146 TREE_PUBLIC and TREE_STATIC are decided.
5147 (start_function): Move call to maybe_apply_pragma_weak. Check that
5148 DECL_ASSEMBLER_NAME isn't set too early.
5150 * cpplex.c (_cpp_process_line_notes): Mention option name in
5153 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
5155 * combine.c (if_then_else_cond): Simplify the comparison of
5156 rtx against -1, 0, and 1.
5157 * loop.c (check_dbra_loop): Likewise.
5158 * optabs.c (emit_conditional_move): Likewise.
5159 (emit_conditional_add): Likewise.
5160 * config/i386/i386.md (*movsi_or): Likewise.
5161 (*movdi_or_rex6): Likewise.
5163 2003-07-22 Jan Hubicka <jh@suse.cz>
5165 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
5167 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
5169 * cppfiles.c (open_file_pch): Don't put unused entries in the
5170 splay tree. Remove dead code.
5172 2003-07-21 Geoffrey Keating <geoffk@apple.com>
5174 * c-common.h (num_in_fnames): Declare.
5175 (c_static_assembler_name): Move from here...
5176 * c-tree.h (c_static_assembler_name): ... to here.
5177 * c-opts.c: Don't include langhooks-def.h.
5178 (c_static_assembler_name): Move to c-decl.c.
5179 (num_in_fnames): Make externally visible.
5180 * c-decl.c: Include langhooks-def.h.
5181 (c_static_assembler_name): Move from c-opts.c.
5182 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
5183 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
5185 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
5186 when it's not needed.
5188 2003-07-21 Jakub Jelinek <jakub@redhat.com>
5190 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
5191 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
5192 (rs6000_emit_prologue): Save FPRs inline if set.
5194 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
5196 * config/ia64/ia64.md (prefetch): Support predicate.
5198 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
5200 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
5201 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
5204 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
5206 PR optimization/11536
5207 * unroll.c (loop_iterations): Do not replace a register holding
5208 the final value by its equivalent before the loop if it is not
5211 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
5213 * doc/extend.texi: Fixes to spelling, grammar, and diction.
5215 2003-07-21 Ben Elliston <bje@wasabisystems.com>
5217 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
5218 (V850 Options): Spelling fixes.
5220 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
5222 * doc/invoke.texi: Fixes to style, grammar and diction.
5224 2003-07-20 Roger Sayle <roger@eyesopen.com>
5226 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
5227 * system.h (SMALL_STACK): Poison obsolete target macro.
5228 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
5230 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
5232 * configure.in: Cache the results of testing for cmp's capabilities.
5233 * configure: Regenerate.
5235 2003-07-20 Mark Mitchell <mark@codesourcery.com>
5238 * dwarf2out.c (gen_enumeration_type_die): Remember that
5239 enumerators can be unsigned.
5241 2003-07-19 Zack Weinberg <zack@codesourcery.com>
5243 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
5244 (push_label_level, pop_label_level): Kill.
5245 (struct binding_level): Rename level_chain to outer.
5246 Add outer_function field. Change parm_flag, function_body,
5247 keep, keep_if_subblocks to 1-bit bitfields of type bool.
5248 (current_function_level): New variable.
5249 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
5250 (keep_next_level, declare_parm_level, warn_if_shadowing):
5252 (struct language_function): Kill named_labels, shadowed_labels fields.
5253 (c_init_decl_processing, start_function, c_push__function_context)
5254 (c_pop_function_context): No need to muck with named_labels nor
5257 (make_binding_level): No need to clear the structure here.
5258 (pop_binding_level): Always operate on current_binding_level.
5259 Update current_function_level if necessary.
5260 (pushlevel): Don't clear named_labels. Update current_function_level
5261 if necessary. Use "true" and "false" where appropriate.
5262 (poplevel): Diagnose labels defined but not used, or vice
5263 versa, and clear out label-meanings leaving scope, while
5264 walking down the decls list, for all binding levels.
5265 Handle LABEL_DECLs appearing in the shadowed list.
5266 pop_binding_level takes no arguments.
5267 (pushdecl_function_level): Use current_function_level.
5269 (make_label, bind_label): New static functions.
5270 (declare_label): New exported function.
5271 (lookup_label, define_label): Rewritten for new data structure.
5272 (shadow_label): Kill.
5274 * c-tree.h: Prototype declare_label; don't prototype
5275 push_label_level, pop_label_level, nor shadow_label.
5276 * c-parse.in: Remove all calls to push_label_level and
5277 pop_label_level. Use declare_label for __label__ decls.
5279 * doc/extend.texi: Clarify that __label__ can be used to
5280 declare labels with local scope in any nested block, not
5281 just statement expressions. Cross-reference nested functions
5282 section from local labels section.
5284 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5286 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
5288 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
5290 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
5292 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5294 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
5295 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
5297 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
5299 * config/s390/s390.c (legitimize_pic_address): Access local symbols
5300 relative to the GOT instead of relative to the literal pool base.
5301 (s390_output_symbolic_const): Handle new GOT-relative accesses.
5302 * config/s390/s390.md ("call"): Access local functions and PLT stubs
5303 relative to the GOT instead of relative to the literal pool base.
5304 ("call_value"): Likewise.
5305 ("call_value_tls"): Likewise.
5307 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
5308 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
5309 (s390_chunkify_finish): Likewise.
5310 (s390_chunkify_cancel): Likewise.
5311 (s390_reorg): Adapt caller.
5312 (find_base_register_in_addr,
5313 find_base_register_ref, replace_base_register_ref): Delete.
5314 (find_ltrel_base, replace_ltrel_base): New functions.
5315 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
5316 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
5317 base vs. index register usage.
5318 (struct constant_pool): Remove 'anchor'.
5319 (s390_add_anchor): Delete.
5320 (s390_dump_pool): Remove anchor handling.
5321 * config/s390/s390.md ("reload_anchor"): Remove.
5323 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
5324 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
5325 (s390_emit_prologue): Use it.
5326 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
5327 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
5328 hard-code register 14.
5329 * config/s390/s390-protos.h (s390_load_got): Declare.
5331 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
5332 Support TImode constants.
5333 * config/s390/s390.md ("consttable_ti"): New.
5334 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
5336 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
5337 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
5338 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
5339 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
5340 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
5341 New symbolic constants.
5342 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
5343 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
5344 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
5345 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
5346 symbolic UNSPEC values.
5347 * config/s390/s390.c (larl_operand, s390_short_displacement,
5348 bras_sym_operand, s390_cannot_force_const_mem,
5349 s390_delegitimize_address, s390_decompose_address,
5350 legitimize_pic_address, s390_output_symbolic_const,
5351 s390_function_profiler): Use symbolic UNSPEC values.
5353 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5355 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
5356 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
5357 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
5358 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
5359 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
5360 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
5361 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
5362 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
5363 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
5364 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
5365 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
5366 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
5367 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
5368 postreload.c prefix.c print-tree.c protoize.c ra-build.c
5369 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
5370 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
5371 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
5372 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
5373 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
5374 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
5377 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
5379 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
5380 * toplev.h (warning): Remove attribute.
5382 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
5384 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
5385 (pop_label_level): Likewise.
5386 (duplicate_decls): Likewise.
5387 (implicitly_declare): Likewise.
5388 (shadow_label): Likewise.
5389 (start_decl): Likewise.
5390 (finish_decl): Likewise.
5391 (grokdeclarator): Likewise.
5392 (get_parm_info): Likewise.
5393 (detect_field_duplicates): Likewise.
5394 (finish_struct): Likewise.
5395 (start_function): Likewise.
5396 (store_parm_decls): Likewise.
5397 (finish_function): Likewise.
5398 (c_expand_body_1): Likewise.
5399 (check_for_loop_decls): Likewise.
5400 (merge_translation_unit_decls): Likewise.
5402 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
5404 * common.opt: Document --param.
5405 * opts.c (columns, undocumented_msg): New.
5406 (print_help): Get number of columns from environment. Print
5407 --param help. Tweak newline handling.
5408 (print_param_help): New.
5409 (print_filtered_help): Better handling of duplicates. Complain
5410 about undocumented switches.
5411 (print_switch): New.
5412 (wrap_help): Improve wrapping, use COLUMNS.
5413 * opts.sh: Ignore comments in records.
5414 * params.def: Fix typos and remove trailing periods.
5415 * toplev.c (display_help): Don't dump --param help.
5416 * doc/sourcebuild.texi: Update.
5418 2003-07-18 Richard Henderson <rth@redhat.com>
5421 * optabs.c (prepare_operand): Fail gracefully instead of abort
5422 if the predicate doesn't satisfy.
5423 (gen_cond_trap): Allow prepare_operand to fail.
5425 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
5427 * c-common.c: Don't undefine GCC_DIAG_STYLE.
5428 (fname_decl): Don't use xxx_with_decl.
5429 (c_add_case_label): Likewise.
5430 (handle_section_attribute): Likewise.
5431 (handle_alias_attribute): Likewise.
5432 (handle_no_instrument_function_attribute): Likewise.
5433 (handle_no_limit_stack_attribute): Likewise.
5434 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
5435 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
5437 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5439 * Makefile.in (ifcvt.o): Add cfgloop.h.
5440 * basic-block.h (EDGE_LOOP_EXIT): New flag.
5441 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
5442 * ifcvt.c: Include cfgloop.h.
5443 (mark_loop_exit_edges): New static function.
5444 (if_convert): Call it.
5445 (find_if_header): Ignore branches out of loops.
5447 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
5449 * combine.c (simplify_comparison): Don't share rtx when converting
5450 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
5452 2003-07-18 David Edelsohn <edelsohn@gnu.org>
5454 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
5455 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
5456 (MUST_PASS_IN_STACK): Define.
5457 (BLOCK_REG_PADDING): Define.
5459 2003-07-18 Richard Henderson <rth@redhat.com>
5461 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
5462 to skip the addr_vec.
5464 2003-07-18 Alexandre Oliva <aoliva@redhat.com>
5466 * combine.c (combinable_i3pat): Don't forbid occurrences of
5467 i2dest or i1dest in inner_dest if inner_dest is a mem.
5469 2003-07-18 Jan Hubicka <jh@suse.cz>
5471 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
5473 2003-07-17 Jakub Jelinek <jakub@redhat.com>
5476 * loop.c (basic_induction_var): Check if convert_modes emitted any
5477 instructions. Remove them and return 0 if so.
5479 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
5481 PR optimization/11083
5482 * toplev.c (rest_of_handle_addresof): Rename into
5483 rest_of_handle_addressof. Delete unreachable blocks
5484 if dead edges were purged after the addressof pass.
5486 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
5488 * Makefile.in, configure, configure.in: Remove handling of
5489 lang-options.h and options_.h.
5490 * toplev.c (struct lang_opt, documented_lang_options): Remove.
5491 (display_help): Don't use documented_lang_options.
5493 2003-07-17 Zack Weinberg <zack@codesourcery.com>
5495 * c-decl.c (pushdecl_function_level): Make static, return nothing.
5496 (kept_level_p): Fold into poplevel.
5497 (undeclared_variable): Moved here from c-typeck.c. Export.
5498 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
5499 (undeclared_variable): Prototype here. Don't prototype
5500 kept_level_p nor pushdecl_function_level.
5501 * c-parse.in: Change first argument to poplevel from
5502 "kept_level_p()" to "KEEP_MAYBE".
5503 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
5505 2003-07-17 Roger Sayle <roger@eyesopen.com>
5507 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
5508 commutative operands instead of modifying the RTL in-place.
5510 2003-07-17 Mark Mitchell <mark@codesourcery.com>
5512 PR optimization/11557
5513 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
5514 unless we know which function is being called.
5516 2003-07-17 Roger Sayle <roger@eyesopen.com>
5518 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
5519 whether to reorder the operands of a commutative binary operator.
5521 2003-07-17 Roger Sayle <roger@eyesopen.com>
5523 * fold-const.c (const_binop): Avoid performing the FP operation at
5524 compile-time, if either operand is NaN and we honor signaling NaNs,
5525 or if we're dividing by zero and either flag_trapping_math is set
5526 or the desired mode doesn't support infinities.
5527 (fold_initializer): New function to fold an expression ignoring any
5528 potential run-time exceptions or traps.
5529 * tree.h (fold_initializer): Prototype here.
5530 * c-typeck.c (build_binary_op): Move to the end of the file so
5531 that intializer_stack is in scope. If constructing an initializer,
5532 i.e. when initializer_stack is not NULL, use fold_initializer to
5534 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
5535 performing FP operations at compile-time, if they would raise an
5536 exception at run-time.
5538 2003-07-17 Geoffrey Keating <geoffk@apple.com>
5541 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
5542 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
5543 (GTFILES): Add langhooks.c.
5544 (gt-langhooks.h): New.
5545 * c-common.h (c_static_assembler_name): Prototype.
5546 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
5547 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
5548 * c-opts.c: Include langhooks-def.h.
5549 (c_static_assembler_name): New.
5550 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
5552 (lhd_set_decl_assembler_name): Give static objects with context
5554 * varasm.c (var_labelno): Delete.
5555 (make_decl_rtl): Don't change the assembler name once it's set.
5557 * c-opts.c (this_input_filename): New.
5558 (finish_options): Take new parameter, name of file being compiled.
5559 Update callers. Set this_input_filename.
5560 (push_command_line_include): Use this_input_filename not
5561 main_input_filename.
5563 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
5565 * Makefile.in: Depend .pot generation on options.c.
5566 * po/exgettext: Add an extra_files variable containing additional
5569 2003-07-17 Zack Weinberg <zack@codesourcery.com>
5571 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
5572 c_write_global_declarations.
5574 * c-decl.c: Fix typos in several comments. Remove all
5575 #if 0 blocks; reindent as needed. Remove unused argument
5576 to declare_parm_level; all callers changed.
5577 * c-parse.in: Update calls to declare_parm_level. Avoid
5578 issuing a double warning in some circumstances.
5579 * c-typeck.c: Update calls to declare_parm_level.
5580 * c-tree.h: Update prototype of declare_parm_level.
5582 * c-pragma.c (apply_pragma_weak): Don't complain about a
5583 redundant #pragma weak.
5585 * objc/objc-act.c (forward_declare_categories,
5586 build_selector_reference_decl, build_class_reference_decl,
5587 build_objc_string_decl, synth_forward_declarations,
5588 build_protocol_reference): Set TREE_PUBLIC on synthetic
5589 forward decl to 0, consistent with eventual definition.
5590 Correct comments to match.
5592 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
5593 in regexp that don't form a range expression.
5594 * fixinc/fixincl.def: Regenerate.
5596 2003-07-17 Richard Henderson <rth@redhat.com>
5599 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
5600 even with !TARGET_CONST_GP.
5601 (ia64_function_ok_for_sibcall): Reject non-local functions.
5603 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
5605 * c-common.c (c_estimate_num_insns_1): Don't handle
5607 * expr.c (safe_from_p): Likewise.
5608 * gengtype.c (adjust_field_tree_exp): Likewise.
5609 * stmt.c (warn_if_unused_value): Likewise
5610 * tree.c (first_rtl_op): Likewise.
5611 * tree.def: Don't define METHOD_CALL_EXPR.
5612 * java/lang.c (java_estimate_num_insns_1): Don't handle
5615 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
5618 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
5619 and its restrictions for the SPARC64 port.
5620 Move the entry of "-mimpure-text" before that of "-mv8".
5622 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
5623 Phil Edwards <phil@jaj.com>
5625 * doc/install.texi (*-*-solaris2*): Document the step-by-step
5626 procedure to bootstrap and install.
5627 Document the preference for the legacy Sun tools in /usr/bin
5628 over the POSIX tools in /usr/xpg4/bin for the build process.
5630 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
5632 * c.opt: Document Uncodumented; use it. Document ObjC options.
5633 * opts.c (print_filtered_help): Skip undocumented switches.
5634 * opts.h (CL_UNDOCUMENTED): New.
5635 * opts.sh: Handle Undocumented.
5636 * toplev.c (documented_lang_options): Prevent its becoming empty.
5638 * lang-options.h: Remove.
5640 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
5642 * loop.c (check_ext_dependent_givs): Pass const struct loop *
5643 instead of struct loop_info * as argument. Accept BIVs with
5644 increment +/- 1 provided there is a friendly exit test against
5645 a loop-invariant value.
5646 (strength_reduce): Adapt call to check_ext_dependent_givs.
5648 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
5649 Con Bradley <con.bradley@superh.com>
5651 * sh-protos.h (sh_get_pr_initial_val): Declare.
5652 * sh.c (regno_reg_class): Make its elements type enum reg_class.
5653 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
5654 and live_regs_mask arguments. Changed all callers.
5655 (save_schedule_s): New structure.
5656 (save_schedule): New typedef.
5657 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
5658 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
5659 In interrupts handlers, also save registers that are usually
5660 partially saved, and make sure there is at least one general purpose
5661 register saved if a target register needs saving.
5662 Add casts in comparisons to avoid warnings.
5663 (sh_media_register_for_return): return -1 for interrupt handlers.
5664 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
5665 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
5666 registers used are available.
5667 Set RTX_FRAME_RELATED_P where appropriate.
5668 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
5669 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
5670 (initial_elimination_offset): Likewise.
5671 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
5672 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
5673 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
5674 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
5675 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
5676 and for target registers.
5677 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
5678 (regno_reg_class): Make its elements type enum reg_class.
5679 (CONSTRAINT_LEN): Don't use isdigit.
5680 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
5681 (FUNCTION_ARG): Add parentheses to avoid warnings.
5682 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
5683 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
5684 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
5685 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
5686 * sh.md (xordi3+1): Remove unused variable regno.
5687 (return_media): Check that tr0 is available before using it.
5689 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
5691 * c.opt: Document more options.
5693 2003-07-16 Roger Sayle <roger@eyesopen.com>
5695 * combine.c (subst): Also handle (subreg (const_double ...)) case
5696 if created by a substitution, by using the original inner mode.
5698 2003-07-16 Roger Sayle <roger@eyesopen.com>
5700 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
5701 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
5702 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
5704 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
5706 * doc/install.texi (--without-headers): New.
5708 Partial Fix PR/10129
5709 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
5710 (machopic_output_function_base_name): New; print the true pic label.
5711 (machopic_classify_ident): Pic Base is always a defined data.
5712 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
5713 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
5715 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
5716 if they are not floating point registers.
5719 * ggc.h: Add header guards.
5720 * c-decl.c (finish_struct): Sort fields if
5721 number greater than 15 and there are no
5722 anonymous structs/unions.
5723 * c-common.h: Include ggc.h.
5724 (sorted_fields_type): New struct.
5725 (field_decl_cmp): New prototype.
5726 (resort_sorted_fields): New prototype.
5727 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
5728 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
5729 as s, removing other fields.
5730 * c-typeck.c (lookup_field): Use s in lang_type.
5731 These were mostly moved from cp/class.c:
5732 * c-common.c (field_decl_cmp): New static function.
5733 (field_decl_cmp): New function.
5734 (resort_sorted_fields): New function.
5736 2003-07-16 Geoffrey Keating <geoffk@apple.com>
5738 * config/darwin.c (machopic_select_section): Use decl_readonly_section
5739 to do most of the work.
5741 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
5743 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
5744 * config/mmix/mmix.c: Convert functions to ISO C90.
5745 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
5747 (mmix_get_hard_reg_initial_val): Tweak section head comment.
5749 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
5751 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
5753 2003-07-16 Jakub Jelinek <jakub@redhat.com>
5755 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
5756 (uw_update_context_1): Use it.
5757 * config/rs6000/rs6000.c (insn_after_throw): Remove.
5758 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
5759 in parent frame if _Unwind_* called directly instead of through
5761 (rs6000_emit_eh_toc_restore): Remove.
5762 (rs6000_emit_prologue): Update stack pointer before doing any saving
5763 if current_function_calls_eh_return. Generate unwind info for $r2.
5764 (rs6000_emit_epilogue): Restore stack pointer after doing all
5765 restoring if current_function_calls_eh_return. Restore $r2.
5766 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
5767 * config/rs6000/rs6000.md (eh_return): Remove call to
5768 rs6000_emit_eh_toc_restore.
5769 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
5770 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
5772 2003-07-15 Jakub Jelinek <jakub@redhat.com>
5774 * expr.c (emit_block_move): Don't move anything if size is const 0.
5775 (clear_storage): Test against const0_rtx instead of comparing INTVAL
5778 2003-07-15 David S. Miller <davem@redhat.com>
5780 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
5781 emit nop if the last real insn is CALL_INSN.
5783 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
5785 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
5787 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
5789 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
5791 * config/i386/winnt.c (associated_type): Artificial methods are not
5792 affected by the import/export status of their class unless they are
5794 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
5796 * config/i386/winnt.c: Fix GCC copyright comment.
5798 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
5801 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
5802 not recursing on hard error.
5803 (diagnostic_for_decl): Likewise.
5804 * diagnostic.def: Rearrange.
5806 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
5808 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
5809 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
5811 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
5812 Richard Henderson <rth@redhat.com>
5814 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
5815 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
5816 (_Unwind_SetGR): Likewise.
5817 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
5818 (Unwind_SpTmp): New typedef.
5819 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
5820 (uw_update_context): Use _Unwind_GetPtr.
5821 (init_dwarf_reg_size_table): Move above uw_init_context_1.
5822 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
5823 Use _Unwind_SetSpColumn.
5824 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
5827 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
5829 * c.opt: Document more options.
5830 * toplev.c (documented_lang_options): Remove all local help strings.
5832 2003-07-15 Mark Mitchell <mark@codesourcery.com>
5835 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
5838 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
5841 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
5842 swap comparison operands if doing so would generate an
5843 unrecognizable insn.
5845 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
5847 PR optimization/11320
5848 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
5849 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
5850 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
5851 current_sched_info->compute_jump_reg_dependencies. Record which
5852 registers are used and which registers are set by the jump.
5853 Clear deps->reg_conditional_sets after a barrier.
5854 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
5855 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
5856 (init_deps): Initialize reg_conditional_sets.
5857 (free_deps): Clear reg_conditional_sets.
5858 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
5859 Mark registers live on entry of the fallthrough block and conditionally
5860 set as set by the jump. Mark registers live on entry of non-fallthrough
5861 blocks as used by the jump.
5862 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
5863 Mark new parameters as unused.
5865 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
5867 * doc/invoke.texi: Resync MIPS -march documentation.
5869 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
5871 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
5872 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
5873 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
5874 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
5875 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
5876 (mips_issue_rate): Handle PROCESSOR_R9000.
5877 (mips_use_dfa_pipeline_interface): Likewise.
5878 * config/mips/9000.md: New file.
5879 * config/mips/mips.md: Include it.
5880 (define_attr cpu): Add r9000.
5881 (mulsi3_mult3): Use "mul" for rm9000 code.
5883 2003-07-15 Stan Cox <scox@redhat.com>
5885 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
5886 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
5887 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
5888 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
5889 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
5890 (mips_issue_rate): Handle PROCESSOR_R7000.
5891 (mips_use_dfa_pipeline_interface): Likewise.
5892 * config/mips/7000.md: New file.
5893 * config/mips/mips.md: Include it.
5894 (define_attr cpu): Add r7000.
5895 (mulsi3_mult3): Use "mul" for rm7000 code.
5897 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
5899 * config/mips/mips.md (define_attr type): Add condmove. Use it for
5900 the conditional move patterns.
5901 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
5902 Check for condmove type.
5903 (ir_vr54_arith): Add move type.
5904 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
5905 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
5907 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
5909 * c-opts.c (print_help): Remove.
5910 (c_common_handle_option): Don't handle --help.
5911 * c.opt: Document some options.
5913 * opts.c (print_filtered_help): New.
5914 (print_help): Use it.
5916 2003-07-14 Geoffrey Keating <geoffk@apple.com>
5918 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
5919 * tree.c: (build_common_tree_nodes_2): Likewise.
5920 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
5921 (V4DF_type_node): New.
5923 * c-opts.c (push_command_line_include): Don't free deferred_opts,
5925 (finish_options): Reset init_cursor.
5927 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
5929 * expr.c (expand_assignment): Remove an unused argument
5931 * expr.h: Update the prototype.
5932 * function.c: Update the callers.
5935 2003-07-14 Mark Mitchell <mark@codesourcery.com>
5938 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
5941 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
5943 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
5944 with __cplusplus, not "we must use the C++ compiler's type"
5945 * fixinc/inclhack.def (void_null): Note that Interix needs this.
5946 * fixinc/fixincl.x: Regenerate.
5948 2003-07-14 Geoffrey Keating <geoffk@apple.com>
5950 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
5951 and unseen_objects from the global data before calling
5952 __deregister_frame_info_bases.
5953 (examine_objects): Insert objects into the seen_objects list,
5955 (_Unwind_Find_FDE): Always unlock the global object lists, even if
5956 we couldn't allocate a data structure to put in it.
5958 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
5959 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
5960 (SET_TYPE_PROTOCOL_LIST): New.
5961 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
5962 (get_object_reference): Likewise.
5964 2003-07-14 Jan Hubicka <jh@suse.cz>
5966 * cfglayout.c (locator_file): Break out from ....
5967 (insn_file): ... here.
5968 (locator_line): Break out from ....
5969 (insn_line): ... here.
5970 * rtl.h (locator_file, locator_line): Declare.
5971 (final_start_function): Set proper line/file info.
5973 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
5975 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
5976 handled by pp_c_cast_expression.
5978 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
5980 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
5981 allocate 32768 bytes of stack. Use addition rather than subtraction
5982 when a single insn is enough.
5983 * config/mips/mips.md: Remove insns and splitters for subtracting
5985 (subsi3): Only accept register operands.
5986 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
5987 (subdi3_internal_3, subsi3_internal_2): Likewise.
5988 (casesi): Use expand_binop to subtract the lower bound.
5990 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
5992 * config/mips/mips.c (mips_in_small_data_p): Don't handle
5993 TARGET_MIPS16 specially.
5995 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
5997 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
5998 mips_output_aligned_bss.
5999 * config/mips/linux.h: Likewise.
6000 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
6001 * config/mips/mips.c (mips_output_aligned_bss): New function.
6003 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
6004 * config/mips/elf64.h: Likewise.
6006 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
6007 mips_declare_object_name.
6008 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
6009 * config/mips/elf64.h: As for elf.h.
6010 * config/mips/iris6.h: Likewise.
6011 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
6012 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
6013 do...while (0) block.
6014 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
6015 (mips_finish_declare_object): Declare.
6016 * config/mips/mips.c (mips_declare_object_name): New function.
6017 (mips_finish_declare_object): New function.
6019 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
6020 * config/mips/linux.h: Likewise.
6022 * config/mips/mips.c (inside_function): Delete.
6023 (file_in_function_warning, ignore_line_number): Delete.
6024 (mips_output_filename): Don't warn about changing filenames within
6026 (mips_output_lineno): Update accordingly.
6027 (mips_output_function_prologue): Don't reset the deleted variables.
6028 * config/mips/mips.h (inside_function): Delete.
6029 (file_in_function_warning, ignore_line_number): Delete.
6031 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
6032 * config/mips/elf64.h: Likewise.
6033 * config/mips/openbsd.h: Likewise.
6034 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
6035 * config/mips/linux.h: Likewise.
6036 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
6037 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
6039 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
6040 to the list of include files when using gas.
6041 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
6042 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
6043 * config/mips/elf64.h: Likewise.
6044 * config/mips/iris5.h: Likewise.
6045 * config/mips/linux.h: Likewise.
6046 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
6047 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
6048 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
6049 * config/mips/sdb.h: ...this new file.
6051 2003-07-14 Douglas Rupp <rupp@gnat.com>
6053 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
6054 argument to getcwd; use fixed buffer instead.
6056 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
6058 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
6059 * fixinc/fixinc.wrap: Delete.
6061 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
6063 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
6066 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
6068 * ggc-page.c (struct globals): Add new fields to keep track of the
6069 total allocated memory and overhead.
6070 (ggc_print_statistics): Print them.
6071 (ggc_alloc): Keep track of the total allocated memory and the
6074 * tree.c (dump_tree_statistics): Increase spacing.
6075 (enum tree_node_kind): Move to ...
6076 * tree.h (enum tree_node_kind): ... here.
6077 (tree_node_counts, tree_node_sizes): Declare.
6079 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
6081 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
6083 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6085 PR optimization/11440
6086 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
6089 2003-07-14 Alan Modra <amodra@bigpond.net.au>
6091 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
6092 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
6093 (emit_group_load, emit_group_store): Adjust declarations.
6094 Remove most occurrences of #ifdef TREE_CODE.
6095 * expr.c (emit_group_load): Add "type" param, and use
6096 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
6097 aligned accesses if !SLOW_UNALIGNED_ACCESS.
6098 (emit_group_store): Likewise.
6099 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
6100 emit_group_load and emit_group_store calls.
6101 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
6102 BLOCK_REG_PADDING to determine whether we need endian_correction.
6103 (load_register_parameters): Localize vars. Handle shifting of
6104 small values to the correct end of regs. Adjust emit_group_load
6106 (expand_call, emit_library_call_value_1): Adjust emit_group_load
6107 and emit_group_store calls.
6108 * function.c (assign_parms): Set mem alignment for stack slots.
6109 Adjust emit_group_store call. Store values at the "wrong" end
6110 of regs to the stack. Use BLOCK_REG_PADDING.
6111 (locate_and_pad_parm): Save where_pad.
6112 (expand_function_end): Adjust emit_group_load call.
6113 * stmt.c (expand_value_return): Adjust emit_group_load call.
6114 * Makefile.in (calls.o): Depend on $(OPTABS_H).
6115 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
6116 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
6117 (MUST_PASS_IN_STACK): Define.
6118 (BLOCK_REG_PADDING): Define.
6119 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
6120 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
6121 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
6122 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
6123 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
6125 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
6127 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
6129 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6131 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
6132 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
6134 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
6137 * toplev.c: Don't cut off option names.
6139 2003-07-13 Andreas Jaeger <aj@suse.de>
6141 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
6142 to integer of different size.
6144 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
6146 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
6147 to (eq (and X 1) 0).
6149 2003-07-13 Andreas Jaeger <aj@suse.de>
6151 * config.gcc: Add pmmintrin.h for x86_64-*-*.
6153 2003-07-13 Zack Weinberg <zack@codesourcery.com>
6155 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
6156 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
6157 list. Move these all together down by cpplib.
6159 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
6160 definition of CPPCHAR_SIGNED_T.
6162 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
6163 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
6164 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
6166 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
6167 * cppinit.c (cpp_create_reader): Likewise.
6169 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
6170 * cpptrad.c: Likewise. All callers changed.
6171 * cpplib.c: All callers changed.
6172 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
6173 * hashtable.h: Define GTY(x) to nothing here too.
6175 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6177 * stor-layout.c (compute_record_mode): Remove very obsolete test
6178 that forces BLKmode for records with fields crossing word boundary.
6180 2003-07-13 Zack Weinberg <zack@codesourcery.com>
6182 * Makefile.in: Remove orphan reference to acconfig.h.
6184 2003-07-13 Andreas Jaeger <aj@suse.de>
6186 * cgraphunit.c: Convert prototypes to ISO C90.
6188 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
6190 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
6192 * fixinc/fixincl.x: Rebuild.
6194 2003-07-12 Zack Weinberg <zack@codesourcery.com>
6196 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
6197 i?86-*-*. Use correct name of cache variable.
6198 * configure: Regenerate.
6200 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
6202 * config/alpha/alpha.c: Fix comment typos.
6203 * config/alpha/alpha.md: Likewise.
6204 * config/arm/arm.c: Likewise.
6205 * config/arm/arm.md: Likewise.
6206 * config/arm/lib1funcs.asm: Likewise.
6207 * config/avr/avr.md: Likewise.
6208 * config/arm/README-interworking: Fix typos.
6210 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
6212 * c-format.c: Fix comment formatting.
6213 * c-typeck.c: Likewise.
6214 * coverage.c: Likewise.
6215 * cppcharset.c: Likewise.
6216 * cpplib.c: Likewise.
6217 * dbxout.c: Likewise.
6218 * gcov-io.h: Likewise.
6219 * toplev.c: Likewise.
6221 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
6223 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
6226 2003-07-12 Zack Weinberg <zack@codesourcery.com>
6228 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
6229 uses three-argument AC_DEFINE so no acconfig.h entries are
6231 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
6232 which contains the GAS version number as a scaled integer.
6233 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
6234 ability to check for ELF assembler.
6235 (gcc_GAS_CHECK_FEATURE): New macro.
6236 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
6237 assembler feature checks using gcc_GAS_CHECK_FEATURE.
6238 Use three-argument AC_DEFINE everywhere.
6239 * acconfig.h: Deleted.
6240 * config.in, configure: Regenerate.
6242 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
6244 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
6246 * fixinc/fixincl.x: Regenerate.
6248 * fixinc/inclhack.def (gnu_types): Improve comment.
6250 2003-07-12 Andreas Jaeger <aj@suse.de>
6252 * fp-test.c (main): Use ISO C90 prototype.
6254 * version.c: Remove unneded include of ansidecl.h.
6256 * cgraph.h: Convert prototypes to ISO C90.
6257 * cgraph.c: Likewise.
6258 * fix-header.c: Likewise.
6260 * protoize.c: Likewise.
6262 2003-07-12 Jan Hubicka <jh@suse.cz>
6264 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
6267 2003-07-12 Jan Hubicka <jh@suse.cz>
6268 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6270 * cgraph.c (cgraph_max_uid): New global variable.
6271 (cgraph_node): Set uid field.
6272 (create_edge): Keep inline flags consistent.
6273 (dump_cgraph): Dump more info.
6274 * cgraph.h (struct cgraph_local_info): Remove inline_many and
6275 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
6276 (struct cgraph_global_info): Add insns, calls, cloned_times,
6278 (struct cgraph_node): Add uid.
6279 (struct cgraph_edge): Add inline_call.
6280 (cgraph_max_uid, cgraph_inline_p): Declare.
6281 * cgraph.c: Include params.h and fibheap.h
6282 (cgraph_mark_functions_to_inline_once): Kill.
6283 (INSNS_PER_CALL): New constant.
6284 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
6286 (cgraph_finalize_function): Do not analyze inlining.
6287 (cgraph_finalize_compilation_unit): Set inlining attributes.
6288 (cgraph_mark_functions_to_output): More consistency checks.
6289 (cgraph_optimize_function): Set current_function_decl to NULL.
6290 (cgraph_expand_function): Use new inline flags.
6291 (cgraph_postorder): Expand from cgraph_expand_functions.
6292 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
6293 (cgraph_inlined_into, cgraph_inlined_callees,
6294 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
6295 cgraph_mark_inline, cgraph_check_inline_limits,
6296 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
6297 cgraph_decide_inlining, cgraph_inline_p): New functions.
6298 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
6299 PARAM_INLINE_UNIT_GROWTH): New parameters.
6300 * tree-inline.c (struct inline_data): New field current_decl.
6301 (expand_call_inline): Avoid forward declarations; use
6302 inlinable_function_p.
6303 (optimize_inline_calls): Set id.current_decl.
6305 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
6307 * configure.in: Remove wrongly added definition of
6309 * configure: Regenerate.
6311 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
6313 * rtl.def (NOTE): Do not use padding.
6315 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
6317 * doc/install.tex: Update required binutils for i?86-*-linux*
6319 2003-07-11 Richard Henderson <rth@redhat.com>
6321 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
6323 2003-07-11 Mark Mitchell <mark@codesourcery.com>
6325 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
6326 TRANSLATION_UNIT_DECL as top_level.
6328 2003-07-11 Jakub Jelinek <jakub@redhat.com>
6330 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
6331 then fall back to cmpstrM.
6332 * builtins.c (expand_builtin_memcmp): Likewise.
6333 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
6334 (s390_expand_cmpmem): ... this.
6335 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
6336 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
6337 from cmpstr* patterns. Rename call to s390_expand_cmpstr
6338 to s390_expand_cmpmem.
6339 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
6340 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
6342 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
6344 * doc/md.texi (cmpstrM): Describe as String compare insn, not
6348 2003-07-11 Loren James Rittle <ljrittle@acm.org>
6350 * config/i386/freebsd.h (SET_ASM_OP): Remove.
6351 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
6352 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
6353 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
6355 2003-07-11 Richard Henderson <rth@redhat.com>
6357 * function.c (assign_parms): Don't recombine complex args if
6358 fnargs is unchanged from orig_fnargs.
6359 (split_complex_args): Return args without complex before copying.
6360 Re-layout the modified parameters.
6362 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
6364 * regclass.c (choose_hard_reg_mode): Add third argument.
6365 Changed all callers.
6366 * rtl.h (choose_hard_reg_mode): Update declaration.
6367 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
6368 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
6370 2003-07-11 Geoffrey Keating <geoffk@apple.com>
6372 * c-decl.c (finish_decl): Handle 'used' here...
6373 * cgraphunit.c (cgraph_finalize_function): ... and here ...
6374 * c-common.c: (handle_used_attribute): ... not here.
6376 * configure.in (onstep): Support --enable-intermodule.
6377 * Makefile.in (OBJS-common): New.
6379 (OBJS-archive): New.
6380 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
6381 (OBJS-onestep): New.
6382 (libbackend.a): Support @onestep@.
6383 (libbackend.o): New.
6384 * configure: Regenerate.
6386 * c-common.h (c_reset_state): New prototype.
6387 (c_parse_file): New prototype.
6388 (finish_file): Move prototype from c-tree.h.
6389 * c-decl.c: Include <hashtab.h>.
6390 (builtin_decls): New.
6391 (current_file_decl): New.
6392 (duplicate_decls): Add extra parameter. Change all callers. Don't
6393 output duplicate common symbols.
6394 (link_hash_hash): New.
6395 (link_hash_eq): New.
6396 (poplevel): Handle popping of the top level.
6397 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
6398 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
6399 (pushdecl_top_level): Likewise.
6400 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
6401 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
6402 (finish_decl): Handle TRANSLATION_UNIT_DECL.
6403 (merge_translation_unit_decls): New.
6404 (c_write_global_declarations): New.
6405 (c_reset_state): New.
6406 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
6407 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
6408 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
6409 TRANSLATION_UNIT_DECL.
6410 (c_objc_common_finish_file): Call merge_translation_unit_decls.
6411 * c-opts.c (in_fnames): Rename from in_fname.
6412 (c_common_decode_option): Handle multiple input filenames.
6413 (c_common_post_options): Likewise.
6414 (c_common_parse_file): Likewise; also, call c_parse_file rather than
6416 * c-parse.in: Move cleanup code to c_parse_file.
6417 (free_parser_stacks): Move contents to c_parse_file.
6418 (c_parse_file): New.
6419 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
6421 (C_DECL_FILE_SCOPE): New.
6422 (finish_file): Move prototype to c-common.h.
6423 (merge_translation_unit_decls): New prototype.
6424 (comptypes): Add extra parameter to prototype.
6425 (c_write_global_declarations): New prototype.
6426 * c-typeck.c (tagged_types_tu_compatible_p): New.
6427 (function_types_compatible_p): Add extra parameter, change all callers.
6428 (type_lists_compatible_p): Likewise.
6429 (comptypes): Likewise.
6430 (struct tagged_tu_seen): New.
6431 (tagged_tu_seen_base): New.
6432 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
6433 (c_mark_addressable): Remove #if 0 code.
6434 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
6435 comment explaining why it shouldn't have to.
6436 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
6438 * cppinit.c (cpp_read_next_file): New.
6439 (cpp_read_main_file): Use it.
6440 * cpplib.c (undefine_macros): New.
6441 (cpp_undef_all): New.
6442 * cpplib.h (cpp_read_next_file): Prototype.
6443 (cpp_undef_all): Prototype.
6444 * langhooks-def.h (write_global_declarations): Remove prototype.
6445 * toplev.h (write_global_declarations): Add prototype.
6446 * tree.c (decl_type_context): Use switch statement, handle
6447 TRANSLATION_UNIT_DECL.
6448 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
6449 (TRANSLATION_UNIT_DECL): New kind of tree.
6450 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
6451 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
6452 * doc/invoke.texi: Make attempt to document new functionality.
6454 2003-05-19 Per Bothner <bothner@apple.com>
6456 * gcc.c (combine_inputs): New.
6457 (process_command): Set combine_inputs.
6458 (do_spec_1): Handle combine_inputs.
6461 2003-07-10 James E Wilson <wilson@tuliptree.org>
6463 PR optimization/9745
6464 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
6465 loop_insn_emit_before.
6466 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
6468 2003-07-10 Zack Weinberg <zack@codesourcery.com>
6470 * cppcharset.c: Fix comment.
6471 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
6472 (EILSEQ): #define to EINVAL if not already defined.
6473 (convert_using_iconv): #if out when !HAVE_ICONV.
6474 (init_iconv_desc): Handle !HAVE_ICONV here...
6475 (cpp_init_iconv): ...not here.
6477 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
6479 * common.opt: More --help messages.
6480 * opts.c (print_help): Use puts().
6481 * toplev.c (f_options): Remove help text.
6482 (display_help): Don't dump f_options.
6484 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
6486 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
6487 Move i?86-*-interix* to the don't-fix list.
6488 * fixinc/fixinc.interix: Delete with extreme prejudice.
6490 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
6493 * doc/install.texi: Document requirements for ia64-*-hpux* target.
6495 2003-07-10 Roger Sayle <roger@eyesopen.com>
6497 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
6499 2003-07-10 Zack Weinberg <zack@codesourcery.com>
6501 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
6502 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
6503 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
6504 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
6505 convert_no_conversion, convert_using_iconv): New functions.
6506 (APPLY_CONVERSION): New macro.
6507 (struct conversion, conversion_tab): New data structure.
6508 (init_iconv_desc): Check conversion_tab for a custom conversion
6509 primitive before trying to use iconv.
6510 (convert_cset): Deleted.
6511 (cpp_init_iconv): Use UTF- terminology, not UCS-.
6512 (_cpp_destroy_iconv): Update to match.
6513 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
6514 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
6515 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
6516 (_cpp_interpret_string_notranslate): New function, moved here
6519 * cpphash.h (convert_f, struct cset_converter): New types.
6520 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
6521 are now struct cset_converter, not bare iconv_t.
6523 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
6524 all callers changed.
6526 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
6528 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
6529 to opts.sh command line.
6530 * opts.sh: Write to temporary files with a move-if-change at the end.
6532 2003-07-10 Denis Chertykov <denisc@overta.ru>
6533 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6535 * combine.c (gen_binary): Handle the CLOBBER rtx and
6536 don't build a binary operation with it.
6538 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6540 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
6541 store_killed_after, store_killed_before): Keep track of the correct
6542 dependency function to use.
6544 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
6545 * toplev.c (do_compile): Don't try to open dump files before
6546 lang_dependent_init initializes dump_base_name.
6548 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6550 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
6552 * config/frv/frv.c (frv_expand_builtin): Likewise.
6553 * config/sh/sh.c (sh_media_init_builtins): Likewise.
6555 2003-07-09 Mark Mitchell <mark@codesourcery.com>
6558 * doc/invoke.texi (C++ Dialect Options): Change documentation of
6561 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
6563 * tm.texi (RETURN_ADDR_OFFSET): Document.
6565 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
6567 * gcov-io.h: Update documentation.
6568 (GCOV_UNSIGNED2STRING): New.
6569 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
6570 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
6571 GCOV_TAG_SUMMARY_LENGTH): Adjust.
6572 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
6573 GCOV_TAG_COUNTER_NUM): New.
6574 (GCOV_BLOCK_SIZE): Number of words.
6575 (gcov_var): Adjust buffer type.
6576 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
6577 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
6578 count, not byte count.
6579 (gcov_open): Adjust overread init.
6580 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
6581 gcov_write_string, gcov_write_tag, gcov_write_length,
6582 gcov_write_tag_length): Adjust.
6583 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
6584 (gcov_sync, gcov_seek): Adjust.
6585 * gcov-dump.c (print_usage): Show gcc version only.
6586 (dump_file): Use GCOV_UNSIGNED2STRING.
6587 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
6588 * gcov.c (print_version): Show gcc version only.
6589 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
6590 GCOV_TAG_*_NUM macros.
6591 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
6592 GCOV_TAG_COUNTER_LENGTH.
6593 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
6594 Use GCOV_TAG_COUNTER_NUM.
6595 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
6596 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
6598 2003-07-10 Andreas Schwab <schwab@suse.de>
6600 * gcov-dump.c (dump_file): Fix missing address operator.
6602 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
6605 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
6607 (fold_single_bit_test): If sign_bit_p() fails, assume that the
6608 bit being tested is not a sign bit.
6610 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
6612 * config/h8300/h8300.md (a peephole2): New.
6614 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
6616 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
6617 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
6618 from ld-linux.so.2 to ld.so.1.
6619 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
6620 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
6621 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
6622 nor -Wl,-rpath-link.
6623 (LIB_SPEC): Add -rpath-link if !static.
6624 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
6625 * config/mn10300/mn10300.c (mn10300_protect_label): New
6627 * config/mn10300/linux.h (PRINT_OPERAND,
6628 PRINT_OPERAND_ADDRESS): Set it during their execution.
6629 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
6630 mn10300_protect_label is set.
6631 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
6633 (LIB_SPEC, STARTFILE_SPEC): Define.
6634 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
6635 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
6636 FLOAT_BIT_ORDER_MISMATCH.
6637 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
6638 * config.gcc (am33_2.0-*-linux*): Added.
6639 * config/mn10300/linux.h: New.
6640 * config/mn10300/t-linux: New.
6642 2003-07-10 Andreas Jaeger <aj@suse.de>
6644 * fold-const.c: Properly wrap prototypes.
6646 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
6648 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
6649 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
6651 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
6652 * config/mn10300/mn10300.h: GTY-declare it.
6653 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
6654 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
6655 prototype. Use incoming RTL argument.
6656 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
6657 * config/mn10300/mn10300.md (int_label): Move C statements...
6658 (GOTaddr2picreg): ... here.
6659 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
6660 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
6661 * config/mn10300/mn10300.c (mn10300_encode_section_info):
6662 ... here. New function.
6663 (TARGET_ENCODE_SECTION_INFO): Define to it.
6664 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
6665 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
6667 (mn10300_loadPC): Define as insn splittable after reload.
6668 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
6669 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
6670 be defined in .rodata even in PIC, now that the assembler
6672 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
6673 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
6674 symbol take an underscore prefix.
6675 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
6676 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
6677 legitimize_pic_address): Declare.
6678 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
6679 the PIC register as fixed.
6680 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
6681 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
6683 (LEGITIMATE_PIC_OPERAND_P): Define.
6684 (PIC_OFFSET_TABLE_REGNUM): Define.
6685 (GOT_SYMBOL_NAME): Define.
6686 (SYMBOLIC_CONST_P): Define.
6687 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
6689 (MN10300_GLOBAL_P): Test it.
6690 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
6691 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
6692 * config/mn10300/mn10300.c (print_operand): Handle unspec.
6693 (expand_prologue): Set PIC register.
6694 (call_address_operand): Don't match SYMBOL_REFs in PIC.
6695 (legitimize_address): Call legitimize_pic_address.
6696 (legitimize_pic_address): New fn.
6697 (legitimate_pic_operand_p): New fn.
6698 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
6699 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
6700 UNSPEC_PLT): New constants.
6701 (pop_pic_reg): New insn.
6702 (movsi): Adjust non-PIC addresses.
6703 (builtin_setjmp_receiver): Restore the PIC register.
6705 (call): Adjust non-PIC addresses.
6706 (int_label, GOTaddr2picreg): New expands.
6707 (am33_loadPC): New insn.
6708 (mn10300_loadPC): New expand.
6709 (call_next_insn): New insn.
6710 (add_GOT_to_pic_reg): New expand.
6711 (symGOT2reg, symGOT2reg_i): New expands.
6712 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
6713 (sym2PIC, sym2PLT): New expands.
6715 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
6717 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
6718 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
6719 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
6720 to flag_unsafe_math_optimizations.
6721 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
6722 * config/mn10300/mn10300.c (expand_prologue): Mark
6723 FP-register-saving insns as frame-related.
6724 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
6725 * config/mn10300/mn10300.c
6726 (mn10300_get_live_callee_saved_regs): Don't search past
6727 LAST_EXTENDED_REGNUM.
6728 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
6729 * config/mn10300/mn10300.md: Remove excessive line breaks from
6730 `@' output patterns that were accounted as additional
6732 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
6733 Re-introduce changes accidentally removed in Richard Sandiford's
6735 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
6736 Re-instate am33-2 lost in merge from net GCC.
6737 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
6738 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
6739 floating-point registers.
6740 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
6741 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
6742 pessimizations that had gone in on 2000-05-08.
6743 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
6744 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
6745 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
6746 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
6748 * (movhi): Likewise.
6749 * (movsi): Likewise.
6750 * (movsf): Likewise.
6751 * (movdi): Likewise.
6752 * (movdf): Likewise.
6753 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
6754 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
6755 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
6756 (expand_prologue, expand_epilogue): Save and restore FP regs.
6757 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
6758 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
6759 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
6760 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
6761 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
6763 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
6764 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
6765 Discourage the two-argument, longer opcodes.
6766 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
6768 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
6769 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
6770 * config/mn10300/mn10300.md (cmpsf): New pattern.
6771 (branch): Test mdep.fpCC and output fbCC.
6772 * config/mn10300/mn10300.c (print_operand): Output conditions.
6773 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
6774 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
6775 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
6776 mulsf3, divsf3): Use the `F' constraint for FP values.
6777 * config/mn10300/mn10300.c (const_1f_operand): New function.
6778 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
6779 * config/mn10300/mn10300.md (sqrtsf2): New expand.
6780 (rsqrtsf2): New insn.
6781 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
6782 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
6784 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
6785 * config/mn10300/mn10300.md (abssf2, negdf2): On
6786 TARGET_AM33_2, expand to...
6787 (abssf2_am33_2, negdf2_am33_2): New insns.
6788 (addsf3, subsf3, mulsf3, divsf3): Likewise.
6789 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
6790 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
6791 movdi, movdf): Added FP regs.
6792 * invoke.texi (-mam33-2, -mno-am33-2): Document.
6793 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
6794 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
6796 (REGNO_AM33_2_FP_P): Renamed to...
6797 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
6798 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
6799 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
6800 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
6801 regs from GENERAL_REGS.
6802 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
6803 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
6804 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
6805 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
6806 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
6807 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
6809 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
6810 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
6811 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
6812 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
6813 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
6814 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
6815 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
6816 AM33/2.0 floating-point registers.
6817 (CONDITIONAL_REGISTER_USAGE): Adjust.
6818 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
6819 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
6820 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
6821 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
6822 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
6823 (MULTILIB_DIRNAMES): Likewise.
6824 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
6825 `__AM33_2__' when `-mam33-2' is given.
6826 (TARGET_AM33_2): Define.
6827 (TARGET_SWITCHES): Adjust.
6828 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
6831 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
6833 * doc/install.texi: Add missing @.
6835 2003-07-09 Bob Wilson <bob.wilson@acm.org>
6837 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
6839 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
6842 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
6844 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
6847 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
6848 "x-crtfini.o" with "crtinit.o", "crtfini.o".
6850 * fixinc/inclhack.def (limits_ifndefs): Add select test.
6851 * fixinc/fixincl.x: Rebuild.
6853 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
6854 * fixinc/fixincl.x: Rebuild.
6856 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
6858 * doc/install.texi (Configuration): Document the valgrind option
6859 to --enable-checking.
6861 2003-07-09 Jan Hubicka <jh@suse.cz>
6863 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
6865 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6867 * c-lex.c (cb_ident): Cast cstr.text to const char *.
6869 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
6871 * gcov-io.h: Update documentation.
6872 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
6874 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
6875 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
6876 (struct gcov_var): Change buffer's type. Add endian flag.
6877 (gcov_open): Remove mode in libgcov.
6878 (gcov_magic): Prototype.
6879 * gcov-io.c (from_file): New.
6880 (gcov_open): Clear endian flag.
6882 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
6884 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
6885 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
6886 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
6887 * gcov-iov.c (main): Correct cast.
6888 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
6890 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
6891 (coverage_init): Use GCOV_NOTE_SUFFIX.
6892 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
6893 Rename to gcov_version, and return flag.
6894 (gcov_exit): Use gcov_version.
6895 (__gcov_init): Use gcov_version.
6896 * Makefile.in (coverageexts): Update.
6897 * gcov.c (print_version): Remove endianness conversion.
6898 (create_file_names): Use GCOV_NOTE_SUFFIX.
6899 (read_graph_file): Use gcov_magic.
6900 (read_count_file): Likewise.
6901 * gcov-dump.c (dump_file): Remove endianness conversion, use
6904 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
6906 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
6908 * configure: Regenerated.
6909 * Makefile.in (ALL_CFLAGS): Correct its comment.
6911 2003-07-08 Mark Mitchell <mark@codesourcery.com>
6913 * fold-const.c (make_range): Do not access operand 1 for a
6914 zero-operand operator.
6916 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
6918 * toplev.c (warn_dummy, W_options): Die.
6919 (display_help): Don't print W_options.
6920 * common.opt: Add W_options help from toplev.c.
6922 2003-07-09 Andreas Jaeger <aj@suse.de>
6924 * opts.c (wrap_help): Only pass int arguments as arguments to
6925 printf's '*' modifier. Change argument of function.
6927 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
6929 * doc/invoke.texi: Fix misspelling of "@item".
6931 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
6933 * config/i386/i386.md: Remove an old comment about
6936 2003-07-09 Jan Hubicka <jh@suse.cz>
6938 * cgraph.c (cgraph_node_name): New function.
6939 (dump_cgraph): Use it.
6940 * cgraph.h (cgraph_dump_file): Declare.
6941 (cgraph_node_name): Declare.
6942 * cgraphunit.c: Include timevar.h
6943 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
6944 (cgraph_optimize_function): Use TV_INTEGRATION.
6945 (cgraph_mark_local_functions): reorganize dumps.
6946 (cgraph_mark_functions_to_inline_once): Likewise.
6947 (cgraph_optimize): Likewise; use timevar.
6948 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
6949 * toplev.c (dump_file_index): Add DFI_cgraph.
6950 (dump_file_info): Likewise.
6951 (cgraph_dump_file): New global variable.
6952 (do_compile): Open and close cgraph dump.
6953 * invoke.texi (-d): Document new flag; renumber.
6955 2003-07-08 Roger Sayle <roger@eyesopen.com>
6958 * calls.c (emit_call_1): Don't bother popping the arguments off of
6959 the stack after a noreturn function call; The adjustment is dead.
6960 (expand_call): Likewise.
6962 2003-07-08 Geoffrey Keating <geoffk@apple.com>
6964 * expr.c (MOVE_MAX_PIECES): Move from here...
6965 * defaults.h (MOVE_MAX_PIECES): ... to here.
6967 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
6969 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
6971 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6973 * genattr.c (internal_dfa_insn_code): Don't prototype.
6974 * genattrtab.c (attr_desc): Add `static_p' field.
6975 (expand_units): Make blockage range and ready cost functions
6977 (write_attr_get): Don't add extern prototypes in C file. Mark
6978 static functions as appropriate.
6979 (find_attr, make_internal_attr): Initialize static_p.
6980 * genattrtab.h (ATTR_STATIC): New macro.
6981 * genautomata.c (output_internal_reset_func): Mark output function
6983 (make_internal_dfa_insn_code_attr): Mark output function as static.
6985 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6987 * genattrtab.h: Add new macros for attr `special' flags.
6988 * genattrtab.c (attr_desc): Reorder/resize fields better.
6989 Use attr `special' macros in all calls to make_internal_attr.
6990 * genautomata.c: Likewise.
6992 2003-07-09 Jan Hubicka <jh@suse.cz>
6994 * c-common.c (c_estimate_num_insns_1): New static function.
6995 (c_estimate_num_insns): New global function.
6996 * c-common.h (DECL_NUM_STMTS): Rename to...
6997 (DECL_ESTIMATED_INSNS): ... this.
6998 (c_estimate_num_insns): Declare.
6999 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
7000 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
7001 * c-semantics.c (add_stmt): Do not account statements.
7002 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
7004 * langhooks.h (lang_hooks_for_tree_inlining): Add
7006 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
7008 (max-inline-insns): set to 300.
7009 (min-inline-insns): set to 10.
7010 * tree-inline.c (struct inline_data): Rename inlined_stmts to
7012 (INSNS_PER_STMT): Kill.
7013 (inlinable_function_p): Compute and store body size.
7014 (expand_call_inline): Likewise.
7015 (optimize_inline_calls): Likewise.
7017 2003-07-08 James E Wilson <wilson@tuliptree.org>
7020 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
7021 loop over new variable t2 instead of t.
7023 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
7026 * config/i386/winnt.c: Replace use of error(), warning() with
7027 error_with_decl(), warning_with_decl(), throughout.
7029 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
7031 * opts.c (wrap_help): Use unsigned int, not size_t.
7033 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
7035 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
7036 as .file/.loc directives are incompatible with linker relaxation.
7038 2003-07-08 Zack Weinberg <zack@codesourcery.com>
7040 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
7041 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
7042 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
7043 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
7044 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
7045 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
7046 Escape { and } characters which are not part of range expressions.
7047 * fixinc/fixincl.x: Regenerate.
7048 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
7050 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
7053 * tree-inline.c (find_alloca_call): Use
7054 walk_tree_without_duplicates, instead of walk_tree.
7055 (find_builtin_longjmp_call): Likewise.
7056 * c-objc-common.c (c_cannot_inline_fn): Likewise.
7057 * c-semantics.c (find_reachable_label): Likewise.
7059 2003-07-08 Jakub Jelinek <jakub@redhat.com>
7062 * config/i386/i386.c (ix86_check_movabs): New function.
7063 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
7064 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
7065 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
7067 2003-07-08 Chris Demetriou <cgd@broadcom.com>
7069 * Makefile.in (install-po): Cope with empty CATALOGS.
7071 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
7073 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
7074 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
7075 (SECTION_FUNCTION_TEMPLATE): Delete.
7076 * config/mips/elf.h: As for elf64.h.
7077 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
7078 * config/mips/linux.h: As for elf.h
7079 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
7080 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
7081 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
7082 of in_sdata from current_section_name and current_section_flags.
7083 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
7084 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
7085 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
7086 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
7087 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
7088 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
7089 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
7090 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
7091 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
7092 (override_options): Remove setting of MASK_GPOPT.
7093 (mips_output_external): Use mips_in_small_data_p to check whether a
7094 symbol needs an .extern directive. Don't emit such directives for
7095 TARGET_EXPLICIT_RELOCS.
7096 (mips_declare_object): Update accordingly.
7097 (mips_select_rtx_section): Call named_section rather than
7099 (mips_select_section): Use default_elf_section_section for everything
7100 except .text string constants.
7101 (mips_in_small_data_p): New function.
7102 (mips_encode_section_info): Remove small data handling.
7103 (mips_unique_section): Delete.
7104 (iris6_section_type_flags): New function.
7105 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
7107 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7110 * pa.md: Disparage all mtsar constraints.
7111 (extzv, extv, insv): Don't fail on length of {32|64}.
7113 2003-07-08 Zack Weinberg <zack@codesourcery.com>
7115 * system.h: Poison MAP_CHARACTER.
7116 * config/i370/i370-protos.h (mvs_map_char): Delete.
7117 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
7118 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
7119 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
7121 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
7123 * toplev.c (randomize): Correct call to time().
7125 2003-07-08 Jakub Jelinek <jakub@redhat.com>
7127 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
7128 REG_EQUIV notes as well.
7130 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
7132 * doc/md.texi: Fix the description of addmodecc.
7134 2003-07-07 Zack Weinberg <zack@codesourcery.com>
7136 * Makefile.in (top_builddir): Set to "..", not ".".
7137 (INTLLIBS, INTLDEPS): Delete.
7138 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
7139 (LIBDEPS): Add $(LIBICONV_DEP).
7140 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
7141 (INCLUDES): Replace -I../intl with @INCINTL@.
7142 ($(top_builddir)/intl/libintl.a): Delete rule.
7143 (stage2-start, stage3-start, stage4-start, stageprofile-start,
7144 stagefeedback-start): Use $$ for variable to be evaluated by
7146 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
7147 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
7148 * aclocal.m4: sinclude ../config/progtest.m4. Add
7149 contents of lcmessage.m4 from gettext distro.
7150 * configure.in: Check for wchar.h and setlocale. Set
7151 LIBICONV_DEP to the empty string and substitute it.
7152 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
7153 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
7154 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
7155 in $LIBINTL, to avoid linking it twice.
7156 * configure, config.in: Regenerate.
7158 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
7160 * fixinc/mkfixinc.sh: Remove winnt support.
7161 * fixinc/fixinc.winnt: Delete with extreme prejudice.
7163 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
7165 * Makefile.in: Update.
7166 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
7167 * c.opt: Update documentation.
7168 * common.opt: Add some help text.
7169 * opts.c: Include intl.h.
7170 (wrap_help, print_help): New.
7171 (find_opt, handle_option, common_handle_option): opt_text now
7172 contains the '-'. Use print_help to output help.
7173 * opts.h (struct cl_option): New member "help".
7174 * opts.sh: Update to handle help text output and to prepend
7176 * toplev.c (display_help): Remove some help text.
7178 2003-07-07 David Edelsohn <edelsohn@gnu.org>
7179 Fariborz Jahanian <fjahanian@apple.com>
7181 * configure.in: Test for PowerPC mfcr field support in assembler.
7182 * config.in, configure: Regenderated.
7184 * config/rs6000/power4.md: Add mfcrf reservation.
7185 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
7186 * config/rs6000/rs6000.c (mfcr_operation): Define.
7187 (print_operand): Add 'Q' case for mfcrf.
7188 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
7189 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
7190 (movcc_internal1): Emit optional field operand for mfcr and set
7191 "type" attribute appropriately.
7192 (mfcr SCC): Likewise.
7193 (movesi_from_cr_one): New.
7195 2003-07-07 Roger Sayle <roger@eyesopen.com>
7197 * config/i386/i386.md: Correct check-in of incorrect version.
7199 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7201 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
7202 adjacent stdio calls.
7203 * c-decl.c (c_print_identifier): Likewise.
7204 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
7205 * print-rtl.c (print_rtx): Likewise.
7206 * print-tree.c (print_node_brief, print_node): Likewise.
7207 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
7209 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
7210 * config.in, configure: Regenerated.
7212 2003-07-07 Roger Sayle <roger@eyesopen.com>
7215 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
7216 Changed to define_expand patterns that copy operand[1] to prevent
7217 it from being clobbered before emitting an atan2?f3_1 insn.
7218 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
7219 patterns that actually specify the behaviour of x87's FPATAN.
7221 2003-07-07 Jakub Jelinek <jakub@redhat.com>
7223 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
7224 clearing of SYMBOL_FLAG_LOCAL bit.
7225 If vcall_offset fits into signed 16-bit immediate, use
7226 one instruction for both addition and load.
7228 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
7230 * opts.c (common_handle_option): Correct handling of the
7231 -falign- switches that do and don't take an argument.
7233 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
7235 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
7237 (pushhi1_h8300hs): Likewise.
7239 2003-07-07 Andreas Jaeger <aj@suse.de>
7241 * genextract.c: Convert remaining prototypes to ISO C90.
7243 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
7244 * fold-const.c (fold_single_bit_test): Likewise.
7245 * diagnostic.c (default_diagnostic_finalizer): Likewise.
7246 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
7248 * gengtype.c (write_array): Generate ISO C90 prototypes.
7250 * genflags.c (gen_proto): Generate ISO C90 prototypes.
7252 2003-07-07 Roger Sayle <roger@eyesopen.com>
7254 PR optimization/11059
7255 * expr.c (can_store_by_pieces): Return true if length is zero.
7256 (store_by_pieces): If length is zero and endp is two, abort,
7257 othwerise, if length is zero and endp is not two, return "to".
7258 (clear_by_pieces): Do nothing if length is zero.
7259 (clear_storage): Do nothing if length is zero.
7260 (store_constructor): Simplify code when size is zero, or the
7261 target has already been cleared. This avoids emitting a
7262 blockage instruction when initializing empty structures.
7264 2003-07-07 Andreas Jaeger <aj@suse.de>
7266 * mips-tfile.c: Convert prototypes to ISO C90.
7267 * mips-tdump.c: Convert prototypes to ISO C90.
7269 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
7271 * rtl.h (emit_line_note): Take a location_t.
7272 (emit_line_note_force): Remove.
7273 (set_file_and_line_for_statement): Take a location_t.
7274 * tree.g (emit_line_note): Take a location_t.
7275 * emit-rtl.c (emit_line_note): Take a location_t.
7276 (emit_line_note_force): Remove.
7277 * function.c (init_function_start): Adjust emit_line_note call.
7278 (expand_function_end): Use force_next_line_note, not
7279 emit_line_note_force.
7280 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
7281 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
7282 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
7283 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
7284 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
7285 genrtl_continue_stmt, genrtl_switch_stmt,
7286 genrtl_asm_stmt): Likewise.
7287 * expr.c (expand_expr): Likewise.
7288 * integrate.c (expand_inline_function): Likewise.
7289 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
7290 (expand_decl_init): Adjust emit_line_note call.
7292 2003-07-07 Dale Johannesen <dalej@apple.com>
7294 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
7296 2003-07-07 Andreas Jaeger <aj@suse.de>
7298 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
7299 * config/i386/i386.c: Likewise.
7301 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
7303 * config/h8300/h8300.md: Use gen_int_mode instead of
7304 GEN_INT (trunc_int_for_mode (...)).
7306 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
7308 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
7309 2 bytes and then subtract 2 from the stack pointer.
7310 (pushhi1_h8300hs): Likewise.
7312 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
7314 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
7316 * configure: Regenerated.
7317 * Makefile.in: Remove extraneous comment.
7318 * toplev.c (randomize): Protect against potential multiple calls.
7319 * doc/invoke.texi (-frandom-seed): Document use for in coverage
7322 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7323 Eric Botcazou <ebotcazou@libertysurf.fr>
7325 PR optimization/11198
7326 * alias.c (objects_must_conflict_p): Return 1 if the types have
7327 the same alias set, not if the alias sets only conflict.
7329 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
7331 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
7332 (convert_cset): Change inbuf to type ICONV_CONST char.
7333 * Makefile.in (LIBS): Add LIBICONV.
7335 * doc/invoke.texi (-falign-functions): Document that
7336 when n is zero then a machine-dependent default is used.
7337 (-falign-labels): Document that when n is zero then a
7338 machine-dependent default is used and that -falign-labels =1
7339 is equivalent to -fno-align-labels.
7340 (-falign-loops): Likewise.
7341 (-falign-jumps): Likewise.
7343 2003-07-06 Art Haas <ahaas@airmail.net>
7345 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
7348 2003-07-06 James E Wilson <wilson@tuliptree.org>
7350 PR optimization/9812
7351 * rtl.h (mem_for_const_double): Delete prototype.
7352 * varasm.c (mem_for_const_double): Delete function.
7353 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
7354 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
7355 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
7356 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
7357 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
7358 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
7359 comment about confused support for XFmode constants.
7361 2003-07-07 Jan Hubicka <jh@suse.cz>
7363 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
7365 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
7367 * config/h8300/h8300.c: Fix comment typos.
7368 * config/h8300/h8300.md: Likewise.
7369 * config/i386/athlon.md: Likewise.
7370 * config/i386/i386.c: Likewise.
7371 * config/i386/pentium.md: Likewise.
7372 * config/ia64/ia64.c: Likewise.
7373 * config/ia64/itanium1.md: Likewise.
7374 * config/ia64/itanium2.md: Likewise.
7375 * config/m32r/m32r.md: Likewise.
7376 * config/m68hc11/m68hc11.c: Likewise.
7377 * config/mcore/mcore.c: Likewise.
7378 * config/mips/sr71k.md: Likewise.
7379 * config/mips/t-iris5-as: Likewise.
7380 * config/mmix/mmix.h: Likewise.
7381 * config/ns32k/ns32k.h: Likewise.
7382 * config/ns32k/NOTES: Fix a typo.
7384 2003-07-06 Andreas Jaeger <aj@suse.de>
7386 * stmt.c: Convert remaining prototypes to ISO C90.
7387 * cfglayout.c: Likewise.
7388 * dbxout.c: Likewise.
7390 * genemit.c: Likewise.
7392 * basic-block.h: Convert prototypes to ISO C90.
7393 * c-parse.in: Likewise.
7394 * c-pragma.h: Likewise.
7395 * c-typeck.c: Likewise.
7396 * cfghooks.h: Likewise.
7397 * cfgloopanal.c: Likewise.
7398 * dbxout.h: Likewise.
7399 * debug.h: Likewise.
7400 * dwarf2asm.h: Likewise.
7402 * gengtype-lex.l: Likewise.
7403 * sched-int.h: Likewise.
7404 * timevar.c: Likewise.
7406 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
7408 * c-common.h (c_comon_handle_filename,
7409 c_common_missing_arguement): New.
7410 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
7411 LANG_HOOKS_MISSING_ARGUMENT): New.
7412 * c-opts.c (missing_arg): Rename c_common_missing_argument,
7413 update to be an appropriate langhook.
7414 (c_common_handle_option): Don't handle filenames.
7415 (c_common_handle_filename): New.
7416 * hooks.c (hook_void_constcharptr,
7417 hook_bool_constcharptr_size_t_false): New.
7418 * hooks.h (hook_void_constcharptr,
7419 hook_bool_constcharptr_size_t_false): New.
7420 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
7421 LANG_HOOKS_MISSING_ARGUMENT): New.
7422 (LANG_HOOKS_INITIALIZER): Update.
7423 * langhooks.h (struct lang_hooks): Add handle_filename and
7425 * opts.c (handle_option): Don't handle filenames here, but ...
7426 (handle_options): ... here.
7427 (common_handle_option): Don't handle missing arguments here.
7428 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
7429 LANG_HOOKS_MISSING_ARGUMENT): New.
7431 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
7433 * Makfile.in: Remove traces of mbchar.
7434 * c-parse.in (MULTIBYTE_CHARS): Remove.
7435 * config.in (MULTIBYTE_CHARS): Remove.
7436 * configure: Remove --enable-mbchar.
7437 * configure.in: Remove --enable-mbchar.
7438 * mbchar.c, mbchar.h: Remove.
7439 * system.h: Poison MULTIBYTE_CHARS.
7440 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
7441 * config/linux.h (MULTIBYTE_CHARS): Remove.
7442 * config/svr4.h (MULTIBYTE_CHARS): Remove.
7443 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
7445 2003-07-06 Andreas Jaeger <aj@suse.de>
7447 * varray.c (varray_check_failed): Fix typo.
7449 * unroll.c: Convert prototypes to ISO C90.
7450 * varasm.c: Likewise.
7451 * varray.c: Likewise.
7452 * varray.h: Likewise.
7453 * vmsdbgout.c: Likewise.
7454 * xcoffout.c: Likewise.
7455 * xcoffout.h: Likewise.
7457 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
7459 * gcov-io.h: Add a local time stamp.
7460 (struct gcov_info): Add stamp field.
7461 (gcov_truncate): New.
7462 * coverage.c (read_counts_file): Skip the stamp.
7463 (coverage_begin_output): Write the stamp.
7464 (build_gcov_info): Declare and init the stamp.
7465 (coverage_finish): Only unlink data file, if stamp is zero.
7466 * gcov-dump.c (dump_file): Dump the stamp.
7467 * gcov.c (bbg_stamp): New.
7468 (release_structures): Clear bbg_stamp.
7469 (read_graph_file): Read stamp.
7470 (read_count_file): Check stamp.
7471 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
7473 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
7475 * tree.h (default_flag_random_seed): Remove.
7476 * toplev.h (local_tick): Declare.
7477 * tree.c (flag_random_seed, default_flag_random_seed): Move to
7479 (append_random_chars): Don't call default_flag_random_seed.
7480 * toplev.c (flag_random_seed): Define here. Set local_tick.
7481 (local_tick): Define.
7482 (randomize): New, moved from tree.c.
7483 (print_switch_values): Adjust.
7484 (toplev_main): Call randomize.
7486 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
7488 * tree.h (crc32_string): Declare.
7489 * tree.c (append_random_chars): Remove.
7490 (crc32_string): New.
7491 (get_file_function_name_long): Use crc32_string here.
7493 2003-07-06 Andreas Jaeger <aj@suse.de>
7495 * gcc.c: Convert prototypes to ISO C90.
7497 * gcov-dump.c: Likewise.
7498 * gcov-iov.c: Likewise.
7500 * genattrtab.h: Likewise.
7502 * global.c: Likewise.
7503 * graph.c: Likewise.
7504 * graph.h: Likewise.
7505 * hosthooks.h: Likewise.
7506 * hooks.h: Likewise.
7507 * hooks.c: Likewise.
7508 * hashtable.h: Likewise.
7509 * hashtable.c: Likewise.
7510 * haifa-sched.c: Likewise.
7511 * integrate.h: Likewise.
7512 * integrate.c: Likewise.
7513 * input.h: Likewise.
7514 * ifcvt.c: Likewise.
7516 * langhooks-def.h: Likewise. Add extern to prototypes.
7517 * langhooks.c: Likewise.
7518 * langhooks.h: Likewise.
7520 * local-alloc.c: Likewise.
7521 * loop-init.c: Likewise.
7522 * loop-unroll.c: Likewise.
7523 * loop-unswitch.c: Likewise.
7525 * loop.h: Likewise. Add extern to prototypes.
7526 * machmode.h: Likewise.
7528 * mbchar.c: Likewise.
7529 * mbchar.h: Likewise.
7530 * mkdeps.c: Likewise.
7531 * mkdeps.h: Likewise.
7532 * optabs.c: Likewise.
7533 * optabs.h: Likewise.
7534 * output.h: Likewise.
7535 * gccspec.c: Likwise.
7536 * postreload.c: Likewise.
7537 * prefix.c: Likewise.
7538 * prefix.h: Likewise.
7539 * print-rtl.c: Likewise.
7540 * print-tree.c: Likewise.
7541 * profile.c: Likewise.
7542 * read-rtl.c: Likewise.
7545 * recog.c: Likewise.
7546 * recog.h: Likewise.
7547 * reg-stack.c: Likewise.
7548 * regclass.c: Likewise.
7549 * regmove.c: Likewise.
7550 * regrename.c: Likewise.
7552 * reload.c: Likewise.
7553 * reload.h: Likewise.
7554 * reload1.c: Likewise.
7555 * reorg.c: Likewise.
7556 * resource.c: Likewise.
7557 * resource.h: Likewise.
7558 * rtl-error.c: Likewise.
7561 * rtlanal.c: Likewise.
7562 * sbitmap.c: Likewise.
7563 * sbitmap.h: Likewise.
7564 * scan-decls.c: Likewise.
7566 * sched-deps.c: Likewise.
7567 * sched-ebb.c: Likewise.
7568 * sched-int.h: Likewise.
7569 * sched-rgn.c: Likewise.
7570 * sched-vis.c: Likewise.
7571 * sibcall.c: Likewise.
7572 * simplify-rtx.c: Likewise.
7573 * sreal.c: Likewise.
7574 * sreal.h: Likewise.
7575 * ssa-ccp.c: Likewise.
7576 * ssa-dce.c: Likewise.
7579 * stack.h: Likewise.
7581 * stor-layout.c: Likewise.
7582 * stringpool.c: Likewise.
7583 * target.h: Likewise.
7584 * timevar.c: Likewise.
7585 * timevar.h: Likewise.
7586 * tlink.c: Likewise.
7587 * tracer.c: Likewise.
7588 * tree-inline.c: Likewise.
7589 * tree-inline.h: Likewise.
7593 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
7595 * combine.c (nonzero_bits1): Fix a warning.
7597 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
7599 * config/h8300/h8300.c (compute_mov_length): Correct the
7600 length of loading CONST0_RTX (SFmode).
7602 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
7604 * toplev.c (output_clean_symbol_name): Remove.
7605 * toplev.h (output_clean_symbol_name): Remove.
7606 * config/alpha/alpha.c (unicosmk_output_module_name): Use
7607 lbasename & clean_symbol_name.
7609 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
7611 * ggc.h: Follow spelling conventions.
7612 * config/i386/i386.c: Likewise.
7613 * config/i386/winnt.c: Likewise.
7614 * config/rs6000/rs6000.c: Likewise.
7616 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
7618 * bt-load.c: Fix comment typos.
7619 * c-incpath.c: Likewise.
7621 * cfgcleanup.c: Likewise.
7622 * cfgloop.h: Likewise.
7623 * cfgloopmanip.c: Likewise.
7624 * cfgrtl.c: Likewise.
7625 * diagnostic.h: Likewise.
7626 * dwarfout.c: Likewise.
7627 * emit-rtl.c: Likewise.
7628 * et-forest.c: Likewise.
7629 * et-forest.h: Likewise.
7632 * genattr.c: Likewise.
7634 * langhooks.h: Likewise.
7635 * local-alloc.c: Likewise.
7636 * loop-unroll.c: Likewise.
7637 * loop-unswitch.c: Likewise.
7638 * ra-build.c: Likewise.
7639 * regclass.c: Likewise.
7640 * regmove.c: Likewise.
7641 * rtl.def: Likewise.
7642 * rtlanal.c: Likewise.
7643 * sched-ebb.c: Likewise.
7644 * sched-rgn.c: Likewise.
7645 * simplify-rtx.c: Likewise.
7647 * tracer.c: Likewise.
7650 2003-07-05 Zack Weinberg <zack@codesourcery.com>
7652 * cppcharset.c: Use the correct return type for the fallback iconv
7655 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7657 Blame to Jan Hubicka <jh@suse.cz>
7658 * cfglayout.c (record_effective_endpoints): Split insns before
7659 first basic block correctly.
7661 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7663 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
7664 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
7665 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
7667 2003-07-05 Andreas Jaeger <aj@suse.de>
7669 * genattrtab.c (write_attr_get): Revert part of last patch to
7670 always write out a prototype.
7672 * genemit.c (gen_split): Readd lost unused attributes in last
7675 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7677 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
7678 different from header.
7680 2003-07-05 Andreas Schwab <schwab@suse.de>
7682 * config/m68k/m68k.c: Remove code protected by CRDS.
7683 * config/m68k/m68k.md: Likewise.
7685 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
7688 * c-opts.c (permit_fortran_options): New.
7689 (c_common_init_options): Accept fortran front end options if
7690 it looks like we might be preprocessing Fortran.
7691 (c_common_handle_option): Don't reject switch if permit_fotran_options.
7693 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7695 * genattr.c (internal_dfa_insn_code): Output prototype.
7696 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
7697 * genautomata.c: Likewise.
7698 * genconditions.c: Likewise.
7699 * genemit.c: Likewise.
7700 * genextract.c: Likewise.
7701 * gengenrtl.c: Likewise.
7702 * gengtype.c: Likewise.
7703 * genopinit.c: Likewise.
7704 * genoutput.c: Likewise.
7705 * genpeep.c: Likewise.
7706 * genrecog.c: Likewise.
7708 2003-07-04 Zack Weinberg <zack@codesourcery.com>
7710 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
7711 (struct cpp_options): Add narrow_charset, wide_charset,
7712 bytes_big_endian fields. Remove EBCDIC field.
7713 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
7715 * cpphash.h: Include <iconv.h> if we have it, otherwise
7716 provide a dummy definition of iconv_t.
7717 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
7718 (_cpp_valid_ucn): Update prototype.
7719 (_cpp_destroy_iconv): New prototype.
7721 * doc/cpp.texi: Document character set handling.
7722 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
7723 * doc/extend.texi: Delete entire section on multiline strings.
7724 Rewrite section on __FUNCTION__ etc now that these are
7727 * cppucnid.tab, cppucnid.pl: New files.
7728 * cppucnid.h: New generated file.
7729 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
7730 (iconv_open, iconv, iconv_close): Provide dummy definitions
7732 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
7733 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
7734 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
7735 cpp_interpret_string, narrow_str_to_charconst,
7736 wide_str_to_charconst): New.
7737 (ucn_valid_in_identifier): Use a binary search through the
7738 ucnranges table defined in cppucnid.h, not a long chain of if
7740 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
7741 character names are only valid in C++ and C99" to a warning.
7742 Issue the "meaning of \[uU] is different in traditional C"
7743 warning here. Take care not to let iconv see an invalid UCS
7744 value if we get a malformed UCN. Issue an error if we don't
7746 (cpp_interpret_charconst): Moved here from cpplex.c. Use
7747 cpp_interpret_string to do the heavy lifting.
7749 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
7750 narrow_charset, wide_charset fields of options structure.
7751 (cpp_destroy): Call _cpp_destroy_iconv.
7752 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
7753 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
7754 (cpp_interpret_charconst): Moved to cppcharset.c.
7755 * cpplib.c (dequote_string): Delete.
7756 (interpret_string_notranslate): New.
7757 (do_line, do_linemarker): Use interpret_string_notranslate.
7759 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
7761 * c-common.c (fname_string, combine_strings): Delete.
7762 * c-common.h (fname_string, combine_strings): Delete prototypes.
7763 * c-lex.c (ignore_escape_flag): Delete.
7764 (cb_ident): Use cpp_interpret_string, not lex_string.
7765 (get_nonpadding_token): New function.
7766 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
7767 Adjust calls to lex_string. Don't write *value twice.
7768 (lex_string): Now handles string constant concatenation.
7769 Most of the work handed off to cpp_interpret_string.
7770 Call fix_string_type here.
7771 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
7772 FUNC_NAME, throughout.
7773 (OBJC_STRING): New token type.
7774 (primary:STRING): No need to call fix_string_type here.
7775 (primary:objc_string): Make that OBJC_STRING.
7776 (objc_string nonterminal): Delete.
7777 (yylexname): Delete code to handle fake string constants.
7778 (yylexstring): Delete entirely.
7779 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
7780 to handle CPP_ATSIGN.
7782 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
7783 * c-opts.c (missing_arg, c_common_handle_option): Handle
7784 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
7785 (c_common_init): Set cpp_opts->bytes_big_endian, not
7786 cpp_opts->EBCDIC. Call cpp_init_iconv.
7787 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
7788 (TARGET_EBCDIC): Delete default definition.
7790 * objc/objc-act.c (build_objc_string_object): No need to
7791 handle string constant concatenation.
7793 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
7795 * doc/install.texi: Fix typos.
7796 * doc/invoke.texi: Likewise.
7797 * doc/tm.texi: Likewise.
7799 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
7801 * config/pa/fptr.c: Fix comment typos.
7802 * config/pa/pa-64.h: Likewise.
7803 * config/pa/pa.c: Likewise.
7804 * config/pa/pa.h: Likewise.
7805 * config/rs6000/603.md: Likewise.
7806 * config/rs6000/7xx.md: Likewise.
7807 * config/rs6000/darwin.h: Likewise.
7808 * config/rs6000/freebsd.h: Likewise.
7809 * config/rs6000/rs6000.c: Likewise.
7810 * config/rs6000/rs6000.md: Likewise.
7811 * config/rs6000/spe.h: Likewise.
7813 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
7815 * config/s390/2064.md: Change GNU CC to GCC.
7816 * config/s390/2084.md: Likewise.
7817 * config/s390/fixdfdi.h: Likewise.
7818 * config/s390/linux.h: Likewise.
7819 * config/s390/s390-modes.def: Likewise.
7820 * config/s390/s390-protos.h: Likewise.
7821 * config/s390/s390.c: Likewise.
7822 * config/s390/s390.h: Likewise.
7823 * config/s390/s390.md: Likewise.
7824 * config/s390/s390x.h: Likewise.
7826 2003-07-04 Jeff Law <law@redhat.com>
7829 * expr.c (do_store_flag): Pass in the correct result type
7830 when calling fold_single_bit_test.
7831 * fold-const.c (fold_single_bit_test): Use result_type for the
7832 result when folding a sign bit test.
7834 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
7836 * opts.c (common_handle_options): Negate sense of -falign- switches.
7838 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
7840 * Makefile.in: Replace PWD with PWD_COMMAND.
7842 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7844 * cfgloopanal.c (count_strange_loop_iterations): New static function.
7845 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
7846 Handle strange loops.
7848 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
7850 * install.texi: Even the g77 manpage is derived from
7851 the full g77 manual.
7853 2003-07-04 Zack Weinberg <zack@codesourcery.com>
7855 * ABOUT-NLS: Delete.
7856 * intl: Delete entire directory.
7857 * aclocal.m4: Include ../config/gettext.m4. Delete
7858 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
7859 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
7860 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
7861 Remove intl/Makefile from all_outputs.
7862 * configure, config.in: Regenerate.
7863 * Makefile.in: Expunge all references to intl subdirectory.
7864 Add -I../intl to INCLUDES.
7865 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
7867 2003-07-04 Roger Sayle <roger@eyesopen.com>
7869 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
7870 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
7872 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
7874 PR c++/5287, PR c++/7910, PR c++/11021
7875 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
7876 dllimport attribute if function is defined at declaration, but
7877 report error instead. Likewise for dllimport'd variable
7878 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
7879 declared within functions, Report error if dllimport or dllexport
7880 symbol is not global.
7881 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
7882 if defined after declaration or if inlined. Don't allow definition
7883 of static data members of C++ classes. Don't dllimport virtual
7885 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
7886 (i386_pe_mark_dllimport): Remove unnecessary checks.
7887 (i386_pe_encode_section_info): Warn if the dllimport attribute
7888 and symbol prefix have been instantiated and then overridden.
7890 * doc/extend.texi: Document dllimport and dllexport attributes.
7892 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
7894 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
7896 * config/kaos.h (CPP_PREDEFINES): Delete.
7897 (TARGET_OS_CPP_BUILTINS): New.
7899 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7901 * c-aux-info.c: Include toplev.h after c-tree.h.
7902 * c-common.c: Likewise.
7903 (GCC_DIAG_STYLE): Undef.
7904 * c-semantics.c (GCC_DIAG_STYLE): Define.
7905 * c-tree.h (GCC_DIAG_STYLE): Likewise.
7906 * diagnostic.h (inform): Move prototype to toplev.h.
7907 * jump.c: Include diagnostic.h before toplev.h.
7908 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
7909 (warning, error, fatal_error, pedwarn, sorry, inform,
7910 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
7912 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7914 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
7915 at all if edge is not specified.
7916 (can_copy_bbs_p, copy_bbs): New.
7917 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
7918 * cfgloop.c (get_loop_body): Comment more precisely.
7919 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
7920 (scale_bbs_frequencies): Fix comment typo.
7921 (can_duplicate_loop_p): Use can_copy_bbs_p.
7922 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
7924 2003-07-03 Devang Patel <dpatel@apple.com>
7926 * c-opts.c (c_common_parse_file): Remove extra
7927 debug_hooks->start_source_file call.
7929 2003-07-03 Roger Sayle <roger@eyesopen.com>
7931 * real.c (real_trunc, real_floor, real_ceil): New functions
7932 to implement trunc, floor and ceil respectively.
7933 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
7934 * builtins.c (integer_valued_real_p): New function to test if
7935 a floating point expression has an integer valued result.
7936 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
7937 foo(x) where foo is an integer rounding function. Similarly,
7938 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
7939 (double)(int)x when both foo and bar are integer rounding
7940 functions and we don't need to honor errno.
7941 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
7942 New functions to fold trunc, floor and ceil.
7943 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
7944 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
7945 to fold BUILT_IN_CEIL*.
7946 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
7947 the remaining integer rounding functions.
7949 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
7951 * config/sparc/sparc.c (function_arg_partial_nregs): Use
7952 SPARC_INT_ARG_MAX to determine where to split unnamed
7953 complex FP arguments.
7955 2003-07-03 Jan Hubicka <jh@suse.cz>
7957 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
7958 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
7959 (merge_blocks_move_predecessor_nojumps,
7960 merge_blocks_move_successor_nojumps): Use merge_blocks.
7961 (try_optimize_cfg): Use merge_blocks_move.
7962 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
7963 (merge_blocks_nomove): Rename to rtl_merge_blocks.
7964 (cfg_layout_create_basic_block): New.
7965 (rtl_can_merge_blocks): New.
7966 (cfg_layout_split_block): Do not alloc aux by hand.
7967 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
7969 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
7970 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
7971 * cfgloopmanip.c (loop_split_edge_with): Likewise.
7972 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
7974 * basic-block.h (basic_block_def): Add field 'rbi'.
7975 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
7976 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
7977 * cfg.c (entry_exit_blocks): Add new field.
7978 * cfglayout.c: Include alloc-pool.h;
7979 (cfg_layout_pool): New.
7980 (record_effective_endpoints, fixup_reorder_chain,
7981 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
7983 (cfg_layout_initialize_rbi): New function.
7984 (cfg_layout_initialize): Use it.
7985 (cfg_layout_finalize): Clear rbi fields.
7986 * cfglayout.h (RBI): Kill.
7987 (cfg_layout_initialize_rbi): Declare.
7988 * cfgloopmanip.c (copy_bbs): Use rbi.
7989 (record_exit_edges): Likewise.
7990 (duplicate_loop_to_header_edge): Likewise.
7991 * cfgrtl.c (cfg_layout_create_basic_block): Use
7992 cfg_layout_initialize_rbi.
7993 (cfg_layout_split_block): Use rbi.
7994 (cfg_layout_delete_block): Likewise.
7995 * loop-init.c (loop_optimizer_finalize): Likewise.
7996 * loop-unswitch.c (unswitch_loop): Likewise.
7997 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
7999 * cfgrtl.c: Update comments.
8000 (try_redirect_by_replacing_jump): New argument.
8001 (redirect_branch_edge): Break out from ...
8002 (rtl_redirect_edge_and_branch): ... this one.
8003 (update_cfg_after_block_merging): Break out from ...
8004 (rtl_merge_blocks): ... this one.
8005 (cfg_layout_split_edge): New.
8006 (cfg_layout_merge_blocks): New.
8007 (cfg_layout_can_merge_blocks_p): New.
8008 (cfg_layout_redirect_edge_and_branch): Reorganize.
8009 (cfg_layout_rtl_cfg_hooks): Fill in.
8010 (cfg_layout_delete_block): Kill barriers.
8011 * cfganal.c (can_fallthru): Deal with exit blocks
8012 * cfglayout.c (cfg_layout_function_header): New function
8013 (record_effective_endpoints): Record function header.
8014 (fixup_reorder_chain): Fixup dead jumptables; place header
8016 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
8017 * bb-reorder.c (cfg_layout_initialize): Update call.
8018 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
8019 edges in cfglayout mode.
8020 * cfglayout.c (cleanup_unconditional_jumps): Kill.
8021 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
8022 * cfglayout.h (cfg_layout_initialize): Update prototype.
8023 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
8024 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
8025 * flow.c (propagate_block): Do not crash when basic block ends
8026 by first insn in the chain.
8027 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
8029 * tracer.c (tracer): Update call of cfg_layout_initialize.
8031 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8033 * Makefile.in: Use dependency variables in lieu of explicit
8036 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
8038 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
8039 * tree.h: ...to here.
8041 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
8043 * config/s390/2064.md: Fix comment typos.
8044 * config/s390/2084.md: Likewise.
8045 * config/s390/s390.c: Likewise.
8046 * config/s390/s390.md: Likewise.
8047 * config/sh/sh.c: Likewise.
8048 * config/sh/sh.h: Likewise.
8049 * config/sh/sh.md: Likewise.
8050 * config/sparc/sparc.c: Likewise.
8051 * config/sparc/sparc.h: Likewise.
8052 * config/sparc/sparc.md: Likewise.
8053 * config/stormy16/stormy16.c: Likewise.
8054 * config/stormy16/stormy16.h: Likewise.
8055 * config/stormy16/stormy-abi: Fix a typo.
8057 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
8059 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
8061 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8063 * config/mips/mips.h (save_argv): Delete.
8065 2003-07-03 Roger Sayle <roger@eyesopen.com>
8068 * fold-const.c (extract_muldiv_1): There's nothing that can be done
8069 if the expression is a SAVE_EXPR.
8071 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
8073 * config/m32r/m32r.c: Fix comment typos.
8074 * config/m68hc11/m68hc11.c: Likewise.
8075 * config/m68hc11/m68hc11.h: Likewise.
8076 * config/m68k/m68k.c: Likewise.
8077 * config/mcore/mcore.c: Likewise.
8078 * config/mcore/mcore.h: Likewise.
8079 * config/mcore/mcore.md: Likewise.
8080 * config/mips/mips.c: Likewise.
8081 * config/mips/mips.h: Likewise.
8082 * config/mips/mips.md: Likewise.
8083 * config/mips/netbsd.h: Likewise.
8084 * config/mn10300/mn10300.c: Likewise.
8086 2003-07-03 Andreas Schwab <schwab@suse.de>
8088 * dbxout.c (pending_bincls): Move decl down inside
8089 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
8091 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
8093 * rtl.h (NOTE_DATA): Refer to whole union.
8094 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
8096 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
8098 PR optimization/11381
8099 * simplify-rtx.c (simplify_relational_operation): Check that
8100 two equal operands have no side-effects before simplifying
8103 2003-07-02 Jeff Law <law@redhat.com>
8105 * expr.c (do_store_flag): Remove special case folding for
8106 single bit tests. Instead call back into the commonized folder
8108 * fold-const.c (fold_single_bit_test): New function, mostly
8109 extracted from do_store_flag, with an additional case extracted
8111 (fold): Call fold_single_bit_test appropriately.
8112 * tree.h (fold_single_bit_test): Prototype.
8114 2003-07-02 Zack Weinberg <zack@codesourcery.com>
8116 * system.h: Include filenames.h.
8117 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
8118 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
8119 define based on HAVE_DOS_BASED_FILE_SYSTEM.
8120 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
8121 * config/i386/xm-mingw32.h: Don't define
8122 HAVE_DOS_BASED_FILE_SYSTEM,
8123 DIR_SEPARATOR, or DIR_SEPARATOR_2.
8124 * doc/hostconfig.texi: Update to match.
8126 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
8127 config/i386/cygwin.h:
8128 Use IS_ABSOLUTE_PATH throughout.
8129 * gcc.c (DIR_UP): Delete, unused.
8130 * protoize.c (IS_SAME_PATH): Define in terms of
8132 (is_abspath): Delete.
8134 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
8136 * config/i386/emmintrin.h: Fix comment typos.
8137 * config/i386/i386.c: Likewise.
8138 * config/i386/i386.h: Likewise.
8139 * config/i386/sco5.h: Likewise.
8140 * config/ia64/ia64.c: Likewise.
8141 * config/ia64/itanium2.md: Likewise.
8143 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
8145 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
8147 (emit_bincl_stab): Same.
8148 (emit_pending_bincls): Same.
8150 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
8152 * config/h8300/h8300.c (compute_mov_length): Fix the length of
8153 loading CONST0_RTX (SFmode).
8154 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
8155 'G' to CONST0_RTX (SFmode).
8156 * config/h8300/h8300.md (movsf_h8300): Change the first
8158 (movsf_h8300h): Likewise.
8160 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
8162 * c-common.h (c_common_init_options): New prototype.
8163 * c-opts.c (deferred_size): Remove.
8164 (defer_opt): Array is now pre-allocated.
8165 (c_common_init_options): Pre-allocate deferred_opts. Make
8166 lang_flags unsigned.
8167 (push_command_line_options): Free deferred_opts.
8168 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
8169 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
8170 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
8171 * langhooks.h (struct lang_hooks): New prototype for init_options.
8172 * main.c (main): Cast argv.
8173 * opts.c (handle_option, handle_options): Update prototypes.
8174 (decode_options): save_argc, save_argv are not global. Constify.
8175 * opts.h (decode_options): New prototype.
8176 * toplev.c (general_init): New protoype.
8177 (save_argv): Make static.
8178 (save_argc): Remove.
8179 (print_switch_values, general_init): Constify.
8180 (toplev_main): Save argv.
8181 * toplev.h (toplev_main): Update prototype.
8182 (save_argc, save_argv): Remove.
8184 2003-07-02 David Edelsohn <edelsohn@gnu.org>
8186 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
8187 (emit_bincl_stab): Same.
8188 (emit_pending_bincls): Same.
8190 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
8193 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
8195 2003-07-02 Andreas Schwab <schwab@suse.de>
8197 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
8199 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
8201 PR optimization/11210
8202 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
8203 about the behaviour with regard to bitfields.
8204 * fold-const (decode_field_reference): Record outermost type in
8205 case the expression is a NOP. Strip all NOPs. Set the signedness
8206 to that of the outermost type (if any) when the bitsize is equal
8207 to the size of the type.
8209 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
8211 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
8212 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
8213 (adddi3_internal_3, addsi3_internal_2): Likewise.
8215 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
8217 * config/mips/mips.c (machine_function): Add new fields:
8218 ignore_hazard_length_p and all_noreorder_p.
8219 (mips_flag_delayed_branch): New variable.
8220 (override_options): Treat '/' as an operand punctuation character.
8221 Set up mips_flag_delayed_branch.
8222 (print_operand): Handle '/'.
8223 (mips_output_function_prologue): Put the whole function in
8224 .set noreorder and .set nomacro if all_noreorder_p is true.
8225 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
8226 (mips16_optimize_gp): Remove "first insn" parameter.
8227 (mips16_lay_out_constants): New function, split out from mips_reorg.
8228 (mips_avoid_hazard, mips_avoid_hazards): New functions.
8229 (mips_reorg): For mips16 code, call mips16_lay_out_constant
8230 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
8231 do delayed-branch scheduling followed by hazard detection.
8232 (mips_adjust_insn_length): Only account for hazards if
8233 !ignore_hazard_length_p.
8234 (mips_output_load_label): Add a nop to the o32 sequence if
8235 the target suffers from load delays.
8236 (mips_output_conditional_branch): Add %/ to the end of branches.
8237 (mips_output_division): Fill the branch delay slot with %#.
8238 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
8239 instructions. End all other %* branches with %/.
8240 (ffssi2, ffsdi2): Fix lengths.
8241 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
8242 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
8243 (fix_truncsfsi2_macro): Likewise.
8244 (mov_lwl): Set hazard to "none".
8245 (ashldi3_internal): Fill the branch delay slot with %#.
8246 (ashrdi3_internal, lshrdi3_internal): Likewise.
8247 (exception_receiver): Explicitly set $28.
8248 (hazard_nop): New pattern.
8250 2003-07-02 Jan Hubicka <jh@suse.cz>
8252 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
8253 before calling tree_inlinable_function_p.
8255 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8257 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
8258 <internal/stdio_core.h> too.
8259 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
8260 <internal/wchar_core.h> too.
8261 Substitute va_list uses in inline definition.
8262 * fixinc/fixincl.x: Regenerate.
8264 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8266 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
8267 Undef before redefinition.
8268 (LABEL_AFTER_LOC): Likewise.
8269 (DEFAULT_SIGNED_CHAR): Likewise.
8270 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
8273 * config/mips/iris3.h: Remove, unused.
8274 * config/mips/iris4.h: Likewise.
8276 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
8278 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
8279 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
8282 * config/mips/iris5.h: Move explicit includes ...
8283 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
8285 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
8286 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
8289 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
8290 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
8293 * config/mips/iris6.h: Fix IRIX spelling.
8294 (MULTILIB_DEFAULTS): Undef before redefinition.
8296 * config/mips/iris6.h: Move explicit includes ...
8297 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
8299 2003-07-02 Jan Hubicka <jh@suse.cz>
8301 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
8302 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
8303 Use next_needed field instead of aux to maintain the queue.
8304 * cgraph.h (cgraph_node): Add next_needed.
8305 (cgraph_varpool_node): Add next_needed; remove aux.
8306 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
8308 2003-07-02 Jan Hubicka <jh@suse.cz>
8310 * cgraphunit.c (cgraph_finalize_function): Set finalized.
8311 (cgraph_finalize_function): Do not examine inlinablility.
8312 (cgraph_finalize_compilation_unit): Do it here.
8313 * cgraph.h (cgraph_local_info): Add finalized field.
8315 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8317 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
8318 (gt_pch_restore): Likewise.
8320 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
8322 * config/alpha/alpha.c: Fix comment typos.
8323 * config/alpha/elf.h: Likewise.
8324 * config/arm/arm.c: Likewise.
8325 * config/arm/arm.h: Likewise.
8326 * config/arm/arm.md: Likewise.
8327 * config/arm/t-arm-coff: Likewise.
8328 * config/arm/t-strongarm-pe: Likewise.
8329 * config/arm/xscale-elf.h: Likewise.
8330 * config/avr/avr.h: Likewise.
8332 2003-07-01 Jeff Law <law@redhat.com>
8334 * stmt.c (any_pending_cleanups): Remove another redundant test.
8336 2003-07-01 David Edelsohn <edelsohn@gnu.org>
8337 J"orn Rennecke <joern.rennecke@superh.com>
8339 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
8342 2003-07-01 Devang Patel <dpatel@apple.com>
8344 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
8346 (struct dbx_file): New members - bincl_status, pending_bincl_name and
8348 (pending_bincls): New.
8349 (dbxout_init): Initialize new dbx_file members.
8350 (dbxout_start_source_file): Same.
8351 (emit_bincl_stab): New function.
8352 (emit_pending_bincls): Same.
8353 (emit_pending_bincls_if_required): Same.
8354 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
8356 (dbxout_begin_block): Emit pending BINCL stabs.
8357 (dbxout_end_block): Same.
8358 (dbxout_function_decl): Same.
8359 (dbxout_continue): Same.
8360 (dbxout_type): Same.
8361 (dbxout_class_name_qualifiers): Same.
8362 (dbxout_symbol): Same.
8363 (dbxout_symbol_location): Same.
8364 (dbxout_parms): Same.
8366 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8368 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
8369 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
8371 2003-07-01 Andreas Jaeger <aj@suse.de>
8373 * fold-const.c: Convert prototypes to ISO C90.
8374 * function.c: Likewise.
8375 * function.h: Likewise.
8377 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
8379 * doc/contrib.texi: Fix typos.
8380 * doc/invoke.texi: Likewise.
8381 * doc/passes.texi: Likewise.
8382 * doc/sourcebuild.texi: Likewise.
8383 * doc/tm.texi: Likewise.
8385 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
8387 * basic-block.h: Fix comment typos.
8388 * bb-reorder.c: Likewise.
8389 * c-format.c: Likewise.
8390 * cfgcleanup.c: Likewise.
8391 * cfghooks.h: Likewise.
8392 * cfgloop.c: Likewise.
8393 * cfgloopmanip.c: Likewise.
8394 * cfgrtl.c: Likewise.
8395 * cgraph.h: Likewise.
8396 * cgraphunit.c: Likewise.
8397 * combine.c: Likewise.
8398 * convert.c: Likewise.
8399 * dbxout.c: Likewise.
8402 * diagnostic.c: Likewise.
8403 * dwarf2out.c: Likewise.
8404 * et-forest.h: Likewise.
8406 * fold-const.c: Likewise.
8407 * function.h: Likewise.
8408 * gcov-io.h: Likewise.
8411 * genautomata.c: Likewise.
8412 * ggc-common.c: Likewise.
8413 * ggc-page.c: Likewise.
8414 * loop-unroll.c: Likewise.
8415 * loop-unswitch.c: Likewise.
8417 * mips-tfile.c: Likewise.
8418 * optabs.c: Likewise.
8419 * ra-build.c: Likewise.
8420 * ra-colorize.c: Likewise.
8421 * ra-rewrite.c: Likewise.
8423 * regmove.c: Likewise.
8424 * reload.c: Likewise.
8425 * rtlanal.c: Likewise.
8426 * sched-ebb.c: Likewise.
8427 * sched-int.h: Likewise.
8428 * sched-vis.c: Likewise.
8429 * sreal.c: Likewise.
8430 * ssa-ccp.c: Likewise.
8432 * toplev.c: Likewise.
8433 * tree-inline.c: Likewise.
8434 * value-prof.c: Likewise.
8435 * value-prof.h: Likewise.
8437 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
8439 * rtl.h (emit_line_note_after): Remove.
8440 (emit_note_copy_after, emit_note_copy): New.
8441 * emit-rtl.c (reorder_insns_with_line_notes): Replace
8442 emit_line_note_after with emit_note_copy_after.
8443 (emit_insn_after_with_line_notes): Likewise.
8444 (emit_line_note_after): Kill.
8445 (emit_note_copy_after): New.
8446 (emit_note_copy): New.
8447 * function.c (emit_return_into_block): Use emit_note_copy_after.
8448 (thread_prologue_and_epilogue_insns): Likewise.
8449 * integrate.c (expand_inline_function): Use emit_note_copy.
8450 (copy_insn_list): Likewise.
8451 * unroll.c (copy_loop_body): Likewise.
8452 * cfglayout.c (duplicate_insn_chain): Likewise.
8454 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
8456 * c-tree.h (define_label): Replace filename and lineno arguments
8458 * c-decl.c (poplevel): Adjust define_label call.
8459 (pop_label_level): Likewise.
8460 (define_label): Replace filename and lineno arguments with a
8462 (store_parm_decls): Use DECL_SOURCE_LOCATION.
8463 * c-parse.in (label): Adjust define_label call.
8465 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
8467 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
8468 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
8469 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
8470 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
8471 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
8473 2003-07-01 Andreas Jaeger <aj@suse.de>
8475 * final.c: Convert prototypes to ISO C90.
8477 * flags.h: Likewise.
8478 * gcov-io.c: Likewise.
8479 * gcov-io.h: Likewise.
8481 See ChangeLog.9 for earlier changes.