2003-05-31 Aldy Hernandez <aldyh@redhat.com>
[official-gcc.git] / gcc / ChangeLog
blobec269ccc75c320491becc16aa23eb4d6ed6b742c
1 2003-05-31  Aldy Hernandez  <aldyh@redhat.com>
3         * toplev.c (botch): Remove.
4         (do_abort): Remove.
5         (set_Wunused): Comment.
6         (set_Wextra): Comment.
7         Remove ^L's.
8         (rest_of_compilation): Factor out common code into functions.
9         (rest_of_handle_inlining): New.
10         (rest_of_handle_ssa): New.
11         (rest_of_handle_cse): New.
12         (rest_of_handle_gcse): New.
13         (rest_of_handle_loop_optimize): New.
14         (rest_of_handle_jump_bypass): New.
15         (rest_of_handle_sibling_calls): New.
16         (rest_of_handle_null_pointer): New.
17         (rest_of_handle_addresof): New.
18         (rest_of_handle_flow): New.
19         (rest_of_handle_branch_prob): New.
20         (rest_of_handle_if_conversion): New.
21         (rest_of_handle_tracer): New.
22         (rest_of_handle_loop2): New.
23         (rest_of_handle_cse2): New.
24         (rest_of_handle_life): New.
25         (rest_of_handle_combine): New.
26         (rest_of_handle_if_after_combine): New.
27         (rest_of_handle_regmove): New.
28         (rest_of_handle_sched): New.
29         (rest_of_handle_old_regalloc): New.
30         (rest_of_handle_new_regalloc): New.
31         (rest_of_handle_regrename): New.
32         (rest_of_handle_reorder_blocks): New.
33         (rest_of_handle_sched2): New.
34         (rest_of_handle_new_regalloc): New.
35         (rest_of_handle_old_regalloc): New.
36         (rest_of_handle_regrename): New.
37         (rest_of_handle_reorder_blocks): New.
38         (rest_of_handle_stack_regs): New.
39         (rest_of_handle_machine_reorg): New.
40         (rest_of_handle_delay_slots): New.
41         (rest_of_handle_final): New.
43         * toplev.h (botch): Remove prototype.
44         (do_abort): Same.
46 2003-05-31  Neil Booth  <neil@daikokuya.co.uk>
48         * Makefile.in (c-opts.o, c-options.h): Update dependencies.
49         * c-opts.c: Include c-options.h and c-options.c.
50         (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
51         Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
52         (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
53         OPT, opt_comp): Remove.
54         (missing_arg, c_common_init_options, c_common_decode_option,
55         write_langs): Update for macro redefinitions and enumeration
56         name changes.
57         * c.opt, opts.sh: New files.
58         * doc/passes.texi: Update.
60 2003-05-31  Andreas Jaeger  <aj@suse.de>
62         * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
63         usage.
65         * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
67         * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
69         * system.h: Poison ALLOCATE_TRAMPOLINE.
71         * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
72         * system.h: Poison HANDLE_PRAGMA.
74 2003-05-31  Kazu Hirata  <kazu@cs.umass.edu>
76         * doc/invoke.texi: Update dump file names.
78 2003-05-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
80         * c-format.c (format_length_info, format_char_info,
81         format_flag_spec, format_flag_pair, format_kind_info):
82         De-const-ify structure members.
84 2003-05-31  Roger Sayle  <roger@eyesopen.com>
86         * flags.h (flag_wrapv): New flag controlling overflow semantics.
87         * toplev.c (flag_wrapv): Declare the variable with default false.
88         (lang_independent_options): New option "-fwrapv" to set the above.
90         * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
91         as x, when signed arithmetic overflow wraps around.
92         (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
93         * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
94         overflow when flag_wrapv is true.
96         * doc/invoke.texi: Document new -fwrapv command line option.
97         * doc/c-tree.texi: Mention that the overflow semantics of
98         NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
99         upon both flag_wrapv and flag_trapv.
101 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
103         * doc/install.texi (mips-sgi-irix5): Add missing
104         HTML <hr> marker.
106 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
108         * doc/md.texi (Machine Constraints): Document
109         missing SPARC constraints.
111 2003-05-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
113         * doc/md.texi (Automaton pipeline description): Use
114         "type" instead of "cpu" as the attribute in the examples.
116 2003-05-30  Stan Shebs  <shebs@apple.com>
118         * system.h: Poison OBJC_PROLOGUE.
120 2003-05-30  Roger Sayle  <roger@eyesopen.com>
122         * emit-rtl.c (gen_complex_constant_part): New function for getting
123         the constant real or imaginary part of a complex constant.
124         (gen_realpart): Use it.
125         (gen_imagpart): Likewise.
127 2003-05-30  Kazu Hirata  <kazu@cs.umass.edu>
129         * doc/invoke.texi: Fix typos.
130         * doc/rtl.texi: Likewise.
132 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
134         * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
135         mode.
136         * config/h8300/crtn.asm: Likewise.
137         * config/h8300/lib1funcs.asm: Likewise.
138         * config/h8300/h8300.c (asm_file_start): Likewise.
139         * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
140         h8300snelf emulations for normal mode.
141         * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
142         emulations for normal mode.
144 2003-05-30  Dhananjay Deshpande  <dhananjayd@kpitcummins.com>
146         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
147         true if TARGET_NORMAL_MODE.
149 2003-05-30  Roger Sayle  <roger@eyesopen.com>
151         * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
152         making a substitution.
153         (dead_libcall_p): If directly replacing a libcall with a
154         constant value produces an invalid instruction, also try forcing
155         the constant into the constant pool.
156         * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
157         obvious that the source is a constant.
158         (compress_float_constant): Use set_unique_reg_note to place
159         REG_EQUAL notes on instructions.
161 2003-05-30  Eric Christopher  <echristo@redhat.com>
163         * config/mips/mips.c (extern_list): Add GTY marker.
164         (extern_head): Separate out definition. Add marker.
165         (mips_output_external): Use ggc_alloc for extern_list
166         allocation.
167         (mips_output_external_libcall): Ditto.
169 2003-05-30  Florian Weimer  <fw@deneb.enyo.de>
171         * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
172         later.
174 2003-05-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
176         * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
177         warnings.
178         (PRINT_OPERAND): Likewise.
180 2003-05-30  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
182         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
183         -mdebug/-no-mdebug switches ...
184         (MDEBUG_ASM_SPEC): ... here.
185         Use only with gas.
186         (EXTRA_SPECS): Initialize mdebug_asm_spec.
188 2003-05-29  Matt Kraai  <kraai@alumni.cmu.edu>
190         * gthr-gnat.c: Remove #undef UNUSED.
191         (__gnat_default_lock, __gnat_default_unlock): Prototype.
192         (__gnat_task_lock, __gnat_task_unlock): Make declarations
193         prototypes.
194         (__gnat_install_locks): Convert declaration to ISO C90, make
195         parameter declarations prototypes, and remove blank line.
196         * gthr-gnat.h (__gnat_install_locks): Make parameter
197         declarations prototypes.
199 2003-05-29  Jason Merrill  <jason@redhat.com>
201         * Makefile.in (unstrap): Remove stage_last after make unstage1.
203 2003-05-29  Roger Sayle  <roger@eyesopen.com>
205         * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
207 2003-05-29  Roger Sayle  <roger@eyesopen.com>
208             Kaveh Ghazi  <ghazi@caip.rutgers.edu>
210         PR bootstrap/10169
211         * mips-tfile.c (main): Use getopt_long instead of getopt.
212         Add new command line option --version to display version.
213         Treat --verbose like -v to report a single line version.
214         (options): New global variable for getopt_long.
215         * mips-tdump.c (main): Use getopt_long instead of getopt.
216         New command line options -v, --version and -verbose to display
217         the program version number (to match mips-tfile's behavior).
218         (options): New global variable for getopt_long.
220         * gcov.c (options): Zero-terminate getopt_long array.
221         * gcov-dump.c (options): Likewise.
223         * Makefile.in (mips-tdump.o): Add dependency on version.h.
225 2003-05-29  Stan Shebs  <shebs@apple.com>
227         Remove OBJC_PROLOGUE everywhere.
228         * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
229         * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
230         * config/d30v/d30v.h: Similarly.
231         * config/ip2k/ip2k.h: Similarly.
232         * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
234 2003-05-29  Roger Sayle  <roger@eyesopen.com>
236         * c-semantics.c (genrtl_do_stmt_1): New function split out from...
237         (gen_rtl_do_stmt): ... here.  Call genrtl_do_stmt_1.
238         (expand_unreachable_stmt): Expand unreachable while statements
239         using genrtl_do_stmt_1.
241 2003-05-29  Richard Sandiford  <rsandifo@redhat.com>
243         * config/mips/mips-protos.h (mips_output_load_label): Declare.
244         * config/mips/mips.c (mips_output_load_label): New function.
245         (mips_output_conditional_branch): Use it.
246         * config/mips/mips.md (jump): And here.
248 2003-05-28  Bob Wilson  <bob.wilson@acm.org>
250         * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
251         (xtensa_split_operand_pair): New proto.
252         * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
253         (smalloffset_double_mem_p): Delete.
254         (gen_float_relational, printx, print_operand, xtensa_va_arg):
255         Fix whitespace.
256         (xtensa_split_operand_pair): New.
257         (xtensa_dbx_register_number): Fix formatting.
258         * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
259         * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
260         instead of splitting them into single-word moves.  Remove unnecessary
261         checks for reload_in_progress and reload_completed.
262         (movdi_internal, movdf_internal): Change to post-reload split patterns.
263         Add constraints to allow constant operands.
264         (movsf_internal): Allow CONST_INT operands.
266 2003-05-27  Danny Smith   <dannysmith@users.sourceforge.net>
268         * config.gcc (i[34567]86-*-mingw32*): Add host makefile
269         fragment i386/x-mingw32.
270         * config/i386/x-mingw32: New file. Make local_includedir
271         relative to EXEC_PREFIX.
273 2003-05-27  Aaron W. LaFramboise  <awlaframboise@aol.com>
275         * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
276         (MD_STARTFILE_PREFIX): Define.
278 2003-05-27  Denis Chertykov  <denisc@overta.ru>
280         * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
281         VOIDmode.
282         * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
283         call of cselib_invalidate_regno.
285 2003-05-28  Daniel Jacobowitz  <drow@mvista.com>
287         * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
288         -lthread to -lpthread.
290 2003-05-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
291             Bruce Korb  <bkorb@gnu.org>
292             Arno Klaassen  <arno@heho.snv.jussieu.fr>
294         * fixinc/inclhack.def: Add missing declaration of getpagesize()
295         to unistd.h on Solaris 2.5.1.
296         Fix prototype of recv() and send() in sys/socket.h on
297         Solaris 2.5.1 and 2.6.
298         * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
299         * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
300         * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
301         * fixinc/fixincl.x: Regenerate.
303 2003-05-27  Jason Merrill  <jason@redhat.com>
305         * tree.c (expr_first, expr_length): New fns.
306         * tree.h: Declare them.
308         * tree.c (iterative_hash_expr): Hash commutative expressions
309         consistently.
311 2003-05-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
313         * tree.h (contains_placeholder_p): Now returns bool.
314         (CONTAINS_PLACEHOLDER_P): New macro.
315         (type_contains_placeholder_p): New function.
316         * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
317         (contains_placeholder_p): Now returns bool.
318         Rework to use CONTAINS_PLACEHOLDER_P macro.
319         (type_contains_placeholder_p): New function.
320         * fold-const.c (fold, case COMPONENT_REF): Don't fold if
321         type_contains_placeholder_p.
322         (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
323         Use CONTAINS_PLACEHOLDER_P macro.
324         * builtins.c (fold_builtin): Likewise.
325         * calls.c (initialize_argument_information): Likewise.
326         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
327         * explow.c (expr_size): Likewise.
328         * expr.c (store_constructor, get_inner_reference): Likewise.
329         * function.c (assign_parms): Likewise.
330         * stor-layout.c (variable_size): Likewise.
332 2003-05-25  Gabriel Dos Reis <gdr@integrable-solutions.net>
334         * diagnostic.h (output_verbatim, verbatim):  Remove  printf
335         attribute.
337 2003-05-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
339         * doc/contrib.texi (Contributors): Update Kean Johnston.
341 2003-05-24  David Edelsohn  <edelsohn@gnu.org>
343         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
345 2003-05-24  Nathanael Nerode  <neroden@gcc.gnu.org>
347         * config/rs6000/440.md, config/stormy16/stormy16protos.h,
348         config/stormy16/stormy16.c, config/stormy16/stormy16.md:
349         Replace "GNU CC" with "GCC".
351 2003-05-24  Matt Kraai  <kraai@alumni.cmu.edu>
353         * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
354         intermediate computation.
356 2003-05-23  Eric Christopher  <echristo@redhat.com>
358         * config/mips/mips.md (clzsi, clzdi): New patterns.
360 2003-05-23  Geoffrey Keating  <geoffk@apple.com>
362         * gcc.c (default_compilers): Use -o to specify preprocessor's output
363         file.  Make -no-integrated-cpp work when building PCH files.
364         * objc/lang-specs.h: Likewise.
366 2003-05-23  Nathanael Nerode  <neroden@gcc.gnu.org>
368         * fixinc/Makefile.in: Correct description.
369         * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
370         fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
371         fixinc/genfixes: Replace "GNU CC" with "GCC".
373 2003-05-23  Roger Sayle  <roger@eyesopen.com>
375         * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
376         builtin functions (and their __builtin_* variants).
377         * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
378         (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
379         optimizing.
381         * doc/extend.texi: Document new tan and atan builtins, and
382         their float and long double variants.
384 2003-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
386         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
387         __sparcv9 in the TARGET_ARCH64 case.
389 Fri May 23 22:17:32 CEST 2003  Jan Hubicka  <jh@suse.cz>
391         * i386.c (ix86_reorg): Calls are also jumps.
393 2003-05-23  J"orn Rennecke <joern.rennecke@superh.com>
395         * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
396         note containing an EXPR_LIST, process all the arguments.
398 Fri May 23 21:19:31 CEST 2003  Jan Hubicka  <jh@suse.cz>
399                                Andreas Jaeger  <aj@suse.de>
401         * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
402         do not use assertion.
404 2003-05-23  Mike Stump  <mrs@apple.com>
406         * tlink.c (scan_linker_output): Add support for darwin linker, as it
407         emits unresolved symbols one per line, consuming the entire line.
409 2003-05-23  Larin Hennessy <larin@science.oregonstate.edu>
410             Zack Weinberg <zack@codesourcery.com>
412         * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
413         * config/m68k/m68k.c (m68k_output_function_prologue):
414         Remove code under #if NEED_PROBE.
415         * config/m68k/m68k.h: Don't define NEED_PROBE.
416         * config/m68k/m68k.md: Remove "probe" insn.
417         * doc/md.texi: Remove documentation of "probe" pattern.
419 2003-05-23  Dorit Naishlos  <gcchaifa@il.ibm.com>
421         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
423 2003-05-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
425         * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
426         Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
428 2003-05-22  Roger Sayle  <roger@eyesopen.com>
430         * real.c (real_maxval): New function to return the largest finite
431         value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
432         * real.h (real_maxval): Prototype here.
433         * fold-const.c (fold_inf_compare): Transform comparisons against
434         +-Infinity into comparisons against DBL_MAX (or equivalent).
436 2003-05-22  Mike Stump  <mrs@apple.com>
438         * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
439         default.
441 2003-05-22  DJ Delorie  <dj@redhat.com>
443         * calls.c (expand_call): If the arg block is going to grow
444         downward, we need argblock to point to the top of the block,
445         not the bottom.
447 2003-05-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
449         * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
451         * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
452         constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
454 2003-05-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
456         * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
457         * m68k.c: Likewise.
458         * m68k.h: Likewise.
460 2003-05-22  Zack Weinberg  <zack@codesourcery.com>
462         PR other/2873
463         * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
464         expressions to prevent triggering on recent curses.h,
465         linux/nls.h, or X11/Xlib.h.
466         (stdio_va_list): Add _G_va_list to bypass pattern.
467         (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
468         * fixinc/fixincl.x: Regenerate.
470 2003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
472         * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
473         switches when --target-help option is specified.
475 2003-05-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
477         PR bootstrap/10805
478         * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
479         failure with Sun assembler 5.0 Alpha 03/27/98.
481 2003-05-21  Loren James Rittle  <ljrittle@acm.org>
483         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
484         to match system compiler convention.
486 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
488         * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for non-zero
489         value, not just if defined.
490         Update copyright year.
492 2003-05-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
494         PR target/6428
495         * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
496         directories from LIB_SPEC to LINK_SPEC.  Emit warning if `-p' or `-pg'
497         option is used without `-static'.
498         * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
499         * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
501 2003-05-21  Bob Wilson  <bob.wilson@acm.org>
503         * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
504         TARGET_SERIALIZE_VOLATILE): Delete.
505         (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
506         (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
507         (TARGET_SWITCHES): Remove "-mserialize-volatile" and
508         "-mno-serialize-volatile".
509         * config/xtensa/xtensa.c (print_operand): Remove checks of
510         TARGET_SERIALIZE_VOLATILE.
511         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
512         * doc/invoke.texi (Option Summary, Xtensa Options): Remove
513         "-mserialize-volatile" and "-mno-serialize-volatile" options.
515 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
517         * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
518         (nested_function): Likewise.
519         (notype_nested_function): Likewise.
521 2003-05-21  Nick Clifton  <nickc@redhat.com>
523         * config/stormy16/stormy-abi: Update overflow type for
524         R_XSTORMY16_16 reloc.
526 2003-05-21  Nathan Sidwell  <nathan@codesourcery.com>
528         * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
529         * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
530         (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
531         * print-tree.c (print_node): Remove ambient-boundedness.
532         * tree.h (tree_common): Remove bounded_flag.
533         (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
534         BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
535         MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
536         TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
537         TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
538         Remove.
539         (TYPE_QUALS): Remove BOUNDED.
540         (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
541         (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
542         TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
543         TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
544         VA_LIST_POINTER_DEPTH): Remove.
545         (struct tree_type): Remove pointer_depth.
547 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
549         * c-pretty-print.c (pp_c_integer_literal): Use
550         HOST_WIDE_INT_PRINT_DOUBLE_HEX.
552 2003-05-20  Roger Sayle  <roger@eyesopen.com>
553             Kazu Hirata  <kazu@cs.umass.edu>
554             Joern Rennecke  <joern.rennecke@superh.com>
556         * gcse.c (cprop_jump):  Make use of REG_EQUAL notes on both
557         setcc and jump, if they exist.  If substituted instruction
558         fails to validate, store current effort in a REG_EQUAL note.
559         (cprop_insn): Don't attempt further substitutions if the
560         current instruction has been deleted.
561         (local_cprop_pass): Likewise.
563         * jump.c (redirect_jump):  Also update REG_EQUAL note, if
564         one is attached to the jump instruction.
565         (invert_jump): Delete REG_EQUAL note on jump, if one exists.
567 2003-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
569         PR c++/9738
570         * config/i386/winnt.c (i386_pe_encode_section_info): Enable
571         even if not first.
573 2003-05-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
575         * genautomata.c (output_description, output_automaton_units,
576         output_state_arcs): Add missing specifiers.
578 2003-05-20  Bob Wilson  <bob.wilson@acm.org>
580         * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
581         (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
582         (__mulsi3): Use do_addx* instead of ADDX* instructions.  Formatting.
583         (nsau): Rename to do_nsau.  Provide alternate version for use when
584         the NSAU instruction is available.
585         (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
586         (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
587         * config/xtensa/xtensa-config.h: Update comments to match binutils.
588         (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
589         * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
590         (TARGET_ABS, TARGET_ADDX): Define.
591         (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
592         (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
593         * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
594         *subx8): Set predicate condition to TARGET_ADDX.
595         (abssi2): Set predicate condition to TARGET_ABS.
596         * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
597         "-maddx", and "-mno-addx" options.
598         (Xtensa Options): Likewise.  Also tag some opcode names with @code.
600 2003-05-20  Kevin Ryde <user42@zip.com.au>
601             Wolfgang Bangerth <bangerth@dealii.org>
603         PR/10355
604         * doc/extend.texi: Put a warning into the documentation
605         of attribute regparm.
607 2003-05-20  Jason Merrill  <jason@redhat.com>
609         * tree.c (expr_last): New fn.
610         * tree.h: Declare it.
611         * objc/objc-act (expr_last): Rename to objc_expr_last.
613 2003-05-20  J"orn Rennecke <joern.rennecke@superh.com>
615         * sh.c (sh_register_move_cost): Add clase for moving between
616         FP registers and MAC registers.
618 2003-05-19  John David Anglin  <dave.anglin@nrc-gnrc.gc.ca>
620         * pa/milli64.S ($$mulI): Fix typo.
622 2003-05-19  Matt Kraai  <kraai@alumni.cmu.edu>
624         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
625         (nonlocal_set_p): Remove initial blank line.
626         * dwarf2out.c (simple_type_size_in_bits): Likewise.
627         * et-forest.c (et_forest_create): Likewise.
628         * explow.c (stabilize): Likewise.
629         * fix-header.c (write_lbrac): Likewise.
630         * graph.c (start_fct, node_data): Likewise.
631         * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
632         * rtlanal.c (global_reg_mentioned_p): Likewise.
633         * tree.c (bit_position): Likewise.
635 2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
637         * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
638         -lthread to -lpthread.
640 2003-05-19  Neil Booth  <neil@daikokuya.co.uk>
642         * c-opts.c (c_common_decode_option): Don't accept dollars
643         as identifier characters in assembly.
644         * doc/cpp.texi: Document this.
646 2003-05-19  Seth Arnold  <sarnold@wirex.com>
647             Aldy Hernandez  <aldyh@redhat.com>
649         * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
650         vrsave_size twice.
652 2003-05-19  Aldy Hernandez  <aldyh@redhat.com>
654         * doc/tm.texi (function_arg): Fix typo.
656 2003-05-19  Matt Austern  <austern@apple.com>
658         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
659         * c-common.h (warn_invalid_offsetof): Declare.
660         * c-common.c (warn_invalid_offsetof): Define.
661         * doc/invoke.texi: Document -Winvalid-offsetof.
662         * testsuite/g++.dg/other/offsetof3.C: New.
663         * testsuite/g++.dg/other/offsetof4.C: New.
665 2003-05-19  Kevin B. Hendricks  <kevin.hendricks@sympatico.ca>
666             David Edelsohn  <edelsohn@gnu.org>
668         * config/rs6000/rs6000.c (rs6000_alignment_string,
669         rs6000_alignment_flags): New variables.
670         (rs6000_parse_alignment_option): New function.
671         (rs6000_override_options): Call it.
672         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
673         (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
674         macros.
675         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
676         natural alignment if TARGET_NATURAL_ALIGNMENT
677         (ROUND_TYPE_ALIGN): Always use default record alignment if
678         TAGET_NATURAL_ALIGNMENT.
679         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
680         (ROUND_TYPE_ALIGN): Same.
681         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
682         (ROUND_TYPE_ALIGN): Same.
683         * doc/invoke.texi (Option Summary, PowerPC Options): Document
684         new options.
686 2003-05-19  J"orn Rennecke <joern.rennecke@superh.com>
688         * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
689         of a function using ASMSPEC, prepend a star.
691 2003-05-19  Jason Merrill  <jason@redhat.com>
693         * tree-inline.c (copy_body_r): Avoid generating &* during inline
694         substitution.
696 2003-05-19  Andrew Macleod  <amacleod@redhat.com>
698         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
699         not mark assignments to the hard frame pointer as being stack
700         frame related.
701         (xstormy16_expand_epilogue): Mark adjustments to the stack
702         pointer as being stack frame related.
704 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
706         * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
707         ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
708         (PREDICATE_CODES): Add hilo_operand.
709         * config/mips/mips.c (hilo_operand): New predicate.
710         (mips_adjust_insn_length): Account for the number nops that might
711         be needed to avoid hardware hazards.
712         * config/mips/mips.md (dslot): Remove attribute.
713         (hazard): New attribute.
714         (can_delay): Use it.  Check for calls, branches & jumps.
715         (muldi3): Use the standard dmult pattern for mips16 code.
716         (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
718 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
720         * config/mips/mips-protos.h (final_prescan_insn,
721         mips_count_memory_refs, mips_fill_delay_slot): Remove.
722         * config/mips/mips.h (delay_type, dslots_load_total,
723         dslots_load_filled, dslots_jump_total, dslots_jump_filled,
724         dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
725         mips_load_reg3, mips_load_reg4): Remove.
726         (MASK_STATS): Remove.
727         (MASK_EXPLICIT_RELOCS): Reuse its value.
728         (TARGET_STATS): Remove.
729         (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
730         Warn that -mstats is now ignored.
731         (FINAL_PRESCAN_INSN): Undefine.
732         (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
733         (ASM_OUTPUT_REG_POP): Likewise.
734         * config/mips/mips.c (dslots_load_total, dslots_load_filled,
735         dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
736         mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
737         mips_fill_delay_slot, mips_count_memory_refs,
738         final_prescan_insn): Remove.
739         (output_block_move): Remove calls to mips_count_memory_refs.
740         (print_operand): Remove printing of #nop for TARGET_STATS.
741         (mips_output_function_epilogue): Remove TARGET_STATS code.
742         Reorganize setting of fnnmae.
743         * config/mips/mips.md: Remove handling of dslot statistics
744         throughout file.  Change all fcmp patterns into normal asm
745         templates, removing calls to mips_fill_delay_slot.
746         * doc/invoke.texi: Remove documentation of -mstats.
748 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
750         * config/mips/mips.c (mips_class_max_nregs): Return the number of
751         words in the mode.
753 2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
755         * config/mips/mips.c (override_options): Disable explicit
756         relocs for old ABIs unless using gas.
758 2003-05-18  Eric Christopher  <echristo@redhat.com>
760         * config/mips/mips.h: Remove definition of g_switch_value.
762 2003-05-18  Matt Kraai  <kraai@alumni.cmu.edu>
764         * flags.h (g_switch_value): Change to an unsigned
765         HOST_WIDE_INT.
766         * toplev.c (g_switch_value): Likewise.
768         * config/alpha/alpha.c (small_symbolic_operand): Remove
769         g_switch_value cast.
770         (alpha_in_small_data_p): Cast size to an unsigned
771         HOST_WIDE_INT.
773         * config/frv/frv.c (frv_in_small_data_p): Cast size to an
774         unsigned HOST_WIDE_INT.
775         * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
776         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
778         * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
779         unsigned HOST_WIDE_INT.
780         (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
781         * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
782         (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
784         * config/rs6000/rs6000.c (rs6000_file_start): Use
785         HOST_WIDE_INT_PRINT_UNSIGNED.
786         (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
787         (rs6000_elf_in_small_data_p): Cast size to unsigned
788         HOST_WIDE_INT.
789         * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
790         Remove.
791         (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
792         g_switch_set.
793         (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
794         g_switch_value cast.
796 2003-05-18  Roger Sayle  <roger@eyesopen.com>
797             Zack Weinberg  <zack@codesourcery.com>
799         PR middle-end/10472
800         * builtins.c (expand_builtin_memcpy):  Call force_operand on
801         expressions and use simplify_gen_binary to create the addition.
803 2003-05-18  Andreas Schwab  <schwab@suse.de>
805         * config/m68k/m68k.md: Use define_constants for unspec numbers.
807 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
809         * config/sparc/sparc.h: Define sparc for now.
810 2003-05-18  Nathanael Nerode  <neroden@gcc.gnu.org>
812         * config.gcc: Clear xm_file, md_file at the beginning of each pass.
814         * config/stormy16/stormy16.h: Remove about 3000 lines of
815         target-independent comments.  Update copyright notice.
817         * doc/collect2.texi: GNU CC -> GCC.
818         * doc/headerdirs.texi: GNU CC -> GCC.
820 2003-05-18  Gabriel Dos Reis <gdr@integrable-solutions.net>
822         * hashtable.h (struct ht_identifier): Add data member "hash_value".
823         * hashtable.c (ht_lookup): Use it when searching, remember.
824         (ht_expand): Do not recompute.
825         * tree.h (IDENTIFIER_HASH_VALUE): New macro.
827 2003-05-18  Nathan Sidwell  <nathan@codesourcery.com>
829         * gcov-io.c (gcov_read_bytes): Fix fread thinko.
831 2003-05-18  Neil Booth  <neil@daikokuya.co.uk>
833         * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
834         Default here.
835         (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
836         * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
837         * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
838         * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
839         config/arm/linux-elf.h, config/arm/rtems-elf.h,
840         config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
841         config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
842         config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
843         config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
844         config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
845         config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
846         config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
847         config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
848         config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
849         config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
850         config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
851         Don't define __ELF__.
852         * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
853         Define __ELF__.
854         * doc/cpp.texi: Document __ELF__.
855         * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS.     *
857 2003-05-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
859         * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
860         always use stdarg.
861         * c-errors.c (pedwarn_c99): Likewise.
862         * c-format.c (status_warning): Likewise.
863         * c-semantics.c (build_stmt): Likewise.
864         * calls.c (emit_library_call, emit_library_call_value): Likewise.
865         * collect2.c (notice, fatal_perror, fatal, error): Likewise.
866         * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
867         * diagnostic.c (build_message_string, output_printf,
868         output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
869         fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
870         error_with_decl, fnotice): Likewise.
871         * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
872         dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
873         dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
874         dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
875         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
876         dw2_asm_output_encoded_addr_rtx): Likewise.
877         * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
878         * errors.c (warning, error, fatal, internal_error): Likewise.
879         * final.c (output_operand_lossage, asm_fprintf): Likewise.
880         * fix-header.c (fatal): Likewise.
881         * gcc.c (fatal, error, notice): Likewise.
882         * gcov.c (fnotice): Likewise.
883         * genattrtab.c (attr_rtx, attr_printf): Likewise.
884         * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
885         * gensupport.c (message_with_line): Likewise.
886         * mips-tfile.c (fatal, error): Likewise.
887         * protoize.c (notice): Likewise.
888         * ra-debug.c (ra_debug_msg): Likewise.
889         * read-rtl.c (fatal_with_file_and_line): Likewise.
890         * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
891         * tree.c (build, build_nt, build_function_type_list): Likewise.
893 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
895         * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
896         * gcc.c (cpp_predefines): Remove.
897         (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
898         (static_specs): Remove predefines.
899         * system.h: Poison CPP_PREDEFINES.
900         * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
901         config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
903 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
905         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
906         config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
907         config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
908         use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
910 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
912         PR c/9209
913         * c-common.c, c-common.h (dollars_in_ident): Remove.
914         * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
915         (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
916         * cpphash.h (warned_dollar): Rename warn_dollars.
917         * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
918         Permit dollars regardless of -std=.
919         (post_options): Set warn_dollars.
920         * cpplex.c (forms_identifier_p): Use warn_dollars.
921         * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
922         Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
923         * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
924         Update documentation.
926 2003-05-17  Andreas Schwab  <schwab@suse.de>
928         * config/m68k/m68k.c (m68k_output_function_prologue): Use
929         HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
930         formatting a HOST_WIDE_INT.
931         (m68k_output_function_epilogue): Likewise.
933 2003-05-17  Zack Weinberg  <zack@codesourcery.com>
935         * doc/install.texi: Remove information about desupported targets.
937 2003-05-17  Andreas Schwab  <schwab@suse.de>
939         * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
940         * config/m68k/linux.h: Likewise.
941         * config/m68k/m68k-none.h: Likewise.
942         * config/m68k/netbsd-elf.h: Likewise.
943         * config/m68k/sgs.h: Likewise.
944         * config/m68k/m68k.h: Likewise.
945         * config/m68k/m68k.md: Likewise.
946         * config/m68k/m68k.c: Likewise.
947         * doc/md.texi (Machine Constraints): Remove Sun FPA specific
948         constraints.
949         * doc/invoke.texi (Option Summary): Remove -mfpa.
950         (M680x0 Options): Likewise.
952 2003-05-17  David Edelsohn  <edelsohn@gnu.org>
954         * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
956 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
958         * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
959         * config/sparc/liteelf.h, config/sparc/openbsd64.h,
960         config/sparc/rtemself.h, config/sparc/sol2-64.h,
961         config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
962         Update for use of TARGET_SUB_OS_CPP_BUILTINS.
964 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
966         * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
967         TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
969 2003-05-17  Neil Booth  <neil@daikokuya.co.uk>
971         * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
972         * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
973         sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
974         sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
975         sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
976         sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
977         sparc/sysv4.h,
978         * sparc/sysv4-only.h: New.
980 2003-05-17  Alan Modra  <amodra@bigpond.net.au>
982         * function.c (assign_parms): Check for zero size args.
984 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
986         * cfgloopanal.c (test_for_iteration): Use string concatentation on
987         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
988         function calls into one.
989         * dbxout.c (dbxout_symbol): Likewise.
990         * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
991         * dwarf2asm.c (dw2_asm_output_data_uleb128,
992         dw2_asm_output_data_sleb128): Likewise.
993         * genrecog.c (debug_decision_2): Likewise.
994         * loop.c (emit_prefetch_instructions): Likewise.
995         * print-rtl.c (print_rtx): Likewise.
996         * print-tree.c (print_node_brief, print_node): Likewise.
997         * ra-debug.c (dump_igraph, dump_graph_cost,
998         dump_static_insn_cost): Likewise.
999         * ra-rewrite.c (dump_cost): Likewise.
1000         * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
1001         * sreal.c (dump_sreal): Likewise.
1002         * unroll.c (unroll_loop, precondition_loop_p): Likewise.
1003         * varasm.c (assemble_vtable_entry): Likewise.
1005         * avr.c (avr_output_function_prologue,
1006         avr_output_function_epilogue, print_operand): Fix format specifier
1007         warnings.
1008         (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
1009         * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
1011 2003-05-16  Geoffrey Keating  <geoffk@apple.com>
1013         * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
1014         and ! TARGET_STRING cases.
1016         * doc/cppopts.texi (-undef): Fix texinfo warning.
1018         * doc/cppopts.texi (-H): Document that -H works for PCH files too.
1019         * cppfiles.c (validate_pch): When -H is used, print some information
1020         about PCH files found.
1022 2003-05-16  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1024         * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
1025         * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
1026         * config/mips/t-sr71k: Likewise.
1028 2003-05-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1030         * arc.c (arc_output_function_prologue,
1031         arc_output_function_epilogue): Fix format specifier warnings.
1032         * arc.h (LARGE_INT): Fix signed/unsigned warnings.
1034         * v850.c (print_operand): Fix format specifier warnings.
1036         * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
1037         specifier warnings.
1039         * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
1040         format specifier warnings.
1042         * ip2k.c (function_prologue, function_epilogue, print_operand):
1043         Fix format specifier warnings.
1044         * ip2k.md: Likewise.
1046         * i960.c (i960_output_function_prologue, i960_print_operand,
1047         i960_print_operand_addr): Fix format specifier warnings.
1049         * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
1050         (i370_output_function_prologue): Fix format specifier warnings.
1051         * i370.h (PRINT_OPERAND): Likewise.
1053         * fr30.c (fr30_print_operand): Fix format specifier warnings.
1055         * dsp16xx.c (print_operand_address): Fix format specifier warning.
1056         * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
1058         * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
1059         specifier warnings.
1061         * alpha.c (print_operand_address, alpha_start_function,
1062         unicosmk_output_ssib): Use string concatentation on
1063         HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
1064         function calls into one.
1065         * arm.c (arm_print_operand): Likewise.
1066         * cris.c (cris_asm_output_mi_thunk): Likewise.
1067         * frv.c (frv_asm_output_mi_thunk): Likewise.
1068         * ia64.c (ia64_print_operand, process_set): Likewise.
1069         * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
1070         Likewise.
1071         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
1072         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
1073         * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
1074         * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
1075         * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
1076         * s390.c (s390_assemble_integer): Likewise.
1077         * sparc.c (sparc_flat_function_prologue,
1078         sparc_flat_function_epilogue): Likewise.
1079         * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
1080         * vax.c (vax_output_mi_thunk): Likewise.
1082         * frv.c (frv_print_operand_memory_reference): Fix format specifier
1083         warning.
1084         (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
1086         * m68k.c (m68k_output_function_epilogue): Fix format specifier
1087         warnings.
1089         * stormy16-protos.h (xs_hi_general_operand,
1090         xs_hi_nonmemory_operand): Prototype.
1091         * stormy16.c (xstormy16_output_shift): Fix format specifier
1092         warnings.
1094         * cris.c: Fix format specifier warnings.
1096 2003-05-16  Nick Clifton  <nickc@redhat.com>
1098         * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
1100 2003-05-16  Wolfgang Bangerth <bangerth@dealii.org>
1102         * doc/bugreport.texi: Remove most of the of the preface of the
1103         bugs section.
1105 2003-05-16  Jakub Jelinek  <jakub@redhat.com>
1107         * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
1108         .save XX, r0.
1110 2003-05-15  Roger Sayle  <roger@eyesopen.com>
1112         * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
1114 2003-05-15  Eric Christopher  <echristo@redhat.com>
1116         * cfgcleanup.c (merge_blocks): Fix return value.
1118 2003-05-15 Eric Christopher <echristo@redhat.com>
1120         * combine.c (expand_compound_operation): Make sure
1121         that zero_extend operation is profitable.
1123 2003-05-15  Richard Henderson  <rth@redhat.com>
1125         * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
1126         code protected by USE_GNULIBC_1.
1128 2003-05-15  Zack Weinberg  <zack@codesourcery.com>
1130         * config.gcc: Purge all targets obsoleted in GCC 3.3.  Also
1131         remove hppa*-*-mpeix* which could not be built, and prune
1132         files from tmake_file= or tm_file= lists that don't exist.
1134         * config/alpha/alpha-interix.h, config/alpha/alpha32.h
1135         * config/alpha/t-interix, config/arm/conix-elf.h
1136         * config/arm/t-arm-aout, config/arm/t-strongarm-coff
1137         * config/arm/unknown-elf-oabi.h, config/i386/win32.h
1138         * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
1139         * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
1140         * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
1141         * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
1142         * config/m68k/m68k-psos.h, config/m68k/mot3300.h
1143         * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
1144         * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
1145         * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
1146         * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
1147         * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
1148         * config/m68k/tower-as.h, config/m68k/tower.h
1149         * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
1150         * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
1151         * config/m88k/m88k-protos.h, config/m88k/m88k.c
1152         * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
1153         * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
1154         * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
1155         * config/mips/rtems64.h, config/mips/sni-gas.h
1156         * config/mips/sni-svr4.h, config/mips/t-ecoff
1157         * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
1158         * config/mn10200/mn10200.c, config/mn10200/mn10200.h
1159         * config/mn10200/mn10200.md, config/mn10200/t-mn10200
1160         * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
1161         * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
1162         * config/romp/romp-protos.h, config/romp/romp.c
1163         * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
1164         * config/rs6000/aix3newas.h, config/rs6000/mach.h
1165         * config/sparc/bsd.h, config/sparc/hal.h
1166         * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
1167         * config/sparc/lynx.h, config/sparc/netbsd.h
1168         * config/sparc/sp86x-aout.h, config/sparc/splet.h
1169         * config/sparc/sun4gas.h, config/sparc/sun4o3.h
1170         * config/sparc/sunos4.h, config/sparc/t-chorus-elf
1171         * config/sparc/t-halos, config/sparc/t-sparcbare
1172         * config/sparc/t-splet, config/sparc/t-sunos41
1173         * config/v850/rtems.h: Delete file.
1175 2003-05-15  Aldy Hernandez  <aldyh@redhat.com>
1177         * config/rs6000/rs6000-protos.h (function_value): Protoize.
1179         * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
1181         * config/rs6000/rs6000.c (rs6000_function_value): New.
1183 2003-05-15  Philip Blundell  <philb@gnu.org>
1185         * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
1186         All uses updated.
1187         (arm_tune_xscale): New variable.
1188         (arm_override_options): Set it.
1189         (arm_adjust_cost): Use it in place of arm_arch_xscale.
1190         (arm_gen_load_multiple): Likewise.
1191         (arm_gen_store_multiple): Likewise.
1192         * config/arm/arm.md (is_xscale): Likewise.
1193         * config/arm/arm.h (arm_tune_xscale): Declare.
1195 2003-05-15  Philip Blundell  <philb@gnu.org>
1197         PR target/10730
1198         * config/arm/arm.c (adjacent_mem_locations): Reject offsets
1199         involving invalid constants.
1201 2003-05-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1203         * pa.c (hppa_expand_prologue): Remove blockage.
1205 2003-05-15  Wolfgang Bangerth <bangerth@dealii.org>
1207         * doc/bugreport.texi: Remove most of the bug reporting
1208         instructions and merge them into bugs.html.
1210 2003-05-14  Matt Kraai  <kraai@alumni.cmu.edu>
1212         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
1213         g_switch_value to unsigned HOST_WIDE_INT.
1215 2003-05-14  Eric Christopher  <echristo@redhat.com>
1217         * combine.c: Fix header comments.
1218         (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
1219         to all calls and prototype.
1221 2003-05-14  Roger Sayle  <roger@eyesopen.com>
1223         PR optimization/10764
1224         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
1225         Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
1226         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3):  Likewise,
1227         add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
1228         (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
1229         the corresponding *fyl2x_?fxf3 instructions.
1231 2003-05-14  Bob Wilson  <bob.wilson@acm.org>
1233         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
1234         * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
1235         XCHAL_HAVE_L32R): New.
1236         * config/xtensa/xtensa-protos.h (non_const_move_operand,
1237         xtensa_load_constant, xtensa_function_prologue,
1238         xtensa_function_epilogue): Delete prototypes.
1239         (xtensa_expand_prologue): New.
1240         * config/xtensa/xtensa.c (frame_size_const,
1241         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
1242         non_const_move_operand, xtensa_load_constant, xtensa_reorg,
1243         xtensa_function_prologue): Delete.
1244         (add_operand, xtensa_mem_offset): Formatting.
1245         (move_operand): If the const16 option is available, allow any SFmode
1246         and SImode constants.
1247         (xtensa_emit_move_sequence): Inline the former contents of
1248         xtensa_load_constant with modifications to handle the const16 option.
1249         (override_options): Add xtensa_char_to_class['W'] and set it to
1250         the general register class only if the const16 option is enabled.
1251         Fix formatting.  Disallow PIC when using the const16 option.
1252         (print_operand): Reorganize to switch on "letter" instead of the
1253         RTL code.  Add output_operand_lossage calls for invalid cases.
1254         Add support for 't' and 'b' letters.
1255         (xtensa_expand_prologue): New function to replace
1256         xtensa_function_prologue and xtensa_reorg.
1257         (xtensa_function_epilogue): Declare this as static.  Delete code
1258         to print the retw.n or retw instruction.
1259         (xtensa_return_addr): Use A0_REG instead of 0.
1260         (xtensa_rtx_costs): Add costs for using the const16 option.
1261         * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
1262         (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
1263         (TARGET_SWITCHES): Add "const16" and "no-const16".
1264         (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
1265         (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
1266         using the const16 option.
1267         (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
1268         (TRAMPOLINE_SIZE): Change from 49 to 59.
1269         (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
1270         (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
1271         when using the const16 option.
1272         (PREDICATE_CODES): Delete non_const_move_operand.
1273         * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
1274         UNSPECV_ENTRY.
1275         (movdi, movdf): If the source is a constant, always expand to a
1276         sequence of movsi insns.
1277         (movdi_internal, movdf_internal): Remove alternative using l32r insns.
1278         (movsi_internal, movsf_internal): Add alternative using const16 insns.
1279         (movsf): Add const16 support.
1280         (entry, prologue, epilogue): New.
1281         (set_frame_ptr): Add missing mode for unspec_volatile operation.
1282         Likewise for subsequent split pattern.
1283         * doc/invoke.texi (Option Summary, Xtensa Options): Document new
1284         "-mconst16" and "-mno-const16" options.
1286 2003-05-14  Richard Henderson  <rth@redhat.com>
1288         * config/ia64/ia64.c (ia64_expand_load_address): Force destination
1289         to be DImode register.  Merge load_symptr.
1290         * config/ia64/ia64.md (load_symptr): Remove.
1292 2003-05-14  Richard Henderson  <rth@redhat.com>
1294         * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
1295         DEFERRED_CONSTANT_P.
1296         * integrate.c (copy_rtx_and_substitute): Update use.
1297         * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
1298         to the copy generated.
1299         (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
1300         of the constant to see if we should emit.
1301         (mark_constant): Similarly.
1302         (output_constant_def_contents): Set TREE_ASM_WRITTEN.
1304 2003-05-14  David Edelsohn  <edelsohn@gnu.org>
1306         * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
1307         move record condition.
1308         (movdi_internal2): Same.
1310 2003-05-14  Nathan Sidwell  <nathan@codesourcery.com>
1312         * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
1313         (GCOV_TAG_*) Force type to gcov_unsigned_t.
1314         (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
1315         (struct gcov_var): Remove modified. Add start, length, offset,
1316         overread. Have buffer array for libgcov.
1317         (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
1318         (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
1319         * gcov-io.c (gcov_open): Set mode, do not read anything.
1320         (gcov_close): Write final block.
1321          (gcov_write_block, gcov_allocate): New.
1322         (gcov_write_bytes): Make static. Write or allocate buffer.
1323         (gcov_write_unsigned, gcov_write_counter): Buffer can never be
1324         null.
1325         (gcov_write_string): Adjust.
1326         (gcov_write_tag)
1327         (gcov_write_length): Adjust. Flush the block.
1328         (gcov_write_tag_length): Buffer can never be null.
1329         (gcov_read_bytes): Make static. Read in block.
1330         (gcov_sync): Moved here. Adjust.
1331         (gcov_seek): Moved here. Adjust.
1332         * coverage.c (read_counts_file): Adjust.
1333         * gcov-dump.c (print_prefix): Add position parameter.
1334         (flag_dump_positions): New flag.
1335         (options, main, print_usage): Add it.
1336         (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
1337         tag_summary): Adjust.
1338         * gcov.c (read_graph_file, read_count_file): Adjust.
1339         * libgcov.c (gcov_exit): Adjust.
1341         * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
1342         (libgcov.a): Depend on libgcc.a.
1343         (gcov.o, gcov-dump.o): Add gcov-io.c.
1344         * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
1346         * loop.c (check_dbra_loop): Factor common test.
1348 2003-05-14  Ben Elliston  <bje@wasabisystems.com>
1350         * doc/md.texi (Automaton pipeline description): Grammar fixes.
1352 2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
1354         * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
1355         (TARGET_INITIALIZER): Include it.
1356         * target.h (struct gcc_target): Add machine_dependent_reorg field.
1357         * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
1358         * system.h: Poison MACHINE_DEPENDENT_REORG.
1360         * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
1361         * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
1362         * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1363         (alpha_handle_trap_shadows): Remove "first insn" parameter.
1364         (alpha_align_insns): Likewise.
1365         (alpha_reorg): Likewise.  Make static.  Update calls to above
1366         functions.
1368         * config/arm/arm-protos.h (arm_reorg): Remove declaration.
1369         * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
1370         * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1371         (arm_reorg): Remove parameter.  Make static.
1373         * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
1374         * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
1375         * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1376         (avr_reorg): Renamed from machine_dependent_reorg.  Make static.
1377         Remove parameter.
1379         * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
1380         * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
1381         * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1382         (c4x_reorg): Renamed from c4x_process_after_reload.  Make static.
1383         Remove parameter.
1385         * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
1386         * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
1387         * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
1389         * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
1390         * config/frv/frv.c: Remove orphaned comment.
1392         * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
1393         * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
1394         * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1395         (ix86_reorg): Renamed from x86_machine_dependent_reorg.  Make static.
1396         Remove parameter.
1398         * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
1399         * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
1400         * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1401         (emit_insn_group_barriers): Remove "first insn" parameter.
1402         (emit_all_insn_group_barriers): Likewise.
1403         (ia64_reorg): Likewise.  Make static.  Update calls to above functions.
1404         (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
1406         * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
1407         * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
1408         * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1409         (ip2k_reorg): Renamed from machine_dependent_reorg.  Make static.
1410         Remove parameter.
1412         * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
1413         * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
1414         * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1415         (m68hc11_reorg): Make static.  Remove parameter.
1417         * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
1418         * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
1419         * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1420         (conditionalize_optimization): Remove parameter.
1421         (mcore_reorg): Renamed from mcore_dependent_reorg.  Remove parameter.
1422         Make static.  Update call to conditionalize_optimization.
1424         * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
1425         * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
1426         * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1427         (mips_reorg): Renamed from machine_dependent_reorg.  Remove parameter.
1428         Make static.
1430         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
1431         * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
1432         * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1433         (mmix_reorg): Renamed from mmix_machine_dependent_reorg.  Make static.
1434         Remove parameter.
1436         * config/pa/pa-protos.h (pa_reorg): Remove declaration.
1437         * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
1438         * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1439         (pa_combine_instructions): Remove "first insn" parameter.
1440         (remove_useless_addtr_insns): Likewise.
1441         (pa_reorg): Likewise.  Make static.  Update calls to above functions.
1443         * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
1444         commented-out definition.
1446         * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
1447         * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
1448         * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1449         (s390_reorg): Renamed from s390_machine_dependent_reorg.  Make static.
1450         Remove parameter.
1452         * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
1453         * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
1454         * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1455         (sh_reorg): Renamed from machine_dependent_reorg.  Make static.
1456         Remove parameter.
1457         (sh_output_mi_thunk): Call sh_reorg directly.
1458         * config/sh/sh.md: Update comment.
1460         * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
1461         commented-out definition.
1463         * config/v850/v850-protos.h (v850_reorg): Remove declaration.
1464         * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
1465         * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1466         (v850_reorg): Make static.  Remove parameter.
1468         * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
1469         * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
1470         * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
1471         (xtensa_reorg): Make static.  Remove parameter.
1473         * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
1474         (TARGET_MACHINE_DEPENDENT_REORG): Document.
1476 2003-05-13  Richard Henderson  <rth@redhat.com>
1478         * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
1479         the old decl had instantiated DECL_RTL.
1481 2003-05-13  Mike Stump  <mrs@apple.com>
1483         * doc/invoke.texi (Option Summary): Kill off documentation for -$.
1485 2003-05-13  Janis Johnson  <janis187@us.ibm.com>
1487         * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
1488         HOST_WIDE_INT argument.
1490 2003-05-13  Jason Merrill  <jason@redhat.com>
1492         * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
1494         * tree.c (iterative_hash_expr): New fn.
1496         * c-semantics.c (emit_local_var): Don't mess with temp slots if
1497         there's no initializer.
1499 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
1501         * final.c (final_scan_insn): Apply the effects of frame-related
1502         delay slot insns before emitting a delayed branch.
1504 2003-05-13  Nick Clifton  <nickc@redhat.com>
1506         * config/mcore/mcore.md (jump): Use emit_jump_insn.
1508 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1510         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
1511         parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
1513 2003-05-12  DJ Delorie  <dj@redhat.com>
1515         * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
1516         (emit_push_insn): Don't use push when the source alignment is less
1517         than the stack's push rounding.
1519 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
1521         * diagnostic.c (output_format): Add support for %m.
1522         (output_printf, output_verbatim, diagnostic_set_info,
1523         verbatim): Set err_no field of the text_info structure being
1524         initialized.
1525         (fatal_io_error): Delete function.
1526         * diagnostic.h (text_info): Add err_no field.
1527         * toplev.h (fatal_io_error): Delete prototype.
1529         * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
1530         * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
1531         * objc/objc-act.c: Replace all calls to fatal_io_error with
1532         calls to fatal_error; add ": %m" to the end of all the affected
1533         error messages.
1535 2003-05-13  Zack Weinberg  <zack@codesourcery.com>
1537         * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
1538         * rtl.h: Prototype it.
1539         * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
1540         when appropriate.
1542 2003-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
1544         * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
1545         ("*iorsi3_oi"): Likewise.
1547 2003-05-13  Richard Earnshaw  <rearnsha@arm.com>
1549         * arm.md (compare_scc): Use shorter sequence for EQ case.
1550         (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
1551         (and_scc_scc): Ensure split only applies when there is a dominance
1552         of the comparisons.
1553         (and_scc_scc_nodom): New insn-and-split pattern.
1555 2003-05-13  Richard Sandiford  <rsandifo@redhat.com>
1557         * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
1558         to _Unwind_SetGRPtr().
1560 2003-05-13  Michael Eager <eager@mvista.com>
1562         * Makefile.in: Initialize program_transform_cross_name from
1563         @program_transform_name@ instead of target_alias.
1565 2003-05-12  Janis Johnson  <janis187@us.ibm.com>
1566             Alan Modra  <amodra@bigpond.net.au>
1567             Jakub Jelinek  <jakub@redhat.com>
1569         * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
1570         * configure: Rebuild.
1571         * config/rs6000/rs6000-protos.h: Update.
1572         * config/rs6000/rs6000.c (rs6000_tls_size): New.
1573         (rs6000_tls_size_string): New.
1574         (rs6000_parse_tls_size_option): New.
1575         (rs6000_legitimize_tls_address): New.
1576         (rs6000_tls_get_addr): New.
1577         (rs6000_got_sym): New.
1578         (rs6000_tls_symbol_ref): New.
1579         (rs6000_tls_symbol_ref_1): New.
1580         (rs6000_get_some_local_dynamic_name): New.
1581         (rs6000_get_some_local_dynamic_name_1): New.
1582         (TARGET_HAVE_TLS): New.
1583         (TARGET_CANNOT_FORCE_CONST_MEM): New.
1584         (rs6000_override_options): Handle -mtls-size option.
1585         (constant_pool_expr_1): Handle TLS symbols.
1586         (rs6000_legitimize_address): Handle TLS symbols.
1587         (rs6000_tls_referenced_p): New.
1588         (rs6000_legitimate_address): Handle TLS symbols.
1589         (rs6000_emit_move): Handle TLS symbols.
1590         (print_operand): Handle TLS symbols.
1591         (uses_TOC): Handle TLS symbols.
1592         (rs6000_emit_prologue): Use symbol for unspec constant.
1593         * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
1594         (some_ld_name): New.
1595         (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
1596         (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
1597         (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
1598         * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
1599         Support TLS.
1600         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
1601         tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
1602         tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
1603         tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
1604         tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
1605         tls_tls_64): New.
1606         * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
1608 2003-05-12  Neil Booth  <neil@cat.daikokuya.co.uk>
1610         * Makefile.in (stage2_build, stage3_build, stage4_build):
1611         Set BUILD_CC to the same as CC.
1613 2003-05-12  Neil Booth  <neil@daikokuya.co.uk>
1615         * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
1617 2003-05-12  Andreas Schwab  <schwab@suse.de>
1619         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
1620         as unused.
1621         (bundling): Initialize 'pos'.
1622         (ia64_expand_builtin): Initialize 'rmode'.
1624 2003-05-12  David Edelsohn  <edelsohn@gnu.org>
1626         * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
1627         (ASM_OUTPUT_ALIGNED_COMMON): Same.
1628         (ASM_OUTPUT_LOCAL): Same.
1630 Mon May 12 21:53:29 CEST 2003  Jan Hubicka  <jh@suse.cz>
1632         * varasm.c (output_constant):  Fix underflow.
1634 2003-05-12  Mark Mitchell  <mark@codesourcery.com>
1636         PR other/10745
1637         * configure.in: Correct detection of GNU ld version number.
1638         * configure: Regenerated.
1640 2003-05-12  Zack Weinberg  <zack@codesourcery.com>
1642         * diagnostic.c (diagnostic_for_decl): Take a
1643         diagnostic_context argument.  Restructure to be consistent
1644         with diagnostic_report_diagnostic.
1645         (diagnostic_count_diagnostic): Now static.  Take a
1646         diagnostic_info argument, not just a diagnostic_t.  Some code
1647         moved here from internal_error.  Move a case label for
1648         clarity.
1649         (diagnostic_action_after_output): New function.  Code moved
1650         here from internal_error and fatal_error.
1651         (bug_report_request): New #define so that this text appears in
1652         only one place.
1653         (diagnostic_report_diagnostic): Update to match changes to
1654         diagnostic_count_diagnostic.  Call diagnostic_action_after_output.
1655         (diagnostic_set_info): Call gettext here.
1657         (pedwarn): Update comment.  Don't call gettext here.
1658         (sorry): Use report_diagnostic.  Don't call gettext here.
1659         (fatal_error): Remove final fnotice and exit, but call
1660         real_abort to prevent warnings about noreturn function returning.
1661         (internal_error): Likewise.  Don't do ICE suppression here nor
1662         call context->internal_error.
1663         (warning_with_decl): Suppress for decls in system headers.
1664         Adjust call to diagnostic_for_decl.
1665         (pedwarn_with_decl): Likewise.
1666         (error_with_decl): Adjust call to diagnostic_for_decl.
1667         (error_recursion): Use bug_report_request.
1669         * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
1670         * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
1671         diagnostic_count_diagnostic.
1673 2003-05-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1675         * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
1677 Mon May 12 15:57:54 CEST 2003  Jan Hubicka  <jh@suse.cz>
1679         * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
1680         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
1681         * mips/mips.h (ASM_OUTPUT_SKIP):  Fix typo in the previous patch.
1683 2003-05-12  Roger Sayle  <roger@eyesopen.com>
1685         * doc/rtl.texi: Document zero_extract as a valid destination
1686         of a set insn.
1688 2003-05-12  Richard Earnshaw  <rearnsha@arm.com>
1690         * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
1691         '.'.  Change all local symbol definitions and references to use LSYM.
1693 Mon May 12 11:32:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
1695         * expr.h (assemble_static_space): Update prototype.
1696         * output.h (assemble_zeros, output_constant): Likewise.
1697         * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
1698         * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
1699         it 64bit clean.
1700         * elf.h (ASM_OTUPUT_SKIP): Likewise.
1701         * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
1702         * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1703         Expect HOST_WIDE_INT operand.
1704         * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1705         Expect HOST_WIDE_INT operand.
1706         * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1707         Expect HOST_WIDE_INT operand.
1708         * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
1709         HOST_WIDE_INT operand.
1710         * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
1711         ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
1712         * aout.h (ASM_OTUPUT_SKIP): Likewise.
1713         * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
1714         * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
1715         * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
1716         * frv.h (ASM_OTUPUT_SKIP): Likewise.
1717         * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
1718         * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
1719         Make it 64bit
1720         clean.
1721         * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
1722         * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
1723         Make it 64bit clean.
1724         * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
1725         * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
1726         HOST_WIDE_INT operand
1727         * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
1728         Expect HOST_WIDE_INT operand
1729         * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
1730         * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
1731         ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
1732         * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1733         Likewise.
1734         * m32r.h (ASM_OUTPUT_COMMON): Likewise.
1735         * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1736         Likewise.
1737         * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1738         * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1739         * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
1740         ASM_OUTPUT_SKIP): Likewise.
1741         * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
1742         Likewise.
1743         * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
1744         ASM_OUTPUT_SKIP): Likewise.
1745         * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
1746         ASM_OUTPUT_SKIP): Likewise.
1747         * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
1748         * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
1749         ASM_OUTPUT_SKIP): Likewise.
1750         * sgs.h (ASM_OUTPUT_SKIP): Likewise.
1751         * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
1752         ASM_OUTPUT_SKIP): Likewise.
1753         * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
1754         Likewise.
1755         * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
1756         * iris.h (ASM_OUTPUT_LOCAL): Likewise.
1757         * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
1758         * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
1759         ASM_OUTPUT_SKIP): Make it 64bit clean.
1760         * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
1761         Make it 64bit clean.
1762         * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
1763         ASM_OUTPUT_SKIP): Make it 64bit clean.
1764         * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
1765         64bit clean.
1766         * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
1767         HOST_WIDE_INT argument
1768         * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
1769         * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
1770         HOST_WIDE_INT argument
1771         * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
1772         * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
1773         * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
1774         * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
1775         HOST_WIDE_INT argument
1776         * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
1777         * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
1778         * varasm.c (asm_output_bss, asm_output_aligned_bss,
1779         asm_emit_uninitialized, assemble_zeros, assemble_static_space):
1780         HOST_WIDE_INT argument
1782 2003-05-10  Steven Bosscher  <steven@gcc.gnu.org>
1784         * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
1785         favor of walk_tree_without_duplicates.  Add comments.
1787 2003-05-12  Josef Zlomek  <zlomekj@suse.cz>
1789         * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
1790         (struct alloc_pool_def): New element 'id'.
1791         * alloc-pool.c (fancy_abort): Extern function prototype.
1792         (abort): Macro which uses fancy_abort.
1793         (struct allocation_object_def): New structure.
1794         (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
1795         (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
1796         (last_id): New variable.
1797         (create_alloc_pool): Add the offset of u.data to size of element,
1798         increase and use last_id.
1799         (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
1800         (pool_alloc): Likewise. Set ID for elements.
1801         (pool_free): Check whether the PTR was allocated from POOL.
1803 2003-05-11  Richard Henderson  <rth@redhat.com>
1805         PR c/10675
1806         * c-decl.c: Include hashtab.h.
1807         (detect_field_duplicates): New.
1808         (finish_struct): Use it.
1809         * Makefile.in (c-decl.o): Update.
1810         * c-parse.in (structsp_attr): Nreverse component_decl_list results.
1811         (component_decl_list, component_decl_list2,
1812         components, components_notype): Build list in reverse order.
1813         (enumlist): Clarify docs.  Use TREE_CHAIN not chainon.
1815         * tree.c (chainon): Special case op2 null as well.
1816         Reorg for clarity.
1818 2003-05-11  Roger Sayle  <roger@eyesopen.com>
1820         * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
1821         to implement log, logf and logl built-ins as inline x87 intrinsics.
1822         (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
1823         (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
1824         patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
1826         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
1827         UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
1829 2003-05-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1831         * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
1833         * sparc.c (print_operand): Fix uninitialized warning.
1835 2003-05-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1837         * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
1838         real insns.
1839         * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
1840         condition.
1842 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
1844         * doc/cpp.texi: Fix typos.
1846 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1848         * config/s390/s390.c (s390_function_arg_float): New function.
1849         (s390_function_arg_pass_by_reference): Use it.
1850         (s390_function_arg_advance): Likewise.
1851         (s390_function_arg): Likewise.
1852         (s390_va_arg): Likewise
1854 2003-05-11  Nathan Sidwell  <nathan@codesourcery.com>
1856         * coverage.h (coverage_counter_alloc): New function.
1857         * function.h (struct function): Remove arc_profile flag.
1858         * coverage.c (fn_ident): Remove.
1859         (fn_b_ctrs, no_coverage): New.
1860         (get_coverage_counts): Use current_function_funcdef_no.
1861         (coverage_counter_alloc): New.
1862         (coverage_counter_ref): Adjust.
1863         (coverage_begin_output): Check no_coverage. Use
1864         current_function_funcdef_no.
1865         (coverage_end_function): Likewise.
1866         (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
1867         than clearing flag_inline_functions. Do not clear arc_profile
1868         flag.
1869         * function.c (prepare_function_start): Do not set arc_profile
1870         flag.
1871         * profile.c (instrument_edges): Return number of instrumented
1872         edges. Use a for loop.
1873         (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
1874         local to here and simplify. Use profile_arc_flag not arc_profile
1875         flag.
1876         (find_spanning_tree): Reformat.
1877         * toplev.c (rest_of_compilation): Use profile_arc_flags and
1878         flag_test_coverage rather than arc_profile flag.
1880 2003-05-11  Gabriel Dos Reis <gdr@integrable-solutions.net>
1882         * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
1884 2003-05-11  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1886         * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
1888 2003-05-11  Bruno Haible  <bruno@clisp.org>
1890         * cppfiles.c (find_or_create_entry): Preserve errno.
1892 2003-05-11  Neil Booth  <neil@cat.daikokuya.co.uk>
1894         * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
1895         cpplib as it's a Standard Predefined Macro.
1896         * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
1897         * cppinit.c (_cpp_init_builtins): Take HOSTED.  Define
1898         __STDC_HOSTED__ appropriately.
1899         * cpplib.h (_cpp_init_builtins): Update.
1900         * fix-header.c (read_scan_file): Update.
1901         * doc/cpp.texi, doc/cppopts.texi: Update documentation.
1903 2003-05-11  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1905         PR C++/689
1906         PR C++/9257
1907         * c-opts.c (c_common_decode_option): Don't set
1908         warn_ctor_dtor_privacy wen -Wall.
1909         * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
1911 2003-05-10  Alexandre Oliva  <aoliva@redhat.com>
1913         * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
1914         patch.
1916 2003-05-10  Zack Weinberg  <zack@codesourcery.com>
1918         * diagnostic.c: Reorder functions for clarity, putting all the
1919         functions in the "error" family next to each other, and
1920         likewise all the functions in the "error_with_decl" family.
1921         Some other routines were moved too.  Add comments.
1922         (vbuild_message_string): Fold into sole caller.
1925 2003-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
1927         * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
1928         (EH_RETURN_HANDLER_RTX): Likewise.
1929         (expand_builtin_eh_return): Do not copy stack adjustment
1930         if EH_RETURN_STACKADJ_RTX is not defined.
1931         (expand_eh_return): Likewise.  Also, do not pass stack
1932         adjustment as argument to the eh_return pattern.
1933         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
1934         because EH_RETURN_STACKADJ_RTX is not defined.
1935         * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
1936         is not defined, treat stack pointer like a regular register.
1937         (uw_init_context_1): Set up fake initial stack pointer register.
1938         (uw_install_context_1): Do not compute stack adjustment if
1939         EH_RETURN_STACKADJ_RTX is not defined.
1941         * config/i386/i386.md ("eh_return"): Remove first argument.
1942         * config/mips/mips.md ("eh_return"): Likewise.
1943         * config/rs6000/rs6000.md ("eh_return"): Likewise.
1944         * config/sh/sh.md ("eh_return"): Likewise.
1946         * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
1948 2003-05-10  Alexander Aganichev  <aaganichev@yandex.ru>
1950         * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
1952 2003-05-10  Nathan Sidwell  <nathan@codesourcery.com>
1954         * defaults.h (GCOV_TYPE_SIZE): Remove.
1955         * gcov-io.h (gcov_type): Set to specific mode int on target.
1956         (gcov_unsigned_t, gcov_position_t): New.
1957         (GCOV_TYPE_NODE): New.
1958         (GCOV_TAG_SUMMARY_LENGTH): Adjust.
1959         (GCOV_COUNTERS_SUMMABLE): New.
1960         (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
1961         gcov_ctr_info, gcov_info): Adjust types.
1962         (gcov_var): Adjust types.
1963         (gcov_write_unsigned, gcov_write_tag,
1964         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
1965         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
1966         (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
1967         * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
1968         gcov_write_length, gcov_write_tag_length, gcov_write_summary,
1969         gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
1970         * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
1971         __gcov_init, __gcov_merge_add): Adjust gcov types.
1972         * coverage.c (ctr_merge_functions): Constify.
1973         (ctr_names): New.
1974         (read_counts_file): Adjust gcov types. Only summarize & merge
1975         summable counters.
1976         (coverage_counter_ref): Use GCOV_TYPE_NODE.
1977         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
1978         build_ctr_info_value, build_gcov_info): Adjust types.
1979         * profile.c (branch_prob): Adjust gcov types.
1980         * gcov_dump (dump_file): Adjust gcov types.
1982 2003-05-10  Richard Earnshaw  <rearnsha@arm.com>
1984         * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
1985         constants.
1986         (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
1987         * arm.c (arm_select_dominance_cc_mode): Renamed from
1988         select_dominance_cc_mode, no-longer static.  Use DOM_CC... constants.
1989         Callers updated.
1990         * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
1992 2003-05-09  Roger Sayle  <roger@eyesopen.com>
1994         * config/alpha/alpha.c (alpha_start_function): Declare frame_size
1995         as unsigned to avoid signed/unsigned comparison warnings.
1997 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
1999         * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
2000         instruction if the Xtensa density option is enabled.
2002 2003-05-09  Matt Kraai <kraai@alumni.cmu.edu>
2004        * mklibgcc.in: Remove extra quotes.
2006 2003-05-09  Mark Mitchell  <mark@codesourcery.com>
2008         * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
2009         of int_ftype_void.
2011 2003-05-09  Alexandre Oliva  <aoliva@redhat.com>
2013         * reload1.c (reload_cse_move2add): Don't turn an implicit
2014         truncation into a self-set in the narrow mode.
2016 2003-05-09  Richard Earnshaw  <rearnsha@arm.com>
2018         * arm.md (clzsi2): The CLZ instruction is predicable.
2020 2003-05-09  Bob Wilson  <bob.wilson@acm.org>
2022         * config/xtensa/xtensa.c: Formatting.
2024 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
2026         * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
2027         instead of TREE_OPERAND to access the operand of a
2028         CONSTRUCTOR node.
2030 2003-05-09  Diego Novillo  <dnovillo@redhat.com>
2032         * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
2033         one operand.
2035 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
2037         * toplev.h (warning_with_file_and_line): Don't declare.
2038         (error_with_file_and_line): Likewise.
2039         * diagnostic.c (error_with_file_and_line): Remove.
2040         (warning_with_file_and_line): Likewise.
2042 2003-05-09  Gabriel Dos Reis <gdr@integrable-solutions.net>
2044         * c-parse.in (if_stmt_locus): New object.
2045         (if_prefix rule): Use it.  Don't use warning_with_file_and_line.
2046         (select_or_iter_stmt rule): Likewise.
2047         (if_stmt_file): Remove.
2048         (if_stmt_line): Likewise.
2049         * jump.c: include "diagnostic.h"
2050         (never_reached_warning): Don't use warning_with_file_and_line.
2051         * Makefile.in (jump.o): Add dependce on diagnostic.h
2053 2003-05-09  Alan Modra  <amodra@bigpond.net.au>
2055         * expr.c (move_block_from_reg): Remove "size" parm.  Localize vars.
2056         Move code handling pieces not larger than a word to..
2057         * function.c (assign_parms): ..here, but use change_address instead
2058         of adjust_address and operand_subword, and expand_binop instead of
2059         expand_shift.  Adjust calls to move_block_from_reg.
2060         * expr.h (move_block_from_reg): Update declaration.
2061         (copy_blkmode_from_reg): Formatting.
2062         * Makefile.in (function.o): Add $(OPTABS_H) to deps.
2063         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
2064         move_block_from_reg calls.
2065         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
2066         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
2067         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
2068         * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
2069         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
2070         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
2071         * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
2072         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
2073         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
2075 2003-05-08  DJ Delorie  <dj@redhat.com>
2077         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
2078         to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
2079         variable-sized types).
2080         (xstormy16_function_arg): New.  Pass them that way too.
2081         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
2082         * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
2084 2003-05-08  Aldy Hernandez  <aldyh@redhat.com>
2086         * mklibgcc.in: Use mkinstalldirs when installing multilib
2087         directories.
2089 2003-05-08  J"orn Rennecke <joern.rennecke@superh.com>
2091         * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
2092         instead of CODE_FOR_jump
2094 2003-05-08  Gabriel Dos Reis <gdr@integrable-solutions.net>
2096         * objc/objc-act.c (error_with_ivar): Don't use
2097         error_with_file_and_line.
2098         (warn_with_method): Don't use warning_with_file_and_line.
2100 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2102         * stmt.c (emit_locus): New macro.
2103         (emit_filename): Remove.
2104         (emit_lineno): Likewise.
2105         (struct stmt_status): Replace members x_emit_filename and
2106         x_emit_lineno with x_emit_locus.
2107         (set_file_and_line_for_stmt): Adjust.
2108         (expand_expr_stmt_value): Don't use warning_with_file_and_line.
2109         (warn_if_unused_value): Likewise.
2110         (check_seenlabel): Likewise.
2112 2003-05-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2114         * c-decl.c (define_label): Tidy.  Don't use any of
2115         error_with_file_and_line or warning_with_file_and_file.
2116         (pending_xref_error): Likewise.
2117         (store_parm_decls): Likewise.
2118         (current_function_prototype_locus): New object.  Package from
2119         current_function_prototype_file and current_function_prototype_line.
2120         (start_function): Use it.
2121         (current_function_prototype_file): Remove.
2122         (current_function_prototype_line): Remove;
2124 2003-05-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2126         * builtins.c (readonly_data_expr): New function.
2127         (expand_builtin_memmove): Optimize any rodata source, not just
2128         strings.
2130 2003-05-07  David Mosberger <davidm@hpl.hp.com>
2132         * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
2134 2003-05-07  Richard Henderson  <rth@redhat.com>
2136         * config/i386/i386.c (ix86_split_long_move): Fix base register
2137         mode for XFmode splits for TARGET_64BIT.
2139 2003-05-07  Richard Henderson  <rth@redhat.com>
2141         * sched-ebb.c (schedule_ebb): Supply the correct starting
2142         block number to save_line_notes.
2144 2003-05-07  Richard Henderson  <rth@redhat.com>
2146         * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
2147         (dump_file): Likewise.
2149 2003-05-07  David Mosberger <davidm@hpl.hp.com>
2151         * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
2152         forget to preserve gp.
2153         * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
2155         * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
2156         .prologue directive.
2157         Use .skip instead of data8 for .bss section to make Intel
2158         Assembler (ias) happy.  Minor whitespace fixups.  Make "nop 0"
2159         explicit in the .mib bundles and remove the unnecessary stop
2160         bits.  Replace local labels with normal labels, to make ias
2161         happy.  Don't register __do_global_ctors_aux here, do it in
2162         crtend.asm instead.
2164         * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
2165         __do_global_ctors_aux in .init_array section instead of
2166         declaring it as a hidden global.  Replace local labels with
2167         ordinary labels to make ias happy.
2169 2003-05-07  Richard Henderson  <rth@redhat.com>
2171         PR c++/10570
2172         * except.c: Revert 04-01 and 04-02 forced-unwind changes.
2173         * flags.h, toplev.c, doc/invoke.texi: Likewise.
2175         * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
2176         * unwind.inc (_Unwind_DeleteException): Check for null
2177         exception_cleanup.
2179         * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
2180         * unwind.inc (_Unwind_Resume_or_Rethrow): New.
2181         * unwind.h: Declare them.
2182         * libgcc-std.ver (GCC_3.3): Export them.
2184 2003-05-07  Richard Henderson  <rth@redhat.com>
2186         * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
2187         not _Unwind_Word.
2189 2003-05-07  Zack Weinberg  <zack@codesourcery.com>
2191         * stmt.c (force_label_rtx): New function, based on logic
2192         formerly found in expand_expr.
2193         * expr.h: Prototype it.
2194         * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
2195         appropriate.
2196         * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
2198         * print-tree.c (debug_tree): Free the table after we're done
2199         with it.  Use putc.
2201 2003-05-07  Aldy Hernandez  <aldyh@redhat.com>
2203         * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
2204         Unreverse arguments for __ev_subw.
2206         * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
2208 2003-05-07  Nick Clifton  <nickc@redhat.com>
2210         * config/stormy16/stormy-abi: Update to include
2211         R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
2212         R_XSTORMY16_12 relocs.
2214 2003-05-07  Alan Modra  <amodra@bigpond.net.au>
2216         * function.c (assign_parms): Correct reversed reg_parm_stack_space
2217         test.  Add partial in-regs size to stack_args_size.
2219 2003-05-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2221         * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
2222         as a C only option.
2224 2003-05-07  Nathan Sidwell  <nathan@codesourcery.com>
2226         * gcov-io.h (GCOV_LOCKED): New #define.
2227         (GCOV_LINKAGE): Make sure it is #defined.
2228         (gcov_write_string, gcov_write_tag, gcov_write_length,
2229         gcov_read_string, gcov_time): Poison in libgcov.
2230         (gcov_seek_end): Remove.
2231         (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
2232         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
2233         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
2234         GCOV_TAG_SUMMARY_LENGTH): New #defines.
2235         (gcov_write_tag, gcov_write_length): Not in libgcov.
2236         * gcov-io.c (gcov_open): Use GCOV_LOCKED.
2237         (gcov_write_tag, gcov_write_length): Not in libgcov.
2238         (gcov_write_tag_length): New.
2239         (gcov_write_summary): Use gcov_write_tag_length.
2240         * libgcov.c: Always #include gcov-io.h.
2241         (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
2242         (GCOV_LINKAGE): Define to nothing for L_gcov.
2243         (gcov_exit): Replace gcov_write_tag, gcov_write_length with
2244         gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
2245         * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
2246         (read_count_file): Likewise.
2247         * gcov-dump.c (dump_file): Likewise.
2248         * coverag.c (read_counts_file): Likewise.
2250 2003-05-06  Mark Mitchell  <mark@codesourcery.com>
2252         PR other/10658
2253         * gcc.c (process_command): Update copyright date.
2255 2003-05-06  Phil Edwards  <pme@gcc.gnu.org>
2257         * doc/install.texi (mips-*-*):  Add note about libstdc++.
2259 2003-05-06  DJ Delorie  <dj@redhat.com>
2261         * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
2262         * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
2263         * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
2265 2003-05-06    <neil@cat.daikokuya.co.uk>
2267         * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
2268         and -Wstrict-prototypes if C++.
2270 2003-05-06  Aldy Hernandez  <aldyh@redhat.com>
2272         * config/rs6000/linuxspe.h: New file.
2274         * config.gcc: Add powerpc-*-linux-gnuspe* target.
2276 2003-05-06  Richard Henderson  <rth@redhat.com>
2278         * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
2279         previous frame didn't save sp.  Clear sp for next frame.
2280         (uw_install_context_1): Honor saved sp from frame.
2282 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
2284         * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
2285         (mips_move_1word, mips_move_2words): Remove declaration.
2286         (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
2287         (mips_restore_gp): Remove insn argument.
2288         * config/mips/mips.h (FP_REG_RTX_P): New macro.
2289         * config/mips/mips.c (volatile_buffer): Remove.
2290         (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
2291         (mips_move_1word, mips_move_2words): Remove, replacing with...
2292         (mips_output_move): ...this new function.
2293         (mips_restore_gp): Remove insn argument.  Adjust for above changes.
2294         (print_operand): Make '%h' print %hi(op) for HIGH operands.  Remove
2295         handling of floating-point constants.  Handle zero CONST_DOUBLE
2296         arguments.
2297         (mips_annotate_frame_insn): Replace with...
2298         (mips_set_frame_expr): ...this, which just takes one argument.
2299         (mips_frame_set): Change the register argument to an rtx.
2300         (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
2301         check whether moves should be split.  Use mips_split_64bit_move
2302         to split them.  Use mips_subword to generate the high and low
2303         parts of a paired FPR.  Adjust calls to frame_set and
2304         mips_set_frame_expr.
2305         (mips_expand_prologue): Simplify due to above changes.
2306         * config/mips/mips.md:  Add splitters for 64-bit moves on 32-bit
2307         targets, replacing xisting register-only versions.
2308         (UNSPEC_STORE_DF_HIGH): New unspec.
2309         (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
2310         (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
2311         (*paradoxical_extendhidi2): Remove.
2312         (movdi_internal, movdi_internal2): Use mips_output_move.
2313         (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
2314         (movsf_internal1, movsf_internal2): Likewise.
2315         (movdf_internal1a): Likewise.  Fix length and type of f <- G case.
2316         (movdf_internal1b): Use mips_output_move.  Fix type of f <- G case.
2317         (movdf_internal2): Use mips_output_move.  Fix lengths of FPR moves.
2318         Add m <- G alternative.
2319         (load_df_low, load_df_high, store_df_low): New patterns.
2320         (movhi_internal): Use @ template instead of calling a function.
2321         Remove unnecessary 'z' alternatives.
2322         (movqi_internal): Likewise.
2323         (exception_receiver): Update call to mips_restore_gp.
2325 2003-05-06  Richard Sandiford  <rsandifo@redhat.com>
2327         * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
2328         (mips_delegitimize_address): Declare.
2329         * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
2330         (FIND_BASE_TERM): Define.
2331         * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
2332         (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
2333         Handle small-data addresses.
2335 2003-05-05  Roger Sayle  <roger@eyesopen.com>
2337         * real.c (real_powi): New function to calculate the value of
2338         a real raised to an integer power, i.e. pow(x,n) for int n.
2339         (real_sqrt): Convert to using the faster do_add, do_multiply
2340         and do_divide API for consistency with the rest of real.c.
2341         * real.h (real_powi): Prototype here.
2342         * builtins.c (fold_builtin):  Avoid local variable mode when
2343         evaluating sqrt at compile time.  Attempt to evaluate pow at
2344         compile-time, by checking for an integral exponent.
2346 2003-05-05  Richard Henderson  <rth@redhat.com>
2348         * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
2350 2003-05-05  David O'Brien  <obrien@FreeBSD.org>
2352         * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
2353         other FreeBSD ports.
2354         (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
2355         (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
2357 2003-05-05  Janis Johnson  <janis187@us.ibm.com>
2359         * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
2360         expanded variables.
2361         * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
2363 2003-05-05  Zack Weinberg  <zack@codesourcery.com>
2365         * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
2366         * varasm.c (struct varasm_status): Add deferred_constants field.
2367         (n_deferred_strings): Delete variable.
2368         (n_deferred_constants): New #define.
2369         (struct constant_descriptor_tree): Kill next and label fields.
2370         (const_hash_table, MAX_HASH_TABLE): Delete.
2371         (const_desc_htab): New static variable.
2372         (const_hash): Rename const_desc_hash, and make it fit the
2373         hashtab.h interface.
2374         (const_desc_eq): New.
2375         (const_hash_1, compare_constant): Const-ify arguments.
2376         (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
2377         SYMBOL_REFs.  Clarify comments.  Don't set desc->label.
2378         (output_constant_def): Do the lookup/insert using the
2379         hashtab.h interface.  Don't muck with n_deferred_constants or
2380         DEFERRED_CONSTANT_P here.
2381         Always call maybe_output_constant_def_contents.
2382         (maybe_output_constant_def_contents): Take a pointer to the
2383         descriptor, not the EXP and RTL separately.  Return
2384         immediately if this constant is not deferred.  Defer output of
2385         everything, except writable string constants.  Update
2386         n_deferred_constants here.
2387         (output_constant_def_contents): Now takes just one argument,
2388         an rtx.  Clear DEFERRED_CONSTANT_P here.
2389         (mark_constant_pool): Update for rename of n_deferred_strings.
2390         (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
2392         (init_varasm_status): Clear p->deferred_constants.
2393         (init_varasm_once): Call htab_create_ggc for const_desc_htab.
2395 2003-05-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2397         * builtins.c (expand_builtin_stpcpy): Only expand when the length
2398         of the source string can be evaluated at compile-time.
2400 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
2402         * testsuite/gcc.c-torture/compile/simd-6.c: New.
2404         * c-typeck.c (digest_init): Handle arrays of vector constants.
2406 2003-05-05  Jakub Jelinek  <jakub@redhat.com>
2408         * builtins.c (expand_builtin_mempcpy): New function.
2409         (expand_builtin_stpcpy): Optimize stpcpy whose return value is
2410         ignored into strcpy no matter what arguments it has.
2411         (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
2412         expand_builtin_mempcpy.
2414 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
2416         * testsuite/gcc.dg/20030505.c: New.
2418         * c-typeck.c (convert_for_assignment): Opaque pointers can
2419         interconvert.
2421         * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
2422         (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
2423         (spe_init_builtins): Rename all pv2si_type_node to
2424         opaque_p_V2SI_type_node.
2425         Remove declaration of pv2si_type_node.
2426         (is_ev64_opaque_type): Accept opaque pointers.
2428 2003-05-05  Geoffrey Keating  <geoffk@apple.com>
2430         * config/rs6000/rs6000.c (validate_condition_mode): Use
2431         flag_finite_math_only.
2432         (rs6000_reverse_condition): Never return UNKNOWN; use
2433         flag_finite_math_only.
2434         (rs6000_generate_compare): Use flag_finite_math_only.
2435         (rs6000_emit_cmove): Handle UNLE.  Support UNEQ under -ffast-math.
2436         Use HONOR_* rather than flag_unsafe_math_optimizations.  Correct
2437         UNGE and GT cases.  Handle UNEQ and LTGT when ! HONOR_NANS.
2439         * toplev.c (check_global_declarations): Suppress not-used warning
2440         for volatile variables.
2442 2003-05-05  Olivier Hainque  <hainque@act-europe.fr>
2444         * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
2445         usage of bitfield instructions for mode1 != BLKmode, only ignoring
2446         SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
2447         (store_field): Likewise.
2449 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
2451         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
2452         evsubifw to builtins accepting 5-bit unsigned constants.
2453         (easy_vector_constant): Return if V1DImode.  Fix typo.
2455 2003-05-05  Aldy Hernandez  <aldyh@redhat.com>
2457         * config/rs6000/spe.h: Revert licensing change from last patch.
2459 2003-05-05  DJ Delorie  <dj@redhat.com>
2461         * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
2462         before reload, but defer the split until after.
2463         * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
2464         to match.
2466 2003-05-05  David Edelsohn  <edelsohn@gnu.org>
2468         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
2469         * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
2471 2003-05-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2473         * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
2474         is defined.
2476 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2478         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
2479         ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
2480         ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
2482         (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
2483         ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
2484         ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
2485         New.
2487         * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
2488         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
2490         (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
2491         BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
2492         BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
2493         BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
2494         BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
2495         BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
2496         BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
2497         BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
2498         BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
2499         BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
2500         BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
2501         BUILT_IN_STRDUP): Add "nonnull" attribute.
2503 2003-05-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2505         * expr.c (store_field): Don't clobber TEMP in shift: it might be
2506         a variable.
2507         (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
2508         whose purpose is to step up the alignment.
2509         (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
2511         * stor-layout.c (compute_record_mode): Relax restriction
2512         on fields crossing word boundaries forcing BLKmode.
2514 2003-05-04  Neil Booth  <neil@daikokuya.co.uk>
2516         * cppinit.c (cpp_create_reader, post_options): Warn about
2517         trigraphs unless explicity set or -trigraphs.
2518         * cpplex.c (warn_in_comment): New.
2519         (_cpp_process_line_notes): Better handling of -Wtrigraphs.
2520         (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
2521         * doc/cppopts.texi, doc/cpp.texi: Update.
2523 2003-05-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2525         * Makefile.in (LIBGCOV): Add _gcov_merge_add.
2526         * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
2527         namespace clash.
2528         (GCOV_MERGE_FUNCTIONS): New.
2529         (gcov_merge_fn): Declare.
2530         (struct gcov_ctr_info): New field "merge".
2531         (__gcov_merge_add): Declare.
2532         * coverage.c (ctr_merge_functions): New.
2533         (build_ctr_info_type, build_ctr_info_value): Initialize merge field
2534         of gcov_ctr_info type.
2535         * libgcov.c (__gcov_merge_add): New.
2536         (gcov_exit): Call a hook to merge values of counters.
2538 2003-05-04  Gabriel Dos Reis <gdr@integrable-solutions.net>
2540         * toplev.h (pedwarn_with_file_and_line): Don't declare.
2541         * diagnostic.c (pedwarn_with_file_and_line): Remove.
2543 2003-05-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2545         * varasm.c (assemble_variable): Don't use error_with_file_and_line.
2547 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2549         * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
2550         expand_builtin_frame_address): Update prototypes.
2551         (expand_builtin_constant_p, expand_builtin_strlen,
2552         expand_builtin_strcpy, expand_builtin_memset,
2553         expand_builtin_bzero, expand_builtin_args_info,
2554         expand_builtin_frame_address): Pass in just the argument(s)
2555         needed, not the entire expression `exp'.
2556         (expand_builtin): Update all calls to these functions.
2558 2003-05-03  Richard Henderson  <rth@redhat.com>
2560         * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
2561         <BUILT_IN_DWARF_SP_COLUMN>: New.
2562         * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
2563         (BUILT_IN_DWARF_SP_COLUMN): New.
2564         * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
2565         (expand_builtin_dwarf_sp_column): New.
2566         * except.h: Update to match.
2567         * unwind-dw2.c (execute_stack_op): Correct stack push typo.
2568         (execute_cfa_program): Record location expression address
2569         before extracting length.
2570         (uw_update_context_1): Install old CFA into stack pointer column.
2571         (uw_init_context_1): Set cfa_reg to stack pointer column.
2573 2003-05-03  Richard Henderson  <rth@redhat.com>
2575         * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
2576         return bool.
2577         (toc_relative_expr_p): Likewise.
2578         (SPE_CONST_OFFSET_OK): Move from rs6000.h.
2579         (legitimate_constant_pool_address_p): Move from rs6000.h, change
2580         into a function, downcase all users.
2581         (legitimate_small_data_p): Likewise.
2582         (legitimate_offset_address_p): Likewise.
2583         (legitimate_indexed_address_p): Likewise.
2584         (legitimate_indirect_address_p): Likewise.
2585         (legitimate_lo_sum_address_p): Likewise.
2586         (rs6000_mode_dependent_address): Likewise.
2587         * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
2588         (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
2589         LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
2590         LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
2591         LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
2592         (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
2593         (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
2594         * config/rs6000/rs6000-protos.h: Update.
2596 2003-05-03  Geoffrey Keating  <geoffk@apple.com>
2598         * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
2599         (REVERSE_CONDITION): Define.
2601         * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
2602         to branch_positive_comparison_operator.
2603         (ccr_bit): Check that sCOND conditions are actually a positive bit.
2604         (print_operand): Remove %D substitution.
2605         (rs6000_emit_sCOND): Generate complement operation to ensure that
2606         sCOND input is a positive bit.
2607         * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
2608         same order as bCOND, and add the missing ones.  Remove the %D
2609         substitutions from the scc patterns.
2611         * simplify-rtx.c (simplify_relational_operation): Add case for
2612         ! (fabs(x) < 0.0).
2614 2003-05-03  Bruce Korb  <bkorb@gnu.org>
2616         * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
2617         in fixincl.x
2618         * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
2620 2003-05-03  Aldy Hernandez  <aldyh@redhat.com>
2622         * config/rs6000/spe.h: Remove unecessary casts.  Misc cleanups.
2624 2003-05-03  Zack Weinberg  <zack@codesourcery.com>
2626         PR c/10604
2627         * c-common.c (warn_sign_compare): Initialize to -1.
2628         * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
2629         (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
2630         for C++ only.
2631         (c_common_post_options): Set warn_sign_compare from extra_warnings
2632         if it's still -1 at this point.
2634         * toplev.c (maybe_warn_unused_parameter): New static variable.
2635         (set_Wextra): New static function.
2636         (W_options): Remove "extra".
2637         (decode_W_option): Call set_Wextra.
2638         (independent_decode_option): Likewise.
2639         (set_Wunused): Cooperate with set_Wextra in setting
2640         warn_unused_parameter.
2641         (rest_of_compilation): No need to check extra_warnings as
2642         well as warn_uninitialized.
2644         * c-typeck.c (build_binary_op, build_conditional_expr):
2645         No need to check extra_warnings as well as warn_sign_compare.
2646         (internal_build_compound_expr): No need to check extra_warnings
2647         as well as warn_unused_value.
2648         * function.c (expand_function_end): No need to check extra_warnings
2649         as well as warn_unused_parameter.
2650         * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
2651         as well as warn_unused_value.
2653         * doc/invoke.texi: Clarify documentation of -Wsign-compare.
2655         * Makefile.in: Disable -Werror for gengtype-lex.o.
2657 2003-05-03  Olivier Hainque  <hainque@act-europe.fr>
2659         * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
2660         * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
2661         * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
2662         * calls.c (emit_call_1): Likewise.
2663         (expand_call): For calls initializing constant memory, replace
2664         emission of standalone mem /u clobber with function usage entry.
2665         * expr.c (emit_block_move_via_libcall): Likewise.
2666         * cse.c (count_reg_usage, case EXPR_LIST): New case.
2667         * flow.c (propagate_one_insn): Pass entire operand of
2668         CALL_INSN_FUNCTION_USAGE to mark_used_regs.
2669         * integrate.c (try_constants): For CALL_INSNs, substitute constants
2670         within the FUNCTION_USAGE also.
2671         * loop.c (prescan_loop): Note clobbers of const mem mentioned in
2672         FUNCTION_USAGE lists.
2673         * reload1.c (replace_pseudos_in): Renamed.
2674         (reload): Use it for clobbers surviving until the end of the reload.
2676 2003-05-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2678         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
2679         gen_lowpart on non-integer modes.
2681         * stor-layout.c (place_field): When adjusting offset_align, use
2682         desired_align, not DECL_ALIGN.
2684 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
2686         * c-decl.c (pending_invalid_xref_file): Remove.
2687         (pending_invalid_xref_line): Remove.
2688         (pending_invalid_xref_location): New.
2689         (lookup_label): Use location_t and input_location directly.
2690         (lookup_tag): Likewise.
2691         (pending_xref_error): Likewise.
2692         (c_expand_body_1): Likewise.
2693         * c-common.c (x_expand_start_cond): Likewise.
2694         * c-semantics.c (genrtl_for_stmt): Likewise.
2695         (find_reachable_label): Likewise.
2696         * expr.c (expand_expr): Likewise.
2697         * integrate.c (output_inline_function): Likewise.
2698         * tree-inline.c (find_alloca_call): Likewise.
2699         (find_builtin_longjmp_call): Likewise.
2700         * gcc.c (input_filename): Make static.
2702 2003-05-03  Richard Sandiford  <rsandifo@redhat.com>
2704         * config/mips/mips.md: Fix comment typo.
2706         * config/mips/mips.c (mips_integer_op): New structure.
2707         (MIPS_MAX_INTEGER_OPS): Define.
2708         (mips_const_insns): Use mips_build_integer to determine the number
2709         of instructions needed to load a CONST_INT.
2710         (move_operand): Reject compound CONST_INTs.
2711         (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
2712         (mips_move_integer): New fn.
2713         (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
2714         (mips_legitimize_move): Only legitimize constants when moving
2715         word or subword values.
2717 2003-05-02  Matt Kraai  <kraai@alumni.cmu.edu>
2719         * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
2721 2003-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2723         * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
2724         modifying it.
2726 2003-05-03  Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
2727             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2729         * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
2730         Hernandez, and Kazu Hirata.  Update Richard Henderson.
2732 2003-05-02  Geoffrey Keating  <geoffk@apple.com>
2734         * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
2735         to tentative declaration.
2737         * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
2738         (SYMBOL_FLAG_SMALL_V4): Delete.
2739         * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
2740         (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
2741         (rs6000_elf_in_small_data_p): Add extra section names.  Add
2742         comment about TREE_PUBLIC test.
2744         * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
2745         expand_stmt on result of expand_unreachable_stmt.
2747 2003-05-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2749         * doc/contrib.texi (Contributors): Add Daniel Berlin.
2751 2003-05-02  David Edelsohn  <edelsohn@gnu.org>
2753         * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
2754         number of automata.
2756         * config/rs6000/rs6000.c (symbol_ref_operand): Check
2757         SYMBOL_REF_FUNCTION_P on AIX.
2758         (current_file_function_operand): Same.
2759         * config/rs6000/rs6000.md (call,call_value): Force non-function
2760         symbol_ref into register on AIX.
2762 2003-05-02  Alan Modra  <amodra@bigpond.net.au>
2764         * calls.c (struct arg_data): Move offset, slot_offset, size and
2765         alignment_pad to struct locate_and_pad_arg_data.  Update all refs.
2766         (initialize_argument_information): Adjust call to locate_and_pad_parm.
2767         Delete alignment_pad var.  Don't calculate slot_offset here.
2768         (emit_library_call_value_1): Delete alignment_pad, offset and size
2769         vars.  Use struct locate_and_pad_arg_data instead.  Adjust refs.
2770         Adjust call to locate_and_pad_parm.  Don't tweak arg size for
2771         partial in-regs here.  Formatting fixes.
2772         * expr.h (struct locate_and_pad_arg_data): New struct.
2773         (locate_and_pad_parm): Adjust declaration.
2774         * function.c (assign_parms): Localize vars.  Use "locate" instead of
2775         other arg location vars.  Don't invoke FUNCTION_ARG or
2776         FUNCTION_INCOMING_ARG unless pretend_named is different from
2777         named_arg.  Heed MUST_PASS_IN_STACK and set up "partial" before
2778         calling locate_and_pad_parm.  Adjust locate_and_pad_parm call.
2779         Use slot_offset for stack home of reg parms.  Correct test for
2780         parm passed in memory.  Formatting fixes.
2781         (locate_and_pad_parm): Add "partial" to params.  Replace offset_ptr
2782         arg_size_ptr and alignment pad with "locate".  Set slot_offset here.
2783         Correct initial_offset_ptr handling.  Localize vars.  Always pad
2784         locate->offset even when in_regs.
2786 2003-05-02  Nathan Sidwell  <nathan@codesourcery.com>
2788         * Makefile.in (TREE_H): Replace location.h with input.h.
2789         (GTFILES) Remove location.h
2790         (gt-lists.h): Replace gt-location.h with gt-input.h
2791         * input.h (input_filename, input_line): Remove variables.
2792         (location_s, location_t): Move from location.h.
2793         (input_location): New.
2794         (input_filename, input_line): New #defines.
2795         * location.h: Remove.
2796         * tree.h: Replace location.h with input.h.
2797         (input_filename, input_line): Remove.
2798         * diagnostic.h: Replace location.h with input.h.
2799         * gcc.h (input_filename, input_filename_length): Remove declarations.
2800         * toplev.c (input_filename, input_line): Remove.
2801         (input_location): Define.
2802         (push_srcloc, pop_srcloc): Adjust.
2803         * diagnostic.c (diagnostic_report_current_module): Adjust.
2805 2003-05-02  Nick Clifton  <nickc@redhat.com>
2807         * configure.in: Add xstormy16 to list of targets that has a nop
2808         instruction and hence which can be tested to see if the
2809         assembler supports the --gdwarf2 switch.
2810         * configure: Regenerate.
2812 2003-05-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
2814         PR target/8257
2815         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
2816         alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
2817         Avoid undefined shifts by making the shift operand unsigned.
2819 2003-05-01  DJ Delorie  <dj@redhat.com>
2821         * reload.c (find_reloads): Also check that all of a multi-reg
2822         value is in the class.
2824 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
2826         * scan.h (lineno): Revert the rename here.
2828 2003-05-01  Stan Shebs  <shebs@apple.com>
2830         * config/darwin.c (darwin_encode_section_info): Call
2831         default_encode_section_info.
2833 2003-05-01  David Edelsohn  <edelsohn@gnu.org>
2835         * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
2836         (movsi_internal1): Use new mfjmpr attribute.
2837         (movhi_internal): Same.
2838         (movqi_internal): Same.
2839         (movcc_internal1): Same.
2840         (movdi_internal64): Same.
2841         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
2842         power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
2843         * config/rs6000/40x.md: Add fpu_405.
2844         * config/rs6000/power4.md: Merge power4lsu and power4disp automata
2845         into power4misc automata.  Remove extraneous parentheses.
2846         * config/rs6000/440.md: New file.
2847         * config/rs6000/rs6000.c (processor_target_table): Add 440,
2848         440fp.  Rename 405f to 405fp.
2849         (function_arg_padding): Correct formatting.
2850         (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
2852 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
2854         * input.h (lineno): Rename to ...
2855         (input_line): ... here.
2856         * tree.h (lineno): Rename to ...
2857         (input_line): ... here.
2858         * scan.h (lineno): Rename to ...
2859         (input_line): ... here.
2860         * toplev.c (lineno): Rename to ...
2861         (input_line): ... here.
2862         (push_srcloc, pop_srcloc):  Rename lineno to input_line.
2863         * c-common.c (c_expand_start_cond, fname_decl): Likewise.
2864         * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
2865         store_parm_decls, c_expand_body_1): Likewise.
2866         * c-errors.c (pedwarn_c99): Likewise.
2867         * c-format.c (status_warning): Likewise.
2868         * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
2869         * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
2870         * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
2871         * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
2872         gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
2873         genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
2874         genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
2875         build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
2876         prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
2877         * coverage.c (create_coverage): Likewise.
2878         * diagnostic.c (pedwarn, sorry, error, fatal_error,
2879         internal_error, warning, diagnostic_report_current_module,
2880         inform): Likewise.
2881         * expr.c (expand_expr): Likewise.
2882         * integrate.c (expand_inline_function,
2883         output_inline_function): Likewise.
2884         * rtl-error.c (file_and_line_for_asm): Likewise.
2885         * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
2886         walk_tree): Likewise.
2887         * tree.c (make_node): Likewise.
2888         * ada, cp, f, java, objc, treelang: Likewise.
2889         * objc/objc-act.c (objc_init): Rename lineno to input_line.
2890         (build_module_descriptor, build_selector_translation_table,
2891         build_protocol_template, build_method_prototype_list_template,
2892         build_category_template, build_selector_table,
2893         build_class_template, build_super_template, build_ivar_template,
2894         build_ivar_list_template, build_method_list_template,
2895         build_method_template, add_instance_variable): Likewise.
2897         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
2898         name from input_filename.
2900 2003-04-30  Eric Christopher  <echristo@redhat.com>
2901             Richard Sandiford <rsandifo@redhat.com>
2903         * configure: Regenerate from patches below.
2904         * combine.c (gen_lowpart_for_combine): Fix comment and add tests
2905         for all symbolic operands.
2906         * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
2907         to function.
2908         * config/mips/linux.h: Fix typo.
2909         * Merge from mips-3_4-rewrite branch:
2911         2003-04-07  Richard Sandiford  <rsandifo@redhat.com>
2913                 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
2914                 handling local labels when TARGET_ABICALLS.
2916         2003-04-04  Richard Sandiford  <rsandifo@redhat.com>
2918                 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
2919                 integer argument.
2920                 (mips_expand_call): Likewise.
2921                 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
2922                 (FIXED_REGISTERS): Clear $31 entry.
2923                 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
2924                 (EPILOGUE_USES): Define.
2925                 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
2926                 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
2927                 (override_options): Add a 'j' register class.
2928                 (mips_expand_call): Handle sibcalls
2929                 (mips_expand_epilogue): Handle epilogues for sibcalls.
2930                 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
2931                 (sibcall_epilogue): New pattern.
2932                 (call, call_value): Adjust calls to mips_expand_call.
2933                 (sibcall, sibcall_value): New expanders.
2934                 (sibcall_internal, sibcall_value_internal): New patterns.
2935                 (sibcall_value_multiple_internal): New pattern.
2937         2003-03-25  Richard Sandiford  <rsandifo@redhat.com>
2939                 * config/mips/mips.md (extended_mips16): New attribute.
2940                 (define_attr length): Default to 8 if extended_mips16 == yes.
2941                 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
2942                 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
2943                 (call_internal): Set extended_mips16 to yes for direct jumps.
2944                 Remove redundant mode attribute.
2945                 (call_value_internal, call_value_multiple_internal): Likewise.
2946                 (call_split): Remove redundant mode attribute.
2947                 (call_value_split, call_value_multiple_split): Likewise.
2949                 * config/mips/mips.c (mips_symbol_insns): Rework.  Fix handling
2950                 of unaligned offsets.
2952                 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
2953                 of SYMBOL_GENERAL.
2955         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
2957                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
2958                 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
2959                 for mips16 code.
2961         2003-03-22  Richard Sandiford  <rsandifo@redhat.com>
2963                 * config/mips/mips.h (ADDRESS_COST): Define.
2965         2003-03-20  Richard Sandiford  <rsandifo@redhat.com>
2967                 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
2968                 'R' to 'U'.  Make 'R' mean a single-instruction memory reference.
2969                 * config/mips/mips.md: Replace 'R' constraints with 'U'.
2971         2003-03-18  Richard Sandiford  <rsandifo@redhat.com>
2973                 * config/mips/mips.md (truncdisi2): Add commentary.  Use sll instead
2974                 of a two-instruction sequence.  Add register->memory alternative.
2975                 (truncdihi2, truncdiqi2): Likewise.
2976                 Rework shift/truncate instructions so that they only handle right
2977                 shifts of 32 (or more, in the case of arithmetic shifts).
2978                 Add patterns for truncate/sign-extend.
2980         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
2982                 * configure.in (mips*-*-*): Check for explicit relocation support.
2983                 * configure: Regenerate.
2985         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
2987                 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
2988                 and -mno-explicit-relocs.
2989                 (MASK_EXPLICIT_RELOCS): Define.
2990                 (TARGET_EXPLICIT_RELOCS): Use it.
2991                 (mips_split_addresses): Remove declaration.
2992                 * config/mips/mips.c (override_options): Update comment for
2993                 mips_split_addresses.  Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
2995         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
2997                 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
2998                 a CONST as identity.  Check the return value of gen_lowpart_common.
3000         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
3002                 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
3003                 references for TARGET_EXPLICIT_RELOCS.
3004                 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
3005                 !TARGET_MIPS16.
3007         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
3009                 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
3010                 (addsi3): Remove redundant constraints.
3011                 (addsi3_internal): Use separate register & constant alternatives.
3012                 Use a 'Q' constraint and "addiu" insn for the latter.
3013                 (adddi3_internal_3, addsi3_internal_2): Likewise.
3015         2003-03-13  Richard Sandiford  <rsandifo@redhat.com>
3017                 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
3018                 (mips_expand_unaligned_store): Declare.
3019                 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
3020                 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
3021                 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
3022                 (UNSPEC_ULD, UNSPEC_USD): Remove.
3023                 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
3024                 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
3025                 (extv, extzv): Use mips_expand_unaligned_load.
3026                 (insv): Use mips_expand_unaligned_store.  Use a reg_or_0_operand
3027                 predicate for operand 3.
3028                 (movsi_ulw, movsi_usw): Replace with...
3029                 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
3030                 (movdi_uld, movdi_usd): Likewise replace with...
3031                 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
3033         2003-02-26  Richard Sandiford  <rsandifo@redhat.com>
3035                 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
3036                 * config/mips/mips.h (LEA_REGS): New register class.
3037                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
3038                 (GR_REG_CLASS_P): Include LEA_REGS.
3039                 (DANGEROUS_FOR_LA25_P): New macro.
3040                 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
3041                 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
3042                 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
3043                 entries to LEA_REGS.
3044                 (mips_global_pic_constant_p): New function.
3045                 (override_options): Add 'e' register constraint.
3046                 (mips_secondary_reload_class): Return LEA_REGS when reloading
3047                 a dangerous constant into a class containing $25.
3048                 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
3049                 (movsi_internal): Likewise.
3051         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
3053                 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
3054                 * config/mips/mips.md (call_split): New insn.
3055                 (call_value_split, call_value_multiple_split): New insns.
3056                 (call_internal): Turn into a define_insn_and_split.  Split the
3057                 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
3058                 (call_value_internal, call_value_multiple_internal): Likewise.
3060         2003-02-23  Richard Sandiford  <rsandifo@redhat.com>
3062                 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
3063                 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
3064                 (mips_encode_section_info): Don't take symbol visibility into
3065                 account if TARGET_ABICALLS.  Add more commentary.
3066                 * config/mips/mips.md: Add commentary above reloc constants.
3068         2003-02-12  Richard Sandiford  <rsandifo@redhat.com>
3070                 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
3071                 from mips_legitimize_move.  Legitimize constant pool references.
3072                 (mips_legitimize_move): Call mips_legitimize_const_move.  Attach
3073                 a REG_EQUAL note to the last instruction.
3075         2003-02-11  Richard Sandiford  <rsandifo@redhat.com>
3077                 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
3078                 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
3079                 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
3080                 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
3081                 * config/mips/mips.md (UNSPEC_HIGH): New constant.
3082                 (UNSPEC_RELOC_GPREL16): Rename to...
3083                 (RELOC_GPREL16): ...this.
3084                 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
3085                 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
3086                 (macro_calls): New attribute.
3087                 (length): Use it to set the default length of calls.  Don't allow
3088                 calls to have delay slots if macro_calls is "yes".
3089                 (luisi, luidi): New patterns.
3090                 (lowsi, lowdi): Use '%R' to print the relocation.
3091                 (lowdi_extend): Remove.
3092                 (loadgp): Remove mode from operand 0.  Use '%0' instead of '%a0'.
3093                 (call_internal): Merge alternatives.  Always use "jal".
3094                 (call_value_internal, call_value_multiple_internal): Likewise.
3095                 (reloc_gprel16): Remove.
3096                 * config/mips/mips.c (mips_got_alias_set): New variable.
3097                 (mips_classify_constant): Handle the new relocation constants.
3098                 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
3099                 (mips_symbolic_address_p): Return false if generating explicit relocs.
3100                 Otherwise allow local PIC symbols to have an offset.
3101                 (mips_splittable_symbol_p): New function.
3102                 (mips_classify_address): Use it to check whether a LO_SUM is valid.
3103                 (mips_const_insns): Always accept HIGH.
3104                 (call_insn_operand): Don't accept global symbols if using explicit
3105                 relocs.
3106                 (move_operand): Don't accept HIGH when generating PIC.
3107                 (mips_reloc, mips_lui_reloc): New functions.
3108                 (mips_force_temporary): Remove MODE argument.  Expect VALUE to
3109                 be a valid right-hand-side for a SET pattern.
3110                 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
3111                 (mips_emit_high): New function.
3112                 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
3113                 case.  Use mips_splittable_symbol_p to check whether a LO_SUM
3114                 address should be used.  Use mips_emit_high to generate the
3115                 high part of such an address.  Adjust the global symbol + offset
3116                 case to match the change to mips_force_temprorary.
3117                 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
3118                 If generating explicit-reloc PIC, load the address of global
3119                 symbols from the GOT.  Use mips_emit_high to emit the high part
3120                 of an address.
3121                 (mips_simplify_dwarf_addr): New function.
3122                 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
3123                 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
3124                 (mips_expand_call): Load the addresses of global functions using
3125                 %call* relocs if generating explicit-reloc PIC.  Don't generate
3126                 an exception_receiver pattern.
3127                 (override_options): Initialize mips_got_alias_set.
3128                 (print_relocation): Remove in favour of...
3129                 (mips_reloc_string): ...this new function.
3130                 (print_operand): Handle '%R'.  Use mips_reloc_string.
3131                 (print_operand_address): Use print_operand to print the symbolic
3132                 part of a LO_SUM address.
3133                 (mips_output_function_prologue): Use .cprestore, reverting last patch.
3134                 (mips_encode_section_info): Factor out DECL_RTL accesses.  Reverse
3135                 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
3136                 for local symbols.
3138         2003-02-02  Eric Christopher  <echristo@redhat.com>
3140                 * config/mips/mips.c (mips_sign_extend): Remove.
3141                 * config/mips/mips-protos.h: Ditto.
3142                 * config/mips/mips.md (movdi_internal2_extend): Remove.
3143                 (extendsidi2): Fix mode of convert_memory_address.
3145         2003-01-24  Eric Christopher  <echristo@redhat.com>
3147                 * config/mips/mips.md: Rewrite zero_extend* and extend*
3148                 patterns. Use explicit instructions and split after reload
3149                 for register extensions.
3150                 (ashlsi3_internal1_extend): New combiner pattern for
3151                 shift and extend combinations.
3152                 * config/mips/mips.h: Change Pmode back to ptr_mode
3153                 for performance enhancement.
3154                 * combine.c (expand_compound_operation): Make sure
3155                 that zero_extend operation is profitable.
3157         2003-01-14  Richard Sandiford  <rsandifo@redhat.com>
3159                 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
3160                 addresses depend on ptr_mode rather than Pmode.
3161                 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
3162                 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
3163                 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
3164                 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
3165                 * config/mips/mips.md (tablejump): Likewise.  Remove Pmode
3166                 condition for selecting cpaddsi or cpadddi: use cpadd instead.
3167                 (tablejump_internal1): Remove condition.
3168                 (tablejump_internal2): Change condition to TARGET_64BIT.
3169                 (cpaddsi): Rename to...
3170                 (cpadd): ...this.
3171                 (cpadddi): Remove.
3173         2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
3175                 * config/mips/mips-protos.h (mips16_constant_after_function_p,
3176                 mips_address_cost, mips_check_split, double_memory_operand,
3177                 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
3178                 pic_address_needs_scratch, symbolic_operand): Remove declarations.
3179                 (mips_legitimate_address_p): Return bool.
3180                 (mips_address_insns, mips_fetch_insns, mips_const_insns,
3181                 mips_legitimize_address, mips_legitimize_move,
3182                 mips_expand_call): Declare.
3183                 (mips_return_addr): Move outside #ifdef RTX_CODE.
3185                 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
3186                 (PIC_FN_ADDR_REG): New reg_class.
3187                 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
3188                 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
3189                 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
3190                 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
3191                 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
3192                 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
3193                 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
3194                 (LEGITIMATE_PIC_OPERAND): Undefine.
3195                 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
3196                 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
3197                 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
3198                 (FUNCTION_MODE): Change to SImode.
3199                 (CONST_COSTS): Use mips_const_insns to calculate the cost of
3200                 most constants.  Treat const_artih_operands specially if they
3201                 occur in a PLUS or MINUS.
3202                 (CONSTANT_POOL_COST): New macro.
3203                 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
3204                 Add LO_SUM handling.
3205                 (ADDRESS_COST): Undefine.
3206                 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
3207                 Add CONST to the list of codes for arith_operand.  Add LABEL_REF
3208                 to call_insn_operand and remove CONST_INT.
3210                 * config/mips/mips.c: Include integrate.h.
3211                 (SINGLE_WORD_MODE_P): New macro.
3212                 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
3213                 (mips_constant_info, mips_address_info): New structs.
3214                 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
3215                 (mips_classify_constant, mips_classify_symbol,
3216                 mips_valid_base_register_p, mips_symbolic_address_p,
3217                 mips_classify_address, mips_symbol_insns,
3218                 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
3219                 mips_fetch_insns, mips_force_temporary, mips_add_offset,
3220                 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
3221                 mips_print_relocation): New functions.
3222                 (const_arith_operand): New operand predicate.
3223                 (arith_operand): Use it.
3224                 (mips_const_double_ok, mips16_simple_memory_operand,
3225                 simple_memory_operand, double_memory_operand, mips_check_split,
3226                 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
3227                 mips16_gp_offset_p, mips16_output_gp_offset,
3228                 mips16_constant_after_function_p, mips16_constant): Remove.
3229                 (call_insn_operand): Be more fussy about symbolic constants.
3230                 Use register_operand.
3231                 (move_operand): Use mips_symbolic_address_p to check symbolic
3232                 operands and general_operand to check the rest.
3233                 (symbolic_operand): Use mips_classify_constant.
3234                 (mips_legitimate_address_p): Use mips_classify_address.
3235                 (mips_move_1word): Combine handling of symbolic addresses.
3236                 Remove special treatment of gp-relative loads for TARGET_MIPS16.
3237                 (move_move_2words): Likewise.  Assume addresses are offsettable
3238                 if they need to refer to more than one word.  Add HIGH handling.
3239                 (mips_restore_gp): Use ptr_mode for the GP save slot.
3240                 (mips_expand_call): New function, combining the old mips.md
3241                 call and call_internal define_expands.  If the address isn't
3242                 a call_insn_operand, force it into a register.  For SVR4 PIC,
3243                 emit an exception_receiver instruction after the call.
3244                 (override_options): Only override flag_pic for TARGET_ABICALLS
3245                 if it is currently zero.  Allow mips_split_addresses when
3246                 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
3247                 Add new register class letter, 'c'.
3248                 (print_operand): Use mips_classify_constant for constant operands.
3249                 (print_operand_address): Use mips_classify_address.
3250                 (mips_output_function_prologue): Don't use .cprestore.
3251                 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
3252                 via the frame pointer if current_function_calls_eh_return.
3253                 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
3254                 to mark whether a symbol is local or global.
3255                 (build_mips16_call_stub): Expect the address of the function rather
3256                 than a MEM reference to it.  Update call generation sequences.
3257                 (mips16_optimize_gp): Remove Pmode checks.  Temporarily disable
3258                 small-data adjustments.
3260                 * config/mips/mips.md: Remove 'R'/'m' memory distinction.  Use default
3261                 length for loads and stores.
3262                 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
3263                 (define_attr type): Add const and prefetch.
3264                 (define_attr length): Use mips_const_insns for const instructions.
3265                 Use mips_fetch_insns for load and store instructions.
3266                 (define_attr single_insn): New.
3267                 (define_attr can_delay): Use it.
3268                 (define_attr abicalls): Remove.
3269                 (define_delay): Use can_delay.  Always allow calls to have delay slots.
3270                 (addsi3_internal_2): Add 'Q' constraint.
3271                 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
3272                 (high): Remove.
3273                 (lowsi): Renamed from low.
3274                 (lowdi): New pattern.
3275                 (movdi, movsi): Use mips_legitimize_move.  Remove define_split.
3276                 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
3277                 (loadgp): Change operand 0 to an immediate_operand.
3278                 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
3279                 beforehand.
3280                 (cpaddsi, cpadddi): New patterns.
3281                 (tablejump_internal3, tablejump_internal4): Remove define_expands
3282                 and associated define_splits.
3283                 (call, call_value): Use mips_expand_call.
3284                 (call_internal): New, replacing all existing call_internal* insns.
3285                 (call_value_internal): Likewise call_value_internal*.
3286                 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
3287                 (untyped_call): Remove if (operands[0]) magic.
3288                 (prefetch_si_address, prefetch_si): Change type to "prefetch".
3289                 (prefetch_di_address, prefetch_di): Likewise.
3290                 (leasi, leadi): Remove.
3291                 (reloc_gprel16): New.
3293                 * config/mips/5400.md (ir_vr54_hilo): Include const type.
3294                 * config/mips/5500.md (ir_vr55_hilo): Likewise.
3295                 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
3297         2003-01-08  Eric Christopher  <echristo@redhat.com>
3299                 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
3300                 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
3301                 configure check for libgloss.
3302                 * config/mips/elf64.h: Ditto.
3303                 * config/mips/mips.c: Remove ABI_MEABI.
3304                 * config/mips/mips.h: Ditto.
3306         2002-11-05  Richard Sandiford  <rsandifo@redhat.com>
3308                 Fix merge fallout.
3309                 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
3310                 (muldi3_internal): Remove outdated comment.
3311                 (*muls_di, *umuls_di): Fix comment and 64-bitness.
3312                 (*smsac_di, *umsac_di): Likewise.  Reformat.
3313                 (umulsi3_highpart): Minor formatting tweaks.
3314                 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.  Remove
3315                 redundant scratch operand.  Minor formatting tweak.
3316                 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
3317                 (umulsi3_highpart_neg_mulhi_internal): Likewise.  Fix asm template.
3318                 (smulsi3_highpart): As for the unsigned version.
3319                 (smulsi3_highpart_internal): Likewise.
3320                 (smulsi3_highpart_mulhi_internal): Likewise.
3321                 (smulsi3_highpart_neg_mulhi_internal): Likewise.
3322                 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
3323                 (*smul_acc_di): Remove duplicated pattern.
3324                 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
3325                 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
3326                 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
3328         2002-10-22  Eric Christopher  <echristo@redhat.com>
3330                 * config/mips/mips-protos.h (mips_return_addr): New.
3331                 * config/mips/mips.c (mips_return_addr): New.
3332                 (movdi_operand): Remove.
3333                 (se_register_operand): Ditto.
3334                 (se_reg_or_0_operand): Ditto.
3335                 (se_uns_arith_operand): Ditto.
3336                 (se_arith_operand): Ditto.
3337                 (se_nonmemory_operand): Ditto.
3338                 (extend_operator): Ditto.
3339                 (highpart_shift_operator): Ditto.
3340                 (mips_initial_elimination_offset): Remove return address pointer
3341                 elimination.
3342                 (mips_reg_names): Remove $ra.
3343                 (mips_regno_to_class): Ditto.
3344                 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
3345                 and TARGET_64BIT.
3346                 (POINTER_BOUNDARY): Remove.
3347                 (POINTERS_EXTEND_UNSIGNED): Define to 0.
3348                 (PROMOTE_MODE): Promote to Pmode.
3349                 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
3350                 (Pmode): Define to TARGET_64BIT.
3351                 (FUNCTION_MODE): Define as Pmode.
3352                 (mips_args): Remove deleted functions.
3353                 (SIZE_TYPE): Depend on POINTER_SIZE.
3354                 (PTRDIFF_TYPE): Ditto.
3355                 (FIXED_REGISTERS): Fix extra registers.
3356                 (CALL_USED_REGISTERS): Ditto.
3357                 (CALL_REALLY_USED_REGISTERS): Ditto.
3358                 (RAP_REG_NUM): Remove.
3359                 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
3360                 (RETURN_ADDR_RTX): Define to mips_return_addr.
3361                 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
3362                 (CAN_ELIMINATE): Ditto.
3363                 * config/mips/mips.md: For DImode patterns, take into account
3364                 deletions above. Split mulsidi patterns into sign_extend and
3365                 zero_extend.
3367         2002-10-16  Richard Sandiford  <rsandifo@redhat.com>
3368                     Michael Meissner  <meissner@redhat.com>
3370                 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
3371                 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
3372                 mop up unnecessarly moves through LO.
3373                 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
3374                 (*macc): New pattern for ISA_HAS_MACC.  Add define_peephole2s to
3375                 change mtlo/macc sequences into mul/add sequences when a three-
3376                 address mul is available.
3377                 (*macc2): New pattern.  Add a define_peephole2 to generate it.
3378                 (*mul_sub_si): Fix contraint for operand 5.
3379                 (*muls): Use in 32-bit code as well.
3380                 (*msac): Likewise.  Use msub instead of msac in vr5500 code
3381                 if the destination is LO.  Remove duplicate define_split.
3382                 (*muls_di): Use only in 32-bit code.  Adjust rtl accordingly.
3383                 (*msac_di): Likewise.  Fix formatting.
3384                 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
3385                 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
3386                 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
3387                 (*xmulsi3_neg_highpart_mulhi): Likewise.
3388                 (*mul_acc_64bit_di): Remove.
3389                 (*mul_acc_di): Use only in 32-bit code.  Handle ISA_HAS_MACC as well.
3391         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
3393                 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
3394                 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
3395                 (MULTILIB_DIRNAMES): Remove long32.
3396                 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
3397                 (MULTILIB_REDUNDANT_DIRS): Remove.
3399         2002-10-14  Richard Sandiford  <rsandifo@redhat.com>
3401                 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
3402                 * gcc.c (driver_self_specs): New variable.
3403                 (do_self_spec): New function.
3404                 (main): Use it to process driver_self_specs.
3406         2002-10-09  Richard Sandiford  <rsandifo@redhat.com>
3408                 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
3409                 Remove DImode define_split for !TARGET_64BIT.
3410                 (anddi3): Remove !TARGET_64BIT support from here as well.
3411                 Change operand 2's predicate to se_uns_arith_operand.
3412                 Add constant alternatives to define_insn.
3413                 (iordi3, xordi3, *nordi3): Likewise.
3414                 (anddi3_internal1, xordi3_immed): Remove.
3416         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3418                 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
3419                 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
3420                 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
3421                 * config/mips/mips.md: Apply same renaming here.
3423         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3425                 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
3426                 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
3427                 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
3428                 * config/mips/mips.md (define_attr cpu): Remove r4320.
3429                 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
3431         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3433                 * config/mips/mips.c (mips16_strings): New variable.
3434                 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
3435                 symbol in mips16_strings.  Free the list.
3436                 (mips_encode_section_info): Keep track of local strings.
3438         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3440                 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
3441                 (sordered_df, sordered_sf): Remove.
3442                 * config/mips/mips.c (get_float_compare_codes): New fn.
3443                 (gen_int_relational, gen_conditional_move): Use it.
3445         2002-10-01  Richard Sandiford  <rsandifo@redhat.com>
3447                 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
3448                 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
3449                 * config/mips/mips.c (fcc_register_operand): New function.
3450                 (mips_emit_fcc_reload): New function, extracted from reload_incc.
3451                 (override_options): Allow TFmode values in float registers
3452                 if ISA_HAS_8CC.
3453                 * cnfig/mips/mips.md (reload_incc): Change destination prediate
3454                 to fcc_register_operand.  Remove misleading source constraint.
3455                 Use mips_emit_fcc_reload.
3456                 (reload_outcc): Duplicate reload_incc.
3459 2003-04-30  Diego Novillo  <dnovillo@redhat.com>
3461         * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
3463 2003-04-30  Geoffrey Keating  <geoffk@apple.com>
3465         * tree-inline.c (inlinable_function_p): Back out last change, it's
3466         unnecessary.
3468 2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
3470         * ggc-page.c (TREE_EXP_SIZE): Define.
3471         (extra_order_size_table): New entry for expr trees with
3472         two operands.
3474 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
3476         * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
3477         (c_expand_start_cond): Adjust.
3478         (c_expand_end_cond): Don't use warning_with_file_and_file.
3479         (shadow_warning): Likewise.
3481 2003-04-30  Nathan Sidwell  <nathan@codesourcery.com>
3483         * tree.h (DECL_POINTER_DEPTH): Remove.
3484         (struct tree_decl): Remove pointer_depth.
3486 2003-04-30  Janis Johnson  <janis187@us.ibm.com>
3488         * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
3489         * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
3490         (rs6000_xcoff_encode_section_info): Remove.
3491         (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
3492         (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
3493         (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
3494         Use SYMBOL_REF_FLAGS.
3495         (rs6000_elf_encode_section_info): Call default_encode_section_info for
3496         generic flags, use SYMBOL_REF_FLAGS; code cleanups.
3497         * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
3498         (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
3499         * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
3500         (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
3502 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
3504         * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
3506 2003-04-30  Andreas Schwab  <schwab@suse.de>
3508         * doc/extend.texi (Other Builtins): Enclose multiple word data
3509         type in braces for @deftypefn.
3511 2003-04-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3513         * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
3515         * doc/install.texi (--enable-threads): Document "gnat" option.
3517 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
3519         * diagnostic.h (output_formatted_scalar): Tweak.
3520         * diagnostic.c (output_long_decimal): Likewise.
3521         (output_unsigned_decimal): Likewise.
3522         (output_long_unsigned_decimal): Likewise.
3523         (output_octal): Likewise.
3524         (output_long_octal): Likewise.
3525         (output_hexadecimal): Likewise.
3526         (output_long_hexadecimal): Likewise.
3527         (output_pointer): New function.
3528         (output_format): Use it.  Recognize "%p" format specifier.
3530 2003-04-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3532         * function.c (purge_addressof_1): Postpone insn in fewer cases.
3534 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
3536         * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
3537         call abort() after running out of stack space.
3539         * c-typeck.c (function_types_compatible_p): Ignore incompatible
3540         'volatile' qualifiers on a function's return type in GNU mode.
3542 2003-04-29  Aldy Hernandez  <aldyh@redhat.com>
3544         * expr.c (emit_group_load): Dump parallels of simd types to
3545         memory.
3547 2003-04-29  Vladimir Makarov  <vmakarov@redhat.com>
3549         * genautomata.c (add_vect): Check undefined value for range type
3550         too.
3552 2003-04-29  Phil Edwards  <pme@gcc.gnu.org>
3554         * configure.in:  More general test for cmp --ignore-initial.
3555         * configure:  Regenerate.
3557 2003-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3559         * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
3560         (layout_decl, place_field): Likewise.
3561         Also make minor type and whitespace changes.
3563         * tree.c (save_expr): Don't fold a COMPONENT_REF.
3565 2003-04-29  Olivier Hainque <hainque@act-europe.fr>
3567         * calls.c (expand_call): When modes of target and valreg match, force
3568         sibcall failure when target is a MEM.
3570 2003-04-29  Geoffrey Keating  <geoffk@apple.com>
3572         * tree-inline.c (inlinable_function_p): Don't support inlining
3573         functions using varargs.
3575         * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
3577         * dwarf2out.c (output_call_frame_info): No need to output EH
3578         unwind information if all_throwers_are_sibcalls.
3580         * c-semantics.c (expand_unreachable_stmt): Return a tree.
3581         (expand_stmt): Update for change to expand_unreachable_stmt.
3582         (expand_unreachable_if_stmt): Likewise.
3584         * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
3586 2003-04-29  Jason Merrill  <jason@redhat.com>
3588         PR middle-end/10336
3589         * jump.c (never_reached_warning): Really stop looking if we reach
3590         the beginning of the function.
3592 2003-04-29  Bob Wilson  <bob.wilson@acm.org>
3594         * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
3595         Remove redundant macros.
3596         (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
3597         (LOCAL_LABEL_PREFIX): Define unconditionally.
3598         (NO_DOT_IN_LABEL): Clarify comment.
3599         * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
3600         definition to "long int".
3602 2003-04-29  Alexander Kabaev  <kan@FreeBSD.ORG>
3604         bootstrap/10452
3605         * gengtype-yacc.y: Improve portability.
3607 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
3609         * config.gcc: Install obsolete target list for GCC 3.3.
3610         * doc/install.texi: Mention in specific-target instructions
3611         that certain configurations are deprecated.
3613 2003-04-29  Zack Weinberg  <zack@codesourcery.com>
3615         * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
3617 2003-04-29  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
3619         * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
3620         * gcc.c (display_help): Likewise.
3621         * toplev.c (f_options): Likewise.
3622         * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
3623         * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
3624         * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
3625         * config/s390/s390.h (TARGET_SWITCHES): Likewise.
3626         * config/v850/v850.h (TARGET_SWITCHES): Likewise.
3628 2003-04-29  J"orn Rennecke <joern.rennecke@superh.com>
3630         * varasm.c (default_assemble_visibility): Use assemble_name.
3632 2003-04-29  David O'Brien  <obrien@FreeBSD.org>
3634         * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
3635         * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
3636         (SIZE_TYPE): New macro.
3637         * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
3638         (SET_ASM_OP): New macro.
3639         (HANDLE_SYSV_PRAGMA): New macro.
3640         (ASM_WEAKEN_LABEL): New macro.
3642 2003-04-28  Mark Mitchell  <mark@codesourcery.com>
3644         PR c++/10180
3645         * tree-inline.c (expand_call_inline): Call push_srcloc when
3646         encountering EXPR_WITH_FILE_LOCATION.  Honor warn_inline.
3648 2003-04-28  Mike Stump  <mrs@apple.com>
3650         * gdbinit.in: Update to reflect new identifier structure.
3652 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
3654         * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
3655         (struct tree_int_cst, struct tree_real_cst, struct tree_string,
3656         struct tree_complex, struct tree_vector): Remove RTL field.
3657         (CONSTRUCTOR_ELTS): Use elt 0.
3658         * tree.def (CONSTRUCTOR): Delete first of its two operands.
3659         * varasm.c (output_constant_def): Remove early exit if
3660         TREE_CST_RTL is set.  Don't set TREE_CST_RTL.
3661         (decode_addr_const): Don't mention TREE_CST_RTL in comment.
3662         * target.h (select_section): Don't mention TREE_CST_RTL in comment.
3663         * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
3665 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
3667         * c-decl.c (finish_decl): When prototype with asmspec is found
3668         for built-in, adjust built_in_decls as well as expr.c decls.
3669         * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
3670         (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
3671         * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
3673 2003-04-28  Richard Henderson  <rth@redhat.com>
3675         * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
3676         * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
3677         integral constant mult operand.
3678         (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
3679         (const_smulsi3_highpart_v8plus): Likewise.
3680         (const_smulsi3_highpart): Likewise.
3681         (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
3682         (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
3683         (const_umulsi3_highpart_v8plus): Likewise.
3684         (const_umulsi3_highpart): Likewise.
3686 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
3688         * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
3689         Define as 1.
3691 2003-04-28  David O'Brien  <obrien@FreeBSD.org>
3693         * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
3695 2003-04-28  Jakub Jelinek  <jakub@redhat.com>
3697         * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
3698         * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
3699         * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
3700         functions.
3701         (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
3703 2003-04-28  Nick Clifton  <nickc@redhat.com>
3705         * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
3707 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
3709         * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
3710         output_constant_def, use its result instead of TREE_CST_RTL (exp).
3711         Can assume it has the form (mem (symbol_ref ".LCxxx")).
3712         (expand_expr <COMPONENT_REF>): Can always just extract the
3713         relevant field of a CONSTRUCTOR.
3714         (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
3715         ARRAY_RANGE_REF>): Make control flow explicit.
3716         * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
3717         an INTEGER_CST.
3719 2003-04-27  Kazu Hirata  <kazu@cs.umass.edu>
3721         * reload1.c (reg_set_luid): Fix a comment typo.
3723 2003-04-27  Zack Weinberg  <zack@codesourcery.com>
3725         * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
3726         struct deferred_string, const_str_htab): Kill.
3727         (n_deferred_strings): New static variable.
3728         (build_constant_desc): Set SYMBOL_REF_DECL of the new
3729         symbol_ref to point to the constant.
3730         (output_constant_def): When a deferred string is forced out,
3731         just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
3732         (mark_constant): Likewise.
3733         (maybe_output_constant_def_contents): When deferring a string
3734         constant, just set STRING_POOL_ADDRESS_P and increment
3735         n_deferred_strings.
3736         (mark_constant_pool): Check n_deferred_strings, not the size
3737         of const_str_htab.
3738         (init_varasm_once): No need to create const_str_htab.
3740         * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
3741         SYMBOL_REF_DECL points to a constant.
3743 2003-04-26  Zack Weinberg  <zack@codesourcery.com>
3745         * varasm.c (output_constant_def): Split out two new static
3746         functions, build_constant_desc and maybe_output_constant_def_contents.
3747         Restructure for comprehensibility.  Don't call
3748         output_addressed_constants.  Treat defstr being non-NULL for
3749         STRING_POOL_ADDRESS_P constants as an invariant.
3750         (struct deferred_string): Remove labelno field.
3751         (output_constant_def_contents): Kill labelno argument. Call
3752         output_addressed_constants here.  Use ASM_OUTPUT_LABEL, not
3753         asm_out.internal_label.
3754         (mark_constant): Update call to output_constant_def_contents.
3755         Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
3756         constants as an invariant.
3758 2003-04-26  Richard Henderson  <rth@redhat.com>
3760         * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
3761         (ix86_expand_call, ix86_rtx_consts): Likewise.
3763 2003-04-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3765         * doc/md.texi (cmpstr): Document additional restrictions.
3767 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
3769         * flags.h (time_report): Remove.
3770         * timevar.c (timevar_enable): New.
3771         (TIMEVAR_ENABLE): Remove, use timevar_enable.
3772         (timevar_init): Rename from init_timevar.
3773         * timevar.h (timevar_init): Rename from init_timevar.
3774         * toplev.c (time_report): Make static.
3775         (do_compile): Conditionally call init_timevar first.
3776         (preprocess_options): Move some code to do_compile.
3778 2003-04-26  Stephane Carrez  <stcarrez@nerim.fr>
3780         * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
3782 2003-04-26  Neil Booth  <neil@daikokuya.co.uk>
3784         * _cpp_lex_direct: Remove pointless code.
3786 2003-04-26 Stephane Carrez <stcarrez@nerim.fr>
3788         * doc/extend.texi (Function Attributes): Document "near" and "far"
3789         for 68HC11 and 68HC12.
3791 2003-04-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3793         * expr.c (store_field): When making temporary for store, don't
3794         make it TYPE_QUAL_CONST.
3796 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
3798         * toplev.c (read_integral_parameter):  Use "argument" in error
3799         message to distinguish it from actual invalid options.
3801 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
3803         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
3804         addition of __PIC__ and __pic__ macros.
3805         * config/xtensa/xtensa.h: Clean up indentation.
3807 2003-04-25  Bob Wilson  <bob.wilson@acm.org>
3809         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
3810         _GNU_SOURCE.  Add definitions of __PIC__ and __pic__.
3811         (SUBTARGET_CPP_SPEC): Define.
3812         (LIB_SPEC): Delete.
3813         * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
3814         * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
3815         * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
3816         Define.
3817         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3818         (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
3820 2003-04-25  H.J. Lu <hjl@gnu.org>
3822         * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
3823         for return mode.
3824         (ia64_expand_builtin): Set rmode to SImode for
3825         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
3826         IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
3827         IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
3828         for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
3830 2003-04-25  Phil Edwards  <pme@gcc.gnu.org>
3832         * configure.in (make_compare_target):  Test for GNU cmp and set this
3833         variable appropriately.
3834         * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
3835         compare4-lean): Rename actual targets to slowcompare*.  New compare*
3836         targets depend on names based on make_compare_target.
3837         * configure:  Regenerated.
3839 2003-04-25  Richard Henderson  <rth@redhat.com>
3841         * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
3842         to clobber ar.pfs and ar.unat.
3843         (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
3844         fix test for spilling ar.pfs to the stack.
3846 2003-04-25  Richard Henderson  <rth@redhat.com>
3848         PR opt/10315
3849         * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
3850         checks during reload; use validize_mem instead of adjust_address.
3852 2003-04-26  Ben Elliston  <bje@wasabisystems.com>
3854         * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
3855         return values from recog_memoized().
3857 2003-04-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3859         PR opt/8705
3860         * gcse.c (try_replace_reg): On a successful substitution of a constant
3861         into a single set, try to simplify the source of the set.
3862         * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
3863         constant source.
3865 2003-04-24  Neil Booth  <neil@daikokuya.co.uk>
3867         * cpplex.c (cpp_token_len): Tighten up.
3868         (cpp_token_as_text): Need extra byte now.
3869         * cpplib.c (glue_header_name): Need extra 2 bytes.
3870         * cppmacro.c (cpp_macro_definition): Need extra byte.
3872 2003-04-24  Alexander Kabaev <kan@FreeBSD.ORG>
3874         * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
3875         const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
3876         where they might be not present. Use their _sp64 equivalent
3877         instead.
3879 Thu Apr 24 20:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
3881         * i386.md (cvtsi2sdq): Fix typo in previous patch.
3883 2003-04-24  Krister Walfridsson  <cato@df.lth.se>
3885         * configure.in: Check whether mbstowcs works.
3886         * configure, config.in: Regenerate.
3887         * intl.c: Use HAVE_WORKING_MBSTOWCS.
3889 2003-04-24  H.J. Lu <hjl@gnu.org>
3891         * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
3892         for __sync_bool_compare_and_swap_di for int return type.
3894         * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
3895         Change return type to int.
3896         (__sync_bool_compare_and_swap): Likewise.
3898 Thu Apr 24 16:55:26 CEST 2003  Jan Hubicka  <jh@suse.cz>
3900         * cfgbuild.c (make_edges):  Do not use next_nonnote_insn when
3901         looking for fallthru edge.
3903         * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
3904         Fix.
3905         (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
3906         athlon-fvector): New.
3907         (athlon_*): Revisit to match new optimization guide.
3908         * i386.c (ix86_adjust_cost):  Fix memory operand costs on Athlon/k8
3909         * i386.md (cvt??2?? patterns): Fix modes.
3910         (fistp patterns): Set modes.
3912         Accidentaly commited with my earlier reload patch:
3913         PR c/10308
3914         * reload.c (find_reloads_address_1): Reload plus at the place of
3915         index register.
3917 2003-04-24  Nathan Sidwell  <nathan@codesourcery.com>
3919         New GCOV_TAG_FUNCTION layout
3920         * coverage.c (struct function_list): Replace name with ident.
3921         (struct counts_entry): Likewise.
3922         (fn_ident): New.
3923         (htab_counts_entry_hash, htab_counts_entry_eq,
3924         htab_counts_entry_del): Adjust.
3925         (reads_count_file, get_coverage_counts,
3926         coverage_begin_output, coverage_end_function): Adjust.
3927         (build_fn_info_type, build_fn_info_value): Likewise.
3928         * gcov-dump.c (tag_function): Adjust.
3929         * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
3930         * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
3931         * gcov.c (struct function_info): Add ident.
3932         (read_graph_file, read_count_file): Adjust.
3933         * libgcov.c (gcov_exit): Adjust.
3935 2003-04-23  Richard Henderson  <rth@redhat.com>
3937         PR opt/8300
3938         * toplev.c (rest_of_compilation): Delay no_new_pseudos until
3939         after initialize_uninitialized_subregs; update reg info assuming
3940         new pseudos were created.
3942 2003-04-23  Neil Booth  <neil@daikokuya.co.uk>
3944         * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
3945         * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
3946         (lex_string): Take cpp_string with full spelling.
3947         (cb_ident): Update.
3948         (c_lex): Update diagnostics.
3949         * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
3950         (create_literal): New.
3951         (lex_string): Unterminated literals have type CPP_OTHER.
3952         (_cpp_lex_direct): Update calls to lex_string.  Use create_literal
3953         for CPP_OTHER.
3954         (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
3955         (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
3956         * cpplib.c (parse_include, do_line, do_linemarker,
3957         destringize_and_run): Update for token storing full spelling.
3958         * cpplib.h: Update token spelling types.
3959         * cppmacro.c (stringify_arg, check_trad_stringification):
3960         Update for token storing full spelling.
3962 2003-04-23  Ulrich Weigand  <uweigand@de.ibm.com>
3964         * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
3966 2003-04-23  Richard Earnshaw  <rearnsha@arm.com>
3968         * arm.h (TARGET_OPTIONS): Add value field.
3970 2003-04-23  Mark Mitchell  <mark@codesourcery.com>
3972         * doc/extend.texi: Remove duplicate 2003 copyright date.
3974 2003-04-23  Nathan Sidwell  <nathan@codesourcery.com>
3976         * Makefile.in (LIBGCC_DEPS): Add gcov headers.
3977         (libgcov.a): Depends on LIBGCC_DEPS.
3978         * basic-block.h (profile_info): Moved here from coverage.h. Made
3979         a pointer.
3980         * coverage.c (struct function_list): Fixed array of counter types.
3981         (struct counts_entry): Keyed by counter type, contains summary.
3982         (profile_info): Moved to profile.c.
3983         (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
3984         vars.
3985         (profiler_label): Remove.
3986         (ctr_labels): New.
3987         (set_purpose, label_for_tag, build_counter_section_fields,
3988         build_counter_section_value, build_counter_section_data_fields,
3989         build_counter_section_data_values, build_function_info_fields,
3990         build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
3991         (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
3992         build_ctr_info_value, build_gcov_info): New.
3993         (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
3994         (reads_counts_file): Adjust.
3995         (get_coverage_counts): Takes counter number. Add summary
3996         parameter. Adjust.
3997         (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
3998         create counter array labels.
3999         (coverage_end_function): Adjust.
4000         (create_coverage): Adjust.
4001         (find_counters_section): Remove.
4002         * coverage.h (MAX_COUNTER_SECTIONS): Remove.
4003         (struct section_info, struct profile_info): Remove.
4004         (profile_info): Moved to basic-block.h.
4005         (coverage_counter_ref): Takes a counter number.
4006         (get_coverage_counts): Takes a counter number. Added summary
4007         parameter.
4008         (find_counters_section): Remove.
4009         * gcov-dump.c (tag_arc_counts): Rename to ...
4010         (tag_counters): ... here. Adjust.
4011         (tag_table): Move tag_counters to 3rd entry. Remove
4012         PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
4013         (dump_file): Check for counter tag values here.
4014         (tag_summary): Adjust.
4015         * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
4016         * gcov-io.h (GCOV_LOCKED): New.
4017         (GCOV_TAG_ARC_COUNTS): Rename to ...
4018         (GCOV_TAG_COUNTS_BASE): ... here.
4019         (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
4020         Remove.
4021         (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
4022         (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
4023         GCOV_TAG_IS_COUNTER): New.
4024         (struct gcov_ctr_summary): New.
4025         (struct gcov_summary): Adjust.
4026         (struct gcov_counter_section): Remove.
4027         struct gcov_counter_section_data): Remove.
4028         (struct gcov_function_info): Rename to ...
4029         (struct gcov_fn_info): ... here. Adjust.
4030         (struct gcov_ctr_info): New.
4031         (struct gcov_info): Adjust.
4032         * gcov.c (read_count_file): Adjust.
4033         (output_lines): Adjust.
4034         * libgcov.c (gcov_exit): Adjust.
4035         (__gcov_flush): Adjust.
4036         * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
4037         * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
4038         probably_never_executed_bb_p, compute_frequency_function): Adjust
4039         profile_info use.
4040         * profile.c (struct counts_entry): Remove.
4041         (profile_info): Define here.
4042         (get_exec_counts): Adjust get_coverage_counts call.
4043         (compute_branch_probablilities): Remove find_counters_section
4044         call.
4045         (gen_edge_profiler): Adjust coverage_counter_ref call.
4046         * tracer.c (tail_duplicate): Adjust profile_info use.
4048 2003-04-23  Roger Sayle  <roger@eyesopen.com>
4050         PR optimization/10339
4051         * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
4052         directly instead of unsafely transforming call into a memcmp.
4053         (expand_builtin_strncmp): Likewise.
4055 2003-04-22  Roger Sayle  <roger@eyesopen.com>
4057         * alias.c (mark_constant_function):  Check for constancy and
4058         purity even of void functions.  Update both the function decl
4059         and the cgraph RTL info with the results.
4061 2003-04-22  Roger Sayle  <roger@eyesopen.com>
4063         * real.c (do_add): Change to return a bool indicating that the
4064         result of the operation may be inexact due to loss of precision.
4065         (do_multiply): Likewise.
4066         (do_divide): Likewise.
4068 2003-04-22  Geoffrey Keating  <geoffk@apple.com>
4069             Loren James Rittle  <ljrittle@acm.org>
4071         * dwarf2out.c (fde_table_allocated): Mark with GTY.
4072         (decl_die_table_allocated): Likewise.
4073         (abbrev_die_table_allocated): Likewise.
4074         (line_info_table_allocated): Likewise.
4075         (separate_line_info_table_allocated): Likewise.
4076         (pubname_table_allocated): Likewise.
4077         (arange_table_allocated): Likewise.
4078         (ranges_table_allocated): Likewise.
4079         (decl_die_table_in_use): Unconditionalize; mark with GTY.
4080         (abbrev_die_table_in_use): Likewise.
4081         (line_info_table_in_use): Likewise.
4082         (separate_line_info_table_in_use): Likewise.
4083         (pubname_table_in_use): Likewise.
4084         (arange_table_in_use): Likewise.
4085         (ranges_table_in_use): Likewise.
4086         (have_location_lists): Likewise.
4087         (emitcount): New GTY-marked static, moved...
4088         (maybe_emit_file): ...from here.
4089         (label_num): New GTY-marked static, moved...
4090         (gen_internal_sym): ...from here.
4092 2003-04-22  Richard Henderson  <rth@redhat.com>
4094         PR 8866
4095         * rtl.h (MEM_NOTRAP_P): New.
4096         (MEM_COPY_ATTRIBUTES): Copy it.
4097         * rtlanal.c (may_trap_p): Check it.
4098         * expr.c (do_tablejump): Set it.
4099         * doc/rtl.texi (Flags): Document it.
4101         * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
4103 2003-04-22  Olivier Hainque  <hainque@act-europe.fr>
4105         * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
4106         set FRP on stack adjustment for outgoing args if frame_pointer_needed.
4108 2003-04-22  Vincent Celier <celier@gnat.com>
4110         * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
4111         --enable-threads=gnat.
4112         * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
4113         * configure.in: Add gnat to the list of thread packages
4114         * configure: Rebuild.
4115         * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
4117 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
4119         * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
4121 2003-04-22  Devang Patel  <dpatel@apple.com>
4123         * cpptrad.c (_cpp_replacement_text_len): Add check for macro
4124         parameter count.
4125         (_cpp_copy_replacement_text): Same.
4127 2003-04-22  Neil Booth  <neil@daikokuya.co.uk>
4129         * c-lex.c (c_lex): Handle CPP_OTHER differently.
4130         * cppexp.c (_cpp_parse_expr): Similarly.
4131         * cpplex.c (SPELL_CHAR): Remove.
4132         (_cpp_lex_direct): Stray chars are saved as byte strings.
4133         (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
4134         handle SPELL_CHAR.
4135         (cpp_avoid_paste): Update handling of CPP_OTHER.
4136         * cpplib.h: Spell CPP_OTHER like a number.
4137         (struct cpp_token): Remove member c.
4138         * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
4140 2003-04-22  David Turner <novalis@gnu.org>
4142         * gbl-ctors.h: Add special license exception.
4143         * libgcc2.h: Likewise.
4144         * tsystem.h: Likewise.
4145         * gcov-io.h: Likewise.
4147 2003-04-22  David Edelsohn  <edelsohn@gnu.org>
4149         * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
4150         macro defaulting to original BRANCH_COST heuristic.
4151         * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
4153         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
4155 2003-04-22  Aldy Hernandez  <aldyh@redhat.com>
4157         * config/rs6000/t-spe: Merge in t-fprules into file.
4159         * config.gcc: Add t-spe to powerpc-eabispe.
4161 2003-04-22  Kean Johnston  <jkj@sco.com>
4163         * tlink.c (recompile_files): Add missing '=' to putenv calls
4165 2003-04-22  Nathan Sidwell  <nathan@codesourcery.com>
4167         * ginclude/stddef.h: Provide C++ safe offsetof.
4169 2003-04-22  J"orn Rennecke <joern.rennecke@superh.com>
4171         * function.c (purge_addressof_1): In (mem (addressof (reg))) case
4172         for reg notes, if there are no substitutions, just use a SUBREG.
4174 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
4176         * Makefile.in (calls.o): Depend on except.h.
4177         * calls.c: Include except.h.
4178         (emit_call_1): Call note_eh_region_may_contain_throw if
4179         appropriate.
4180         * except.c (eh_region): Add may_contain_throw.
4181         (expand_eh_region_end_cleanup): Do not include handler code when
4182         it cannot be reached.
4183         (note_eh_region_may_contain_throw): New function.
4184         * except.h (note_eh_region_may_contain_throw): New function.
4186 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
4188         * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
4189         changes.
4191 2003-04-21  Aldy Hernandez  <aldyh@redhat.com>
4193         * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
4194         64-bit long doubles.
4196 2003-04-21  Olivier Hainque  <hainque@act-europe.fr>
4198         * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
4199         a number of conversions required for type consistency and previously
4200         stripped off by STRIP_NOPS.
4202         * calls.c (expand_call): Prevent sibcall optimization for calls to
4203         nested subprograms.
4205         * expmed.c (extract_bit_field): Reverse operands of && condition to
4206         prevent a potential division by zero in the previously first branch.
4207         * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
4209 2003-04-21  Joel Brobecker  <brobecker@gnat.com>
4211         * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
4212         (subrange_type_die): Likewise.
4213         (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
4214         (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
4216 2003-04-21  Nathan Sidwell  <nathan@codesourcery.com>
4218         Break out coverage routines to new file.
4219         * Makefile.in (COVERAGE_H): New variable
4220         (C_OBJS): Add coverage.o
4221         (coverage.o): New target.
4222         (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
4223         dependencies.
4224         (GTFILES): Adjust.
4225         (gt-coverage.h): New target.
4226         (gt-profile.h): Remove.
4227         * profile.h: Remove. Move to ...
4228         * coverage.h: ... here. New. #include gcov-io.h.
4229         * gcov-io.h: Move function definitions to ...
4230         * gcov-io.c: ... here. New.
4231         * profile.c: Move coverage routines to coverage.c.
4232         (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
4233         end_branch_prob): Adjust.
4234         * coverage.c: New. Coverage routines from profile.c
4235         (coverage_counter_ref, coverage_init, coverage_finish,
4236         coverage_end_function, coverage_begin_output,
4237         coverage_counter_ref, get_coverage_counts): Define.
4238         * gcov-dump.c, gcov.c: #include gcov-io.c.
4239         * libgcov.c: Likewise. Adjust.
4240         * loop-init.c: Don't #include profile.h
4241         * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
4242         * rtl.h: Add coverage prototypes.
4243         * toplev.c (compile_file): Init coverage, not branch_prob.
4244         Always call coverage_finish.
4245         (rest_of_compilation): Call coverage_end_function.
4247 2003-04-21  Matt Kraai  <kraai@alumni.cmu.edu>
4249         * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
4251 2003-04-21  Neil Booth  <neil@daikokuya.co.uk>
4253         * c-ppoutput.c (cb_include): Don't take a cpp_token.
4254         * cppfiles.c: Don't undef strcmp.
4255         (find_include_file): Don't take a cpp_token.  Check for empty
4256         file names.
4257         (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
4258         (cpp_push_include): Simplify.
4259         * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
4260         * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
4261         (parse_include): Similary.  Don't check for zero-length filenames.
4262         (do_include_common, do_pragma_dependency): Update accordingly.
4263         * cpplib.h (struct cpp_callbacks): Change prototype of include.
4265 2003-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4267         * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
4268         details of conflict handling.
4270         * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
4271         when conversion overflows.
4273         * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
4275         * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
4276         before clearing.
4278 2003-04-21  Mark Mitchell  <mark@codesourcery.com>
4280         * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
4281         have the same form as the old RTL.
4283 2003-04-21  Andreas Jaeger  <aj@suse.de>
4285         * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
4287 2003-04-20  Chris Lattner  <sabre@nondot.org>
4288             Zack Weinberg  <zack@codesourcery.com>
4290         * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
4291         genrtl_cleanup_stmt.  Correct comment at head of
4292         genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
4294         * stmt.c (struct nesting): Kill n_function_calls.
4295         (expand_start_bindings): Don't set
4296         thisblock->data.block.n_function_calls.
4297         (expand_end_bindings): Compare function_call_count against 0.
4298         (expand_cleanups): Kill DONT_DO argument; all callers passed
4299         NULL_TREE. All callers updated to match.
4301 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
4303         * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
4304         (defer_addressed_constants, output_deferred_addressed_constants): Kill.
4305         (output_constant_def): Remove code predicated on
4306         defer_addressed_constants_flag.
4308         * output.h: Remove prototypes of deleted functions.
4309         * c-typeck.c (constructor_subconstants_deferred): Kill.
4310         (struct initializer_stack): Remove 'deferred' field.
4311         (start_init): Remove all references to the above.
4312         (finish_init): Likewise. Also remove never-executed call to
4313         output_deferred_addressed_constants.  Pull assignment to
4314         defstr out of if expression.
4316 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
4318         * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
4319         NOTE_NEWLINE): Remove.
4320         * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
4321         to handle new form of line note type.
4323 2003-04-20  Zack Weinberg  <zack@codesourcery.com>
4325         * target.h (encode_section_info): Add new argument carrying
4326         the RTL to be modified by the hook.
4328         * varasm.c (make_decl_rtl, output_constant_def): Update calls
4329         to encode_section_info.
4330         (default_encode_section_info): Take and use RTL argument,
4331         don't use TREE_CST_RTL or DECL_RTL.
4332         * output.h: Update prototype of default_encode_section_info.
4333         * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
4334         (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
4335         Update calls to encode_section_info.
4337         * config/darwin.c, config/arm/arm.c, config/arm/pe.c
4338         * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
4339         * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
4340         * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
4341         * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
4342         * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
4343         Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
4344         except for PE dllimport/dllexport.  Update calls to
4345         default_encode_section_info.
4347         * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
4348         Update prototypes.
4350         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
4352 2003-04-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4354         PR/8705
4355         * pa.md (movccfp): New expander.
4356         (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
4357         Reverse fcmp conditions.
4359 2003-04-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4361         * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
4362         of operand 1 correctly.
4364 2003-04-20  Nathan Sidwell  <nathan@codesourcery.com>
4366         * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
4367         * gcov.c (output_lines): Don't be so fussy about going past EOF.
4369 2003-04-20  Neil Booth  <neil@daikokuya.co.uk>
4371         * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
4372         (cppcharset.o): New target.
4373         * c-lex.c (is_extended_char): Move to cppcharset.c.
4374         (utf8_extend_token): Delete.
4375         * cppcharset.c: New file.
4376         * cpphash.h (_cpp_valid_ucn): New.
4377         * cpplex.c (lex_identifier): Update prototype.
4378         (continues_identifier_p): Rename forms_identifier_p.  Handle UCN
4379         escapes.
4380         (maybe_read_ucs): Rename maybe_read_ucn.  Update to use code
4381         in cppcharset.c.
4382         (lex_number, lex_identifier, cpp_parse_escape): Update.
4383         (_cpp_lex_direct): Update to handle UCNs.
4384         (cpp_avoid_paste): Don't paste to form a UCN.
4386 2003-04-19  Roger Sayle  <roger@eyesopen.com>
4388         * builtins.c (expand_builtin):  Don't expand a pure or const
4389         built-in function if the result will be ignored and none of
4390         its arguments are volatile.
4392 2003-04-19  Kean Johnston  <jkj@sco.com>
4394         * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
4395         * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
4396         target fragment now: t-sco5; dont compile crti.o.
4397         * config/i386/sco5.h: major overhaul to remove all COFF remnants
4398         and to use elfos.h for most definitions.
4399         (BSS_SECTION_ASM_OP): set correct segment attributes.
4400         (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
4401         (DWARF2_UNWIND_INFO): Always set to 1.
4402         (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
4403         (MD_STARTFILE_PREFIX_1): Define.
4404         (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
4405         (DEFAULT_LINKER): Define if not specified to configure.
4406         (CTORS_SECTION_ASM_OP): Remove COFF crud.
4407         (DTORS_SECTION_ASM_OP): Remove COFF crud.
4408         (WINT_TYPE): Define.
4409         (SDB_DEBUGGING_INFO): Remove.
4410         (EXTRA_SECTIONS): Likewise.
4411         (EXTRA_SECTION_FUNCTIONS): Likewise.
4412         (CTOR_LIST_BEGIN): Likewise.
4413         (CTOR_LIST_END): Likewise.
4414         (INIT_SECTION_FUNCTION): Likewise.
4415         (FINI_SECTION_FUNCTION): Likewise.
4416         (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
4417         (LOCAL_LABEL_PREFIX): Likewise.
4418         (NON_SAVING_SETJMP): Likewise.
4419         (RETURN_POPS_ARGS): Likewise.
4420         (ASM_OUTPUT_SKIP): Likewise.
4421         (TARGET_ASM_NAMED_SECTION): Likewise.
4422         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
4423         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
4424         (ASM_OUTPUT_IDENT): Likewise.
4425         (ASM_OUTPUT_CASE_LABEL): Likewise.
4426         (ASM_OUTPUT_ASCII): Likewise.
4427         (ASM_OUTPUT_LIMITED_STRING): Likewise.
4428         (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
4429         (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
4430         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4431         (ASM_FINISH_DECLARE_OBJECT): Likewise.
4432         (ASM_DECLARE_OBJECT_NAME): Likewise.
4433         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
4434         (ASM_DECLARE_FUNCTION_NAME): Likewise.
4435         (ASM_DECLARE_RESULT): Likewise.
4436         (ASM_WEAKEN_LABEL): Likewise.
4437         (SUPPORTS_WEAK): Likewise.
4438         (APPLY_RESULT_SIZE): Likewise.
4439         (LPREFIX): Likewise.
4440         (ALIGN_ASM_OP): Likewise.
4441         (ASCII_DATA_ASM_OP): Likewise.
4442         (IDENT_ASM_OP): Likewise.
4443         (ASM_SHORT): Likewise.
4444         (ASM_LONG): Likewise.
4445         (TYPE_ASM_OP): Likewise.
4446         (SIZE_ASM_OP): Likewise.
4447         (STRING_ASM_OP): Likewise.
4448         (SKIP_ASM_OP): Likewise.
4449         (EH_FRAME_SECTION_ASM_OP): Likewise.
4450         (READONLY_DATA_SECTION_ASM_OP): Likewise.
4451         (INIT_SECTION_ASM_OP): Likewise.
4452         (FINI_SECTION_ASM_OP): Likewise.
4453         (TEXT_SECTION_ASM_OP): Likewise.
4454         (DATA_SECTION_ASM_OP): Likewise.
4455         (TYPE_OPERANT_FORMAT): Likewise.
4456         (ASM_SPEC): Remove COFF code.
4457         (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
4458         cause -pg to emit an error; use pcrt1elf.o with -pp
4459         (ENDFILE_SPEC): Likewise.
4460         (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
4461         (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
4462         (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
4463         add -z alt_resolve to support weak symbols the way GCC wants them.
4464         (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
4465         (LIBGCC_SPEC): Dont use -lgcc in -G mode.
4466         (ASM_PREFERED_EH_DATA_FORMAT): Remove.
4467         * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
4468         (CRTSTUFF_T_CFLAGS_S): Define.
4469         (MULTILIB_OPTIONS): Likewise.
4470         (MULTILIB_DIRNAMES): Likewise.
4471         (MULTILIB_MATCHES): Likewise.
4472         (MULTILIB_EXTRA_OPTS): Likewise.
4473         (LIBGCC): Likewise.
4474         (INSTALL_LIBGCC): Likewise.
4475         (crti.o): Remove.
4476         * config/i386/t-sco5gas: Remove.
4477         * doc/install.texi: Updated for new OpenServer instructions.
4478         * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
4480 2003-04-19  Kean Johnston  <jkj@sco.com>
4482         * fixinc/check.tpl: Allow user to over-ride diff program.
4483         * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
4484         (sco_math): Added test for SCO math header files.
4485         (sco_regset): Added check for conflicts with ieeefp.h.
4486         (svr4_disable_opt): Removed extraneous #ifdef SVR4.
4487         * fixinc/fixincl.x: Regenerated
4488         * fixinc/tests/base/math.h: Added sco_math tests.
4489         * fixinc/tests/base/string.h: New file.
4490         * fixinc/tests/base/sys/regset.h: New file.
4492 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
4494         * cpphash.h (struct cpp_buffer): Remove backup_to.
4495         * cpplex.c (BACKUP, get_effective_char): Die.
4496         (_cpp_skip_block_comment): Assume '*' is location on entry.
4497         (continues_identifier_p): Respect -fno-dollars-in-identifiers.
4498         (IF_NEXT_IS): Update.
4499         (_cpp_lex_direct): Don't use backup_to; look ahead directly.
4501 2003-04-19  Matt Kraai  <kraai@alumni.cmu.edu>
4503         * README.Portability: Move to a new section and obsolete K+R
4504         portability issues.
4506 Sat Apr 19 14:56:17 CEST 2003  Jan Hubicka  <jh@suse.cz>
4508         * rtlanal.c (subreg_offset_representable_p):  Fix call of
4509         subreg_lowpart.
4511 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
4513         * cpphash.h (struct cpp_reader): New member warned_dollar.
4514         * cpplex.c (continues_identifier_p): New function.
4515         (parse_identifier, parse_number, parse_string): Rename lex_identifer,
4516         lex_number and lex_string, and simplify.
4517         (parse_slow, unescaped_terminator_p): Die.
4518         (_cpp_lex_direct): Update.
4520 2003-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4522         * calls.c (expand_call): Provide init for old_stack_pointer_delta.
4524 2003-04-19  Nathan Sidwell  <nathan@codesourcery.com>
4526         * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
4527         fork behaviour.
4529 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
4531         * cppexp.c (eval_token): Permit true and false even if pedantic.
4533 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
4535         * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
4537 2003-04-19  Neil Booth  <neil@daikokuya.co.uk>
4539         * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
4540         MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
4541         (struct include_file): Remove fefcnt, mapped members.
4542         (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
4543         (read_include_file): Don't use mmap, terminate buffers in '\r'.
4544         (purge_cache): Don't use munmap.
4545         * cpphash.h (CPP_BUF_COLUMN): Update.
4546         (lexer_state): Remove lexing_comment.
4547         (struct _cpp_line_note): New.
4548         (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
4549         next_line and need_line.  Remove col_adjust and saved_flags.
4550         (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
4551         _cpp_skip_block_comment, scan_out_logical_line): New.
4552         (_cpp_init_mbchar): Remove.
4553         * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
4554         (cpp_read_main_file): Set line to 1 earlier.
4555         (post_options): -traditional-cpp doesn't want trigraphs.
4556         * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
4557         (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
4558         _cpp_get_fresh_line): New.
4559         (handle_newline, skip_escaped_newlines, trigraph_p,
4560         continue_after_nul, _cpp_init_mbchar): Remove.
4561         (get_effective_char): Update.
4562         (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
4563         (skip_line_comment): Simplify.
4564         (skip_whitespace, parse_identifier, parse_slow, parse_number,
4565         parse_string): Update.
4566         (cpp_lex_direct): Use clean lines and process line notes.  Update.
4567         (cpp_interpret_charconst): No MULTIBYTE_CHARS.
4568         * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
4569         directly.
4570         (_cpp_handle_directive): Don't set saved_flags.
4571         (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
4572         cpp_undef, handle_assertion, cpp_push_buffer): Update.
4573         (_cpp_pop_buffer): Free notes.
4574         * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
4575         * cpppch.c (cpp_read_state): \n terminate buffer.
4576         * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
4577         (copy_comment): Use _cpp_skip_block_comment.
4578         (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
4579         Simplify.
4580         (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
4581         save_replacement_text): Update.
4582         (scan_out_logical_line): Update to use clean lines and process
4583         line notes.
4584         * fix-header.c (read_scan_file): Update.
4586 2003-04-18  Douglas B Rupp  <rupp@gnat.com>
4588         * unwind-dw2-fde.c (__register_frame_info_bases): Check for
4589         null begin parameter (as well as pointer to null).
4590         (__deregister_frame_info_bases): Likewise.
4592 2003-04-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4594         * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
4595         hard or virtual register and copy into pseudo if replacement fails.
4597         * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
4599         * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
4601 2003-04-18  Olivier Hainque <hainque@act-europe.fr>
4603         * calls.c (expand_call): Move special case for constructor calls
4604         to right place. Ensures constructor calls used to initialize
4605         arguments get a clean outgoing argument block for themselves.
4606         Move check for stack deallocation completeness until after last
4607         deallocation.  Add stack_pointer_delta to set of state
4608         variables saved and restored along with current stack_level.
4610         * integrate.c (expand_inline_function): Ensure non-const actuals
4611         don't end up const in the caller's flow after conversion to possibly
4612         const formal type.
4614 2003-04-18  Vincent Celier  <celier@gnat.com>
4616         * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
4617         and *_DIV_EXPR as TRUNC_*_EXPR.
4619 2003-04-18  Mark Mitchell  <mark@codesourcery.com>
4621         * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
4622         for orphaned jump tables.
4624 2003-04-18  Kazu Hirata  <kazu@cs.umass.edu>
4626         * reload1.c: Revert my previous patch on 2002-04-17.
4628 2003-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4630         * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
4631         Add Segher Boessenkool.
4633 2003-04-18  Alexander Sotirov  <sluncho@mirizma.org>
4635         PR c/9177
4636         * c-decl.c (c_expand_body): Don't garbage collect the function
4637         body if we are going to dump it later.
4639 2003-04-18  Richard Henderson  <rth@redhat.com>
4641         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
4642         (alpha_end_function): Don't set them.
4643         (decl_in_text_section): Remove.
4644         (alpha_encode_section_info): Remove.
4645         (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
4646         (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
4647         sections, rather than decl_in_text_section results.
4649 2003-04-18  Roger Sayle  <roger@eyesopen.com>
4651         * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
4652         and SIGN_EXTRACT.
4654 2003-04-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
4656         PR optimization/7675
4657         * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
4658         on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
4659         nested functions if they refer to declarations from parent functions.
4660         * stmt.c (expand_decl): Don't put automatic variables in registers
4661         if the DECL_NONLOCAL flag is set.
4663 2003-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
4665         * gcse.c (compute_ld_motion_mems): For MEM destinations, only
4666         consider those to be movable where the source matches
4667         want_to_gcse_p.
4668         (update_ld_motion_stores): In comment, refer to
4669         compute_ld_motion_mems for validity of replacement.
4671 Fri Apr 18 01:28:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
4673         * gcov-dump.c (tag_summary): Remove max_sum
4674         * gcov-io.h (gcov_summary, gcov_write_summary,
4675         gcov_read_summary): Kill max_sum.
4676         * libgcov.c (gcov_exit): Do one pass over the data.  Make error
4677         message more verbose.
4679         * emit-rtl.c (subreg_hard_regno):  Check that register is
4680         representable.
4682         * reload.c (reload_inner_reg_of_subreg):  When register is not
4683         representable, reload the whole thing.
4684         (find_reloads): Likewsie.
4685         * rtlanal.c (subreg_representable_p):  New function.
4687         * profile.c (compute_branch_probabilities):  Cleanup sanity checking;
4688         allow negative probabilities for edges from the call to exit.
4689         (branch_prob): Do not add fake edges for functions that may return
4690         twice.
4692 2003-04-17  DJ Delorie  <dj@redhat.com>
4694         * toplev.c (target_options): Add value field.
4695         (set_target_switch): Handle target options with values.
4696         * doc/tm.texi: Document how fixed vs variable target
4697         options work.
4698         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
4699         config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
4700         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
4701         config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
4702         config/m32r/m32r.h, config/m68hc11/m68hc11.h,
4703         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
4704         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
4705         config/rs6000/rs6000.h, config/rs6000/sysv4.h,
4706         config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
4707         Add value initializer to target options.
4709 2003-04-07  Loren James Rittle  <ljrittle@acm.org>
4711         * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
4713 2003-04-17  Kazu Hirata  <kazu@cs.umass.edu>
4715         * reload1.c (move2add_last_cc0): New.
4716         (reload_cse_move2add): Detect implicit sets.
4717         (move2add_note_store): Notice a store into cc0.
4719 2003-04-17  Roger Sayle  <roger@eyesopen.com>
4721         PR c/10375
4722         * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
4723         function attributes.
4725 2003-04-17  Janis Johnson  <janis187@us.ibm.com>
4727         * doc/sourcebuild.texi (Test Suites): Document support for testing
4728         binary compatibility (moved from testsuite/README.compat).
4730 2003-04-17  Richard Henderson  <rth@redhat.com>
4732         * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
4734 2003-04-17  Simon Law  <sfllaw@engmail.uwaterloo.ca>
4736         * doc/include/gpl.texi: Fix double-spacing after "MA" to match
4737         the one provided by the FSF.
4739 2003-04-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4741         * doc/install.texi (Binaries): Update URL and list of platforms
4742         provided by ftp.thewrittenword.com.
4744 2003-04-17  Richard Henderson  <rth@redhat.com>
4746         * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
4747         (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
4748         * config/xtensa/xtensa.md (call, call_value): Likewise.
4750 2003-04-17  Richard Henderson  <rth@redhat.com>
4752         * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
4753         (print_operand_address): Likewise.
4754         (ep_memory_operand): Likewise.
4755         (special_symbolref_operand): Likewise.
4756         (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
4757         (v850_encode_section_info): Call default_encode_section_info.
4758         (v850_strip_name_encoding): Remove.
4759         * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
4760         (ASM_OUTPUT_LABELREF): Remove.
4761         (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
4762         (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
4763         (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
4764         (ENCODED_NAME_P): Remove.
4765         (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
4766         (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
4767         (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
4769 2003-04-17  Richard Henderson  <rth@redhat.com>
4771         * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
4772         * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
4773         SYMBOL_REF_FUNCTION_P.
4775 2003-04-17  Richard Henderson  <rth@redhat.com>
4777         * config/sparc/sparc.c (sparc_encode_section_info): Remove.
4778         (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
4779         (text_segment_operand): Likewise.
4781 2003-04-17  Richard Henderson  <rth@redhat.com>
4783         * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
4784         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
4785         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
4786         (sh_encode_section_info): Remove.
4787         (sh_strip_name_encoding): Remove.
4788         * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
4789         (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
4790         (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
4791         (ASM_OUTPUT_LABELREF): Remove.
4792         (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
4793         * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
4795 2003-04-17  Richard Henderson  <rth@redhat.com>
4797         * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
4798         (tls_model_chars): Remove.
4799         (larl_operand): Use SYMBOL_REF_FLAGS.
4800         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
4801         (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
4802         (s390_output_mi_thunk): Likewise.
4803         (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
4804         (s390_function_profiler): Likewise.
4805         (s390_encode_section_info): Use default_encode_section_info
4806         and SYMBOL_FLAG_ALIGN1.
4807         (s390_strip_name_encoding): Remove.
4808         * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
4809         * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
4810         (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
4812 2003-04-17  Richard Henderson  <rth@redhat.com>
4814         * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
4815         (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
4816         (print_operand_address): Likewise.
4818         * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
4819         * config/ns32k/ns32k.c (expand_block_move): Don't check
4820         flag_unroll_loops.
4822 2003-04-17  Richard Henderson  <rth@redhat.com>
4824         * config/mcore/mcore.c (mcore_encode_section_info): Don't set
4825         SYMBOL_REF_FLAG.
4827 2003-04-17  Richard Henderson  <rth@redhat.com>
4829         * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
4831         * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
4832         (SYMBOL_REF_MODEL): New.
4833         (LIT_NAME_P): Move from m32r.h.
4834         (m32r_select_section): Remove.
4835         (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
4836         (m32r_strip_name_encoding): Remove.
4837         (m32r_in_small_data_p): New.
4838         (small_data_operand): Use SYMBOL_REF_SMALL_P.
4839         (addr24_operand): Use SYMBOL_REF_MODEL.
4840         (call26_operand): Likewise.
4841         (addr32_operand): Tidy.
4842         (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
4843         * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
4844         (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
4845         (READONLY_DATA_SECTION_ASM_OP): Remove.
4846         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
4847         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
4848         (TARGET_ASM_SELECT_SECTION): Remove.
4849         (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
4850         (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
4851         (LARGE_NAME_P, ENCODED_NAME_P): Remove.
4852         (ASM_OUTPUT_LABELREF): Remove.
4854 2003-04-17  Richard Henderson  <rth@redhat.com>
4856         * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
4857         (encode_section_info): Remove.
4858         * config/ip2k/ip2k-protos.h: Update.
4860 2003-04-17  Richard Henderson  <rth@redhat.com>
4862         * varasm.c (default_encode_section_info): Don't set
4863         SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
4864         * config/i370/i370.c (i370_encode_section_info): Remove.
4865         * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
4866         (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
4867         * config/i370/i370.md (movsi): Likewise.
4869         * config/i370/t-i370: Add missing backslash.
4871 2003-04-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4873         * doc/invoke.texi (inline-limit): Fix pasto.
4875 2003-04-17  Richard Henderson  <rth@redhat.com>
4877         * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
4878         (small_call_insn_operand): Use it.
4879         (SYMBOL_FLAG_EIGHTBIT_DATA): New.
4880         (h8300_eightbit_constant_address_p): Use it.
4881         (SYMBOL_FLAG_TINY_DATA): New.
4882         (h8300_tiny_constant_address_p): Use it.
4883         (h8300_encode_label, h8300_strip_name_encoding): Remove.
4884         (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
4885         * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
4886         (ASM_OUTPUT_LABELREF): Remove.
4888 2003-04-16  Richard Henderson  <rth@redhat.com>
4890         * config/frv/frv.c (symbol_ref_small_data_p): Remove.  Replace
4891         all users with SYMBOL_REF_SMALL_P.
4892         (const_small_data_p): Use SYMBOL_REF_SMALL_P.
4893         (frv_encode_section_info): Remove.
4894         (frv_strip_name_encoding): Remove.
4895         (frv_in_small_data_p): Merge tests from encode_section_info.
4896         (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
4897         * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
4898         (SDATA_NAME_P): Remove.
4899         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
4900         (ASM_OUTPUT_LABELREF): Remove.
4901         (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
4903         * config/frv/frv.c (frv_asm_out_constructor): New.
4904         (frv_asm_out_destructor): New.
4905         * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
4906         (DTORS_SECTION_ASM_OP): New.
4907         (ASM_OUTPUT_CONSTRUCTOR): Remove.
4908         (ASM_OUTPUT_DESTRUCTOR): Remove.
4910 2003-04-16  Richard Henderson  <rth@redhat.com>
4912         * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
4913         SYMBOL_REF_LOCAL_P; abort if not pic.
4914         (cris_encode_section_info): Remove.
4916 2003-04-16  Richard Henderson  <rth@redhat.com>
4918         * config/c4x/c4x.c (c4x_encode_section_info): Remove.
4919         (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
4921         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
4922         flag_inline_trees.
4924 2003-04-16  Richard Henderson  <rth@redhat.com>
4926         * config/avr/avr.c (avr_encode_section_info): Remove.
4927         (avr_insert_attributes): New.
4928         (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
4929         (avr_assemble_integer): Likewise.
4931 2003-04-16  Richard Henderson  <rth@redhat.com>
4933         * arc.c (arc_encode_section_info): Remove.
4934         (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
4935         (arc_print_operand, arc_print_operand_address): Likewise.
4936         * arc.h (EXTRA_CONSTRAINT): Likewise.
4938 2003-04-16  Roger Sayle  <roger@eyesopen.com>
4940         * c-semantics.c (find_reachable_label): New function to find a
4941         potentially reachable label in an expression.
4942         (expand_unreachable_if_stmt): Similar to expand_if_stmt but
4943         assumes the start of the IF_STMT is unreachable (dead) code.
4944         (expand_unreachable_stmt): Similar to expand_stmt but assumes
4945         the start of the statement list is unreachable (dead) code.
4946         (genrtl_if_stmt):  If the controlling expression of the IF
4947         is constant, use expand_unreachable_stmt for the THEN or ELSE
4948         clause as appropriate.
4949         (genrtl_switch_stmt):  Use expand_unreachable_stmt to expand
4950         the body of a SWITCH statement.
4951         (expand_stmt): The code immediately following a "return",
4952         "break", "continue" or "goto" is unreachable.
4953         * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
4955 2003-04-16  Richard Henderson  <rth@redhat.com>
4957         * rtl.h (MEM_ALIAS_SET): Update documentation.
4958         * doc/rtl.texi (Special Accessors): New node.
4959         (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
4961 2003-04-16  Alexandre Oliva  <aoliva@redhat.com>
4963         * reload1.c (reload_cse_noop_set_p): Return false if mode of
4964         SET_DEST is not the same as that returned by...
4965         * cselib.h (cselib_reg_set_mode): ... new function.
4966         * cselib.c (cselib_reg_set_mode): Define it.
4967         (REG_VALUES): Document semantics of first element as set mode.
4968         (cselib_subst_to_values): Skip first element if ELT is NULL.
4969         (cselib_lookup): Likewise.  Insert past the first element.
4970         (cselib_invalidate_regno): NULLify first element.
4971         (cselib_record_set): Set first element.
4973 2003-04-16  Olivier Hainque <hainque@act-europe.fr>
4975         * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
4976         (save_expr): Replace loop by call to skip_simple_arithmetics_at.
4977         * tree.h: Add prototypes for the two new functions.
4978         * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
4979         updates introduced in the previous revision by call to saved_expr_p.
4980         * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
4982         * expr.c (store_field): Force usage of bitfield instructions when
4983         the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
4984         (expand_expr, case BIT_FIELD_REF): likewise.
4986 2003-04-16  Mark Mitchell  <mark@codesourcery.com>
4988         PR middle-end/8866
4989         * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
4990         jumptables.
4992 2003-04-16  Richard Henderson  <rth@redhat.com>
4994         * config/ia64/ia64.c (sdata_symbolic_operand): Use
4995         SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
4996         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
4997         (function_operand): Use SYMBOL_REF_FUNCTION_P.
4998         (ia64_expand_load_address): Likewise.
4999         (ia64_assemble_integer): Likewise.
5000         (ia64_encode_section_info): Remove.
5001         (ia64_strip_name_encoding): Remove.
5002         * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
5003         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
5005 2003-04-16  Richard Henderson  <rth@redhat.com>
5007         * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
5008         (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
5009         (direct_call_operand): Use SYMBOL_FLAG_NEAR.
5010         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
5011         (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
5012         (global_symbolic_operand): Similarly.
5013         (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
5014         (tls_symbolic_operand_type): Likewise.
5015         (alpha_encode_section_info): Use default_encode_section_info.
5016         (alpha_strip_name_encoding): Remove.
5017         (get_tls_get_addr): Split out from ...
5018         (alpha_legitimize_address): ... here.
5019         (alpha_emit_xfloating_libcall): Use init_one_libfunc.
5020         (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
5021         (alpha_initialize_trampoline): Use init_one_libfunc.
5022         (alpha_setup_incoming_varargs): Mark unused parameters.
5023         (alpha_initial_elimination_offset): Likewise.
5024         (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
5025         (unicosmk_unique_section): Use default_strip_name_encoding.
5026         (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
5028 2003-04-16  Aldy Hernandez  <aldyh@redhat.com>
5030         * config.gcc: Add t-spe for eabispe.
5032         * config/rs6000/t-spe: New.
5034 2003-04-16  J"orn Rennecke <joern.rennecke@superh.com>
5036         Re-apply this patch:
5038         2002-05-16  Dale Johannesen  <dalej@apple.com>
5039           * combine.c (cant_combine_insn_p):  Reenable combinations
5040           involving hard regs unless CLASS_LIKELY_SPILLED_P.
5042 2003-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5044         PR/10271
5045         * pa-protos.h (function_arg): Remove last argument.
5046         * pa.c (function_arg): Likewise.  Use CUMULATIVE_ARGS struct instead.
5047         * pa.h (struct hppa_args): Add member incoming.
5048         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
5049         member incoming.
5050         (FUNCTION_ARG): Revise call to function_arg.
5051         (FUNCTION_INCOMING_ARG): Delete.
5053 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
5055         * configure.in: Unify the code which creates symlinks to a
5056         just-built as, ld, objdump, and nm with the code that detects
5057         their presence for purposes of feature tests.
5058         * configure: Regenerate.
5060 2003-04-15  Zack Weinberg  <zack@codesourcery.com>
5062         * varasm.c (output_constant_def): Do not consult
5063         CONSTANT_AFTER_FUNCTION_P.  Remove all code predicated on it.
5064         (after_function_constants, output_after_function_constants): Delete.
5065         * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
5066         * config/mips/mips-protos.h, config/mips/mips.c
5067         (mips16_constant_after_function_p): Delete.
5068         * config/mips/mips.h: Delete #if-0-ed definition of
5069         CONSTANT_AFTER_FUNCTION_P.
5070         * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
5071         mention of CONSTANT_AFTER_FUNCTION_P in comment.
5073 2003-04-15  Geoffrey Keating  <geoffk@apple.com>
5075         * tree.c (next_decl_uid): Mark with GTY.
5076         (next_type_uid): Likewise.
5078 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
5080         PR target/9594:
5081         * sh.c (barrier_align): Also recognize stuff_delay_slot as
5082         an indicator that a barrier was created by branch splitting.
5084 2003-04-15  Mark Mitchell  <mark@codesourcery.com>
5086         * c-decl.c (implicitly_declare): Copy declarations that are going
5087         to be placed in a local scope.
5089 2003-04-15  James A. Morrison  <ja2morri@uwaterloo.ca>
5091         * invoke.texi (Spec Files): Wrap if-exists-else example.
5092         (MCore): Remove duplicate @itemx entries and @opindex entries.
5094 2003-04-15  Ulrich Weigand  <uweigand@de.ibm.com>
5096         * unwind.inc (_Unwind_Backtrace): New function.
5097         * unwind.h (_Unwind_Backtrace): Declare it.
5098         * libgcc-std.ver (_Unwind_Backtrace): Export it.
5100 2003-04-14  Jason Merrill  <jason@redhat.com>
5102         PR middle-end/10336, c++/10401
5103         * jump.c (never_reached_warning): Also stop looking if we reach the
5104         beginning of the function.
5106 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5108         PR target/10338
5109         PR bootstrap/10198
5110         PR bootstrap/10140
5111         * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
5113 2003-04-15  J"orn Rennecke <joern.rennecke@superh.com>
5115         * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
5117 2003-04-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5119         * optabs.c (expand_binop): In multi-word add cases, ensure
5120         XTARGET is copied to TARGET if they are different.
5122 2003-04-15  Olivier Hainque <hainque@act-europe.fr>
5124         * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
5125         to region, possible after integration of function with unreachable
5126         regions that were optimized away.
5128 2003-04-15  Jakub Jelinek  <jakub@redhat.com>
5130         * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
5131         instead of TOC_REGISTER in epilogue in
5132         current_function_calls_eh_return functions.
5134 2003-04-14  Mark Mitchell  <mark@codesourcery.com>
5136         * doc/extend.texi (Empty Structures): Correct description of G++'s
5137         handling of these structures.
5139         * c-decl.c (grokdeclarator): Reject extern redeclarations of
5140         static variables.
5142 2003-04-14  Janis Johnson  <janis287@us.ibm.com>
5144         * config/rs6000/rs6000.md (define_constants): Define constants for
5145         all UNSPEC usage, including new values for TLS support.
5146         (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
5147         load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
5148         load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
5149         macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
5150         stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
5151         eh_set_lr_di): Use them.
5152         * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
5153         rs6000_emit_epilogue) Use them.
5155         * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
5157 2003-04-14  Neil Booth  <neil@daikokuya.co.uk>
5159         * Makefile.in (c-opts.o): Use custom action.
5161 2003-04-14  Douglas B Rupp  <rupp@gnat.com>
5163         * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
5165 2003-04-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5167         * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
5168         handle "superflat arrays" in Ada.
5170         * integrate.c (expand_inline_function): Don't inline if would
5171         lose /u on a BLKmode TARGET.
5173 2003-04-14  Joel Brobecker  <brobecker@gnat.com>
5175         * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
5176         extracted from dbxout_type.
5177         (dbxout_range_type): print large bounds in octal format.
5178         (dbxout_type): Replace extracted code by call to
5179         print_int_cst_bounds_in_octal_p.
5181         * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
5182         of DW_LANG_Ada83 for Ada units.
5184 2003-04-14  Olivier Hainque <hainque@act-europe.fr>
5186         * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
5187         temporary used to round CONST_INT sizes.
5189         * tree.c (int_fits_type_p): Extract generic checks from the case
5190         of constant type bounds. Refine the checks against constant type
5191         bounds to allow for possible decisions against each of these bounds
5192         without requiring both bounds to be constant.
5193         (tree_int_cst_msb): Put back.
5194         * tree.h (tree_int_cst_msb): Likewise.
5196         * global.c (global_conflicts): Prevent allocation of call clobbered
5197         hard regs to pseudos live across abnormal edges, as later passes are
5198         not ready to handle them.
5200         * fold-const.c (fold): Reorder tests for conditional expressions.
5202         * expr.c (highest_pow2_factor): Return unsigned.
5203         * expr.h (offset_address): Likewise.
5204         * emit-rtl.c (offset_address): POW2 argument now unsigned.
5206 2003-04-14  Roger Sayle  <roger@eyesopen.com>
5208         * builtins.c (expand_builtin_strlen):  Evaluate the lengths of
5209         string literals at compile-time.
5211 2003-04-14  Roger Sayle  <roger@eyesopen.com>
5213         * fold-const.c (fold):  Transform (c1 - x) cmp c2, where cmp is a
5214         comparison operation and c1/c2 are floating point constants into
5215         x swap(cmp) (c1 - c2).
5217 2003-04-14  Vladimir Makarov  <vmakarov@redhat.com>
5219         * genautomata.c (output_translate_vect): Fix a typo in loop
5220         condition.
5222 2003-04-14  Hans-Peter Nilsson  <hp@axis.com>
5224         PR target/10377
5225         * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
5226         ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
5227         ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
5228         ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
5229         ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
5230         ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
5231         ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
5232         ("*extopqihi_swap_side", "*extopqisi_swap_side")
5233         ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
5234         When next to constraint R, replace constraint i with n.
5236 Mon Apr 14 16:18:37 CEST 2003  Jan Hubicka  <jh@suse.cz>
5238         PR opt/10024
5239         * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
5241 2003-04-14  Kriang Lerdsuwanakij  <lerdsuwa@users.sourceforge.net>
5243         * doc/contrib.texi (Contributors): Correct my entry.
5245 2003-04-13  Roger Sayle  <roger@eyesopen.com>
5247         * tree.h (DECL_BUILT_IN_NONANSI): Remove.
5248         * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
5249         * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
5250         implies DECL_BUILT_IN to simplify logic.
5251         * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
5253 2003-04-13  Roger Sayle  <roger@eyesopen.com>
5255         * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
5256         (BT_FN_PTR_SIZE_SIZE): Likewise.
5257         * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
5258         New built-in functions for malloc, calloc and strdup respectively.
5259         * calls.c (special_function_p): No need to handle malloc-like
5260         functions any longer.  ECF_MALLOC is set via built-in attributes.
5262         * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
5264         * doc/extend.texi: Document these new built-in functions.
5266 2003-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5268         * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
5269         (expand_builtin_stpcpy): New.
5270         (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
5271         * builtins.def: Add mempcpy & stpcpy support.
5272         * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
5274 2003-04-13  Nick Clifton  <nickc@redhat.com>
5276         * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
5277         "GCC".
5278         * config/rs6000/40x.md, config/rs6000/603.md,
5279         config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
5280         config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
5281         config/rs6000/aix3newas.h, config/rs6000/aix41.h,
5282         config/rs6000/aix43.h, config/rs6000/aix51.h,
5283         config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
5284         config/rs6000/altivec.h, config/rs6000/altivec.md,
5285         config/rs6000/beos.h, config/rs6000/darwin.h,
5286         config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
5287         config/rs6000/eabisim.h, config/rs6000/eabispe.h,
5288         config/rs6000/freebsd.h, config/rs6000/gnu.h,
5289         config/rs6000/host-darwin.c, config/rs6000/linux.h,
5290         config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
5291         config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
5292         config/rs6000/netbsd.h, config/rs6000/power4.md,
5293         config/rs6000/rios1.md, config/rs6000/rios2.md,
5294         config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
5295         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
5296         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
5297         config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
5298         config/rs6000/spe.md, config/rs6000/sysv4.h,
5299         config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
5300         config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
5302 2003-04-13  Nick Clifton  <nickc@redhat.com>
5304         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
5305         support for -mcall-aix switch.
5306         * config/rs6000/eabiaix.h: Delete.
5307         * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
5308         (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
5309         RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
5310         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
5311         * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
5312         debug_stack_info, output_function_profiler,
5313         rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
5314         * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
5315         call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
5316         call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
5317         sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
5318         * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
5319         multilibs.
5320         (MULTILIB_DIRNAMES): Remove mcall-aix directories.
5321         (MULTILIB_EXCEPTIONS): Delete.
5322         (MULTILIB_MATCHES): Remove mcall-aix matches.
5324         * doc/fragments.texi: Replace -mcall-aix example with an ARM
5325         one.
5326         * doc/install.texi: Delete powerpc-*-eabiaix target.
5327         * doc/invoke.texi: Remove documentation of mcall-aix switch.
5328         * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
5329         * config.gcc: Delete powerpc-*-eabiaix target.
5331 2003-04-13  Kazu Hirata  <kazu@cs.umass.edu>
5333         * doc/invoke.texi: Fix typos.
5334         * doc/tm.texi: Likewise.
5336 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
5338         * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
5340 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
5342         * tree.c (build_constructor): New function.
5343         * tree.h: Prototype it.
5345         * c-typeck.c (build_c_cast, pop_init_level)
5346         * profile.c (build_function_info_value, build_gcov_info_value)
5347         (create_profiler):
5348         Use build_constructor.
5350         * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
5352         * objc/objc-act.c (build_constructor):
5353         Rename objc_build_constructor. Use build_constructor.
5354         (build_objc_string_object, objc_add_static_instance)
5355         (init_def_list, init_objc_symtab, init_module_descriptor)
5356         (generate_static_references, build_selector_translation_table)
5357         (build_descriptor_table_initializer, generate_descriptor_table)
5358         (build_protocol_initializer, build_ivar_list_initializer)
5359         (generate_ivars_list, build_dispatch_table_initializer)
5360         (generate_dispatch_table, generate_protocol_list)
5361         (build_category_initializer, build_shared_structure_initializer):
5362         Update to match.
5364 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
5366         * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
5368 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5370         * config/m68hc11/m68hc11-protos.h
5371         (m68hc11_eq_compare_operator): Declare
5372         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
5373         * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
5374         (d_register_operand): Check the operand mode.
5375         (hard_addr_reg_operand): Likewise.
5377 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5379         * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
5380         pattern for dbcc/ibcc generation for 68HC12.
5381         ("doloop_end"): New pattern.
5382         ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
5383         ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
5384         ("m68hc12_dbcc_dec_qi"): New pattern.
5385         ("m68hc12_dbcc_inc_qi"): New pattern.
5386         (split): Add split for the above when we can't use dbcc/ibcc due to
5387         reloading.
5388         (peephole2): Add peephole2 to generate the above when possible.
5390 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5392         * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
5393         mode of operand 0.
5394         (peephole2 optimize const load): Likewise for operand 2.
5395         ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
5396         clobbers CC_REGNUM.
5397         ("*rotrhi3_with_carry"): Likewise.
5398         (ashift:DI 1 split): Update pattern to create the above rotate.
5399         (lshiftrt:DI 1 split): Likewise.
5401 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5403         * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
5404         ("tstqi_z_used" split): Use it.
5405         ("cmphi_z_used"): Likewise.
5406         ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
5407         ("cmpqi_z_used"): Likewise.
5409 2003-04-12  Mark Mitchell  <mark@codesourcery.com>
5411         PR c++/7910
5412         * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
5414 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
5416         * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
5417         * configure, config.in: Regenerate.
5418         * intl.c (gcc_gettext_width): New function.
5419         * intl.h: Prototype it.
5421 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5423         * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
5424         recognize -mnorelax.
5425         (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
5426         (REG_CLASS_NAMES): Add its name.
5427         (REG_CLASS_CONTENTS): Define its content.
5429 2003-04-12  Stephane Carrez  <stcarrez@nerim.fr>
5431         * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
5432         parameters so that offsets are valid for far definition.
5433         (__mulsi3): Likewise and use ret to return.
5434         (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
5436 2003-04-12  David Edelsohn  <edelsohn@gnu.org>
5438         * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
5440 2003-04-12  Alexandre Oliva  <aoliva@redhat.com>
5442         * mklibgcc.in (libgcc-stage-start): For every multilib  directory
5443         containing a libgcc.a, move lib* to the corresponding stage dir.
5445         * Makefile.in (stage1-start, stage2-start, stage3-start,
5446         stage4-start): Move $(SPECS) to specs in stage dir.
5447         (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
5448         back as $(SPECS).
5450         * mklibgcc.in (libgcc-stage-start): Move into the stage directory
5451         object files from the non-libgcc/ multilib directories as well.
5453 2003-04-11  Geoffrey Keating  <geoffk@apple.com>
5455         * profile.c (read_counts_file): Initialise 'checksum'.
5457         * emit-rtl.c (gen_rtx): Really correct typo.
5459         PR c++/9393
5460         * doc/invoke.texi (Debugging Options): Document -frandom-seed.
5461         * configure.in: Check for gettimeofday.
5462         * tree.c (flag_random_seed): Define.
5463         (default_flag_random_seed): New.
5464         (append_random_chars): Use flag_random_seed rather than trying
5465         to acquire randomness here.
5466         * tree.h (default_flag_random_seed): Declare.
5467         * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
5468         descriptions.
5469         (decode_f_option): Handle -frandom-seed.
5470         (print_switch_values): Call default_flag_random_seed.
5471         * flags.h (flag_random_seed): Declare.
5472         * configure: Regenerate.
5473         * config.in: Regenerate.
5474         * config/alpha/t-crtfm: Use -frandom-seed.
5476         * doc/extend.texi (Empty Structures): New.
5478         * c-pch.c: Include flags.h.  Add comments to routines.
5479         (struct c_pch_validity): New.
5480         (get_ident): Update PCH file version number.
5481         (pch_init): Output current debugging type.
5482         (c_common_valid_pch): Check debugging type.
5483         * Makefile.in (c-pch.o): Update dependencies.
5484         * flags.h (debug_type_names): Declare.
5485         * toplev.c (debug_type_names): Move out of decode_g_option.
5487 2003-04-11  Eric Christopher  <echristo@redhat.com>
5489         * emit-rtl.c (gen_rtx): Fix typos.
5491 2003-04-11  Richard Henderson  <rth@redhat.com>
5493         * emit-rtl.c (gen_rtx): Zero '0' fields.
5495 2003-04-11  Richard Henderson  <rth@redhat.com>
5497         PR c++/10202
5498         * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
5499         not COMPLETE_TYPE_P for re-invoking layout_decl.
5501 2003-04-11  Simon Law  <sfllaw@engmail.uwaterloo.ca>
5503         * doc/bugreport.texi: Fix paragraph breaking between sections
5504         in preparation for TeXinfo's paragraph indentation fixes.
5505         * doc/extend.texi: Ditto.
5506         * doc/invoke.texi: Ditto.
5507         * doc/objc.texi: Ditto.
5508         * doc/gcov.texi: Wrap 'gcov' in @command{}.
5509         * doc/invoke.texi (Darwin Options): Add a preamble.
5511 2003-04-11  Richard Henderson  <rth@redhat.com>
5513         * config/i386/i386.c (tls_model_chars): Remove.
5514         (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
5515         (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
5516         (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
5517         (tls_symbolic_operand_1): Likewise.
5518         (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
5519         * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
5520         (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
5521         * config/i386/winnt.c (i386_pe_encode_section_info): Replace
5522         bits "copied from i386.h" with default_encode_section_info.
5524 2003-04-11  Richard Henderson  <rth@redhat.com>
5526         * rtl.def (SYMBOL_REF): Add two 0 fields.
5527         * gengtype.c (adjust_field_rtx_def): Handle them.
5528         * print-rtl.c (print_rtx): Print them.
5529         * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
5530         (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
5531         (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
5532         (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
5533         (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
5534         (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
5535         (SYMBOL_FLAG_MACH_DEP): New.
5536         * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
5537         * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
5538         (assemble_static_space): Set SYMBOL_REF_FLAGS.
5539         (assemble_trampoline_template): Likewise.
5540         (output_constant_def, force_const_mem): Likewise.
5541         (default_encode_section_info): New.
5542         * output.h: Declare it.
5543         * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
5545 2003-04-11  Richard Henderson  <rth@redhat.com>
5547         * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
5548         (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
5549         * optabs.c (init_optabs): Initialize them.
5550         (init_libfuncs): Use init_one_libfunc.
5551         * calls.c (expand_call): Use gcov_flush_libfunc.
5552         * expr.c (store_constructor): Use setbits_libfunc.
5553         * function.c (expand_main_function): Use init_one_libfunc.
5554         * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
5556 2003-04-11  Mark Mitchell  <mark@codesourcery.com>
5558         * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
5559         documentation; add DECL_FRIEND_CONTEXT.
5561 2003-04-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5563         * doc/install.texi (hppa): Update links for HP-UX patches.  Revise
5564         notes on linker selection and configuration for 64-bit HP-UX port.
5565         * doc/invoke.texi (hppa): Remove hppa text from description for
5566         -ffunction-sections and -fdata-sections.  Document -static, -nolibdld
5567         and -threads options.
5569         * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
5570         libc.a on libdld.sl when -static is specified and -nolibdld is not
5571         specified.
5572         * pa64-hpux.h (LIB_SPEC): Likewise.
5573         * pa-hpux11.h (LIB_SPEC): Likewise.
5574         (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
5575         is not specified.
5577 2003-04-11  Zack Weinberg  <zack@codesourcery.com>
5579         * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
5580         not IDENTIFIER_LOCAL_VALUE.
5582 2003-04-11  Richard Henderson  <rth@redhat.com>
5584         PR c/10201
5585         * expr.c (expand_expr): Move DECL_RTL frobbing ...
5586         * stor-layout.c (layout_decl): ... here.
5588 2003-04-11  James A. Morrison <ja2morri@uwaterloo.ca>
5590         * doc/invoke.texi: Eliminate extra white-space caused by
5591         @gccoptlist{ on its own line.
5592         * doc/invoke.texi: Ensured there are two spaces between each option.
5593         * doc/invoke.texi: Re-wrapped option lines that were too wide.
5594         Added @gol to options that didn't have them.
5596 2003-04-11  Nathan Sidwell  <nathan@codesourcery.com>
5598         * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
5599         gcov-iov.h.
5601         Simplify interface to gcov reading and writing.
5602         * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
5603         gcov_alloc, gcov_modified, gcov_errored): Move into ...
5604         (struct gcov_var gcov_var): ... this static structure.
5605         (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
5606         Return void.
5607         (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
5608         read object.
5609         (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
5610         (gcov_reserve_length): Remove.
5611         (gcov_write_tag): New.
5612         (gcov_write_length): Adjust.
5613         (gcov_read_summary, gcov_write_summary): Adjust.
5614         (gcov_eof, gcov_ok): Rename to ...
5615         (gcov_is_eof, gcov_is_error): ... here. Return error code.
5616         (gcov_save_position, gcov_resync): Rename to ...
5617         (gcov_position, gcov_seek): ... here.
5618         (gcov_skip, gcov_skip_string): Remove.
5619         (gcov_error): Remove.
5620         (gcov_open, gcov_close): Adjust.
5621         * gcov.c (find_source): Take const char *, copy it on allocation.
5622         (read_graph_file): Adjust.
5623         (read_count_file): Adjust.
5624         * libgcov.c (gcov_exit): Adjust.
5625         * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
5626         tag_arc_counts, tag_summary): Return void. Adjust.
5627         (struct tag_format): Adjust proc member.
5628         (dump_file): Adjust gcov calls.
5630 2003-04-11  Alexandre Oliva  <aoliva@redhat.com>
5632         * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
5633         mkfixinc.sh.
5634         * fixinc/mkfixinc.sh (defs): Add LIBERTY.
5635         * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
5636         build != host sysrooted builds.
5637         * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
5638         TARGET_SYSTEM_ROOT even on sysrooted natives.
5639         * configure: Rebuilt.
5641 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
5643         * c-decl.c (struct binding_level): Add shadowed_tags and
5644         function_body; remove this_block, tag_transparent, and
5645         subblocks_tag_transparent; update comments.
5646         (clear_binding_level, lookup_tag_reverse): Kill.
5647         (make_binding_level): Use ggc_alloc_cleared or memset.
5648         (lookup_tag): Remove struct binding_level* parameter.  All
5649         callers changed. Just look at IDENTIFIER_TAG_VALUE, and
5650         current_binding_level->tags if asked for thislevel_only or if
5651         we might have to diagnose "struct foo; union foo;"
5652         (pushlevel): Ignore argument.  Do not push another binding
5653         level on the transition from the parameters to the top level
5654         of the function body; just tweak the flags and proceed.
5655         (poplevel): Overhaul.  Clear IDENTIFIER_TAG_VALUEs; on exiting
5656         a function body, separate the parameter list from the
5657         top-level local variables.
5658         (set_block): Do nothing.
5659         (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
5660         shadowed_tags if necessary.
5661         (warn_if_shadowing): Nuke the special case for local shadowing
5662         parameter.
5663         (pushdecl): Do not create a shadow entry if we are replacing
5664         an older decl in the same binding level.
5665         (pushdecl_function_level): Tweak for new way of indicating
5666         function scope.
5667         (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
5668         (start_function): Don't set subblocks_tag_transparent.
5669         (finish_function): Fix up the binding_level stack for totally
5670         empty functions.  Otherwise, don't call poplevel.
5672         * c-common.c (shadow_warning): MANDATORY argument is no longer
5673         necessary.  Always use plain warning.
5674         * c-common.h: Update to match.
5676         * cfglayout.c (scope_to_insns_initialize): Clear block when we
5677         hit the FUNCTION_DECL.
5678         * function.c: Do not create cyclic tree structure.
5680 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
5682         * c-tree.h (struct lang_identifier): Replace global_value,
5683         local_value members with symbol_value, tag_value.  Kill
5684         implicit_decl and limbo_value.
5685         (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
5686         IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
5687         C_MISSING_PROTOTYPE_WARNED): Kill.
5688         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
5689         C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
5690         (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
5691         (implicit_decl_warning, lookup_name_current_level,
5692         record_function_scope_shadow): Don't prototype.
5693         (pushdecl_function_level): Prototype.
5695         * c-decl.c (truly_local_externals): New variable.
5696         (struct binding_level): Adjust commentary.
5697         (get_function_binding_level, clear_limbo_values,
5698         record_function_scope_shadow): Kill.
5699         (lookup_name_current_level, implicit_decl_warning): Are now static.
5700         (any_external_decl, record_external_decl): New static functions.
5701         (clone_underlying type): Split out of pushdecl.
5702         (c_print_identifier): Update to match changes to struct
5703         lang_identifier.
5704         (poplevel): Delete #if 0 block.  Make externals invisible
5705         instead of clearing their IDENTIFIER_SYMBOL_VALUEs.  Don't
5706         call clear_limbo_values.  Refer to IDENTIFIER_SYMBOL_VALUE not
5707         IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
5708         (duplicate-decls): For real parm decl after a forward decl,
5709         set TREE_ASM_WRITTEN here.  Allow void foo(...) followed by
5710         foo(...) { } with only a warning.  Say whether a previous
5711         declaration was implicit.
5712         (warn_if_shadowing): Now handles all shadowing, not just
5713         local-over-local.  Clarify comments.
5714         (pushdecl): Rewritten.  There is no longer a distinction
5715         between global and local symbol values; they're all
5716         IDENTIFIER_SYMBOL_VALUE.  Call record_external_decl on all
5717         DECL_EXTERNAL decls, and use any_external_decl to check
5718         against previous externals.  Kill #if 0 blocks.  Don't
5719         tolerate error_mark_node being NULL.
5720         (pushdecl_top_level): Handle only those cases which
5721         Objective C (the only user) needs.
5722         (pushdecl_function_level): New function.
5723         (implicitly_declare): Create ordinary decls with
5724         C_DECL_IMPLICIT set.  Recycle old decls, however they got
5725         created.
5726         (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
5727         for C_DECL_INVISIBLE symbols.
5728         (lookup_name_current_level): Likewise.  Use chain_member.
5729         (c_make_fname_decl): Don't muck with DECL_CONTEXT.
5730         Use pushdecl_function_level.
5731         (builtin_function): Use C_DECL_INVISIBLE.
5732         (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
5733         Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
5734         (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
5735         (identifier_global_value): Same.  Must scan
5736         global_binding_level in extremis.
5738         * c-typeck.c (undeclared_variable): New static function, split
5739         from build_external_ref.
5740         (build_external_ref): Use DECL_CONTEXT, not
5741         IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
5742         an instance variable.  Restructure for clarity.
5743         * objc/objc-act.c: Use identifier_global_value, not
5744         IDENTIFIER_GLOBAL_VALUE.
5746 2003-04-08  Jonathan Wakely  <redi@gcc.gnu.org>
5748         * doc/extend.texi (Template Instantiation): Refer to ISO standard,
5749         not Working Paper.
5750         * doc/invoke.texi (C++ Dialect Options): Same.
5752 2003-04-10  Zack Weinberg  <zack@codesourcery.com>
5754         * tree.c (tree_operand_check_failed): New function.
5755         * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
5756         TREE_RTL_OPERAND_CHECK): New checking macros.
5757         (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
5758         RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
5759         CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
5760         EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
5761         EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
5762         TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
5763         checking macros.
5765 Thu Apr 10 23:52:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
5767         PR inline-asm/8803
5768         * function.c (instantate_virtual_regs):  Verify that all ASM statements
5769         match after the virutal regs instantiation.
5771 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
5773         * ia64-protos.h (addp4_optimize_ok): New.
5774         * ia64.c (addp4_optimize_ok): New.
5775         * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
5776         (*ptr_extend_plus_2): Ditto.
5778 2003-04-10  Steve Ellcey  <sje@cup.hp.com>
5780         * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
5781         not with convert_memory_address.
5782         (store_constructor): Ditto, and same for copy_size_rtx.
5783         (expand_expr): Ditto.
5785 2003-04-10  Douglas B Rupp  <rupp@gnat.com>
5787         * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
5789 2003-04-10  Bob Wilson  <bob.wilson@acm.org>
5791         * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
5792         even if it is configured to be write-through.
5794 2003-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
5796         * config/s390/s390.c (larl_operand): Do not allow symbols
5797         marked with '@'.
5798         (s390_encode_section_info): Mark symbols with forced 1-byte
5799         alignment with '@'.
5800         (s390_strip_name_encoding): Strip '@'.
5801         (legitimize_pic_address): Handle symbols that are not valid
5802         LARL operands in 64-bit mode.
5804 2003-04-10  Andrew Haley  <aph@redhat.com>
5806         * tree-inline.c (inlinable_function_p): Disable inlining for
5807         synchronized methods.
5809 2003-04-09  Steven Bosscher  <steven@gcc.gnu.org>
5811         * c-common.h (lang_statement_code_p): Remove declaration.
5812         (statement_code_p): Ditto.
5813         (c_common_stmt_codes): Define; list of c-common statement codes.
5814         (statement_code_p): New extern declaration.
5815         (STATEMENT_CODE_P): Define.
5816         (INIT_STATEMENT_CODES): Define.
5817         * c-common.c (statement_code_p): Kill the function, declare
5818         as an array of bools instead.
5819         (lang_statement_code_p): Remove.
5820         (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
5821         (c_safe_from_p): Ditto.
5822         * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
5823         to initialize the statement_code_p array.
5824         * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
5825         statement_code_p.
5826         (copy_tree_r): Ditto.
5827         * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
5828         statement tree codes.
5829         * cp/lex.c (cxx_init): Add missing print line break.  Use
5830         INIT_STATEMENT_CODES to initialize the statement_code_p array.
5831         * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
5832         instead of statement_code_p.
5833         * cp/pt.c (tsubst_expr): Ditto.
5834         * cp/tree.c (verify_stmt_tree_r): Ditto.
5835         (cp_statement_code_p): Remove.
5836         (init_tree): Don't set lang_statement_code_p, it's gone.
5838 2003-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
5839             Zack Weinberg  <zack@codesourcery.com>
5841         * regrename.c (struct du_chain): Use a bitfield for reg_class.
5842         * cse.c (struct qty_table_elem, struct table_elt, struct set):
5843         Use bitfields for fields holding enum rtx_code or
5844         enum machine_mode values.  Add comments explaining size choices.
5846 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
5848         * config/fp-bit.c (unpack_d): Handle pair of doubles with
5849         different signs correctly.
5851 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
5853         * sched-deps.c (reg_pending_barrier_mode): New enumeration.
5854         (reg_pending_barrier): Make it of the enumeration type.
5855         (sched_analyze_2): Define the barrier as MOVE_BARRIER or
5856         TRUE_BARRIER.
5857         (sched_analyze): Ditto.
5858         (sched_analyze_insn): Ditto.  Use anti-dependencies for
5859         MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
5860         (init_deps_global): Initialize the barrier as NO_BARRIER.
5862 2003-04-09  Vladimir Makarov  <vmakarov@redhat.com>
5864         * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
5865         Check that asm insn starts on a new cycle.  Add nops after asm
5866         insn to end bundle.
5867         (bundling): Move insn type evaluation from the loop.  Call
5868         issue_nops_and_insn with the new parameter.  Ignore changing
5869         position for nops after asm insn.
5871 2003-04-09  Alexandre Oliva  <aoliva@redhat.com>
5873         * optabs.c: Comment that gen_add2_insn and others may actually
5874         return emitted insns, if the gen functions turn out to return
5875         emitted insns.
5876         * reload1.c (reload_cse_move2add): Cope with emitted insns from
5877         gen_add2_insn.
5879 2003-04-09  Richard Henderson  <rth@redhat.com>
5881         * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
5882         but not tls_symbolic_operand.
5883         (ia64_expand_load_address): Remove scratch operand.
5884         (ia64_expand_tls_address): Split out from ia64_expand_move.
5885         (ia64_expand_move): Split symbolics only after reload.
5886         (ia64_emit_cond_move): New.
5887         * config/ia64/ia64-protos.h: Update.
5888         * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
5889         (symbolic splitter): Accept SImode operands too.
5890         (cmove splitter): Use ia64_emit_cond_move.
5892 2003-04-09  Nick Clifton  <nickc@redhat.com>
5894         * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
5895         newer.
5896         * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
5897         instead of -mno-fpu.
5898         * config/arm/semi.h (ASM_SPEC): Likewise.
5899         * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
5900         but only if -msoft-float is specified pass.  Otherwise pass
5901         -mfpu=softvfp.
5903 2003-04-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5905         * function.c (purge_addressof): Use free_INSN_LIST_node instead of
5906         free_EXPR_LIST_node.
5908 2003-04-08  Roger Sayle  <roger@eyesopen.com>
5910         * fold-const.c (fold):  Use "fold" following build in more places.
5911         Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
5912         pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
5914 2003-04-08  Roger Sayle  <roger@eyesopen.com>
5916         * builtins.c (fold_builtin):  Constant fold expressions as x*0.5
5917         instead of x/2.0.  Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
5918         log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
5919         pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
5920         Delete function scope "fcode" variable to avoid shadowing.
5922 2003-04-08  Kevin Buettner  <kevinb@redhat.com>
5924         * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
5925         Take into account DWARF_INITIAL_LENGTH_SIZE.
5927 2003-04-08  Hans-Peter Nilsson  <hp@axis.com>
5929         * reorg.c (fill_slots_from_thread): When considering changing the
5930         insn following a reg-to-reg copy insn to use the source reg of the
5931         copy, bail out if there's overlap between the registers.
5933 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5935         * function.c (postponed_insns): New.
5936         (purge_addressof_1): Postpone processing of insns if addressofs
5937         are not put into stack.
5938         (purge_addressof): Process postponed insns.
5940 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
5942         * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
5943         this is FP_MODE_DOUBLE .
5944         * sh.c (ra.h): #include.
5945         (push_regs): Add second parameter.  Changed all callers.
5946         If necessary, set fpscr before saving floating point registers.
5947         (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
5948         do saves / restores with SZ == 1.
5949         (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
5950         (sh_expand_epilogue): Likewise.  For TARGET_FMOVD, if floating point
5951         registers are being restored, restore FPSCR only after restoring them.
5953 2003-04-08  Aldy Hernandez  <aldyh@redhat.com>
5955         * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
5956         regardless of architecture.
5957         (spe_init_builtins): Change V2SI and V2SF types to opaque types.
5959 2003-04-08  J"orn Rennecke <joern.rennecke@superh.com>
5961         * sh.c (push_regs, calc_live_regs): Return int.  Take single
5962         HARD_REG_SET * parameter.  Changed all callers.
5964 Tue Apr  8 11:12:07 CEST 2003  Jan Hubicka  <jh@suse.cz>
5966         * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
5967         GOTOFF operand.
5968         (legitimize_pic_address): Move plus outside the unspec.
5969         * i386.c (legitimate_constant_p):  Check (CONST (PLUS (UNSPEC ...
5970         for validity.
5972 2003-04-08  Nathan Sidwell  <nathan@codesourcery.com>
5974         * gcov-io.h (gcov_save_position): Remove __inline__ from
5975         declaration.
5977 2003-04-07  Matt Kraai  <kraai@alumni.cmu.edu>
5979         * doc/install.texi: Use @command and @samp for single- and
5980         multi-word commands respectively.
5981         * doc/makefile.texi: Likewise.
5982         * doc/sourcebuild.texi: Likewise.
5984 2003-04-07  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
5985             Richard Henderson  <rth@redhat.com>
5987         PR c/9516
5988         * expr.c (safe_from_p): Rearrange to avoid deep recursion in
5989         favour of looping and tail recursion for TREE_LIST and binops.
5991 2003-04-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5993         * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
5994         for insns without luid.
5996 2003-04-07  Glen Nakamura  <glen@imodulo.com>
5998         PR opt/8634
5999         * explow.c (maybe_set_unchanging): Don't flag non-static const
6000         aggregate type initializers with RTX_UNCHANGING_P.
6002 2003-04-07  Richard Henderson  <rth@redhat.com>
6004         PR opt/8634
6005         * function.c (purge_addressof_1): Don't try arithmetics for
6006         unchanging memories.
6008 2003-04-07  Janis Johnson  <janis187@us.ibm.com>
6010         * doc/sourcebuild.texi (Test Suites): Document testing support for
6011         gcov and profile-directed optimizations; describe gcc.misc-tests.
6013 Mon Apr  7 22:19:59 CEST 2003  Jan Hubicka  <jh@suse.cz>
6015         PR target/10077
6016         * i386.md (movsi_1, movsi_nointerunit_1):  Fix SSEMOV alternative.
6018 2003-04-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
6020         * doc/rtl.texi (Comparison operations): Update to
6021         record the allowed comparison modes.
6023 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
6025         * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
6026         V2SI_type_node to opaque_V2SI_type_node.  Rename all
6027         V2SF_type_node to opaque_V2SF_type_node.
6028         (rs6000_init_builtins): Define opaque_V2SI_type_node and
6029         opaque_V2SF_type_node.
6030         (is_ev64_opaque_type): The types opaque_V2SI_type_node and
6031         opaque_V2SF_type_node are opaque types.
6033 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
6035         * gcse.c (replace_store_insn): Use single_set.
6037 2003-04-07  Nathan Sidwell  <nathan@codesourcery.com>
6039         Change gcov file interface to single file at a time.
6040         * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
6041         Convert to C89 prototypes.
6042         (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
6043         gcov_error, gcov_modified): New static variables.
6044         (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
6045         functions.
6046         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
6047         gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
6048         (gcov_read_summary, gcov_write_summary): Adjust.
6049         (gcov_save_position, gcov_reserve_length, gcov_write_length):
6050         Adjust.
6051         (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
6052         (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
6053         (da_file_position, da_file_seek, da_file_write, da_file_read):
6054         Remove.
6055         (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
6056         * gcov.c (gcov_type): Don't typedef here.
6057         (IN_GCOV): #define
6058         (read_graph_file, read_count_file): Adjust.
6059         * gcov-dump.c (gcov_type): Don't typedef here.
6060         (IN_GCOV): #define.
6061         (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
6062         Remove FILE parameter, adjust.
6063         (struct tag_format): Adjust proc member.
6064         (dump_file): Adjust.
6065         * libgcov.c (IN_LIBGCOV): #define.
6066         (gcov_exit): Adjust.
6067         * loop-init.c: Don't #include gcov-io.h
6068         * profile.c (struct counts_entry): New structure to hold counter
6069         values.
6070         (struct section_reference, struct da_index_entry): Remove.
6071         (bbg_file, da_file): Remove.
6072         (htab_counts_index_hash, htab_counts_index_eq,
6073         htab_counts_index_del): Replace with ...
6074         (htab_counts_entry_hash, htab_counts_entry_eq,
6075         htab_counts_entry_del): ... these.
6076         (cleanup_counts_index, index_counts_file): Remove.
6077         (read_counts_file): New function.
6078         (get_exec_counts): Adjust.
6079         (compute_branch_probabilities): Don't free the exec counts here.
6080         (branch_prob): Adjust.
6081         (init_branch_prob): Adjust.
6082         (end_branch_prob): Adjust.
6084 2003-04-07  Aldy Hernandez  <aldyh@redhat.com>
6086         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
6087         -mfloat-gprs.
6089         * config/rs6000/rs6000.c: Delete rs6000_fprs.
6090         Declare rs6000_float_gprs.
6091         Declare rs6000_float_gprs_string.
6092         (rs6000_parse_float_gprs_option): New.
6093         (rs6000_override_options): Genericize rs6000_parse_* calls to use
6094         rs6000_parse_yes_no_option.
6095         Change check for cpu=8540, to use TARGET_E500.
6096         (rs6000_parse_isel_option): Delete.
6097         (rs6000_parse_spe_option): Delete.
6098         (rs6000_parse_vrsave_option): Delete.
6100         * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
6101         Define rs6000_float_gprs_string.
6102         (TARGET_OPTIONS): Add rs6000_float_gprs option.
6104         * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
6106         * config/rs6000/eabispe.h: Set rs6000_float_gprs.
6108 Mon Apr  7 14:36:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
6110         PR opt/10024
6111         * cfglayout.c (cfg_layout_redirect_edge):
6112         Redirect any branch edges unified with the fallthru one.
6113         * cfgrtl.c (force_nonfallthru_and_redirect):  Do not special
6114         case fallthru edges when called via cfglayout.c
6116 2003-04-07  J"orn Rennecke <joern.rennecke@superh.com>
6118         * c-typeck.c (output_init_element): Check for type == error_mark_node.
6120 2003-04-07  Kazu Hirata  <kazu@cs.umass.edu>
6122         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
6123         split.
6124         (a splitter): Do zero-extension via HImode.
6126 2003-04-07  James A. Morrison <ja2morri@uwaterloo.ca>
6128         * doc/invoke.texi: Eliminate extra white-space caused by
6129         @gccoptlist{ on its own line.
6130         * doc/invoke.texi: Ensured there are two spaces between each option.
6131         * doc/invoke.texi: Re-wrapped option lines that were too wide.
6132         Added @gol to options that didn't have them.
6134 2003-04-07  James A Morrison <ja2morri@student.math.uwaterloo.ca>
6136         * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
6138 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
6140         * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
6141         at the sizes of the relevant structures, rather than relying
6142         on TREE_CODE_LENGTH.  Call lang_hooks.tree_size to get the
6143         sizes of any such we don't know about.  Use
6144         lang_hooks.identifier_size for IDENTIFIER_NODE.
6146         (initializer_zerop): Use CONSTRUCTOR_ELTS.
6147         * tree.def: Update commentary.  Make fourth element of
6148         the definition for all 'c' and 'x' nodes zero.
6150         * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
6151         * langhooks-def.h: Update to match.
6152         * langhooks.c: New default, lhd_tree_size.
6154         * c-common.def (SRCLOC): Kill.
6155         * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
6156         Remove entirely - was already #if-ed out.
6159 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
6161         * mklibgcc.in: Use a here document to avoid running afoul of
6162         shells that generate control-A from "echo \1".
6164 2003-04-06  Aldy Hernandez  <aldyh@redhat.com>
6166         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
6167         option.
6169         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
6170         rs6000_spe.
6172         * config/rs6000/eabi.h (TARGET_E500): Define.
6174         * config/rs6000/rs6000.h (TARGET_E500): Define.
6175         (TARGET_OPTIONS): Add spe= option.
6176         Declare rs6000_spe and rs6000_spe_string extern.
6178         * config/rs6000/rs6000.c (branch_positive_comparison_operator):
6179         Change TARGET_SPE to TARGET_E500.
6180         (ccr_bit): Change TARGET_SPE to TARGET_E500.  Check for
6181         !TARGET_FPRS.
6182         (print_operand): Same.
6183         (rs6000_generate_compare): Same.
6184         (output_cbranch): Same.
6185         (rs6000_spe): Declare.
6186         (rs6000_spe_string): Declare.
6187         (rs6000_override_options): Call rs6000_parse_spe_option.
6188         (rs6000_parse_spe_option): New.
6190 2003-04-06  Steven Bosscher  <steven@gcc.gnu.org>
6192         * hashtable.c (gcc_obstack_init): Delete this function
6193         and everything related to it.
6194         * hashtable.h: Remove prototype.
6195         * bitmap.c (bitmap_element_allocate): Cleanup redundant
6196         defines.  Cleanup some unnecessary whitespace.
6197         * defaults.h (obstack_chunk_alloc): Redefine with
6198         appropriate casts for libiberty obstacks.
6199         (obstack_chunk_free): Ditto.
6200         (OBSTACK_CHUNK_SIZE): Define, default to 0.
6201         (gcc_obstack_init): Define as a call to _obstack_begin.
6202         * tree.c (print_obstack_statistics): Delete this unused
6203         function.
6204         * tree.h (obstack): Don't forward-declare.
6205         (print_obstack_statistics): Delete prototype.
6206         (print_obstack_name): Ditto.
6207         (gcc_obstack_init): Ditto.
6208         * rtl.h (gcc_obstack_init): Ditto.
6209         * java/jv-scan.c (gcc_obstack_init): Delete this
6210         function, its prototype and related defines.
6211         * java/jvgenmain.c (gcc_obstack_init): Delete this
6212         function, and related defines.
6213         * java/parse-scan.y (obstack_chunk_alloc): Don't define.
6214         (obstack_chunk_free): Ditto
6216 2003-04-06  Geoffrey Keating  <geoffk@apple.com>
6218         * dbxout.c (dbxout_handle_pch): Move prototype out from
6219         #if defined DBX_DEBUGGING_INFO.
6221 2003-04-05  Nathan Sidwell  <nathan@codesourcery.com>
6223         * gcov.c (struct arc_info): Replace local_span with cycle.
6224         (struct block_info): Replace u.span with u.cycle. Add is_call_return.
6225         (solve_flow_graph): Set is_call_return.
6226         (add_line_counts): Adjust. In block mode, blocks attach to last line.
6227         (accumulate_line_counts): Find graph cycles, not spanning tree.
6228         (output_branch_count): Adjust.
6229         (output_lines): Adjust.
6230         * doc/gcov.texi: Update.
6232 2003-04-06  Kazu Hirata  <kazu@cs.umass.edu>
6234         * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
6235         the second alternative to "#".
6237 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
6239         * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
6240         (single_zero_operand): Likewise.
6242 2003-04-05  Daniel Berlin  <dberlin@dberlin.org>
6244         * Makefile.in (df.o):  Depend on alloc-pool.h, not obstack.h.
6245         * df.c: Include alloc-pool.h, not obstack.h.
6246         (df_ref_obstack): Remove.
6247         (df_ref_pool, df_link_pool): Add pools.
6248         (df_alloc): Init the new pools.
6249         (df_free): And free them.
6250         (df_link_create): Use the pools.
6251         (df_ref_create): Ditto.
6253 2003-04-05  Kazu Hirata  <kazu@cs.umass.edu>
6255         * simplify-rtx.c: Fix formatting.
6257 2003-04-05  Andrew Pinski  <apinski@apple.com>
6259         * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
6260         reg with reg1 == reg2 and offset1 = -8.
6262 2003-04-05  David Edelsohn  <edelsohn@gnu.org>
6264         * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
6265         multiply costs.  Correct Power4 divide costs.
6266         * config/rs6000/power4.md: Restore multiply and FP latency.
6268 2003-04-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6270         * alias.c (find_base_term): Export.
6271         * rtl.h (find_base_term): Declare.
6272         * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
6273         instead of flag_exceptions.  Move test for parameter passing ...
6274         (store_killed_in_insn): ... here.
6276 2003-04-05  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6278         PR bootstrap/10267
6279         * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
6280         for configuring.
6282 2003-04-04  Geoffrey Keating  <geoffk@apple.com>
6284         * dbxout.c (scope_labelno): Add GTY.
6285         (have_used_extensions): Add GTY.
6286         (source_label_number): Add GTY.
6287         (lastfile): Add GTY.
6288         (lastfile_is_base): New.
6289         (base_input_file): New.
6290         (dbxout_handle_pch): New.
6291         (dbx_debug_hooks): Add handle_pch.
6292         (xcoff_debug_hooks): Likewise.
6293         (dbxout_function_end): Remove scope_labelno.
6294         (dbxout_init): Set base_input_file.
6295         (dbxout_handle_pch): New.
6296         (dbxout_source_file): Honour lastfile_is_base.
6297         * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
6298         * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
6299         * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
6300         * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
6301         * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
6302         * debug.h (struct gcc_debug_hooks): Add handle_pch.
6303         * c-pch.c (pch_init): Don't call start_source_file, but do call
6304         handle_pch.
6305         (c_common_write_pch): Call handle_pch.
6306         (c_common_read_pch): Don't call start_source_file,
6307         or end_source_file.
6309 Fri Apr  4 17:43:52 2003  Olivier Hainque <hainque@act-europe.fr>
6311         * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
6312         use of default attributes to agree MEM_ALIGN macro.
6314 Fri Apr  4 17:33:24 2003  Joel Brobecker  <brobecker@gnat.com>
6316         * dbxout.c (dbxout_type): When printing type index of range type
6317         whose bounds are printed in octal format, print type of parent type if
6318         it exists so enumerated type descriptions are not transformed
6319         into unsigned types.
6321 2003-04-04  Kazu Hirata  <kazu@cs.umass.edu>
6323         * config/h8300/h8300-protos.h: Add a prototype for
6324         compute_a_shift_cc.
6325         * config/h8300/h8300.c (shift_one): Update the CC status.
6326         (shift_two): Likewise.
6327         (output_a_shift_cc): Set cc_inline and cc_special.
6328         (compute_a_shift_cc): New.
6329         * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
6331 2003-04-04  Richard Henderson  <rth@redhat.com>
6333         * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
6335 2003-04-04  Loren James Rittle  <ljrittle@acm.org>
6337         * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
6338         * fixinc/fixincl.x: Rebuilt.
6339         * fixinc/tests/base/stdio.h: Regenerated.
6341 2003-04-04  Nathan Sidwell  <nathan@codesourcery.com>
6343         * gcov.c (accumulate_line_counts): Fix span tree merge bug.
6345 Fri Apr  4 15:58:52 2003  J"orn Rennecke <joern.rennecke@superh.com>
6347         * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
6348         (NORMAL_MODE).
6349         * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
6351 2003-04-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6353         * doc/contrib.texi (Contributors): Add entries for Wolfgang
6354         Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
6355         Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
6356         Danny Smith, and Ulrich Weigand.
6357         Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
6358         entry.
6360 2003-04-04  Nick Clifton  <nickc@redhat.com>
6362         * config/sparc/sol2-bi.h: Revert previous delta.
6363         * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
6365 2003-04-04  Nick Clifton  <nickc@redhat.com>
6367         * config/v850/v850.c (expand_prologue): Only use register save
6368         helper functions if long calls are not being used.
6369         Add a clobber of r11 id using long calls.
6370         (pattern_is_ok_for_prologue): Account for the extra clobber.
6371         (construct_save_jarl): Likewise.
6372         * config/v850/v850.md (prolog pattern): Do not use this pattern
6373         for v850e's.
6375 2003-04-04  Andreas Schwab  <schwab@suse.de>
6377         * stor-layout.c (layout_decl): Avoid syntax error in last change
6378         when PCC_BITFIELD_TYPE_MATTERS is defined but not
6379         EMPTY_FIELD_BOUNDARY.
6381 2003-04-03  Jason Merrill  <jason@redhat.com>
6383         PR c/10175
6384         * jump.c (never_reached_warning): Revert patch of 2002-11-02.
6385         Look backwards for a line note.
6387 2003-04-03  Neil Booth  <neil@daikokuya.co.uk>
6389         * fix-header.c (read_scan_file): Defer switch processing.
6391 2003-04-03  Matt Austern  <austern@apple.com>
6393         * cpppch.c (reset_ht): Remove.
6394         (cpp_read_state): Remove loop to reset hashtable identifiers.
6395         * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
6396         after pch file is written.
6397         * ggc.h (gt_pch_fixup_stringpool): Declare.
6398         * stringpool.c (ht_copy_and_clear): Define.  Callback.  Copy
6399         hashnode's value to another hashtable, then clear the original.
6400         (saved_ident_hash): Define.
6401         (gt_pch_save_stringpool): Create saved_ident_hash, use it to
6402         store definitions in ident_hash, and clear ident_hash.
6403         (gt_pch_fixup_stringpool): Define.  Restore definitions from
6404         saved_ident_hash to ident_hash, then destroy saved_ident_hash.
6406 Thu Apr  3 22:27:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
6408         * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
6410 2003-04-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
6412         PR optimization/10157
6413         * gcse.c (can_copy_p): Rename it to can_copy.
6414         (can_copy_init_p): Remove.
6415         (compute_can_copy): Use can_copy instead of can_copy_p.
6416         (can_copy_p): New exported function. Call compute_can_copy.
6417         (hash_scan_set): Use it.
6418         (gcse_main): Don't call compute_can_copy.
6419         (bypass_jumps): Don't call compute_can_copy.
6420         * rtl.h (can_copy_p): Declare.
6421         * loop.c (scan_loop): Don't move the source and add a reg-to-reg
6422         copy if the mode doesn't support copy operations.
6424 2003-04-03  Jason Merrill  <jason@redhat.com>
6426         * Makefile.in (unstrap): Also remove stage_last.
6428         * dwarf2out.c (lookup_filename): Don't check for "<internal>".
6429         (dwarf2out_source_line): Don't do anything if line==0.
6431         * stor-layout.c (do_type_align): New fn, split out from...
6432         (layout_decl): ...here.  Do all alignment calculations for
6433         FIELD_DECLs here.
6434         (update_alignment_for_field): Not here.
6435         (start_record_layout, debug_rli): Remove unpadded_align.
6436         * tree.h (struct record_layout_info_s): Remove unpadded_align.
6437         * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
6438         or DECL_MODE on the CONST_DECLs.
6439         (finish_struct): Don't mess with DECL_ALIGN.
6441 Thu Apr  3 18:57:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
6443         * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
6445 Thu Apr  3 17:08:09 2003  J"orn Rennecke <joern.rennecke@superh.com>
6447         * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
6448         function is an interrupt handler.
6450         * sh.c (sh_expand_epilogue): Avoid clash of temp register for
6451         restoring target registers with EH_RETURN_STACKADJ_RTX; use
6452         multiple registers in round-robin fashion.
6454 2003-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6456         * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
6457         * system.h (CHAR_BITFIELD): New.
6459 2003-04-03  Kazu Hirata  <kazu@cs.umass.edu>
6461         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
6462         and LE.
6463         (another peephole2): Likewise.
6465 2003-04-03  Nick Clifton  <nickc@redhat.com>
6467         * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
6468         (DEF_ARCH64_SPEC): Likewise.
6470 Thu Apr  3 09:53:40 CEST 2003  Jan Hubicka  <jh@suse.cz>
6472         * i386.c (constant_address_p): Use legitimate_constant_p.
6473         (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
6475 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
6477         * config/h8300/h8300-protos.h: Add a prototype for
6478         gtle_operator.
6479         * config/h8300/h8300.c (gtle_operator): New.
6480         * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
6481         gtle_operator.
6482         * config/h8300/h8300.md (a peephole2): Generalize to accept GT
6483         and LE.
6485 2003-04-02  Richard Henderson  <rth@redhat.com>
6487         * libgcc-std.ver (_Unwind_GetCFA): New.
6488         * unwind-dw2.c (_Unwind_GetCFA): New.
6489         * unwind-libunwind.c (_Unwind_GetCFA): New.
6490         * unwind-sjlj.c (_Unwind_GetCFA): New.
6491         * unwind.h: Declare it.
6493 Thu Apr  3 00:31:21 CEST 2003  Jan Hubicka  <jh@suse.cz>
6495         PR inline-asm/8088
6496         * i386.c (ix86_hard_regno_mode_ok):  Return 0 for MMX/SSE registers
6497         when MMX/SSE is not available.
6499 2003-04-02  Mike Stump  <mrs@apple.com>
6501         * doc/install.texi (Specific): Update pointers to apple.com.
6503 Thu Apr  3 00:18:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
6505         * i386.c (override_options):  Disable red zone by default on i386.
6506         (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
6507         Do not test TARGET_64BIT together with TARGET_RED_ZONE
6509 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
6511         * config/h8300/h8300.md (a peephole2): Tighten the condition.
6513 2003-04-02  Richard Henderson  <rth@redhat.com>
6515         * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
6517 2003-04-02  Kazu Hirata  <kazu@cs.umass.edu>
6519         * config/h8300/h8300.md (a peephole2): New.
6521 2003-04-02  Richard Henderson  <rth@redhat.com>
6523         * except.c (sjlj_find_directly_reachable_regions): Recognize when
6524         must-not-throw region has been deleted.
6526 2003-04-02  Richard Henderson  <rth@redhat.com>
6528         * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
6529         optimization when flag_exceptions not enabled.
6531 2003-04-02  Vladimir Makarov  <vmakarov@redhat.com>
6533         * config/rs6000/rs6000.c
6534         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
6535         macros.
6536         (rs6000_issue_rate): Add case for 8540.
6537         (rs6000_use_sched_lookahead): New function.
6539         * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
6540         units into MU ones.
6541         (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
6542         reservation before retirement.
6543         (ppc8540_multiply, ppc8540_load, ppc8540_store,
6544         ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
6545         Remove additional cycle in the reservation before retirement.
6546         (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
6547         reservation of ppc8540_issue.
6549 2003-04-02  Andreas Schwab  <schwab@suse.de>
6551         * real.c (decode_ieee_single): Fix decoding of SNaN bit.
6553 2003-04-01  Richard Henderson  <rth@redhat.com>
6555         * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
6556         notes for nothrow calls if flag_forced_unwind_exceptions.
6557         (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
6558         (sjlj_find_directly_reachable_regions): Likewise.
6559         (reachable_handlers): Likewise.
6560         (can_throw_external): Likewise.
6561         (collect_one_action_chain): Record cleanups after catch-all and
6562         must-not-throw if flag_forced_unwind_exceptions.
6563         * flags.h (flag_forced_unwind_exceptions): Declare.
6564         * toplev.c (flag_forced_unwind_exceptions): New.
6565         (lang_independent_options): Add it.
6566         * doc/invoke.text: Add it.
6568 2003-04-01  David Mosberger <davidm@hpl.hp.com>
6570         * config/ia64/crti.asm: Clean up trailing whitespace.
6571         Remove trailing hashes (#) from identifiers.
6573         * config/ia64/crtn.asm: Ditto.
6575         * config/ia64/crtend.asm: Remove trailing hashes (#) from
6576         identifiers.
6577         (__do_global_ctors_aux): Align to 32-byte boundary.  Add unwind
6578         directives.  Drop explicit bundling---it just makes the code
6579         harder to read.  Don't save/restore gp needlessly.
6581         * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
6582         identifiers (they're only needed if the identifier would clash
6583         with a register name otherwise).
6584         (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
6585         directives.  Drop explicit bundling---it just makes the code
6586         harder to read.
6587         (__do_jv_register_classes): Ditto.
6588         (.fini_array): Remove "progbits" (newer
6589         assemblers don't like wrong section-types).
6590         (.init_array): Ditto.
6592 2003-04-01  Roger Sayle  <roger@eyesopen.com>
6594         PR fortran/9974
6595         * gcse.c (reg_killed_on_edge): New function to test whether the
6596         given reg is overwritten by any instruction queued on an edge.
6597         (bypass_block): Ignore substitutions killed on incoming edges.
6598         Don't bypass outgoing edges that have queued instructions.
6600 2003-04-01  Alexandre Oliva  <aoliva@redhat.com>
6602         * real.h (EXP_BITS): Make room for...
6603         (struct real_value): ... added canonical bit.
6604         (struct real_format): Added pnan.
6605         (mips_single_format, mips_double_format, mips_extended_format,
6606         mips_quad_format): New.
6607         * real.c: Copy p to pnan in all formats.
6608         (get_canonical_qnan, get_canonical_snan): Set canonical bit.
6609         (real_nan): Use pnan to compute significand's shift.
6610         (real_identical): Disregard significand in canonical
6611         NaNs.
6612         (real_hash): Likewise.  Take signalling into account.
6613         (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
6614         Disregard significand bits in canonical NaNs.  Set all bits of
6615         canonical NaN if !qnan_msb_set.
6616         (encode_ibm_extended, decode_ibm_extended): Likewise.  Use
6617         qnan_msb_set to tell the base double format.
6618         (ibm_extended_format): Use 53 as pnan.
6619         (mips_single_format, mips_double_format, mips_extended_format,
6620         mips_quad_format): Copied from the corresponding ieee/ibm
6621         formats, with qnan_msb_set false.
6622         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
6623         * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
6624         * config/mips/mips.c (override_options): Use mips_single_format
6625         and mips_double_format.  Default TFmode to mips_quad_format.
6626         * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
6627         * config/mips/t-irix6: Likewise.
6628         * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
6629         * config/fp-bit.c (pack_d, unpack_d): Obey it.
6631 2003-04-01  Geoffrey Keating  <geoffk@apple.com>
6633         * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
6634         (live_image_destructor): Reset image to initial state.
6635         (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
6637 2003-04-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
6639         * config/sparc/sparc.c (input_operand): Accept bare
6640         CONSTANT_P_RTX operands.
6642 2003-04-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6644         * gcse.c (struct ls_expr): Added pattern_regs field.
6645         (ldst_entry): Initialize it.
6646         (extract_mentioned_regs, extract_mentioned_regs_helper): New.
6647         (store_ops_ok): Use regs precomputed by them.
6648         (find_loads, store_killed_in_insn, load_kills_store): Change return
6649         type to bool.
6650         (store_killed_before, store_killed_after): Take position of register
6651         set in account.
6652         (reg_set_info): Store position of the setter.
6653         (gcse_main): Enable store motion.
6654         (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
6655         (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
6656         sharing.
6657         (simple_mem): Enable store motion of non-symbol mems.
6658         (regvec): Type changed.
6659         (LAST_AVAIL_CHECK_FAILURE): New.
6660         (compute_store_table_current_insn): New.
6661         (build_store_vectors): Computation of availability and anticipatability
6662         moved ...
6663         (compute_store_table, find_moveable_store): ... here.
6664         (delete_store): Remove senseless comment.
6665         (store_motion): Reorganize.
6667 2003-04-01  Kevin Buettner  <kevinb@redhat.com>
6669         * config/mips/mips.c (override_options): Provide mappings for
6670         HI_REGNUM and LO_REGNUM.
6671         * config/mips/mips.h (MD_DBX_FIRST): Define.
6673 2003-04-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6675         * combine.c (merge_outer_ops): Fix typo.
6677         * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
6679 2003-04-01  David Edelsohn  <edelsohn@gnu.org>
6681         * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
6682         power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
6683         imul_compare.  Add lmul_compare.
6684         * config/rs6000/power4.md: Bump some latencies.  Model extra cycle
6685         in second pair of dispatch slots.  Model stores more accurately.
6686         Tweak multiply model.  Add bypasses for CR instructions dependent
6687         on complicated compares.
6688         * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
6689         (muldi3): Add lmul_compare patterns.
6690         * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
6691         and FPSTORE_UX to split instructions and add COMPARE,
6692         DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
6693         (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
6694         (rs6000_rtx_costs): Separate POWER4 multiply case.
6696 2003-04-01  Ulrich Weigand  <uweigand@de.ibm.com>
6698         * config/s390/s390.c (s390_fixup_clobbered_return_reg):
6699         Do nothing if __builtin_return_address was not used.
6701 Tue Apr  1 18:18:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
6703         * i386.md (test patterns):  Allow memory operand in operand1.
6705 2003-02-31  Aldy Hernandez  <aldyh@redhat.com>
6707         * testsuite/gcc.c-torture/execute/simd-3.c: New.
6709         * expr.c (expand_expr): Handle VECTOR_CST.
6710         (const_vector_from_tree): New.
6712         * varasm.c (output_constant): Handle VECTOR_CST.
6714         * c-typeck.c (digest_init): Build a vector constant from a
6715         VECTOR_TYPE.
6717         * config/rs6000/rs6000.c: Remove prototype for
6718         easy_vector_constant.
6719         (easy_vector_constant): Add mode parameter.  Rewrite to handle
6720         more easy constants.
6721         (rs6000_emit_move): Pass mode to easy_vector_constant.
6722         Call emit_easy_vector_insn for SPE V2SI vector constant moves.
6723         (emit_easy_vector_insn): New.
6724         (easy_vector_same): New.
6725         (EASY_VECTOR_15): New macro.
6726         (EASY_VECTOR_15_ADD_SELF): New macro.
6727         (bdesc_2arg): Rename to xorv2si3.
6728         (easy_vector_constant_add_self): New.
6729         (input_operand): Allow vector constants.
6731         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
6732         easy_vector_constant, easy_vector_constant_add_self.
6733         (EXTRA_CONSTRAINT): Add 'W'.
6735         * config/rs6000/rs6000-protos.h: Add prototype for
6736         easy_vector_constant, emit_easy_vector_insn.
6738         * config/rs6000/altivec.md (xorv8hi3): New.
6739         (xorv16qi3): New.
6740         Remove all _const0 patterns.
6741         (movv4si_internal): Rewrite to use code.  Add vector constant to
6742         vector alternative.  Add splitter.
6743         (movv8hi_internal): Same.
6744         (movv16qi_internal): Same.
6745         (movv4sf_internal): Same.
6746         Change the unspecs for vspltis* to use constants.
6748         * config/rs6000/spe.md ("xorv4hi3"): New.
6749         ("spe_evxor"): Rename to xorv2si3.
6750         ("xorv1di3"): New.
6751         Remove all _const0 patterns.
6752         (movv2si_internal): Rewrite to use code.  Add vector constant to
6753         alternatives.  Add splitter.
6754         (movv4hi_internal): Add vector constant to alternatives.
6755         (movv1di_internal): Same.
6756         (movv2sf_internal): Same.
6758 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
6760         PR c/9936
6761         * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
6762         variably-sized arrays in parameters.
6763         (set_save_expr_context): New function.
6764         (c_expand_body): Use it, via walk_tree.
6766 2003-03-31  Eric Christopher  <echristo@redhat.com>
6768         * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
6769         (combinable_i3pat): Remove call to expand_field_assignment and
6770         #if 0'd code.
6772 2003-03-31  Mark Mitchell  <mark@codesourcery.com>
6774         PR c++/10278
6775         * c-common.c (finish_label_address_expr): Handle the
6776         error_mark_node.
6778 2003-03-31  Richard Henderson  <rth@redhat.com>
6780         * real.c (real_identical): Reorg so as to not compare
6781         signalling for normals.
6783 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
6785         * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
6787 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
6789         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
6790         notes as they are boggus.
6791         (m68hc11_gen_movqi): Likewise.
6793 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
6795         * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
6796         save the soft registers after the frame pointer so that gdb can unwind
6797         the frame more easily.
6798         (expand_epilogue): Likewise in opposite order; allow to use X register
6799         as scratch if the return value is by reference.
6801 2003-03-31  Jason Merrill  <jason@redhat.com>
6803         PR java/10145
6804         * stor-layout.c (update_alignment_for_field): Respect
6805         DECL_USER_ALIGN for zero-length bitfields, too.
6806         * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
6807         fields.
6809 2003-03-31  Matt Austern  <austern@apple.com>
6811         * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
6812         (count_defs): Keep track of number of defs as well as total size.
6813         (write_defs): Put every definition in cpp_savedstate's defs array.
6814         (comp_hashnode): Define.  Comparison function for qsort.
6815         (cpp_write_pch_deps): Sort definitions before writing them.
6816         (struct ht_node_list): Define. Like cpp_savedstate but simpler.
6817         (collect_ht_nodes): Define.
6818         (cpp_valid_state): When verifying that undefined identifiers in
6819         the pch file are still undefined, read a sorted list of undefined
6820         identifiers, collect all defined identifiers into a sorted list,
6821         and walk through both lists to make sure there's no match.
6823 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
6825         * config/h8300/h8300.md (a peephole2): New.
6827 2003-03-31  Michael Matz  <matz@suse.de>
6829         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
6831 2003-03-31  Segher Boessenkool  <segher@koffie.nl>
6833         PR target/10177
6834         * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
6835         * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
6836         all call-clobbered registers as used.
6838 2003-03-31  Michael Matz  <matz@suse.de>
6840         * cppexp.c (cpp_classify_number): Accept '.' after "0x".
6841         * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
6843 2003-03-31  Nathan Sidwell  <nathan@codesourcery.com>
6845         * gcov.c: Add -a & -u options.
6846         (struct arc_info): Add local_span, is_call_non_return,
6847         is_nonlocal_return, is_unconditional flags, remove is_call flag.
6848         (struct block_info): Add flags, is_call_site, is_nonlocal_return
6849         members. Make encodings a union with span member.
6850         (struct function_info): Add blocks_executed, line, src, line_next
6851         members.
6852         (struct coverage_info): Make branches a union with blocks member.
6853         (struct source_info): Add functions member.
6854         (object_summary, program_count): New global variables.
6855         (flag_all_blocks, flag_unconditional): New flags.
6856         (find_source, output_branch_count): New functions.
6857         (print_usage): Adjust.
6858         (options): Adjust.
6859         (process_args): Adjust.
6860         (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
6861         <GCOV_TAG_BLOCKS>: Read flags.
6862         <GCOV_TAG_LINES>: Adjust.
6863         (read_count_file): Process SUMMARY tags.
6864         (solve_flow_graph): Set is_unconditional and clear is_call_site
6865         appropriately.
6866         (add_branch_counts): Adjust. Don't count unconditional branches.
6867         (add_line_counts): Deal with all-blocks mode, accumulate block
6868         coverage.
6869         (accumulate_line_counts): Adjust, generate local spanning tree for
6870         all-blocks mode.
6871         (output_lines): Adjust.
6872         * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
6873         * doc/gcov.texi: Document.
6875 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
6877         * config/h8300/h8300.md: Organize peephole2's that transform
6878         (compare (reg:HI) (const_int)).
6880 2003-03-31  Roger Sayle  <roger@eyesopen.com>
6882         * emit-rtl.c (dconstm2, dconsthalf): New real constants.
6883         (init_emit_once): Initialize dconstm2 and dconsthalf here.
6884         * real.h (dconstm2, dconsthalf): Add prototypes here.
6885         * real.c (real_sqrt): Use dconsthalf rather than local copy.
6886         * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
6887         exp(x/2.0) remember to fold the division if possible.
6888         Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
6889         pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
6890         1.0/(x*x) and pow(x,0.5) as sqrt(x).
6892 2003-03-31  Kazu Hirata  <kazu@cs.umass.edu>
6894         * config/h8300/h8300.md (a new peephole2): New.
6896 2003-03-31  Richard Sandiford  <rsandifo@redhat.com>
6898         * gcse.c (simple_mem): Return false for floating-point accesses
6899         if flag_float_store is true.
6901 2003-03-30  Roger Sayle  <roger@eyesopen.com>
6903         * gcse.c (gcse_constant_p): New function to identify constants
6904         suitable for constant propagation, including COMPARE with two
6905         integer constant arguments.
6906         (hash_scan_set): Use gcse_constant_p.
6907         (find_avail_set): Likewise.
6908         (cprop_insn): Likewise.
6909         (do_local_cprop): Likewise.
6910         (find_implicit_sets): Likewise.
6911         (find_bypass_set): Likewise.
6913 2003-03-30  Matt Kraai  <kraai@alumni.cmu.edu>
6915         * except.h: Remove definition of varray_type.
6917 2003-03-30  Richard Henderson  <rth@redhat.com>
6919         PR opt/10011, opt/10252:
6920         * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
6921         before post-gcse cse pass.
6923 2003-03-30  Roger Sayle  <roger@eyesopen.com>
6925         * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
6927 2003-03-30  DJ Delorie  <dj@redhat.com>
6929         * profile.c (instrument_edges): Make sure any newly created
6930         jump insns have correct jump label info.
6932 2003-03-30  Richard Henderson  <rth@redhat.com>
6934         * cfgbuild.c (make_edges): Use tablejump_p.
6935         * cfgcleanup.c (label_is_jump_target_p): Likewise.
6936         * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
6937         * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
6938         (try_redirect_by_replacing_jump): Likewise.
6939         (redirect_edge_and_branch): Likewise.
6940         * cse.c (fold_rtx): Likewise.
6941         * jump.c (delete_related_insns): Likewise.
6942         * rtlanal.c (get_jump_table_offset): Likewise.
6943         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
6945 2003-03-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6947         * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
6948         (STRICT2_WARN): Likewise.
6950 2003-03-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6952         PR other/6955
6953         * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
6954         * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
6956 2003-03-30  Richard Henderson  <rth@redhat.com>
6958         PR c/10083
6959         * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
6960         don't zero_extend const inputs.
6962 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
6964         * reload1.c (reload_cse_move2add): Fix a comment typo.
6966 2003-03-30  Kazu Hirata  <kazu@cs.umass.edu>
6968         * config/h8300/h8300.md (a peephole2): Remove useless code.
6970 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
6972         * config/h8300/h8300.md (*iorsi3_and_ashift): New.
6973         (*iorsi3_and_lshiftrt): Likewise.
6974         (*iorsi3_zero_extract): Likewise.
6976 2003-03-29  Kazu Hirata  <kazu@cs.umass.edu>
6978         * config/h8300/h8300.md (*insv_si_8_8): New.
6979         (*insv_si_8_8_lshiftrt_8): Likewise.
6980         (a peephole2): Likewise.
6982 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6984         * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
6985         Uniformly use bugfix instead of bug fix.
6987 2003-03-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6989         PR doc/895
6990         * ONEWS: Remove those items that already appear in the EGCS
6991         release notes on our web pages.
6993 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
6995         * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
6996         TARGET_HARD_FLOAT.  Reformat.
6997         (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
6999 2003-03-28  Albert Chin-A-Young  <china@thewrittenword.com>
7001         * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
7002         work on Solaris 2.5.1.
7004 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>
7006         * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
7007         section of h8300.md
7008         (*addsi3_and_nor_r_1): Likewise.
7010 2003-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
7012         * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
7013         set up before any trapping memory access if flag_non_call_exceptions.
7015 2003-03-29  Alan Modra  <amodra@bigpond.net.au>
7017         * reload1.c (reload_as_needed): Allow a USE in asm reloads.
7019         * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
7021 2003-03-28  Nathanael Nerode  <neroden@gcc.gnu.org>
7023         * configure.in: Clarify comments.
7024         * configure: Regenerate.
7026 2003-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
7028         * config/s390/s390.md ("literal_pool_31"): Output pool anchor
7029         label even if pool empty when generating PIC.
7030         ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
7032 2003-03-28  Kazu Hirata  <kazu@cs.umass.edu>,
7033             Dhananjay Deshpande  <dhananjayd@kpit.com>
7035         PR target/10205
7036         * config/h8300/h8300.c (h8300_initial_elimination_offset):
7037         Correct the offset computation when TARGET_NORMAL.
7039 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
7041         PR target/10067
7042         * config/sparc/sparc.md (jump pattern): Correct order
7043         when issuing the annuling marker.
7045 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
7047         PR c/8281
7048         * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
7049         (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
7051 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
7053         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
7054         globalize_label.
7055         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7056         * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7057         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7058         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7059         * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7060         * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
7061         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
7063 2003-03-28  Alan Modra  <amodra@bigpond.net.au>
7065         * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
7066         (replace_loop_mems): Add "written" param.  Remove invalid REG_EQUAL
7067         notes after hoisting.
7068         (load_mems): Adjust replace_loop_mems call.
7070 2003-03-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
7071             Richard Henderson  <rth@redhat.com>
7073         PR target/10114 and PR target/10084
7074         * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
7076 2003-03-27  Richard Henderson  <rth@redhat.com>
7078         * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
7080 2003-03-27  Roger Sayle  <roger@eyesopen.com>
7082         * fold-const.c (fold_inf_compare):  New function to simplify FP
7083         comparisons against +Infinity or -Infinity.
7084         (fold):  Optimize floating point comparisons against Infs and NaNs.
7086 2003-03-27  Janis Johnson  <janis187@us.ibm.com>
7088         * libgcov.c: Provide only dummy functions if libc is not available.
7090 2003-03-27  Richard Henderson  <rth@redhat.com>
7092         * real.h (struct real_value): Add signalling.
7093         (EXP_BITS): Decrement.
7094         * real.c (get_canonical_qnan): Don't set MSB-1.
7095         (get_canonical_snan): Likewise.  Set signalling.
7096         (real_identical): Compare signalling.
7097         (round_for_format): Remove force-one-bit on code.
7098         (real_nan): Likewise.  Set signalling.
7099         (encode_ieee_single): Add force-one-bit code; honor signalling.
7100         (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
7101         (decode_ieee_single): Set signalling.
7102         (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
7104 2003-03-27  Olivier Hainque  <hainque@act-europe.fr>
7106         PR ada/9953
7107         * ada/Makefile.in (gnatlib configuration for HPUX): Split
7108         the general section for HPUX into specific sections for
7109         HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
7110         11 case.
7112 2003-03-27  Glen Nakamura  <glen@imodulo.com>
7114         PR opt/10087
7115         * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
7116         while incrementing giv.
7117         (record_biv): Check for duplicate biv locations and
7118         set (struct induction *) v->same if found.
7120 2003-03-27  David Mosberger  <davidm@hpl.hp.com>
7122         * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
7123         v0.9 API change: replace read of UNW_REG_HANDLER with
7124         unw_get_proc_info().
7125         (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
7126         with unw_get_proc_info().
7127         (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
7128         unw_get_proc_info().
7130 2003-03-27  Vladimir Makarov  <vmakarov@redhat.com>
7132         * config/rs6000/8540.md: Use presence_set instead of absence_set.
7134 2003-03-26  Richard Henderson  <rth@redhat.com>
7136         * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
7138 2003-03-26  Roger Sayle  <roger@eyesopen.com>
7140         PR bootstrap/10051, PR bootstrap/10169.
7141         * mips-tfile.c (init_file): Don't provide a static initializer.
7142         (initialize_init_file): Initialize the contents of init_file.
7143         (add_file): Call initialize_init_file if not already initialized.
7145 2003-03-26  Ulrich Weigand  <uweigand@de.ibm.com>
7147         * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
7148         registers used for global asm variables.
7149         (s390_frame_info, s390_arg_frame_offset): Likewise.
7150         (s390_emit_prologue, s390_emit_epilogue): Likewise.
7152 2003-03-26  Vladimir Makarov  <vmakarov@redhat.com>
7154         * config/rs6000/8540.md: New file.
7156         * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
7157         power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
7158         reservations for imul.
7160         * config/rs6000/rs6000.md: Include 8540.md.  Change
7161         delayed_compare onto mult_compare for insns generating
7162         multiplication.
7163         (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
7164         New type attribute values.
7166         * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
7167         fpsimple instead of fp.
7168         (*divsf3_gpr): Use type vecfdiv instead of fp.
7169         (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
7170         instead of vecfloat.
7171         (spe_evfsdive): Use type vecfdiv instead of vecfloat.
7172         (spe_brinc): Use type brinc instead of veccomplex.
7173         (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
7174         veccomplex.
7175         (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
7176         (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
7177         *movv2sf_internal): Define type attribute values for all
7178         alternatives.
7179         (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
7180         of fpcompare.
7181         (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
7182         instead of fpcompare.
7184 2003-03-26  David Edelsohn  <edelsohn@gnu.org>
7186         * config/rs6000/power4.md: Allow delay between dispatch and
7187         function units for simple instructions.  Correct store units.
7188         Allow branch to occupy as many dispatch slots as necessary.
7190 2003-03-26  Jakub Jelinek  <jakub@redhat.com>
7192         * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
7193         (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
7194         zero extend old to it.
7195         * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
7196         operand.
7198 2003-03-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
7200         PR target/7784
7201         * reload.c (find_reloads_address): Handle
7202         (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
7203         all base registers.
7205 2003-03-25  Marcelo Abreu  <mmabreu@inf.ufrgs.br>
7207         PR other/10203
7208         * version.c: Reference the GCC web site in the URL.
7210 2003-03-26  Alan Modra  <amodra@bigpond.net.au>
7212         * c-incpath.c (add_standard_paths): Add both "translated" and
7213         non-translated header paths.
7215 2003-03-25  Loren James Rittle  <ljrittle@acm.org>
7217         * doc/install.texi (*-*-freebsd*): Update with known status.
7219 2003-03-21  Jason Merrill  <jason@redhat.com>
7221         PR optimization/10171
7222         * unroll.c (unroll_loop): Don't delete the jump at the end unless
7223         we also delete a jump at the beginning.
7225 2003-03-25  Stephane Carrez  <stcarrez@nerim.fr>
7227         * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
7228         contributor.
7230 Tue Mar 25 20:35:51 CET 2003  Jan Hubicka  <jh@suse.cz>
7232         * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
7233         constants are not expensive.
7235 Mon Mar 24 20:03:03 CET 2003  Jan Hubicka  <jh@suse.cz>
7237         PR opt/10056
7238         * cfglayout.c (fixup_reorder_chain):  Fix dealing with the conditional
7239         jump jumping to the next instruction.
7240         * cfgrtl.c (force_nonfallthru_and_redirect):  Likewise.
7242 2003-03-25  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7244         * doc/passes.texi (Passes): Properly document that we do not
7245         perform jump2 any longer; remove command-line option -dJ.
7247 2003-03-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
7249         PR optimization/8746
7250         * config/i386/i386.md (and promoting splitters): Disable HImode to
7251         SImode promoting when the sign bit matters and is not preserved, or
7252         when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
7253         for size.
7255 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
7257         * config/h8300/h8300.md (a peephole2): Extend to support loads
7258         in QImode and HImode.
7260 2003-03-24  Stephane Carrez  <stcarrez@nerim.fr>
7262         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
7263         _return_far
7264         (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
7265         (MULTILIB_EXCEPTIONS): Likewise.
7266         * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
7267         by calling some board support routine.
7268         ("call_value"): Likewise.
7269         ("*return_void"): Likewise for return.
7270         ("*return_16bit"): Likewise.
7271         ("*return_32bit"): Likewise.
7272         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
7273         for 68HC11 too.
7274         (DWARF2_ADDR_SIZE): Use 4 so that addresses can
7275         * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
7276         -mlong-calls for 68HC11.
7277         * config/m68hc11/larith.asm (declare_near): New macro.
7278         (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
7279         (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
7280         (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
7281         (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
7282         (__mulhi32): Likewise.
7283         (ret): Update macro for 68HC11.
7284         (__far_trampoline): Implement for 68HC11.
7285         (__call_a16, __call_a32, __return_void, __return_16): New support
7286         routines for 68HC11 memory bank switching calling support.
7287         (__return_32): Likewise.
7289 2003-03-24  Neil Booth  <neil@daikokuya.co.uk>
7291         * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
7293 2003-03-24  Janis Johnson  <janis187@us.ibm.com>
7295         * doc/install.texi (Testing): Mention test result links from build
7296         status pages.
7298 2003-03-24  Mark Mitchell  <mark@codesourcery.com>
7300         * function.c (put_var_into_stack): Change bool parameter to int.
7301         (gen_mem_addressof): Likewise.
7302         * rtl.h (gen_mem_addressof): Likewise.
7303         * tree.h (put_var_into_stack): Likewise.
7304         * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
7305         gen_mem_addressof or put_var_into_stack.
7306         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
7307         * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
7309 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
7311         * config/h8300/h8300.md (a peephole2): New.
7313 2003-03-24  Jakub Jelinek  <jakub@redhat.com>
7315         * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
7317 2003-03-24  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7319         * doc/contrib.texi (Contributors): Update Janis Johnson.
7321 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
7323         PR target/10072
7324         * combine.c (simplify_if_then_else): Check that the mode
7325         has MODE_INT class before applying the (OP Z (mult COND C2))
7326         transformation.
7328 2003-03-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
7330         PR optimization/9414
7331         * config/sparc/sparc.md (widening peepholes): Use
7332         widen_memory_access instead of change_address.
7334 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
7336         PR c++/7086
7337         * c-typeck.c (c_mark_addressable): Adjust calls to
7338         put_var_into_stack.
7339         * expr.c (expand_expr): Likewise.
7340         * function.c (put_var_into_stack): Add rescan parameter.  Do not
7341         call fixup_var_refs when rescan is false.
7342         (gen_mem_addressof): Likewise.
7343         (assign_parms): Adjust calls to put_var_into_stack.
7344         (setjmp_protect): Likewise.
7345         (setjmp_protect_args): Likewise.
7346         * rtl.h (gen_mem_addressof): Change prototype.
7347         * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
7348         * tree.h (put_var_into_stack): Change prototype.
7350 2003-03-23  Arpad Beszedes <beszedes@cc.u-szeged.hu>
7352         PR middle-end/9967
7353         * builtins.c (expand_builtin_fputs): When optimizing for size,
7354         don't transform fputs into fwrite.
7356 2003-03-23  Glen Nakamura <glen@imodulo.com>
7358         PR c/8224
7359         * fold-const.c (extract_muldiv_1): Don't pass through type conversions
7360         when signedness changes for division or modulus.
7362 2003-03-24  Alan Modra  <amodra@bigpond.net.au>
7364         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
7365         globalize_label.
7367 2003-03-23  Roger Sayle  <roger@eyesopen.com>
7369         PR c/10178
7370         * stmt.c (expand_end_case_type): Check for overflow in range when
7371         determining whether to use a bit-test implementation.
7373 2003-03-23  Richard Henderson  <rth@redhat.com>
7375         * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
7376         before flow2.
7377         * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
7379 2003-03-23  Richard Henderson  <rth@redhat.com>
7381         PR opt/10116
7382         * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
7383         from then_bb or else_bb after flow2.
7385 2003-03-23  Zack Weinberg  <zack@codesourcery.com>
7387         * configure.in: Check whether it is necessary to link against
7388         libm to use ldexp.
7389         * configure: Regenerate.
7390         * Makefile.in: Add LDEXP_LIB substitution variable.
7392 2003-03-23  Kazu Hirata  <kazu@cs.umass.edu>
7394         * config/h8300/h8300.md: Fix comment typos.
7396 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7398         * pa.c (output_cbranch): Fix typo in comment.
7400 2003-03-22  Richard Henderson <rth@redhat.com>
7402         * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
7403         after reload.
7405 2003-03-22  DJ Delorie  <dj at redhat dot com>,
7406         Bruce Korb  <bkorb at gnu dot org>
7408         * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
7409         buggy Solaris 2.6 mutex/cond initializers.
7410         (solaris_mutex_init): Rename to solaris_mutex_init_2.
7411         * fixinc/fixincl.x: Regenerate.
7412         * fixinc/tests/base/pthread.h: Update.
7413         * fixinc/fixincl.c(initialize): be explicit about the default case
7414         and indicate verbose level when being very, very verbose.
7415         * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
7417 2003-03-22  Andreas Jaeger  <aj@suse.de>
7419         * config/i386/i386.c (ix86_init_machine_status): Return value.
7421 2003-03-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7423         * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
7424         conditional branch to the following instruction.  Use next_real_insn
7425         instead of next_active_insn.
7426         (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
7427         instead of next_active_insn.
7429 2003-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
7431         * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
7432         instead of 'm' constraint in forced-split alternatives.
7433         ("*adddi3_31", "*subdi3_31"): Likewise.  Also, pass 0 instead of 1 as
7434         VALIDATE_ADDRESS parameter to operand_subword.
7436 2003-03-22  Kazu Hirata  <kazu@cs.umass.edu>
7438         * config/h8300/h8300.c (notice_update_cc): Correctly handle
7439         the case where the set destination is STRICT_LOW_PART.
7441 2003-03-22  Svein E. Seldal  <Svein.Seldal@solidas.com>
7443         * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
7444         c30 instead of a c40 processor.
7446 2003-03-22  Alan Modra  <amodra@bigpond.net.au>
7448         * combine.c (simplify_comparison <AND>): Use gen_int_mode.  Tidy.
7450 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
7452         * c-common.c: Include intl.h.
7453         (shadow_warning): Rewrite to allow better diagnostic translations.
7454         * c-common.h: Update prototype of shadow_warning.  Declare sw_kind enum.
7455         * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
7456         use it throughout.
7457         * Makefile.in (c-common.o): Add intl.h.
7459 2003-03-21  Nathanael Nerode  <neroden@gcc.gnu.org>
7461         * config.gcc: Remove 'float_format'.
7463         * fixproto: Define NULL and size_t in generated stdlib.h and
7464         unistd.h.  Kill unused required_stdlib_h, required_unistd_h.
7465         Rearrange file generation loop for readability.  Generate time.h,
7466         string.h if missing.
7467         * tsystem.h: Include <string.h>, <time.h> unconditionally.
7468         * config.gcc: Blow away POSIX defines.
7470 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
7472         * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
7474 2003-03-22  Stephane Carrez  <stcarrez@nerim.fr>
7476         * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
7477         writing .interrupt command.
7478         * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
7479         if it's a far or near function.
7480         ("call_value"): Likewise.
7481         * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
7482         near attributes.
7483         (m68hc11_handle_fntype_attribute): Accept attributes on methods.
7484         (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
7485         (m68hc11_initial_elimination_offset): Set current_function_far
7486         according to attributes.
7487         (expand_prologue): Likewise.
7488         (trap_handler_symbol): New global to keep track of trap handlers.
7489         (m68hc11_encode_section_info): Mark symbol as far if needed; set
7490         trap symbol.
7491         (m68hc11_is_far_symbol): New function.
7492         (m68hc11_is_trap_symbol): New function.
7493         * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
7494         (m68hc11_is_trap_symbol): Declare.
7496 2003-03-21  Jan Hubicka  <jh@suse.cz>
7498         * i386.c (ix86_compute_frame_layout): Recompute fast prologues
7499         only when amount of saved regs changed.
7500         (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
7501         * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
7503 2003-03-21  Jan Hubicka  <jh@suse.cz>
7505         PR inline-asm/7916
7506         * function.c (instantiate_virtual_regs_lossage): New function.
7507         (instantiate_virtual_regs_1): Use it.
7508         (instantiate_virtual_regs): Do not continue in substition when insn has
7509         been deleted.
7511 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
7513         * combine.c (make_field_assignment): Fix a warning.
7515 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
7517         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
7519 2003-03-21  Dale Johannesen  <dalej@apple.com>
7521         * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
7522         priority for R2 on Darwin.
7523         (HARD_REGNO_MODE_OK):  Don't accept R31 for DFmode.
7525 2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
7527         * combine.c (make_field_assignment): Remove unnecessary AND
7528         when storing into zero_extract.
7530 2003-03-21  Zack Weinberg  <zack@codesourcery.com>
7532         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
7533         * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
7534         * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
7535         in comment.
7537 2003-03-21  DJ Delorie  <dj@redhat.com>
7539         * optabs.c (init_integral_libfuncs): Make sure we init at least up
7540         to "long long" size words.
7542 2003-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
7544         * config/s390/s390.h: Do not include fixdfdi.h on s390x.
7545         (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
7546         (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
7548 2003-03-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7550         PR doc-bug/9813
7551         * doc/extend.texi: Move misplaced paragraph about underscores in
7552         variables in macros.
7554 2003-03-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
7555             Richard Henderson  <rth@redhat.com>
7557         PR optimization/8366
7558         * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
7559         (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
7560         PIC+SYMBOLIC_CONST in other modes than Pmode.
7561         (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
7562         the form PIC+SYMBOLIC_CONST as mode dependent.
7564 2003-03-21  DJ Delorie  <dj@redhat.com>
7566         * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
7567         sure we always emit at least one insn.
7569 2003-03-21  Christopher Faylor  <cgf@redhat.com>
7571         * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
7572         stub t-cygming. Use common target header cygming.h. Add extra
7573         c_target_obj and cxx_target_obj file. Default cygwin to posix
7574         threading. Enforce i386 as float format.
7575         (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
7576         Remove cygwin.h as target header. Use common target header
7577         cygming.h  Enforce i386 as float format. Correct typo.
7578         * config/i386/cygming.h: New file, containing definitions
7579         common to mingw32 and cygwin.
7580         * config/i386/cygwin.h: Remove definitions common to cygwin and
7581         mingw.  Simplify special spec logic.  Define "wrappers" around
7582         certain include path defines to accommodate -mno-cygwin.
7583         Remove some #if 0'ed code.
7584         (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
7585         (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
7586         (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
7587         * config/i386/mingw32.h: Remove definitions common to cygwin and
7588         mingw.
7589         (EXTRA_OS_CPP_BUILTINS): Adjust.
7590         (TARGET_VERSION): Define.
7591         * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
7592         mingw32.h definitions.
7593         (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
7594         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
7595         Add compilation rules for cygwin1.o cygwin2.o.
7596         * config/i386/cygwin1.c: New file.
7597         * config/i386/cygwin2.c: New file.
7598         * config/i386/t-cygming: New makefile stub.
7600 2003-03-20  Richard Henderson  <rth@redhat.com>
7602         * fold-const.c (extract_muldiv_1): Revert changing order of
7603         operands in case MULT_EXPR of 2003-02-16 patch.
7605 2003-03-20  Daniel Berlin  <dberlin@dberlin.org>
7606         Merge changes from new-regalloc-branch
7608         From Michael Matz  <matz@suse.de>
7609         * df.c (df_ref_record_1): Move init of loc to safe point.
7610         Only recurse on interesting things in parallels.
7611         Handle CLASS_CANNOT_CHANGE_MODE smarter.
7612         (df_uses_record): Ditto.
7614         * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
7615         it's already okay to use memory operands in (IE doesn't require
7616         adding another insn or anything).
7618 2003-03-20  Richard Henderson  <rth@redhat.com>
7620         PR middle-end/6348
7621         * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
7622         different from word_mode.
7624 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
7626         * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
7627         source operand to those that can be extracted with bld.
7629 2003-03-20  Richard Earnshaw  <rearnsha@arm.com>
7631         PR 10066
7632         * arm.md (UNSPEC_PIC_BASE): New constant.
7633         (pic_add_dot_plus_four): Wrap with unspec.
7634         (pic_add_dot_plus_eight): Likewise.
7636 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
7638         * config/h8300/h8300.md (*insv_si_1_n): New.
7639         (*insv_si_1_n_lshiftrt): Likewise.
7641 2003-03-20  Roger Sayle  <roger@eyesopen.com>
7643         * fold-const.c (fold_mathfn_compare): New function to simplify
7644         comparisons against built-in math functions.  Fold comparisons
7645         of sqrt against constants.
7646         (fold): Call fold_mathfn_compare when appropriate.
7648 2003-03-20 Richard Earnshaw  <rearnsha@arm.com>
7650         * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
7651         information.
7653 2003-03-20  Per Bothner  <pbothner@apple.com>
7655         Various cleanups to help compile server.
7657         * cppinit.c (cpp_create_reader):  Take extra hash_table* argument,
7658         and pass that to _cpp_init_hashtable.
7659         (cpp_read_main_file):  Drop hash_table* argument; don't call
7660         _cpp_init_hashtable.
7661         * cpplib.h:  Update declarations to match.
7662         * c-opts.c (c_common_init_options):  Pass ident_hash to
7663         cpp_create_reader.
7664         (c_common_post_options):  Don't pass ident_hash to cpp_read_main_file.
7665         * fix-header.c (read_scan_file):  Likewise pass NULL table to
7666         cpp_create_reader rather than cpp_read_main_file.
7668         * cppfiles.c (cpp_rename_file):  Generalized and renamed
7669         to cpp_change_file.
7670         * cpplib.h:  Update declaration to match.
7671         * c-opts.c (push_command_line_line, finish_options):  Change
7672         cpp_rename_file calls to cpp_change_file.
7674         * line-map.c (add_line_map):  Allow leaving the outermost file.
7675         Allowing entering an outermost-file after the initial time.
7677         * toplev.c (pop_srcloc):  Allow popping from initial file.
7679 2003-03-20  Kazu Hirata  <kazu at cs dot umass dot edu>
7681         * fold-const.c (fold): Fold A - (A & B) into ~B & A.
7683 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
7685         * config/h8300/h8300.md (a peephole2): New.
7687 2003-03-20  Kazu Hirata  <kazu@cs.umass.edu>
7689         * config/h8300/h8300.md (*addsi3_and_r_1): New.
7690         (*addsi3_and_not_r_1): Likewise.
7692 2003-03-19  Loren James Rittle  <ljrittle@acm.org>
7694         * Makefile.in (STRICT2_WARN): Add @WERROR@.
7695         (GCC_WARN_CFLAGS): Remove $(WERROR).
7696         (fixinc.sh-warn): New.
7697         * ada/Make-lang.in (ada-warn): Add $(WERROR).
7698         * cp/Make-lang.in (cp-warn): Add $(WERROR).
7699         * f/Make-lang.in (f-warn): Add $(WERROR).
7700         * java/Make-lang.in (java-warn): Add $(WERROR).
7701         * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
7703 2003-03-19  Nathanael Nerode  <neroden@gcc.gnu.org>
7705         * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
7706         langhooks-def.h (lhd_tree_dump_dump_tree),
7707         langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
7708         Change return type from 'int' to 'bool'.  Replace 0 and 1 with
7709         true and false in return statements.
7711 2003-03-19  Kevin Buettner  <kevinb@redhat.com>
7713         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
7714         (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
7715         DWARF_INITIAL_LENGTH_SIZE.
7716         (output_compilation_unit_header, output_pubnames, output_aranges)
7717         (output_line_info): Output 0xffffffff escape value for 64-bit
7718         DWARF extension.
7719         * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
7721 2003-03-19  Ulrich Weigand  <uweigand@de.ibm.com>
7723         * config/s390/s390.c (s390_preferred_reload_class): Do not
7724         force constants to the pool unless necessary.
7725         (s390_decompose_address): Prefer to use pointer as base,
7726         not index register.
7727         * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
7728         Q alternative.
7729         ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
7730         "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
7731         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
7732         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
7733         "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
7735 2003-03-19  Jan Hubicka  <jh@suse.cz>
7737         * i386.h (machine_function): New fields use_fast_prologue_epilogue.
7738         * i386.c (use_fast_prologue_epilogue): Remove.
7739         (ix86_frame): New field save_regs-using_mov;
7740         (ix86_compute_frame_layout):  Decide on fast prologues;
7741         allocate saved registers in red zone.
7742         (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
7744 2003-03-19  Nick Clifton  <nickc@redhat.com>
7746         * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
7748 2003-03-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7750         PR 10062
7751         * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
7752         * pa-protos.h (output_lbranch): New prototype.
7753         * pa.c (compute_frame_size): Change size of the frame marker on the
7754         64-bit ports to 48 bytes.
7755         (pa_output_function_prologue): Document why SAVE_SP is set.
7756         (hppa_expand_prologue): Save previous stack pointer into frame marker
7757         on targets which use the hpux unwind library.
7758         (output_cbranch): Use output_lbranch.
7759         (output_lbranch): New function to output long unconditional branches.
7760         * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
7761         (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
7762         64-bit ports.
7763         * pa.md (jump): Use output_lbranch.
7764         (allocate_stack): New expander for dynamic stack allocation.
7766 2003-03-19  Alan Modra  <amodra@bigpond.net.au>
7768         * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
7769         when debugging on XCOFF targets.  Delete "abi" temp.
7771         PR target/10073
7772         * combine.c (force_to_mode <NOT>): Use gen_int_mode.
7774 2003-03-18  Jakub Jelinek  <jakub@redhat.com>
7776         * config/s390/s390.c (s390_output_dwarf_dtprel): New.
7777         * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
7778         * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
7780         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
7781         * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
7782         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
7784 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
7786         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
7787         the result of machopic_function_base_name.
7788         * config/darwin.c (machopic_function_base_name): Use a gc-allocated
7789         string rather than a static array.
7791         * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
7793         * gengtype.c: Include rtl.h.
7794         (enum rtx_code): Don't define.
7795         (rtx_format): Make declaration match rtl.h.
7796         (rtx_next_new): Rename from rtx_next to avoid conflict.  Change all
7797         users.
7798         (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
7799         * Makefile.in (gengtype.o): Update dependencies.
7801 2003-03-18  Andreas Schwab  <schwab@suse.de>
7803         * config/m68k/m68k.md (iordi3): Fix setting low half to -1.  From
7804         martin@blom.org.
7806 2003-03-18  Geoffrey Keating  <geoffk@apple.com>
7808         * function.c (next_block_index): Mark with GTY.
7810         * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
7812 2003-03-18  Richard Henderson  <rth@redhat.com>
7814         * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
7815         (builtin_setjmp_receiver): Delay call to ia64_reload_gp
7816         until after reload.
7818 2003-03-18  Richard Henderson  <rth@redhat.com>
7820         * builtins.c (expand_builtin_unop): New target_mode operand;
7821         use it to convert the result to the correct mode.
7822         (expand_builtin): Update all callers.
7824 2003-03-18  Ulrich Weigand  <uweigand@de.ibm.com>
7826         * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
7828 2003-03-18  Jan Hubicka  <jh@suse.cz>
7830         * i386.md:  Fix previous commit that mistakely applied the patch
7831         twice.
7833         * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
7834         canonicalized.
7835         (memrefs_conflict_p): Likewise.
7836         (addr_side_effect_eval): Canonicalize the constructed address.
7838 2003-03-18  Jan Hubicka  <jh@suse.cz>
7840         * i386.md (cvtts?2si peep2): New.
7842 2003-03-18  Kazu Hirata  <kazu@cs.umass.edu>
7844         * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
7846 2003-03-18  Andreas Schwab  <schwab@suse.de>
7848         * dwarf2out.c (output_file_names): Cast size_t to unsigned long
7849         for format.
7851 2003-03-17  Jason Merrill  <jason@redhat.com>
7853         PR c++/10091
7854         * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
7855         an unaligned member of TREE_ADDRESSABLE type.
7857 2003-03-18  Alan Modra  <amodra@bigpond.net.au>
7859         * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
7860         (TARGET_PROFILE_KERNEL): Define.
7861         (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
7862         (PROFILE_BEFORE_PROLOGUE): Don't define.
7863         (PROFILE_KERNEL): Remove hacks.
7864         * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
7865         (rs6000_stack_info): No need to save lr if just for profiling when
7866         TARGET_PROFILE_KERNEL.
7867         (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
7868         (output_function_profiler): Localize label generation.  Emit code
7869         for kernel profiling.
7871 2003-03-17  Kazu Hirata  <kazu@cs.umass.edu>
7873         * config/h8300/h8300-protos.h: Add a prototype for
7874         byte_accesses_mergeable_p.
7875         * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
7876         * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
7877         (a splitter): Likewise.
7878         (*iorsi3_ashift_16_ashift_24): Likewise.
7879         (*iorsi3_ashift_16_ashift_24_mem): Likewise.
7881 2003-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7883         * dwarf2asm.h: Delete obsolete comment.
7884         (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
7885         dw2_asm_output_pcrel, dw2_asm_output_addr,
7886         dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
7887         dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
7888         dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
7889         dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
7891 2003-03-17  Zack Weinberg <zack@codesourcery.com>
7893         * c-tree.h (struct lang_identifier): Remove error_locus field.
7894         (IDENTIFIER_ERROR_LOCUS): Kill.
7895         (record_function_scope_shadow): New prototype.
7896         * c-typeck.c (build_external_ref): Don't complain if
7897         decl is error_mark_node.  When not at file scope, bind the
7898         decl's local value to error_mark_node to suppress further
7899         warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
7901         * c-decl.c (get_function_binding_level): New static function.
7902         (record_function_scope_shadow): New exported function.
7903         (c_make_fname_decl): Use get_function_binding_level.
7905 2003-03-17  Steve Ellcey  <sje@cup.hp.com>
7907         * stmt.c (tail_recursion_args): Call promote_mode to set
7908         unsignedp flag correctly before calling convert_move.
7910 2003-03-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7912         * loop-unroll.c (decide_peel_completely,
7913         decide_unroll_constant_iterations, decide_unroll_stupid,
7914         decide_unroll_runtime_iterations, decide_peel_simple): Set
7915         loop->has_desc.
7917 2003-03-17  Jan Hubicka  <jh@suse.cz>
7919         * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
7921 2003-03-17  Olivier Hainque  <hainque@act-europe.fr>
7923         * function.c (assign_parms): For a struct value address passed as
7924         first argument, delay the function's result RTL setup code until
7925         after the emission of parameter conversions.
7927 2003-03-17  Dave Love  <fx@gnu.org>
7928             Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7930         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
7931         __arch64__ to match Compaq cc.
7933 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
7935         * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
7936         (c_common_init): Set EBCDIC in cpp options.
7937         * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
7938         not conditional compilation.
7939         * cpplib.h (struct cpp_options): New entry EBCDIC.
7941 2003-03-17  Neil Booth  <neil@daikokuya.co.uk>
7943         * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
7945 2003-03-17  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7947         * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
7948         argument to 0 for redirect_jump.
7950 2003-03-16  Mark Mitchell  <mark@codesourcery.com>
7952         PR c++/8805
7953         * except.c (eh_region_u_cleanup): Add prev_try.
7954         (expand_eh_region_end_cleanup): Set it.
7955         (reachable_handlers): Use it to skip over cleanup blocks.
7957 2003-03-17  Andreas Jaeger  <aj@suse.de>
7959         * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
7961 2003-03-17  Alan Modra  <amodra@bigpond.net.au>
7963         * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
7964         (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
7965         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
7966         (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
7968 2003-03-16  Richard Henderson  <rth@redhat.com>
7970         * simplify-rtx (simplify_binary_operation): Don't abort for
7971         SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
7973 2003-03-16  Richard Henderson  <rth@redhat.com>
7975         * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
7976         optimize_size as well.
7978 2003-03-16  Stephane Carrez  <stcarrez@nerim.fr>
7980         * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
7981         for D register to specify the low part of it, aka B.
7982         (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
7983         the register if we are loading 1 or -1 to it; avoid using temp
7984         register when moving X/Y to Y/X.
7985         (m68hc11_gen_movqi): Likewise.
7986         (m68hc11_check_z_replacement): Fix last insn setting for compare case.
7988 2003-03-14  Mark Mitchell  <mark@codesourcery.com>
7990         PR optimization/9016
7991         * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
7992         into the constant pool.
7994 2003-03-16  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
7996         PR target/9164
7997         * tree.c (get_narrower): For extensions with unchanged bit number,
7998         return the unsignedness of the outer mode.
8000 2003-03-16  Roger Sayle  <roger@eyesopen.com>
8002         * c-typeck.c (build_component_ref):  Turn "for" into "do .. while"
8003         to avoid "may be used uninitialized" warning on ia64-hpux.
8004         * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
8006 2003-03-16  Andreas Jaeger  <aj@suse.de>
8008         * configure.in: Improve check for memcheck.h.
8009         * configure: Regenerated.
8011 2003-03-16  Neil Booth  <neil@daikokuya.co.uk>
8013         * doc/cppopts.texi: Remove documentation of -A-.
8015 2003-03-15  Zack Weinberg  <zack@codesourcery.com>
8017         * doc/libgcc.texi: Remove @tie.
8019 2003-03-15  Josef Zlomek  <zlomekj@suse.cz>
8021         * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
8022         (rtx_pair): Added new element update_label_nuses, renamed to
8023         replace_label_data.
8024         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
8025         replace_label_data instead of rtx_pair.
8026         * loop.c (load_mems): Likewise.
8027         * rtlanal.c (replace_label): Replace label in pool constants and in
8028         INSN_LIST (in REG_LABEL note).
8029         (subrtx_p): Renamed to rtx_referenced_p.
8030         (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
8031         LABEL_REF with CODE_LABEL, traverse constants from pool.
8033 2003-03-15  Aldy Hernandez <aldyh@redhat.com>
8034             Zack Weinberg  <zack@codesourcery.com>
8036         * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
8037         * doc/libgcc.texi: New file.
8038         * doc/interface.texi: Delete paragraph about libgcc interface.
8039         * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
8041 2003-03-15  Jason Merrill  <jason@redhat.com>
8043         PR debug/9039
8044         * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
8046         PR debug/6387
8047         * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
8048         function DIEs at toplevel.
8049         (decls_for_scope): At -g1, don't descend into subblocks.
8051 2003-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
8053         * varasm.c (struct rtx_const): Change type of un.addr member
8054         to struct holding an additional 'symbol' member.
8055         (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
8056         with equal string addresses as equal.
8057         (simplify_subtraction): Adapt to struct rtx_const change.
8059 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
8061         * fix-header.c (read_scan_file): Read main file before handling -D.
8063 2003-03-15  Roger Sayle  <roger@eyesopen.com>
8065         * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
8066         * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
8067         * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
8068         (find_sub_basic_blocks): Likewise.
8069         * cgraphunit.c (cgraph_expand_functions): Likewise.
8070         * dwarf2out.c (prune_unused_types): Likewise.
8071         * expr.c (store_field): Likewise.
8072         * genextract.c (print_path): Likewise.
8073         * haifa-sched.c (schedule_insn): Likewise.
8074         * lcm.c (compute_antinout_edge): Likewise.
8075         * loop-unroll.c (decide_peel_once_rolling): Likewise.
8076         * ra-colorize.c (ra_colorize_free_all): Likewise.
8077         * ra-debug.c (dump_igraph): Likewise.
8078         (debug_hard_reg_set): Likewise.
8079         * reg-stack.c (reg_to_stack): Likewise.
8080         * rtlanal.c (refers_to_regno_p): Likewise.
8081         * tracer.c (layout_superblocks): Likewise.
8083 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
8085         * fix-header.c (read_scan_file): Fix thinko.
8087 2003-03-15  Glen Nakamura  <glen@imodulo.com>
8089         * reload1.c (choose_reload_regs): Use && instead of ||
8090         with REG_CANNOT_CHANGE_MODE_P condition.
8092 2003-03-15  Neil Booth  <neil@daikokuya.co.uk>
8094         * Makefile.in: Update.
8095         * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
8096         * c-lex.c (init_c_lex): Register builtins hook is dead.
8097         * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
8098         (c_common_decode_option): Don't call cpp_handle_option.
8099         Handle -A, -D and -U.
8100         (handle_deferred_opts): Simplify.
8101         (finish_options): Define builtins and command line macros.
8102         * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
8103         * cppinit.c: Don't include intl.h.
8104         (init_builtins): Rename cpp_init_builtins.  No hook to call.
8105         (init_library): Don't need to sort options.
8106         (cpp_create_reader): Don't set pending.
8107         (cpp_destroy): Don't free pending.
8108         (struct pending_option, cl_directive_handler, struct cpp_pending,
8109         APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
8110         cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
8111         cl_options, cpp_handle_option): Remove.
8112         * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
8113         cpp_finish_options): Remove.
8114         (cpp_init_builtins): New.
8115         * fix-header.c (read_scan_file): Update to handle -D.  Fix
8116         handling of -I.  Replace call to cpp_finish_options.
8118 2003-03-15  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8120         PR optimization/9387
8121         * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
8122         for conditional returns.
8124 2003-03-14  Jason Merrill  <jason@redhat.com>
8126         PR optimization/6871
8127         * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
8129 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
8131         * c-opts.c (finish_options): New.
8132         (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
8133         (missing_arg): Handle OPT_include and OPT_imacros.
8134         (c_common_init, c_common_parse_file): Use finish_options.
8135         (handle_deferred_opts): Update.
8136         * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
8137         (cpp_finish_options): Don't handle -imacros here.
8138         (no_fil): Remove.
8139         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
8141 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
8143         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
8144         rs6000_maybe_dead if !fromprolog.
8146 2003-03-14  Neil Booth  <neil@daikokuya.co.uk>
8148         * Makefile.in: Update.
8149         * c-common.h (fe_file_change, pp_file_change): New.
8150         * c-lex.c (init_c_lex): Don't set cb_file_change.
8151         (c_common_parse_file): Move to c-opts.c.
8152         (cb_file_change): Rename fe_file_change.
8153         * c-opts.c: Include debug.h.
8154         (warn_unused_macros, include_cursor): New.
8155         (push_command_line_include, cb_file_change): New.
8156         (COMMAND_LINE_OPTIONS): Handle -include.
8157         (c_common_decode_option): Use local warn_unused_macros.
8158         Handle OPT_include.
8159         (c_common_post_options): Set file change callback.
8160         (handle_deferred_opts): Skip -include.  Don't free the array.
8161         (c_common_init): Call cpp_finish_options here, and push an
8162         initial -include file.
8163         * c-ppoutput.c (cb_file_change): Rename pp_file_change.
8164         (preprocess_file): Don't call cpp_finish_options.
8165         (init_pp_output): Don't set the file change callback.
8166         (pp_file_change): Return if no line commands or no output.
8167         * cpphash.h (next_include_file, first_unused_line): Remove.
8168         * cppinit.c (include_head, include_tail): Remove.
8169         (cpp_destroy): Don't free -include chain.
8170         (cpp_finish_options): Don't handle -include, or worry about
8171         -Wunused-macros.
8172         (_cpp_maybe_push_include_file): Remove.
8173         (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
8174         * cpplib.c (_cpp_pop_buffer): Don't handle -include.
8175         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
8176         Used flag is set based upon the state of the warn_unused_macros
8177         flag, and so use of first_unused_line is unnecessary.
8179 2003-03-13  Jan Hubicka  <jh@suse.cz>
8181         * cselib.c (clear_table): Do not take argument; always clear just
8182         used slots.
8183         (cselib_process_insn):  Update call of clear_table
8184         (cselib_init): Do not call clear_table.
8185         (cselib_finish): Clear table.
8187         * cse.c (count_reg_usage): Do not check side_effects_p.
8188         * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
8189         like noop.
8190         (find_reg_equal_equiv_note): Do not use find_reg_note.
8192 2003-03-14  Richard Henderson  <rth@redhat.com>
8194         PR target/9700
8195         * config/alpha/alpha.c (alpha_va_start): Account for
8196         current_function_pretend_args_size in the AP offset.
8198         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
8199         (INITIAL_ELIMINATION_OFFSET): Move out of line.
8200         * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
8201         (alpha_initial_elimination_offset) New.
8202         * config/alpha/alpha-protos.h: Update.
8204 2003-03-14  Jakub Jelinek  <jakub@redhat.com>
8206         * stmt.c (expand_start_case): Call emit_queue ().
8208 2003-03-14  Chris Demetriou  <cgd@broadcom.com>
8209             Alexandre Oliva  <aoliva@redhat.com>
8211         * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
8212         words in new abis.
8214 2003-03-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
8216         PR optimization/8396
8217         * tree-inline.c (initialize_inlined_parameters): Make sure the value
8218         of read-only constant arguments is passed with the right type.
8220 2003-03-14  Steven Bosscher  <steven@gcc.gnu.org>
8222         * doc/extend.texi (Function Names): Make the example compilable.
8224 2003-03-13  David Edelsohn  <edelsohn@gnu.org>
8226         * config/rs6000/rs6000.c (processor_target_table): Really allow
8227         GP optional instructions on Power4.
8229 2003-03-13  Roger Sayle  <roger@eyesopen.com>
8231         * calls.c (flags_from_decl_or_type): Factor and remove redundant
8232         conditional tests.
8234 2003-03-13  Mike Stump  <mrs@apple.com>
8236         * ggc-page.c (struct page_entry): Remove varray.h header.
8237         Add index_by_depth field.
8238         Remove save_in_use_p field.
8239         (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
8240         by_depth_max, by_depth, and save_in_use fields.
8241         (INITIAL_PTE_COUNT): Add.
8242         (save_in_use_p_i): Add.
8243         (save_in_use_p): Add.
8244         (adjust_depth): Add.
8245         (move_ptes_to_front): Add.
8246         (push_depth): Add.
8247         (push_by_depth): Add.
8248         (prefetch): Add.
8249         (free_page): Add support for and use faster data structures.
8250         (ggc_alloc): Likewise.
8251         (init_ggc): Likewise.
8252         (ggc_recalculate_in_use_p): Likewise.
8253         (ggc_pop_context): Likewise.
8254         (clear_marks): Likewise.
8255         (ggc_pch_read): Likewise.
8256         * Makefile.in (ggc-page.o): Remove varray.h.
8258 2003-03-13  Nathanael Nerode  <neroden@gcc.gnu.org>
8260         * ChangeLog: Rotated last year's entries to...
8261         * ChangeLog.8: New.
8263         * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
8264         config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
8265         config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
8266         config/ia64/ia64-protos.h, config/ia64/ia64.c,
8267         config/ia64/ia64.h, config/ia64/ia64.md,
8268         config/ia64/itanium1.md, config/ia64/itanium2.md,
8269         config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
8270         config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
8272 2003-03-13  Aldy Hernandez  <aldyh@redhat.com>
8274         * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
8275         Differentiate endianness.
8276         (s6000_override_options): Use cpu type instead of TARGET_SPE.
8278 2003-03-13  Nick Clifton  <nickc@redhat.com>
8280         * config/arm/arm.c (print_multi_reg): Do not generate a type 2
8281         LDM instructions with writeback enabled.
8282         (output_return_instruction): Likewise.
8284         * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
8285         (CALL_USED_REGISTERS): Remove definition.
8286         (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
8288 2003-03-13  Alan Modra  <amodra@bigpond.net.au>
8290         * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
8291         (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
8292         (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
8293         (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
8294         (rs6000_legitimize_address): Formatting.
8295         (rs6000_emit_move): Likewise.
8296         (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
8297         (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
8298         (rs6000_elf_select_section): Comment reason for shlib being
8299         set for ABI_AIX.
8300         (rs6000_elf_unique_section): Likewise.
8301         (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
8302         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
8303         as well as flag_pic.
8304         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
8305         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
8306         * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
8308 2003-03-13  Richard Henderson  <rth@redhat.com>
8310         * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
8312         * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
8313         (ia64_gp_save_reg): Remove.
8314         (struct ia64_frame_info): Move to the beginning of the file;
8315         add reg_save_gp.
8316         (ia64_expand_call): Rearrange for new call patterns.
8317         (ia64_reload_gp): New.
8318         (ia64_split_call): New.
8319         (ia64_compute_frame_size): Allocate reg_save_gp.
8320         (ia64_expand_prologue): Save reg_save_gp.
8321         (ia64_expand_epilogue): Don't restore gp.
8322         (ia64_hard_regno_rename_ok): Remove R4 hack.
8323         (ia64_function_ok_for_sibcall): New.
8324         (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
8325         call try_split on sibcall pattern.
8326         * config/ia64/ia64-protos.h: Update.
8327         * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
8328         Rename from nopic versions.  Confiscate 2nd argument to call as
8329         a marker.
8330         (call_pic, call_value_pic, sibcall_pic): Remove.
8331         (call_gp, call_value_gp, sibcall_gp): New.
8332         (builtin_setjmp_setup): Remove.
8333         (builtin_setjmp_receiver): Call ia64_reload_gp.
8335 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
8337         * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
8338         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
8339         "GNU CC" with "GCC".
8341         * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
8342         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
8343         config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
8344         GCC, not GNU CC.
8346         * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
8347         langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
8349         * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
8350         langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
8351         unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
8352         "GNU CC" with "GCC".
8354         * config/v850/lib1funcs.asm, config/v850/rtems.h,
8355         config/v850/v850-c.c, config/v850/v850-protos.h,
8356         config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
8357         GCC, not GNU CC.
8359         * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
8360         config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
8361         config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
8362         config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
8363         GNU CC.
8365 2003-03-12  Benjamin Kosnik  <bkoz@redhat.com>
8367         * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
8369 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
8371         * fixinc/fixinc.interix: Remove dead code (most of it).
8372         * fixinc/fixinc.dgux: Remove.
8374         * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
8375         ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
8377 2003-03-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8379         * pa.c (pa_init_builtins): Fix warning.
8381 2003-03-12  Steve Ellcey  <sje@cup.hp.com>
8383         * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
8384         (ASM_OUTPUT_XDATA_SHORT): Remove.
8385         (ASM_OUTPUT_XDATA_INT): Remove.
8386         (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
8387         (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
8388         (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
8389         (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
8391 2003-03-12  Andrew Lewycky  <andrew@mxc.ca>
8393         PR c++/7050
8394         * expr.c (store_expr): Don't attempt to store void-typed trees,
8395         just evaluate them for side effects.
8397 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
8399         * cppfiles.c (cpp_rename_file, cpp_push_include): New.
8400         * cppinit.c (push_include): Move with changes to cppfiles.c.
8401         (cpp_read_main_file): Mark named operators here...
8402         (cpp_finish_options): ...not here.  Update.
8403         (_cpp_maybe_push_include_file): Update.
8404         * cpplib.h (cpp_push_include, cpp_rename_file): New.
8406 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
8408         * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
8409         _gcc_COMPUTE_GAS_VERSION.
8410         * configure.in: Use them.
8411         * configure: Regenerate.
8413 2003-03-12  Bob Wilson  <bob.wilson@acm.org>
8415         * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
8416         to detect carry.
8417         (subdi3): Reorder emitted instructions.
8419 2003-03-12  Andreas Jaeger  <aj@suse.de>
8421         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
8422         NETBSD_OS_CPP_BUILTINS_LP64.
8424 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
8426         * Makefile.in: Eliminate all.indirect.  Update and clean up comments.
8427         Rearrange.  Reorganize.
8428         * configure.in: Rearrange.
8429         * configure: Regenerate.
8431 2003-03-12  Andreas Jaeger  <aj@suse.de>
8433         * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
8434         LP64 targets.
8436         * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
8437         _LP64.
8439         * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
8440         _LP64 macros here.
8441         * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
8443         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
8444         NETBSD_OS_CPP_BUILTINS_LP64.
8445         * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
8446         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
8448         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
8450 2003-03-12  Jan Hubicka  <jh@suse.cz>
8452         * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
8454 2003-03-12  Daniel Jacobowitz  <drow@mvista.com>
8456         Fix PR target/9797 and PR c/9853.
8457         * stmt.c (expand_decl_init): Call push_temp_slots () and
8458         pop_temp_slots ().
8460 2003-03-12  J"orn Rennecke <joern.rennecke@superh.com>
8462         * sh.c: Include basic-block.h.
8463         (sh_output_mi_thunk, emit_load_ptr): New functions.
8464         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
8466 2003-03-12  Nick Clifton  <nickc@redhat.com>
8468         * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
8469         (CALL_USED_REGISTERS): Likewise.
8470         * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
8471         describing how this value is calculated.
8473 2003-03-12  Hans-Peter Nilsson  <hp@bitrange.com>
8475         * configure.in (rlim_t): Define to long if no valid definition
8476         found in sys/resource.h.
8477         * config.in, configure: Regenerate.
8479 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
8481         * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
8482         TARGET_OS_CPP_BUILTINS.
8483         * config/mcore/mcore-pe.h: Similarly.
8484         * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
8485         CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
8487 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
8489         PR c/9928
8490         * c-decl.c (duplicate_decls): Discard the initializer of the new decl
8491         only if it is a VAR_DECL.
8493 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
8495         PR optimization/9888
8496         * config/i386/i386.md (jcc_1): Fix range.
8497         (jcc_2): Likewise.
8498         (jump): LIkewise.
8499         (doloop_end_internal): Likewise.
8501 2003-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
8503         * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
8504         Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
8505         (DLL_EXPORT_PREFIX): New define. Use throughout instead of
8506         DLL_IMPORT_EXPORT_PREFIX and "i."
8507         (i386_pe_dllexport_name_p): Here.
8508         (i386_pe_dllimport_name_p): Here.
8509         (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
8510         not 9 chars when getting identifier name.
8511         (i386_pe_mark_dllimport): Here.
8512         (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
8513         not 9 chars when getting identifier name. Correct comment.
8514         (i386_pe_strip_name_encoding): Here. Add comments for different
8515         cases.
8516         (gen_fastcall_suffix): Break down xmalloc() argument to
8517         components.
8518         (gen_stdcall_suffix): Likewise.
8519         Update copyright year.
8521 2003-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
8523         PR optimization/9888
8524         * config/i386/i386.md (movsi_1): Remove special alternatives
8525         for %eax register.
8526         (movsi_1_nointernunit): Likewise.
8527         (movhi_1): Likewise.
8528         * config/i386/i386.c (memory_address_length): Do not use
8529         short displacement when there is no base.
8530         (ix86_attr_length_address_default): Handle LEA instructions.
8532 2003-03-12  Neil Booth  <neil@daikokuya.co.uk>
8534         * c-cppbuiltin.c (builtin_define_std): Make non-static.
8536 2003-03-11  Loren James Rittle  <ljrittle@acm.org>
8538         * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
8539         (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
8540         (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
8541         * config/freebsd.h (CPP_PREDEFINES): Remove.
8542         (TARGET_OS_CPP_BUILTINS): New.
8543         * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
8544         instead of TARGET_OS_CPP_BUILTINS.
8545         * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
8547 2003-03-11  Geoffrey Keating  <geoffk@apple.com>
8549         * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
8551 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
8553         * config/rs6000/rs6000.c (rs6000_stack_info): Remove
8554         insn_chain_scanned.  Use insn_chain_scanned_p in machine_function.
8556         * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
8558 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
8560         * toplev.c (independent_decode_option): Return success for --help,
8561         --target-help and --version.
8563 2003-03-11  Alexandre Oliva  <aoliva@redhat.com>
8565         * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
8566         Default to -mips3 on -mabi=64.  Don't add -mips* flag if -march is
8567         specified.
8568         (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
8569         DRIVER_SELF_SPECS.
8570         (LINK_SPEC): Let endian options affect the linker emulation name.
8572 2003-03-11  J"orn Rennecke <joern.rennecke@superh.com>
8574         * sh.md (reload_inqi): Fix mode for source in second set.
8576 2003-03-11  Jan Hubicka  <jh@suse.cz>
8578         * cselib.c (cselib_invalidate_mem_1): Move too ...
8579         (cselib_invalidate_mem): ... here; use new list
8580         (dummy_val, first_containing_mem): New static variables.
8581         (clear_table): Initialize first_containing_mem.
8582         (discard_useless_values):  Compact the containing_mem list.
8583         (add_mem_for_addr): Add to the list.
8584         * cselib.h (cselib_val): Add next_containing_mem.
8586 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
8588         * config/rs6000/rs6000.c (rs6000_override_options): Disable string
8589         instructions for e500.
8591 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
8593         * Makefile.in: Update.
8594         * c-cppbuiltin.c: Include tm_p.h.
8596 2003-03-11  Aldy Hernandez  <aldyh@redhat.com>
8598         * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
8600         * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
8601         (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
8602         (_Unwind_SetGR): Same.
8603         (_Unwind_GetGRPtr): New.
8604         (_Unwind_SetGRPtr): New.
8605         (uw_update_context_1): Use accesor functions instead of accessing
8606         context->reg[] directly.
8607         (uw_install_context_1): Same.
8608         (execute_cfa_program): Same.
8609         (__frame_state_for): Same.
8611         * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
8612         the synthetic register offset.
8614         * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
8616 2003-03-11  Hans-Peter Nilsson  <hp@axis.com>
8618         * config/cris/cris.md: Remove lingering EGCS reference.
8619         ("*extopqihi_side_biap"): For HI operation, match
8620         cris_additive_operand_extend_operator, not
8621         cris_operand_extend_operator.  Adjust condition.
8622         ("*extopqihi_side", "*extopqihi"): Ditto.
8623         ("*extopqisi_side_biap"): Correct operand numbers in condition.
8624         ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
8625         ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
8626         ("*extophisi_swap"): Ditto.
8627         ("*extopqihi_swap_side_biap"): For HI operation, match a simple
8628         PLUS, not cris_operand_extend_operator.  Adjust condition and
8629         output template.
8630         ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
8631         * config/cris/cris.h (PREDICATE_CODES): Add
8632         cris_additive_operand_extend_operator.
8633         * config/cris/cris.c (cris_additive_operand_extend_operator):
8634         New predicate.
8636 2003-03-11  Hartmut Penner  <hpenner@de.ibm.com>
8638         * df.c (read_modify_subreg_p): Change from static to global.
8639         * df.h (read_modify_subreg_p): Add prototype.
8640         * sched-deps.c (sched_analyze_1): Generate true dependency for
8641         strict_low_part, certain subregs and zero/sign_extract.
8643 2003-03-11  Neil Booth  <neil@daikokuya.co.uk>
8645         * Makefile.in: Update.
8646         * c-common.c: Don't include real.h or except.h.
8647         (REGISTER_PREFIX): Remove.
8648         (builtin_define_std, builtin_define_with_value,
8649         builtin_define_with_int_value, builtin_define_with_hex_fp_value,
8650         builtin_define_type_max, builtin_define_type_precision,
8651         builtin_define_float_constants): Move to c-cppbuiltin.c.
8652         (c_stddef_cpp_builtins): New.
8653         * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
8654         * c-cppbuiltin.c: New, extracted from c-common.c.
8655         (define__GNUC__): New.
8656         * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
8657         * gcc.c: Remove support of %v1, %v2 and %v3 specs.
8658         (cpp_unique_options): Don't support no-gcc.
8659         (do_spec_1): Remove support of version specs.
8660         * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
8661         * doc/passes.texi: Update.
8662         * doc/tm.texi: Update.
8664 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
8666         * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
8668 2003-03-10  Andrew Pinski  <apinski@apple.com>
8670         * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
8671         is on should not get here.
8672         (machopic_indirect_data_reference): If dynamic-no-pic is on just
8673         generate high/low parts of the address.
8674         (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
8675         MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
8676         symbol and labels with a new reg.  Dynamic-no-pic does not have a
8677         pic_offset_table_rtx.
8678         (machopic_select_section): Change references of flag_pic to
8679         MACHOPIC_INDIRECT.
8680         (machopic_asm_out_destructor): Likewise.
8681         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
8682         reference of flag_pic to MACHOPIC_INDIRECT.
8683         (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
8684         (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
8685         (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
8686         (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
8687         * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
8688         0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
8689         * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
8690         (TARGET_DYNAMIC_NO_PIC): Define.
8691         (SUBTARGET_SWITCHES): Define, have sub-target switches for
8692         dynamic-no-pic.
8693         (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
8694         rs6000_override_options to here. Dynamic-no-pic overrides
8695         pic.
8696         (CC1_SPEC): Change from not static then pic to not static and not
8697         dynamic-no-pic then pic.
8698         * config/rs6000/rs6000.c (rs6000_override_options): Move the
8699         check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
8700         (rs6000_legitimize_reload_address): Add case for loading floating in
8701         dynamic-no-pic.
8702         (rs6000_emit_move): Add case for dynamic-no-pic.  Change reference
8703         of flag_pic to MACHOPIC_INDIRECT.
8704         (secondary_reload_class): Conditional change the reference of
8705         flag_pic to MACHOPIC_INDIRECT.
8706         (rs6000_output_mi_thunk): Change reference of flag_pic to
8707         MACHOPIC_INDIRECT.
8708         (output_profile_hook): Likewise.
8709         (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
8710         * config/rs6000/rs6000.md (movdf_low): Add the case for
8711         MACHO_DYNAMIC_NO_PIC_P.
8712         (call): Change references for flag_pic in TARGET_MACHO to
8713         MACHOPIC_INDIRECT.
8714         (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
8715         -mdynamic-no-pic is on.  Also move case for -fpic from rs6000.c.
8716         * doc/invoke.texi (-mdynamic-no-pic): Document.
8718 2003-03-10  Devang Patel  <dpatel@apple.com>
8720         PR c++/9394
8721         * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
8722         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
8723         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
8724         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
8725         * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
8726         (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
8728 2003-03-10  Steven Bosscher  <s.bosscher@student.tudelft.nl>
8730         PR optimization/7189
8731         * toplev.c (rest_of_compilation):  Move
8732         check_function_return_warnings up to just after
8733         delete_unreachable_blocks.
8735 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
8737         * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
8738         * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
8739         Declare.
8740         * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
8741         for reg rename optimization to avoid using Z and Y registers.
8743 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
8745         * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
8746         when adding to X and Y since leax/leay are fast.
8747         ("*addhi3"): Accept 'I' constraint when adding to address register.
8748         ("rotlhi3"): Operand 1 must be a register_operand.
8749         (peephole2): New peephole to optimize some adds.
8750         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
8751         to represent -2 .. 2 small integer range.
8753 2003-03-10  Stephane Carrez  <stcarrez@nerim.fr>
8755         * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
8756         each 16-bit rotation.
8758 2003-03-10  Zack Weinberg  <zack@codesourcery.com>
8760         * c-opts.c (add_prefixed_path): Don't use concat.  When
8761         prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
8762         cpp_GCC_INCLUDE_DIR_len characters.
8764 2003-03-10  Segher Boessenkool  <segher@koffie.nl>
8766         * testsuite/gcc.dg/altivec-9.c: New file.
8768         * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
8769         (rs6000_emit_prologue): Use rs6000_frame_related instead.
8771 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
8773         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
8774         vectors.
8775         (__ev_convert_u64): Remove macro.  Define as inline.
8776         (__ev_convert_s64): Same.
8778 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
8780         * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
8781         (rs6000_stack_t): Add spe_64bit_regs_used.
8783         * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
8784         spe_64bit_regs_used, and use it to determine the size of the
8785         frame.
8786         (spe_func_has_64bit_regs_p): New.
8787         (spe_synthesize_frame_save): New.
8788         (rs6000_frame_related): Handle SPE synthetic registers.
8789         (rs6000_emit_prologue): Only save in 64-bits if the function used
8790         any registers in 64-bit mode.
8791         (rs6000_emit_epilogue): Same, but for restore.
8793 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
8795         * arm.h (enum floating_point_type): Delete.  Replace with...
8796         (enum fputype): ... new.
8797         (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT.  Values reworked.
8798         * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
8799         * arm.md (attr fpu): Reworked for new underlying enum values.
8800         * arm.c (arm_fpu_arch): Now enum fputype.
8801         (arm_fpu_tune): Renamed from arm_fpu.  Now enum fputype.
8802         (arm_override_options, arm_output_epilogue, arm_expand_prologue):
8803         Update uses of arm_fpu_arch and arm_fpu_tune.
8805 2003-03-10  Josef Zlomek  <zlomekj@suse.cz>
8807         * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
8808         (try_crossjump_to_edge): Replace refereces to one jump table by
8809         references to identical jump table.
8810         * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
8811         (replace_label): Moved to rtlanal.c.
8812         (struct rtx_pair): Moved to rtl.h.
8813         * rtl.h (struct rtx_pair): Moved from loop.c.
8814         (replace_label): New extern function.
8815         (subrtx_p): New extern function.
8816         (tablejump_p): New extern function.
8817         * rtlanal.c (replace_label): Moved from loop.c.
8818         (subrtx_p_1): New static function.
8819         (subrtx_p): New function.
8820         (tablejump_p): New function.
8822 2003-03-10  Jan Hubicka  <jh@suse.cz>
8824         * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
8826         * cfgcleanup.c (merge_blocks): Return where to iterate next.
8827         (try_optimize_cfg): Use return value of merge_blocks
8829 2003-03-10  Michael Matz  <matz@suse.de>
8831         * cfg.c (unchecked_make_edge): New.
8832         (cached_make_edge): Use it.
8833         * basic-block.h (unchecked_make_edge): Declare.
8834         * cfglayout.c (cfg_layout_duplicate_bb): Use it.
8836 2003-03-10  Richard Earnshaw  <rearnsha@arm.com>
8838         * fpa.md: New file.  Move all patterns relating to FPA co-processor
8839         to here...
8840         * arm.md: ... from here.
8841         (cirrus.md, fpa.md): Include at end of description.
8842         (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
8843         (pic_load_addr_based): Remove register constraint from expander.
8844         (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
8845         (sordered, sungt, sunle, sunge, sunlt): Likewise.
8846         (eh_epilogue, tablejump): Likewise.
8848 2003-03-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8850         * tree.c (substitute_in_expr, case 'e'): Only make recursive call
8851         on operands if it has a PLACEHOLDER_EXPR.
8853 2003-03-09  David Edelsohn  <edelsohn@gnu.org>
8854             Mostafa Hagog
8856         * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
8857         condition.
8859 2003-03-09  Neil Booth  <neil@daikokuya.co.uk>
8861         * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
8862         * config/ip2k/ip2k.h: Similarly.
8863         * config/m32r/m32r.h: Similarly.
8864         * config/m68hc11/m68hc11.h: Similarly.
8865         * config/mn10200/mn10200.h: Similarly.
8866         * config/mn10300/mn10300.h: Similarly.
8867         * config/pdp11/pdp11.h: Similarly.
8868         * config/v850/v850.h: Similarly.
8869         * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
8870         * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
8871         * config/mips/iris3.h: Remove #if 0 block.
8873 2003-03-09  Roger Sayle  <roger@eyesopen.com>
8874             Joern Rennecke <joern.rennecke@superh.com>
8876         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
8877         pending argument upon return from handle_braces here.
8878         (do_spec_2): Instead handle it upon return from do_spec_1 here.
8880 2003-03-09  Roger Sayle  <roger@eyesopen.com>
8881             Joern Rennecke <joern.rennecke@superh.com>
8883         * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch.  Don't handle
8884         pending argument upon return from handle_braces here.
8885         (do_spec_2): Instead handle it upon return from do_spec_1 here.
8887 2003-03-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8889         * varasm.c (make_decl_one_only): Use declare_weak().
8891 2003-03-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8893         PR middle-end/9986
8894         * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
8895         after the common builtins.
8896         * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
8897         * pa.c (TARGET_INIT_BUILTINS): Define.
8898         (pa_init_builtins): New function.
8900         * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
8901         space has been allocated for the outgoing arguments, set the arg
8902         pointer for a call emitted after virtuals have been instantiated
8903         using the stack pointer offset, otherwise abort.
8905 2003-03-09  DJ Delorie  <dj@redhat.com>
8907         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
8909 2003-03-09  Richard Earnshaw  <rearnsha@arm.com>
8911         * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
8912         (arm_fix_truncdfsi2): Add missing fix in floating point mode before
8913         conversion to integer.
8914         * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
8916 2003-03-09  Roger Sayle  <roger@eyesopen.com>
8918         * builtins.def: Fix typo and improve grammar.
8919         * loop-unroll.c (decide_peel_completely): Tidy log message.
8921 2003-03-09  Kazu Hirata  <kazu@cs.umass.edu>
8923         * config/h8300/h8300.md (*tstsi_upper_bit): New.
8924         (*iorsi3_e2f): Likewise.
8926 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
8928         * config/h8300/h8300.c (h8300_and_costs): Return the number of
8929         assembly instructions needed.
8930         (h8300_shift_costs): Likewise.
8932 2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
8934         * config/cris/aout.h (ENDFILE_SPEC): Undef.
8936         * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
8937         moves from here ...
8938         * expr.c (emit_move_insn_1): ... to here.
8940         * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
8941         (TARGET_OS_CPP_BUILTINS): New macro.
8942         * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
8943         (TARGET_OS_CPP_BUILTINS): New macro.
8944         (CPP_PREDEFINES): Don't define.  Move old definitions and...
8945         (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
8946         (TARGET_CPU_CPP_BUILTINS): New macro.
8947         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
8948         definitions and the optional __PIC__, __pic__ and
8949         __NO_UNDERSCORES__ definitions to...
8950         (TARGET_OS_CPP_BUILTINS): New macro.
8952         * flags.h (flag_leading_underscore): Declare.
8954         * c-opts.c (c_common_post_options): On fopen failure, return
8955         false, not NULL.
8957 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
8959         * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
8960         config.h.
8961         * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
8962         * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
8964 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
8966         * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
8967         CPP_PREDEFINES.
8968         * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
8969         CPP_PREDEFINES.
8971 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
8973         * c-common.h (c_common_init, c_common_post_options): Update.
8974         * c-objc-common.c (c_objc_common_init): Update for new prototype.
8975         * c-opts.c (saved_lineno): New.
8976         (c_common_post_options, c_common_init): Update prototypes,
8977         move call to cpp_read_main_file from latter to former.
8978         * c-tree.h (c_ojbc_common_init): Update.
8979         * langhooks-def.h (lhd_post_options): New.
8980         (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
8981         * langhooks.c (lhd_post_options): New.
8982         * langhooks.h (struct lang_hooks): Update post_options and init hooks.
8983         * toplev.c (no_backend): New.
8984         (process_options): Call post_options hook and set main_input_filename
8985         and input_filename here.
8986         (lang_dependent_init, do_compile): post_options hook moved to
8987         process_options.
8988         * objc/objc-act.c (objc_init): Update prototype.
8989         * objc/objc-act.h (objc_init): Update prototype.
8991 2003-03-08  Roger Sayle  <roger@eyesopen.com>
8993         * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
8994         a complex or vector type, using a load in the original mode.
8996 2003-03-08  Jan Hubicka  <jh@suse.cz>
8998         * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
8999         * gt-cgraph.h: New GC file.
9000         * cgraph.c (known_fns): New static variable.
9001         (cgraph_node): Add the decl into varray.
9003 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
9005         * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
9007 2003-03-08  Richard Earnshaw  <rearnsha@arm.com>
9009         * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
9010         (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
9011         (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
9012         (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
9013         All callers changed.
9014         * arm.md, arm.h, arm-protos.h: Updated.
9016         * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
9017         (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
9018         * arm.c (arm_regno_class, f_register_operand): Updated.
9020 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
9022         * config/cris/cris.h: Remove EGCS references.
9023         (CPP_SPEC): Remove "-$".
9024         (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
9026 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
9028         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
9029         preference to CPP_PREDEFINES.
9031 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
9033         * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
9035 2003-03-08  Kazu Hirata  <kazu@cs.umass.edu>
9037         * config/h8300/h8300.md (*extzv_16_8): New.
9039 2003-03-08  Jan Hubicka  <jh@suse.cz>
9041         * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
9042         * cgraph.h: (cgraph_local_info): Add can_inline_once
9043         (cgraph_global_info): Add inline_once.
9044         (cgraph_node): Add previous.
9045         (cgraph_remove_node): New.
9046         * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
9047         function.
9048         (cgraph_optimize): Call it.
9049         (cgraph_finalize_function):  Set inlinable flags.
9050         (cgraph_finalize_compilation_unit):  Actually remove the reclaimed nodes.
9051         (cgraph_mark_functions_to_output):  Use new inlining heuristics flags.
9052         (cgraph_expand_function): Likewise.
9053         * cgraph.c
9054         (cgraph_node): Put nodes into doubly linked chain.
9055         (cgraph_remove_node): New function.
9056         * flags.h (flag_inline_functions_called_once): Declare.
9057         * tree-inline.c: Include cgraph.h
9058         (inlinable_functions_p): Add extra argument to bypass limits.
9059         (expand_call_inline):  Obey cgraph flag.
9060         * tree-inline.h (tree_inlinable_function_p): Update prototype.
9062 2003-03-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9064         * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
9065         irreducible loops.
9067         * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
9068         loops info correctly.
9070 2003-03-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
9072         PR middle-end/7796
9073         * unroll.c (calculate_giv_inc): Handle constants being
9074         loaded with LSHIFTRT.
9076 2003-03-07  David Edelsohn  <edelsohn@gnu.org>
9078         * config/rs6000/rs6000.c (processor_target_table): Do not disable
9079         GP optional instructions on Power3, Power4, 620, and 630.
9081 2003-03-07  Kazu Hirata  <kazu@cs.umass.edu>
9083         * calls.c: Fix comment formatting.
9084         * cfgloopanal.c: Likewise.
9085         * cfgloopmanip.c: Likewise.
9086         * combine.c: Likewise.
9087         * dwarf2out.c: Likewise.
9088         * ggc-common.c: Likewise.
9089         * langhooks.c: Likewise.
9090         * loop-unroll.c: Likewise.
9091         * loop.c: Likewise.
9092         * ra-build.c: Likewise.
9093         * sbitmap.c: Likewise.
9094         * toplev.c: Likewise.
9096 2003-03-07  James E Wilson  <wilson@tuliptree.org>
9098         * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
9100 2003-03-07  Geoffrey Keating  <geoffk@apple.com>
9102         * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
9103         support -no-integrated-cpp.
9105         * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
9106         than langhooks.name.
9108 2003-03-07  Michael Matz  <matz@suse.de>
9110         * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
9111         (DF_FOR_REGALLOC): New.
9112         * df.c (df_ref_record): Set DF_REF_STRIPPED.
9113         (read_modify_subreg_p): Simplify.
9114         (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
9115         Use DF_FOR_REGALLOC.
9116         * ra.h (struct web): New member subreg_stripped.
9117         (invalid_mode_change_regs): Declare.
9118         * ra.c (invalid_mode_change_regs): New.
9119         (init_ra): Initialize it.
9120         * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
9121         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
9122         (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
9123         * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
9124         Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
9126 2003-03-07  Richard Earnshaw  <rearnsha@arm.com>
9128         * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
9129         (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
9130         (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
9131         machine description file from ...
9132         * cirrus.md: ... here.
9134 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
9136         * config/h8300/h8300.md (a peephole2): Don't use
9137         reg_overlap_mentioned_p.
9139 2003-03-06  Geoffrey Keating  <geoffk@apple.com>
9141         * c-pch.c: Include langhooks.h.
9142         (IDENT_LENGTH): New.
9143         (get_ident): New.
9144         (pch_ident): Delete.
9145         (pch_init): Use get_ident, IDENT_LENGTH.
9146         (c_common_valid_pch): Likewise.  Also, use actual language
9147         in warning message.
9148         * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
9150         * objc/config-lang.in (gtfiles): Add objc-act.c.  Remove duplicate
9151         c-parse.in.
9152         * objc/Make-lang.in (objc/objc-act.o): Add dependency on
9153         gt-objc-objc-act.h.
9154         (gt-objc-objc-act.h): New rule.
9155         * objc/lang-specs.h: Support PCH.
9156         * objc/objc-act.c: Include gt-objc-objc-act.h.
9157         (objc_add_static_instance): Move num_static_inst out, mark for PCH.
9158         (build_selector_reference_decl): Move idx out, mark for PCH.
9159         (build_class_reference_decl): Likewise.
9160         (build_objc_string_decl): Move *_idx out, mark for PCH.
9161         (build_tmp_function_decl): Move xxx out, mark for PCH.
9163 2003-03-06  Dale Johannesen  <dalej@apple.com>
9165         * config/rs6000/rs6000.c (rs6000_binds_local_p):  Consider
9166         global functions for inlining on Darwin.
9168 2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
9170         * haifa-sched.c (schedule_block): Don't call reorder when sorting
9171         is prohibited.
9173 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
9175         * Makefile.in (c-ppoutput.o): Update.
9176         * c-common.h (init_pp_output): New.
9177         (preprocess_file): Update.
9178         * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
9179         Register builtins.
9180         * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
9181         Make call to cpp_read_main_file common to whether preprocessing
9182         or not.  Don't register builtins.
9183         * c-ppoutput.c: Include c-pragma.h.
9184         (setup_callbacks): Rename init_pp_output.
9185         (preprocess_file): No longer setup callbacks or call
9186         cpp_read_main_file.
9187         * cpphash.h (_cpp_init_mbchar): New.
9188         * cppinit.c (init_library): Call _cpp_init_mbchar.
9189         * cpplex.c (_cpp_init_mbchar): New.
9191 2003-03-06  Roger Sayle  <roger@eyesopen.com>
9193         * emit-rtl.c (gen_lowpart): When requesting the low-part of a
9194         MEM, try loading the MEM into a register and taking the low-part
9195         of that, to help CSE see the use of the MEM in its true mode.
9197 2003-03-05  Tom Tromey  <tromey@redhat.com>
9199         * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
9200         Define.
9202 2003-03-05  Nick Clifton  <nickc@cambridge.redhat.com>
9204         * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
9205         operand 2.
9206         ("*ineqbranchsi"): Likewise.
9208 2003-03-05  Andrew Haley  <aph@cambridge.redhat.com>
9210         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
9211         mem_fake_push_rtx.  Instead construct a SEQUENCE to show the
9212         register store followed by a stack increment.
9214 2003-03-05  Chris Moller  <cmoller@redhat.com>
9216         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
9217         to inhibit saving CARRY_REGS.
9219         * config/stormy16/stormy16.c (xs_hi_general_operand):
9220         added predicate to detect and error-out on out-of-range
9221         const_ints for movhi.
9222         * config/stormy16/stormy16.md (movhi): use
9223         xs_hi_general_operand.
9225         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
9226         added a check for local vbl size overflow.
9227         * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
9228         added predicate to detect and error-out on out-of-range
9229         const_ints for addhi and subhi.
9230         * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
9231         subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
9233         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
9234         add a term to accept PRE_MODIFY addresses.
9235         * config/stormy16/stormy16.c (xstormy16_expand_move):
9236         add code to expand PRE_MODIFY addresses to an add followed
9237         by a move.
9239 2003-03-06  Jason Merrill  <jason@redhat.com>
9241         * tree-inline.c (inlinable_function_p): Revert earlier change
9242         pending investigation.
9244 2003-03-06  Kazu Hirata  <kazu@cs.umass.edu>
9246         * config/h8300/h8300.md (a new peephole2): New.
9248 2003-03-06  Jan Hubicka  <jh@suse.cz>
9250         * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
9252 2003-03-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9254         * dwarf2out.c (size_of_die): Compute size of external reference to
9255         die correctly.
9257 2003-03-06  Hans-Peter Nilsson  <hp@bitrange.com>
9259         * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
9260         ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
9261         expanders.
9263 2003-03-05  Roger Sayle  <roger@eyesopen.com>
9265         * expr.h (lang_expand_expr): Delete obsolete prototype.
9267 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
9269         * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
9271 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
9273         * config/h8300/h8300.md (a peephole2): Generalize to
9274         accept a memory operand.
9276 2003-03-05  Olivier Hainque <hainque@act-europe.fr>
9278         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
9279         * config/alpha/alpha.c (print_operand, case '+'): New.
9280         * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
9281         (call_value_osf_1_noreturn): Likewise.
9283 2003-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9285         * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
9286         (expand_end_bindings): Likewise.
9288 2003-03-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9290         * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
9291         (epilogue): Don't generate return_external_pic when emitting PA 2.0
9292         code.
9294 2003-03-05  Aldy Hernandez  <aldyh@redhat.com>
9296         * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
9298         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
9300         * hooks.c (hook_rtx_rtx_null): New.
9302         * hooks.h (hook_rtx_rtx_null): Protoize.
9304         * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
9305         (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
9307         * target.h (struct gcc_target): Add dwarf_register_span.
9309         * dwarf2out.c (multiple_reg_loc_descriptor): New.
9310         (one_reg_loc_descriptor): New.
9311         (reg_loc_descriptor): Add support for values that span more than
9312         one register.
9314 2003-03-05  Jan Hubicka  <jh@suse.cz>
9316         * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
9317         * alias.c:  Include cgraph.h
9318         (mark_constant_function): Use cgraph_rtl_info.
9319         * calls.c:  Include cgraph.h
9320         (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
9321         calls.
9322         (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
9323         * cgraph.c (cgraph_rtl_info): New function.
9324         * cgraph.h (cgraph_rtl_info): Declare
9325         (cgraph_rtl_info): Likewise.
9326         * function.h (struct function): Add recursive_call_emit.
9327         * toplev.c: Include cgraph.h.
9328         (rest_of_compilation): Set preferred_incoming_stack_boundary.
9330 2003-03-05  Kazu Hirata  <kazu@cs.umass.edu>
9332         * config/h8300/h8300.c (output_simode_bld): Clear the
9333         destination first if possible.
9334         * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
9335         alternative.
9336         (extzv_1_r_inv_h8300hs): Likewise.
9338 2003-03-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9340         * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
9341         * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
9342         * cfgloop.c (flow_loop_free): Made global.
9343         (establish_preds): New static function.
9344         (flow_loop_tree_node_add): Handle subloops of added loop correctly.
9345         (get_loop_exit_edges): New.
9346         (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
9347         * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
9348         * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
9349         loops.
9350         * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
9351         removability of an edge.
9352         (fix_irreducible_loops): New static function.
9353         (find_path, remove_path): Add ability to remove enclosing loops.
9354         (unloop): New.
9355         (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
9356         flags.
9357         * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
9358         * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
9359         not neccessary.
9360         (decide_peel_completely, peel_loops_completely): Allow complete peeling
9361         of non-duplicable once rolling loops.
9362         * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
9364 2003-03-05  J"orn Rennecke <joern.rennecke@superh.com>
9366         * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
9367         for align_jumps is 4.
9369         (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
9370         use GENERAL_REGS.
9372 2003-03-05  Stephane Carrez  <stcarrez@nerim.fr>
9374         * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
9375         according to va_arg type.
9376         (EXPAND_BUILTIN_VA_ARG): Remove.
9377         * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
9378         * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
9380 2003-03-05  David Edelsohn  <edelsohn@gnu.org>
9382         * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
9383         else clauses.
9385 2003-03-05  Michael Matz  <matz@suse.de>
9387         * i386/i386.c (ix86_save_reg): Also test
9388         current_function_uses_const_pool.
9390 2003-03-05  Michael Matz  <matz@suse.de>
9392         * unwind.h: Add the GPL exception.
9393         * Makefile.in (USER_H): Add unwind.h.
9395 2003-03-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
9397         PR c/9799
9398         * c-typeck.c (push_init_level): Add sanity check.
9400 2003-03-05  Jan Hubicka  <jh@suse.cz>
9402         * toplev.c (rest_of_compilation):  Deffer RTL compilation only when
9403         RTL inlining is done.
9405         * cgraphunit.c (cgraph_mark_local_functions): New local function.
9406         (cgraph_optimize): Mark local functions.
9407         * i386-protos.h (init_cumulative_args): Update prototype.
9408         * i386.c (init_cumulative_args): Use register passing convention for
9409         local functions.
9411         * cgraph.c (cgraph_global_info_ready): New global variable
9412         (cgraph_local_info, cgraph_global_info): New functions.
9413         * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
9414         structures.
9415         (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
9416         Declare.
9417         * cgraphunit.c (cgraph_finalize_function): Set inline_many.
9418         (cgraph_mark_functions_to_output): Use inline_many.
9419         (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
9420         (cgraph_expand_functions): Expand inline functions last.
9421         (cgraph_optimize): Do not emit uneeded functions.
9423 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
9425         * expr.c (convert_modes): Check for legal hard register.
9427 2003-03-04  Tom Tromey  <tromey@redhat.com>
9429         * doc/sourcebuild.texi (Front End Directory): Document tags.
9430         * configure: Rebuilt.
9431         * configure.in (target_list): Added tags.
9432         * Makefile.in (TAGS): Depend on lang.clean.  Include subdirectory
9433         TAGS files by reference.
9434         * objc/Make-lang.in (objc.tags): New target.
9436 2003-03-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9438         * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
9439         gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
9440         gcov_write_string, gcov_read_unsigned, gcov_read_counter,
9441         gcov_read_string, gcov_write_length): Modified to enable reading/
9442         writing of whole .da file just once.
9443         (da_file_open, da_file_close, da_file_eof, da_file_error,
9444         da_file_position, da_file_seek, da_file_write, da_file_read): New
9445         functions.
9446         (actual_da_file, actual_da_file_position, actual_da_file_length,
9447         actual_da_file_buffer, actual_da_file_buffer_size): New static
9448         functions.
9449         * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
9450         just once.
9453 2003-03-04  Andreas Schwab  <schwab@suse.de>
9455         * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
9456         offset without frame pointer.
9458 2003-03-04  Steve Ellcey  <sje@cup.hp.com>
9460         * expr.c (expand_expr): Call promote_mode to set unsignedp.
9462 2003-03-04  Daniel Jacobowitz  <drow@mvista.com>
9464         * configure.in: Don't always define TARGET_SYSTEM_ROOT.
9465         * configure: Regenerated.
9466         * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
9468 2003-03-04  Andreas Jaeger  <aj@suse.de>
9470         * configure.in: Check for <memcheck.h>.
9471         * configure: Regenerated.
9473         * config.in: Define HAVE_MEMCHECK_H.
9475         * ggc-common.c: Use <memcheck.h> if available instead of
9476         <valgrind.h>.
9477         * ggc-page.c: Likewise.
9478         * cppfiles.c: Likewise.
9480 2003-03-04  Kazu Hirata  <kazu@cs.umass.edu>
9482         * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
9484 2003-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
9486         PR c/9262
9487         * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
9488         (c_finish_case): Rechain the next statements to the SWITCH_STMT.
9490 2003-03-04  Jan Hubicka  <jh@suse.cz>
9492         * doc/invoke.texi:  Document that unit-at-a-time is enabled for -O3
9493         * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
9494         for -O3.
9496 2003-03-04  Nathanael Nerode  <neroden@gcc.gnu.org>
9498         * configure.in: Delete three unused variables.  Move a variable
9499         definition closer to its use.  Simplify use_collect2 logic.  Start to
9500         organize.  Simplify tests for in-tree gas and ld.
9501         * configure: Regenerate.
9503 2003-03-04  Neil Booth  <neil@daikokuya.co.uk>
9505         * Makefile.in: Update.
9506         * c-common.c (flag_no_line_commands, flag_no_output,
9507         flag_dump_macros, flag_dump_includes): New.
9508         * c-common.h (flag_no_line_commands, flag_no_output,
9509         flag_dump_macros, flag_dump_includes, preprocess_file): New.
9510         (init_c_lex): Update prototype.
9511         * c-lex.c (init_c_lex): Update prototype; move some code to
9512         c_common_init.
9513         * c-opts.c (preprocess_file): Subsume into c_common_init.
9514         (c_common_decode_option): Update flags.
9515         (c_common_init): Move code from preprocess_file and init_c_lex.
9516         (sanitize_cpp_opts): Update.
9517         * c-ppoutput.c: New, cppmain.c almost verbatim.
9518         * cpphash.h (struct printer): Remove.
9519         (struct cpp_reader): Remove print.
9520         * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
9521         cpp_preprocess_file): Remove.
9522         (struct cpp_options): Remove no_output, no_line_commands, dump_macros
9523         and dump_includes.
9524         * cppmain.c: Remove.
9525         * doc/passes.texi: Update.
9527 2003-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9529         * function.c (STACK_ALIGNMENT_NEEDED): New macro.  Default to 1.
9530         (assign_stack_local_1): Perform overall stack alignment only when
9531         STACK_ALIGNMENT_NEEDED is non-zero.
9532         * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
9534         * pa.c (compute_frame_size): Rename fsize to size.  Account for
9535         alignment to a word boundary before general register save block.  Only
9536         account for double-word alignment before floating point register save
9537         block if one or more are saved.  Don't allocate space for %r3 when
9538         frame pointer is needed.
9539         (hppa_expand_prologue): Include alignment to word boundary in local
9540         frame size.
9541         * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
9542         (STACK_ALIGNMENT_NEEDED): Define.
9544 2003-03-04  Kevin Buettner  <kevinb@redhat.com>
9546         * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
9547         global register variables.
9549 2003-03-04  Alexandre Oliva  <aoliva@redhat.com>
9551         * reload.c (reload_adjust_reg_for_mode): New function.
9552         (subst_reloads): Call it.
9553         (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
9554         * reload.h (reload_adjust_reg_for_mode): Declare.
9555         * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
9556         Call it.
9558 2003-03-03  James E Wilson  <wilson@tuliptree.org>
9560         * optabs.c (add_equal_note): Delete SUBREG_REG use.
9561         Fixes PR c/7872.
9563 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9565         * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
9566         (*ixorsi3_lshiftrt_16): New.
9567         (*iorsi3_ashift_16): Remove.
9569 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9571         * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
9572         pattern.
9574 2003-03-03  Geoffrey Keating  <geoffk@apple.com>
9576         * doc/install.texi (Specific): Update entry for powerpc-darwin.
9578 2003-03-03  Richard Henderson  <rth@redhat.com>
9580         * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
9582 2003-03-03  David Edelsohn  <edelsohn@gnu.org>
9584         * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
9585         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
9586         (rs6000_variable_issue): Do not return negative value.
9587         (rs6000_issue_rate): Uniformly set issue rate to 1 for first
9588         scheduling pass.
9590 2003-03-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9592         * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
9593         prune_unused_types calls.
9595 2003-03-03  Jason Merrill  <jason@redhat.com>
9597         * tree-inline.c (find_builtin_longjmp_call): Save and restore
9598         lineno and input_filename.
9599         (find_alloca_call): Likewise.
9600         (inlinable_function_p): Run the langhook earlier.
9602         * calls.c (compute_argument_addresses): Give the new MEMs a
9603         minimum alignment of PARM_BOUNDARY.
9605 2003-03-03  J"orn Rennecke <joern.rennecke@superh.com>
9607         * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
9608         subtarget_asm_isa_spec.
9609         (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
9610         (ASM_SPEC): Define as SH_ASM_SPEC.
9611         (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
9612         Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
9613         * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
9614         (SUBTARGET_ASM_ISA_SPEC): Undef / define.
9616         * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
9617         and align_jumps if not set.
9618         Force align_jumps to be at least 2.
9619         When relaxing, force align_functions to be at least the maximum of
9620         align_loops, align_jumps and 4.
9621         * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
9622         (sh_loop_align): Honour align_loops_log.
9624         * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
9625         to check for indirect_jump_scratch.
9626         (indirect_jump_scratch): Add second set.
9627         * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
9628         when looking for indirect_jump_scratch.
9629         Extract scratch register taking new structure of indirect_jump_scratch
9630         into account.
9631         (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
9633 2003-03-03  Jan Hubicka  <jh@suse.cz>
9635         * calls.c (rtx_for_function_call): Take the address as an argument
9636         (expand_call): Do not modify the expression.
9638         * toplev.c (rest_of_compilation):  Avoid cfg_cleanup calls when not
9639         optimizing.
9641 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9643         * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
9644         TARGET_H8300H and TARGET_H8300S.
9646 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9648         * config/h8300/h8300.md (a peephole2): New.
9650 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9652         * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
9653         operands[0] and operands[1] are different.
9655 2003-03-03  Kazu Hirata  <kazu@cs.umass.edu>
9657         * reload1.c (reload_cse_move2add): Remove variable success.
9659 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9661         * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
9662         warnings.
9664 2003-03-02  Richard Henderson  <rth@redhat.com>
9666         * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
9667         * config.in, configure: Rebuild.
9668         * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
9669         * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
9670         paired ldtoffx and ldxmov annotations.
9671         (load_symptr_internal1): Remove.
9672         (load_symptr_high, load_symptr_low): New.
9674 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
9676         * c-incpath.c (add_path): Fix sysp assignment.
9678 2003-03-02  Kurt Garloff  <garloff@suse.de>
9680         * params.def: Introduce parameter max-inline-insns-rtl for
9681         a separate limit for the RTL inliner.
9682         * params.h: Likewise.
9683         * integrate.c (function_cannot_inline_p): Use it.
9684         * toplev.c (decode_f_option): Set multiple parameters
9685         controlling inlining with -finline-limit.
9686         * params.def: Fix orthographic and typographic errors.
9687         * doc/invoke.texi: Document parameters controlling inlining
9688         and the way -finline-limit sets multiple of them.
9690         * tree.h (struct tree_decl): Introduce inlined_function_flag,
9691         recording whether the function became eligible for inlining
9692         by a compiler flag rather than the declaration.
9693         Provide DID_INLINE_FUNC macro to access it.
9694         * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
9695         * cp/decl.c (grokfndecl): Likewise.
9696         * toplev.c (rest_of_compilation): Likewise.
9697         * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
9698         * print-tree.c (print_node): Report it.
9699         * params.def: Introduce new max-inline-insns-auto limit.
9700         * params.h: Likewise.
9701         * tree-inline.c (inlinable_function_p): Apply it to functions
9702         with DID_INLINE_FUNC set.
9703         * toplev.c (decode_f_option): Initialize it from -finline-limit
9704         value.
9705         * doc/invoke.texi: Document new parameter.
9707 2003-03-02  Geoffrey Keating  <geoffk@apple.com>
9709         * fix-header.c (read_scan_file): Don't reference simplify_path.
9711 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
9713         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
9714         min/max instructions by default as may result in reload errors.
9716 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
9718         * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
9719         avoid reload problems; define split for it.
9721 2003-03-02  Stephane Carrez  <stcarrez@nerim.fr>
9723         * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
9724         * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
9725         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
9726         * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
9727         rotatert and rotate.
9728         ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
9729         ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
9730         ("*rotrhi3_addr"): New split for shift insns on address register.
9731         ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
9732         * config/m68hc11/larith.asm (___rotlhi3): New asm function.
9733         (___rotrhi3): Likewise.
9734         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
9736 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
9738         * toplev.c (aux_base_name): Moved from toplev.h.
9739         (filename): Constify.
9740         (lang_dependent_init): Don't duplicate name.
9741         (process_options): Set aux_base_name here, not...
9742         (do_compile): ...here.  Change protoype.
9743         (toplev_main): Move some code from do_compile.
9744         * toplev.h: Remove aux_base_name.
9746 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
9748         * config/h8300/h8300-protos.h: Add a prototype for
9749         iorxor_operator.
9750         * config/h8300/h8300.c (print_operand): Handle 'c'.
9751         (iorxor_operator): New.
9752         * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
9753         * config/h8300/h8300.md (*iorhi3_zext): Remove.
9754         (*iorsi3_zexthi): Likewise.
9755         (*iorsi3_zextsi): Likewise.
9756         (*xorhi3_zextqi): Likewise.
9757         (*xorsi3_zexthi): Likewise.
9758         (*xorsi3_zextsi): Likewise.
9759         (*ixorhi3_zext): New.
9760         (*ixorsi3_zext_qi): Likewise.
9761         (*ixorsi3_zext_hi): Likewise.
9763 2003-03-02  Neil Booth  <neil@daikokuya.co.uk>
9765         * c-incpath.c (remove_component_p, simplify_path): Move back to
9766         cppfiles.c.
9767         (remove_duplicates): Use cpp_simplify_path.
9768         * c-incpath.h (simplify_path): Remove.
9769         * c-lex.c: Don't include c-incpath.h.
9770         (init_c_lex): Remove simplify_path.
9771         * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
9772         (find_or_create_entry, validate_pch): Revert.
9774 2003-03-02  Ashif Harji  <asharji@uwaterloo.ca>
9776         * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
9777           an external cpp during compilation.
9778         (option_map): Likewise.
9779         * objc/lang-specs.h (default_compilers): Similarly.
9780         * doc/invoke.texi: Document -no-integrated-cpp flag.
9782 2003-03-02  Kazu Hirata  <kazu@cs.umass.edu>
9784         * config/h8300/h8300.md (zero_extendqisi2): Change to an
9785         expander.
9786         (*zero_extendqisi2_h8300): New.
9787         (*zero_extendqisi2_h8300hs): New.
9788         (two splitters): New.
9790 2003-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9792         * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
9794 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
9796         * config/h8300/h8300.md (a peephole2): Remove dead code.
9798 2003-03-01  Roger Sayle  <roger@eyesopen.com>
9800         PR c++/9367
9801         * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
9802         (BT_FN_INT_CONST_STRING_VALIST_ARG,
9803         BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
9804         BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
9805         BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
9806         BT_FN_INT_STRING_CONST_STRING_VAR,
9807         BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
9808         BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
9809         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
9810         ATTR_NONNULL_3): Also include the nothrow attribute.
9811         (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
9812         vsnprintf, vscanf, vsscanf): Don't define attributes here.
9813         * builtins.def (putchar, puts): Make full C89 built-ins.
9814         (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
9815         vsscanf, vsnprintf, vsprintf): New built-ins.
9816         * c-common.c (c_common_nodes_and_builtins): Handle new macro
9817         DEF_FUNCTION_TYPE_VAR_3.
9819         * doc/extend.texi: Document these new built-in functions.
9821 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
9823         * config/h8300/h8300.md (a peephole2): New.
9825 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
9827         * predict.c (estimate_bb_frequencies): Correctly set
9828         real_values_initialized after initialization.
9830 2003-03-01  Neil Booth  <neil@daikokuya.co.uk>
9832         * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
9833         cppinit.o, cppdefault.o, fix-header): Update.
9834         * c-incpath.c: New file.
9835         * c-incpath.h: New file.
9836         * c-lex.c: Include c-incpath.h.
9837         (init_c_lex): Register path simplifier.
9838         * c-opts.c: Include cppdefault.h and c-incpath.h.
9839         (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
9840         std_cxx_inc, quote_chain_split, add_prefixed_path): New.
9841         (COMMAND_LINE_OPTIONS): Add more options from cpplib.
9842         (missing_arg, c_common_decode_option): Handle them.
9843         (c_common_post_options): Register include chains.
9844         (print_help): Update.
9845         * cppdefault.h (struct default include): Update.
9846         Move some macros to ...
9847         * cppdefault.c: ... here.
9848         (cpp_include_defaults): Add extra field add_sysroot.
9849         * cppfiles.c (include_file, search_from, find_or_create_entry,
9850         cpp_included, find_include_file, remap_filename): Update for
9851         renaming of search_path to cpp_path, and of the chain headers.
9852         (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
9853         * cpphash.h (struct search_path): Move to cpplib.h.
9854         (struct cpp_buffer, struct cpp_reader): Update.
9855         (_cpp_simplify_pathname): Remove.
9856         * cppinit.c: Don't include prefix.h and cppdefault.h.
9857         (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
9858         remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
9859         init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
9860         no_pth, cpp_handle_options): Remove.
9861         (struct pending_option): Remove chain members.
9862         (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
9863         cpp_handle_option): Update.
9864         * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
9865         (struct cpp_options): Remove quote_include, bracket_include,
9866         include_prefix, include_prefix_len, verbose, ignore_srcdir,
9867         no_standard_includes, no_standard_cplusplus_includes.
9868         (struct cpp_callbacks): Add simplify_path.
9869         (cpp_handle_options): Remove.
9870         * fix-header.c: Include c-incpath.h.
9871         (read_scan_file): Update to use c-incpath functionality.
9872         * doc/passes.texi: Update.
9874 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
9876         * config/h8300/h8300.c (bit_operand): Accept MEM only if it
9877         satisfies EXTRA_CONSTRAINT 'U'.
9879 2003-03-01  Kazu Hirata  <kazu@cs.umass.edu>
9881         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
9882         register.
9883         (*tst_extzv_memqi_1_n): Change to a splitter.
9884         (a peephole2): Update.
9886 2003-03-01  Richard Earnshaw  <rearnsha@arm.com>
9888         * predict.c (estimate_bb_frequencies): Initialize the sreal
9889         constants once per compilation.
9891 2003-02-28  Richard Henderson  <rth@redhat.com>
9893         * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
9895 2003-02-28  scott snyder  <snyder@fnal.gov>
9897         * flags.h: Add flag_eliminate_unused_debug_types.
9898         * toplev.c: Add flag_eliminate_unused_debug_types.
9899         (f_options): Add -feliminate-unused-debug-types.
9900         * dwarf2out.c (struct file_table): Add emitted member.
9901         (splice_child_die): Fix the parent pointer for the child being
9902         spliced.
9903         (lookup_filename): Maintain file_table.emitted array.  Don't
9904         output .file directive here.
9905         (maybe_emit_file): (new)
9906         (init_file_table): Set up file_table.emitted.
9907         (dwarf2out_source_line): Use maybe_emit_file.
9908         (dwarf2out_start_source_file): Use maybe_emit_file.
9909         (dwarf2out_init): Use maybe_emit_file.
9910         (prune_unused_types_walk_attribs): (new)
9911         (prune_unused_types_mark): (new)
9912         (prune_unused_types_walk): (new)
9913         (prune_unused_types_prune): (new)
9914         (prune_unused_types): (new)
9915         (dwarf2out_finish): Call prune_unused_types if
9916         flag_eliminate_unused_debug_types is set.
9917         * doc/invoke.texi (Option Summary): Add
9918         -feliminate-unused-debug-types.
9919         (Debugging Options): Likewise.
9921 2003-02-28  Geoffrey Keating  <geoffk@apple.com>
9923         * doc/invoke.texi: Change .pch to .gch.
9924         * cppfiles.c (open_file_pch): Likewise.
9925         * gcc.c (default_compilers): Likewise.
9927 2003-02-28  Aldy Hernandez  <aldyh@redhat.com>
9929         * floatlib.c: Remove.
9931 2003-02-28  Jason Merrill  <jason@redhat.com>
9933         * stor-layout.c (variable_size): Leave a "minus 1" outside the
9934         SAVE_EXPR.
9936 2003-02-28  David Edelsohn  <edelsohn@gnu.org>
9938         * config/rs6000/power4.md: Add compare bypass.
9940 2003-02-28  Jason Thorpe  <thorpej@wasabisystems.com>
9942         * config/netbsd.h: Update copyright years.
9943         (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
9944         -pthread is specified on the command line.
9946 2003-02-28  Dale Johannesen <dalej@apple.com>
9948         * loop.c (struct movable): Add insert_temp, shrink savemode.
9949         (scan_loop): Accept invariants that require copying; mark as
9950         insert_temp.
9951         (combine_movables): Don't combine insert_temp movables.
9952         (move_movables): Insert copies for insert_temp movables.
9953         Don't record the info based on regno for insert_temp's.
9955 2003-02-28  Joel Sherrill <joel@OARcorp.com>
9957         PR 9638/other
9958         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
9959         this constant defaults to 1.
9961 2003-02-28  Bob Wilson  <bob.wilson@acm.org>
9963         * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
9965 2003-02-28  Richard Earnshaw  <rearnsha@arm.com>
9967         * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
9968         ARMv5e processor, not just for XScale.  Instructions are predicable.
9969         (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
9971 2003-02-28  Nick Clifton  <nickc@redhat.com>
9973         * config/arm/arm.c (note_invalid_constants): Change parameter type
9974         from bool to int.
9976 2003-02-28  Kazu Hirata  <kazu@cs.umass.edu>
9978         * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
9979         test of bit 7.
9980         (*tst_extzv_memqi_1_n): Likewise.
9981         (a peephole2): New.
9983 2003-02-28  Richard Sandiford  <rsandifo@redhat.com>
9985         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
9986         #ifndef __mips16.
9988 2003-02-28  Jan Hubicka  <jh@suse.cz>
9990         * combine.c (gen_lowpart_for_combine): Update handling of
9991         subregs_of_mode
9992         * flow.c (life_analysis, mark_used_regs): Likewise.
9993         * regclass.c (subregs_of_mode): Turn into single bitmap.
9994         (cannot_change-mode_set_regs, invalid_mode_change_p): Update
9995         dealing with subregs_of_mode
9996         * regs.h (subregs_of_mode): Update prototype.
9998 2003-02-28  Josef Zlomek  <zlomekj@suse.cz>
10000         * emit-rtl.c (set_reg_attrs_for_parm): New function.
10001         * rtl.h (set_reg_attrs_for_parm): New exported function.
10002         * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
10003         set_reg_attrs_from_mem.
10005 2003-02-27  Roger Sayle  <roger@eyesopen.com>
10006             Zack Weinberg <zack@codesourcery.com>
10008         * gcc.c (do_spec_1):  Treat %U like %u for unique associations.
10010 2003-02-27  Kazu Hirata  <kazu@cs.umass.edu>
10012         * reload1.c (sext_for_mode): Remove.
10013         (reload_cse_move2add): Use trunc_int_for_mode instead of
10014         sext_for_mode.
10015         (move2add_note_store): Likewise.
10016         Reset register information if we see a set in non-integer
10017         mode.
10019 2003-02-27  David Edelsohn  <edelsohn@gnu.org>
10021         * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
10022         option.
10023         (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
10024         * config/rs6000/aix51.h: Same.
10025         * config/rs6000/aix52.h: Same.
10026         * config/rs6000/power4.md: Additional VMX bypasses.
10028 2003-02-27   Geert Bosch <bosch@gnat.com>
10030         * toplev.c (print_version): Add indentation for GGC heuristics and
10031         output after printing version information.
10033 2003-02-27  James E Wilson  <wilson@tuliptree.org>
10035         * combine.c (simplify_comparison): Require integral mode when
10036         permuting SUBREG with AND.
10038 2003-02-27  Steve Ellcey  <sje@cup.hp.com>
10040         * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
10042 2003-02-27  Nick Clifton  <nickc@redhat.com>
10044         * config/arm/arm.md (extendsfdf2): Add pattern accidentally
10045         deleted when cirrus instructions were added.
10047 2003-02-27  Jason Thorpe  <thorpej@wasabisystems.com>
10049         * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
10050         POSIX thread support by default.
10052 2003-02-27  Roger Sayle  <roger@eyesopen.com>
10054         * config/i386/cygwin.h: Don't include any other files directly.
10055         * config/i386/mingw32.h: Don't include cygwin.h directly.
10056         * config.gcc (cygwin, mingw32, uwin): Instead make these files
10057         explicit in the tm_files variable.
10059 2003-02-27  Alan Modra  <amodra@bigpond.net.au>
10061         * config/rs6000/rs6000.md: Add TI constant splitter.
10063 2003-02-26  Alexandre Oliva  <aoliva@redhat.com>
10065         * builtins.c (purge_builtin_constant_p): Handle subreg of
10066         constant_p_rtx too.
10068         * function.c (assign_stack_local_1): Truncate constant added to
10069         frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
10071 2003-02-26  David Edelsohn  <edelsohn@gnu.org>
10073         * config.gcc: Add power4 to PowerPC with_cpu list.
10075 2003-02-26  Jan Hubicka  <jh@suse.cz>
10077         * objc-act.c: (mark_referenced_methods): Fix compilation problem.
10079 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10081         * gcov-dump.c (print_prefix): Fix signedness warning.
10082         * gcov-io.h (struct counter_section, struct counter_section_data): New.
10083         (struct function_info): n_arc_counts field removed, n_counter_sections,
10084         counter_sections fields added.
10085         (struct gcov_info): arc_counts, n_arc_counts fields removed,
10086         n_counter_sections, counter_sections fields added.
10087         * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
10088         profile sections.
10089         * profile.h (MAX_COUNTER_SECTIONS): New.
10090         (struct section_info): New.
10091         (struct profile_info): count_instrumented_edges,
10092         count_edges_instrumented_now fields removed, n_sections, section_info
10093         fields added.
10094         (find_counters_section): Declare.
10095         * profile.c (struct function_list): count_edges field removed,
10096         n_counter_sections, counter_sections fields added.
10097         (set_purpose, label_for_tag, build_counter_section_fields,
10098         build_counter_section_value, build_counter_section_data_fields,
10099         build_counter_section_data_value, build_function_info_fields,
10100         build_function_info_value, build_gcov_info_fields,
10101         build_gcov_info_value): New static functions.
10102         (find_counters_section): New function.
10103         (instrument_edges, get_exec_counts, compute_branch_probabilities,
10104         branch_prob, create_profiler): Modified to support multiple profile
10105         sections.
10107 2003-02-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10109         * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
10110         is 8 * STACK_BOUNDARY.
10111         * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
10113 2003-02-26  Michael Matz  <matz@suse.de>
10115         * ra-colorize.c (merge_moves): Fix list handling.
10117 2003-02-26  Nick Clifton  <nickc@redhat.com>
10119         * config/arm/arm.c (is_load_address): Rename to...
10120         (arm_memory_load_p) ... this and make it check for SUBREGs and
10121         constant loads that will be converted into loads from the
10122         minipool.
10123         (is_cirrus_insn): Rename to ...
10124         (arm_cirrus_insn_p): ... this, for consistency.  Replace test
10125         of CIRRUS_NO with CIRRUS_NOT.
10126         (cirrus_reorg): Use renamed functions.
10127         (note_invalid_constants): Change from a void function to bool.
10128         Add an extra parameter, saying whether the fixups should be
10129         pushed.  Return true if fixups are needed.
10130         (arm_reorg): Use renamed functions.  Use INSN_P.  Replace test
10131         of CIRRUS_NO with CIRRUS_NOT.
10132         * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
10133         other floating point co-processors can also affect this.
10134         * config/arm/arm.md ("type" attribute): Add mav_farith and
10135         mav_dmult.  Replace references to "cirrus_type" attribute with
10136         "type".
10137         * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
10138         ("cirrus_type" attribute): Delete - use "type" instead.
10139         ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
10140         'normal'.
10142 2003-02-25  Jan Hubicka  <jh@suse.cz>
10144         * objc-act.c: Include cgraph.h
10145         (mark_referenced_methods): New function.
10146         (objc_init): Call it.
10147         * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
10149         * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
10150         mode.
10152         * optabs.c (expand_fix): Do not widen the input operand.
10154         * expr.c (emit_group_store):  Fix crash when converting single
10155         register into complex register.
10157         * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
10158         * alias.c: Include timevar.h
10159         (init_alias_analysis):  Set timevar
10160         * jump.c: Include timevar.h
10161         (rebuild_jump_labels):  Set timevar
10162         * regcalss.c: Include timevar.h
10163         (reg_scan):  Set timevar
10164         * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
10166 2003-02-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10168         * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
10170         * Makefile.in (loop-unroll.o): New.
10171         * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
10172         (unroll_and_peel_loops): Declare.
10173         * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
10174         flag_old_unroll_loops.
10175         * loop.c (loop_invariant_p): Ditto.
10176         * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
10177         flag_old_unroll_all_loops.
10178         * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
10179         (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
10180         * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
10181         (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
10182         PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
10183         PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
10184         PARAM_MAX_ONCE_PEELED_INSNS): New.
10185         * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
10186         (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
10187         instead of old one.
10188         (flag_peel_loops): New.
10189         (lang_independent_options): The new flags added.
10190         (rest_of_compilation): Call new unroller.
10191         (process_options): Setup flags for coexistence of old and new unroller.
10192         * doc/invoke.texi: Document new options.
10193         * doc/passes.texi: Document new unroller pass.
10195 2003-02-26  David Billinghurst <David.Billinghurst@riotinto.com>
10197         * fixinc/fixincl.x: Regenerate
10199 2003-02-26  Josef Zlomek  <zlomekj@suse.cz>
10201         * function.c (assign_parms): Set reg_attrs for parameters passed in
10202         registers.
10204 2003-02-26  Alan Modra  <amodra@bigpond.net.au>
10206         PR target/9681
10207         * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
10209 2003-02-25  David Edelsohn  <edelsohn@gnu.org>
10211         * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
10212         pseudo-op.
10214 2003-02-25  Roger Sayle  <roger@eyesopen.com>
10216         * combine.c (combine_simplify_rtx, simplfy_comparison):  Use CC0_P.
10217         * cse.c (invalidate_skipped_set):  Likewise.
10218         * integrate.c (subst_constants):  Likewise.
10219         * jump.c (reversed_comparison_code_parts):  Likewise.
10220         * loop.c (canonicalize_condition):  Likewise.
10221         * simplify-rtx.c (simplify_relational_operation):  Likewise.
10223 2003-02-25  Roger Sayle  <roger@eyesopen.com>
10225         * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
10226         (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit):  Use
10227         the appropriate macro to define built-in function.
10228         (fmod,fmodf,fmodl): New built-in functions.
10230         * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
10232 2003-02-25  Richard Henderson  <rth@redhat.com>
10234         * config/i386/i386.c (function_arg): Pass variable sized
10235         structures correctly on the stack.
10237 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
10239         * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
10240         does not reduce the cost of SET.
10242 2003-02-25  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10244         PR target/9732
10245         * config/rs6000/rs6000.c (first_reg_to_save): Handle
10246         PIC_OFFSET_TABLE_REGNUM for -fPIC too.
10247         (rs6000_emit_prologue): Likewise.
10248         (rs6000_emit_epilogue): Likewise.
10249         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
10250         PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
10252 2003-02-25  Richard Henderson  <rth@redhat.com>
10254         * real.c (real_to_integer2): Force overflow result only for
10255         unsigned overflow.
10257 2003-02-25  Kazu Hirata  <kazu@cs.umass.edu>
10259         * gcse.c (cprop_jump): Revert the 2003-02-23 change.
10261 2003-02-25  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
10262             Richard Henderson  <rth@redhat.com>
10264         * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
10265         there is no similar load.
10267 2003-02-25  Vladimir Makarov  <vmakarov@redhat.com>
10268             Richard Henderson  <rth@redhat.com>
10270         * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
10271         sched-rgn.c.
10272         (add_forward_dependence): New function prototype.
10274         * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
10275         sched-init.h.
10276         (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
10277         them to haifa-sched.c.
10279         * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
10280         haifa_classify_insn): Move them from sched-rgn.c.
10282         * sched-deps.c (add_dependence): Return flag of creating a new
10283         entry.
10284         (add_forward_dependence): New function.
10285         (compute_forward_dependences): Use the function.
10287         * sched-ebb.c (earliest_block_with_similiar_load): New function.
10288         (add_deps_for_risky_insns): New function.
10289         (schedule_ebb): Call the function.
10291 2003-02-20  Aldy Hernandez  <aldyh@redhat.com>
10293         * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
10294         TARGET_VECTOR_OPAQUE_P.  Document accordingly.
10296         * testsuite/gcc.dg/20030218-1.c: Check that initialization of
10297         opaque types fail.
10299         * c-typeck.c (comptypes): Change call to vector_types_compatible
10300         to vector_opaque_p.
10301         (convert_for_assignment): Call vector_opaque_p instead of
10302         vector_types_compatible.
10303         (really_start_incremental_init): Disallow initialization of opaque
10304         types.
10306         * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
10307         Define TARGET_VECTOR_OPAQUE_P.
10308         (TARGET_INITIALIZER): Same.
10310         * target.h (struct gcc_target): Remove vector_types_compatible.
10311         Add vector_opaque_p.
10313         * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
10314         Remove.
10315         (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
10316         a vector type.  Change return type to bool.
10317         (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
10318         (TARGET_VECTOR_OPAQUE_P): Define.
10320         * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
10321         target hook.
10322         Include target.h.
10323         (cp_parser_init_declarator): Fix typo in function comments.
10325 2003-02-25  Jan Hubicka  <jh@suse.cz>
10327         * Makefile.in (lcm.o):  Add dependency on function.h
10328         * lcm.c (function.h): Include.
10329         * i386.c (machine_function, ix86_stack_locals,
10330         * ix86_save_varrargs_registers) : Move to
10331         ...
10332         * i386.h (machine_function, ix86_stack_locals,
10333         ix86_save_varrargs_registers): ... here; add optimize_mode_switching
10334         (ix86_optimize_mode_switching): New.
10335         * i386.md (fix patterns): Set ix86_optimize_mode_switching
10337 2003-02-25  Nick Clifton  <nickc@redhat.com>
10339         * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo.  Name
10340         of fourth arg is 'fndecl' not 'indirect'.  Update comment
10341         describing the function's parameters.
10343 2003-02-24  Jan Hubicka  <jh@suse.cz>
10345         * combine.c (simplify_shift_const):  Fix previous patch.
10347 2003-02-24  Jeff Law  <law@redhat.com>
10349         * i386.md (testdi_1_rex64): Discourage reload from using the %eax
10350         alternative.
10351         (testsi_1, testhi_1, testqi_1): Likewise.
10353 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10355         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
10356         __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
10357         * doc/extend.texi (Tru64 Pragmas): Reflect this.
10359         * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
10360         extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
10361         * fixinc/fixincl.x: Regenerate.
10362         * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
10363         testcase.
10364         Fixes PR c/5059, c/6126, other/9671.
10366 2003-02-24  Roger Sayle  <roger@eyesopen.com>
10368         * gcc.c (do_spec_1) ['{']:  Handle pending argument upon return
10369         from handle_braces in "%{...}".
10371 2003-02-24  Kaz Kojima  <kkojima@gcc.gnu.org>
10373         * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
10374         (prepare_move_operands): Handle TLS operands.
10375         (tls_symbolic_operand): New.
10376         (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
10377         (legitimize_pic_address): Do nothing for the TLS symbol.
10378         (sh_encode_section_info): Handle TLS case.
10379         (sh_strip_name_encoding): Drop TLS encoding.
10380         * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
10381         * config/sh/sh.h (SH_TLS_ENCODING): Define.
10382         (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
10383         (ASM_OUTPUT_LABELREF): Drop TLS encoding.
10384         (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
10385         * config/sh/sh.md: Define TLS UNSPEC constants.
10386         (type): Add tls_load.
10387         ("tls_global_dynamic", "tls_local_dynamic"): New insns.
10388         ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
10389         ("tls_initial_exec"): New insn.
10390         ("sym2TPOFF", "symTPOFF2reg"): New expanders.
10391         ("load_gbr"): New insn.
10393         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
10394         * configure: Regenerate.
10396 2003-02-24  Alan Modra  <amodra@bigpond.net.au>
10398         PR 9297, PR 9722
10399         * calls.c (store_one_arg): Revert 1999-02-16 change.  Revert
10400         2000-12-17 change.  Pass EXPAND_STACK_PARM to expand_expr.
10401         * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
10402         (enum block_op_methods): Reorder for better store_expr optimization.
10403         * expr.c (store_expr): Test bit 1 of "want_value" for call param
10404         stores, test bit 0 for original want_value meaning.  Pass
10405         BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set.  Adjust
10406         recursive calls, and calls to expand_param.
10407         (expand_expr): Handle EXPAND_STACK_PARM modifier.  When cse
10408         expected, set target to 0 rather than to subtarget.  Formatting.
10410 2003-02-23  Kazu Hirata  <kazu@cs.umass.edu>
10412         * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
10414 2003-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10416         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
10417         new default behavior.
10418         * ggc-common.c: Include sys/resource.h.
10419         (ggc_rlimit_bound): New function.
10420         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
10421         defaults to account for rlimits.
10423 2003-02-22  Richard Henderson  <rth@redhat.com>
10425         * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
10427 2003-02-22  Kelley Cook <kelley@dwhoops.info>
10429         * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
10430         (ix86_tune_string): Rename from ix86_cpu_string.
10432 2003-02-22  Kelley Cook <kelleycook@comcast.net>
10434         * config/i386/i386.c: Replace "mcpu" with "mtune".
10435         * config/i386/i386.h (TARGET_OPTIONS): Likewise.
10436         (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
10437         * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
10438         with "mtune".  Note that "mcpu" is a deprecated synonym for "mtune".
10440 2003-02-23  Andreas Schwab  <schwab@suse.de>
10442         * config.gcc: Delete references to m68k/t-linux and
10443         m68k/t-linux-aout.
10444         * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
10446 2003-02-22  Jan Hubicka  <jh@suse.cz>
10448         * toplev.c (rest_of_compilation):  Apply fotgotten hunk
10449         of track scheduling patch.
10451 2003-02-22  Jan Hubicka  <jh@suse.cz>
10453         * config/linux.h (TARGET_HAS_F_SETLKW): Define.
10454         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
10456 2003-02-22  Jan Hubicka  <jh@suse.cz>
10458         * c-decl.c (c_expand_body_1): Fix.
10460 2003-02-22  Jan Hubicka  <jh@suse.cz>
10462         * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
10464         * cfgcleanup.c (try_forward_edges):  Don't check loop structures
10465         when not optimizing.
10466         (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
10467         when not expensive.
10468         * toplev.c (rest_of_compilation):  Duplicate loop headers only when
10469         optimizing;  Delete trivially dead insns early; fix optimize check.
10471         * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
10472         dependency on cgraph.h
10473         * c-decl.c: Include cgraph.h
10474         (finish_function): Update call of tree_inlinable_function_p.
10475         * c-objc-common.c: Include cgraph.h
10476         * cgraph.h: New file.
10477         * cgraphunit.c: New file.
10478         * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
10479         (cgraph_nodes, cgraph_n_nodes): Globalize.
10480         (cgraph_finalize_function, cgraph_finalize_compilation_unit
10481         cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
10482         Move into cgraphunit.c
10483         * tree-inline.c: Include cgraph.h
10484         * tree-inline.c: Include cgraph.h
10486 2003-02-22  Josef Zlomek  <zlomekj@suse.cz>
10488         * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
10489         for copying a register.
10491 2003-02-22  Steven Bosscher  <s.bosscher@student.tudelft.nl>
10493         PR other/3782
10494         * toplev.c (process_options): If flag_detailed_statistics is set,
10495         then set time_report as well.
10497         PR c/8828
10498         * jump.c (never_reached_warning): Don't fall through BARRRIER
10499         insns.  Update comments to reflect what the function really does.
10501 2003-02-21  Roger Sayle  <roger@eyesopen.com>
10503         * fold-const.c (omit_one_operand): No longer static.
10504         * tree.h (omit_one_operand): Prototype here.
10505         (div_and_round_double): Keep fold-const.c prototypes together.
10506         * builtins.c (builtin_mathfn_code): Handle binary built-in
10507         funtions, such as "pow" and "atan2".
10508         (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
10509         Simplify optimizations using "type" the builtin's return type.
10511 2003-02-22  Hans-Peter Nilsson  <hp@axis.com>
10513         * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
10514         Fix functionalization typo.
10516         * regmove.c (optimize_reg_copy_1): Do not replace a hard register
10517         in an asm.
10519 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10521         * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
10522         * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
10523         documentation.
10524         * ggc-common.c: Include params.h
10525         (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
10526         init_ggc_heuristics): New functions.
10527         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
10528         init_ggc_heuristics): Prototype.
10529         * toplev.c (print_version):  Output GGC heuristics.
10530         (parse_options_and_default_flags): Call init_ggc_heuristics.
10532 2003-02-22  Jan Hubicka  <jh@suse.cz>
10534         * i386.c (def_builtin):  Special case 64bit builtins.
10535         (MASK_SSE164, MASK_SSE264): New constants.
10536         (builtin_description): Add 64bit builtins.
10537         (ix86_init_mmx_sse_builtins): Likewise.
10538         * i386.h (enum ix86_builtins): Likewise.
10539         * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
10540         sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
10541         (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
10542         * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
10543         * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
10544         _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
10545         _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
10547 2003-02-22  Jan Hubicka  <jh@suse.cz>
10549         * i386.c (builtin_description): Add __builtin_ia32_paddq and
10550         __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
10551          and __builtin_ia32_psubq128.
10552         * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
10553         * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
10554         (mmx_adddi3, mmx_subdi3): New.
10555         * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
10556         * xmmintrin.h (_mm_movepi64_pi64): New.
10557         (_mm_add_epi64, _mm_sub_epi64): fix.
10558         (_mm_mul_pu16): Rename to...
10559         (_mm_mul_su32): ... this one.
10561         * builtins.c (expand_builtin_expect):  Do not predict
10562         flag_guess_branch_prob is not set.
10563         * c-semantics.c (expand_stmt): Likewise.
10564         * predict.c (predict_insn): Likewise.
10565         * stmt.c (expand_continue_loop): Likewise.
10566         * toplev.c (rest_of_compilation): Do not call
10567         note_prediction_to_br_prob and note_prediction_to_br_prob
10568         when not optimizing.
10570 2003-02-21  Jan Hubicka  <jh@suse.cz>
10572         * cfgrtl.c (commit_edge_insertions):  Call
10573         find_many_sub_basic_block only when some code has been emitted.
10574         (commit_edge_insertions_watch_calls): Bring into sync with
10575         commit_edge_insertions
10577 2003-02-21  J"orn Rennecke <joern.rennecke@superh.com>
10579         * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
10581         * sh.md (binary_sf_op): Use extra constant operand instead of
10582         negating constant operand 4.
10583         * sh.c (sh_expand_binop_v2sf): Supply it.
10585 2003-02-21  Zack Weinberg  <zack@codesourcery.com>
10587         * cpphash.h (struct lexer_state): Add directive_wants_padding.
10588         * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
10589         for directives of type INCL.
10590         (glue_header_name, parse_include): Use get_token_no_padding.
10591         * cppmacro.c (replace_args): If directive_wants_padding,
10592         provide padding tokens.
10594 2003-02-21  Kazu Hirata  <kazu@cs.umass.edu>
10596         * config/h8300/h8300.md (a peephole2): New.
10598 2003-02-21  Jan Hubicka  <jh@suse.cz>
10600         * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
10601         (commit_edge_insertions): Call find_many_sub_basic_blocks
10603         * reg-stack.c (convert_regs): Cleax aux for blocks.
10605 2003-02-21  Jan Hubicka  <jh@suse.cz>
10607         * toplev.c (parse_options_and_default_flags): Undo accidental commit.
10609 2003-02-21  Glen Nakamura  <glen@imodulo.com>
10611         PR optimization/8613
10612         * builtins.c (expand_builtin): Emit postincrements before expanding
10613         builtin functions.
10615 2003-02-21  Ben Elliston  <bje@redhat.com>
10617         PR other/5634
10618         * doc/install.texi (Configuration): Explain using $HOME instead of
10619         the ~ metacharacter when referring to home directories.
10621 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
10623         * configure.in (TARGET_SYSTEM_ROOT): Set default to
10624         ${exec_prefix}/${target_alias}/sys-root.  Match explicit
10625         '${exec_prefix}' (in addition to the expansion thereof) as
10626         relocatable.
10627         * configure: Rebuilt.
10629 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
10631         * config/h8300/h8300.md (addhi3_incdec): Change the name to
10632         *addhi3_incdec.
10633         (addsi3_incdec): Change the name to *addsi3_incdec.
10635 2003-02-20  Roger Sayle  <roger@eyesopen.com>
10637         * explow.c (force_reg): Avoid useless REG_EQUAL notes.
10639 2003-02-20  Toon Moene  <toon@moene.indiv.nluug.nl>
10641         PR fortran/9038
10642         * c-opts.c (sanitize_cpp_opts): Add Fortran front end
10643         options to be ignored.
10644         (c_common_decode_option): Ignore them when preprocessing.
10646 2003-02-20  Jan Hubicka  <jh@suse.cz>
10648         * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
10649         global variables.
10650         (lang_independent_options):  Add -fsched2-use-superblocks
10651         -fsced2-use-traces.
10652         (rest_of_compilation): Deal with it.
10653         * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks):  Declare.
10654         * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
10655         Declare.
10656         * rtl.h (reg_to_stack):  Update prototype.
10657         * reg-stack.c (reg_to_stack): Return when something has changed;
10658         update liveness when executing after superblock scheduling.
10660         * combine.c (simplify_shift_const):  Simplify few special cases
10661         into constants.
10663 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
10665         * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
10666         (add.,subf.,neg.): Change attribute to fast_compare.
10667         All DFA descriptions updated.
10669 2003-02-20  Nathan Sidwell  <nathan@codesourcery.com>
10671         Change base class access representation.
10672         * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
10673         TREE_VIA_PRIVATE): Remove.
10674         (BINFO_BASEACCESSES): New binfo elt.
10675         (BINFO_BASEACCESS): New accessor.
10676         (BINFO_ELTS): Increase.
10677         (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
10678         (access_public_node, access_protected_node,
10679         access_private_node): New global nodes.
10680         * tree.c (build_common_tree_nodes_2): Initialize access nodes.
10681         * dbxout.c (dbxout_type): Adjust.
10682         * dwarf2out.c (gen_inheritance_die): Add access parameter.
10683         (gen_member_die): Adjust.
10684         * dwarfout.c (output_inheritance_die): ARG is array of two trees.
10685         (output_type): Adjust.
10686         * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
10688         Change base class access representation. Share virtual base
10689         binfos.
10690         * cp/call.c (build_special_member_call): Remove binfo_for_vbase
10691         call.
10692         * cp/class.c (build_base_path): Likewise.
10693         (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
10694         (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
10695         (make_new_vtable): Adjust.
10696         (force_canonical_binfo_r): Delete.
10697         (force_canonical_binfo): Delete.
10698         (mark_primary_virtual_base): Delete.
10699         (dfs_unshared_virtual_bases): Delete.
10700         (mark_primary_bases): Adjust.
10701         (maybe_warn_about_overly_private_class): Adjust.
10702         (dfs_base_derived_from): Delete.
10703         (base_derived_from): Follow the inheritance chain.
10704         (struct find_final_overrider_data): Add vpath member.
10705         (dfs_find_final_overrider): Adjust.
10706         (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
10707         (find_final_overrider): Adjust.
10708         (update_vtable_entry_for_fn): Adjust.
10709         (modify_all_vtables): Adjust.
10710         (walk_subobject_offsets): Adjust.
10711         (layout_nonempty_base_or_field): Adjust.
10712         (layout_empty_base): Remove last parameter. Adjust.
10713         (build_base_field): Adjust.
10714         (build_base_fields): Adjust.
10715         (propagate_binfo_offsets): Remove last parameter. Adjust.
10716         (dfs_set_offset_for_unshared_vbases): Delete.
10717         (layout_virtual_bases): Adjust.
10718         (finish_struct_1): Adjust.
10719         (init_class_processing): Don't init access nodes.
10720         (dfs_get_primary_binfo): Delete.
10721         (get_primary_binfo): Adjust.
10722         (dump_class_hierarchy_r): Remove most derived arg, add IGO
10723         parameter. Adjust.
10724         (dump_class_hierarchy): Adjust.
10725         (finish_vtbls): Adjust.
10726         (get_original_base): Delete.
10727         (build_vtt_inits): Adjust.
10728         (dfs_build_secondary_vptr_vtt_inits): Adjust.
10729         (dfs_ctor_vtable_bases_queue_p): Adjust.
10730         (build_ctor_vtbl_group): Adjust.
10731         (dfs_accumulate_vtbl_inits): Adjust.
10732         (build_vtbl_initializer): Adjust.
10733         (build_vbase_offset_vtbl_entries): Adjust.
10734         (add_vcall_offset_vtbl_entries_1): Adjust.
10735         * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
10736         (access_*_node): Remove.
10737         (CANONICAL_BINFO): Delete.
10738         (BINFO_UNSHARED_MARKED): Remove.
10739         (BINFO_MARKED): Set LANG_FLAG_0 directly.
10740         (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
10741         (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
10742         (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
10743         Delete.
10744         (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
10745         (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
10746         (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
10747         Delete.
10748         (BINFO_DEPENDENT_BASE_P): New.
10749         (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
10750         index.
10751         (markedp, unmarkedp): Adjust.
10752         (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
10753         dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
10754         find_vbase_instance, binfo_for_vbase): Delete.
10755         (copied_binfo, original_binfo): Declare.
10756         (finish_base_specifier): Add virtual_p arg.
10757         (unshare_base_binfos): Delete.
10758         (copy_base_binfos): Declare.
10759         (reverse_path): Delete.
10760         * cp/decl.c (xref_basetypes): Access and virtuality passed
10761         differently. Don't copy direct base binfos here. Call
10762         copy_base_binfos.
10763         * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
10764         (initialize_vtbl_ptrs): Adjust.
10765         (expand_member_init): Adjust.
10766         * cp/parser.c (cp_parser_base_specifier): Adjust.
10767         * cp/pt.c (instantiate_class_template): Adjust.
10768         (get_template_base_recursive): Adjust.
10769         * cp/rtti.c (get_pseudo_ti_init): Adjust.
10770         (get_pseudo_ti_desc): Adjust.
10771         * cp/tree.c (unshare_base_binfos): Rename to ...
10772         (copy_base_binfos): ... here, reimplement.
10773         (make_binfo): Set BINFO_DEPENDENT_BASE_P.
10774         (reverse_path): Remove.
10775         * cp/typeck.c (get_delta_difference): Adjust error messages.
10776         * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
10777         * cp/search.c (lookup_base_r): Adjust.
10778         (dynamic_cast_base_recurse): Adjust.
10779         (canonical_binfo): Remove.
10780         (dfs_canonical_queue): Remove.
10781         (dfs_assert_unmarked_p): Remove.
10782         (assert_canonical_unmarked): Remove.
10783         (shared_marked_p, shared_unmarked_p): Remove.
10784         (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
10785         (dfs_access_in_type): Adjust.
10786         (access_in_type): Adjust.
10787         (dfs_accessible_queue_p): Adjust.
10788         (dfs_accessible_p): Adjust.
10789         (is_subobject_of_p_1, is_subobject_of_p): Remove.
10790         (struct lookup_field_info): Remove from_dep_base_p field.
10791         (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
10792         (lookup_field_r): Remove dependent base code.
10793         (lookup_member): Likewise.
10794         (dfs_walk, dfs_walk_real): Add access arg to queue fn.
10795         (dfs_unmarked_real_bases_queue_p): Remove.
10796         (dfs_marked_real_bases_queue_p): Remove.
10797         (dfs_skip_vbases): Remove.
10798         (dfs_get_pure_virtuals): Adjust.
10799         (markedp, unmarkedp): Adjust.
10800         (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
10801         (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
10802         (dfs_unmark): Adjust.
10803         (dfs_get_vbase_types):Remove.
10804         (dfs_build_inheritance_graph_order): Remove.
10805         (get_vbase_types): Remove
10806         (dfs_find_vbase_instance): Remove.
10807         (find_vbase_instance): Remove.
10808         (dfs_debug_unmarkedp): Adjust.
10809         (dependent_base_p): Remove.
10810         (dfs_push_type_decls): Adjust.
10811         (dfs_push_decls): Adjust.
10812         (dfs_no_overlap_yet): Adjust.
10813         (copied_binfo): New function.
10814         (original_binfo): New function.
10815         (binfo_for_vbase): Remove.
10817         Change base class access representation.
10818         * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
10819         (add_interface_do): Likewise.
10821 2003-02-20  David Edelsohn  <edelsohn@gnu.org>
10823         * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10824         * config/rs6000/power4.md (power4-store,power4-vecstore): New
10825         insn reservations.
10826         (power4-fpstore): Compact.
10828 2003-02-20  Kazu Hirata  <kazu@cs.umass.edu>
10830         * config/h8300/h8300.md (*iorsi3_w): New.
10832 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
10834         * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
10835         * rtl.c (reg_note_name): Likewise.
10836         * rtl.h (enum reg_note): Likewise.
10837         * doc/invoke.texi: Likewise.
10838         * doc/rtl.texi: Likewise.
10840 2003-02-20  Josef Zlomek  <zlomekj@suse.cz>
10842         * bb-reorder.c (find_traces_1_round): Fix comment typo.
10844 2003-02-19  Roger Sayle  <roger@eyesopen.com>
10846         * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
10847         addition in the presence of signaling NaNs.
10849 2003-02-19  Krister Walfridsson  <cato@df.lth.se>
10851         * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
10853 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
10855         * config/h8300/h8300.c (output_logical_op): Optimize or.l when
10856         ORing with 0xffff??00 with the highest bit of the ?? part set.
10857         (compute_logical_op_length): Update.
10858         (compute_logical_op_cc): Likewise.
10860 2003-02-19  Josef Zlomek  <zlomekj@suse.cz>
10862         * bb-reorder.c (find_traces_1_round): Fixed condition for small
10863         destination block with multiple predecessors.
10864         (connect_traces): Check whether the block is a start of trace.
10866 2003-02-19  Jan Hubicka  <jh@suse.cz>
10868         * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
10869         * function.c (assign_params): Likewise.
10870         * arm-protos.h (arm_init_cumulative_args): Update prototype.
10871         * arm.c (arm_init_cumulative_args): Update function.
10872         * arm.h (INIT_CUMULATIVE_ARGS): Update.
10873         * avr-protos.h (init_cumulative_args): Update prototype.
10874         * avr.c (init_cumulative_args): Update function.
10875         * avr.h (INIT_CUMULATIVE_ARGS): Update.
10876         * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
10877         * d30v.c (d30v_init_cumulative_args): Update function.
10878         * d30v.h (INIT_CUMULATIVE_ARGS): Update.
10879         * frv-protos.h (frv_init_cumulative_args): Update prototype.
10880         * frv.c (frv_init_cumulative_args): Update function.
10881         * frv.h (INIT_CUMULATIVE_ARGS): Update.
10882         * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
10883         * pa.h (INIT_CUMULATIVE_ARGS): Update.
10884         * sparc-protos.h (init_cumulative_args): Update prototype.
10885         * sparc.c (init_cumulative_args): Update function.
10886         * sparc.h (INIT_CUMULATIVE_ARGS): Update.
10887         * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
10889 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
10891         * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
10892         (*ashiftsi_sextqi_7): Likewise.
10894 2003-02-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10896         * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
10897         ISO C99 and C++.
10899         * fixinc/inclhack.def (irix___restrict): Don't change __restrict
10900         for C++ on IRIX 6.5.1[89].
10901         * fixinc/tests/base/internal/sgimacros.h: New file.
10903         * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
10904         * fixinc/tests/base/internal/wchar_core.h: New file.
10906         * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
10907         socklen_t definition.
10908         * fixinc/fixincl.x: Regenerate.
10909         * fixinc/tests/base/sys/socket.h: New file.
10910         Fixes PR libgcj/9652.
10912 2003-02-19  Jan Hubicka  <jh@suse.cz>
10914         * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
10916 2003-02-19  David Edelsohn  <edelsohn@gnu.org>
10918         * config/rs6000/rs6000.c (rs6000_override_options): Initialize
10919         align_jumps_max_skip and align_loops_max_skip.
10921 2003-02-19  Thierry Moreau  <thierry.moreau@connotech.com>
10923         * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
10924         test size if named section.
10926 2003-02-19  Daniel Jacobowitz  <drow@mvista.com>
10928         * expr.c (expand_expr): Use gen_int_mode for the argument
10929         to gen_rtx_MULT.
10931 2003-02-19  Jan Hubicka  <jh@suse.cz>
10933         * i386.md (cosxf2):  Fix conditional.
10935 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
10937         * config/h8300/h8300.md (extendqisi2): Change to an expander.
10938         (*extendqisi2_h8300): New.
10939         (*extendqisi2_h8300hs): Likewise.
10941 2003-02-19  Kazu Hirata  <kazu@cs.umass.edu>
10943         * config/h8300/h8300-protos.h: Update the prototype for
10944         split_adds_subs.  Remove the prototypes for
10945         const_int_le_2_operand and const_int_le_6_operand.
10946         * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
10947         (const_int_le_2_operand): Remove.
10948         (const_int_le_6_operand): Likewise.
10949         * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
10950         for const_int_le_2_operand and const_int_le_6_operand.
10951         * config/h8300/h8300.md: Update all uses of split_adds_subs.
10952         (a peephole2): New.
10954 2003-02-18  Jan Hubicka  <jh@suse.cz>
10956         * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
10957         (cgraph_expand_function): Rewrite.
10959 2003-02-18  Matt Austern <austern@apple.com>
10961         * toplev.c, langhooks.c, langhooks-def.h: Move
10962         write_global_declarations from toplev.c to langhooks.c.
10964 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
10966         * config/h8300/h8300.c (general_operand_src): Always check
10967         MODE.
10968         (general_operand_dst): Likewise.
10970 2003-02-18  Roger Sayle  <roger@eyesopen.com>
10972         * convert.c (convert_to_real): Also optimize (float)log(x) into
10973         logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
10975 2003-02-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10977         * config/sh/sh.c (unspec_caller_rtx_p): New.
10978         (sh_cannot_copy_insn_p): New.
10979         (TARGET_CANNOT_COPY_INSN_P): New.
10981 2003-02-18  Richard Henderson  <rth@redhat.com>
10983         * c-common.c (handle_used_attribute): Accept static data too.
10985 2003-02-18  Nick Clifton  <nickc@redhat.com>
10986             Aldy Hernandez  <aldyh@redhat.com>
10988         * testsuite/gcc.dg/20030218-1.c: New.
10990         * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
10992         * target-def.h (TARGET_INITIALIZER): Add
10993         TARGET_VECTOR_TYPES_COMPATIBLE.
10994         (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
10996         * target.h (struct gcc_target): Add field vector_types_compatible.
10998         * c-typeck.c (comptypes): Take into account
10999         TARGET_VECTOR_TYPES_COMPATIBLE.
11000         (convert_for_assignment): Same.
11002         * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
11003         (rs6000_spe_vector_types_compatible): New.
11004         (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
11006 2003-02-19  Andreas Schwab  <schwab@suse.de>
11008         * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
11009         * toplev.c: Include langhooks-def.h.
11011 2003-02-18  Chris Demetriou  <cgd@broadcom.com>
11013         * config/mips/mips.h (enum processor_type): Sort entries
11014         alphabetically.
11015         * config/mips/mips.md (define_attr cpu): Sync with processor_type
11016         enum values, including adding entries that were missing.
11018 2003-02-18  J"orn Rennecke <joern.rennecke@superh.com>
11020         * sh.c (calc_live_regs): Also check GET_CODE when checking if
11021         initial value for PR_REG is still the PR_REG register.
11023 2003-02-18  Jim Wilson  <wilson@redhat.com>
11025         * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
11026         instruction in output template.
11027         (bsp_value): Change output template from string to C code, add %,
11028         before actual instruction.
11029         (flushrs): Mark as not predicable.
11031 2003-02-18  Krister Walfridsson  <cato@df.lth.se>
11033         * inclhack.def (netbsd_bogus_semicolon): New fix.
11034         * fixincl.x: Rebuilt.
11035         * tests/base/ctype.h: Update.
11037 2003-02-18  Roger Sayle  <roger@eyesopen.com>
11039         * fold-const.c (negate_expr_p): New function to determine whether
11040         an expression can be negated cheaply.
11041         (fold) [MINUS_EXPR]: Use it to determine whether to transform
11042         -A - B into -B - A for floating point types.
11044 2003-02-18  Roger Sayle  <roger@eyesopen.com>
11046         * sbitmap.c (sbitmap_resize): New function.
11047         * sbitmap.h (sbitmap_resize): Prototype here.
11048         * recog.c (split_all_insns): Use sbitmap_resize.
11050 2003-02-18  Kazu Hirata  <kazu@cs.umass.edu>
11052         * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
11053         insn length.
11054         (extendqisi2): Likewise.
11055         (*extendhisi2_h8300): Likewise.
11057 2003-02-18  Matt Austern <austern@apple.com>
11059         * langhooks.h, langhooks-def.h: introduce new langhook,
11060         final_write_globals, with write_global_declarations as default.
11061         * toplev.c: Move invocation of wrapup_global_declarations from
11062         compile_file to new function, write_global_declarations.  Change
11063         compile_file to use final_write_globals hook.  Change
11064         wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
11065         conditional.
11067 2003-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11069         * pa.md: Correct and enhance comment.
11071 2003-02-18  Geoffrey Keating  <geoffk@apple.com>
11073         * gcc.c (validate_switches): Don't scan past closing '}'.
11075 2003-02-18  Ben Elliston  <bje@redhat.com>
11077         PR c++/1607
11078         * doc/extend.texi (Function Attributes): Document the effect of
11079         the C++ "this" parameter on the counting of arguments for the
11080         "format" and "format_arg" attributes.
11082 2003-02-17  Aldy Hernandez  <aldyh@redhat.com>
11084         * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
11085         (__ev_stdw): Same.
11086         (__ev_stdh): Same.
11088 2003-02-17  Jan Hubicka  <jh@suse.cz>
11090         * recog.c (split_all_insns):  Fix memory overflow.
11092 2003-02-17  Kazu Hirata  <kazu@cs.umass.edu>
11094         * config/h8300/h8300.md (cmpqi): Remove mode from compare.
11095         (cmphi): Likewise.
11096         (*cmphi_h8300): Likewise.
11097         (*cmphi_h8300hs): Likewise.
11098         (cmpsi): Likewise.
11099         (7 peephole2): Likewise.
11101 2003-02-16  Jan Hubicka  <jh@suse.cz>
11103         * c-typeck.c (build_c_cast):  Fold constant variables into
11104         initial values.
11106 2003-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11108         * doc/install.texi (Specific): Fix link for m68k-att-sysv.
11109         (Binaries): Ditto for Sinix/Reliant Unix.
11111 2003-02-16 Richard Earnshaw  <rearnsha@arm.com>
11113         * arm.c (arm_reload_in_hi): Ensure that the scratch register does
11114         not overlap the final result register.
11116 2003-02-16 Arend Bayer <arend.bayer@web.de>
11117            Richard Henderson  <rth@redhat.com>
11119         PR c/8068
11120         * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
11121         rearrange mult arguments for less recursion.
11122         (extract_muldiv): New.  Prevent runaway recursion.
11124 2003-02-16  Danny Smith  <dannysmith@users.sourceforge.net>
11126         * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
11127         MASK_ALIGN_DOUBLE.
11129 2003-02-15  Roger Sayle  <roger@eyesopen.com>
11131         * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
11132         to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
11133         (ext_80387_constants_table): Global table of 80387 special constants
11134         guarded by ext_80387_constants_init flag when not initialized.
11135         (init_ext_80387_constants): New function to initialize this table.
11136         (standard_80387_constant_p): Extend to recognize extra 80387
11137         constants, in XFmode, on processors where this is a win.
11138         (standard_80387_constant_opcode): New function to return the
11139         opcode associated with standard_80387_constant_p.
11140         (standard_80387_constant_rtx): New function to return the XFmode
11141         CONST_DOUBLE associated with standard_80387_constant_p.
11142         (ix86_rtx_costs): Give the new constants the same cost as 1.0.
11144         * config/i386/i386-protos.h (standard_80387_constant_opcode):
11145         Prototype here.
11146         (standard_80387_constant_rtx): Likewise.
11148         * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
11149         *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
11150         *movtf_integer): Simplify using new standard_80387_constant_opcode.
11152 2003-02-15  Geoffrey Keating  <geoffk@apple.com>
11154         * doc/invoke.texi (Optimize Options): Correct @option syntax.
11156 2003-02-15  Richard Henderson  <rth@redhat.com>
11158         * Makefile.in (cfglayout.o): Depend on TARGET_H.
11159         * cfglayout.c: Include target.h.
11160         (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
11161         * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
11162         * target.h (struct gcc_target): Add cannot_copy_insn_p.
11164         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
11165         (TARGET_CANNOT_COPY_INSN_P): New.
11166         (override_options): Revert 2003-02-08 hack.
11168 2003-02-15  Richard Henderson  <rth@redhat.com>
11170         * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
11171         (bypass_conditional_jumps): Accept computed_jump_p insns as well.
11173 2003-02-15  David Edelsohn  <edelsohn@gnu.org>
11175         * config/rs6000/rs6000.h (processor_type): Add PPC440.
11176         * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
11177         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
11178         TARGET_SCHED_VARIABLE_ISSUE): Define.
11179         (rs6000_use_dfa_pipeline_interface): New function.
11180         (rs6000_multipass_dfa_lookahead): New Function.
11181         (rs6000_variable_issue): New function.
11182         (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
11183         (rs6000_issue_rate): Add PPC440.
11184         * config/rs6000/rs6000.md (unspec list): Correct typo.
11185         (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
11186         store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
11187         cmp, delayed_cr, mfcr, mtcr.
11188         (automata_option): Set "ndfa".
11189         (extendMMNN2): Update attributes.
11190         (movcc_internal1): Discourage move to non-cr0.  Update
11191         attributes.
11192         (movMM_update): Update attributes.
11193         (cmpMM_internal): Update attributes.
11194         (sCC CR materialization): Update attributes.
11195         (branch patterns): Do not discourage non-cr0.
11196         (cr logical patterns): Prefer destructive register allocation.
11197         Update attributes.
11198         (movesi_from_cr): Update attribute.
11199         (mtcrf_operation): Update attribute.
11200         (mtcrfsi): Update attribute.
11201         * config/rs6000/40x.md: New file.
11202         * config/rs6000/603.md: New file.
11203         * config/rs6000/6xx.md: New file.
11204         * config/rs6000/7450.md: New file.
11205         * config/rs6000/7xx.md: New file.
11206         * config/rs6000/mpc.md: New file.
11207         * config/rs6000/power4.md: New file.
11208         * config/rs6000/rios1.md: New file.
11209         * config/rs6000/rios2.md: New file.
11210         * config/rs6000/rs64.md: New file.
11211         [Some DFA descriptions based on work by Michael Hayes]
11213 2003-02-15  Richard Henderson  <rth@redhat.com>
11215         * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
11216         successors with multiple predecessors.
11217         (connect_traces): Try harder to copy traces of length 1.
11219         * function.h (struct function): Add computed_goto_common_label,
11220         computed_goto_common_reg.
11221         * function.c (free_after_compilation): Zap them.
11222         * stmt.c (expand_computed_goto): Use them to produce one
11223         indirect branch per function.
11225 2003-02-15  Richard Henderson  <rth@redhat.com>
11227         * cfgcleanup.c: Include params.h.
11228         (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
11229         too many outgoing edges from a block.
11230         * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
11231         * params.def (max-crossjump-edges): New.
11232         * doc/invoke.texi: Document it.
11234 2003-02-15  Richard Henderson  <rth@redhat.com>
11236         * recog.c (split_all_insns): Include new blocks in life update;
11237         do a global life update.
11239 2003-02-15  Danny Smith  <dannysmith@users.sourceforge.net>
11241         * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
11242         Update copyright.
11243         * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
11244         -mno-cygwin case.
11246 2003-02-14  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
11248         PR optimization/7702
11249         * reload1.c (reload_cse_simplify_set): Honor
11250         CANNOT_CHANGE_MODE_CLASS.
11252 2003-02-14  Alexandre Oliva  <aoliva@redhat.com>
11254         * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
11255         function.
11256         * config/mn10300/mn10300-protos.h: Declare it.
11257         * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
11258         attribute cc of instructions that may use clr.
11260 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
11262         * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
11263         (x - (x & y)) is found.
11265 2003-02-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11267         * configure.in: Fix typo.
11268         * configure: Regenerate.
11270 2003-02-14  Kazu Hirata  <kazu@cs.umass.edu>
11272         * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
11274 2003-02-13  Adam Nemet  <anemet@lnxw.com>
11276         PR opt/2391
11277         * combine.c: Fix spelling in comment.
11278         (cached_nonzero_bits): New function.
11279         (cached_num_sign_bit_copies): New function.
11280         (nonzero_bits_with_known): New macro.
11281         (num_sign_bit_copies_with_known): New macro.
11282         (nonzero_bits1): Rename from nonzero_bits.  Add three new
11283         arguments.  Change calls from nonzero_bits to
11284         nonzero_bits_with_known.
11285         (num_sign_bit_copies1): Rename from num_sign_bit_copies.  Add
11286         three new arguments.  Change calls from num_sign_bit_copies to
11287         num_sign_bit_copies_with_known.
11288         (nonzero_bits): New macro.
11289         (num_sign_bit_copies): New macro.
11290         (update_table_tick): Don't traverse identical subexpression more
11291         than once.
11292         (get_last_value_validate): Likewise.
11294 2003-02-13  Zack Weinberg  <zack@codesourcery.com>
11296         * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
11297         * function.h (struct emit_status): Length of regno_pointer_align
11298         and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
11299         not regno_pointer_align_length (i.e. length actually used, not
11300         length as allocated)
11302         * config/i386/i386.c (struct stack_local_entry): New.
11303         (struct machine_function): Replace huge array with alist.
11304         (assign_386_stack_local): Change to match.
11306 2003-02-13  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
11308         * inclhack.def (hpux_long_double): Tighten select and add bypass
11309         regexp.
11310         * fixincl.x: Rebuilt.
11312 2003-02-13  Josef Zlomek  <zlomekj@suse.cz>
11314         * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
11315         edge and block ends with a jump insn it must be simple jump.
11317 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
11319         * Makefile.in (PREPROCESSOR_DEFINES): Add
11320         @TARGET_SYSTEM_ROOT_DEFINE@.
11321         * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
11322         is specified or if building a cross compiler.
11323         (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
11324         if the sysroot is under $exec_prefix.
11325         * configure: Regenerated.
11326         * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
11327         defined.
11328         (struct default_include): Add add_sysroot field.
11329         (cpp_SYSROOT): Declare.
11330         * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
11331         field.
11332         (cpp_SYSROOT): New variable.
11333         * cppinit.c (cpp_create_reader): Initialize
11334         CPP_OPTION (pfile, sysroot).
11335         (init_standard_includes): Handle add_sysroot.  Do not
11336         add unrelocated copies of relocated directories.
11337         (COMMAND_LINE_OPTIONS): Add -isysroot.
11338         (cpp_handle_option): Handle -isysroot.
11339         * cpplib.h (struct cpp_options): Add sysroot member.
11340         * gcc.c (The Specs Language): Update description of %I.
11341         (target_system_root_changed): New variable.
11342         (process_command): Conditionalize make_relative_prefix call
11343         on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE.  Set
11344         target_system_root_changed.
11345         (do_spec_1): Add -isysroot to %I.
11346         * doc/invoke.texi (Spec Files): Update description of %I.
11347         * doc/install.texi (--with-sysroot): Update comment about
11348         relocation.
11350 2003-02-13  Kazu Hirata  <kazu@cs.umass.edu>
11352         * config/h8300/h8300.md (a peephole2): New.
11354 2003-02-13  Robert Lipe <robertlipe@usa.net>
11355             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11357         * doc/install.texi (Specific): Update three SCO-related URLs.
11359 2003-02-13  Andreas Schwab  <schwab@suse.de>
11361         * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
11362         Parenthesize properly.
11363         (NPREDECESORS): Parenthesize properly.
11365 2003-02-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11367         * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
11369 2003-02-12  Roger Sayle  <roger@eyesopen.com>
11371         * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
11372         (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
11374         * reg-stack.c (subst_stack_regs_pat): Add support for binary
11375         UNSPEC instructions (e.g. "fpatan").
11377 2003-02-12  Mike Stump  <mrs@apple.com>
11379         * varray.c (element_size): Remove.
11380         (uses_ggc): Remove.
11381         (element): Add.
11382         (varray_init): Use new interface.
11383         (varray_grow): Use new interface.
11384         (varray_clear): Use new interface.
11386 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
11388         * config/rs6000/spe.h: Add casts to the arguments of the following
11389         macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
11390         evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
11391         evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
11392         __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
11393         __ev_get_u16, __ev_get_s16.
11395 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
11397         * config/h8300/h8300.md (a peephole2): New.
11399 2003-02-12  Jan Hubicka  <jh@suse.cz>
11401         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
11402         (OBJS): Add callgraph.o
11403         (callgraph.o): New.
11404         * c-decl.c (expand_body_1): Break out from ...
11405         (expand_body): This one;  change calling convention
11406         (finish_function): Move some of expand_body logic here.
11407         (c_expand_deferred_function): Update call of expand_body
11408         (c_expand_stmt): Use c_expand_body_1.
11409         * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
11410         * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
11411         * c-tree.h (c_expand_body): Declare.
11412         * callgraph.c: New file.
11413         * flags.h (flag_unit_at_a_time): Declare.
11414         * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
11415         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
11416         LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
11417         * langhooks.h (struct lang_hooks_for_callgraph): New.
11418         (struct lang_hooks): Add callgraph field.
11419         * toplev.c (flag_unit_at_a_time): New.
11420         (lang_independent_options): Add flag_unit_at_a_time.
11421         (process_options): Disable unit-at-a-time mode for frontends not
11422         supporting callgraph.
11423         * tree-inline.c (typedef struct inline_data): Add "decl"
11424         (expand_call_inline): Update callgraph.
11425         (optimize_inline_calls): Set id.decl.
11426         * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
11427         cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
11428         cgraph_calls_p): Declare.
11429         * invoke.texi (-funit-at-a-time): Document
11431 2003-02-12  Aldy Hernandez  <aldyh@redhat.com>
11433         * config/rs6000/spe.h: Fix misc formatting.
11434         (__ev_create_ufix32_fs): Cast ev argument.
11435         (__ev_create_sfix32_fs): Same.
11436         (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
11437         (__ev_get_ufix32_fs_internal): Same.
11439 2003-02-12  Ranjit Mathew  <rmathew@hotmail.com>
11441         * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
11442         * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
11444 2003-02-12  Zack Weinberg  <zack@codesourcery.com>
11446         * cpplib.c (do_include_common): Move warnings for
11447         #include_next and #import out to callers.  Use early-return
11448         instead of nested ifs.  Don't do check_eol here.
11449         (parse_include): Do check_eol here with the rest of the
11450         parsing stuff.
11451         (do_include_next, do_import): Now handle warnings.
11453 2003-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11455         * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
11457 2003-02-12  Jan Hubicka  <jh@suse.cz>
11459         * predict.c (estimate_probability):  Fix roundoff error.
11461 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
11463         * config/h8300/h8300.md (a peephole2): Don't handle 65535.
11464         (two peephole2): New.
11466 2003-02-12  Kazu Hirata  <kazu@cs.umass.edu>
11468         * config/h8300/h8300.md (several peephole2): Replace
11469         find_regno_note with peep2_reg_dead_p.
11471 2003-02-11  Richard Henderson  <rth@redhat.com>
11473         * gcse.c (lookup_set): Remove unused argument PAT.  Update
11474         both callers.
11476 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
11478         * diagnostic.c (real_abort): New.
11479         (diagnostic_report_diagnostic): Call real_abort on error.
11480         * diagnostic.h (diagnostic_abort_on_error): New.
11481         (struct diagnostic_context): Add abort_on_error field.
11482         * toplev.c (setup_core_dumping): New.
11483         (decode_d_option): Handle 'H' case.
11484         * doc/invoke.texi (Debugging Options): Document -dH.
11486 2003-02-11  Nathanael Nerode  <neroden@gcc.gnu.org>
11488         * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
11489         which refers to obsolete directories.
11491 2003-02-11  Richard Henderson  <rth@redhat.com>
11493         * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
11495 2002-10-21  Jan Hubicka  <jh@suse.cz>
11497         * i386.c (contains_128bit_aligned_vector_p): New function.
11498         (ix86_function_arg_boundary): Properly align vector modes.
11500 2003-02-11  Bob Wilson  <bob.wilson@acm.org>
11502         * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
11503         * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
11504         as a SET pattern.
11506 2003-02-11  Roger Sayle  <roger@eyesopen.com>
11508         * builtins.c:  Fix failure caused by commiting wrong patch.
11510 2003-02-11  Dale Johannesen  <dalej@apple.com>
11511         * ra-build.c (compare_and_free_webs):  Relax checking.
11512         * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME):  Define.
11513         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):  Define.
11515 2003-02-11  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
11517         PR optimization/9651
11518         * rtlanal.c (may_trap_p): Handle FIX.
11520 2003-02-11  Dave Jones <davej@codemonkey.org.uk>
11522         * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
11523         * doc/invoke.texi: Extra alias.
11525 2003-02-11  Geoffrey Keating  <geoffk@apple.com>
11527         * config/rs6000/host-darwin.c: Fix comment.
11529 2003-02-11  David Edelsohn  <edelsohn@gnu.org>
11531         * config/rs6000/rs6000.md (divmodsi4): Use register_operand
11532         predicate for mod result.
11534 2003-02-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11536         * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
11537         hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
11538         * fixincl.x: Rebuilt.
11539         * tests/base/stdlib.h: Update.
11540         * tests/base/ctype.h: New file.
11542 2003-02-11  Jan Hubicka  <jh@suse.cz>
11544         * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
11546 2003-02-11  Richard Henderson  <rth@redhat.com>
11548         * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
11549         appropriated as globals.
11550         (ix86_expand_clrstr): Similarly.
11551         * config/i386/i386.md (cmpstrsi): Similarly.
11553 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
11555         * config/h8300/h8300.md (a peephole2): Add a case of 255.
11557 2003-02-11  Roger Sayle  <roger@eyesopen.com>
11559         * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
11560         (pow_optab, atan2_optab): Define corresponding macros.
11561         * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
11562         * genopinit.c (optabs): Implement pow_optab and atan2_optab
11563         using pow?f3 and atan2?f3 patterns.
11564         * builtins.c (expand_errno_check): New function to update errno
11565         if necessary, split out from expand_builtin_mathfn.
11566         (expand_builtin_mathfn): Use expand_errno_check.
11567         (expand_builtin_mathfn_2): New function to handle expanding binary
11568         math functions, reusing the code in expand_errno_check.
11569         (expand_builtin): Handle the pow and atan2 math built-ins,
11570         BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
11571         expand_builtin_mathfn_2.
11573         * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
11575 2003-02-11  Jan Hubicka  <jh@suse.cz>
11577         * combine.c (combine_simplify_rtx): Fix folding of
11578         nested float_truncates.
11580 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
11582         * config/h8300/h8300.md (a peephole2): Fix a typo.
11584 2003-02-11  Richard Earnshaw  <rearnsha@arm.com>
11586         * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
11587         register number.
11589 2003-02-11  Kazu Hirata  <kazu@cs.umass.edu>
11591         * config/h8300/h8300-protos.h: Add a prototype for
11592         gtuleu_operator.
11593         * config/h8300/h8300.c (gtuleu_operator): New.
11594         * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
11595         * config/h8300/h8300.md (a peephole2): New.
11597 2003-02-11  Jan Hubicka  <jh@suse.cz>
11599         * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
11601 2003-02-11  Jan Hubicka  <jh@suse.cz>
11603         * predict.c (choose_function_section): Choose sections correctly.
11605 2003-02-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11607         * reload1.c (first_label_num): New.
11608         (reload): Index offsets_known_at and offsets_at using difference of
11609         label number and first label number.  Don't use offset pointers.
11610         (set_label_offsets, set_initial_label_offsets): Likewise.
11612 2003-02-10  Roger Sayle  <roger@eyesopen.com>
11614         * mips-tfile.c (init_file): Add missing initializers in the
11615         "#ifdef __alpha" case.
11616         (file_offset, max_file_offset): Declare as unsigned long.
11617         (write_varray): Cast to "unsigned long" in comparisons against
11618         either file_offset or max_file_offset.
11619         (write_object): Likewise.
11620         (read_seek): Likewise.
11621         (copy_object): Likewise. Declare "ifd" as int to match its use
11622         in add_ext_symbol, and avoid signed/unsigned conditional warning.
11624 2003-02-10  Nick Clifton  <nickc@redhat.com>
11625             Aldy Hernandez  <aldyh@redhat.com>
11627         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
11628         override options which have been specified on the command line.
11630 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
11632         * config/h8300/h8300.md (abssf2): New.
11633         (*abssf2_h8300): Likewise.
11634         (*abssf2_h8300hs): Likewise.
11636 2003-02-10  Phil Edwards  <pme@gcc.gnu.org>
11638         * tree.c (build_tree_list):  Fix parameter names in comment.
11640 2003-02-10  Janis Johnson  <janis187@us.ibm.com>
11642         * config/rs6000/ppc64-fp.c: New file.
11643         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
11645 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
11647         * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
11648         * bb-reorder.c (make_reorder_chain): Deleted.
11649         (make_reorder_chain_1): Deleted.
11650         (find_traces): New function.
11651         (rotate_loop): New function.
11652         (mark_bb_visited): New function.
11653         (find_traces_1_round): New function.
11654         (copy_bb): New function.
11655         (bb_to_key): New function.
11656         (better_edge_p): New function.
11657         (connect_traces): New function.
11658         (copy_bb_p): New function.
11659         (get_uncond_jump_length): New function.
11660         (reorder_basic_blocks): Use new functions (Software Trace Cache).
11661         * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
11662         boundaries.
11664 2003-02-10  Aldy Hernandez  <aldyh@redhat.com>
11666         * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
11668 2003-02-09  Dan Nicolaescu  <dann@ics.uci.edu>
11670         * tree.h (struct tree_decl): Remove unused live_range_rtl field.
11671         (DECL_LIVE_RANGE_RTL): Remove.
11673 2003-02-10  Nick Clifton  <nickc@redhat.com>
11675         * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
11676         config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
11677         config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
11678         config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
11679         config/arm/freebsd.h, config/arm/linux-elf.h,
11680         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
11681         config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
11682         config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
11683         config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
11684         config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
11685         config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
11686         config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
11687         and reformat as appropriate.
11689 2003-02-10  Kazu Hirata  <kazu@cs.umass.edu>
11691         * config/h8300/clzsi2.c: Remove.
11692         * config/h8300/ctzsi2.c: Likewise.
11693         * config/h8300/paritysi2.c: Likewise.
11694         * config/h8300/popcountsi2.c: Likewise.
11695         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
11696         ctzsi2, paritysi2, and popcountsi2.
11698 2003-02-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
11699             Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
11701         PR c/7741
11702         * c-decl.c (duplicate_decls): Discard the initializer of the
11703         new decl when the types are conflicting.
11705 2003-02-10  Josef Zlomek  <zlomekj@suse.cz>
11707         * Makefile.in (sreal.o): Added.
11708         (predict.o): Depends on sreal.h instead of real.h.
11709         * sreal.c: New file.
11710         * sreal.h: New file.
11711         * predict.c: Use sreal.c instead of real.c.
11713 2003-02-10  Nick Clifton  <nickc@redhat.com>
11715         * Contributed support for the Cirrus EP9312 "Maverick"
11716         floating point co-processor.  Written by Aldy Hernandez
11717         <aldyh@redhat.com>.
11718         (config/arm/arm.c): Add Cirrus support.
11719         (config/arm/arm.h): Likewise.
11720         (config/arm/aout.h): Likewise.
11721         (config/arm/arm.md): Likewise.
11722         (config/arm/arm-protos.h): Likewise.
11723         (config.gcc): Likewise.
11724         (doc/invoke.texi): Describe new -mcpu value and new
11725         -mcirrus-fix-invalid-insns switch,
11726         (cirrus.md): New file.
11728 2003-02-10  Jan Hubicka  <jh@suse.cz>
11730         * combine.c (combine_simplify_rtx): Simplify using
11731         (float_truncate (float x)) is (float x)
11732         (float_extend (float_extend x)) is (float_extend x).
11734 2003-02-10  Alan Modra  <amodra@bigpond.net.au>
11736         * calls.c (try_to_integrate): Tidy stack_usage_map access.
11737         (emit_library_call_value_1): Likewise.  Formatting.
11738         (store_one_arg): Likewise.
11740 2003-02-09  Nick Clifton  <nickc@redhat.com>
11741             Aldy Hernandez  <aldyh@redhat.com>
11743         * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
11744         spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
11745         spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
11746         spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
11747         spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
11748         docs.  Add range test for immediate value.
11750 2003-02-09  Aldy Hernandez  <aldyh@redhat.com>
11752         Rename spe_evxor to xorv2si3.
11753         (xorv4hi3): New.
11754         (xorv1di3): New.
11756 2003-02-10  Glen Nakamura  <glen@imodulo.com>
11758         * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
11759         tag.
11761 2003-02-10  Jan Hubicka  <jh@suse.cz>
11763         * i386.c (vector_move_operand): New predicate.
11764         (ix86_expand_vector_move): Be happy about 0.
11765         * i386.h (PREDICATE_CODES): Add sse-move_operand.
11766         * i386.md (mov*_internal): Add 'C' alternative.
11768 2003-02-09  Jan Hubicka  <jh@suse.cz>
11770         * i386.md (floathi*): Deal with SSE.
11772 2003-02-09  Jan Hubicka  <jh@suse.cz>
11774         * simplify-rtx.c (simplify_unary_operation,
11775         simplify_binary_operation):  Deal with vector modes
11776         (simplify_ternary_operation):  Deal with no-op VEC_MERGE.
11778 2003-02-09  Richard Sandiford  <rsandifo@redhat.com>
11780         * toplev.c (rest_of_compilation): Recompute register usage after
11781         split_all_insns.
11783 2003-02-09  Richard Henderson  <rth@redhat.com>
11785         * libgcc-std.ver (__clztf2): New.
11786         (__ctztf2, __popcounttf2, __paritytf2): New.
11787         * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
11788         __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
11789         adjust code to match the different type sizes.
11790         * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
11791         __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
11793         * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
11794         TImode; select word_mode and twice that.
11795         (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
11796         select the modes from float, double, and long double.
11797         (init_optabs): Remove duplicate initializations.
11799 2003-02-09  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
11801         * doc/install.texi: Squeeze and streamline section on
11802         testing and regression checking.
11804 2003-02-09  Jan Hubicka  <jh@suse.cz>
11806         * i386.md (ahi?v*3): Set third operand type to TImode.
11807         * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
11809         * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
11810         integer mode.
11812         * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
11813         Change code so they are arithmetic expressions now.
11814         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
11815         simplify_ternary_operation): Deal with VEC_* expressions.
11817         * i386.md (vmaskcmp, pinsrw, movd patterns):  Fix RTL representation.
11819 2003-02-08  Jan Hubicka  <jh@suse.cz>
11821         * cfgrtl.c (verify_flow_info):  Use control_flow_insn_p.
11822         * reload1.c (fixup_abnormal_edges):  Split basic blocks when EH edges
11823         possibly got duplicated.
11825 2003-02-08  Richard Henderson  <rth@redhat.com>
11827         * config/alpha/alpha.c (override_options): Turn off explicit
11828         relocs until post-peep2 code duplication resolved.
11830 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
11832         * optabs.c (expand_unop): Widen clz properly when clz is done
11833         via libcall.
11835 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
11837         * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
11838         * config/h8300/crti.asm: Likewise.
11839         * config/h8300/crtn.asm: Likewise.
11840         * config/h8300/ctzsi2.c: Likewise.
11841         * config/h8300/fixunssfsi.c: Likewise.
11842         * config/h8300/h8300-protos.h: Likewise.
11843         * config/h8300/h8300.c: Likewise.
11844         * config/h8300/h8300.h: Likewise.
11845         * config/h8300/h8300.md: Likewise.
11846         * config/h8300/paritysi2.c: Likewise.
11847         * config/h8300/popcountsi2.c: Likewise.
11848         * config/h8300/rtems.h: Likewise.
11850 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11852         * doc/invoke.texi: Documentation for my previous commit.
11853         * doc/passes.texi: Ditto.
11855 2003-02-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11857         * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
11858         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
11859         Declare.
11860         (DLTHE_FLAG_UPDATE_FREQ): New.
11861         * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
11862         loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
11863         rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
11864         fix_bb_placement, fix_bb_placements, place_new_loop,
11865         scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
11866         New static functions.
11867         (fix_loop_placement, can_duplicate_loop_p,
11868         duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
11869         New functions.
11871         * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
11872         unswitch_loops): Declare.
11873         * loop-init.c: New file.
11874         * loop-unswitch.c: New file.
11875         * Makefile.in (loop-init.o, loop-unswitch.o): New.
11876         * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
11877         * toplev.c (DFI_loop2): New dump.
11878         (flag_unswitch_loops): New.
11879         (lang_independent_options): Add it.
11880         (rest_of_compilation): Call new loop optimizer.
11881         (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
11883 2003-02-08  Kazu Hirata  <kazu@cs.umass.edu>
11885         * config/h8300/clzsi2.c: New.
11886         * config/h8300/ctzsi2.c: Likewise.
11887         * config/h8300/paritysi2.c: Likewise.
11888         * config/h8300/popcountsi2.c: Likewise.
11889         * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
11891 2003-02-07  David Edelsohn  <edelsohn@gnu.org>
11893         * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
11894         * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
11895         (ctzsi2): New pattern.
11896         (ffssi2): Use clz instead of unspec.
11897         (clzdi2): Rename from cntlzd2.
11898         (ctzdi2): New pattern.
11899         (ffsdi2): Use clz instead of unspec.
11901 2003-02-07  Loren James Rittle  <ljrittle@acm.org>
11903         * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
11904         * config/ia64/freebsd.h (LINK_SPEC): Likewise.
11905         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
11906         * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
11908 2003-02-07  Wolfgang Bangerth  <bangerth@ticam.utexas.edu>
11910         * doc/trouble.texi: Document pitfalls of two-stage name lookup.
11912 2003-02-07  Richard Henderson  <rth@redhat.com>
11914         PR 9226
11915         * gcse.c (local_cprop_find_used_regs): New.
11916         (local_cprop_pass): Use it.
11918 2003-02-07  Fred Fish  <fnf@intrinsity.com>
11920         * mips-tfile.c (parse_def): Parenthesize assignments to fix
11921         precedence bugs.
11923 2003-02-07  Segher Boessenkool  <segher@koffie.nl>
11925         * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
11927 2003-02-07  Roger Sayle  <roger@eyesopen.com>
11929         * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
11930         (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
11931         (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
11932         * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
11933         builtin functions (and their __builtin_* variants).
11934         * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
11935         (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
11936         when not optimizing.
11938         * doc/extend.texi: Document new pow and atan2 builtins, and
11939         their float and long double variants.  Realphabetize builtins.
11941 2003-02-07  Jan Hubicka  <jh@suse.cz>
11943         * i386.md (sse2_nandv2di3): Fix.
11945 2003-03-07  Danny Smith  <dannysmith@users.sourceforge.net>
11947         * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
11948         * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
11949         definition.
11950         * config/i386/i386.h (ix86_return_in_memory): Return aggregate
11951         types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
11953 2003-02-07  Jan Hubicka  <jh@suse.cz>
11955         * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
11957 2003-02-07  Daniel Berlin  <dberlin@dberlin.org>
11959         * cfg.c (dump_flow_info): Add back accidently deleted line.
11961 2003-02-07  Andrey Petrov <petrov@netbsd.org>
11963         * optabs.c (expand_float): Search wider integer modes first.
11965 2003-02-07  Bob Wilson  <bob.wilson@acm.org>
11967         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
11968         based on preprocessor flag.
11970 2003-02-07  Roger Sayle  <roger@eyesopen.com>
11971             Richard Henderson  <rth@redhat.com>
11973         * gcse.c (implicit_sets): New.
11974         (compute_hash_table_work): Include them in hash table.
11975         (find_implicit_sets, fis_get_condition): New.
11976         (one_cprop_pass): Allocate and free implicit_sets; call
11977         find_implicit_sets before building hash table.
11979 2003-02-07  Jason Thorpe  <thorpej@wasabisystems.com>
11981         * config/t-netbsd (USER_H): Revert previous change.
11983 2003-02-07  Gabor Greif  <ggreif@lucent.com>
11985         * doc/c-tree.texi (Namespaces): Fix typo.
11987 2003-02-07  Jan Hubicka  <jh@suse.cz>
11989         * regrename.c (do_replace, find_oldest_value_reg,
11990         copyprop_hardreg_forward_1): Update register attributes.
11992 2003-02-06  Vladimir Makarov  <vmakarov@redhat.com>
11994         * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
11995         VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
11996         variables starting with underscore.
11997         (struct unit_usage): New structure.
11998         (unit_usages, cycle_alt_unit_usages): New global variables.
11999         (check_unit_distribution_in_reserv): Remove it.
12000         (store_alt_unit_usage): New function.
12001         (check_regexp_units_distribution): Rewrite it.
12003 2003-02-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12005         * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
12006         target_cpu_default.
12007         * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
12008         if not MASK_NO_SPACE_REGS.
12009         (output_call): Adjust return pointer, don't load new space register
12010         into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
12011         (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
12012         TARGET_NO_SPACE_REGS is true.
12013         * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
12014         conditions.
12015         (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
12016         (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
12017         true.  Use bve when TARGET_64BIT is true.
12019 2003-02-06  Richard Henderson  <rth@redhat.com>
12021         * combine.c (nonzero_bits): Fix double break.
12023 2003-02-06  Eric Botcazou <ebotcazou@libertysurf.fr>
12024             Richard Henderson <rth@redhat.com>
12026         PR c/9530
12027         * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
12028         from functions that return a float to functions that don't.
12030 2003-02-06  Jan Hubicka  <jh@suse.cz>
12032         * i386.c (x86_inter_unit_moves): New variable.
12033         (ix86_secondary_memory_needed): Fix 64bit case, honor
12034         TARGET_INTER_UNIT_MOVES
12035         * i386.h (x86_inter_unit_moves): Declare.
12036         (TARGET_INTER_UNIT_MOVES): New macro.
12037         * i386.md (movsi_1): Cleanup constraints; disable
12038         when not doing inter-unit moves.
12039         (movsi_1_nointernunit): New.
12040         (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
12041         (movdi_1_rex64_nointerunit): New.
12042         (mivsf_1): disable when not doing inter-unit moves.
12043         (movsf_1_nointerunit): New.
12045         * basic-block.h (inside_basic_block_p):  Declare.
12046         * cfgbuild.c (inside_basic_block_p): Make global.
12047         * haifa-sched.c (unlink_other_notes0: Deal with NOT_INSN_BASIC_BLOCK.
12048         * scheudle-ebb.c  (schedule_ebb): Return last basic block of trace;
12049         update CFG.
12050         (fix_basic_block_boundaries, add_missing_bbs): New.
12051         (rank): Use profile.
12052         (scheudle_ebbs): Rely on CFG; update coments.
12054 2003-02-05  Geoffrey Keating  <geoffk@apple.com>
12056         * Makefile.in (host_hook_obj): New.
12057         (OBJS): Add $(host_hook_obj).
12058         (host_default.o): New rule.
12059         * config.gcc (host_hook_obj): New, default to host-default.o.
12060         (powerpc-*-darwin*): Use host-darwin.o.
12061         (out_host_hook_obj): New.
12062         * configure: Regenerate.
12063         * configure.in: Print information about out_host_hook_obj, substitute
12064         into output files.
12065         * host-default.c: New file.
12066         * hosthooks.h: New file.
12067         * toplev.c (general_init): Call host_hooks.extra_signals.
12068         * config/rs6000/host-darwin.c: New file.
12069         * config/rs6000/x-darwin: New file.
12070         * doc/hostconfig.texi: Add documentation for new host hook.
12071         Rearrange existing documentation.
12073 2003-02-05  Roger Sayle  <roger@eyesopen.com>
12075         * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
12076         with *targetm.delegitimize_address.
12077         (rtl_for_decl_location): Likewise.
12078         * dwarfout.c (output_mem_loc_descriptor): Likewise.  Include target.h.
12079         * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
12081         * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
12082         * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
12083         prototype.
12084         * config/i386/i386.c (ix86_delegitimize_address): Renamed from
12085         i386_simplify_dwarf_addr.  Made static.  Prototyped.
12086         (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
12087         i386_simplify_dwarf_addr to ix86_delegitimize_address.
12088         (ix86_find_base_term): Likewise.
12089         (maybe_get_pool_constant): Likewise.
12091         * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
12092         * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
12093         prototype.
12094         * config/s390/s390.c (s390_delegitimize_address): Renamed from
12095         s390_simplify_dwarf_addr.  Made static.  Prototyped.
12096         (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
12098 2003-02-05  Richard Henderson  <rth@redhat.com>
12100         PR c/8602
12101         * integrate.c (output_inline_function): Reset input_filename
12102         and lineno from the decl before rest_of_compilation.
12104 2003-02-05  Richard Henderson  <rth@redhat.com>
12106         * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
12107         (CTZ_DEFINED_VALUE_AT_ZERO): New.
12108         * doc/rtl.texi, doc/tm.texi: Document them.
12110         * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
12111         of the value at zero properly.
12112         * fold-const.c (tree_expr_nonnegative_p): Likewise.
12113         * simplify-rtx.c (simplify_unary_operation): Likewise.
12115         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
12116         (CTZ_DEFINED_VALUE_AT_ZERO): New.
12118         * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
12119         (TARGET_EXPAND_BUILTIN): Remove.
12120         (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
12121         * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
12122         (enum arm_builtins): Remove.
12123         * config/arm/arm.md (UNSPEC_CLZ): Remove.
12124         (clzsi2): Rename from clz; use clz instead of unspec.
12125         (ctzsi2): New.
12126         * config/arm/arm-protos.h: Update.
12128 2003-02-05  Jan Hubicka  <jh@suse.cz>
12130         * i386-protos.h (x86_emit_floatuns):  Declare.
12131         * i386.c (x86_emit_floatuns): New global function.
12132         * i386.md (floatunssisf2, floatunsdisf2,
12133         floatunsdidf2):  New patterns.
12135 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12137         * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
12139 2003-02-05  Hans Boehm <Hans.Boehm@hp.com>
12141         * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
12142           config/ia64/linux.h
12144 2003-02-05  Roger Sayle  <roger@eyesopen.com>
12146         * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
12148 2003-02-05  Jakub Jelinek  <jakub@redhat.com>
12150         PR optimization/8555
12151         * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
12152         instead of aborting.
12154 2003-02-04  Richard Henderson  <rth@redhat.com>
12156         * config/i386/i386.md (UNSPEC_BSF): Remove.
12157         (ffssi2): Split into cmove and no_cmove insns and splitters;
12158         lose pentium float trick for now.
12159         (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
12160         (ctzsi2, clzsi2, bsr): New.
12162 2003-02-04  Richard Henderson  <rth@redhat.com>
12164         * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
12165         UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
12166         * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
12167         (ffsdi2): Use popcount instead of unspec.
12168         (popcountdi2): Rename from *popcnt.
12169         (ctzdi2, clzdi2, getf_exp_tf): New.
12171 2003-02-04  Kazu Hirata  <kazu@cs.umass.edu>
12173         * genconfig.c (main): Generate CC0_P.
12174         * rtl.h (CC0_P): Remove.
12176 2003-02-04  Richard Henderson  <rth@redhat.com>
12178         * libgcc2.h, libgcc2.c (__ffsSI2): New.
12179         (__ffsDI2): Rename from __ffsdi2.
12180         * mklibgcc.in (lib2funcs): Add _ffssi2.
12182 2003-02-04  Richard Henderson  <rth@redhat.com>
12184         * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
12185         rounds with a "bit table" lookup.
12187 2003-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
12189         * reload.c (find_reloads): Do not use the mode specified in the insn
12190         pattern as reload mode for address operands.  Do not generate optional
12191         reloads for operands where a mandatory reload was already pushed.
12193 2003-02-04  Richard Henderson  <rth@redhat.com>
12195         * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
12196         builtins instead of inline assembly.
12198 2003-02-04  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
12200         PR c/9376
12201         * libgcc2.c (__subvdi3): Fix typo.
12203 2003-02-04  Jan Hubicka  <jh@suse.cz>
12205         * i386.md (movti_rex64):  Fix constraint.
12207 2003-02-04  Jan Hubicka  <jh@suse.cz>
12209         * i386.md (vector push splitters):  Fix typo in resolving conflict.
12211 2003-02-04  Rodney Brown  <rbrown64@csc.com.au>
12213         * config/i386/i386.c (x86_function_profiler): Fix typo in format.
12215 2003-02-04  Phil Edwards  <pme@gcc.gnu.org>
12217         * doc/install.texi (*-*-linux-gnu):  Mention glibc requirements
12218         for recent libstdc++.  Remove formatting cruft.
12220 2003-02-04  Jakub Jelinek  <jakub@redhat.com>
12222         * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
12223         attribute even if input file name is absolute, but one of the
12224         includes is relative.
12226 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
12228         * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
12229         doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
12230         * doc/install.texi: Update copyright dates.  Update to GFDL 1.2.
12232 2003-02-03  Richard Henderson  <rth@redhat.com>
12234         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
12235         __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
12236         return type to "int".  Shuffle declarations and undef int trap.
12237         * libgcc2.h: Remove their declarations.
12238         * optabs.c (expand_unop): Force outmode to int for bitops.
12240 2003-02-03  Bob Wilson  <bob.wilson@acm.org>
12242         * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
12243         coprocessor registers before floating-point registers.
12244         * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
12245         to account for a previously removed register.
12246         (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
12247         Delete unused macros.
12249 2003-02-03  Jan Hubicka  <jh@suse.cz>
12251         * i386.c (ix86_expand_store_builtin):  Always force op1 to register.
12252         (mov*_internal): Fix predicates; require one of operands to not be
12253         memory.
12254         (SSE?MMX move expanders):  Fix predicates; force one of operands to
12255         register.
12256         (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
12257         (movups/movupd/movdqu patterns): Force one of operands to not be
12258         memory.
12260 2003-02-03  Roger Sayle  <roger@eyesopen.com>
12262         * hooks.c (hook_rtx_rtx_identity): Generic hook function that
12263         takes a single rtx and returns it unmodified.
12264         * hooks.h (hook_rtx_rtx_identity): Prototype here.
12265         * target.h (struct gcc_target): Add "delegitimize_address"
12266         field to target structure.
12267         * target-def.h (TARGET_DELEGITIMIZE_ADDRESS):  Provide default
12268         for delegitimize_address target using hook_rtx_rtx_identity.
12269         (TARGET_INITIALIZER): Initialize delegitimize_address field
12270         using TARGET_DELEGITIMIZE_ADDRESS macro.
12271         * simplify-rtx.c (avoid_constant_pool_reference): Handle float
12272         extensions of constant pool references.  Use delegitimize_address
12273         to undo the obfuscation of "-fpic".
12274         * Makefile.in (simplify-rtx.o): Add dependency on target.h.
12276         * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
12277         i386_simplify_dwarf_addr.
12278         (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
12279         (maybe_get_pool_constant): Likewise.
12281 2003-02-03  Jan Hubicka  <jh@suse.cz>
12283         * i386.c (ix86_expand_int_movcc):  Fix setcc sign bit case.
12285 2003-02-03  Jan Hubicka  <jh@suse.cz>
12287         * regclass.c (cannot_change_mode_set_regs): Correct argument order.
12289 2003-02-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12291         * mips/_tilib.c: Don't include tsystem.h or defaults.h.  Don't
12292         define LIBGCC2_WORDS_BIG_ENDIAN.  Include coretypes.h and tm.h.
12294 2003-02-02  Andreas Schwab  <schwab@suse.de>
12296         * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
12298 2003-02-02  Richard Earnshaw  <rearnsha@arm.com>
12300         * arm.md (sibcall_epilogue): Set the "conds" to "clob".
12301         (epilogue_insns): Likewise.
12303 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12305         * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
12307 2003-02-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12309         * pa-protos.h (attr_length_millicode_call): Remove second argument.
12310         (attr_length_indirect_call, attr_length_indirect_call,
12311         attr_length_save_restore_dltp): New prototypes.
12312         * pa.c (attr_length_millicode_call): Remove second argument.  Check
12313         INSN_ADDRESSES_SET_P in distance calculation.
12314         (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
12315         INSN_ADDRESSES.
12316         (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
12317         (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
12318         Call attr_length_call directly.
12319         (attr_length_indirect_call, output_indirect_call,
12320         attr_length_save_restore_dltp): New functions.
12321         * pa.md (attr_length_millicode_call): Drop second argument from all
12322         patterns.
12323         (return_internal_pic): Delete.
12324         (return_external_pic): Remove use of PIC register and pic operand and
12325         flag checks.
12326         (epilogue): Use return_internal for both normal and pic code.
12327         (call, call_value): Emit new 32-bit pic patterns for symref and
12328         indirect calls.  Remove uses for arg pointer and pic register.
12329         (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
12330         call_reg_pic_post_reload, call_val_symref_pic,
12331         call_val_symref_pic_post_reload, call_val_reg_pic,
12332         call_val_reg_pic_post_reload): New pre and post reload insn patterns.
12333         Implement define_split and define_peephole2 patterns for pre reload
12334         patterns.
12335         (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
12336         call_value_internal_reg_64bit): Shorten names.
12337         (all call patterns): Explicitly indicate registers used and clobbered.
12338         Use attr_length_indirect_call and attr_length_save_restore_dltp for
12339         attribute length calculation.  Move code generation for indirect calls
12340         to output_indirect_call.
12341         (sibcall, sibcall_value): Don't restore PIC register.
12342         (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
12343         register retore.
12345 2003-02-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12347         * doc/install.texi (Testing): Simplify and compress instructions
12348         concerning Dejagnu.
12350 2003-02-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12352         * collect2.c (pexecute_pid): Rename to pid.
12353         (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
12354         pid.
12356 2003-02-01  Geoffrey Keating  <geoffk@apple.com>
12358         * doc/extend.texi (Function Attributes): Remove documentation
12359         for PowerPC Windows NT function attributes..
12361 2003-02-01  Daniel Jacobowitz  <drow@mvista.com>
12363         * dwarf2out.c (gen_type_die): Check for typedefs before calling
12364         for TYPE_MAIN_VARIANT.
12366 2003-02-01  Richard Henderson  <rth@redhat.com>
12368         * libgcc2.c: Include auto-host.h.
12369         (ATTRIBUTE_HIDDEN): New.
12370         (__clz_tab): Don't declare here for clz and ctz.
12371         (__clzsi2, __clzdi2): Use count_leading_zeros.
12372         (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
12373         (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
12374         (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
12375         * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
12377 2003-02-01  Richard Henderson  <rth@redhat.com>
12379         * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
12380         to the conditional.
12381         (ashlsi3_1_zext splitter): Likewise.
12383 2003-02-01  Richard Henderson  <rth@redhat.com>
12385         * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
12386         * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
12387         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
12388         return type to Wtype.
12390         * libgcc-std.ver (GCC_3.4): Fix inheritance.
12392         * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
12393         expander input constraint.
12395 2003-02-01  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
12397         * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
12398         OTI_parity.
12399         (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
12400         * optabs.c (widen_clz, expand_parity): New.
12401         (expand_unop): Handle clz and parity.  Hardcode SImode as outmode
12402         for libcalls to clz, ctz, popcount, and parity.
12403         (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
12404         parity_optab, and set up libfunc handlers.
12405         * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
12406         __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
12407         __popcount_tab): New.
12408         * libgcc2.h: Declare them.
12409         * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
12410         * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
12411         and parity_optab.
12412         * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
12413         * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
12414         BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
12415         BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
12416         BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
12417         BUILT_IN_PARITYLL): New.
12418         * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
12419         and add optab argument.
12420         (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
12421         * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
12422         * expr.c (expand_expr): Handle them.
12423         * fold-const.c (tree_expr_nonnegative_p): Likewise.
12424         * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
12425         * reload1.c (eliminate_regs): Handle them.
12426         (elimination_effects): Likewise.
12427         * function.c (instantiate_virtual_regs_1): Likewise
12428         * genattrtab.c (check_attr_value): Likewise.
12429         * simplify-rtx.c (simplify_unary_operation): Likewise.
12430         * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
12431         * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
12432         (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
12433         * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
12434         * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
12435         __builtin_arm_clz.
12436         * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
12437         * mklibgcc.in (lib2funcs): ...here and merge.  Add new members.
12438         * doc/extend.texi (Other Builtins): Add new builtins.
12439         * doc/md.texi (Standard Names): Add new patterns.
12441 2003-02-01  Ulrich Weigand  <uweigand@de.ibm.com>
12443         * reload.c: Revert 2003-01-31 change.
12445 2003-02-01  Jan Hubicka  <jh@suse.cz>
12447         * combine.c (combine_simplify_rtx):  Use reversed_comparison_code_parts.
12449 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
12451         * flags.h (flag_volatile): Remove declaration.
12452         (flag_volatile_global, flag_volatile_static): Likewise.
12453         * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
12454         * toplev.c (flag_volatile): Remove definition.
12455         (flag_volatile_global, flag_volatile_static): Likewise.
12456         (f_options): Remove corresponding entries here.
12457         * varasm.c (make_decl_rtl): Don't check flag_volatile_global
12458         or flag_volatile_static.
12459         * doc/invoke.texi: Remove documentation of -fvolatile,
12460         -fvolatile-global and -fvolatile-static.
12462 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12464         * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
12465         updating of total_code_bytes from prologue to epilogue.
12467 2003-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
12469         * reload.c (find_reloads): Do not use the mode specified in the insn
12470         pattern as reload mode for address operands.  Do not generate optional
12471         reloads for operands where a mandatory reload was already pushed.
12472         Generate optional reloads only in the final pass though find_reloads.
12473         (have_replacement_p): New function.
12475 2003-01-31  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12477         * doc/install.texi (Testing): Remove a reference to our obsolete
12478         /testresults web pages and strip redundant information concerning
12479         test results.
12480         (Binaries): Refer to Microsoft Windows instead of listing all
12481         possible variants.
12483 2003-02-01  Jan Hubicka  <jh@suse.cz>
12485         * loop.c (emit_prefetch_instructions):  Do conversion at right place in
12486         RTL chain.
12488         * combine.c (simplify_set): Reverse order of ragumetns to
12489         REG_CANNOT_CHANGE_MODE_P
12490         * df.c (df_def_record_1): Likewise.
12491         * recog.c (register_operand): Likewise.
12492         * simplify-rtx.c (simplify_subreg): Likewise.
12493         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
12494         CANNOT_CHANGE_MODE_CLASS.
12495         * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
12496         Likewise.
12497         * reload.c (push_reload): Likewise.
12498         * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12499         * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12500         * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12501         * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
12502         * mips.c (mips_cannot_change_mode_class): Update.
12503         * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12504         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12505         * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12506         * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
12507         * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
12508         * sh.c (sh_cannot_change_mode_class): Update.
12509         * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
12510         * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
12512 2003-01-31  Geoffrey Keating  <geoffk@apple.com>
12514         * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
12515         change to LINK_COMMAND_SPEC in gcc.c.
12517 2003-01-31  Jan Hubicka  <jh@suse.cz>
12519         PR c/9506
12520         * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
12522 2003-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12524         * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
12525         duplicated code.
12527 2003-01-31  Nathan Sidwell  <nathan@codesourcery.com>
12529         * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
12530         (BINFO_ELTS): New #define.
12531         * stor-layout.c (finalize_record_size): Don't set them.
12532         * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
12533         BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
12534         (BINFO_LANG_ELTS): New #define.
12535         * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
12536         * java/class.c (make_class): Use BINFO_ELTS.
12537         (set_super_info): Likewse.
12538         (add_interface_do): Likewise.
12539         * objc/objc-act.c (start_class): Use BINFO_ELTS.
12541 2003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
12543         * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
12544         (times): Don't ever declare if not HAVE_TIMES.
12545         (clock): Don't ever declare if not HAVE_CLOCK.
12547 2003-01-30  Richard Henderson  <rth@redhat.com>
12549         * flow.c (update_life_info): Zap life info after cleanup_cfg.
12550         (regno_uninitialized): Use correct live at function entry set.
12551         (regno_clobbered_at_setjmp): Likewise.
12553         * expr.c (store_expr): Promote all MEM intermediates to regs.
12555 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
12557         * config/arm/arm.c: Fix comment typos.
12558         * config/arm/arm.h: Likewise.
12559         * config/arm/netbsd-elf.h: Likewise.
12560         * config/arm/netbsd.h: Likewise.
12562 2003-01-30  Geoffrey Keating  <geoffk@apple.com>
12564         * gengtype.c (struct walk_type_data): Add needs_cast_p.
12565         (walk_type): Set needs_cast_p in walk_type_data.
12566         (write_types_process_field): Supply casts when required to suppress
12567         warnings.
12568         (write_root): Cast gt_pch_n_S to suppress warning.
12569         * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
12570         * config/rs6000/rs6000.c (print_operand): Mask off high bits only
12571         when they might exist.
12572         * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
12573         insn-conditions.o, and rs6000.o.
12575 2003-01-30  Richard Henderson  <rth@redhat.com>
12577         * ggc-page.c (G.context_depth_allocations): New.
12578         (G.context_depth_collections): New.
12579         (alloc_page): Set G.context_depth_allocations.
12580         (ggc_collect): Set G.context_depth_collections.
12581         (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
12582         (ggc_pop_context): Early exit for no allocations or collections.
12584 2003-01-30  Richard Henderson  <rth@redhat.com>
12586         * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
12588 2003-01-30  Richard Earnshaw  <rearnsha@arm.com>
12590         * arm.c (arm_compute_initial_elimination_offset): If optimizing for
12591         size, the link register is always saved if any other register is
12592         saved.
12594 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
12596         * config/h8300/h8300-protos.h: Update the prototype for
12597         compute_plussi_cc.
12598         (cpp_reader): Declare before it is used.
12599         * config/h8300/h8300.c (compute_plussi_cc): Change the return
12600         type to int.
12601         * config/h8300/h8300.md (monitor_prologue): Call abort() if we
12602         see an unknown H8 variant.
12604 2003-01-30  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
12606         PR target/9316
12607         * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
12608         * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
12609         * config/rs6000/t-rtems: New file. multilib variants to match OS.
12610         * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
12611         rs6000/t-ppcgas so we get the desired multilibs.
12613 2003-01-30  Nick Clifton  <nickc@redhat.com>
12615         * config/arm/arm.c (arm_output_epilogue): Update stack pointer
12616         when popping saved IP register off the stack.
12618 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
12620         * config/rs6000/aix43.h: Fix comment typos.
12621         * config/rs6000/aix51.h: Likewise.
12622         * config/rs6000/aix52.h: Likewise.
12623         * config/rs6000/altivec.h: Likewise.
12624         * config/rs6000/rs6000.c: Likewise.
12625         * config/rs6000/rs6000.h: Likewise.
12626         * config/rs6000/rs6000.md: Likewise.
12627         * config/rs6000/spe.md: Likewise.
12629 2003-01-29  Mark Mitchell  <mark@codesourcery.com>
12631         * c-common.c (builtin_define_float_constants): Define
12632         __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
12634 2003-01-30  Kazu Hirata  <kazu@cs.umass.edu>
12636         * config/sh/lib1funcs.asm: Fix comment typos.
12637         * config/sh/linux.h: Likewise.
12638         * config/sh/sh.c: Likewise.
12639         * config/sh/sh.md: Likewise.
12641 2003-01-30  Loren James Rittle  <ljrittle@acm.org>
12643         * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
12645 2003-01-30  Alexandre Oliva  <aoliva@redhat.com>
12647         * config/fp-bit.h (__make_dp): Declare if TMODES.
12649 2003-01-29  Kazu Hirata  <kazu@cs.umass.edu>
12651         * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
12652         general_operand_src and general_operand_dst.
12654 2003-01-29  David Edelsohn  <edelsohn@gnu.org>
12656         * config/rs6000/rs6000.c (function_arg_pass_by_reference):
12657         Return true for variable sized types.
12658         (rs6000_va_arg): Handle variable sized types passed by reference
12659         on non-SVR4 ABI.
12661 2003-01-29  Richard Earnshaw  <rearnsha@arm.com>
12663         * arm.c (arm_legtimize_address): New function.
12664         * arm-protos.h (arm_legtimize_address): Add prototype.
12665         * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
12666         (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
12667         do ... while (0)
12669 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
12671         PR bootstrap/9296
12672         * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT.  Apparently no code
12673         depended on it being defined until now.
12675 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
12677         PR target/9295
12678         * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
12679         RTEMS code knows which C++ initialization style the toolset
12680         configuration is using.
12682 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
12684         PR bootstrap/9293
12685         * config/m68k/t-crtstuff: Replace spaces with tabs, add
12686          $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
12688 2003-01-29  Joel Sherrill  <joel@OARcorp.com>
12690         PR bootstrap/9292
12691         * config.gcc (hppa1.1-rtems):  Did not include t-rtems nor enable
12692         RTEMS threads.
12693         * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
12695 2003-01-29  Nick Clifton  <nickc@redhat.com>
12697         * Makefile.in (c-parse.o): Locate source file in $(parsedir)
12698         not $(srcdir).
12700 2003-01-29  Andrew Haley  <aph@redhat.com>
12702         * tree-inline.c (walk_tree): Add CHAR_TYPE.
12704 2003-01-29  Jan Hubicka  <jh@suse.cz>
12706         * i386.md (subdi3_carry_rex64): Fix typo.
12708 2003-01-28  Stan Shebs  <shebs@apple.com>
12710         * coretypes.h (cpp_reader): Forward declare struct.
12711         * c-pragma.h (cpp_reader): Remove forward declaration.
12712         * hashtable.h (cpp_reader): Likewise.
12713         * scan.h (cpp_reader): Likewise.
12714         * tree.h (cpp_reader): Likewise.
12715         * config/darwin-protos.h (cpp_reader): Likewise.
12716         * config/arm/arm-protos.h (cpp_reader): Likewise.
12717         * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
12718         struct cpp_reader in prototypes.
12720 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
12722         * doc/install.texi: Add documentation for installation into
12723         tooldirs and with DESTDIR.
12725 2003-01-28  Richard Henderson  <rth@redhat.com>
12727         * config.gcc (ia64*-*-aix*): Remove.
12728         * config/ia64/aix.h, config/ia64/t-aix: Remove file.
12729         * config/ia64/unwind-aix.c: Remove file.
12731 2003-01-28  Andreas Schwab  <schwab@suse.de>
12733         * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
12734         register.
12735         * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
12736         * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
12737         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
12738         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
12739         * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
12740         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
12741         * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
12743 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
12745         * combine.c (nonzero_bits): Fix check for negative divide operands.
12747 2003-01-28  Richard Henderson  <rth@redhat.com>
12749         * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
12750         * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
12752 2003-01-28  Richard Henderson  <rth@redhat.com>
12754         * cse.c (find_best_addr): Kill !ADDRESS_COST code.
12756         * config/cris/cris.c (cris_address_cost): Make static.
12757         (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
12758         * config/cris/cris.h (ADDRESS_COST): Remove.
12759         * config/cris/cris-protos.h: Update.
12761 2003-01-23  Mike Stump  <mrs@apple.com>
12763         * regclass.c (init_reg_autoinc): New function.
12764         (regclass): Move initialization of forbidden_inc_dec_class from
12765         here...
12766         (init_regs): to here.  Avoids reinitialization for each function,
12767         saving compilation time.
12769 2003-01-28  Jason Merrill  <jason@redhat.com>
12771         * cpplib.h (struct cpp_options): Add warn_deprecated field.
12772         * cppinit.c (cpp_create_reader): Turn it on by default.
12773         * c-opts.c (c_common_decode_option): Set it.
12774         * cpplib.c (do_pragma_once): Only complain about #pragma once
12775         if warn_deprecated is set.
12777 2003-01-28  Dale Johannesen  <dalej@apple.com>
12779         * emit-rtl.c (const_double_htab_hash):  Use mode in the hash.
12780         * loop.c (scan_loop):  Move movables on -Os rich-register targets.
12781         * config/rs6000/rs6000.md (sibcall*):  Use match_operand for LR.
12783 2003-01-28  Richard Henderson  <rth@redhat.com>
12785         * target.h (targetm.address_cost): New.
12786         * target-def.h (TARGET_ADDRESS_COST): New.
12787         (TARGET_RTX_COSTS): Uncomment.  Oops.
12788         * cse.c (address_cost): Use new target hook.
12789         (default_address_cost): New.
12790         * output.h (default_address_cost): Declare.
12791         * hooks.c (hook_int_rtx_0): New.
12792         * hooks.h (hook_int_rtx_0): Declare.
12793         * loop.c (combine_givs_p): Remove if 0 code.
12794         * system.h (ADDRESS_COST): Poison.
12796         * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
12797         config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
12798         config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
12799         config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
12800         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
12801         config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
12802         config/xtensa/xtensa.c, config/xtensa/xtensa.h
12803         (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
12804         (ADDRESS_COST): Remove.
12806         * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
12807         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
12808         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
12809         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
12810         config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
12811         config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
12812         config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
12813         config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
12814         config/mips/mips.c, config/mips/mips.h,
12815         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
12816         config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
12817         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
12818         config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
12819         config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
12820         config/vax/vax.c, config/vax/vax.h
12821         (foo_address_cost): Make static.
12822         (TARGET_ADDRESS_COST): New.
12823         (ADDRESS_COST): Remove.
12825         * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
12826         config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
12827         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
12828         config/stormy16/stormy16.h
12829         (ADDRESS_COST): Move code ...
12830         (foo_address_cost): ... here.
12831         (TARGET_ADDRESS_COST): New.
12833         * config/m32r/m32r.c (m32r_address_cost): Remove.
12834         * config/m32r/m32r-protos.h: Update.
12836         * config/mmix/mmix.c (mmix_address_cost): Remove.
12837         * config/mmix/mmix-protos.h: Update.
12839         * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
12840         mn10300_address_cost; move unsig allocation ...
12841         (mn10300_address_cost): ... here.
12842         (TARGET_ADDRESS_COST): New.
12843         * config/mn10300/mn10300-protos.h: Update.
12844         * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
12846         * doc/tm.texi: Update.
12848 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
12850         * haifa-sched.c (schedule_insn): Return necessary cycle advance
12851         after issuing the insn.
12852         (rank_for_schedule): Make a insn with /S the highest priority
12853         insn.
12854         (move_insn): Ignore schedule groups.  Clear SCHED_GROUP_P.
12855         (choose_ready): Check SCHED_GROUP_P.
12856         (schedule_block): Advance cycle after issuing insn if it is
12857         necessary.  Don't reorder insns if there is an insn with /S.
12858         (set_priorities): Ignore schedule groups.
12860         * sched-deps.c (remove_dependence, group_leader): Remove the
12861         functions.
12862         (add_dependence): Ignore schedule groups.
12863         (set_sched_group_p): Don't make copy of dependencies from previous
12864         insn of the schedule group.  Add anti-dependency to the previous
12865         insn of the schedule group.
12866         (compute_forward_dependences): Ignore schedule groups.
12868         * sched-ebb.c (init_ready_list): Ignore schedule groups.
12870         * sched-rgn.c (init_ready_list): Ditto.
12871         (can_schedule_ready_p): Ditto.
12873 2003-01-28  Vladimir Makarov  <vmakarov@redhat.com>
12875         * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
12876         register to another one.
12878 2003-01-28  Richard Henderson  <rth@redhat.com>
12880         * calls.c (default_must_pass_in_stack): Fix typo in !type case.
12882 2003-01-28  Roger Sayle  <roger@eyesopen.com>
12884         * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
12886 2003-01-28  Richard Sandiford  <rsandifo@redhat.com>
12888         * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
12889         class contains a floating-point register, return the size of the
12890         mode in half words.
12892 2003-01-28  Jan Hubicka  <jh@suse.cz>
12894         * i386.c (ix86_carry_flag_operator):  New predicate.
12895         (fcmov_operator): Fix whitespace.
12896         (ix86_expand_carry_flag_compare):  Deal with floating point.
12897         (ix86_expand_int_movcc): Deal with fp; update insn expansion
12898         (ix86_expand_int_addcc): Likewise.
12899         (ix86_expand_strlensi_unroll_1): likewsie.
12900         * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
12901         * i386.md (add?i_carry_rex64): Use new predicate.
12902         (sub?i3_carry_rex64): Likewise.
12903         (x86_mov?icc_0_m1*): Likewise.
12905 2003-01-28  Andreas Schwab  <schwab@suse.de>
12907         * cfgloopmanip.c (create_preheader): Initialize src to avoid
12908         warning.
12910         * expmed.c (emit_store_flag): Fix cast to avoid sign
12911         comparison warning.
12913         * combine.c (force_to_mode): Add cast to fix warning when
12914         STORE_FLAG_VALUE is negative.
12916 2003-01-27  Richard Henderson  <rth@redhat.com>
12918         * Makefile.in (cse.o): Depend on TARGET_H.
12919         * cse.c (rtx_cost): Use targetm.rtx_costs.
12920         * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
12921         * doc/tm.texi: Update.
12923         * target.h (targetm.rtx_costs): New.
12924         * target-def.h (TARGET_RTX_COSTS): New.
12925         * hooks.c (hook_bool_rtx_int_int_intp_false): New.
12926         * hooks.h: Update.
12928         * config/alpha/alpha.c (alpha_rtx_cost_data): New.
12929         (alpha_rtx_costs, TARGET_RTX_COSTS): New.
12930         * config/alpha/alpha.h (PROCESSOR_MAX): New.
12931         (CONST_COSTS, RTX_COSTS): Remove.
12933         * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
12934         config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
12935         config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
12936         config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
12937         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
12938         config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
12939         config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
12940         config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
12941         config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
12942         config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
12943         config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
12944         config/mn10200/mn10200.h, config/mn10300/mn10300.c,
12945         config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
12946         config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
12947         config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
12948         config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
12949         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
12950         config/stormy16/stormy16.c, config/stormy16/stormy16.h,
12951         config/v850/v850.c, config/v850/v850.h,
12952         config/xtensa/xtensa.c, config/xtensa/xtensa.h
12953         (CONST_COSTS, RTX_COSTS): Move code ...
12954         (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
12956         * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
12957         (arm_rtx_costs, TARGET_RTX_COSTS): New.
12958         * config/arm/arm-protos.h: Update.
12959         * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
12961         * config/avr/avr.h (CONST_COSTS): Move code ...
12962         * config/avr/avr.c (avr_rtx_costs): ... here.
12963         (default_rtx_costs): Make static.
12964         * config/avr/avr-protos.h: Update.
12966         * config/h8300/h8300.c (const_costs): Make static.
12967         (h8300_and_costs, h8300_shift_costs): Likewise.
12968         * config/h8300/h8300-protos.h: Update.
12970         * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
12971         (CONST_COSTS): Move code ...
12972         * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here.  Rename from
12973         default_rtx_costs; update for signature change.
12974         * config/ip2k/ip2k-protos.h: Update.
12976         * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
12977         (CONST_COSTS): Move code ...
12978         * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
12979         (TARGET_RTX_COSTS): New.
12980         (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
12981         * config/m68hc11/m68hc11-protos.h: Update.
12983         * config/m68k/m68k.c (const_int_cost): Make static.
12984         * config/m68k/m68k-protos.h: Update.
12986         * config/mcore/mcore.c (mcore_const_costs): Make static.
12987         (mcore_and_cost, mcore_ior_cost): Likewise.
12988         * config/mcore/mcore-protos.h: Update.
12990         * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
12991         (mmix_rtx_cost_recalculated): Remove.
12992         * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
12993         * config/mmix/mmix-protos.h: Update.
12995         * config/sh/sh.c (shiftcosts): Make static.
12996         (addsubcosts, andcosts, multcosts): Likewise.
12997         * config/sh/sh-protos.h: Update.
12999         * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
13000         (sparc_rtx_costs): Make static; update for change in signature.
13001         * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
13002         * config/sparc/sparc-protos.h: Update.
13004         * config/v850/v850.c (const_costs): Make static.
13005         * config/v850/v850-protos.h: Update.
13007         * config/vax/vax.h (RTX_COSTS): Remove.
13008         (CONST_COSTS): Move code ...
13009         * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
13010         from vax_rtx_cost.
13011         (vax_rtx_costs, TARGET_RTX_COSTS): New.
13013 2003-01-27  Richard Henderson  <rth@redhat.com>
13015         * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove.  Really.
13016         * config/vax/vax-protos.h: Update.  Really.
13018 2003-01-28  Alexandre Oliva  <aoliva@redhat.com>
13020         * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
13021         (UNITS_PER_FPVALUE): Defined as the width of a long double, or
13022         zero if no hardware floating point.
13023         (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
13024         (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
13025         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
13026         (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
13027         (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
13028         * config/mips/mips.c (mips_arg_info): Pass TFmode values in
13029         even FP registers on N32 and N64.
13030         (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
13031         (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
13032         (mips_va_arg): Use UNITS_PER_HWFPVALUE.  Impose additional
13033         even-register-like alignment to 128-bit arguments.
13034         (save_restore_insns): Use UNITS_PER_HWFPVALUE.
13035         (mips_function_value): Likewise.  Return TFmode in $f0 and $f2
13036         on N32 or N64.
13037         * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
13038         * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
13039         (TPBIT): Set to tp-bit.c.
13040         (tp-bit.c): Create out of fp-bit.c.
13042 2003-01-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
13044         * c-parse.in: Remove '%expect 32' directive in objc mode.
13046 2003-01-27  Nathan Sidwell  <nathan@codesourcery.com>
13048         * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
13049         (LIBGCOV): New variable.
13050         (libgcc.mk): Add LIBGCOV.
13051         (LIBGCC_DEPS): Add libgcov.c.
13052         (libgcov.a): New target.
13053         (clean): Remove libgcov.a.
13054         (install-libgcc): Do libgcov too.
13055         (stage1-start, stage2-start, stage3-start, stage4-start): Deal
13056         with libgcov.a.
13057         * libgcc2.c (L_gcov): Move into ...
13058         * libgcov.c: ... here. New file.
13059         * mklibgcc.in: Add libgcov rules.
13060         * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
13062         * doc/invoke.texi (profile-arcs, test-coverage): Update and
13063         clarify.
13065         * profile.c (index_counts_file): Remove duplicate check for open file.
13067 2003-01-27  Jerry Quinn  <jlquinn@optonline.net>
13069         * gcc/doc/invoke.texi (Optimization Options): Group together
13070         optional and experimental flags.  Move trapv and bounds-check
13071         out of this section.  Group floating point flags together.
13072         (Code Gen Options): Move trapv and bounds-check to here.
13074 2003-01-27  Josef Zlomek  <zlomekj@suse.cz>
13076         * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
13078 2003-01-27  Richard Earnshaw  <rearnsha@arm.com>
13080         PR optimization/9090
13081         * function.c (purge_addressof_1): After pushing an addressed register
13082         onto the stack, simplify the result.
13084 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
13086         * doc/extend.texi: Fix typo.
13088 2003-01-27  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
13090         * doc/cppopts.texi: Fix typo.
13091         * doc/objc.texi: Likewise.
13092         * doc/passes.texi: Likewise.
13094 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
13096         * real.c (ibm_extended_format): Add 53 to minimum exponent.
13097         (encode_ibm_extended): Adjust.
13099 2003-01-26  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
13101         * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
13102         timevar_id enumerations.
13104 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
13106         * combine.c: Fix formatting.
13108 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
13110         * doc/gccint.texi: Update the copyright.
13112 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
13114         * doc/cpp.texi: Fix typos.
13115         * doc/extend.texi: Likewise.
13116         * doc/gty.texi: Likewise.
13117         * doc/install.texi: Likewise.
13118         * doc/passes.texi: Likewise.
13119         * doc/rtl.texi: Likewise.
13120         * doc/tm.texi: Likewise.
13122 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
13124         * config/ia64/fde-glibc.c: Fix comment typos.
13125         * config/ia64/hpux.h: Likewise.
13126         * config/ia64/ia64.c: Likewise.
13127         * config/ia64/ia64.h: Likewise.
13128         * config/ia64/unwind-ia64.c: Likewise.
13130 2003-01-26  Kazu Hirata  <kazu@cs.umass.edu>
13132         * config/i386/i386-modes.def: Fix comment typos.
13133         * config/i386/i386.c: Likewise.
13134         * config/i386/i386.md: Likewise.
13136 2003-01-26  Steven Bosscher  <s.bosscher@student.tudelft.nl>
13138         * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
13139         config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
13140         ASM_FINISH_DECLARE_OBJECT before defining it.
13141         * toplev.c (rest_of_decl_compilation):  Don't define
13142         ASM_FINISH_DECLARE_OBJECT.  Only use it if it is defined.
13143         (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
13144         parameters for DWARF2 targets because they _are_ used.
13146 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
13148         * fp-bit.h: Define macros for TFmode floating-point constants
13149         in IBM-extended TFmode types.
13150         (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
13151         widths.
13152         * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
13153         TFmode type.
13155         * config/fp-bit.h: Define macros for TFmode floating-point
13156         constants in IEEE quad TFmode type.  Declare functions according
13157         to L_ macros.
13158         (TMODES): Define if __LDBL_MANT_DIG__ is 113.
13159         (TFtype, TItype, UTItype): Define if TMODES is defined.
13160         (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
13161         (F_T_BITOFF, D_T_BITOFF): Define.
13162         (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
13163         guaranteed to be wide enough.
13164         * config/fp-bit.c: Check for L_ macros for tf functions.
13165         (__thenan_tf): New.
13166         (nan): Adjust.
13167         (pack_d, unpack_d): Support IEEE 854 quad type.
13168         (_fpmul_parts): Support TFmode.  Compute exponent adjustment
13169         from FRAC_NBITS, FRAC_BITS and NGARDS.
13170         (usi_to_float): Cast constants to be shifted to fractype
13171         instead of assuming long long is wide enough.
13172         (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
13174 2003-01-26  Andreas Jaeger  <aj@suse.de>
13176         * df.c: Remove prototype of unused function df_regno_rtl_debug.
13178 2003-01-26  Alexandre Oliva  <aoliva@redhat.com>
13180         * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
13181         (DBBIT_FUNCS): Added _df_to_tf.
13182         (TPBIT_FUNCS): New.
13183         (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
13184         (LIBGCC_DEPS): Added TPBIT.
13185         * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
13187         * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
13188         been able to move the result to target.
13190         * expr.c (emit_group_store): Initialize dst with CONST0_RTX
13191         for the appropriate mode.
13193         * calls.c (emit_library_call_value_1): Handle return values
13194         in a PARALLEL.
13196         * rtl.c (get_mode_alignment): Moved to...
13197         * stor-layout.c: ... here.
13199         * print-rtl.c (print_rtx): Don't print MEM details in
13200         GENERATOR_FILEs.
13202 2003-01-26  Michael Hayes  <mph@paradise.net.nz>
13204         * df.h: Update comments, tidy formatting.
13205         (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
13206         REVERSE, UNION, INTERSECTION.  All uses updated.
13207         (OLD_DF_INTERFACE): Remove.
13208         (struct insn_info): Remove commented out insn field.
13209         * df.c: Update comments, tidy formatting.
13210         (df_def_table_realloc): Remove.
13213 2003-01-26  Alan Modra  <amodra@bigpond.net.au>
13215         * calls.c (save_fixed_argument_area): Tidy.
13216         (restore_fixed_argument_area): Tidy.  Set alignment of stack_area.
13217         (expand_call): Comment typo fixes.  Don't init low_to_save.  Start
13218         call chain loop at 1 if !try_tail_call.  Formatting.
13219         (emit_library_call_value_1): Don't init low_to_save or high_to_save.
13220         Use save_fixed_argument_area and restore_fixed_argument_area.
13222 2003-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13224         * df.c (df_uses_record): Handle CC0.
13226 2003-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
13228         * reload.c (maybe_memory_address_p): New function.
13229         (find_reloads_address): Use it instead of memory_address_p.
13231 2003-01-25  Kaz Kojima  <kkojima@gcc.gnu.org>
13233         * final.c (shorten_branches): Align the address of code label
13234         when computing initial lengths and addresses.
13236 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13238         * config/m68hc11/m68hc11.md: Fix a comment typo.
13240 2003-01-25  Andreas Jaeger  <aj@suse.de>
13242         * config/i386/i386.c (x86_output_mi_thunk): Correct test for
13243         TARGET_MACHO.
13245 2003-01-25  Roger Sayle  <roger@eyesopen.com>
13247         * gcse.c (bypass_last_basic_block): New global variable.
13248         (bypass_block):  Use redirect_edge_and_branch_force to redirect
13249         fall-through edges.  Use bypass_last_basic_block to determine
13250         which blocks have valid PRE information.
13251         (bypass_conditional_jumps): Initialize bypass_last_basic_block.
13253 2003-01-25  Jan Hubicka  <jh@suse.cz>
13255         * gcse.c (local_cprop_pass): Update reg_sets table when needed.
13257 2003-01-25  Jan Hubicka  <jh@suse.cz>
13258                               Eric Botcazou <ebotcazou@libertysurf.fr>
13259         PR opt/8492
13260         * gcse.c (one_cprop_pass): Delete unreachable blocks.
13262 2003-01-25  Richard Henderson  <rth@redhat.com>
13264         * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
13265         from ia64_aix_select_rtx_section.
13266         (ia64_rwreloc_select_section): Simlarly; use default*_1 function
13267         instead of saving and restoring flag_pic.
13268         (ia64_rwreloc_unique_section): Similarly.
13269         * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
13270         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
13271         * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
13272         TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
13274 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13276         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
13277         comment.
13279 2003-01-25  Richard Henderson  <rth@redhat.com>
13281         * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
13283 2003-01-25  Kelley Cook <kelleycook@comcast.net>
13285         * ggc-simple.c (debug_ggc_tree): Add PTR cast.
13287 2003-01-25  Segher Boessenkool  <segher@koffie.nl>
13289         * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
13290         type for bitmaps.  Use unsigned long.
13291         (nBITMAP_WORD_BITS): New macro.
13292         (BITMAP_WORD_BITS): New macro.
13293         (rest of file): Use it.
13294         * bitmap.c: Use it.
13296 2003-01-25  Richard Henderson  <rth@redhat.com>
13298         2002-02-19  Robert Lipe  <robertlipe@usa.net>
13299         * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
13301 2003-01-25  Roger Sayle  <roger@eyesopen.com>
13303         * builtins.c (purge_builtin_constant_p): Scan insn stream
13304         sequentially rather than by basic block.
13305         * function.c (purge_addressof): Simplify test with INSN_P.
13307 2003-01-25  Kazu Hirata  <kazu@cs.umass.edu>
13309         * combine.c (simplify_comparison, case AND): Remove a redundant test.
13311 2003-01-25  Roger Sayle  <roger@eyesopen.com>
13313         * function.h (struct function): New field calls_constant_p.
13314         (current_function_calls_constant_p): New macro for above.
13315         * function.c (prepare_function_start): Initialize calls_eh_return
13316         and calls_constant_p.
13317         * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
13318         * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
13319         when the current_function_calls_constant_p.
13320         * integrate.c (expand_inline_function): Set calls_constant_p if
13321         the function being inlined has calls_constant_p set.
13323 2003-01-25  Roger Sayle  <roger@eyesopen.com>
13325         * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
13326         optimizing, even if flag_gcse is true.
13327         * toplev.c (rest_of_compilation): purge_builtin_constant_p
13328         only needs to be called when "optimize > 0 && flag_gcse".
13330 2003-01-25  Roger Sayle  <roger@eyesopen.com>
13332         * stmt.c (emit_case_bit_tests): New routine to implement suitable
13333         switch statements using the equivalent of "if ((1<<x) & cst) ... ".
13334         (case_bit_test_cmp): New comparison function for "qsort" to order
13335         case_bit_tests by decreasing number of destination nodes.
13336         (lshift_cheap_p): New function to determine if "1 << x" is cheap.
13337         (expand_end_case_type): Use emit_case_bit_tests to implement
13338         suitable switch statments.
13339         (CASE_USE_BIT_TESTS): New target macro to disable the above.
13340         * Makefile.in (stmt.o): Add dependency on optab.h.
13341         * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
13343 2003-01-23  Andreas Schwab  <schwab@suse.de>
13345         * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
13346         __do_global_ctors_aux hidden global and don't put it in
13347         .init_array.
13348         * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
13349         instead so that it comes first.
13351 2003-01-25  Jan Hubicka  <jh@suse.cz>
13353         * df.c (read_modify_subreg_p):  When osize == UNITS_PER_WORD,
13354         subreg is read/modify.
13356 2003-01-25  Jan Hubicka  <jh@suse.cz>
13358         * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
13359         do libcall for large blocks.
13360         * i386.md (comi patterns): Set type to ssecomi.
13361         (sse2_unpck?pd): Fix mode of vec_select.
13363         * cse.c: Include except.h
13364         (cse_set_around_loop):  Do not create new basic blocks.
13365         * Makefile.in (cse.o): Add dependnecy on except.h
13367 2003-01-25  Jan Hubicka  <jh@suse.cz>
13369         * builtins.c (fold_trunc_transparent_mathfn): New function.
13370         (fold_builtin): Use it.
13371         * convert.c (convert_to_real): Re-enable code to convert
13372         math functions; add support for floor familly functions.
13374 2003-01-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13376         * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
13377         dependencies on coretypes.h and $(TM_H).
13379 2003-01-25  Jan Hubicka  <jh@suse.cz>
13381         * builtins.c (fold_trunc_transparent_mathfn):  Undo accidental commit.
13383 2003-01-24  Stuart Hastings  <stuart@apple.com>
13385         * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
13387 2003-01-25  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13389         * config/c4x/c4x.md (UNSPEC_BU): New constants.
13390         (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
13391         (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
13392         (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
13393         (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST):  Likewise.
13394         (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP):  Likewise.
13395         (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST):  Likewise.
13396         (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE):  Likewise.
13398 2003-01-24  Jan Hubicka  <jh@suse.cz>
13400         * emit-rtl.c (reg_attrs_htab): New static variable.
13401         (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
13402         functions.
13403         (reg_rtx): Do not maintain regno_decl.
13404         (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
13405         set_mem_attrs_from_reg): New global function.
13406         (init_emit): Do not initialize regno_decl.
13407         (init_emit_once): initialize reg_attrs_htab.
13408         * final.c (alter_subreg): Do not replace REG by SUBREG.
13409         (gen_mem_expr_from_op): Improve output.
13410         (output_asm_operands): Likewise.
13411         * function.c (assign_params): Do not set REGNO_DECL.
13412         * function.h (struct function): Kill regno_decl.
13413         (REGNO_DECL): Kill.
13414         * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
13415         * print_rtl.c (print_rtx): Output REG information.
13416         * regclass.c (reg_scan_mark_refs): Update attrs.
13417         * reload1.c (alter_reg): Likewise.
13418         * simplify_rtx.c (simplify_subreg): Likewise.
13419         * stmt.c (expand_decl): Likewise.
13420         * rtl.def (REG): Add new field.
13421         * rtl.h (struct reg_attrs): New.
13422         (rtunion_def): At rtreg.
13423         (X0MEMATTR): Add checking.
13424         (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
13425         (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
13426         Declare.
13427         * tree.h (SET_DECL_RTL): Call set_decl_rtl.
13429 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
13431         * config/xtensa/xtensa.c: Remove unused include of machmode.h.
13432         (xtensa_emit_call, print_operand): Fix printf format strings
13433         to avoid compile warnings.
13434         (xtensa_function_prologue, xtensa_function_epilogue): Change type
13435         of "size" argument to HOST_WIDE_INT to fix compile warnings.
13436         * config/xtensa/xtensa-protos.h
13437         (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
13439 2003-01-24  Jan Hubicka  <jh@suse.cz>
13441         * builtins.c (DEF_BUILTIN): Accept 10 arguments.
13442         (implicit_built_in_decls): New global array.
13443         (mathfn_built_in): New global function.
13444         (fold_trunc_transparent_mathfn): New static function
13445         (expand_builtin_strstr, expand_bultin_strchr,
13446         expand_builtin_strpbrk, expand_builtin_strcpy,
13447         expand_builtin_strncpy, expand_bultin_strcmp,
13448         expand_bultin_strncat, expand_builtin_fputs): Use
13449         implicint_built_in_decls.
13450         (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
13451         * builtins.def: Fix comments.
13452         (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
13453         DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
13454         DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
13455         DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
13456         (DEF_C99_C90RES_BULTIN): New.
13457         (*f, *l builtins): Update.
13458         * c-common.c (DEF_BUILTIN): Initialize implicit array.
13459         (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
13460         * convert.c (strip_float_extensions): New global function.
13461         * tree.h (DEF_BUILTIN): Accept 10 arguments.
13462         (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
13463         Declare.
13464         * java/builtins.c (define_builtin): Handle implicit.
13465         (DEF_BUILTIN): Update.
13466         * tm.texi (TARGET_C99_FUNCTIONS): Document.
13467         * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
13468         * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
13469         when using glibc2.
13471 2003-01-24  Bob Wilson  <bob.wilson@acm.org>
13473         * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
13474         extra_parts, and fixincludes.  Add xtensa/t-elf tmake_file.
13475         (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
13476         * config/xtensa/crti.asm: New file.
13477         * config/xtensa/crtn.asm: New file.
13478         * config/xtensa/t-elf: New file.
13479         * config/xtensa/t-linux: New file.
13480         * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
13481         Move various CFLAGS settings to new t-elf file.
13483 2003-01-24  Richard Henderson  <rth@redhat.com>
13485         PR optimization/4382
13486         * tree-inline.c (find_builtin_longjmp_call_1): New.
13487         (find_builtin_longjmp_call): New.
13488         (inlinable_function_p): Use it.
13490 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13492         * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
13493         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
13494         * config/i386/i386.c (function_arg_pass_by_reference): New.
13495         (ix86_va_arg): Support arguments passed by reference.
13497 2003-01-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13499         * cfgloopanal.c: New file.
13500         * cfgloopmanip.c: New file.
13501         * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
13502         (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
13503         cfglayout.o): Add dependency on cfgloop.h.
13504         (cfgloop.o): Add flags.h dependency.
13505         * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
13506         (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
13507         (struct loop, struct loops, flow_loops_find, flow_loops_update,
13508         flow_loops_free, flow_loops_dump, flow_loop_dump,
13509         flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
13510         LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
13511         LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
13512         flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
13513         loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
13514         find_common_loop, verify_loop_structure): Declarations moved to ...
13515         * cfgloop.h: New file.
13516         * bb-reorder.c (reorder_basic_blocks): Modified.
13517         * cfglayout.c: Include cfgloop.h.
13518         (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
13519         cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
13520         (break_superblocks): New static function.
13521         (cfg_layout_finalize): Use it.
13522         (cfg_layout_split_block): New function.
13523         * cfglayout.h (struct reorder_block_def): Add copy and duplicated
13524         fields.
13525         (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
13526         changed.
13527         (cfg_layout_split_block): Declare.
13528         * cfgloop.c: Include cfgloop.h and flags.h.
13529         (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
13530         get_loop_body): Avoid signed versus unsigned comparison warnings.
13531         (make_forwarder_block, flow_loops_find, loop_preheader_edge,
13532         loop_latch_edge): Modified.
13533         (verify_loop_structure): Modified to use flags stored in loop structure;
13534         check irreducible loops.
13535         (cancel_loop, cancel_loop_tree): New functions.
13536         (estimate_probability): Use loop analysis code for predictions.
13537         (estimate_loops_at_level):  Avoid signed versus unsigned comparison
13538         warnings.
13539         * doloop.c: Include cfgloop.h.
13540         * loop.c: Include cfgloop.h.
13541         * predict.c: Include cfgloop.h.
13542         * toplev.c: Include cfgloop.h.
13543         * unroll.c: Include cfgloop.h.
13544         * tracer.c (tracer): Modified.
13546 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
13548         * config/h8300/h8300.c (get_shift_alg): Fix a typo.
13550 2003-01-24  Ulrich Weigand  <uweigand@de.ibm.com>
13552         * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
13553         * configure: Regenerate.
13555         * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
13556         (tls_symbolic_reference_mentioned_p): Add prototype.
13557         (s390_tls_get_offset): Add prototype.
13558         (emit_pic_move): Remove prototype, replace by ...
13559         (emit_symbolic_move): .. this new prototype.
13561         * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
13562         (tls_model_chars): New global variable.
13563         (s390_encode_section_info): Encode TLS model.
13564         Use targetm.binds_local_p to check for local symbols.
13565         (s390_strip_name_encoding): New function.
13566         (TARGET_STRIP_NAME_ENCODING): Define.
13568         (get_thread_pointer): New function.
13569         (legitimize_tls_address): New function.
13570         (legitimize_address): Call it.
13571         (emit_pic_move): Remove, replace by ...
13572         (emit_symbolic_move): ... this new function.
13574         (larl_operand): Handle TLS operands.
13575         (legitimate_constant_p): Likewise.
13576         (s390_decompose_address): Likewise.
13577         (s390_cannot_force_const_mem): New function.
13578         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13580         (s390_output_symbolic_const): Handle TLS unspecs.
13581         (print_operand): New code 'J'.
13582         (machine_function): Add struct member 'some_ld_name'.
13583         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
13585         (enum s390_builtin): New type.
13586         (code_for_builtin_64, code_for_builtin_31): New global variables.
13587         (s390_init_builtins, s390_expand_builtin): New functions.
13588         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
13590         * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
13591         (ASM_OUTPUT_LABELREF): Define.
13592         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
13594         * config/s390/s390.md: Define TLS UNSPEC constants.
13595         ("movdi", "movsi"): Handle TLS operands.
13596         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
13597         ("*tls_load_64", "*tls_load_31"): New insns.
13598         ("call_value_tls", "call_value_tls_exp"): New expanders.
13599         ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
13600         "bas_tls_64", "bas_tls_31"): New insns.
13602 2003-01-24  Nathan Sidwell  <nathan@codesourcery.com>
13604         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
13605         spe ABI is configured, if requested.
13607 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
13609         * doc/passes.texi: Fix typo.
13611 2003-01-24  Andreas Schwab  <schwab@suse.de>
13613         * stor-layout.c (excess_unit_span): Only define if used.
13615 2003-01-24  Jerry Quinn  <jlquinn@optonline.net>
13617         * gcc/doc/invoke.texi (Optimization Options): List -O levels
13618         for each optimization flag.
13620 2003-01-24  Kazu Hirata  <kazu@cs.umass.edu>
13622         * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
13624 2003-01-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
13626         * doc/bugreport.texi: Use @command instead of @code for commands.
13627         * doc/collect2.texi: Likewise.
13628         * doc/headerdirs.texi: Likewise.
13629         * doc/invoke.texi: Likewise.
13630         * doc/standards.texi: Likewise.
13631         * doc/tm.texi: Likewise.
13632         * doc/trouble.texi: Likewise.
13634 2003-01-24  Nick Clifton  <nickc@redhat.com>
13636         * config/arm/arm.c (use_return_insn): Do not use a single return
13637         instruction for interrupt handelrs which have to create a stack
13638         frame.
13639         (arm_expand_prologue): Do not pre-bias the return address of
13640         interrupt handlers which create a stack frame.
13642 2003-01-24  Nick Clifton  <nickc@redhat.com>
13644         * Add sh2e support:
13646         2002-08-12  Alexandre Oliva  <aoliva@redhat.com>
13648                 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
13649                 med_cbranches.  Fix logic in short_cbranches.
13651         2002-04-03  Alexandre Oliva  <aoliva@redhat.com>
13653                 * config/sh/sh.md (delay for cbranch): Don't annul delay
13654                 slots on SH2e.
13655                 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
13656                 cbranch with unfilled delay slot on SH2e.
13657                 (output_branch): Fill with a nop the delay slot of a
13658                 branch that required a delay slot but didn't get one.
13660         2002-04-02  Alexandre Oliva  <aoliva@redhat.com>
13662                 * doc/invoke.texi (SH options): Document -m2e.
13663                 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
13664                 * config/sh/lib1funcs.asm: Likewise.
13665                 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
13666                 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
13667                 not __sh1__.
13668                 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
13669                 SH2E up.
13670                 (SH3E_BIT): Renamed to...
13671                 (SH_E_BIT): ... this.  Replace all uses.
13672                 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
13673                 Replace all uses of TARGET_SH3E with TARGET_SH2E.
13674                 (TARGET_SWITCHES): Added 2e.
13675                 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
13676                 (processor_type): Added PROCESSOR_SH2E.
13677                 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
13678                 TARGET_SH2E, except in sqrtsf2_i.
13679                 (attribute cpu): Added sh2e.
13680                 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
13681                 (MULTILIB_MATCHES): Use m2e multilib for m3e.
13682                 * config.gcc: Add sh2e target support.
13684 2003-01-24  Phil Edwards  <pme@gcc.gnu.org>
13686         Rename -W to -Wextra.
13687         * c-decl.c:  Update comments.
13688         * c-typeck.c:  Likewise.
13689         * flags.h:  Likewise.
13690         * function.c:  Likewise.
13691         * stmt.c:  Likewise.
13692         * toplev.c:  Update comments.
13693         (W_options):  Add 'extra'.
13694         (display_help):  Remove '-W'.
13695         (decode_W_option):  Special warn_uninitialized treatment in the case
13696         of -Wextra.
13697         * doc/invoke.texi:  Update with new entries.
13699 2003-01-23  Richard Henderson  <rth@redhat.com>
13701         * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
13702         in no-else-block case.  Add commentary.
13704 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13706         * configure.in: Revert last change.
13708 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13710         * configure.in: Don't include ansidecl.h in tconfig.h.
13711         * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED: Define if IN_LIBGCC2.
13712         * unwind-dw2-fde.h (last_fde): Use __attribute__, not
13713         ATTRIBUTE_UNUSED.
13715         * configure: Regenerate.
13717 2003-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13719         PR java/6748
13720         * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
13721         regs->nip. Fix rt_sigreturn frame layout. Add support for newer
13722         kernels.
13724 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13726         * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
13728 2003-01-23  Ulrich Weigand  <uweigand@de.ibm.com>
13730         * genattrtab.c (write_attr_get): Mark 'insn' paramter
13731         as ATTRIBUTE_UNUSED.
13733 2003-01-23  Richard Earnshaw  <rearnsha@arm.com>
13735         * arm.c (thumb_base_register_rtx_p): New function.
13736         (thumb_index_register_rtx_p): New function.
13737         (thumb_legitimate_address_p): New function.
13738         (thumb_legitimate_offset_p): New function.
13739         * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
13740         (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
13741         definitions.
13742         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
13743         (THUMB_LEGITIMATE_OFFSET): Delte.
13744         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
13745         * arm-protos.h (thumb_legitimate_address_p): Add prototype.
13746         (thumb_legitimate_offset_p): Likewise.
13748 2003-01-23  Andreas Schwab  <schwab@suse.de>
13750         * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
13752 2003-01-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13754         * fixinc/Makefile.in (FL_LIST): Revert last change.
13756 2003-01-23  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
13758         PR other/7341
13759         * invoke.texi (ftest-coverage): Fix broken cross-reference.
13760         Change @code to @command for gcov command.
13762         * gcc.texi: Adjust title of gcov section.
13763         Adjust copyright.
13764         * gcov.texi: Likewise.
13766 2003-01-22  Roger Sayle  <roger@eyesopen.com>
13768         PR optimization/8423
13769         * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
13770         its argument is constant, or 0 if !flag_gcse.
13771         * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
13772         if it's argument is constant.
13773         * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
13774         (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
13775         (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
13776         * builtins.c (purge_builtin_constant_p): New function to force
13777         instantiation of any remaining CONSTANT_P_RTX nodes.
13778         * rtl.h (purge_builtin_constant_p): Prototype here.
13779         * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
13780         pass after GCSE and before loop.
13781         (flag_gcse): No longer static.
13782         * flags.h (flag_gcse): Prototype here.
13784 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
13786         * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
13787         introduced by last change.
13789 2003-01-22  Andreas Schwab  <schwab@suse.de>
13791         * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
13793 2003-01-22  Kazu Hirata  <kazu@cs.umass.edu>
13795         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
13796         request a scratch reg on H8S when the shift count is 8.
13798 2003-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
13800         * config/s390/s390-protos.h (preferred_la_operand_p):
13801         Remove second parameter.
13802         * config/s390/s390.c (preferred_la_operand_p): Likewise.
13803         * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
13804         (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
13805         * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
13806         Add peepholes to transform ADD to LOAD ADDRESS.
13808 2003-01-22  Richard Earnshaw  <rearnsha@arm.com>
13810         * arm.c (arm_address_register_rtx_p): New function.
13811         (arm_legitimate_address_p): New function.
13812         (arm_legitimate_index_p): New function.
13813         (legitimize_pic_address): Use arm_legitimate_index_p.
13814         * arm-protos.h (arm_legtimate_address_p): Add prototype.
13815         * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
13816         (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
13818 2003-01-22  Hartmut Penner  <hpenner@de.ibm.com>
13820         * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
13821         * config/s390/2064.md (define_bypass): Correct 'Load' and
13822         'Load-address' bypass values.
13824 2003-01-22  Andreas Schwab  <schwab@suse.de>
13826         * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
13828 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
13830         * genautomata.c (output_internal_insn_latency_func,
13831         output_print_reservation_func): Short circuit when there is no
13832         automaton to generate code for.
13834 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13836         * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
13837         (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
13839 2003-01-21  Geoffrey Keating  <geoffk@apple.com>
13841         * config/rs6000/rs6000.md: Remove warning.
13842         (builtin_setjmp_receiver): Likewise.
13843         * config/darwin.c (update_stubs): Slightly improve terrible hack
13844         with identifiers.  Add comment pointing out problems with it.
13845         (update_non_lazy_ptrs): Likewise.
13847 2003-01-21  Richard Henderson  <rth@redhat.com>
13849         * dwarf2out.c (lookup_filename): Fix printf format warning.
13850         * system.h (fread_unlocked, fwrite_unlocked): Undef.
13852         * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
13853         (fixincl.o-warn, gnu-regex.o-warn): New.
13854         * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
13855         * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
13856         * fixinc/fixincl.c (process): Fix printf format warning.
13858 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
13860         * dwarf2out (output_file_names): Don't crash if called
13861         with empty file_table.
13863 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
13865         * genautomata.c (output_internal_insn_latency_func): Add
13866         missing break statement to generated code.
13868 2003-01-21  Roger Sayle  <roger@eyesopen.com>
13870         * stmt.c (same_case_target_p): New function to determine whether
13871         two case labels branch to the same target.  Split out from...
13872         (group_case_nodes): ... here.  Use same_case_target_p instead.
13873         (strip_default_case_nodes): Remove explicit case nodes
13874         that branch to the default destination.
13875         (expand_end_case_type): Call strip_default_case_nodes after
13876         group_case_nodes, to simplify the case-list before we count it.
13877         Only generate table_label RTX when actually needed.  Try to share
13878         thiscase->exit_label and thiscase->data.case_stmt.default_label
13879         when a switch has no explicit default case.  Simplify test for
13880         constant index.
13882 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
13884         * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
13885         \t.
13886         (*negsf2_h8300hs): Likewise.
13887         (*addsi3_lshiftrt_16_zexthi): Likewise.
13888         (*iorhi3_lshiftrt_8): Likewise.
13890 2003-01-21  Ulrich Weigand  <uweigand@de.ibm.com>
13892         * dwarf2out.c (fde_table_in_use): Mark GTY.
13893         (dwarf2out_cfi_label_num): New variable, marked GTY.
13894         (dwarf2out_cfi_label): Use it instead of static label_num.
13895         * emit-rtl.c (label_num): Mark GTY.
13897 2003-01-21  Kazu Hirata  <kazu@cs.umass.edu>
13899         * config/h8300/h8300.c (output_plussi): Support H8/300.
13900         (compute_plussi_length): Likewise.
13901         (compute_plussi_cc): Likewise.
13902         * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
13903         output assembly instructions.
13905 2003-01-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13907         * calls.c (fix_unsafe_tree): Prototype.
13909         * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
13910         (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
13911         insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
13912         c-parse.o-warn): Add -Wno-error.
13913         (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
13915         * configure.in (--enable-werror): Add new flag.
13916         * doc/install.texi (--enable-werror): Document.
13917         * configure: Regenerate.
13919         * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
13921 2003-01-21  Andreas Schwab  <schwab@suse.de>
13923         * genautomata.c (output_internal_insn_latency_func): Fix missing
13924         close paren in output.
13926 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
13928         * genautomata.c: Space savings in generated code:
13929         (output_dfa_insn_code_func): Split out the table-enlargement
13930         path to an out-of-line static function, dfa_insn_code_enlarge.
13931         (output_internal_insn_latency_func): Use a lookup table for the
13932         default latencies.
13933         (output_print_reservation_func): Use a lookup table for the
13934         strings.
13936 2003-01-21  Christian Ehrhardt  <ehrhardt@mathematik.uni-ulm.de>
13938         PR opt/7507
13939         * calls.c (fix_unsafe_tree): Split out from ...
13940         (expand_call): ... here.  Use it on the function address too.
13942 2003-01-20  Richard Henderson  <rth@redhat.com>
13944         * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
13946 2003-01-20  Richard Henderson  <rth@redhat.com>
13948         PR opt/7154
13949         * stmt.c (expand_asm_operands): Validize memory operands.
13951 2003-01-20  Richard Henderson  <rth@redhat.com>
13953         PR opt/8848
13954         * ifcvt.c (noce_process_if_block): Correct arguments to
13955         modified_between_p for no-else-block case.
13957 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
13959         * config/h8300/h8300.c (const_costs): Remove a warning.
13960         (output_plussi): Likewise.
13961         (compute_plussi_length): Likewise.
13962         (compute_plussi_cc): Likewise.
13964 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
13966         * config/h8300/h8300.md (addsi_h8300): Remove the last
13967         alternative.
13969 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
13971         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
13973 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13975         * system.h (__NO_STRING_INLINES): Define.
13977 2003-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13979         * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
13980         is not a scalar int mode.
13982 2003-01-20  Roger Sayle  <roger@eyesopen.com>
13984         * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
13985         insn's notes following a substitution inside a libcall.
13987 2003-01-20  Zack Weinberg  <zack@codesourcery.com>
13989         * configure.in: Check for system-provided 'uchar' type.
13990         * configure, config.in: Regenerate.
13991         * cpphash.h: Only typedef 'uchar' if the system doesn't.
13993 2003-01-20  Richard Henderson  <rth@redhat.com>
13995         * expr.h (MUST_PASS_IN_STACK): Move implementation...
13996         * calls.c (default_must_pass_in_stack): ... here.
13998 2003-01-20  Vladimir Makarov  <vmakarov@redhat.com>
14000         * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
14002         * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
14004         * genattr.c (main): Output default definition of AUTOMATON_ALTS.
14005         Wrap up definition of `insn_alts'.
14007         * genattrtab.c (main): Wrap up `insn_alts'.
14009 2003-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14011         * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
14012         prototyping.
14013         * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
14015         * config.in, configure: Regenerate.
14017 2003-01-20  Nick Clifton  <nickc@redhat.com>
14019         * config/arm/arm.md (sibcall_epilogue): Add an
14020         UNSPEC_PROLOGUE_USE to prevent the link register from being
14021         considered dead.
14023 2003-01-20  Jan Hubicka  <jh@suse.cz>
14025         * i386.md (SSE cmov splitter):  Handle memory operand in operand 5.
14027 2003-01-20  Andreas Schwab  <schwab@suse.de>
14029         * system.h: Don't declare strsignal if the decl test hasn't been
14030         run yet.
14032 2003-01-20  Kazu Hirata  <kazu@cs.umass.edu>
14034         * config/h8300/h8300.c (notice_update_cc): Don't assume that
14035         recog_data.operands[0] is always associated with cc0.
14037 2003-01-19  David Edelsohn  <edelsohn@gnu.org>
14039         * collect2.c (ldgetname): Expand declaration to prototype.
14040         * read-rtl.c (atoll): Add prototype.
14041         * system.h (strsignal): Also declare if no declaration found.
14043 2003-01-19  Alexandre Oliva  <aoliva@redhat.com>
14045         * config.gcc (mips64*-*-linux*): Added.
14046         * config/mips/linux64.h, config/mips/t-linux64: New file.
14047         * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
14048         * config/mips/mips.c (override_options): Use it.
14049         * config/mips/mips.h (TARGET_SWITCHES): Added...
14050         (SUBTARGET_TARGET_SWITCHES): New, empty by default.
14051         * Makefile.in (SPECS): New.
14052         (STAGESTUFF, specs, mostlyclean, install-common): Use it.
14053         * gcc.c (process_command): Move self-spec processing past spec
14054         file loading.
14055         * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
14056         * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
14057         CRTSTUFF_T_CFLAGS.
14058         (SPECS): Document.
14059         * doc/invoke.texi (-mabi-fake-default): Document.
14061 2003-01-19  Stephane Carrez  <stcarrez@nerim.fr>
14063         * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
14064         z_reg, z_reg_qi): Declare static and GTY().
14065         (da_reg): Remove.
14066         (create_regs_rtx): Don't create da_reg.
14067         ("gt-m68hc11.h"): Include for GTY roots.
14068         * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
14069         and GTY() here.
14070         (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
14071         (m68hc11_soft_tmp_reg): Likewise.
14072         * config/m68hc11/m68hc11-protos.h: Remove above declarations.
14074 2003-01-18  Kazu Hirata  <kazu@cs.umass.edu>
14076         * basic-block.h: Fix comment formatting.
14077         * calls.c: Likewise.
14078         * combine.c: Likewise.
14079         * convert.c: Likewise.
14080         * gcov.c: Likewise.
14081         * haifa-sched.c: Likewise.
14082         * libgcc2.c: Likewise.
14083         * loop.c: Likewise.
14084         * profile.c: Likewise.
14085         * system.h: Likewise.
14087 2003-01-18  Roger Sayle  <roger@eyesopen.com>
14089         * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
14091 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14093         * ra-build.c (undef_to_size_word): Avoid `switch' warning.
14095 2003-01-17  Dale Johannesen  <dalej@apple.com>
14097         * config/rs6000/rs6000.md (*floatsidf2_internal):  Add earlyclobbers.
14098           (*floatunssidf2_internal):  Ditto.
14100 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
14102         * alias.c: Fix comment typos.
14103         * basic-block.h: Likewise.
14104         * c-common.c: Likewise.
14105         * c-common.h: Likewise.
14106         * c-decl.c: Likewise.
14107         * c-opts.c: Likewise.
14108         * c-pragma.c: Likewise.
14109         * c-pretty-print.h: Likewise.
14110         * cfg.c: Likewise.
14111         * cfganal.c: Likewise.
14112         * cfgbuild.c: Likewise.
14113         * cfgcleanup.c: Likewise.
14114         * cfglayout.c: Likewise.
14115         * cfgrtl.c: Likewise.
14116         * convert.c: Likewise.
14117         * cpphash.h: Likewise.
14118         * cpplex.c: Likewise.
14119         * cpplib.h: Likewise.
14120         * df.h: Likewise.
14121         * diagnostic.c: Likewise.
14122         * diagnostic.h: Likewise.
14123         * dwarf2.h: Likewise.
14125 2003-01-17  Stan Shebs  <shebs@apple.com>
14127         * config/darwin-protos.h: Forward-declare struct cpp_reader.
14129 2003-01-17  Douglas B Rupp  <rupp@gnat.com>
14131         * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
14132         mistake in last checkin.
14134 2003-01-17  Kazu Hirata  <kazu@cs.umass.edu>
14136         * et-forest.c: Fix comment typos.
14137         * et-forest.h: Likewise.
14138         * except.c: Likewise.
14139         * expr.c: Likewise.
14140         * flags.h: Likewise.
14141         * flow.c: Likewise.
14142         * gcc.c: Likewise.
14143         * gcse.c: Likewise.
14144         * genattrtab.c: Likewise.
14145         * genautomata.c: Likewise.
14146         * gengtype.c: Likewise.
14147         * genrecog.c: Likewise.
14148         * global.c: Likewise.
14149         * gthr-rtems.h: Likewise.
14151 2003-01-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14153         * i386.c (x86_function_profiler): Fix format specifier.
14155 2003-01-17  Richard Henderson  <rth@redhat.com>
14157         * gengtype.c (walk_type): Allow paramN_is.
14159 2003-01-17  Nick Clifton  <nickc@redhat.com>
14161         * config/i960/t-960bare (i960-c.o): Add missing newline escape.
14163 2003-01-16  Richard Henderson  <rth@redhat.com>
14165         * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
14167 2003-01-16  Richard Henderson  <rth@redhat.com>
14169         * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
14170         (alpha_next_sequence_number): Likewise.
14171         (alpha_this_literal_sequence_number): Likewise.
14172         (alpha_this_gpdisp_sequence_number): Likewise.
14173         (struct alpha_funcs, alpha_funcs_num): Likewise.
14174         (struct alpha_links): Fix branch merge error.
14175         (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
14177 2003-01-17  Alexandre Oliva  <aoliva@redhat.com>
14179         * config/mips/mips.h: Don't use #elif.  Reported by Kaveh
14180         R. Ghazi.
14182 2003-01-16  Kazu Hirata  <kazu@cs.umass.edu>
14184         * ifcvt.c: Fix comment typos.
14185         * lcm.c: Likewise.
14186         * libgcc2.c: Likewise.
14187         * local-alloc.c: Likewise.
14188         * loop.c: Likewise.
14189         * predict.c: Likewise.
14190         * ra-build.c: Likewise.
14191         * ra.c: Likewise.
14192         * ra-colorize.c: Likewise.
14193         * ra.h: Likewise.
14194         * ra-rewrite.c: Likewise.
14195         * regmove.c: Likewise.
14196         * reload.h: Likewise.
14197         * rtlanal.c: Likewise.
14198         * toplev.c: Likewise.
14199         * tree.h: Likewise.
14200         * unwind-dw2-fde-glibc.c: Likewise.
14201         * vmsdbgout.c: Likewise.
14203 2003-01-16  Richard Henderson  <rth@redhat.com>
14205         * dwarf2out.c (struct file_table): Remove.
14206         (FILE_TABLE_INCREMENT): Remove.
14207         (file_table): Make a varray; mark for GC.  Update all users.
14208         (file_table_last_lookup_index): Extract from struct file_table.
14209         (output_file_names): Fix unsigned compare warnings.
14210         (add_name_attribute): Remove inline marker.
14211         (add_comp_dir_attribute): Split out from gen_compile_unit_die.
14212         (lookup_filename): Don't manage size of file_table.
14213         (init_file_table): Allocate file_table with GC.
14214         (dwarf2out_init): Don't record main_input_filename here.
14215         (dwarf2out_finish): Do it here instead.
14217 2003-01-16  Bruce Korb  <bkorb@gnu.org>
14219         * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
14221 2003-01-16  Kaz Kojima  <kkojima@gcc.gnu.org>
14223         * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
14224         instead of rotldi3_mextr.
14226 2003-01-16  Vladimir Makarov  <vmakarov@redhat.com>
14228         * haifa-sched.c (move_insn): Restore moving all schedule group.
14229         (set_priorities): Restore taking SCHED_GROUP_P into account.
14231         * sched-deps.c (add_dependence): Restore processing the last group
14232         insn.
14233         (remove_dependence, group_leader): Restore the functions.
14234         (set_sched_group_p): Restore adding dependencies from previous insn
14235         in the group.
14236         (compute_forward_dependences): Restore usage of group_leader.
14238         * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
14239         account.
14241         * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
14242         account.
14243         (can_schedule_ready_p): Ditto.
14244         (add_branch_dependences): Restore skipping over the group insns.
14246 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
14248         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
14249         68HC12 pre/post inc/dec side effects.
14251 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
14253         * config/m68hc11/m68hc11.h (MASK_M6812): Define.
14255 2003-01-16  J"orn Rennecke <amylaar@onetel.net.uk>
14257         * sh.md (mshflo_w_x): Fix description of operation.
14259 2003-01-16  Zack Weinberg  <zack@codesourcery.com>
14261         * config/rs6000/rs6000.h: Mention Altivec registers in
14262         commentary.  Fix typo.
14264 2003-01-16  David Edelsohn  <edelsohn@gnu.org>
14266         * config/rs6000/rs6000.md (movti_string): Remove clobber.
14267         * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
14268         generate PARALLEL with clobber for TARGET_POWER.
14270 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14272         * ra-colorize.c (colorize_one_web): Initialize variable.
14273         * regmove.c (fixup_match_1): Likewise.
14274         * reload1.c (reload_as_needed): Likewise.
14275         * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
14277 2003-01-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14279         * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
14281 2003-01-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14283         * dbxout.c (lastfile, cwd): Fix `unused' warning.
14284         * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
14285         dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
14286         is_main_source, file_table, decl_die_table_in_use,
14287         abbrev_die_table_in_use, line_info_table_in_use,
14288         separate_line_info_table_in_use, pubname_table_in_use,
14289         arange_table_in_use, ranges_table_in_use,
14290         current_function_has_inlines): Likewise.
14291         * flow.c (life_analysis): Likewise.
14292         * genemit.c (gen_insn): Likewise.
14293         * protoize.c (cplus_suffix): Likewise.
14295         * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
14296         * arm.h (ROUND_UP_WORD): Likewise.
14298         * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
14299         warning.
14300         * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
14301         init_emit_once): Likewise.
14302         * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
14303         Likewise.
14304         * function.c (assign_stack_temp_for_type): Likewise.
14305         * loop.c (loop_invariant_p): Likewise.
14306         * recog.c (push_operand): Likewise.
14307         * regclass.c (init_reg_sets_1): Likewise.
14308         * reload.c (update_auto_inc_notes): Likewise.
14309         * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
14310         * stmt.c (expand_asm_operands): Likewise.
14311         * stor-layout.c (start_record_layout): Likewise.
14313 2003-01-16  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
14315         * config/c4x/c4x.md (epilogue): Correct last patch.
14317 2003-01-15  Richard Henderson  <rth@redhat.com>
14319         * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
14320         also check that GP is being used.
14321         (alpha_find_lo_sum_using_gp): New.
14322         (alpha_does_function_need_gp): Use get_attr_usegp.
14323         * config/alpha/alpha-protos.h: Update.
14324         * config/alpha/alpha.md (attr usegp): New.  Annotate patterns
14325         as needed.
14327 2003-01-15  Roger Sayle  <roger@eyesopen.com>
14329         * gcse.c (one_cprop_pass): Change function arguments to take both
14330         cprop_jumps and bypass_jumps flags instead of just alter_jumps.
14331         (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
14332         (bypass_jumps): New function to perform separate jump bypassing pass.
14333         * rtl.h (bypass_jumps): Add function prototype.
14334         * timevar.def (TV_BYPASS): New timing variable.
14335         * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
14336         (dump_file): New entry for the bypass RTL dump file.
14337         (rest_of_compilation): Insert new jump bypassing optimization
14338         pass after loop.
14339         * doc/passes.texi: Document new pass.
14341 2003-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14343         * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
14344         ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
14345         * pa.h (TARGET_SOM_SDEF): Define.
14346         * pa-hpux11.h (TARGET_SOM_SDEF): Define.
14348 2003-01-16  Stephane Carrez  <stcarrez@nerim.fr>
14350         * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
14351         allocate 4-bytes of locals on 68HC11.
14352         (expand_epilogue): Likewise.
14353         (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
14355 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
14357         * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
14358         and -mshort-double to the assembler to specify the ABI.
14359         (LINK_SPEC): Likewise.
14360         (CPP_SPEC): Pass HCS12 specific define.
14361         (MASK_M68S12): New define.
14362         (TARGET_M68S12): Likewise.
14363         (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
14364         (TARGET_VERSION): Update.
14365         * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
14366         (LINK_SPEC): Update.
14367         (ASM_SPEC): Update.
14368         * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
14369         * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
14371 2003-01-15  Stephane Carrez  <stcarrez@nerim.fr>
14373         * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
14374         the return code.
14376 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
14378         * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
14379         flag before setting it.
14381 2003-01-15  Roger Sayle  <roger@eyesopen.com>
14383         * c-semantics.c (genrtl_while_stmt):  Improve initial RTL generation
14384         when loop condition is known true, i.e.  "while (1) { ... }".
14385         (genrtl_for_stmt): Similarly for "for" statements.
14387 2003-01-15  Roger Sayle  <roger@eyesopen.com>
14389         * real.c (real_sqrt): Return a bool result indicating whether
14390         a floating point exception or trap should be raised.
14391         * real.h (real_sqrt): Update function prototype.
14392         * builtins.c (fold_builtin): Only fold non-trapping square
14393         roots unless we're ignoring errno and trapping math.
14395 2003-01-15  John David Anglin  <dave.anglin@nrc.gc.ca>
14397         * expr.h (emit_conditional_add): Add PARAMS to declaration.
14398         * gengtype-lex.l (malloc, realloc): Move defines after include of
14399         system.h.  Remove duplicate include of system.h.
14401 2003-01-15  Roger Sayle  <roger@eyesopen.com>
14403         PR middle-end/9009
14404         * optabs.c (expand_unop):  When manipulating the FP sign bit
14405         using integer operations, account for targets with different
14406         integer and FP word orders.
14407         (expand_abs): Likewise.
14409 2003-01-15  David Edelsohn  <edelsohn@gnu.org>
14411         * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
14412         file extension in section name.
14414 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
14416         * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
14417         constant offset.
14419 2003-01-15  Richard Earnshaw  <rearnsha@arm.com>
14421         * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
14422         (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
14423         (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
14424         (ARM_PRINT_OPERAND_ADDRESS): Likewise.
14426 2003-01-15  Jan Hubicka  <jh@suse.cz>
14428         PR f/9258
14429         * global.c (struct allocno): Add no_stack_reg.
14430         (global_conflicts): Set no_stack_reg.
14431         (find_reg): Use it.
14433         * convert.c (convert_to_real): Fold - and abs only when profitable.
14434         * fold-const.c (fold): Fold truncates in - and abs.
14436 2003-01-15  Josef Zlomek  <zlomekj@suse.cz>
14438         Segher Boessenkool  <segher@koffie.nl>
14440         * predict.c (real_inv_br_prob_base): New variable.
14441         (propagate_freq): Use multiply by reciprocal instead of
14442         division.  Don't divide by 1.0 at all.
14443         (estimate_bb_frequencies): Similar.
14445 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
14447         * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
14448         * configure: Rebuilt.
14450 2003-01-15  Hartmut Penner  <hpenner@de.ibm.com>
14452         * config/s390/s390.c (s390_safe_attr_type): New function.
14453         (s390_use_dfa_pipeline_interface): New function, return true for z900.
14454         (s390_issue_rate): New function.
14455         (s390_agen_dep_p): New function.
14456         (addr_generation_dependency_p): Use 's390_safe_attr_type'.
14457         (s390_adjust_cost): Return 'cost' if new DFA is used.
14458         (s390_adjust_priority): Delete function.
14459         * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
14460         * config/s390/s390.md (atype attribute): Attribute 'atype' default
14461         determined by 'op_type'.
14462         (type attribute): Added more type attributes.
14463         * config/s390/2064.md: New DFA description for z900 pipeline.
14465 2003-01-15  Alexandre Oliva  <aoliva@redhat.com>
14467         * config/i386/i386.c (ix86_expand_vector_move): Validize constant
14468         forced to memory.  Fixes PR bootstrap/9036.
14470         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
14471         to set $gp before the call.
14473 2003-01-14  Richard Henderson  <rth@redhat.com>
14475         * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
14476         for force_const_mem.
14478 2003-01-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14480         * genattr.c (main): Rearrange output to avoid prototype warning.
14481         * genautomata.c (transform_3): Fix ambiguous-else warning.
14482         * local-alloc.c (requires_inout): Add parentheses around
14483         assignment used as truth-value.
14484         * timevar.c: Move system includes above local includes.  Include
14485         toplev.h
14486         * Makefile.in (timevar.o): Depend on toplev.h.
14488 2003-01-14  Denis Chertykov  <denisc@overta.ru>
14490         * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
14491         (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
14493         * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
14494         attributes.
14495         (TARGET_ATTRIBUTE_TABLE): New macro.
14496         (valid_machine_type_attribute): Remove.
14497         (valid_machine_decl_attribute): Remove.
14498         (ip2k_handle_progmem_attribute): New function.
14499         (ip2k_handle_fndecl_attribute): New function.
14501 2003-01-10  Andrew Haley  <aph@redhat.com>
14503         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
14504         registers to be in correct order.  Add rip.
14506 2003-01-14  Kazu Hirata  <kazu@cs.umass.edu>
14508         * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
14509         (*iorsi3_and_lshiftrt_9_sb): Likewise.
14511 2003-01-14  Jan Hubicka  <jh@suse.cz>
14513         * convert.c (strip_float_extensions):  Look for narrowest type handling
14514         FP constants.
14516         * fold-const.c (fold):  Fold (double)float1 CMP (double)float2 into
14517         float1 CMP float2.
14518         * convert.c (strip_float_extensions): Make global.
14519         * tree.h (strip_float_extensions): Declare.
14521 2003-01-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14523         * timevar.def: define TV_NAME_LOOKUP.
14524         * timevar.c (timevar_pop): Be verbose when aborting.
14526 2003-01-13  Andreas Schwab  <schwab@suse.de>
14528         * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
14529         $(parsedir), just move the temporary file at the end.
14530         ($(parsedir)/gengtype-yacc.c): Likewise.
14532 2003-01-13  Alexandre Oliva  <aoliva@redhat.com>
14534         * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
14535         ${ac_tool_prefix} to ADAC or CC.  Protect them from word
14536         splitting.
14537         * configure: Rebuilt.
14539 2003-01-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14541         * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
14542         internal_mcount): Don't use PARAMS.
14543         (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
14544         ISO C style.
14545         (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
14547 2003-01-13  Andreas Schwab  <schwab@suse.de>
14549         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
14550         directive.
14552 2003-01-13  Kazu Hirata  <kazu@cs.umass.edu>
14554         * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
14555         (*iorsi3_and_lshiftrt_n_sb): Likewise.
14557 2003-01-12  Mark Mitchell  <mark@codesourcery.com>
14559         PR c++/9264
14560         * c-lex.c (c_lex): Set the token value to error_mark_node for
14561         invalid numeric constants.
14563 2003-01-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14565         * c-pch.c (asm_file_startpos): Change to `long'.
14566         (pch_init): Use ftell, not ftello.
14567         (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
14568         Use `long' instead of `off_t'.
14569         (c_common_read_pch): Likewise.
14570         * ggc-common.c (gt_pch_save): Use long/ftell instead of
14571         off_t/ftello.
14573 2003-01-12  Alan Modra  <amodra@bigpond.net.au>
14575         * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
14577 2003-01-11  Richard Earnshaw  (rearnsha@arm.com)
14579         * arm-protos.h (struct cpp_reader): Add declaration.
14581 2003-01-11  Jan Hubicka  <jh@suse.cz>
14583         PR target/9068
14584         * i386.c (output_fp_compare): Fix typo.
14586 2003-01-10  David Edelsohn  <edelsohn@gnu.org>
14588         * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
14590 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
14592         * Makefile.in (parsedir): New variable.
14593         (docobjdir): New variable.
14594         (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
14595         gengtype-lex.c, gengtype-yacc.c): Use parsedir.
14596         (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
14597         cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
14598         gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
14599         Use docobjdir.
14600         * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
14601         objc.maintainer-clean): Use parsedir.
14603         * varasm.c (struct constant_descriptor_rtx): Remove unused
14604         `label' field.
14606         * toplev.c (documented_lang_options): Document -Winvalid-pch.
14608 2003-01-10  Richard Henderson  <rth@redhat.com>
14610         * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
14611         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
14613 2003-01-10  Richard Henderson  <rth@redhat.com>
14615         * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
14616         not INTEGRAL_MODE_P when widening extensions.
14618 2003-01-10  Richard Henderson  <rth@redhat.com>
14620         * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
14622 2003-01-10  Geoffrey Keating  <geoffk@apple.com>
14624         * ggc-page.c (ggc_collect): Avoid overflow computing
14625         min_expand.
14627         * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
14628         (RANLIB_TEST_FOR_TARGET): Delete.  Don't pass down to sub-makes.
14629         Remove calls.
14630         * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
14632 2003-01-10  Jan Hubicka  <jh@suse.cz>
14634         * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
14635         with weird operands.
14637 2003-01-10  Dale Johannesen <dalej@apple.com>
14639         * calls.c (load_register_parameters):  Add is_sibcall, sibcall_failure
14640         parameters.  Call check_sibcall_argument_overlap if indicated.
14641         (check_sibcall_argument_overlap):  Add mark_stored_args_map
14642         parameter.  Don't mark parameter area as clobbered if not set.
14643         (expand_call):  Adjust calls to above.
14645 2003-01-10 Kelley Cook <kelleycook@comcast.net>
14647         * configure.in (linker read-only and read-write section mixing):
14648         Squelch some assembler warnings.
14649         * configure: Likewise.
14651 2003-01-10  Hartmut Penner  <hpenner@de.ibm.com>
14653         * doc/invoke.texi: Document -mtune, delete -mcpu
14654         option for S/390 and zSeries.
14655         * config/s390/s390.c (s390_tune_string) New variable.
14656         (s390_cpu_string) Delete variable.
14657         (override_options): Use s390_tune_string instead of
14658         s390_cpu_string.
14659         * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
14661 2003-01-10  Kazu Hirata  <kazu@cs.umass.edu>
14663         * config/h8300/h8300.md (*iorsi3_ashift_31): New.
14665 2003-01-10  Josef Zlomek  <zlomekj@suse.cz>
14667         * jump.c (next_nonnote_insn_in_loop): New function.
14668         (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
14669         next_nonnote_insn.
14670         (duplicate_loop_exit_test). Likewise.
14672 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
14674         Merge from pch-branch:
14676         2003-01-06  Geoffrey Keating  <geoffk@apple.com>
14678         * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
14679         load.
14681         2002-12-24  Geoffrey Keating  <geoffk@apple.com>
14683         * cpplib.c (count_registered_pragmas): New function.
14684         (save_registered_pragmas): New function.
14685         (_cpp_save_pragma_names): New function.
14686         (restore_registered_pragmas): New function.
14687         (_cpp_restore_pragma_names): New function.
14688         * cpphash.h (_cpp_save_pragma_names): Prototype.
14689         (_cpp_restore_pragma_names): Likewise.
14690         * cpppch.c (struct save_macro_item): Split from save_macro_data.
14691         (struct save_macro_data): New field 'saved_pragmas'.
14692         (save_macros): Update for changes to struct save_macro_data.
14693         (cpp_prepare_state): Call _cpp_save_pragma_names, update
14694         for changes to struct save_macro_data.
14695         (cpp_read_state): Call _cpp_restore_pragma_names, update
14696         for changes to struct save_macro_data.
14698         * cpppch.c (cpp_read_state): Restore the hashtable references
14699         in the cpp_reader.
14701         * tree.h (built_in_decls): Mark for PCH.
14703         * dbxout.c (lastfile): Don't mark for PCH.
14705         * ggc.h: Document PCH calls into memory managers.
14707         2002-12-18  Geoffrey Keating  <geoffk@apple.com>
14709         * doc/invoke.texi (Precompiled Headers): Document the
14710         directory form of PCH.
14711         * cppfiles.c (validate_pch): New function.
14712         (open_file_pch): Search suitably-named directories for PCH files.
14714         2002-12-14  Geoffrey Keating  <geoffk@apple.com>
14716         * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
14717         reorder options.
14718         (Type Information): Mention that the information is also
14719         used to implement PCH.
14720         * doc/passes.texi (Passes): Improve documentation of
14721         language-specific files.
14723         2002-12-11  Geoffrey Keating  <geoffk@apple.com>
14725         * gengtype.c (struct write_types_data): Add reorder_note_routine field.
14726         (struct walk_type_data): Add reorder_fn field.
14727         (walk_type): Process 'reorder' option.
14728         (write_types_process_field): Reorder parameters to gt_pch_note_object,
14729         call reorder_note_routine.
14730         (write_func_for_structure): Reorder parameters to gt_pch_note_object.
14731         (ggc_wtd): Update for change to struct write_types_data.
14732         (pch_wtd): Likewise.
14733         * ggc.h (gt_pch_note_object): Reorder parameters.
14734         (gt_handle_reorder): New definition.
14735         (gt_pch_note_reorder): New prototype.
14736         * ggc-common.c (struct ptr_data): Add reorder_fn.
14737         (gt_pch_note_object): Reorder parameters.
14738         (gt_pch_note_reorder): New.
14739         (gt_pch_save): Call reorder_fn.
14740         * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
14742         * dbxout.c (cwd): Don't mark for PCH.
14744         2002-12-09  Geoffrey Keating  <geoffk@apple.com>
14746         * gengtype.c (finish_root_table): Fix some warnings.
14747         (write_root): Handle TYPE_STRING.
14748         * ggc.h (gt_ggc_m_S): Add prototype.
14749         * stringpool.c (gt_ggc_m_S): New function.
14751         2002-11-30  Geoffrey Keating  <geoffk@apple.com>
14753         * dwarf2out.c (dw2_string_counter): New.
14754         (AT_string_form): Use it.
14755         (same_dw_val_p): Update for removal of hashtable.h hash tables.
14757         2002-11-22  Geoffrey Keating  <geoffk@apple.com>
14759         * dbxout.c: Include gt-dbxout.h.
14760         (lastfile): Mark for PCH/GGC.
14761         (cwd): Likewise.
14762         (struct typeinfo): Likewise.
14763         (typevec): Likewise.
14764         (typevec_len): Likewise.
14765         (next_type_number): Likewise.
14766         (struct dbx_file): Likewise.
14767         (current_file): Likewise.
14768         (next_file_number): Likewise.
14769         (dbxout_init): Allocate typevec, struct dbx_file with GGC.
14770         (dbxout_start_source_file): Allocate struct dbx_file with GGC.
14771         (dbxout_end_source_file): Don't free struct dbx_file.
14772         (dbxout_type): Use GGC to allocate typevec.
14773         * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
14774         (GTFILES): Add dbxout.c.
14775         (gt-dbxout.h): New rule.
14777         * Makefile.in (c-pch.o): Add debug.h as dependency.
14778         * c-pch.c: Include debug.h.
14779         (pch_init): Call start_source_file to keep nesting right.
14780         (c_common_read_pch): Add orig_name parameter.  Call
14781         start_source_file debug hook.  Call end_source_file debug hook.
14782         * c-common.h (c_common_read_pch): Update prototype.
14783         * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
14784         callback.
14785         * cppfiles.c (struct include_file): Add new field `header_name'.
14786         (find_or_create_entry): Default it to `name'.
14787         (open_file_pch): Set it to the original header file searched for.
14788         (stack_include_file): Don't stack an empty buffer, just handle
14789         PCH files immediately.  Pass header_name field to read_pch callback.
14791         2002-11-19  Geoffrey Keating  <geoffk@apple.com>
14793         * function.c (funcdef_no): Mark to be saved in a PCH.
14795         2002-11-15  Geoffrey Keating  <geoffk@apple.com>
14797         * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
14799         * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
14801         2002-11-14  Geoffrey Keating  <geoffk@apple.com>
14803         * optabs.h (code_to_optab): Add GTY marker.
14805         2002-11-13  Geoffrey Keating  <geoffk@apple.com>
14807         * Makefile.in (GTFILES): Add cpplib.h.
14808         * c-common.h (struct c_common_identifier): Don't skip 'node' field.
14809         * c-decl.c (build_compound_literal): Don't use var_labelno.
14810         * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
14811         * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
14812         * varasm.c (const_labelno): Use gengtype to mark.
14813         (var_labelno): Likewise.
14814         (in_section): Likewise.
14815         (in_named_name): Likewise.
14816         (struct in_named_entry): Likewise.
14817         (in_named_htab): Likewise.
14818         (set_named_section_flags): Use GGC to allocate struct in_named_entry.
14819         (init_varasm_once): Use GGC to allocate in_named_htab.
14820         * config/darwin.c (current_pic_label_num): Mark for PCH.
14822         2002-11-11  Geoffrey Keating  <geoffk@apple.com>
14824         * ggc-simple.c (init_ggc_pch): New stub procedure.
14825         (ggc_pch_count_object): Likewise.
14826         (ggc_pch_total_size): Likewise.
14827         (ggc_pch_this_base): Likewise.
14828         (ggc_pch_alloc_object): Likewise.
14829         (ggc_pch_prepare_write): Likewise.
14830         (ggc_pch_write_object): Likewise
14831         (ggc_pch_finish): Likewise.
14832         (ggc_pch_read): Likewise.
14834         2002-11-08  Geoffrey Keating  <geoffk@apple.com>
14836         * c-pch.c (c_common_write_pch): Write the macro definitions after
14837         the GCed data.
14838         (c_common_read_pch): Call cpp_prepare_state.  Restore the macro
14839         definitions after the GCed data.
14840         * cpplib.c (save_macros): New.
14841         (reset_ht): New.
14842         (cpp_write_pch_deps): Split out of cpp_write_pch.
14843         (cpp_write_pch_state): Split out of cpp_write_pch.
14844         (cpp_write_pch): Delete.
14845         (struct save_macro_data): Delete.
14846         (cpp_prepare_state): New.
14847         (cpp_read_state): Erase and restore initial macro definitions.
14848         * cpplib.h (struct save_macro_data): Forward-declare.
14849         (cpp_write_pch_deps): Prototype.
14850         (cpp_write_pch_state): Prototype.
14851         (cpp_write_pch): Delete prototype.
14852         (cpp_prepare_state): Prototype.
14853         (cpp_read_state): Add fourth argument.
14855         2002-11-04  Geoffrey Keating  <geoffk@apple.com>
14857         * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
14858         (write_array): Remove warning.
14860         * gengtype.c (contains_scalar_p): New.
14861         (finish_root_table): Add the table to all languages, even if it's
14862         empty.
14863         (write_roots): Output gt_pch_scalar_rtab.
14864         * ggc-common.c (gt_pch_save): Write out scalars.
14865         (gt_pch_restore): Read scalars back.
14867         * ggc-page.c (OBJECTS_IN_PAGE): New macro.
14868         (struct page_entry): Delete pch_page field.
14869         (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
14870         (clear_marks): Likewise.
14871         (sweep_pages): Likewise.
14872         (poison_pages): Likewise.
14873         (ggc_print_statistics): Likewise.
14874         (ggc_pch_read): Don't free objects read from a PCH.
14875         Properly set up in_use_p and page_tails.
14877         2002-10-25  Geoffrey Keating  <geoffk@apple.com>
14879         * gengtype.c (struct write_types_data): New.
14880         (struct walk_type_data): Make `cookie' const; add extra
14881         prev_val item; add `orig_s' field.
14882         (walk_type): Update prev_val[3].
14883         (write_types_process_field): New.
14884         (write_func_for_structure): Take write_types_data structure.
14885         (write_types): New.
14886         (ggc_wtd): New.
14887         (pch_wtd): New.
14888         (write_types_local_process_field): New.
14889         (gc_mark_process_field): Delete.
14890         (write_local_func_for_structure): New.
14891         (gc_mark_func_name): Delete.
14892         (write_gc_types): Delete.
14893         (write_local): New.
14894         (finish_root_table): Don't include 'ggc_' in PFX.
14895         (write_root): Rename from write_root.  Fill pchw field of structures.
14896         (write_array): New.
14897         (write_roots): Rename from write_gc_roots.  Split out to write_array.
14898         Update to changes to other routines.  Write gt_pch_cache_rtab table.
14899         (main): Write PCH walking routines.
14900         * ggc-common.c: Include toplev.h, sys/mman.h.
14901         (ggc_mark_roots): For cache hashtables, also mark the hash table
14902         and the array of entries.
14903         (saving_htab): New.
14904         (struct ptr_data): New.
14905         (POINTER_HASH): New.
14906         (gt_pch_note_object): New.
14907         (saving_htab_hash): New.
14908         (saving_htab_eq): New.
14909         (struct traversal_state): New.
14910         (call_count): New.
14911         (call_alloc): New.
14912         (compare_ptr_data): New.
14913         (relocate_ptrs): New.
14914         (write_pch_globals): New.
14915         (struct mmap_info): New.
14916         (gt_pch_save): New.
14917         (gt_pch_restore): New.
14918         * ggc-page.c (ROUND_UP_VALUE): New.
14919         (ROUND_UP): New.
14920         (struct page_entry): Add field `pch_page'.
14921         (init_ggc): Use ROUND_UP.
14922         (struct ggc_pch_data): Declare.
14923         (init_ggc_pch): New.
14924         (ggc_pch_count_object): New.
14925         (ggc_pch_total_size): New.
14926         (ggc_pch_this_base): New.
14927         (ggc_pch_alloc_object): New.
14928         (ggc_pch_prepare_write): New.
14929         (ggc_pch_write_object): New.
14930         (ggc_pch_finish): New.
14931         (ggc_pch_read): New.
14932         * ggc.h (gt_pointer_operator): New.
14933         (gt_note_pointers): New.
14934         (gt_pch_note_object): New prototype.
14935         (gt_pointer_walker): New.
14936         (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
14937         (LAST_GGC_ROOT_TAB): Update.
14938         (gt_pch_cache_rtab): Declare.
14939         (gt_pch_scalar_rtab): Declare.
14940         (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
14941         (LAST_GGC_CACHE_TAB): Update.
14942         (gt_pch_save_stringpool): Declare.
14943         (gt_pch_restore_stringpool): Declare.
14944         (gt_pch_p_S): Declare.
14945         (gt_pch_n_S): Declare.
14946         (struct ggc_pch_data): Forward-declare.
14947         (init_ggc_pch): Declare.
14948         (ggc_pch_count_object): Declare.
14949         (ggc_pch_total_size): Declare.
14950         (ggc_pch_this_base): Declare.
14951         (ggc_pch_alloc_object): Declare.
14952         (ggc_pch_prepare_write): Declare.
14953         (ggc_pch_write_object): Declare.
14954         (ggc_pch_finish): Declare.
14955         (ggc_pch_read): Declare.
14956         (gt_pch_save): Declare.
14957         (gt_pch_restore): Declare.
14958         * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
14959         * emit-rtl.c (init_emit_once): Allocate const_int_htab,
14960         const_double_htab, mem_attrs_htab using GGC.
14961         * c-pch.c: Include ggc.h.
14962         (pch_init): Allow reading PCH file back.
14963         (c_common_write_pch): Call gt_pch_save.
14964         (c_common_read_pch): Call gt_pch_restore.
14965         * c-parse.in (init_reswords): Delete now-untrue comment.
14966         Allocate ridpointers using GGC.
14967         * c-objc-common.c (c_objc_common_finish_file): Write PCH before
14968         calling expand_deferred_fns.
14969         * c-common.h (ridpointers): Mark for GTY machinery.
14970         * Makefile.in (stringpool.o): Update dependencies.
14971         (c-pch.o): Update dependencies.
14972         (ggc-common.o): Update dependencies.
14973         * stringpool.c: Include gt-stringpool.h.
14974         (gt_pch_p_S): New.
14975         (gt_pch_n_S): New.
14976         (struct string_pool_data): New.
14977         (spd): New.
14978         (gt_pch_save_stringpool): New.
14979         (gt_pch_restore_stringpool): New.
14980         * tree.c (init_ttree): Make type_hash_table allocated using GC.
14982         2002-10-04  Geoffrey Keating  <geoffk@apple.com>
14984         * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
14985         (output_mangled_typename): Don't pass size_t to printf.
14987         * tree.h (union tree_type_symtab): Add tag to `address' field.
14988         (union tree_decl_u2): Add tag to 'i' field.
14989         * varasm.c (union rtx_const_un): Add tags to all fields.
14990         * gengtype.c (struct walk_type_data): New.
14991         (output_escaped_param): Take struct walk_type_data parameter.
14992         (write_gc_structure_fields): Delete.
14993         (walk_type): New.
14994         (write_gc_marker_routine_for_structure): Delete.
14995         (write_func_for_structure): New.
14996         (gc_mark_process_field): New.
14997         (gc_mark_func_name): New.
14998         (gc_counter): Delete.
14999         (write_gc_types): Use write_func_for_structure.
15000         (write_gc_roots): Use walk_type.
15002         2002-10-02  Geoffrey Keating  <geoffk@apple.com>
15004         * ggc-common.c (ggc_mark_roots): Delete 'x'.
15005         (ggc_splay_dont_free): Fix warning about unused 'x'.
15006         (ggc_print_common_statistics): Remove warnings.
15008         2002-10-01  Mike Stump  <mrs@apple.com>
15010         * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
15011         * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
15013         2002-09-01  Geoffrey Keating  <geoffk@redhat.com>
15014             Catherine Moore  <clm@redhat.com>
15016         * Makefile (c-pch.o): Update dependencies.
15017         (LIBCPP_OBJS): Add cpppch.o.
15018         (cpppch.o): New.
15019         * c-common.c (c_common_init): Don't call pch_init here.
15020         * c-common.h (c_common_read_pch): Update prototype.
15021         * c-lex.c (c_common_parse_file): Call pch_init here.
15022         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
15023         (c_common_decode_option): Handle them.
15024         * c-pch.c: Include c-pragma.h.
15025         (save_asm_offset): Delete.
15026         (pch_init): Move contents of save_asm_offset into here, call
15027         cpp_save_state.
15028         (c_common_write_pch): Call cpp_write_pch.
15029         (c_common_valid_pch): Warn only when -Winvalid-pch.  Call
15030         cpp_valid_state.
15031         (c_common_read_pch): Add NAME parameter.  Call cpp_read_state.
15032         * cppfiles.c (stack_include_file): Update for change to
15033         parameters of cb.read_pch.
15034         * cpphash.h (struct cpp_reader): Add `savedstate' field.
15035         * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
15036         `restore_pch_deps' fields.
15037         (struct cpp_callbacks): Add NAME parameter to `read_pch'.
15038         (cpp_save_state): Prototype.
15039         (cpp_write_pch): Prototype.
15040         (cpp_valid_state): Prototype.
15041         (cpp_read_state): Prototype.
15042         * cpppch.c: New file.
15043         * flags.h (version_flag): Remove prototype.
15044         * mkdeps.c (deps_save): New.
15045         (deps_restore): New.
15046         * mkdeps.h (deps_save): Prototype.
15047         (deps_restore): Prototype.
15048         * toplev.c (late_init_hook): Delete.
15049         (version_flag): Make static again.
15050         (compile_file): Don't call late_init_hook.
15051         * toplev.h (late_init_hook): Delete.
15052         * doc/cppopts.texi: Document -fpch-deps.
15053         * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
15055         2002-08-27  Geoffrey Keating  <geoffk@redhat.com>
15057         * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
15058         callers.
15059         (c_common_valid_pch): Rename from c_valid_pch, change callers.
15060         (c_common_read_pch): Rename from c_read_pch, change callers.
15062         * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
15063         a space between it and its argument.
15065         2002-08-24  Geoffrey Keating  <geoffk@redhat.com>
15067         * c-pch.c: New file.
15068         * toplev.h (late_init_hook): Declare.
15069         * toplev.c (late_init_hook): Define.
15070         (version_flag): Make globally visible.
15071         (compile_file): Call late_init_hook.
15072         (init_asm_output): Make output file seekable.
15073         * gcc.c (default_compilers): Update c-header rule.
15074         * flags.h (version_flag): Declare.
15075         * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
15076         fields.
15077         * cppfiles.c (struct include_file): Add 'pch' field.
15078         (INCLUDE_PCH_P): New.
15079         (open_file_pch): New.
15080         (stack_include_file): Handle PCH files specially.
15081         (find_include_file): Call open_file_pch instead of open_file.
15082         (_cpp_read_file): Explain why open_file is used instead of
15083         open_file_pch.
15084         * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
15085         * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
15086         * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
15087         in cpplib callbacks.
15088         * c-common.c (pch_file): Correct comment.
15089         (allow_pch): Define.
15090         (c_common_init): Call pch_init.
15091         * c-common.h (allow_pch): Declare.
15092         (pch_init): Declare.
15093         (c_valid_pch): Declare.
15094         (c_read_pch): Declare.
15095         (c_write_pch): Declare.
15096         * Makefile.in (c-pch.o): New.
15097         (C_AND_OBJC_OBJS): Add c-pch.o.
15098         * doc/invoke.texi (Precompiled Headers): Add index entries,
15099         complete truncated paragraph.
15101         2002-08-17  Geoffrey Keating  <geoffk@redhat.com>
15103         * c-common.c: (pch_file): Define.
15104         * c-common.h (pch_file): Declare.
15105         * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
15106         (missing_arg): Require --output-pch= to have an argument.
15107         (c_common_decode_option): Handle --output-pch=.
15108         * gcc.c: Document new %V.
15109         (default_compilers): Handle compiling C header files.
15110         (do_spec_1): Implement %V.
15111         (main): Handle "gcc foo.h" without trying to run linker.
15112         * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
15113         (Overall Options): Document what the driver does with header files,
15114         document new -x option possibilities.
15115         (Invoking G++): More documentation for PCH.
15116         (Precompiled Headers): New.
15118         2002-08-09  Geoffrey Keating  <geoffk@redhat.com>
15120         * ggc.h: Don't include varray.h.  Rearrange functions to be more
15121         organized.
15122         (ggc_add_root): Delete.
15123         (ggc_mark_rtx): Delete.
15124         (ggc_mark_tree): Delete.
15125         (struct ggc_statistics): Remove contents.
15126         * ggc-common.c: Remove unneeded includes.
15127         (struct ggc_root): Delete.
15128         (roots): Delete.
15129         (ggc_add_root): Delete.
15130         (ggc_mark_roots): Don't mark `roots'.  Call ggc_mark_stringpool.
15131         (ggc_print_common_statistics): Remove most of the contents.
15132         * Makefile.in (GGC_H): No longer uses varray.h.
15133         (ggc-common.o): Update dependencies.
15134         (c-parse.o): Add varray.h to dependencies.
15135         (c-common.o): Add varray.h.
15136         * stringpool.c (mark_ident): Use mangled name for tree marker routine.
15137         (mark_ident_hash): Rename to ggc_mark_stringpool.
15138         (init_stringpool): Don't use ggc_add_root.
15139         * c-parse.in: Include varray.h.
15140         * c-common.c: Include varray.h.
15141         * objc/Make-lang.in (objc-act.o): Add varray.h.
15142         * objc/objc-act.c: Include varray.h.
15144         2002-07-25  Geoffrey Keating  <geoffk@redhat.com>
15146         * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
15147         (dw_cfi_oprnd1_desc): Likewise.
15149         2002-07-17  Geoffrey Keating  <geoffk@redhat.com>
15151         * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
15152         move out of ifdef.
15153         (alpha_links): Use gengtype to mark; move out of ifdef.
15154         (mark_alpha_links_node): Delete.
15155         (mark_alpha_links): Delete.
15156         (alpha_need_linkage): Use GGC to allocate splay tree, struct
15157         alpha_links, strings.  Don't use ggc_add_root.
15158         * ggc-common.c (ggc_splay_alloc): New.
15159         (ggc_splay_dont_free): New.
15160         * ggc.h (ggc_mark_rtx): Update for changed name mangling.
15161         (ggc_mark_tree): Likewise.
15162         (splay_tree_new_ggc): New.
15163         (ggc_splay_alloc): Declare.
15164         (ggc_splay_dont_free): Declare.
15165         * dwarf2asm.c: Include gt-dwarf2asm.h.
15166         (mark_indirect_pool_entry): Delete.
15167         (mark_indirect_pool): Delete.
15168         (indirect_pool): Use gengtype to mark.
15169         (dw2_force_const_mem): Don't use ggc_add_root.
15170         * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
15171         (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
15172         (gt-dwarf2asm.h): Depend on s-gtype.
15174         2002-07-08  Geoffrey Keating  <geoffk@redhat.com>
15176         * tree.h (union tree_type_symtab): Mark `die' field.
15177         * Makefile.in (dwarf2out.o): Update dependencies.
15178         * dwarf2out.c: Use GGC to allocate all structures.  Convert to htab_t
15179         hash tables.
15180         (dw_cfi_oprnd1_desc): New function.
15181         (dw_cfi_oprnd2_desc): New function.
15182         (indirect_string_alloc): Delete.
15183         (debug_str_do_hash): New function.
15184         (debug_str_eq): New function.
15185         (mark_limbo_die_list): Delete.
15186         (dwarf2out_init): Don't call ggc_add_root.
15188 2003-01-09  Vladimir Makarov  <vmakarov@redhat.com>
15190         The following changes are merged from itanium-sched-branch:
15192         2003-01-08  David Edelsohn  <edelsohn@gnu.org>
15194         * doc/md.texi: Clarify assignment of units to automata description.
15196         2003-01-08  Vladimir Makarov  <vmakarov@redhat.com>
15198         * genautomata.c (unit_decl): Remove members
15199         `the_same_automaton_unit' and
15200         `the_same_automaton_message_reported_p'.
15201         (process_unit_to_form_the_same_automaton_unit_lists,
15202         form_the_same_automaton_unit_lists_from_regexp,
15203         form_the_same_automaton_unit_lists, the_same_automaton_lists):
15204         Remove them.
15205         (annotation_message_reported_p): New global variable.
15206         (check_unit_distribution_in_reserv,
15207         check_regexp_units_distribution): New functions.
15208         (check_unit_distributions_to_automata): Rewrite it.
15210         2003-01-04  Vladimir Makarov  <vmakarov@redhat.com>
15212         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
15213         Use continue instead of break if cycle is too big.
15215         2002-12-20  Vladimir Makarov  <vmakarov@redhat.com>
15217         * genautomata.c (check_unit_distributions_to_automata): Output at
15218         most one message for a unit.
15219         (process_unit_to_form_the_same_automaton_unit_lists): Check
15220         automaton of units instead of units themself.
15222         * doc/md.texi: Describe the constraint about assigning unit to
15223         automata.
15225         2002-12-20  Jan Hubicka  <jH@suse.cz>
15226                     Vladimir Makarov  <vmakarov@redhat.com>
15228         * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
15229         and `in_set_p'.
15230         (gen_cpu_unit): Initialize the new members.
15231         (process_regexp_cycles): Calculate minimal finish cycle too.  Set
15232         up `min_occ_cycle_num'.
15233         (evaluate_max_reserv_cycles): Change the function call.
15234         (CLEAR_BIT): New macro.
15235         (states_union, state_shift): Use the mask.
15236         (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
15237         (form_reservs_matter): New function.
15238         (make_automaton): Call the function and use the mask.
15239         (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
15240         account.
15242         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
15244         * config/ia64/itanium2.md (lfetch): Change the insn reservation.
15246         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
15248         * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
15249         for Itanium.
15251         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
15253         * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
15254         default cpu.
15256         2002-12-17  Vladimir Makarov  <vmakarov@redhat.com>
15257                 2002-10-31  Dale Johannesen <dalej@apple.com>
15259         * haifa-sched.c (find_set_reg_weight): New function.
15260         (find_insn_reg_weight): Use the new function.
15261         (schedule_block): Do sorting ready queue always
15262         after insn issue.
15264         2002-11-27  Vladimir Makarov  <vmakarov@redhat.com>
15266         * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
15268         2002-11-19  Vladimir Makarov  <vmakarov@redhat.com>
15270         * haifa-sched.c (choice_entry): New structure.
15271         (choice_stack, cycle_issued_insns): New variables.
15272         (max_issue): Rewrite it.
15273         (choose_ready): Set up ready_try for unknown insns too.
15274         (schedule_block): Allocate and free choice_stack.  Set up
15275         and modify cycle_issued_insns.
15277         * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
15278         with and without filling the bundle.
15279         (bundling): Combine calls of issue_nops_and_insn.
15281         2002-10-17  Vladimir Makarov  <vmakarov@redhat.com>
15283         * config/ia64/itanium1.md: New file.
15285         * config/ia64/itanium2.md: New file.
15287         * config/ia64/ia64.md: Move DFA descriptions into the new files.
15288         Remove the old pipeline description.
15290         * config/ia64/ia64.c (ia64_override_options): Add aliases of
15291         itanium processor names.
15293         2002-10-16  Vladimir Makarov  <vmakarov@redhat.com>
15295         * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
15296         (ia64_reorg):  Set up queried unit codes for Itanium2 too.
15298         * config/ia64/ia64.md: Add descriptions for Itanium2.
15300         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
15302         * config/ia64/ia64.h (processor_type): New enumeration.
15303         (ia64_tune, ia64_tune_string): New external declarations.
15304         (TARGET_OPTIONS): Add option `tune='.
15306         * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
15307         variables.
15308         (ia64_override_options): Set up `ia64_tune'.
15309         (ia64_sched_reorder2): Set up `clocks' only for Itanium.
15310         (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
15311         (bundling): Add nops for MM-insns only for Itanium.
15312         (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
15313         Itanium.
15315         * config/ia64/ia64.md (cpu): New attribute.
15316         (DFA description): Enable it only for Itanium.
15318         2002-10-08  Vladimir Makarov  <vmakarov@redhat.com>
15319                     Richard Henderson  <rth@redhat.com>
15321         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
15322         MASK_EARLY_STOP_BITS.
15323         (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
15324         (TARGET_SWITCHES): Rename option `tune-stop-bits' to
15325         `early-stop-bits'.
15327         * config/ia64/ia64.c (ia64_dfa_new_cycle,
15328         final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
15329         instead of TARGET_TUNE_STOP_BITS.
15331         * doc/invoke.texi: Rename option `-mtune-stop-bits' to
15332         `-mearly-stop-bits'.
15334         * config/ia64/ia64.c (automata_option "v"): Comment it.
15336         2002-10-07  Vladimir Makarov  <vmakarov@redhat.com>
15338         * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
15339         New macros.
15340         (TARGET_SWITCHES): Add entries for the new option.
15342         * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
15343         dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
15344         (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
15345         global variables.
15346         (ia64_sched_reorder2): Set up `clocks'.
15347         (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
15348         (ia64_dfa_new_cycle): Set up add_cycle.  Permit sorting ready
15349         queue when TARGET_TUNE_STOP_BITS.
15350         (bundling): Insert additional nops for MM-insns.
15351         (final_emit_insn_group_barriers): Add insertion of stop bits
15352         according `stops_p'.
15353         (ia64_reorg): Initiate the new varibales.
15355         * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
15357         2002-10-02  Vladimir Makarov  <vmakarov@redhat.com>
15359         * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
15360         insns at the end of block insn scheduling.
15362         2002-09-30  Vladimir Makarov  <vmakarov@redhat.com>
15364         * sched-deps.c (remove_dependence, group_leader): Remove it.
15365         (add_dependence): Add dependence to group leader to.
15366         (set_sched_group_p): Add dependence to the first insn of the
15367         schedule group too.
15368         (sched_analyze_insn): Make dependence to jump as anti-dependence.
15369         Change true dependence by anti-dependence when
15370         `reg_pending_barrier'.
15372         * sched-rgn.c (init_ready_list, can_schedule_ready_p,
15373         add_branch_dependences): Ignore schedule groups.
15375         * sched-ebb.c (init_ready_list): Ditto.
15377         * (move_insn, set_priorities): Ditto.
15379         * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
15380         flag is clear after reload.
15381         (adjust_cost): Change cost only for output dependencies.
15383         * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
15385         2002-09-26  Vladimir Makarov  <vmakarov@redhat.com>
15387         * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
15389         * target.h (gcc_target): Add member
15390         `dependencies_evaluation_hook'.
15392         * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
15393         macro.
15394         (TARGET_SCHED): Add initiatialization of the new member.
15396         * sched-ebb.c: Include `target.h'.
15397         (schedule_ebb): Call `dependencies_evaluation_hook'.
15399         * sched-rgn.c (schedule_region): Call
15400         `dependencies_evaluation_hook'.
15402         * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
15403         New macro.
15404         (ia64_dependencies_evaluation_hook): New function.
15406         * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
15407         Describe the new hook.
15409         2002-09-25  Vladimir Makarov  <vmakarov@redhat.com>
15411         * target.h (gcc_target): Add members
15412         `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
15414         * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
15415         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
15416         macros.
15417         (TARGET_SCHED): Add initiatialization of the new members.
15419         * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
15420         insn scheduling too.
15421         (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
15422         initialize `ready_try'.
15423         (schedule_block): Use `dfa_new_cycle'.  Sort `ready' only unless
15424         `dfa_new_cycle' says not to do it.
15426         * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
15427         bundling.
15429         * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
15431         * config/ia64/ia64.c: Include `hashtab.h'.
15432         (ia64_first_cycle_multipass_dfa_lookahead_guard,
15433         ia64_dfa_new_cycle, final_emit_insn_group_barriers,
15434         ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
15435         initiate_bundle_states, finish_bundle_states, bundle_state_hash,
15436         bundle_state_eq_p, insert_bundle_state,
15437         initiate_bundle_state_table, finish_bundle_state_table,
15438         try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
15439         get_template, get_next_important_insn, bundling): New functions.
15440         (ia64_internal_sched_reorder): Remove it.
15441         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
15442         TARGET_SCHED_DFA_NEW_CYCLE): New macros.
15443         (ia64_safe_itanium_requires_unit0): Remove it.
15444         (group_barrier_needed_p): Place group barrier right before a real
15445         insn.
15446         (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
15447         Remove them.
15448         (bundle_name): New variable.
15449         (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
15450         _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
15451         _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
15452         pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
15453         temp_dfa_state, prev_cycle_state): New global variables.
15454         (insn_matches_slot, maybe_rotate, finish_last_head,
15455         rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
15456         cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
15457         find_best_packet, itanium_reorder, dump_current_packet,
15458         schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
15459         (sched_data, sched_ready, sched_types): Remove them.
15460         (ia64_sched_init): Initiate only `last_scheduled_insn' and call
15461         `init_insn_group_barriers'.
15462         (ia64_sched_reorder, ia64_sched_reorder2): Call
15463         ia64_dfa_sched_reorder.
15464         (ia64_variable_issue): Rewrite it.
15465         (bundle_state): New structure.
15466         (index_to_bundle_states, bundle_states_num,
15467         allocated_bundle_states_chain, free_bundle_state_chain): New
15468         global variables.
15469         (ia64_sched_finish): Add stop bits and call `bundling' after the
15470         2nd insn scheduling.
15471         (ia64_use_dfa_pipeline_interface): Return zero always.
15472         (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
15473         insn scheduling.
15474         (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
15475         `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
15476         (ia64_reorg): Add bundling insns.
15478         * doc/tm.texi
15479         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
15480         TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
15482         2002-09-23  Vladimir Makarov  <vmakarov@redhat.com>
15484         * config/ia64/ia64.md: Add Itanium1 DFA description.
15485         (itanium_class): Add `nop' and `pre_cycle'.  Add
15486         define_function_unit for `nop'.
15487         (nop): Change attribute `itanium_class'.
15488         (pre_cycle): New define_insn.
15490         * config/ia64/ia64-protos.h (bundling_p): New external variable.
15491         (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
15492         ia64_produce_address_p): New function prototypes.
15494         * config/ia64/ia64.c (bundling_p): New global variable.
15495         (ia64_use_dfa_pipeline_interface,
15496         ia64_first_cycle_multipass_dfa_lookahead,
15497         ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
15498         functions.
15499         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
15500         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
15501         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
15502         TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
15503         (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
15504         ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
15505         (dfa_pre_cycle_insn): New variable.
15507         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
15509         * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
15510         constructions.
15512         * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
15513         New function prototypes.
15515         * genattrtab.c (main): Process the new constructions.
15517         * genautomata.c (gen_presence_absence_set,
15518         process_presence_absence_names, process_presence_absence_patterns,
15519         add_presence_absence, check_absence_pattern_sets): Add parameter
15520         `final_p'.
15521         (unit_decl): Add new members `final_presence_list' and
15522         `final_absence_list'.
15523         (unit_pattern_rel_decl): Add new member `final_p'.
15524         (gen_final_presence_set, gen_final_absence_set): New functions.
15525         (process_decls): Use member `final_p'.
15526         (temp_reserv): New global variable.
15527         (reserv_sets_are_intersected): Add processing `final_presence_set'
15528         and `final_absence_set'.
15529         (initiate_states): Allocate `temp_reserv'.
15530         (unit_final_presence_set_table, unit_final_absence_set_table): New
15531         gloabal variables.
15532         (initiate_presence_absence_pattern_sets): Initiate them.
15533         (NDFA_to_DFA): Fix typo.
15534         (output_description): Output `final_presence_set' and
15535         `final_absence_set'.
15537         * doc/md.texi (final_presence_set, final_absence_set): Describe
15538         them.
15540         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
15542         * genautomata.c (transform_3): Process a missing case (nothing on
15543         unit place).
15545         2002-09-20  Vladimir Makarov  <vmakarov@redhat.com>
15547         * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
15548         comments about queried units and the minimization.
15550         * doc/md.texi: Ditto.
15552         * genautomata.c (create_composed_state): Return nonzero if the new
15553         state has been created.
15554         (first_cycle_unit_presence): New function.
15555         (state_is_differed): Add new parameter.  Use the new function.
15556         Take queried units into account.
15557         (partition_equiv_class): Pass additional parameter to
15558         `state_is_differed'.
15559         (merge_states): Process composed states too.
15560         (build_automaton, create_automata, output_min_issue_delay_table,
15561         output_tables, output_statistics): Output more information.
15562         (output_reserved_units_table): Use function
15563         `first_cycle_unit_presence'.
15564         (output_tables): Output table of queried units even if the
15565         minimization is switched on.
15566         (write_automata): Output code for querying units even if the
15567         minimization is switched on.
15569         2002-09-19  Vladimir Makarov  <vmakarov@redhat.com>
15571         * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
15572         syntax of the constructions.
15574         * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
15575         extended syntax of the constructions.
15577         * genautomata.c (unit_rel_decl): Rename it to
15578         `unit_pattern_rel_decl'.
15579         (pattern_set_el, pattern_reserv): New structures.
15580         (pattern_set_el_t, pattern_reserv_t): New types.
15581         (gen_presence_absence_set): New function.
15582         (process_presence_absence): Remove it.
15583         (process_presence_absence_names,
15584         process_presence_absence_patterns): New functions.
15585         (get_presence_absence_set): Remove it.
15586         (initiate_presence_absence_sets): Rename it on
15587         `initiate_presence_absence_pattern_sets'.  Use new function
15588         `form_reserv_sets_list'.
15589         (form_reserv_sets_list, check_presence_pattern_sets,
15590         check_absence_pattern_sets, output_pattern_set_el_list): New
15591         functions.
15592         (unit_decl): Change types of members `presence_list' and
15593         `absence_list'.
15594         (unit_rel_decl): Rename member `names_num' to `all_names_num'.
15595         (decl): Change types of members `excl', `presence', and `absence'.
15596         (get_str_vect): Rename `par_flag' to `paren_p'.  Add null element
15597         at the end of the vector.
15598         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
15599         gen_automaton, gen_regexp_repeat, gen_regexp_allof,
15600         gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
15601         (gen_presence_set, gen_absence_set): Use new function
15602         `gen_presence_absence_set'.
15603         (add_presence_absence): Process `pattern_list' instead of
15604         `source_list'.
15605         (process_decls): USe new functions
15606         `process_presence_absence_names' and
15607         `process_presence_absence_patterns'.
15608         (reserv_sets_are_intersected): Use new function
15609         `check_presence_pattern_sets'.
15610         (presence_set, absence_set): Remove them.
15611         (unit_presence_set_table, unit_absence_set_table): New global
15612         variables.
15613         (output_description): Use new function
15614         `output_pattern_set_el_list'.
15615         (generate): Use `initiate_presence_absence_pattern_sets'.
15617         2002-09-18  Vladimir Makarov  <vmakarov@redhat.com>
15619         * genattr.c (main): Add output of prototype of new interface
15620         function `dfa_clean_insn_cache'.
15622         * genautomata.c (output_dfa_clean_insn_cache_func): New function.
15623         (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
15624         (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
15625         the generated code.
15626         (write_automata): Call the new function.
15628 2003-01-09  Jan Hubicka  <jh@suse.cz>
15630         * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
15631         correctly.
15633 2003-01-09  Paolo Carlini  <pcarlini@unitus.it>
15635         * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
15637 2003-01-09  J"orn Rennecke <joern.rennecke@superh.com>
15639         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
15640         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
15641         (CONSTRAINT_LEN): Provide default definition.
15642         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
15643         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
15644         (EXTRA_CONSTRAINT_STR): Likewise.
15645         (REG_CLASS_FROM_CONSTRAINT): Define.
15646         * genoutput.c (check_constraint_len, constraint_len): New functions.
15647         (validate_insn_alternatives): Check CONSTRAINT_LEN for each
15648         constraint / modifier.
15649         (gen_insn): Call check_constraint_len.
15650         * local-alloc.c (block_alloc): Update to use new macros / pass
15651         second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
15652         * ra-build.c (handle_asm_insn): Likewise.
15653         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
15654         (constrain_operands, peep2_find_free_register): Likewise.
15655         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
15656         * regmove.c (find_matches): Likewise.
15657         * reload.c (push_secondary_reload, find_reloads): Likewise.
15658         (alternative_allows_memconst): Likewise.
15659         * reload1.c (maybe_fix_stack_asms): Likewise.
15660         (reload_cse_simplify_operands): Likewise.
15661         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
15662         * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
15663         (CONST_OK_FOR_CONSTRAINT_P): Likewise.
15664         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
15665         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
15666         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
15668         * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
15670 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
15672         * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
15673         length.
15674         (*extzv_1_r_h8300hs): Likewise.
15675         (*extzv_1_r_inv_h8300): Likewise.
15676         (*extzv_1_r_inv_h8300hs): Likewise.
15678 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
15680         * config/h8300/h8300.h (PREDICATE_CODES): New.
15682 2003-01-09  Kazu Hirata  <kazu@cs.umass.edu>
15684         * config/h8300/h8300.md (*addsi3_upper): New.
15685         (*iorsi3_shift): Likewise.
15686         (two splitters): Likewise.
15687         (*addsi3_shift): Likewise.
15688         (two splitters): Likewise.
15690 2003-01-09  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
15692         * Makefile.in (optabs.o): Add dependency on basic-block.h.
15693         * basic-block.h (control_flow_insn_p): Fuction was exported.
15694         * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
15695         * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
15696         notes only when the region is contained in a single basic block.
15698 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
15700         PR inline-asm/8832
15701         * tree.h (expand_asm): New prototype.
15702         * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
15703         to do so.
15704         * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
15705         down to expand_asm.
15706         * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
15707         * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
15708         (volatile_refs_p) [ASM_INPUT]: Likewise.
15709         (side_effects_p) [ASM_INPUT]: Likewise.
15711 2003-01-09  Jan Hubicka  <jh@suse.cz>
15713         * i386.md (*mul*): FIx constraints; remove confused comment; fix
15714         athlon_decode attributes
15715         (imul/k8 optimization peep2s): New.
15717         * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
15718         * i386.md (type attribute): Add ssecomi.
15719         (unit, memory, prefix attributes): Handle ssecomi.
15720         (cvt?2? patterns): Fix athlon_decode attribute
15721         (comi patterns): Set attribute to ssecomi.
15723         PR target/8343
15724         * m68k.md (umulsidi, mulsidi expanders): Use register operand.
15726 2003-01-09  Richard Sandiford  <rsandifo@redhat.com>
15728         * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
15729         that match register_operands.
15730         * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
15731         register_operand the default case.
15733 2003-01-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
15735         PR c/8032
15736         * c-typeck.c (process_init_element) [RECORD_TYPE]: For
15737         an empty element, do not advance the pointer to unfilled
15738         fields if there are pending initializers.
15740 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
15742         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
15743         (install-gcc-tooldir, install-cpp, installdirs,
15744         install-common, install-driver, install-info, install-man,
15745         install-headers, install-include-dir, install-headers-tar,
15746         install-headers-cpio, install-headers-cp, install-mkheaders,
15747         install-collect2, uninstall): Prepend $(DESTDIR) to
15748         destination paths in all (un)installation commands.
15749         (install-driver): Rewrite $(LN) commands to support DESTDIR
15750         with "ln" as well as with "ln -s".
15751         (installdirs): Simply use mkinstalldirs.
15752         (install-libgcc, install-multilib): Also pass DESTDIR.
15753         * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
15754         installation destination variable ldir.
15755         * config/alpha/t-osf4, config/arm/t-netbsd,
15756         config/ia64/t-hpux, config/mips/t-iris5-6,
15757         config/pa/t-hpux-shlib, config/rs6000/t-aix43,
15758         config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
15759         config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
15760         in the definition of SHLIB_INSTALL.
15761         * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
15762         $(libsubdir) in the installation commands.
15764 2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
15766         * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
15767         non-optimizing compile.
15768         (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
15769         compile.
15771 2003-01-08  Douglas B Rupp  <rupp@gnat.com>
15773         * config/i386/i386.c (ix86_attribute_table): Add new attributes
15774         ms_struct and gcc_struct.
15775         (ix86_handle_struct_attribute): New function.
15776         (ix86_ms_bitfield_layout_p): Update to take new attributes
15777         into account.
15778         * doc/extend.texi: Document new attributes.
15779         * testsuite/gcc.dg/bf-ms-attrib.c: New test.
15781 2003-01-08  Danny Smith  <dannysmith@users.sourceforge.net>
15783         PR optimization/8750
15784         * config/i386/i386.c (ix86_expand_prologue): Don't allow
15785         scheduling pass to move insns across __alloca call.
15787 2003-01-08  Dale Johannesen  <dalej@apple.com>
15789         * config/rs6000/rs6000.md:  Replace *store_multiple_string
15790         with *stmsi[3-8].
15792 2003-01-08  Jeff Sturm  <jsturm@one-point.com>
15794         PR target/9210
15795         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
15796         Set SYMBOL_REF_FLAG on local data sym_ref.
15798 2003-01-08  Dale Johannesen  <dalej@apple.com>
15800         * function.c (assign_parms):  Don't set pretend_args_size if
15801           REG_PARM_STACK_SPACE.
15802           config/rs6000/rs6000.c (setup_incoming_varargs):  Don't set
15803           pretend_args_size.
15805 2003-01-08  Nathanael Nerode  <neroden@gcc.gnu.org>
15807         * gcc.hlp: Delete.
15809 2003-01-09  Jan Hubicka  <jh@suse.cz>
15811         * i386.c  (ix86_expand_int_addcc): Fix thinko.
15813 2003-01-08  David Edelsohn  <edelsohn@gnu.org>
15815         * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
15816         * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
15817         as hook_bool_tree_hwi_hwi_tree_true.
15818         (rs6000_emit_allocate_stack): Use TARGET_32BIT.
15819         (rs6000_emit_epilogue): Same.
15820         (rs6000_output_mi_thunk): Re-implement as RTL.
15821         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
15822         xcoffout_declare_function if any debugging enabled.
15824 2003-01-08  Chris Demetriou  <cgd@broadcom.com>
15826         * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
15827         targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
15828         * config/mips/mips.h (enum processor_type): Rename
15829         PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
15830         PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
15831         Add PROCESSOR_M4K.
15832         (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
15833         (ISA_MIPS32R2): New define.
15834         (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
15835         (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
15836         (ISA_HAS_PREFETCH): Add support for MIPS32R2.
15837         (MIPS_ISA_DEFAULT): Likewise.  Also, fix indentation.
15838         (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2.  Add new
15839         predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
15840         (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
15841         compiling MIPS16 code.
15842         (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
15843         comment.
15844         (ISA_HAS_SEB_SEH): New define.
15845         (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
15846         * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
15847         processor_type value renaming.  Add support for MIPS32R2.
15848         Clean up comments, and move "sb1" entry with other MIPS64 CPU
15849         entries.
15850         (override_options): Reimplement -mipsN option handling so that
15851         it will work correctly for -mips32r2.  Avoid branch-likely
15852         instructions on MIPS32R2.
15853         * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
15854         (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
15855         (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
15856         (extendhisi2_hw, extendqisi2_hw): New.
15857         * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
15858         for MIPS32R2.  Add new predefine __mips_isa_rev for MIPS32,
15859         MIPS32R2, and MIPS64.
15860         (LINK_SPEC): Pass -mips32r2 to linker.
15861         * config/mips/t-isa3264: Built -mips32r2 multilibs.
15862         * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
15863         for mips32r2 in the -march description.  Alphabetically sort
15864         CPU names in the -march description.  Add long-missed -mips32
15865         and -mips64 to MIPS option summary.
15867         * config.gcc: Update copyright years to include 2003.
15868         * config/mips/mips.c: Likewise.
15869         * config/mips/mips.h: Likewise.
15870         * config/mips/mips.md: Likewise.
15871         * config/mips/netbsd.h: Likewise.
15872         * doc/invoke.texi: Likewise.
15874 2003-01-08  Andreas Schwab  <schwab@suse.de>
15876         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
15877         variable.
15878         * configure: Regenerated.
15880 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
15882         * config/h8300/h8300.c (output_logical_op): Replace byte/word
15883         extraction of det with b0, b1, w0, w2, etc.
15884         (compute_logical_op_length): Likewise.
15885         (compute_logical_op_cc): Likewise.
15887 2003-01-08  Kazu Hirata  <kazu@cs.umass.edu>
15889         * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
15890         HIGH on all variants.
15892 2003-01-08  Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
15894         * Makefile.in (PARTITION_H): New.
15895         (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
15896         * basic-block.h: Include hard-reg-set.h.
15898 2003-01-08  Richard Earnshaw  <rearnsha@arm.com>
15900         * arm.h (ENABLE_XF_PATTERNS): Delete.
15901         * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
15902         (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
15903         (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
15904         (cmpxf_trap): Delete.
15905         (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
15907 2003-01-08  Jan Hubicka  <jh@suse.cz>
15909         * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
15910         (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
15911         (add??cc): New expanders.
15912         * i386.c (expand_int_addcc): New function.
15913         * i386-protos.h (expand_int_addcc): Declare.
15915         * alias.c (memory_modified_1): New static function.
15916         (memory_modified): New static varaible.
15917         (memory_modified_in_insn_p): New global function.
15918         * rtl.h (memory_modified_in_insn_p): Declare.
15919         * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
15920         references.
15922         * expr.h (emit_conditional_add): Declare.
15924 2003-01-07  Janis Johnson  <janis187@us.ibm.com>
15926         PR other/8947
15927         * doc/invoke.texi (-malign-double): Explain that the option breaks
15928         binary compatibility.
15930 2003-01-08  Andreas Schwab  <schwab@suse.de>
15932         * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
15933         should come from the generic *-*-linux* entry.
15935 2003-01-07  Jan Hubicka  <jh@suse.cz>
15937         * cselib.c (cselib_current_insn_in_libcall): New static variable.
15938         (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
15939         we are inside libcall.
15940         * cselib.h (elt_loc_list): Add in_libcall.
15941         * gcse.c (do_local_cprop): Do not copy propagate using insns
15942         in libcalls.
15944 2003-01-07  David Edelsohn  <edelsohn@gnu.org>
15946         * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
15947         not normally affect to issue rate.
15949 2003-01-07  Jan Hubicka  <jh@suse.cz>
15951         * genopinit.c (optabs): Add addc_optab.
15952         * ifcvt.c (noce_try_store_flag): Rename to ...
15953         (noce_try_addcc): ... this one; handle generic conditional increment.
15954         (noce_process_if_block): Update noce_try_addcc call.
15955         * optabs.c (emit_conditional_add): New.
15956         (init_obtabs): Initialize addc_optab.
15957         * optabs.h (optab_index): Add OTI_addcc.
15958         (addcc_optab): New macro.
15959         * md.texi: Document addMcc
15961         PR target/8322
15962         * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
15963         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
15964         * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
15966         * reload1.c (delete_output_reload): Avoid repeated attempts
15967         to delete insn.
15969 2003-01-07  Andreas Schwab  <schwab@suse.de>
15971         * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
15972         Move --enable-initfini-array check ...
15973         * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here.  Define
15974         HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
15975         Don't AC_SUBST gcc_cv_initfinit_array.  Use AC_TRY_RUN.
15976         * configure: Rebuild.
15978 2003-01-07  Richard Henderson  <rth@redhat.com>
15980         * alias.c (find_base_value): Only use new_reg_base_value shortcut
15981         if the register is set once.
15983 2003-01-07  Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
15985         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
15986         __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
15987         * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
15989 2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
15990             Sunil Davasam  <sunil.k.davasam@intel.com>
15992         PR libstdc++/9076
15993         * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
15994         DW_CFA_same_value, read next and ignore.
15996 2003-01-07  Richard Henderson  <rth@redhat.com>
15998         * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
16000 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
16002         * cfg.c: Include alloc-pool.h
16003         (edge_pool): New pool.
16004         (bb_pool): New pool.
16005         (first_deleted_edge): Remove.
16006         (first_deleted_block): Remove.
16007         (init_flow): Alloc/free the pools.
16008         (free_edge): Use pools.
16009         (alloc_block): Ditto.
16010         (expunge_block): Ditto.
16011         (cached_make_edge): Ditto.
16013         * Makefile.in (cfg.o): Add alloc-pool.h dependency.
16015 2003-01-07  Daniel Berlin  <dberlin@dberlin.org>
16017         * et-forest.c: Include alloc-pool.h.
16018         (struct et_forest): Add node_pool and occur_pool.
16019         (et_forest_create): Create the new pools.
16020         (et_forest_delete): Delete them.
16021         (et_forest_add_node): Allocate and free using pools.
16022         (et_forest_add_edge): Ditto.
16023         (et_forest_remove_node): Ditto.
16024         (et_forest_remove_edge): Ditto.
16026         * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
16028 2003-01-07  Kazu Hirata  <kazu@cs.umass.edu>
16030         * config/h8300/h8300.c (output_logical_op): Simplify and
16031         optimize the handling of SImode.
16032         * config/h8300/h8300.c (compute_logical_op_length): Update
16033         accordingly.
16034         * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
16036 2003-01-07  Richard Sandiford  <rsandifo@redhat.com>
16038         * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
16039         big-endian correction to indirect arguments too.
16041 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
16043         Segher Boessenkool  <segher@koffie.nl>
16045         * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
16046         (alt_reg_names): Ditto, fix formatting.
16047         * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
16049 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
16051         * config/h8300/h8300.c (final_prescan_insn): Constify uid.
16052         (output_logical_op): Constify intval and det.
16053         (compute_logical_length): Likewise.
16054         (compute_logical_cc): Likewise.
16055         (output_a_shift): Constify mask.
16056         (h8300_encode_label): Constify len.
16058 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
16060         * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
16061         (h8300_expand_epilogue): Likewise.
16063 2003-01-06  Aldy Hernandez  <aldyh@redhat.com>
16065         Segher Boessenkool  <segher@koffie.nl>
16067         * config/rs6000/altivec.md: Remove spaces from assembler
16068         instruction argument lists.
16070 2003-01-07  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16072         * config/c4x/c4x.c (c4x_naked_function_p): Rename from
16073         c4x_assembler_function_p.
16074         (c4x_null_epilogue_p): Complement return value, all uses updated.
16075         (c4x_insert_attributes): Add naked.
16076         * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
16077         * doc/extend.texi: Update C4x function attributes.
16079 2003-01-06  Richard Henderson  <rth@redhat.com>
16081         * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
16082         properly when changing "local-ness".
16083         * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
16085 2003-01-06  Dale Johannesen  <dalej@apple.com>
16087         * config/darwin-protos.h:  Add prototypes for new section functions.
16089 2003-01-06  Chris Demetriou  <cgd@broadcom.com>
16091         * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
16092         to EABI.
16094 2003-01-06  Zack Weinberg  <zack@codesourcery.com>
16096         * hwint.h: If the current compiler has no 64-bit type at all,
16097         make HOST_WIDEST_INT 32 bits.
16099 2003-01-06  Eric Christopher  <echristo@redhat.com>
16101         * config/mips/mips.md (movdf_internal2): Fix constraints.
16103 2003-01-06  Kazu Hirata  <kazu@cs.umass.edu>
16105         * config/h8300/h8300.md (*twoshifts_l16_r1): New.
16107 2003-01-06  Richard Sandiford  <rsandifo@redhat.com>
16109         * config/mips/mips.md (leadi): Use dla rather than la.
16111 2003-01-06  Svein E. Seldal  <Svein.Seldal@solidas.com>
16113         * config/c4x/c4x.h: Updated specs for new gas format.  Fixed bug
16114         in C33_FLAG.  Added proper C33 support in ASM_FILE_START macro.
16116 2003-01-06 Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
16118         * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
16119         redefinition.
16121 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
16123         * config/h8300/h8300.md (*extzv_8_23): New.
16125 2003-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16127         * pa64-hpux.h (JCR_SECTION_NAME): Define.
16128         (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
16129         USE_EH_FRAME_REGISTRY when defining.
16131 2003-01-05  Kazu Hirata  <kazu@cs.umass.edu>
16133         * config/h8300/h8300.c (output_a_shift): Do not output a
16134         variable shift.
16135         * config/h8300/h8300.md (two splitters): New.
16137 2003-01-05  Richard Sandiford  <rsandifo@redhat.com>
16139         * config/mips/mips.md: Disable the movstrsi define_split.
16141 2003-01-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16143         * alloc-pool.c: Don't include "libiberty.h".
16144         * config/sparc/gmon-sol2.c: Include <fcntl.h>.
16145         * convert.c (convert_to_real): Hide unused variable.
16147 2003-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16149         * Makefile.in (gtyp-gen.h): Const-ify.
16150         * gcov-dump.c (tag_table): Likewise.
16152 2003-01-04  Bruce Korb  <bkorb@gnu.org>
16154         * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
16155         of *both* the file name and the fix name.
16157 2003-01-04  John David Anglin  <dave.anglin@nrc.ca>
16159         * config.gcc (hppa*64*-*-hpux11*): Define extra_parts.  Don't use
16160         collect2.
16161         * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
16162         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
16163         * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
16164         GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
16165         GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
16166         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
16167         elfos.h.
16168         (EH_FRAME_IN_DATA_SECTION): Delete define.
16169         (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
16170         (STARTFILE_SPEC): Use crtbegin.o.
16171         (ENDFILE_SPEC): Use crtend.o.
16172         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
16173         SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
16174         PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
16175         DTOR_LIST_BEGIN): Define.
16176         * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
16177         (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
16178         * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
16180 2002-12-31  Larin Hennessy  <larin@science.oregonstate.edu>
16182         * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
16183         * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
16184         m88k-*-sysv3*, Sony NewsOS.   Remove references to i860.
16185         Cleanup handling of replacement text.
16186         * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
16188 2003-01-04  Bruce Korb  <bkorb@gnu.org>
16190         * fixinc/tests/base/math.h: removed obsolete results
16191         * fixinc/tests/base/stdlib.h: ditto
16192         * fixinc/tests/base/sys/param.h: ditto
16193         * fixinc/tests/base/sys/stat.h: ditto
16194         * fixinc/tests/base/time.h: ditto
16195         * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
16196         * fixinc/tests/base/sys/byteorder.h: ditto
16197         * fixinc/inclhack.def: Remove superfluous backslashes
16199 2003-01-04  Kazu Hirata  <kazu@cs.umass.edu>
16201         * config/h8300/h8300-protos.h: Add prototypes for
16202         the new functions defined below.
16203         * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
16204         define.
16205         (dosize): Emit RTL instead of assembly code.
16206         (push): Likewise.
16207         (pop): Likewise.
16208         (h8300_output_function_prologue): Remove.
16209         (h8300_expand_prologue): New.
16210         (h8300_expand_epilogue): New.
16211         (h8300_output_function_epilogue): Do only the reset of
16212         pragma_saveall.
16213         * config/h8300/h8300.md (push_h8300): New.
16214         (push_h8300hs): Likewise.
16215         (pop_h8300): Likewise.
16216         (pop_h8300hs): Likewise.
16217         (*stm_h8300s_2): Change the name to stm_h8300s_2.
16218         (*stm_h8300s_3): Change the name to stm_h8300s_3.
16219         (*stm_h8300s_4): Change the name to stm_h8300s_4.
16220         (*ldm_h8300s_2): New.
16221         (*ldm_h8300s_3): Likewise.
16222         (*ldm_h8300s_4): Likewise.
16223         (return): Likewise.
16224         (*return_1): Likewise.
16225         (prologue): Likewise.
16226         (epilogue): Likewise.
16227         (monitor_prologue): Likewise.
16229 2003-01-03  Dale Johannesen  <dalej@apple.com>
16231         * config/darwin.h:  (EXTRA_SECTIONS):  Add machopic_symbol_stub1,
16232           machopic_picsymbol_stub1.
16233           (EXTRA_SECTION_FUNCTIONS):  Ditto.
16234         * rs6000/rs6000.c:  Update copyright.
16235           (machopic_output_stub):  Use them.  Remove an insn from stub code.
16237 2003-01-02  Jason Merrill  <jason@redhat.com>
16239         * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
16241         * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
16242         static/external decls.
16244         * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
16245         outermost scope.
16246         * c-decl.c (c_make_fname_decl): Push the decls there, too.
16248 2003-01-03  Kazu Hirata  <kazu@cs.umass.edu>
16250         * config/h8300/h8300-protos.h: Add a prototype for
16251         h8300_current_function_interrupt_function_p.
16252         * config/h8300/h8300.c (interrupt_handler): Remove.
16253         (os_task): Likewise.
16254         (monitor): Likewise.
16255         (pragma_interrupt): New.
16256         (WORD_REG_USED): Use
16257         h8300_current_function_interrupt_function_p.
16258         (dosize): Likewise.
16259         (h8300_output_function_prologue): Likewise.
16260         Do not set interrupt_handler, os_task, monitor.
16261         (h8300_output_function_prologue): Use
16262         h8300_current_function_interrupt_function_p.
16263         Do not set interrupt_handler, os_task, monitor.
16264         (h8300_current_function_interrupt_function_p): New.
16265         (h8300_pr_interrupt): Set pragma_interrupt.
16266         (h8300_insert_attributes): Reset pragma_interrupt.
16268 2003-01-03  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16270         * doc/install.texi (Configuration): Fix markup for reference to
16271         gcc/config.gcc.
16273 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
16275         * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
16276         (*iorhi3_two_qi): Likewise.
16277         (*iorsi3_zexthi): Likewise.
16278         (*xorhi3_zextqi): Likewise.
16279         (*xorsi3_zexthi): Likewise.
16280         (*xorsi3_zextqi): Likewise.
16282 2003-01-02  Kazu Hirata  <kazu@cs.umass.edu>
16284         * config/h8300/h8300.c (stack_pointer_operand): New.
16285         (const_int_gt_2_operand): Likewise.
16286         (const_int_ge_8_operand): Likewise.
16287         * config/h8300/h8300.md (a splitter): Likewise.
16288         (a peephole2): Likewise.
16289         * config/h8300/h8300-protos.h: Add prototypes for the new
16290         functions above.
16292 2003-01-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
16294         * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
16295         objc/objc-act.h: Fix copyright years.
16297 2003-01-02  Steven Bosscher  <s.bosscher@student.tudelft.nl>
16299         * doc/passes.texi: Fix documentation for -fssa-ccp
16301 2003-01-02  Neil Booth  <neil@daikokuya.co.uk>
16303         * gccbug.in: Update for new categories.
16305 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
16307         * config/h8300/h8300.md: Reorder some patterns.
16309 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
16311         * config/h8300/h8300.c (output_logical_op): Fix a warning.
16313 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
16315         * config/darwin-protos.h, config/c4x/c4x-protos.h,
16316         config/cris/cris-protos.h, config/i370/i370-protos.h,
16317         config/i960/i960-protos.h, config/ia64/ia64-protos.h,
16318         config/v850/v850-protos.h: Use struct, and don't conditionally
16319         compile on GCC_C_PRAGMA_H.
16321 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
16323         * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
16324         * config/h8300/h8300-protos.h: Likewise.
16325         * config/sh/sh-protos.h: Likewise.
16327 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
16329         * config/arm/arm-protos.h: Use struct cpp_reader instead of
16330         cpp_reader.
16331         * config/h8300/h8300-protos.h: Likewise.
16332         * config/sh/sh-protos.h: Likewise.
16334 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
16336         * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
16337         arm_pr_long_calls_off): Use struct.
16338         * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
16339         : Similarly.
16340         Don't include cpplib.h.
16341         * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
16342         sh_pr_nosave_low_regs): Similarly.
16344 2003-01-01  Kazu Hirata  <kazu@cs.umass.edu>
16346         * config/h8300/h8300.c: Include cpplib.h.
16348 2003-01-01  Steven Bosscher  <s.bosscher@student.tudelft.nl>
16350         * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
16351           objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
16352           objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
16353           "GCC" in the copyright header.
16355 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
16357         * c-pragma.c (c_register_pragma): New.
16358         (init_pragma): Use it.
16359         * c-pragma.h (cpp_register_pragma): Don't declare.
16360         (c_register_pragma): New.
16361         * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
16362         * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
16363         * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
16364         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
16365         * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
16366         * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
16367         * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
16368         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
16369         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
16370         * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
16371         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
16372         * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
16374 See ChangeLog.8 for earlier changes.